@mongodb-js/compass-shell 3.21.0 → 3.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/304.browser.js +1 -1
- package/dist/304.index.js +1 -1
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/src/plugin.d.ts +2 -1
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +1 -1
- package/dist/src/stores/store.d.ts.map +1 -1
- package/package.json +21 -20
package/dist/304.browser.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
return err;
|
|
21
21
|
}
|
|
22
|
-
`,{placeholderPattern:!1,placeholderWhitelist:new Set(["DE_IDENTIFIER"])}),x=a.template.expression("(\n SYNC_RETURN_VALUE_IDENTIFIER = NODE,\n FUNCTION_STATE_IDENTIFIER === 'async' ? SYNC_RETURN_VALUE_IDENTIFIER : null\n )");function v({file:t},r,{wrap:s=!0}={}){var n,i;const a=(25,(o=void 0!==r.start?t.code.slice(null!==(n=r.start)&&void 0!==n?n:void 0,null!==(i=r.end)&&void 0!==i?i:void 0):"<unknown>").length<=25?o:o.slice(0,14)+" ... "+o.slice(o.length-6));var o;return s?e.stringLiteral("\ufeff"+a+"\ufeff"):e.stringLiteral(a)}return{pre(e){this.file=e},visitor:{BlockStatement(r){var a,o,g,E,x,v,C,P,S,w,T,F;if(!r.parentPath.isFunction())return;if(r.parentPath.getData(u))return;if(r.parentPath.node[t])return;if(r.parentPath.node[s])return;const D=void 0!==r.parent.start?this.file.code.slice(null!==(a=r.parent.start)&&void 0!==a?a:void 0,null!==(o=r.parent.end)&&void 0!==o?o:void 0):"function () { [unknown code] }",I=encodeURIComponent(D),_=e.expressionStatement(e.stringLiteral(`<async_rewriter>${I}</>`)),k=null===(g=r.findParent((e=>!!e.getData(u))))||void 0===g?void 0:g.getData(u),B=r.scope.generateUidIdentifier("fs"),O=r.scope.generateUidIdentifier("srv"),N=r.scope.generateUidIdentifier("arv"),M=null!==(E=null==k?void 0:k.expressionHolder)&&void 0!==E?E:r.scope.generateUidIdentifier("ex"),L=null!==(x=null==k?void 0:k.markSyntheticPromise)&&void 0!==x?x:r.scope.generateUidIdentifier("msp"),R=null!==(v=null==k?void 0:k.isSyntheticPromise)&&void 0!==v?v:r.scope.generateUidIdentifier("isp"),j=null!==(C=null==k?void 0:k.adaptAsyncIterableToSyncIterable)&&void 0!==C?C:r.scope.generateUidIdentifier("aaitsi"),U=null!==(P=null==k?void 0:k.assertNotSyntheticPromise)&&void 0!==P?P:r.scope.generateUidIdentifier("ansp"),V=null!==(S=null==k?void 0:k.syntheticPromiseSymbol)&&void 0!==S?S:r.scope.generateUidIdentifier("sp"),$=null!==(w=null==k?void 0:k.syntheticAsyncIterableSymbol)&&void 0!==w?w:r.scope.generateUidIdentifier("sai"),z=null!==(T=null==k?void 0:k.demangleError)&&void 0!==T?T:r.scope.generateUidIdentifier("de"),q={functionState:B,synchronousReturnValue:O,asynchronousReturnValue:N,expressionHolder:M,markSyntheticPromise:L,isSyntheticPromise:R,adaptAsyncIterableToSyncIterable:j,assertNotSyntheticPromise:U,syntheticPromiseSymbol:V,syntheticAsyncIterableSymbol:$,demangleError:z};r.parentPath.setData(u,q);const W=k?[]:[...l({SP_IDENTIFIER:V,SAI_IDENTIFIER:$}).map((e=>Object.assign(e,{[s]:!0}))),Object.assign(m({EXPRESSION_HOLDER_IDENTIFIER:M}),{[s]:!0})],K=k?[]:[...W,Object.assign(c({MSP_IDENTIFIER:L,SP_IDENTIFIER:V}),{[s]:!0}),Object.assign(d({AAITSI_IDENTIFIER:j,SAI_IDENTIFIER:$}),{[s]:!0}),Object.assign(p({ISP_IDENTIFIER:R,SP_IDENTIFIER:V}),{[s]:!0}),Object.assign(A({DE_IDENTIFIER:z}),{[s]:!0})],H=[...W,Object.assign(h({ANSP_IDENTIFIER:U,SP_IDENTIFIER:V,SAI_IDENTIFIER:$,CUSTOM_ERROR_BUILDER:null!==(F=this.opts.customErrorBuilder)&&void 0!==F?F:e.identifier("Error")}),{[s]:!0})];if(r.parentPath.node.async)return void r.replaceWith(e.blockStatement([_,...K,b({ORIGINAL_CODE:r.node.body})]));if(r.parentPath.node.generator||r.parentPath.isClassMethod()&&"Identifier"===r.parentPath.node.key.type&&"constructor"===r.parentPath.node.key.name)return Object.assign(r.parentPath.node,{[i]:!0}),void r.replaceWith(e.blockStatement([_,...H,b({ORIGINAL_CODE:r.node.body})]));const G=Object.assign(f({FUNCTION_STATE_IDENTIFIER:B,SYNC_RETURN_VALUE_IDENTIFIER:O,ORIGINAL_CODE:Object.assign(r.node,{[n]:!0})}),{[t]:!0}),X=y({FUNCTION_STATE_IDENTIFIER:B,SYNC_RETURN_VALUE_IDENTIFIER:O,ASYNC_RETURN_VALUE_IDENTIFIER:N,MSP_IDENTIFIER:L,ASYNC_TRY_CATCH_WRAPPER:G});r.replaceWith(e.blockStatement([_,...K,...X]))},UnaryExpression:{enter(t){"typeof"!==t.node.operator||"Identifier"!==t.node.argument.type||t.node[o]||t.replaceWith(e.conditionalExpression(e.binaryExpression("===",{...t.node,[s]:!0,[o]:!0},e.stringLiteral("undefined")),e.stringLiteral("undefined"),{...t.node,[o]:!0}))}},Expression:{enter(t){var r,n;if(t.parentPath.isArrowFunctionExpression()&&"body"===t.key&&t.replaceWith(e.blockStatement([e.returnStatement(t.node)])),null===(n=null===(r=t.find((e=>e.isFunction()||!!e.node[s])))||void 0===r?void 0:r.node)||void 0===n?void 0:n[s])return t.skip()},exit(r){var a,o,l,c;const p=r.getFunctionParent();if(!p)return;if(!p.node.async&&!p.node[i])return;let h;if(p.node[t]){if(!(null===(o=null===(a=r.findParent((e=>e.isFunction()||!!e.node[n])))||void 0===a?void 0:a.node)||void 0===o?void 0:o[n]))return;if(h=null===(c=null===(l=p.getFunctionParent())||void 0===l?void 0:l.getData)||void 0===c?void 0:c.call(l,u),!h)throw new Error("Parent of generated inner function does not have existing identifiers available");if(r.parentPath.isReturnStatement()&&!r.node[s])return void r.replaceWith(Object.assign(x({SYNC_RETURN_VALUE_IDENTIFIER:h.synchronousReturnValue,FUNCTION_STATE_IDENTIFIER:h.functionState,NODE:r.node}),{[s]:!0}))}else h=p.getData(u);if(r.parentPath.isCallExpression()&&"callee"===r.key&&(r.isMemberExpression()||r.isImport()||r.isIdentifier()&&"eval"===r.node.name))return;if(r.parentPath.isAssignmentExpression()&&"left"===r.key)return;if(r.parentPath.isForXStatement()&&"left"===r.key)return;if(r.parentPath.isUpdateExpression())return;if(r.parentPath.isUnaryExpression()&&"delete"===r.parentPath.node.operator)return;if(r.isLiteral()||r.isArrayExpression()||r.isObjectExpression()||r.isFunctionExpression()||r.isArrowFunctionExpression()||r.isClassExpression()||r.isAssignmentExpression()||r.isBinaryExpression()||r.isConditionalExpression()||r.isLogicalExpression()||r.isSequenceExpression()||r.isParenthesizedExpression()||r.isUnaryExpression()||r.isSuper()||r.isThisExpression()||r.isAwaitExpression()||r.parentPath.isAwaitExpression())return;if(r.isIdentifier()&&r.scope.hasBinding(r.node.name))return;const{expressionHolder:d,isSyntheticPromise:f,assertNotSyntheticPromise:m}=h;if(!p.node.async){const t=[r.node,v(this,r.node,{wrap:!1})];return("ForOfStatement"===r.parent.type&&r.node===r.parent.right||"YieldExpression"===r.parent.type&&r.parent.delegate)&&t.push(e.booleanLiteral(!0)),void r.replaceWith(Object.assign(e.callExpression(m,t),{[s]:!0}))}r.replaceWith(Object.assign(g({ORIGINAL_SOURCE:v(this,r.node),EXPRESSION_HOLDER:d,ISP_IDENTIFIER:f,NODE:r.node}),{[s]:!0})),r.skip()}},CatchClause:{exit(t){var r;if(t.node[s]||!t.node.param||"Identifier"!==t.node.param.type)return;const n=null===(r=t.findParent((e=>!!e.getData(u))))||void 0===r?void 0:r.getData(u);n&&t.replaceWith(Object.assign(e.catchClause(t.node.param,e.blockStatement([e.expressionStatement(e.assignmentExpression("=",t.node.param,e.callExpression(n.demangleError,[t.node.param]))),t.node.body])),{[s]:!0}))}},ForOfStatement(t){var n,i,a,o,l,c;if(t.node.await||!(null===(n=t.getFunctionParent())||void 0===n?void 0:n.node.async))return;if(null===(a=null===(i=t.find((e=>e.isFunction()||!!e.node[s])))||void 0===i?void 0:i.node)||void 0===a?void 0:a[s])return t.skip();if(null===(l=null===(o=t.find((e=>e.isFunction()||!!e.node[r])))||void 0===o?void 0:o.node)||void 0===l?void 0:l[r])return;const p=null===(c=t.findParent((e=>!!e.getData(u))))||void 0===c?void 0:c.getData(u);if(!p)throw new Error("Missing identifier group for ForOfStatement");const{adaptAsyncIterableToSyncIterable:h}=p,d=t.scope.generateUidIdentifier("i");t.replaceWith(Object.assign(E({ORIGINAL_ITERABLE:t.node.right,ORIGINAL_ITERABLE_SOURCE:v(this,t.node.right),ORIGINAL_DECLARATION:"VariableDeclaration"===t.node.left.type?e.variableDeclaration(t.node.left.kind,t.node.left.declarations.map((e=>({...e,init:d})))):e.expressionStatement(e.assignmentExpression("=",t.node.left,d)),ORIGINAL_BODY:t.node.body,ITERABLE_INFO:t.scope.generateUidIdentifier("ii"),ITERABLE_ISAI:t.scope.generateUidIdentifier("isai"),ITERABLE:t.scope.generateUidIdentifier("it"),ITEM:d,AAITSI_IDENTIFIER:h}),{[r]:!0}))}}}}},15588:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=i(r(63005));t.default=({types:e})=>{const t=Symbol("isGeneratedTryCatch"),r=a.template.expression("\n (!ERR_IDENTIFIER || !ERR_IDENTIFIER[Symbol.for('@@mongosh.uncatchable')])\n ");return{visitor:{TryStatement(s){var n;if(s.node[t])return;const{block:i,finalizer:a}=s.node;let o,u;const l=s.scope.generateUidIdentifier("err");if(s.node.handler?"Identifier"===(null===(n=s.node.handler.param)||void 0===n?void 0:n.type)?(o=s.node.handler.param,u=s.node.handler):s.node.handler.param?(o=l,u=e.catchClause(o,e.blockStatement([e.variableDeclaration("let",[e.variableDeclarator(s.node.handler.param,o)]),s.node.handler.body]))):(o=l,u=s.node.handler):(o=l,u=e.catchClause(o,e.blockStatement([e.throwStatement(o)]))),a){const n=s.scope.generateUidIdentifier("_isCatchable"),l=s.scope.generateUidIdentifier("_innerExc");s.replaceWithMultiple([e.variableDeclaration("let",[e.variableDeclarator(n,e.booleanLiteral(!0))]),Object.assign(e.tryStatement(i,e.catchClause(o,e.blockStatement([e.expressionStatement(e.assignmentExpression("=",n,r({ERR_IDENTIFIER:o}))),e.ifStatement(n,Object.assign(e.tryStatement(u.body,e.catchClause(l,e.blockStatement([e.expressionStatement(e.assignmentExpression("=",n,r({ERR_IDENTIFIER:l}))),e.throwStatement(l)]))),{[t]:!0}),e.throwStatement(o))])),e.blockStatement([e.ifStatement(n,a)])),{[t]:!0})])}else s.replaceWith(Object.assign(e.tryStatement(i,e.catchClause(o,e.blockStatement([e.ifStatement(r({ERR_IDENTIFIER:o}),u.body,e.throwStatement(o))]))),{[t]:!0}))}}}}},86121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=({types:e})=>({pre(){this.movedStatements=[],this.functionDeclarations=[],this.hasFinishedMoving=!1,this.addedCompletionRecords=!1,this.variables=[]},visitor:{Statement(t){if(!this.hasFinishedMoving){if(t.isDeclaration()&&!t.getFunctionParent())if(t.isVariableDeclaration()){if(t.parentPath.isProgram()||"var"===t.node.kind){const r=[];for(const s of t.node.declarations){if(s.id.name===this.completionRecordId.name)return;if(this.variables.push(s.id.name),s.init){const n=e.assignmentExpression("=",s.id,s.init);r.push(e.variableDeclaration("const",[e.variableDeclarator(t.scope.generateUidIdentifier("v"),n)]))}}return void(t.parentPath.isProgram()?(this.movedStatements.push(...r),t.remove()):t.replaceWithMultiple(r))}}else{if(t.isFunctionDeclaration())return this.functionDeclarations.push(t.node),void(t.node.id?t.replaceWith(e.expressionStatement(t.node.id)):t.remove());if(t.isClassDeclaration()&&t.parentPath.isProgram()&&t.node.id)return this.variables.push(t.node.id.name),this.movedStatements.push(e.expressionStatement(e.assignmentExpression("=",t.node.id,e.classExpression(t.node.id,t.node.superClass,t.node.body)))),void t.replaceWith(e.expressionStatement(t.node.id))}!t.isExpressionWrapper()||t.getFunctionParent()||t.isExpressionStatement()&&"AssignmentExpression"===t.node.expression.type&&"Identifier"===t.node.expression.left.type&&t.node.expression.left.name===this.completionRecordId.name?t.parentPath.isProgram()&&this.movedStatements.push(t.node):t.replaceWith(e.expressionStatement(e.assignmentExpression("=",this.completionRecordId,t.node.expression)))}},Program:{enter(t){this.hasFinishedMoving||(this.completionRecordId=t.scope.generateUidIdentifier("cr"),1===t.node.directives.length&&"DirectiveLiteral"===t.node.directives[0].value.type&&0===t.node.body.length&&t.replaceWith(e.program([e.expressionStatement({...t.node.directives[0].value,type:"StringLiteral"})])))},exit(t){this.hasFinishedMoving||(this.hasFinishedMoving=!0,t.replaceWith(e.program([...this.variables.map((t=>e.variableDeclaration("var",[e.variableDeclarator(e.identifier(t))]))),...this.functionDeclarations,e.expressionStatement(e.callExpression(e.arrowFunctionExpression([],e.blockStatement([e.variableDeclaration("var",[e.variableDeclarator(this.completionRecordId)]),...this.movedStatements,e.returnStatement(this.completionRecordId)])),[]))],t.node.directives)))}}}})},88184:(e,t)=>{"use strict";var r;function s(e,t){(t=t||{}).hasComment&&(e=function(e){return e.split(",").pop()}(e)),"base64"===t.encoding?e=r(e):"uri"===t.encoding&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}function n(e){return new s(e,{isJSON:!0})}Object.defineProperty(t,"commentRegex",{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm}}),Object.defineProperty(t,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm}}),r="undefined"!=typeof Buffer?"function"==typeof Buffer.from?function(e){return Buffer.from(e,"base64").toString()}:function(e){if("number"==typeof value)throw new TypeError("The value to decode must not be of type number.");return new Buffer(e,"base64").toString()}:function(e){return decodeURIComponent(escape(atob(e)))},s.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)},"undefined"!=typeof Buffer?"function"==typeof Buffer.from?s.prototype.toBase64=function(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}:s.prototype.toBase64=function(){var e=this.toJSON();if("number"==typeof e)throw new TypeError("The json to encode must not be of type number.");return new Buffer(e,"utf8").toString("base64")}:s.prototype.toBase64=function(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))},s.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)},s.prototype.toComment=function(e){var t,r,s;return null!=e&&"uri"===e.encoding?(t="",r=this.toURI()):(t=";base64",r=this.toBase64()),s="sourceMappingURL=data:application/json;charset=utf-8"+t+","+r,null!=e&&e.multiline?"/*# "+s+" */":"//# "+s},s.prototype.toObject=function(){return JSON.parse(this.toJSON())},s.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)},s.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this},s.prototype.getProperty=function(e){return this.sourcemap[e]},t.fromObject=function(e){return new s(e)},t.fromJSON=function(e){return new s(e,{isJSON:!0})},t.fromURI=function(e){return new s(e,{encoding:"uri"})},t.fromBase64=function(e){return new s(e,{encoding:"base64"})},t.fromComment=function(e){var r;return new s(e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{encoding:(r=t.commentRegex.exec(e))&&r[4]||"uri",hasComment:!0})},t.fromMapFileComment=function(e,r){if("string"==typeof r)throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var s=function(e,r){var s=t.mapFileCommentRegex.exec(e),n=s[1]||s[2];try{return null!=(e=r(n))&&"function"==typeof e.catch?e.catch(i):e}catch(e){i(e)}function i(e){throw new Error("An error occurred while trying to read the map file at "+n+"\n"+e.stack)}}(e,r);return null!=s&&"function"==typeof s.then?s.then(n):n(s)},t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null},t.fromMapFileSource=function(e,r){if("string"==typeof r)throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var s=e.match(t.mapFileCommentRegex);return s?t.fromMapFileComment(s.pop(),r):null},t.removeComments=function(e){return e.replace(t.commentRegex,"")},t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")},t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}},61365:(e,t)=>{var r;t=e.exports=g,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var s=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,i=s-6,a=t.re=[],o=t.safeRe=[],u=t.src=[],l=t.tokens={},c=0;function p(e){l[e]=c++}var h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",s],[h,i]];function f(e){for(var t=0;t<d.length;t++){var r=d[t][0],s=d[t][1];e=e.split(r+"*").join(r+"{0,"+s+"}").split(r+"+").join(r+"{1,"+s+"}")}return e}p("NUMERICIDENTIFIER"),u[l.NUMERICIDENTIFIER]="0|[1-9]\\d*",p("NUMERICIDENTIFIERLOOSE"),u[l.NUMERICIDENTIFIERLOOSE]="\\d+",p("NONNUMERICIDENTIFIER"),u[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+h+"*",p("MAINVERSION"),u[l.MAINVERSION]="("+u[l.NUMERICIDENTIFIER]+")\\.("+u[l.NUMERICIDENTIFIER]+")\\.("+u[l.NUMERICIDENTIFIER]+")",p("MAINVERSIONLOOSE"),u[l.MAINVERSIONLOOSE]="("+u[l.NUMERICIDENTIFIERLOOSE]+")\\.("+u[l.NUMERICIDENTIFIERLOOSE]+")\\.("+u[l.NUMERICIDENTIFIERLOOSE]+")",p("PRERELEASEIDENTIFIER"),u[l.PRERELEASEIDENTIFIER]="(?:"+u[l.NUMERICIDENTIFIER]+"|"+u[l.NONNUMERICIDENTIFIER]+")",p("PRERELEASEIDENTIFIERLOOSE"),u[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+u[l.NUMERICIDENTIFIERLOOSE]+"|"+u[l.NONNUMERICIDENTIFIER]+")",p("PRERELEASE"),u[l.PRERELEASE]="(?:-("+u[l.PRERELEASEIDENTIFIER]+"(?:\\."+u[l.PRERELEASEIDENTIFIER]+")*))",p("PRERELEASELOOSE"),u[l.PRERELEASELOOSE]="(?:-?("+u[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+u[l.PRERELEASEIDENTIFIERLOOSE]+")*))",p("BUILDIDENTIFIER"),u[l.BUILDIDENTIFIER]=h+"+",p("BUILD"),u[l.BUILD]="(?:\\+("+u[l.BUILDIDENTIFIER]+"(?:\\."+u[l.BUILDIDENTIFIER]+")*))",p("FULL"),p("FULLPLAIN"),u[l.FULLPLAIN]="v?"+u[l.MAINVERSION]+u[l.PRERELEASE]+"?"+u[l.BUILD]+"?",u[l.FULL]="^"+u[l.FULLPLAIN]+"$",p("LOOSEPLAIN"),u[l.LOOSEPLAIN]="[v=\\s]*"+u[l.MAINVERSIONLOOSE]+u[l.PRERELEASELOOSE]+"?"+u[l.BUILD]+"?",p("LOOSE"),u[l.LOOSE]="^"+u[l.LOOSEPLAIN]+"$",p("GTLT"),u[l.GTLT]="((?:<|>)?=?)",p("XRANGEIDENTIFIERLOOSE"),u[l.XRANGEIDENTIFIERLOOSE]=u[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",p("XRANGEIDENTIFIER"),u[l.XRANGEIDENTIFIER]=u[l.NUMERICIDENTIFIER]+"|x|X|\\*",p("XRANGEPLAIN"),u[l.XRANGEPLAIN]="[v=\\s]*("+u[l.XRANGEIDENTIFIER]+")(?:\\.("+u[l.XRANGEIDENTIFIER]+")(?:\\.("+u[l.XRANGEIDENTIFIER]+")(?:"+u[l.PRERELEASE]+")?"+u[l.BUILD]+"?)?)?",p("XRANGEPLAINLOOSE"),u[l.XRANGEPLAINLOOSE]="[v=\\s]*("+u[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+u[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+u[l.XRANGEIDENTIFIERLOOSE]+")(?:"+u[l.PRERELEASELOOSE]+")?"+u[l.BUILD]+"?)?)?",p("XRANGE"),u[l.XRANGE]="^"+u[l.GTLT]+"\\s*"+u[l.XRANGEPLAIN]+"$",p("XRANGELOOSE"),u[l.XRANGELOOSE]="^"+u[l.GTLT]+"\\s*"+u[l.XRANGEPLAINLOOSE]+"$",p("COERCE"),u[l.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",p("COERCERTL"),a[l.COERCERTL]=new RegExp(u[l.COERCE],"g"),o[l.COERCERTL]=new RegExp(f(u[l.COERCE]),"g"),p("LONETILDE"),u[l.LONETILDE]="(?:~>?)",p("TILDETRIM"),u[l.TILDETRIM]="(\\s*)"+u[l.LONETILDE]+"\\s+",a[l.TILDETRIM]=new RegExp(u[l.TILDETRIM],"g"),o[l.TILDETRIM]=new RegExp(f(u[l.TILDETRIM]),"g"),p("TILDE"),u[l.TILDE]="^"+u[l.LONETILDE]+u[l.XRANGEPLAIN]+"$",p("TILDELOOSE"),u[l.TILDELOOSE]="^"+u[l.LONETILDE]+u[l.XRANGEPLAINLOOSE]+"$",p("LONECARET"),u[l.LONECARET]="(?:\\^)",p("CARETTRIM"),u[l.CARETTRIM]="(\\s*)"+u[l.LONECARET]+"\\s+",a[l.CARETTRIM]=new RegExp(u[l.CARETTRIM],"g"),o[l.CARETTRIM]=new RegExp(f(u[l.CARETTRIM]),"g"),p("CARET"),u[l.CARET]="^"+u[l.LONECARET]+u[l.XRANGEPLAIN]+"$",p("CARETLOOSE"),u[l.CARETLOOSE]="^"+u[l.LONECARET]+u[l.XRANGEPLAINLOOSE]+"$",p("COMPARATORLOOSE"),u[l.COMPARATORLOOSE]="^"+u[l.GTLT]+"\\s*("+u[l.LOOSEPLAIN]+")$|^$",p("COMPARATOR"),u[l.COMPARATOR]="^"+u[l.GTLT]+"\\s*("+u[l.FULLPLAIN]+")$|^$",p("COMPARATORTRIM"),u[l.COMPARATORTRIM]="(\\s*)"+u[l.GTLT]+"\\s*("+u[l.LOOSEPLAIN]+"|"+u[l.XRANGEPLAIN]+")",a[l.COMPARATORTRIM]=new RegExp(u[l.COMPARATORTRIM],"g"),o[l.COMPARATORTRIM]=new RegExp(f(u[l.COMPARATORTRIM]),"g"),p("HYPHENRANGE"),u[l.HYPHENRANGE]="^\\s*("+u[l.XRANGEPLAIN]+")\\s+-\\s+("+u[l.XRANGEPLAIN]+")\\s*$",p("HYPHENRANGELOOSE"),u[l.HYPHENRANGELOOSE]="^\\s*("+u[l.XRANGEPLAINLOOSE]+")\\s+-\\s+("+u[l.XRANGEPLAINLOOSE]+")\\s*$",p("STAR"),u[l.STAR]="(<|>)?=?\\s*\\*";for(var m=0;m<c;m++)r(m,u[m]),a[m]||(a[m]=new RegExp(u[m]),o[m]=new RegExp(f(u[m])));function y(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g)return e;if("string"!=typeof e)return null;if(e.length>s)return null;if(!(t.loose?o[l.LOOSE]:o[l.FULL]).test(e))return null;try{return new g(e,t)}catch(e){return null}}function g(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>s)throw new TypeError("version is longer than "+s+" characters");if(!(this instanceof g))return new g(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[l.LOOSE]:o[l.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=y,t.valid=function(e,t){var r=y(e,t);return r?r.version:null},t.clean=function(e,t){var r=y(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=g,g.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},g.prototype.toString=function(){return this.version},g.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof g||(e=new g(e,this.options)),this.compareMain(e)||this.comparePre(e)},g.prototype.compareMain=function(e){return e instanceof g||(e=new g(e,this.options)),E(this.major,e.major)||E(this.minor,e.minor)||E(this.patch,e.patch)},g.prototype.comparePre=function(e){if(e instanceof g||(e=new g(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var s=this.prerelease[t],n=e.prerelease[t];if(r("prerelease compare",t,s,n),void 0===s&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===s)return-1;if(s!==n)return E(s,n)}while(++t)},g.prototype.compareBuild=function(e){e instanceof g||(e=new g(e,this.options));var t=0;do{var s=this.build[t],n=e.build[t];if(r("prerelease compare",t,s,n),void 0===s&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===s)return-1;if(s!==n)return E(s,n)}while(++t)},g.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,s){"string"==typeof r&&(s=r,r=void 0);try{return new g(e,r).inc(t,s).version}catch(e){return null}},t.diff=function(e,t){if(C(e,t))return null;var r=y(e),s=y(t),n="";if(r.prerelease.length||s.prerelease.length){n="pre";var i="prerelease"}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==s[a])return n+a;return i},t.compareIdentifiers=E;var b=/^[0-9]+$/;function E(e,t){var r=b.test(e),s=b.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:e<t?-1:1}function A(e,t,r){return new g(e,r).compare(new g(t,r))}function x(e,t,r){return A(e,t,r)>0}function v(e,t,r){return A(e,t,r)<0}function C(e,t,r){return 0===A(e,t,r)}function P(e,t,r){return 0!==A(e,t,r)}function S(e,t,r){return A(e,t,r)>=0}function w(e,t,r){return A(e,t,r)<=0}function T(e,t,r,s){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return C(e,r,s);case"!=":return P(e,r,s);case">":return x(e,r,s);case">=":return S(e,r,s);case"<":return v(e,r,s);case"<=":return w(e,r,s);default:throw new TypeError("Invalid operator: "+t)}}function F(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof F){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof F))return new F(e,t);e=e.trim().split(/\s+/).join(" "),r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return E(t,e)},t.major=function(e,t){return new g(e,t).major},t.minor=function(e,t){return new g(e,t).minor},t.patch=function(e,t){return new g(e,t).patch},t.compare=A,t.compareLoose=function(e,t){return A(e,t,!0)},t.compareBuild=function(e,t,r){var s=new g(e,r),n=new g(t,r);return s.compare(n)||s.compareBuild(n)},t.rcompare=function(e,t,r){return A(t,e,r)},t.sort=function(e,r){return e.sort((function(e,s){return t.compareBuild(e,s,r)}))},t.rsort=function(e,r){return e.sort((function(e,s){return t.compareBuild(s,e,r)}))},t.gt=x,t.lt=v,t.eq=C,t.neq=P,t.gte=S,t.lte=w,t.cmp=T,t.Comparator=F;var D={};function I(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof I)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new I(e.raw,t);if(e instanceof F)return new I(e.value,t);if(!(this instanceof I))return new I(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function _(e,t){for(var r=!0,s=e.slice(),n=s.pop();r&&s.length;)r=s.every((function(e){return n.intersects(e,t)})),n=s.pop();return r}function k(e){return!e||"x"===e.toLowerCase()||"*"===e}function B(e,t,r,s,n,i,a,o,u,l,c,p,h){return((t=k(r)?"":k(s)?">="+r+".0.0":k(n)?">="+r+"."+s+".0":">="+t)+" "+(o=k(u)?"":k(l)?"<"+(+u+1)+".0.0":k(c)?"<"+u+"."+(+l+1)+".0":p?"<="+u+"."+l+"."+c+"-"+p:"<="+o)).trim()}function O(e,t,s){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!s.includePrerelease){for(n=0;n<e.length;n++)if(r(e[n].semver),e[n].semver!==D&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function N(e,t,r){try{t=new I(t,r)}catch(e){return!1}return t.test(e)}function M(e,t,r,s){var n,i,a,o,u;switch(e=new g(e,s),t=new I(t,s),r){case">":n=x,i=w,a=v,o=">",u=">=";break;case"<":n=v,i=S,a=x,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,s))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],p=null,h=null;if(c.forEach((function(e){e.semver===D&&(e=new F(">=0.0.0")),p=p||e,h=h||e,n(e.semver,p.semver,s)?p=e:a(e.semver,h.semver,s)&&(h=e)})),p.operator===o||p.operator===u)return!1;if((!h.operator||h.operator===o)&&i(e,h.semver))return!1;if(h.operator===u&&a(e,h.semver))return!1}return!0}F.prototype.parse=function(e){var t=this.options.loose?o[l.COMPARATORLOOSE]:o[l.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new g(r[2],this.options.loose):this.semver=D},F.prototype.toString=function(){return this.value},F.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if("string"==typeof e)try{e=new g(e,this.options)}catch(e){return!1}return T(e,this.operator,this.semver,this.options)},F.prototype.intersects=function(e,t){if(!(e instanceof F))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new I(e.value,t),N(this.value,r,t));if(""===e.operator)return""===e.value||(r=new I(this.value,t),N(e.semver,r,t));var s=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=T(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=T(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return s||n||i&&a||o||u},t.Range=I,I.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},I.prototype.toString=function(){return this.range},I.prototype.parseRange=function(e){var t=this.options.loose,s=t?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];e=e.replace(s,B),r("hyphen replace",e),e=e.replace(o[l.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,o[l.COMPARATORTRIM]),e=(e=(e=e.replace(o[l.TILDETRIM],"$1~")).replace(o[l.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?o[l.COMPARATORLOOSE]:o[l.COMPARATOR],i=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var s=t.loose?o[l.CARETLOOSE]:o[l.CARET];return e.replace(s,(function(t,s,n,i,a){var o;return r("caret",e,t,s,n,i,a),k(s)?o="":k(n)?o=">="+s+".0.0 <"+(+s+1)+".0.0":k(i)?o="0"===s?">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0":">="+s+"."+n+".0 <"+(+s+1)+".0.0":a?(r("replaceCaret pr",a),o="0"===s?"0"===n?">="+s+"."+n+"."+i+"-"+a+" <"+s+"."+n+"."+(+i+1):">="+s+"."+n+"."+i+"-"+a+" <"+s+"."+(+n+1)+".0":">="+s+"."+n+"."+i+"-"+a+" <"+(+s+1)+".0.0"):(r("no pr"),o="0"===s?"0"===n?">="+s+"."+n+"."+i+" <"+s+"."+n+"."+(+i+1):">="+s+"."+n+"."+i+" <"+s+"."+(+n+1)+".0":">="+s+"."+n+"."+i+" <"+(+s+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var s=t.loose?o[l.TILDELOOSE]:o[l.TILDE];return e.replace(s,(function(t,s,n,i,a){var o;return r("tilde",e,t,s,n,i,a),k(s)?o="":k(n)?o=">="+s+".0.0 <"+(+s+1)+".0.0":k(i)?o=">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0":a?(r("replaceTilde pr",a),o=">="+s+"."+n+"."+i+"-"+a+" <"+s+"."+(+n+1)+".0"):o=">="+s+"."+n+"."+i+" <"+s+"."+(+n+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var s=t.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return e.replace(s,(function(s,n,i,a,o,u){r("xRange",e,s,n,i,a,o,u);var l=k(i),c=l||k(a),p=c||k(o),h=p;return"="===n&&h&&(n=""),u=t.includePrerelease?"-0":"",l?s=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(c&&(a=0),o=0,">"===n?(n=">=",c?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===n&&(n="<",c?i=+i+1:a=+a+1),s=n+i+"."+a+"."+o+u):c?s=">="+i+".0.0"+u+" <"+(+i+1)+".0.0"+u:p&&(s=">="+i+"."+a+".0"+u+" <"+i+"."+(+a+1)+".0"+u),r("xRange return",s),s}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(o[l.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter((function(e){return!!e.match(n)}))),i.map((function(e){return new F(e,this.options)}),this)},I.prototype.intersects=function(e,t){if(!(e instanceof I))throw new TypeError("a Range is required");return this.set.some((function(r){return _(r,t)&&e.set.some((function(e){return _(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new I(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},I.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new g(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1},t.satisfies=N,t.maxSatisfying=function(e,t,r){var s=null,n=null;try{var i=new I(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(s&&-1!==n.compare(e)||(n=new g(s=e,r)))})),s},t.minSatisfying=function(e,t,r){var s=null,n=null;try{var i=new I(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(s&&1!==n.compare(e)||(n=new g(s=e,r)))})),s},t.minVersion=function(e,t){e=new I(e,t);var r=new g("0.0.0");if(e.test(r))return r;if(r=new g("0.0.0-0"),e.test(r))return r;r=null;for(var s=0;s<e.set.length;++s)e.set[s].forEach((function(e){var t=new g(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!x(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return r&&e.test(r)?r:null},t.validRange=function(e,t){try{return new I(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return M(e,t,"<",r)},t.gtr=function(e,t,r){return M(e,t,">",r)},t.outside=M,t.prerelease=function(e,t){var r=y(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new I(e,r),t=new I(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof g)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var s;(s=o[l.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),o[l.COERCERTL].lastIndex=s.index+s[1].length+s[2].length;o[l.COERCERTL].lastIndex=-1}else r=e.match(o[l.COERCE]);return null===r?null:y(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},28885:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MATCH_COMPLETIONS=t.BASE_COMPLETIONS=void 0;const n=r(62294),i=s(r(82328)),a=r(15403);t.BASE_COMPLETIONS=[].concat(a.EXPRESSION_OPERATORS,a.CONVERSION_OPERATORS,a.BSON_TYPES,a.STAGE_OPERATORS),t.MATCH_COMPLETIONS=[].concat(a.QUERY_OPERATORS,a.BSON_TYPES);const o=a.STAGE_OPERATORS.filter((({namespaces:e})=>1===e.length&&e[0]===a.DATABASE));function u(e,t,r){const s=e.connectionInfo(),n=e.apiVersionInfo();let o;o=(null==n?void 0:n.strict)&&t.apiVersions?t.apiVersions.includes(+n.version):!t[r]||!(null==s?void 0:s.server_version)||i.default.gte(s.server_version,t[r]);const u=!t.env||!s||(s.is_data_federation?t.env.includes(a.ADL):s.is_atlas||s.is_local_atlas?t.env.includes(a.ATLAS):t.env.includes(a.ON_PREM));return o&&u}function l(e,t){return t.includes("$project")?a.ACCUMULATORS.filter((t=>u(e,t,"projectVersion"))):t.includes("$group")?a.ACCUMULATORS:[]}function c(e,t,r,s){return t.filter((t=>t.name&&t.name.startsWith(r)&&u(e,t,"version"))).map((e=>`${s}${e.name}`))}function p(e,t,r,s){const n=Object.keys(t).filter((s=>{var n;if(!s.toLowerCase().startsWith(r.toLowerCase()))return!1;if(t[s].deprecated)return!1;const a=e.apiVersionInfo();let o,u;if((null==a?void 0:a.strict)&&(u=t[s].apiVersions))o=+a.version>=u[0]&&+a.version<=u[1];else{const r=null===(n=e.connectionInfo())||void 0===n?void 0:n.server_version;if(!r)return!0;const a=t[s].serverVersions;o=!a||i.default.gte(r,a[0])&&i.default.lte(r,a[1])}const l=t[s].topologies,c=!l||l.includes(e.topology());return o&&c}));return s?n.map((e=>`${s.slice(0,-1).join(".")}.${e}`)):n}t.default=async function(e,r){var s,i,a;const u=n.signatures.ShellApi.attributes,h=n.signatures.Collection.attributes,d=n.signatures.Database.attributes,f=n.signatures.AggregationCursor.attributes,m=n.signatures.Cursor.attributes,y=n.signatures.ReplicaSet.attributes,g=n.signatures.ShellConfig.attributes,b=n.signatures.Shard.attributes,E=r.split(/(?<!\S)(?=\S)/),A=E[0].trim();if(null===(s=u[A])||void 0===s?void 0:s.isDirectShellCommand){const t=u[A].shellCommandCompleter;return t?(1===E.length&&(E[0].trimEnd()===E[0]&&(E[0]+=" "),E.push("")),[(await t(e,E.map((e=>e.trim())))||[]).map((e=>[...E.slice(0,-1),e].join(""))),r,"exclusive"]):[[r],r,"exclusive"]}const x=r.split("."),v=x[0],C=x[x.length-1];if(x.length<=1){const t=p(e,u,C);return[t.length?t:[],r]}if(/\bdb\b/.exec(v)&&2===x.length){if(/aggregate\s*\(\s*\[\s*\{\s*/.exec(C)){const s=r.split("{"),n=(null===(i=s.pop())||void 0===i?void 0:i.trim())||"",a=n?r.split(n).shift():r,u=c(e,s.length<=2?o:[...t.BASE_COMPLETIONS,...l(e,C)],n,a);return[u.length?u:[],r]}const s=p(e,d,C,x),n=await e.getCollectionCompletionsForCurrentDb(C.trim());return s.push(...n.map((e=>`${x[0]}.${e}`))),[s.length?s:[],r]}if(/\bdb\b/.exec(v)&&x.length>2){if(!/^\s*\w+\s*$/.exec(x[1])&&!/\bgetCollection\b/.exec(x[1]))return[[],r];if(x.length>3){if(/\baggregate\b/.exec(x[2])){const t=p(e,f,C,x);return[t.length?t:[],r]}if(/\bfind\b/.exec(x[2])){const t=p(e,m,C,x);return[t.length?t:[],r]}return[[],r]}if(x[2].includes("([")||x[2].includes("({")){let s;s=/\baggregate\b/.exec(x[2])?[...t.BASE_COMPLETIONS,...l(e,C)]:t.MATCH_COMPLETIONS;const n=null===(a=r.split("{").pop())||void 0===a?void 0:a.trim(),i=c(e,s,n||"",n?r.split(n).shift():r);return[i.length?i:[],r]}const s=p(e,h,C,x);return[s.length?s:[],r]}if(/\bsh\b/.exec(v)&&2===x.length){const t=p(e,b,C,x);return[t.length?t:[],r]}if(/\brs\b/.exec(v)&&2===x.length){const t=p(e,y,C,x);return[t.length?t:[],r]}if(/\bconfig\b/.exec(v)&&2===x.length){const t=p(e,g,C,x);return[t.length?t:[],r]}return[[],r]}},97980:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=t.createCommands=t.editorStyles=void 0;const a=i(r(99497)),o=r(30709),u=r(22970),l=()=>{};function c({state:e,dispatch:t}){return t(e.update({selection:{anchor:e.doc.length},scrollIntoView:!0,userEvent:"select"})),!0}function p(e){return[{key:"Enter",run:()=>(e.onEnter(),!0),preventDefault:!0},{key:"ArrowUp",run:t=>{const r=t.state.selection.main;return!!r.empty&&(0===t.lineBlockAt(r.from).from&&(e.onArrowUpOnFirstLine().then((e=>{e&&c(t)})),!0))},preventDefault:!0},{key:"ArrowDown",run:t=>{const r=t.state.selection.main;return!!r.empty&&(t.lineBlockAt(r.from).to===t.state.doc.length&&(e.onArrowDownOnLastLine().then((e=>{e&&c(t)})),!0))},preventDefault:!0},{key:"Mod-l",run:()=>(e.onClearCommand(),!0),preventDefault:!0},{key:"Ctrl-c",run:()=>(e.onSigInt(),!0),preventDefault:!0}]}t.editorStyles=(0,o.css)({"& .cm-content":{paddingTop:0,paddingBottom:0},"& .cm-line":{paddingLeft:1,paddingRight:1}}),t.createCommands=p;class h extends a.Component{constructor(e){super(e),this.editorId=Date.now(),this.autocompleter=e=>{var t;if(!(null===(t=this.props.autocompleter)||void 0===t?void 0:t.getCompletions))return null;const r=e.state.doc.lineAt(e.pos);return this.props.autocompleter.getCompletions(r.text).then((e=>e&&e.length>0?{from:r.from,options:e.map((({completion:e})=>({label:e})))}:null),(()=>null))},this.commands=p(this.props)}render(){return a.default.createElement(u.CodemirrorInlineEditor,{id:`mongosh-ace-${this.editorId}`,language:"javascript",ref:this.props.editorRef,readOnly:this.props.operationInProgress,text:this.props.value,onChangeText:this.props.onChange,commands:this.commands,maxLines:1/0,className:t.editorStyles,completer:this.autocompleter,lineHeight:24})}}t.Editor=h,h.defaultProps={onEnter:l,onArrowUpOnFirstLine:()=>Promise.resolve(!1),onArrowDownOnLastLine:()=>Promise.resolve(!1),onChange:l,onClearCommand:l,onSigInt:l,operationInProgress:!1,value:""}},35260:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordPrompt=void 0;const a=i(r(99497)),o=r(30709),u=(0,o.css)({paddingLeft:23,"& input":{fontSize:"13px",lineHeight:"24px",fontFamily:o.fontFamilies.code,backgroundColor:o.palette.gray.dark4,color:o.palette.gray.light3,padding:"0 3px",border:`1px solid ${o.palette.gray.light3}`,borderRadius:3}});class l extends a.Component{constructor(e){super(e),this.onKeyDown=e=>{switch(e.key){case"Enter":this.props.onFinish(e.target.value);break;case"Esc":case"Escape":this.props.onCancel()}}}render(){return a.default.createElement("label",{className:u},this.props.prompt,": ",a.default.createElement("input",{type:"password",onKeyDown:this.onKeyDown,autoFocus:!0}))}}t.PasswordPrompt=l},63642:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShellInput=void 0;const o=i(r(99497)),u=r(30709),l=r(97980),c=a(r(83748)),p=r(38409),h=(0,u.css)({padding:"0 8px",minHeight:"24px"});class d extends o.Component{constructor(e){super(e),this.state={currentValue:"",readOnly:!1},this.historyNavigationEntries=[],this.historyNavigationIndex=0,this.onChange=e=>{this.setState({currentValue:e})},this.historyBack=()=>new Promise((e=>{if(this.historyNavigationIndex>=this.historyNavigationEntries.length-1)return e(!1);this.historyNavigationIndex++,this.syncCurrentValueWithHistoryNavigation(e)})),this.historyNext=()=>new Promise((e=>{if(this.historyNavigationIndex<=0)return e(!1);this.historyNavigationIndex--,this.syncCurrentValueWithHistoryNavigation(e)})),this.onEnter=async()=>{this.props.onInput&&await this.props.onInput(this.state.currentValue),this.setState({currentValue:""})},this.initializeHistoryNavigation()}componentDidUpdate(e){e.history!==this.props.history&&this.initializeHistoryNavigation(),0===this.historyNavigationIndex&&(this.historyNavigationEntries[0]=this.state.currentValue)}initializeHistoryNavigation(){this.historyNavigationEntries=[this.state.currentValue,...this.props.history||[]],this.historyNavigationIndex=0}syncCurrentValueWithHistoryNavigation(e){const t=this.historyNavigationEntries[this.historyNavigationIndex];if(void 0===t)return e(!1);this.setState({currentValue:t},(()=>{e(!0)}))}render(){let e;if(this.props.operationInProgress)e=o.default.createElement(c.default,null);else if(this.props.prompt){const t=this.props.prompt.trim();e=t.endsWith(">")?o.default.createElement(o.default.Fragment,null,o.default.createElement("span",null,t.replace(/>$/g,"")),o.default.createElement(u.Icon,{size:12,glyph:"ChevronRight"})):o.default.createElement("span",null,t)}else e=o.default.createElement(u.Icon,{size:12,glyph:"ChevronRight"});const t=o.default.createElement(l.Editor,{autocompleter:this.props.autocompleter,onArrowUpOnFirstLine:this.historyBack,onArrowDownOnLastLine:this.historyNext,onChange:this.onChange,onEnter:this.onEnter,onClearCommand:this.props.onClearCommand,editorRef:this.props.editorRef,value:this.state.currentValue,operationInProgress:this.props.operationInProgress,onSigInt:this.props.onSigInt});return o.default.createElement(p.LineWithIcon,{className:h,icon:e,"data-testid":"shell-input"},t)}}t.ShellInput=d},83748:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=i(r(99497)),o=r(30709),u=(0,o.css)({"& div":{borderTopColor:o.palette.green.light2}});class l extends a.Component{render(){const{size:e}=this.props;return a.default.createElement("div",{className:u},a.default.createElement(o.SpinLoader,{size:e}))}}l.defaultProps={size:"12px"},t.default=l},85402:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShellOutputLine=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(30709),c=r(38409),p=r(50126),h=r(11878),d=r(92425),f=r(23563),m=r(11188),y=r(56100),g=r(65911),b=r(99435),E=r(24661),A=r(4418),x=r(55528),v=(0,l.css)({padding:"0 8px"}),C=(0,l.css)({backgroundColor:l.palette.red.light2,color:l.palette.red.dark3}),P=(0,l.css)({color:l.palette.gray.dark1}),S=(0,l.css)({color:"inherit"});class w extends o.Component{renderValue(){const{type:e,value:t,format:r}=this.props.entry;return"input"===r||this.isPreformattedResult(t,e)?o.default.createElement("pre",null,t):"string"==typeof t&&"InspectResult"===e?o.default.createElement(E.SimpleTypeOutput,{value:t,raw:!0}):this.isPrimitiveOrFunction(t)?o.default.createElement(E.SimpleTypeOutput,{value:t}):"Help"===e?o.default.createElement(p.HelpOutput,{value:t}):"ShowDatabasesResult"===e?o.default.createElement(d.ShowDbsOutput,{value:t}):"StatsResult"===e?o.default.createElement(b.StatsResultOutput,{value:t}):"ListCommandsResult"===e?o.default.createElement(E.SimpleTypeOutput,{value:t}):"ShowCollectionsResult"===e?o.default.createElement(f.ShowCollectionsOutput,{value:t}):"ShowBannerResult"===e?o.default.createElement(h.ShowBannerResultOutput,{value:t}):"Cursor"===e||"AggregationCursor"===e?o.default.createElement(m.CursorOutput,{value:t}):"CursorIterationResult"===e?o.default.createElement(y.CursorIterationResultOutput,{value:t}):"ShowProfileResult"===e?o.default.createElement(x.ShowProfileOutput,{value:t}):this.isError(t)?o.default.createElement(A.ErrorOutput,{value:t}):o.default.createElement(g.ObjectOutput,{value:t})}isError(e){return"string"==typeof e.message&&"string"==typeof e.stack}isPreformattedResult(e,t){return"string"==typeof e&&("Database"===t||"Collection"===t||!t)}isPrimitiveOrFunction(e){return e!==Object(e)||"function"==typeof e}getIconGlyph(){const{format:e}=this.props.entry;return"input"===e?"ChevronRight":"error"===e?"XWithCircle":"ChevronLeft"}render(){const{format:e}=this.props.entry,t=o.default.createElement(l.Icon,{size:12,glyph:this.getIconGlyph(),className:(0,l.cx)("error"===e?S:P)});return o.default.createElement(c.LineWithIcon,{className:(0,l.cx)(v,"error"===e&&C),icon:t,"data-testid":"shell-output"},this.renderValue())}}t.ShellOutputLine=w,w.propTypes={entry:u.default.object.isRequired}},52804:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShellOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(85402);class c extends o.Component{constructor(){super(...arguments),this.renderLine=(e,t)=>o.default.createElement(l.ShellOutputLine,{key:`shell-output-entry-${t}`,entry:e})}render(){return this.props.output.filter((e=>void 0!==e.value)).map(this.renderLine)}}t.ShellOutput=c,c.propTypes={output:u.default.arrayOf(u.default.any).isRequired}},60494:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Shell=void 0;const a=i(r(99497)),o=r(30709),u=r(59215),l=r(35260),c=r(63642),p=r(52804),h=(0,o.css)({fontSize:"13px",lineHeight:"24px",fontFamily:o.fontFamilies.code,backgroundColor:o.palette.gray.dark4,color:o.palette.gray.light3,padding:"4px 0",width:"100%",height:"100%",overflowY:"scroll",overflowX:"hidden","& a, & a:link, & a:visited, & a:hover, & a:active":{fontWeight:"bold",color:"inherit",backgroundColor:"transparent",textDecoration:"underline",cursor:"pointer"},"& pre, & code":{fontFamily:"inherit",background:"transparent",border:"0px transparent",padding:0,margin:0,fontSize:"inherit",borderRadius:0,color:"inherit",tabSize:2}}),d=()=>{};class f extends a.Component{constructor(){super(...arguments),this.shellInputElement=null,this.editor=null,this.onFinishPasswordPrompt=d,this.onCancelPasswordPrompt=d,this.state={operationInProgress:!1,output:this.props.initialOutput.slice(-this.props.maxOutputLength),history:this.props.initialHistory.slice(0,this.props.maxHistoryLength),passwordPrompt:"",shellPrompt:">"},this.evaluate=async e=>{let t;try{this.props.onOperationStarted(),this.props.runtime.setEvaluationListener(this);const r=await this.props.runtime.evaluate(e);t={format:"output",type:r.type,value:r.printable}}catch(e){t={format:"error",value:e}}finally{await this.updateShellPrompt(),this.props.onOperationEnd()}return t},this.onClearCommand=()=>{const e=[];Object.freeze(e),this.setState({output:e}),this.props.onOutputChanged(e)},this.onPrint=e=>{const t=this.addEntriesToOutput(e.map((e=>({format:"output",type:e.type,value:e.printable}))));this.setState({output:t}),this.props.onOutputChanged(t)},this.onPrompt=(e,t)=>{if("password"!==t)return Promise.reject(new Error("yes/no prompts not implemented yet"));const r=()=>{this.onFinishPasswordPrompt=d,this.onCancelPasswordPrompt=d,this.setState({passwordPrompt:""}),setTimeout(this.focusEditor,1)},s=new Promise(((e,t)=>{this.onFinishPasswordPrompt=t=>{r(),e(t)},this.onCancelPasswordPrompt=()=>{r(),t(new Error("Canceled by user"))}}));return this.setState({passwordPrompt:e}),s},this.onInput=async e=>{if(!e||""===e.trim())return void this.appendEmptyInput();const t={format:"input",value:e};let r=this.addEntriesToOutput([t]);this.setState({operationInProgress:!0,output:r}),this.props.onOutputChanged(r);const s=await this.evaluate(e);r=this.addEntriesToOutput([s]);const n=this.addEntryToHistory(e);this.setState({operationInProgress:!1,output:r,history:n}),this.props.onOutputChanged(r),this.props.onHistoryChanged(n)},this.onShellClicked=e=>{e.currentTarget===e.target&&this.focusEditor()},this.setEditor=e=>{this.editor=e},this.focusEditor=()=>{var e;null===(e=this.editor)||void 0===e||e.focus()},this.onSigInt=()=>this.state.operationInProgress&&this.props.runtime.interrupt?this.props.runtime.interrupt():Promise.resolve(!1)}componentDidMount(){this.scrollToBottom(),this.updateShellPrompt()}componentDidUpdate(){this.scrollToBottom()}async updateShellPrompt(){var e;let t=">",r=!1;try{this.props.runtime.setEvaluationListener(this);const e=await this.props.runtime.evaluate("\n (() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()");null===e.type&&"string"==typeof e.printable&&(t=e.printable,r=!0)}catch(e){}if(!r)try{t=null!==(e=await this.props.runtime.getShellPrompt())&&void 0!==e?e:">"}catch(e){}this.setState({shellPrompt:t})}addEntryToHistory(e){const t=[e,...this.state.history];return(0,u.changeHistory)(t,this.props.redactInfo?"redact-sensitive-data":"keep-sensitive-data"),t.splice(this.props.maxHistoryLength),Object.freeze(t),t}addEntriesToOutput(e){const t=[...this.state.output,...e];return t.splice(0,t.length-this.props.maxOutputLength),Object.freeze(t),t}appendEmptyInput(){const e=this.addEntriesToOutput([{format:"input",value:" "}]);this.setState({output:e})}scrollToBottom(){this.shellInputElement&&this.shellInputElement.scrollIntoView()}renderInput(){return this.state.passwordPrompt?a.default.createElement(l.PasswordPrompt,{onFinish:this.onFinishPasswordPrompt,onCancel:this.onCancelPasswordPrompt,prompt:this.state.passwordPrompt}):a.default.createElement(c.ShellInput,{prompt:this.state.shellPrompt,autocompleter:this.props.runtime,history:this.state.history,onClearCommand:this.onClearCommand,onInput:this.onInput,operationInProgress:this.state.operationInProgress,editorRef:this.setEditor,onSigInt:this.onSigInt})}render(){return a.default.createElement(o.ThemeProvider,{theme:{theme:o.Theme.Dark,enabled:!0}},a.default.createElement("div",{"data-testid":"shell",className:h,onClick:this.onShellClicked},a.default.createElement("div",null,a.default.createElement(p.ShellOutput,{output:this.state.output})),a.default.createElement("div",{ref:e=>{this.shellInputElement=e}},this.renderInput())))}}t.Shell=f,f.defaultProps={onHistoryChanged:d,onOperationStarted:d,onOperationEnd:d,onOutputChanged:d,maxOutputLength:1e3,maxHistoryLength:1e3,initialOutput:[],initialHistory:[]}},56100:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorIterationResultOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(65911),c=a(r(30102));class p extends o.Component{constructor(){super(...arguments),this.renderDocument=(e,t)=>o.default.createElement(l.ObjectOutput,{key:`document-${t}`,value:e})}render(){if(!this.props.value.documents.length)return o.default.createElement("div",null,c.default.__("shell-api.classes.Cursor.iteration.no-cursor"));const e=this.props.value.cursorHasMore?o.default.createElement("pre",null,c.default.__("shell-api.classes.Cursor.iteration.type-it-for-more")):"";return o.default.createElement("div",null,this.props.value.documents.map(this.renderDocument),e)}}t.CursorIterationResultOutput=p,p.propTypes={value:u.default.arrayOf(u.default.object).isRequired}},11188:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(56100);class c extends o.Component{render(){return this.props.value.documents.length?o.default.createElement(l.CursorIterationResultOutput,{value:this.props.value}):o.default.createElement("pre",null)}}t.CursorOutput=c,c.propTypes={value:u.default.arrayOf(u.default.object).isRequired}},4418:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(1296),c=r(24661),p=r(61804);class h extends o.Component{renderCollapsed(e){return o.default.createElement("div",null,o.default.createElement("pre",null,o.default.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),e()}},this.props.value.name||"Error",":")," ",this.props.value.message))}formatStack(){return this.props.value.stack.split("\n").slice(1).join("\n")}formatErrorBugReportInfo(){if((0,l.isShouldReportAsBugError)(this.props.value))return o.default.createElement("div",null,"This is an error inside mongosh. Please"," ",o.default.createElement("a",{href:"https://jira.mongodb.org/projects/MONGOSH/issues",target:"_blank",rel:"noreferrer"},"file a bug report for the MONGOSH project"),".")}formatErrorInfo(){if(this.props.value.errInfo)return o.default.createElement("div",null,"Additional information:",o.default.createElement(c.SimpleTypeOutput,{value:this.props.value.errInfo}))}formatErrorResult(){if(this.props.value.result)return o.default.createElement("div",null,"Result:",o.default.createElement(c.SimpleTypeOutput,{value:this.props.value.result}))}renderExpanded(e){return o.default.createElement("div",null,this.renderCollapsed(e),o.default.createElement("div",null,this.formatErrorBugReportInfo(),this.formatErrorInfo(),this.formatErrorResult(),o.default.createElement("pre",null,this.formatStack())))}render(){return o.default.createElement(p.Expandable,null,((e,t)=>e?this.renderExpanded(t):this.renderCollapsed(t)))}}t.ErrorOutput=h,h.propTypes={value:u.default.any}},50126:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HelpOutput=void 0;const o=i(r(99497)),u=r(30709),l=a(r(91998)),c=a(r(30102)),p=(0,u.css)({"& table, & caption, & tbody, & tfoot, & thead, & tr, & th, & td":{margin:0,padding:0,border:0,outline:0,fontSize:"100%",verticalAlign:"baseline",background:"transparent"},"& table":{width:"100%",tableLayout:"fixed",overflowWrap:"break-word",textAlign:"left",margin:"1em 0","& th":{width:"25%",fontWeight:"bold"},"& th, & td":{textAlign:"left"}}});class h extends o.Component{constructor(){super(...arguments),this.renderAttrTable=e=>{if(e&&e.length)return o.default.createElement("table",null,o.default.createElement("tbody",null,e.map(this.renderAttrTableRow)))},this.renderAttrTableRow=(e,t)=>o.default.createElement("tr",{key:`row-${t}`},o.default.createElement("th",null,e.name),o.default.createElement("td",null,e.description))}renderHelpDocsLink(e){if(e)return o.default.createElement("div",null,c.default.__("cli-repl.args.moreInformation")," ",o.default.createElement("a",{href:e,target:"_blank",rel:"noreferrer"},e))}renderHelpText(e){if(e)return o.default.createElement("div",null,e)}render(){const e=this.props.value;return o.default.createElement("div",{className:p},this.renderHelpText(e.help),this.renderAttrTable(e.attr),this.renderHelpDocsLink(e.docs))}}t.HelpOutput=h,h.propTypes={value:l.default.object.isRequired}},65911:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(59196),c=r(81402);class p extends o.Component{render(){return o.default.createElement(l.SyntaxHighlight,{code:(0,c.inspect)(this.props.value)})}}t.ObjectOutput=p,p.propTypes={value:u.default.any}},11878:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowBannerResultOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(30709);class c extends o.Component{render(){var e,t;return o.default.createElement(o.default.Fragment,null,(null===(e=this.props.value)||void 0===e?void 0:e.header)&&o.default.createElement(l.H3,null,this.props.value.header),(null===(t=this.props.value)||void 0===t?void 0:t.content)&&o.default.createElement("pre",null,this.props.value.content))}}t.ShowBannerResultOutput=c,c.propTypes={value:u.default.any}},23563:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCollectionsOutput=void 0;const o=r(30709),u=a(r(91998)),l=i(r(99497)),c=(0,o.css)({fontWeight:"bold"}),p=(0,o.css)({color:o.palette.gray.base});function h(e){return e.name.startsWith("system.")||e.name.startsWith("enxcol_.")}class d extends l.Component{constructor(){super(...arguments),this.renderTable=e=>{const t=[],r=[];let s=0;e.forEach((e=>{s=Math.max(s,e.name.length),h(e)?t.push(e):r.push(e)}));const n=[];return[...r,...t].forEach(((e,t)=>{const r=s-e.name.length+1,i=(0,o.cx)(c,h(e)&&p);n.push(l.default.createElement("span",{key:`row-${t}`},l.default.createElement("span",{className:i},e.name),e.badge?e.badge.padStart(e.badge.length+r):"",l.default.createElement("br",null)))})),l.default.createElement(l.default.Fragment,null,n)}}render(){return l.default.createElement("pre",null,this.renderTable(this.props.value))}}t.ShowCollectionsOutput=d,d.propTypes={value:u.default.array}},92425:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDbsOutput=void 0;const o=i(r(99497)),u=a(r(480)),l=a(r(91998)),c=a(r(32333));function p(e){const t=e<=1e3?"0":"0.00";return(0,u.default)(e).format(t+" ib")}class h extends o.Component{constructor(){super(...arguments),this.renderTable=e=>{const t=e.map((e=>[e.name,p(e.sizeOnDisk)]));return(0,c.default)(t,{align:["l","r"]})}}render(){return o.default.createElement("pre",null,this.renderTable(this.props.value))}}t.ShowDbsOutput=h,h.propTypes={value:l.default.any}},55528:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowProfileOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(24661),c=r(81402);class p extends o.Component{render(){if(0===this.props.value.count)return o.default.createElement(l.SimpleTypeOutput,{value:'db.system.profile is empty.\\nUse db.setProfilingLevel(2) will enable profiling.\\nUse db.getCollection("system.profile").find() to show raw profile entries.'});const e=this.props.value.result.map((e=>{const t=`${e.op} ${e.ns} ${e.millis}ms ${String(e.ts).substring(0,24)}\n`;let r="";for(const t in e){if("op"===t||"ns"===t||"millis"===t||"ts"===t)continue;const s=e[t],n=typeof s;r+="object"===n?t+":"+(0,c.inspect)(s)+" ":"boolean"===n?t+" ":t+":"+s+" "}return`${t}${r}`}));return o.default.createElement(l.SimpleTypeOutput,{value:e})}}t.ShowProfileOutput=p,p.propTypes={value:u.default.object}},24661:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleTypeOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(59196),c=r(81402);class p extends o.Component{render(){const e=this.props.raw?this.props.value:(0,c.inspect)(this.props.value);return o.default.createElement(l.SyntaxHighlight,{code:e})}}t.SimpleTypeOutput=p,p.propTypes={value:u.default.any,raw:u.default.bool}},99435:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsResultOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(65911);class c extends o.Component{render(){const e=[];for(const[t,r]of Object.entries(this.props.value))e.length>0&&e.push(o.default.createElement("hr",{key:`${t}-separator`})),e.push(o.default.createElement("div",{key:t},o.default.createElement("h4",null,t),o.default.createElement(l.ObjectOutput,{value:r})));return o.default.createElement("div",null,e)}}t.StatsResultOutput=c,c.propTypes={value:u.default.any}},61804:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Expandable=void 0;const a=i(r(99497)),o=r(30709),u=r(30709),l=r(38409),c=(0,o.css)({cursor:"pointer"});class p extends a.Component{constructor(){super(...arguments),this.state={expanded:!1},this.toggle=()=>{this.setState({expanded:!this.state.expanded})}}render(){const e=a.default.createElement(u.Icon,{size:12,glyph:this.state.expanded?"CaretDown":"CaretRight",className:c,onClick:this.toggle});return a.default.createElement(l.LineWithIcon,{icon:e,"data-testid":"shell-output"},"function"==typeof this.props.children?this.props.children(this.state.expanded,this.toggle):this.props.children)}}t.Expandable=p,p.propTypes={}},81402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=void 0;const s=r(21764),n=r(63292),i=s.inspect.custom||"inspect",a=new WeakSet;function o(e,t){try{Object.defineProperty(e,i,{writable:!0,configurable:!0,enumerable:!1,value:function(...e){try{return t.call(this,...e)}catch(e){return console.warn("Could not inspect bson object",{obj:this,err:e}),(0,s.inspect)(this,{customInspect:!1})}}})}catch(t){console.warn("Could not add inspect key to object",{obj:e,err:t})}}function u(e){if("object"!=typeof e&&"function"!=typeof e||null===e)return;if(a.has(e))return;a.add(e),u(Object.getPrototypeOf(e));const t=Object.getOwnPropertyDescriptors(e);for(const{value:e}of Object.values(t))u(e);const r=e._bsontype;r&&r in n.bsonStringifiers&&n.bsonStringifiers[r]&&!t[i]&&!Object.isSealed(e)?o(e,n.bsonStringifiers[r]):function(e){try{return Date.prototype.getTime.call(e),!0}catch(e){return!1}}(e)&&o(e,(function(){return this.toISOString()}))}t.inspect=function(e){return u(e),(0,s.inspect)(e,{customInspect:!0,depth:1e3,breakLength:0})}},38409:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LineWithIcon=void 0;const o=i(r(99497)),u=r(30709),l=a(r(91998)),c=(0,u.css)({display:"flex",flexDirection:"row"}),p=(0,u.css)({display:"flex",alignItems:"center",marginRight:"3px",maxHeight:"24px"}),h=(0,u.css)({flex:1,overflowX:"auto"});class d extends o.Component{render(){return o.default.createElement("div",{className:(0,u.cx)(this.props.className,c),"data-testid":this.props["data-testid"]},o.default.createElement("span",{className:p},this.props.icon),o.default.createElement("div",{className:h},this.props.children))}}t.LineWithIcon=d,d.propTypes={icon:l.default.object.isRequired,className:l.default.string,"data-testid":l.default.string}},59196:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyntaxHighlight=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(22970),c=r(97980);class p extends o.Component{render(){return o.default.createElement(l.CodemirrorInlineEditor,{readOnly:!0,initialText:this.props.code,maxLines:1/0,lineHeight:24,className:c.editorStyles})}}t.SyntaxHighlight=p,p.propTypes={code:u.default.string.isRequired}},46236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeInterpreterEnvironment=void 0,t.IframeInterpreterEnvironment=class{constructor(e){this.window=e,this.sloppyEval("delete window.prompt")}sloppyEval(e){return this.window.eval(e)}getContextObject(){return this.window}}},2805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeRuntime=void 0;const s=r(46236),n=r(4645);t.IframeRuntime=class{constructor(e){this.openContextRuntime=null,this.readyPromise=null,this.iframe=null,this.container=null,this.evaluationListener=null,this.serviceProvider=e}setEvaluationListener(e){const t=this.evaluationListener;return this.evaluationListener=e,this.openContextRuntime&&this.openContextRuntime.setEvaluationListener(e),t}async evaluate(e){const t=await this.initialize();return await t.evaluate(e)}async getCompletions(e){const t=await this.initialize();return await t.getCompletions(e)}async getShellPrompt(){const e=await this.initialize();return await e.getShellPrompt()}async initialize(){if(null!==this.readyPromise)return await this.readyPromise,this.openContextRuntime;this.container=document.createElement("div"),this.container.style.display="none",this.container.insertAdjacentHTML("beforeend",'<iframe src="about:blank" style="display: none" sandbox="allow-same-origin" />');const e=this.container.firstElementChild;this.iframe=e,this.readyPromise=new Promise((t=>{e.onload=()=>{t()}})),document.body.appendChild(this.container);const t=new s.IframeInterpreterEnvironment(e.contentWindow);return this.openContextRuntime=new n.OpenContextRuntime(this.serviceProvider,t),this.evaluationListener&&this.openContextRuntime.setEvaluationListener(this.evaluationListener),this.initialize()}async destroy(){if(!this.iframe)return;const e=this.iframe.parentNode;e&&e.removeChild(this.iframe)}}},11421:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2805),t)},22859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeRuntime=t.Shell=void 0;var s=r(60494);Object.defineProperty(t,"Shell",{enumerable:!0,get:function(){return s.Shell}});var n=r(11421);Object.defineProperty(t,"IframeRuntime",{enumerable:!0,get:function(){return n.IframeRuntime}})},480:function(e,t,r){var s,n;s=function(){var e,t,r,s,n,i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(e,t){this._input=e,this._value=t}return(e=function(r){var s,n,a,o;if(e.isNumeral(r))s=r.value();else if(0===r||void 0===r)s=0;else if(null===r||t.isNaN(r))s=null;else if("string"==typeof r)if(u.zeroFormat&&r===u.zeroFormat)s=0;else if(u.nullFormat&&r===u.nullFormat||!r.replace(/[^0-9]+/g,"").length)s=null;else{for(n in i)if((o="function"==typeof i[n].regexps.unformat?i[n].regexps.unformat():i[n].regexps.unformat)&&r.match(o)){a=i[n].unformat;break}s=(a=a||e._.stringToNumber)(r)}else s=Number(r)||null;return new l(r,s)}).version="2.0.6",e.isNumeral=function(e){return e instanceof l},e._=t={numberToFormat:function(t,r,s){var n,i,o,u,l,c,p,h,d=a[e.options.currentLocale],f=!1,m=!1,y="",g=1e12,b=1e9,E=1e6,A="",x=!1;if(t=t||0,i=Math.abs(t),e._.includes(r,"(")?(f=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(l=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(n=!!(n=r.match(/a(k|m|b|t)?/))&&n[1],e._.includes(r," a")&&(y=" "),r=r.replace(new RegExp(y+"a[kmbt]?"),""),i>=g&&!n||"t"===n?(y+=d.abbreviations.trillion,t/=g):i<g&&i>=b&&!n||"b"===n?(y+=d.abbreviations.billion,t/=b):i<b&&i>=E&&!n||"m"===n?(y+=d.abbreviations.million,t/=E):(i<E&&i>=1e3&&!n||"k"===n)&&(y+=d.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),o=t.toString().split(".")[0],u=r.split(".")[1],c=r.indexOf(","),h=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),A=e._.toFixed(t,u[0].length+u[1].length,s,u[1].length)):A=e._.toFixed(t,u.length,s),o=A.split(".")[0],A=e._.includes(A,".")?d.delimiters.decimal+A.split(".")[1]:"",m&&0===Number(A.slice(1))&&(A="")):o=e._.toFixed(t,0,s),y&&!n&&Number(o)>=1e3&&y!==d.abbreviations.trillion)switch(o=String(Number(o)/1e3),y){case d.abbreviations.thousand:y=d.abbreviations.million;break;case d.abbreviations.million:y=d.abbreviations.billion;break;case d.abbreviations.billion:y=d.abbreviations.trillion}if(e._.includes(o,"-")&&(o=o.slice(1),x=!0),o.length<h)for(var v=h-o.length;v>0;v--)o="0"+o;return c>-1&&(o=o.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===r.indexOf(".")&&(o=""),p=o+A+(y||""),f?p=(f&&x?"(":"")+p+(f&&x?")":""):l>=0?p=0===l?(x?"-":"+")+p:p+(x?"-":"+"):x&&(p="-"+p),p},stringToNumber:function(e){var t,r,s,n=a[u.currentLocale],i=e,o={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&e===u.zeroFormat)r=0;else if(u.nullFormat&&e===u.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==n.delimiters.decimal&&(e=e.replace(/\./g,"").replace(n.delimiters.decimal,".")),o)if(s=new RegExp("[^a-zA-Z]"+n.abbreviations[t]+"(?:\\)|(\\"+n.currency.symbol+")?(?:\\))?)?$"),i.match(s)){r*=Math.pow(10,o[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,s=Object(e),n=s.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<n&&!(i in s);)i++;if(i>=n)throw new TypeError("Reduce of empty array with no initial value");r=s[i++]}for(;i<n;i++)i in s&&(r=t(r,s[i],i,s));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var s=t.multiplier(r);return e>s?e:s}),1)},toFixed:function(e,t,r,s){var n,i,a,o,u=e.toString().split("."),l=t-(s||0);return n=2===u.length?Math.min(Math.max(u[1].length,l),t):l,a=Math.pow(10,n),o=(r(e+"e+"+n)/a).toFixed(n),s>t-n&&(i=new RegExp("\\.?0{1,"+(s-(t-n))+"}$"),o=o.replace(i,"")),o}},e.options=u,e.formats=i,e.locales=a,e.locale=function(e){return e&&(u.currentLocale=e.toLowerCase()),u.currentLocale},e.localeData=function(e){if(!e)return a[u.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in o)u[e]=o[e]},e.zeroFormat=function(e){u.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){u.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){u.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var s,n,i,a,o,u,l,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{l=e.localeData(r)}catch(t){l=e.localeData(e.locale())}return i=l.currency.symbol,o=l.abbreviations,s=l.delimiters.decimal,n="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==i)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==o.thousand&&c[0]!==o.million&&c[0]!==o.billion&&c[0]!==o.trillion)||(u=new RegExp(n+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(s)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(u):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(u)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(u)||!a[1].match(/^\d+$/))))},e.fn=l.prototype={clone:function(){return e(this)},format:function(t,r){var s,n,a,o=this._value,l=t||u.defaultFormat;if(r=r||Math.round,0===o&&null!==u.zeroFormat)n=u.zeroFormat;else if(null===o&&null!==u.nullFormat)n=u.nullFormat;else{for(s in i)if(l.match(i[s].regexps.format)){a=i[s].format;break}n=(a=a||e._.numberToFormat)(o,l,r)}return n},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,s,n){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,s,n){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,s,n){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,s,n){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,s){var n,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),n=e._.numberToFormat(t,r,s),e._.includes(n,")")?((n=n.split("")).splice(-1,0,i+"BPS"),n=n.join("")):n=n+i+"BPS",n},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),s={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},n="("+(n=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(s.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(n)},format:function(t,n,i){var a,o,u,l=e._.includes(n,"ib")?s:r,c=e._.includes(n," b")||e._.includes(n," ib")?" ":"";for(n=n.replace(/\s?i?b/,""),a=0;a<=l.suffixes.length;a++)if(o=Math.pow(l.base,a),u=Math.pow(l.base,a+1),null===t||0===t||t>=o&&t<u){c+=l.suffixes[a],o>0&&(t/=o);break}return e._.numberToFormat(t,n,i)+c},unformat:function(t){var n,i,a=e._.stringToNumber(t);if(a){for(n=r.suffixes.length-1;n>=0;n--){if(e._.includes(t,r.suffixes[n])){i=Math.pow(r.base,n);break}if(e._.includes(t,s.suffixes[n])){i=Math.pow(s.base,n);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,s){var n,i,a=e.locales[e.options.currentLocale],o={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),n=e._.numberToFormat(t,r,s),t>=0?(o.before=o.before.replace(/[\-\(]/,""),o.after=o.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(o.before,"-")&&!e._.includes(o.before,"(")&&(o.before="-"+o.before),i=0;i<o.before.length;i++)switch(o.before[i]){case"$":n=e._.insert(n,a.currency.symbol,i);break;case" ":n=e._.insert(n," ",i+a.currency.symbol.length-1)}for(i=o.after.length-1;i>=0;i--)switch(o.after[i]){case"$":n=i===o.after.length-1?n+a.currency.symbol:e._.insert(n,a.currency.symbol,-(o.after.length-(1+i)));break;case" ":n=i===o.after.length-1?n+" ":e._.insert(n," ",-(o.after.length-(1+i)+a.currency.symbol.length-1))}return n}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,s){var n=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(n[0]),r,s)+"e"+n[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),s=Number(r[0]),n=Number(r[1]);return n=e._.includes(t,"e-")?n*=-1:n,e._.reduce([s,Math.pow(10,n)],(function(t,r,s,n){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,s){var n=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=n.ordinal(t),e._.numberToFormat(t,r,s)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,s){var n,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),n=e._.numberToFormat(t,r,s),e._.includes(n,")")?((n=n.split("")).splice(-1,0,i+"%"),n=n.join("")):n=n+i+"%",n},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var s=Math.floor(e/60/60),n=Math.floor((e-60*s*60)/60),i=Math.round(e-60*s*60-60*n);return s+":"+(n<10?"0"+n:n)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e},void 0===(n=s.call(t,r,t,e))||(e.exports=n)},3779:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShellApiAutocompleter=void 0;const n=s(r(28885));t.ShellApiAutocompleter=class{constructor(e){this.parameters=e}async getCompletions(e){if(!e)return[];const t=await(0,n.default)(this.parameters,e);return t&&t.length?t[0].map((e=>({completion:e}))):[]}}},4645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenContextRuntime=void 0;var s=r(29252);Object.defineProperty(t,"OpenContextRuntime",{enumerable:!0,get:function(){return s.OpenContextRuntime}})},29252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenContextRuntime=void 0;const s=r(3779),n=r(17702),i=r(62294),a=r(31065);t.OpenContextRuntime=class{constructor(e,t,r){this.autocompleter=null,this.evaluationListener=null,this.updatedConnectionInfoPromise=null,this.interpreterEnvironment=t,this.instanceState=new i.ShellInstanceState(e,r||new n.EventEmitter),this.instanceState.isInteractive=!0,this.shellEvaluator=new a.ShellEvaluator(this.instanceState),this.instanceState.setCtx(this.interpreterEnvironment.getContextObject())}async getCompletions(e){var t;return this.autocompleter||(this.autocompleter=new s.ShellApiAutocompleter(this.instanceState.getAutocompleteParameters()),null!==(t=this.updatedConnectionInfoPromise)&&void 0!==t||(this.updatedConnectionInfoPromise=this.instanceState.fetchConnectionInfo()),await this.updatedConnectionInfoPromise),this.autocompleter.getCompletions(e)}async evaluate(e){const t=this.interpreterEnvironment.sloppyEval.bind(this.interpreterEnvironment),{type:r,printable:s,source:n}=await this.shellEvaluator.customEval(t,e,this.interpreterEnvironment.getContextObject(),"");return{type:r,printable:s,source:n}}setEvaluationListener(e){const t=this.evaluationListener;return this.evaluationListener=e,this.instanceState.setEvaluationListener(e),t}async getShellPrompt(){var e;return null!==(e=this.updatedConnectionInfoPromise)&&void 0!==e||(this.updatedConnectionInfoPromise=this.instanceState.fetchConnectionInfo()),await this.updatedConnectionInfoPromise,await this.instanceState.getDefaultPrompt()}}},34101:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CommonErrors=void 0,function(e){e.InvalidArgument="COMMON-10001",e.InvalidOperation="COMMON-10002",e.Deprecated="COMMON-10003",e.CommandFailed="COMMON-10004",e.UnexpectedInternalError="COMMON-90001",e.NotImplemented="COMMON-90002"}(r||(t.CommonErrors=r={}))},1296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommonErrors=t.MongoshCommandFailed=t.MongoshDeprecatedError=t.MongoshUnimplementedError=t.MongoshInvalidInputError=t.MongoshInternalError=t.MongoshRuntimeError=t.MongoshWarning=t.MongoshBaseError=t.isShouldReportAsBugError=t.getScopeFromErrorCode=void 0;const s=r(34101);function n(e){if(!e)return;const t=/^([a-zA-Z0-9]+)-/.exec(e);return t?t[1]:void 0}Object.defineProperty(t,"CommonErrors",{enumerable:!0,get:function(){return s.CommonErrors}}),t.getScopeFromErrorCode=n,t.isShouldReportAsBugError=function(e){return(null==e?void 0:e.code)===s.CommonErrors.UnexpectedInternalError};class i extends Error{constructor(e,t,r,s){super(r?`[${r}] ${t}`:t),this.name=e,this.code=r,this.scope=n(r),this.metadata=s}}t.MongoshBaseError=i,t.MongoshRuntimeError=class extends i{constructor(e,t,r){super("MongoshRuntimeError",e,t,r)}},t.MongoshInternalError=class extends i{constructor(e,t){super("MongoshInternalError",e,s.CommonErrors.UnexpectedInternalError,t)}},t.MongoshUnimplementedError=class extends i{constructor(e,t,r){super("MongoshUnimplementedError",e,t,r)}},t.MongoshInvalidInputError=class extends i{constructor(e,t,r){super("MongoshInvalidInputError",e,t,r)}},t.MongoshWarning=class extends i{constructor(e,t,r){super("MongoshWarning",e,t,r)}},t.MongoshDeprecatedError=class extends i{constructor(e,t){super("MongoshDeprecatedError",e,s.CommonErrors.Deprecated,t)}},t.MongoshCommandFailed=class extends i{constructor(e,t){super("MongoshCommandFailed",`Command ${e} returned ok: 0. To see the raw results of the command, use 'runCommand' instead.`,s.CommonErrors.CommandFailed,t)}}},30102:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(r(78313));t.default=new n.default},415:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n={...s(r(27524)).default};t.default=n},27524:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"browser-repl":{},build:{},"cli-repl":{args:{usage:"$ mongosh [options] [db address] [file names (ending in .js or .mongodb)]",options:"Options:",file:"Load the specified mongosh script",help:"Show this usage information",ipv6:"Enable IPv6 support (disabled by default)",host:"Server to connect to",port:"Port to connect to",buildInfo:"Show build information",version:"Show version information",quiet:"Silence output from the shell during the connection process",shell:"Run the shell after executing files",nodb:"Don't connect to mongod on startup - no 'db address' [arg] expected",norc:"Will not run the '.mongoshrc.js' file on start up",eval:"Evaluate javascript",json:"Print result of --eval as Extended JSON, including errors",retryWrites:"Automatically retry write operations upon transient network errors (Default: true)",authenticationOptions:"Authentication Options:",username:"Username for authentication",password:"Password for authentication",authenticationDatabase:"User source (defaults to dbname)",authenticationMechanism:"Authentication mechanism",awsIamSessionToken:"AWS IAM Temporary Session Token ID",gssapiServiceName:"Service name to use when authenticating using GSSAPI/Kerberos",gssapiHostName:"Remote host name to use for purpose of GSSAPI/Kerberos authentication",sspiHostnameCanonicalization:"Specify the SSPI hostname canonicalization (none or forward, available on Windows)",sspiRealmOverride:"Specify the SSPI server realm (available on Windows)",tlsOptions:"TLS Options:",tls:"Use TLS for all connections",tlsCertificateKeyFile:"PEM certificate/key file for TLS",tlsCertificateKeyFilePassword:"Password for key in PEM file for TLS",tlsCAFile:"Certificate Authority file for TLS",tlsCRFile:"Certificate Revocation List file for TLS",tlsAllowInvalidHostnames:"Allow connections to servers with non-matching hostnames",tlsAllowInvalidCertificates:"Allow connections to servers with invalid certificates",tlsCertificateSelector:"TLS Certificate in system store (Windows and macOS only)",tlsCRLFile:"Specifies the .pem file that contains the Certificate Revocation List",tlsDisabledProtocols:"Comma separated list of TLS protocols to disable [TLS1_0,TLS1_1,TLS1_2]",tlsUseSystemCA:"Load the operating system trusted certificate list",tlsFIPSMode:"Enable the system TLS library's FIPS mode",apiVersionOptions:"API version options:",apiVersion:"Specifies the API version to connect with",apiStrict:"Use strict API version mode",apiDeprecationErrors:"Fail deprecated commands for the specified API version",fleOptions:"FLE Options:",awsAccessKeyId:"AWS Access Key for FLE Amazon KMS",awsSecretAccessKey:"AWS Secret Key for FLE Amazon KMS",awsSessionToken:"Optional AWS Session Token ID",keyVaultNamespace:"database.collection to store encrypted FLE parameters",kmsURL:"Test parameter to override the URL of the KMS endpoint",dbAddressOptions:"DB Address Examples:","dbAddress/foo":"Foo database on local machine","dbAddress/192/foo":"Foo database on 192.168.0.5 machine","dbAddress/192/host/foo":"Foo database on 192.168.0.5 machine on port 9999","dbAddress/connectionURI":"Connection string URI can also be used",fileNames:"File Names:",filenameDescription:"A list of files to run. Files must end in .js and will exit after unless --shell is specified.",examples:"Examples:",connectionExampleWithDatabase:"Start mongosh using 'ships' database on specified connection string:",moreInformation:"For more information on usage:"},"arg-parser":{"unknown-option":"Error parsing command line: unrecognized option:"},"cli-repl":{connecting:"Connecting to:",telemetry:"To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).",disableTelemetry:"You can opt-out by running the ",command:"command.",enabledTelemetry:"Telemetry is now enabled.",disabledTelemetry:"Telemetry is now disabled.",wiki:{info:"For mongosh info see:",link:"https://docs.mongodb.com/mongodb-shell/"},additionalErrorInfo:"Additional information",additionalErrorResult:"Result",additionalErrorViolations:"Violations",additionalErrorWriteErrors:"Write Errors",errorCausedBy:"Caused by"},"uri-generator":{"no-host-port":"If a full URI is provided, you cannot also specify --host or --port","invalid-host":"The --host argument contains an invalid character","host-list-port-mismatch":"The host list contains different ports than provided by --port","diverging-service-name":"Either the --gssapiServiceName parameter or the SERVICE_NAME authentication mechanism property in the connection string can be used but not both.","gssapi-service-name-unsupported":"The gssapiServiceName query parameter is not supported anymore. Please use the --gssapiServiceName argument or the SERVICE_NAME authentication mechanism property (e.g. ?authMechanismProperties=SERVICE_NAME:<value>)."}},"service-provider-browser":{},"service-provider-core":{},"service-provider-server":{},"shell-api":{classes:{ShellApi:{help:{description:"Shell Help",link:"https://docs.mongodb.com/manual/reference/method",attributes:{use:{description:"Set current database"},it:{description:"result of the last line evaluated; use to further iterate"},exit:{description:"Quit the MongoDB shell with exit/exit()/.exit"},quit:{description:"Quit the MongoDB shell with quit/quit()"},show:{description:"'show databases'/'show dbs': Print a list of all available databases.\n'show collections'/'show tables': Print a list of all collections for current database.\n'show profile': Prints system.profile information.\n'show users': Print a list of all users for current database.\n'show roles': Print a list of all roles for current database.\n'show log <type>': log for current connection, if type is not set uses 'global'\n'show logs': Print all logs.\n"},connect:{description:"Create a new connection and return the Database object. Usage: connect(URI, username [optional], password [optional])",link:"https://docs.mongodb.com/manual/reference/method/connect"},Mongo:{description:"Create a new connection and return the Mongo object. Usage: new Mongo(URI, options [optional])",link:"https://docs.mongodb.com/manual/reference/method/Mongo/#Mongo"},version:{description:"Shell version",link:"https://docs.mongodb.com/manual/reference/method/version/"},load:{description:"Loads and runs a JavaScript file into the current shell environment",example:'load("path/to/file.js")'},enableTelemetry:{description:"Enables collection of anonymous usage data to improve the mongosh CLI"},disableTelemetry:{description:"Disables collection of anonymous usage data to improve the mongosh CLI"},passwordPrompt:{description:"Prompts the user for a password",link:"https://docs.mongodb.com/manual/reference/method/passwordPrompt/"},sleep:{description:"Sleep for the specified number of milliseconds",link:"https://docs.mongodb.com/manual/reference/method/sleep/",example:"sleep(5000)"},cls:{description:"Clears the screen like console.clear()"},print:{description:"Prints the contents of an object to the output",example:'print({ some: "value" })'},printjson:{description:"Alias for print()"},isInteractive:{description:"Returns whether the shell will enter or has entered interactive mode"},convertShardKeyToHashed:{description:"Returns the hashed value for the input using the same hashing function as a hashed index.",link:"https://www.mongodb.com/docs/manual/reference/method/convertShardKeyToHashed/"}}}},ShellConfig:{help:{description:"Shell configuration methods",attributes:{get:{description:"Get a configuration value with config.get(key)"},set:{description:"Change a configuration value with config.set(key, value)"},reset:{description:"Reset a configuration value to its default value with config.reset(key)"}}}},AggregationCursor:{help:{description:"Aggregation Class",attributes:{close:{link:"https://docs.mongodb.com/manual/reference/method/cursor.close",description:"Instructs the server to close a cursor and free associated server resources. The server will automatically close cursors that have no remaining results, as well as cursors that have been idle for a period of time and lack the cursor.noCursorTimeout() option.",example:"db.collection.aggregate(pipeline, options).close()"},forEach:{link:"https://docs.mongodb.com/manual/reference/method/cursor.forEach",description:"Iterates the cursor to apply a JavaScript function to each document from the cursor.",example:"db.collection.aggregate(pipeline, options).forEach(function)"},hasNext:{link:"https://docs.mongodb.com/manual/reference/method/cursor.hasNext",description:"cursor.hasNext() returns true if the cursor returned by the db.collection.aggregate() can iterate further to return more documents. NOTE: if the cursor is tailable with awaitData then hasNext will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead",example:"db.collection.aggregate(pipeline, options).hasNext()"},isClosed:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isClosed",description:"Returns true if the cursor is closed.",example:"db.collection.aggregate(pipeline, options).isClosed()"},isExhausted:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isExhausted",description:"cursor.isExhausted() returns true if the cursor is closed and there are no remaining objects in the batch.",example:"db.collection.aggregate(pipeline, options).isExhausted()"},itcount:{link:"https://docs.mongodb.com/manual/reference/method/cursor.itcount",description:"Counts the number of documents remaining in a cursor. itcount() is similar to cursor.count(), but actually executes the query on an existing iterator, exhausting its contents in the process.",example:"db.collection.aggregate(pipeline, options).itcount()"},map:{link:"https://docs.mongodb.com/manual/reference/method/cursor.map",description:"Applies the first argument, a function, to each document visited by the cursor and collects the return values from successive application into an array.",example:"db.collection.aggregate(pipeline, options).map(function)"},maxTimeMS:{link:"https://docs.mongodb.com/manual/reference/method/cursor.maxTimeMS",description:"Specifies a cumulative time limit in milliseconds for processing operations on a cursor.",example:"db.collection.aggregate(pipeline, options).maxTimeMS(timeLimit)"},next:{link:"https://docs.mongodb.com/manual/reference/method/cursor.next",description:"The next document in the cursor returned by the db.collection.aggregate() method. NOTE: if the cursor is tailable with awaitData then next will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead",example:"db.collection.aggregate(pipeline, options).next()"},tryNext:{description:"If a document is in the cursor's batch it will be returned, otherwise null will be returned"},explain:{link:"https://docs.mongodb.com/manual/reference/method/cursor.explain",description:"Provides information on the query plan for db.collection.aggregate() method.",example:"db.collection.aggregate(pipeline, options).explain([verbosity])"},objsLeftInBatch:{link:"https://docs.mongodb.com/manual/reference/method/cursor.objsLeftInBatch",description:"cursor.objsLeftInBatch() returns the number of documents remaining in the current batch.",example:"db.collection.aggregate(pipeline, options).objsLeftInBatch()"},toArray:{link:"https://docs.mongodb.com/manual/reference/method/cursor.toArray",description:"The toArray() method returns an array that contains all the documents from a cursor. The method iterates completely the cursor, loading all the documents into RAM and exhausting the cursor.",example:"db.collection.aggregate(pipeline, options).toArray()"},pretty:{description:"Deprecated. The shell provides auto-formatting so this method is no longer useful"},batchSize:{description:"Specifies the number of documents to return in each batch of the response from the MongoDB instance.",example:"db.collection.aggregate(pipeline, options).batchSize(10)"},projection:{link:"",description:"Sets a field projection for the query.",example:"db.collection.aggregate(pipeline, options).projection(field)"},sort:{link:"https://docs.mongodb.com/manual/reference/method/cursor.sort",description:"Specifies the order in which the query returns matching documents. You must apply sort() to the cursor before retrieving any documents from the database.",example:"db.collection.aggregate(pipeline, options).sort(sortDocument)"},skip:{link:"https://docs.mongodb.com/manual/reference/method/cursor.skip",description:"Call the cursor.skip() method on a cursor to control where MongoDB begins returning results. This approach may be useful in implementing paginated results.",example:"db.collection.aggregate(pipeline, options).skip(offsetNumber)"}}}},BulkWriteResult:{help:{description:"BulkWriteResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},insertedCount:{description:"Number of documents inserted"},insertedIds:{description:"Array of ObjectIds inserted"},matchedCount:{description:"Number of documents matched"},modifiedCount:{description:"Number of documents modified"},deletedCount:{description:"Number of documents deleted"},upsertedCount:{description:"Number of documents upserted"},upsertedIds:{description:"Array of ObjectIds upserted"}}}},CommandResult:{help:{description:"CommandResult Class"}},InsertManyResult:{help:{description:"InsertManyResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},insertedIds:{description:"Array of ObjectIds inserted"}}}},InsertOneResult:{help:{description:"InsertOneResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},insertedId:{description:"ObjectId of document inserted"}}}},UpdateResult:{help:{description:"CommandResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},insertedId:{description:"ObjectId inserted"},matchedCount:{description:"Number of documents matched"},modifiedCount:{description:"Number of documents modified"},upsertedCount:{description:"Number of documents upserted"}}}},DeleteResult:{help:{description:"CommandResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},deletedCount:{description:"Number of documents deleted"}}}},ShowDbsResult:{help:{description:"ShowDatabasesResult Class"}},Collection:{help:{description:"Collection Class",attributes:{watch:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.watch",description:"Opens a change stream cursor on the collection",example:"const cursor = db.collection.watch(pipeline, options)"},aggregate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.aggregate",description:"Calculates aggregate values for the data in a collection or a view.",example:"db.collection.aggregate(pipeline, options)"},bulkWrite:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.bulkWrite",description:"Performs multiple write operations with controls for order of execution.",example:"db.collection.bulkWrite(operations, options)"},countDocuments:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.countDocuments",description:"Returns the count of documents that match the query for a collection or view.",example:"db.collection.countDocuments(query, options)"},count:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.count",description:"Returns the count of documents that would match a find() query for the collection or view.",example:"db.collection.count(query, options)"},dataSize:{link:"hhttps://docs.mongodb.com/manual/reference/method/db.collection.dataSize",description:"This method provides a wrapper around the size output of the collStats (i.e. db.collection.stats()) command.",example:"db.collection.dataSize()"},deleteMany:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.deleteMany",description:"Removes all documents that match the filter from a collection.",example:"db.collection.deleteMany()"},deleteOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.deleteOne",description:"Removes a single document from a collection.",example:"db.collection.deleteOne(filter, options)"},distinct:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.distinct",description:"Finds the distinct values for a specified field across a single collection or view and returns the results in an array.",example:"db.collection.distinct(field, query, options)"},estimatedDocumentCount:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.estimatedDocumentCount",description:"Returns the count of all documents in a collection or view.",example:"db.collection.estimatedDocumentCount(options)"},find:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.find",description:"Selects documents in a collection or view.",example:"db.collection.find(query, projection)"},findAndModify:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findAndModify",description:"Modifies and returns a single document.",example:"db.collection.findAndModify(spec)"},findOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findOne",description:"Selects documents in a collection or view.",example:"db.collection.findOne(query, projection)"},findOneAndDelete:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndDelete",description:"Deletes a single document based on the filter and sort criteria, returning the deleted document.",example:"db.collection.findOneAndDelete(filter, options)"},findOneAndReplace:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndReplace",description:"Modifies and replaces a single document based on the filter and sort criteria.",example:"db.collection.findOneAndReplace(filter, replacement, options)"},findOneAndUpdate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndUpdate",description:"Updates a single document based on the filter and sort criteria.",example:"db.collection.findOneAndUpdate(filter, update, options)"},getIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getIndexes",description:"Returns an array that holds a list of documents that identify and describe the existing indexes on the collection.",example:"db.collection.getIndexes()"},getIndices:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getIndexes",description:"Alias for getIndexes. Returns an array that holds a list of documents that identify and describe the existing indexes on the collection.",example:"db.collection.getIndices()"},insert:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.insert",description:"Inserts a document or documents into a collection.",example:"db.collection.insert(document, options)"},insertMany:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.insertMany",description:"Inserts multiple documents into a collection.",example:"db.collection.insertMany(documents, options)"},insertOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.insertOne",description:"Inserts a document into a collection.",example:"db.collection.insertOne(document, options)"},isCapped:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.isCapped",description:"Checks if a collection is capped",example:"db.collection.isCapped()"},remove:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.remove",description:"Removes documents from a collection.",example:"db.collection.remove(query, options)"},stats:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.stats",description:"Returns statistics about the collection.",example:"db.collection.stats(options)"},storageSize:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.storageSize",description:"The total amount of storage allocated to this collection for document storage.",example:"db.collection.storageSize()"},replaceOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.replaceOne",description:"Replaces a single document within the collection based on the filter.",example:"db.collection.replaceOne(filter, replacement, options)"},totalSize:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.totalSize",description:"The total size in bytes of the data in the collection plus the size of every index on the collection.",example:"db.collection.totalSize()"},update:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.update",description:"Modifies an existing document or documents in a collection.",example:"db.collection.update(query, update, options)"},updateMany:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.updateMany",description:"Updates all documents that match the specified filter for a collection.",example:"db.collection.updateMany(filter, update, options)"},compactStructuredEncryptionData:{link:"",description:"Compacts structured encryption data",example:"db.collection.compactStructuredEncryptionData()"},convertToCapped:{link:"",description:"calls {convertToCapped:'coll', size:maxBytes}} command",example:"db.coll.convertToCapped(10000)"},createIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.createIndexes",description:"Creates one or more indexes on a collection",example:"db.coll.createIndexes([{ category: 1 }], { name: 'index-1' })"},createIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.createIndex",description:"Creates one index on a collection",example:"db.coll.createIndex({ category: 1 }, { name: 'index-1' })"},ensureIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.ensureIndex",description:"Creates one index on a collection",example:"db.coll.ensureIndex({ category: 1 }, { name: 'index-1' })"},getDB:{link:"",description:"Get current database.",example:"db.collection.getDB()"},getIndexKeys:{link:"",description:"Return an array of key patterns for indexes defined on collection",example:"db.collection.getIndexKeys()"},getIndexSpecs:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getIndexes",description:"Alias for getIndexes. Returns an array that holds a list of documents that identify and describe the existing indexes on the collection.",example:"db.collection.getIndexSpecs()"},totalIndexSize:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.totalIndexSize",description:"Reports the total size used by the indexes on a collection.",example:"db.collection.totalIndexSize()"},dropIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.dropIndexes",description:"Drops the specified index or indexes (except the index on the _id field) from a collection.",example:"db.collection.dropIndexes()"},dropIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.dropIndex",description:"Drops or removes the specified index from a collection.",example:"db.collection.dropIndex()"},reIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.reIndex",description:"Rebuilds all existing indexes on a collection.",example:""},hideIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.hideIndex",description:"Hides an existing index from the query planner.",example:'db.collection.hideIndex("index_1")'},unhideIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.unhideIndex",description:"Unhides an existing index from the query planner.",example:'db.collection.unhideIndex("index_1")'},drop:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.drop",description:"Removes a collection or view from the database.",example:"db.students.drop()"},exists:{link:"",description:"Returns collection infos if the collection exists or null otherwise.",example:"db.coll.exists()"},getFullName:{link:"",description:"Returns the name of the collection prefixed with the database name.",example:"db.coll.getFullName()"},getName:{link:"",description:"Returns the name of the collection.",example:"db.coll.getName()"},renameCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.renameCollection/",description:"Renames a collection.",example:'db.coll.renameCollection("newName")'},runCommand:{link:"",description:"Runs a db command with the given name where the first param is the collection name.",example:'db.collection.runCommand("text", { search: "searchKeywords" })'},explain:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan.",example:"db.collection.explain().<method(...)>"},updateOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.updateOne",description:"Updates a single document within the collection based on the filter.",example:"db.collection.updateOne(filter, update, options)"},getMongo:{description:"Returns the Mongo object.",example:"db.collection.getMongo()"},latencyStats:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.latencyStats",description:"returns the $latencyStats aggregation for the collection. Takes an options document with an optional boolean 'histograms' field.",example:"db.latencyStats({ histograms: true })"},initializeUnorderedBulkOp:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.initializeUnorderedBulkOp",description:"Initializes an unordered bulk command. Returns an instance of Bulk",example:"db.coll.initializeUnorderedBulkOp()"},initializeOrderedBulkOp:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.initializeOrderedBulkOp",description:"Initializes an ordered bulk command. Returns an instance of Bulk",example:"db.coll.initializeOrderedBulkOp()"},getPlanCache:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getPlanCache/",description:"Returns an interface to access the query plan cache for a collection. The interface provides methods to view and clear the query plan cache.",example:"db.coll.getPlanCache()"},validate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.validate",description:"Calls the validate command. Default full value is false",example:"db.coll.validate(<full>)"},mapReduce:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.mapReduce",description:"Calls the mapReduce command",example:"db.coll.mapReduce(mapFn, reduceFn, options)"},getShardVersion:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getShardVersion",description:"Calls the getShardVersion command",example:"db.coll.getShardVersion()"},getShardDistribution:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getShardDistribution",description:"Prints the data distribution statistics for a sharded collection.",example:"db.coll.getShardDistribution()"},analyzeShardKey:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.analyzeShardKey",description:"Returns metrics for evaluating a shard key. That is, ‘key’ can be a candidate shard key for an unsharded or sharded collection, or the current shard key for a sharded collection.",example:"db.coll.analyzeShardKey(key)"},configureQueryAnalyzer:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.configureQueryAnalyzer",description:"Starts or stops collecting metrics about reads and writes against an unsharded or sharded collection.",example:"db.coll.configureQueryAnalyzer(options)"},checkMetadataConsistency:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.checkMetadataConsistency",description:"Returns a cursor with information about metadata inconsistencies",example:"db.coll.checkMetadataConsistency(<options>)"},getSearchIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getSearchIndexes",description:"Returns an array that holds a list of documents that identify and describe the existing search indexes on the collection.",example:"db.coll.getSearchIndexes(<name>)"},createSearchIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.createSearchIndexes",description:"Creates one or more search indexes on a collection",example:"db.coll.createSearchIndexes(specs)"},createSearchIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.createSearchIndex",description:"Creates one search indexes on a collection",example:"db.coll.createSearchIndex(<name>, definition)"},dropSearchIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.dropSearchIndex",description:"Drops or removes the specified search index from a collection.",example:"db.coll.dropSearchIndex(name)"},updateSearchIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.updateSearchIndex",description:"Updates the sepecified search index.",example:"db.coll.updateSearchIndex(name, definition)"}}}},ChangeStreamCursor:{iteration:{"no-cursor":"no cursor","type-it-for-more":'Type "it" for more'},help:{description:"Change Stream Cursor",attributes:{close:{description:"Instructs the server to close a cursor and free associated server resources."},isClosed:{description:"Returns true if the cursor is closed"},itcount:{description:"Returns the number of documents in the current batch. NOTE: this method exhausts the cursor batch"},getResumeToken:{description:"Returns the ResumeToken of the change stream"},hasNext:{description:"WARNING: on change streams this method will block unless the cursor is closed. Use tryNext to check if there are any documents in the batch. This is a breaking change"},next:{description:"WARNING: on change streams this method will block unless the cursor is closed. Use tryNext to get the next document in the batch. This is a breaking change"},tryNext:{description:"If there is a document in the change stream, it will be returned. Otherwise returns null."},isExhausted:{description:"This method is deprecated because because after closing a cursor, the remaining documents in the batch are no longer accessible. If you want to see if the cursor is closed use cursor.isClosed. If you want to see if there are documents left in the batch, use cursor.tryNext. This is a breaking change"}}}},Cursor:{iteration:{"no-cursor":"no cursor","type-it-for-more":'Type "it" for more'},help:{description:"Collection Cursor",attributes:{addOption:{link:"https://docs.mongodb.com/manual/reference/method/cursor.addOption",description:"Adds OP_QUERY wire protocol flags, such as the tailable flag, to change the behavior of queries. Accepts: DBQuery.Option fields tailable, slaveOk, noTimeout, awaitData, exhaust, partial.",example:"db.collection.find(query, projection).addOption(flag)"},allowPartialResults:{link:"https://docs.mongodb.com/manual/reference/method/cursor.allowPartialResults",description:"Sets the 'partial' option to true.",example:"db.collection.find(query, projection).allowPartialResults()"},allowDiskUse:{link:"https://docs.mongodb.com/manual/reference/method/cursor.allowDiskUse",description:"Sets the 'allowDiskUse' option. If no argument is passed, the default is true.",example:"db.collection.find(query, projection).sort(sort).allowDiskUse(false)"},batchSize:{link:"https://docs.mongodb.com/manual/reference/method/cursor.batchSize",description:"Specifies the number of documents to return in each batch of the response from the MongoDB instance. In most cases, modifying the batch size will not affect the user or the application, as the mongo shell and most drivers return results as if MongoDB returned a single batch.",example:"db.collection.find(query, projection).batchSize(10)"},close:{link:"https://docs.mongodb.com/manual/reference/method/cursor.close",description:"Instructs the server to close a cursor and free associated server resources. The server will automatically close cursors that have no remaining results, as well as cursors that have been idle for a period of time and lack the cursor.noCursorTimeout() option.",example:"db.collection.find(query, projection).close()"},collation:{link:"https://docs.mongodb.com/manual/reference/method/cursor.collation",description:"Specifies the collation for the cursor returned by the db.collection.find(). To use, append to the db.collection.find().",example:"db.collection.find(query, projection).collation(collationDocument)"},comment:{link:"https://docs.mongodb.com/manual/reference/method/cursor.comment",description:"Adds a comment field to the query.",example:"db.collection.find(query, projection).comment('Comment')"},count:{link:"https://docs.mongodb.com/manual/reference/method/cursor.count",description:"Counts the number of documents referenced by a cursor.",example:"db.collection.find(query, projection).count()"},explain:{link:"https://docs.mongodb.com/manual/reference/method/cursor.explain",description:"Provides information on the query plan for the db.collection.find() method.",example:"db.collection.find(query, projection).explain()"},forEach:{link:"https://docs.mongodb.com/manual/reference/method/cursor.forEach",description:"Iterates the cursor to apply a JavaScript function to each document from the cursor.",example:"db.collection.find(query, projection).forEach(function)"},getQueryPlan:{link:"https://docs.mongodb.com/manual/reference/method/cursor.explain",description:"Runs cursor.explain()",example:"db.collection.find(query, projection).getQueryPlan()"},hasNext:{link:"https://docs.mongodb.com/manual/reference/method/cursor.hasNext",description:"cursor.hasNext() returns true if the cursor returned by the db.collection.find() query can iterate further to return more documents. NOTE: if the cursor is tailable with awaitData then hasNext will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead",example:"db.collection.find(query, projection).hasNext()"},hint:{link:"https://docs.mongodb.com/manual/reference/method/cursor.hint",description:"Call this method on a query to override MongoDB’s default index selection and query optimization process. Use db.collection.getIndexes() to return the list of current indexes on a collection.",example:"db.collection.find(query, projection).hint(index)"},isClosed:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isClosed",description:"Returns true if the cursor is closed.",example:"db.collection.find(query, projection).isClosed()"},isExhausted:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isExhausted",description:"cursor.isExhausted() returns true if the cursor is closed and there are no remaining objects in the batch.",example:"db.collection.find(query, projection).isExhausted()"},itcount:{link:"https://docs.mongodb.com/manual/reference/method/cursor.itcount",description:"Counts the number of documents remaining in a cursor. itcount() is similar to cursor.count(), but actually executes the query on an existing iterator, exhausting its contents in the process.",example:"db.collection.find(query, projection).itcount()"},length:{link:"https://docs.mongodb.com/manual/reference/method/cursor.count",description:"Runs cursor.count()",example:"db.collection.find(query, projection).length()"},limit:{link:"https://docs.mongodb.com/manual/reference/method/cursor.limit",description:"Use the limit() method on a cursor to specify the maximum number of documents the cursor will return.",example:"db.collection.find(query, projection).limit(2)"},map:{link:"https://docs.mongodb.com/manual/reference/method/cursor.map",description:"Applies the first argument, a function, to each document visited by the cursor and collects the return values from successive application into an array.",example:"db.collection.find(query, projection).map(function)"},max:{link:"https://docs.mongodb.com/manual/reference/method/cursor.max",description:"Specifies the exclusive upper bound for a specific index in order to constrain the results of find(). max() provides a way to specify an upper bound on compound key indexes.",example:"db.collection.find(query, projection).max(indexBoundsDocument)"},maxScan:{link:"https://docs.mongodb.com/manual/reference/method/cursor.maxScan",description:"deprecated, non-functional"},maxTimeMS:{link:"https://docs.mongodb.com/manual/reference/method/cursor.maxTimeMS",description:"Specifies a cumulative time limit in milliseconds for processing operations on a cursor.",example:"db.collection.find(query, projection).maxTimeMS(timeLimit)"},maxAwaitTimeMS:{description:"Set a maxAwaitTimeMS on a tailing cursor query to allow to customize the timeout value for the option awaitData (Only supported on MongoDB 3.2 or higher, ignored otherwise)",example:"db.collection.find(query, projection).maxAwaitTimeMS(timeLimit)"},min:{link:"https://docs.mongodb.com/manual/reference/method/cursor.min",description:"Specifies the inclusive lower bound for a specific index in order to constrain the results of find(). min() provides a way to specify lower bounds on compound key indexes.",example:"db.collection.find(query, projection).min(indexBoundsDocument)"},modifiers:{link:"",description:"Get query modifiers.",example:"db.collection.find(query, projection).modifiers()"},next:{link:"https://docs.mongodb.com/manual/reference/method/cursor.next",description:"The next document in the cursor returned by the db.collection.find() method. NOTE: if the cursor is tailable with awaitData then hasNext will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead",example:"db.collection.find(query, projection).next()"},tryNext:{description:"If a document is in the cursor's batch it will be returned, otherwise null will be returned"},noCursorTimeout:{link:"https://docs.mongodb.com/manual/reference/method/cursor.noCursorTimeout",description:"Instructs the server to avoid closing a cursor automatically after a period of inactivity.",example:"db.collection.find(query, projection).noCursorTimeout()"},objsLeftInBatch:{link:"https://docs.mongodb.com/manual/reference/method/cursor.objsLeftInBatch",description:"cursor.objsLeftInBatch() returns the number of documents remaining in the current batch.",example:"db.collection.find(query, projection).objsLeftInBatch()"},oplogReplay:{link:"",description:"Sets oplogReplay cursor flag to true.",example:"db.collection.find(query, projection).oplogReplay()"},projection:{link:"",description:"Sets a field projection for the query.",example:"db.collection.find(query, projection).projection(field)"},pretty:{description:"Deprecated. The shell provides auto-formatting so this method is no longer useful"},readConcern:{link:"https://docs.mongodb.com/manual/reference/method/cursor.readConcern",description:"Specify a read concern for the db.collection.find() method.",example:"db.collection.find(query, projection).readConcern(level)"},readonly:{link:"",description:"",example:""},readPref:{link:"https://docs.mongodb.com/manual/reference/method/cursor.readPref",description:"Append readPref() to a cursor to control how the client routes the query to members of the replica set.",example:"db.collection.find(query, projection).readPref(mode, tagSet)"},returnKey:{link:"https://docs.mongodb.com/manual/reference/method/cursor.returnKey",description:"Modifies the cursor to return index keys rather than the documents.",example:"db.collection.find(query, projection).returnKey()"},showDiskLoc:{link:"",description:"The $showDiskLoc option has now been deprecated and replaced with the showRecordId field. $showDiskLoc will still be accepted for OP_QUERY style find.",example:"db.collection.find(query, projection).showDiskLoc()"},showRecordId:{link:"https://docs.mongodb.com/manual/reference/method/cursor.showRecordId",description:"Modifies the output of a query by adding a field $recordId to matching documents. $recordId is the internal key which uniquely identifies a document in a collection.",example:"db.collection.find(query, projection).showRecordId"},size:{link:"https://docs.mongodb.com/manual/reference/method/cursor.size",description:"A count of the number of documents that match the db.collection.find() query after applying any cursor.skip() and cursor.limit() methods.",example:"db.collection.find(query, projection).size()"},skip:{link:"https://docs.mongodb.com/manual/reference/method/cursor.skip",description:"Call the cursor.skip() method on a cursor to control where MongoDB begins returning results. This approach may be useful in implementing paginated results.",example:"db.collection.find(query, projection).skip(offsetNumber)"},snapshot:{link:"",description:"The $snapshot operator prevents the cursor from returning a document more than once because an intervening write operation results in a move of the document",example:"db.collection.find(query, projection).snapshot()"},sort:{link:"https://docs.mongodb.com/manual/reference/method/cursor.sort",description:"Specifies the order in which the query returns matching documents. You must apply sort() to the cursor before retrieving any documents from the database.",example:"db.collection.find(query, projection).sort(sortDocument)"},tailable:{link:"https://docs.mongodb.com/manual/reference/method/cursor.tailable",description:"Marks the cursor as tailable.",example:"db.collection.find(query, projection).tailable({ awaitData: true })"},toArray:{link:"https://docs.mongodb.com/manual/reference/method/cursor.toArray",description:"The toArray() method returns an array that contains all the documents from a cursor. The method iterates completely the cursor, loading all the documents into RAM and exhausting the cursor.",example:"db.collection.find(query, projection).toArray()"}}}},Database:{help:{description:"Database Class",attributes:{sql:{link:"https://docs.mongodb.com/manual/reference/method/db.sql",description:"(Experimental) Runs a SQL query against Atlas Data Lake. Note: this is an experimental feature that may be subject to change in future releases.",example:'const cursor = db.sql("SELECT * FROM myCollection", options)'},watch:{link:"https://docs.mongodb.com/manual/reference/method/db.watch",description:"Opens a change stream cursor on the database",example:"const cursor = db.watch(pipeline, options)"},aggregate:{link:"https://docs.mongodb.com/manual/reference/method/db.aggregate",description:"Runs a specified admin/diagnostic pipeline which does not require an underlying collection.",example:"db.aggregate(pipeline, options)"},runCommand:{link:"https://docs.mongodb.com/manual/reference/method/db.runCommand",description:"Runs an arbitrary command on the database.",example:'db.runCommand({ text: "myCollection", search: "searchKeywords" })'},dropDatabase:{link:"https://docs.mongodb.com/manual/reference/method/db.dropDatabase",description:"Removes the current database, deleting the associated data files.",example:"db.dropDatabase([writeConcern])"},adminCommand:{link:"https://docs.mongodb.com/manual/reference/method/db.adminCommand",description:"Runs an arbitrary command against the admin database.",example:"db.adminCommand({ serverStatus: 1 })"},getCollectionInfos:{link:"https://docs.mongodb.com/manual/reference/method/db.getCollectionInfos",description:"Returns an array of documents with collection information, i.e. collection name and options, for the current database.",example:"db.getCollectionInfos()"},getCollectionNames:{link:"https://docs.mongodb.com/manual/reference/method/db.getCollectionNames",description:"Returns an array containing the names of all collections in the current database.",example:"db.getCollectionNames"},getSiblingDB:{link:"https://docs.mongodb.com/manual/reference/method/db.getSiblingDB",description:"Returns another database without modifying the db variable in the shell environment.",example:"db.getSiblingDB(name)"},getCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.getCollection",description:"Returns a collection or a view object that is functionally equivalent to using the db.<collectionName>.",example:"db.getCollection(name)"},getMongo:{link:"https://docs.mongodb.com/manual/reference/method/db.getMongo/",description:"Returns the current database connection",example:"connection = db.getMongo()"},getName:{link:"https://docs.mongodb.com/manual/reference/method/db.getName",description:"Returns the name of the DB",example:"db.getName()"},createCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.createCollection/",description:"Create new collection",example:"db.createCollection('collName')"},createEncryptedCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.createEncryptedCollection/",description:"Creates a new collection with a list of encrypted fields each with unique and auto-created data encryption keys (DEKs). This is a utility function that internally utilises ClientEnryption.createEncryptedCollection.",example:'db.createEncryptedCollection( "collName", { "provider": "<kmsProvider>", "createCollectionOptions": { "encryptedFields": { ... }, ...<otherOptions> } })'},createView:{link:"https://docs.mongodb.com/manual/reference/method/db.createView/",description:"Create new view",example:"db.createCollection('viewName', 'source', [])"},createUser:{link:"https://docs.mongodb.com/manual/reference/method/db.createUser",description:"Creates a new user for the database on which the method is run. db.createUser() returns a duplicate user error if the user already exists on the database.",example:"db.createUser(user, writeConcern)"},updateUser:{link:"https://docs.mongodb.com/manual/reference/method/db.updateUser",description:"Updates the user’s profile on the database on which you run the method. An update to a field completely replaces the previous field’s values. This includes updates to the user’s roles array.",example:"db.updateUser(username, update, writeConcern)"},changeUserPassword:{link:"https://docs.mongodb.com/manual/reference/method/db.changeUserPassword",description:"Updates a user’s password. Run the method in the database where the user is defined, i.e. the database you created the user.",example:"db.changeUserPassword(username, password)"},logout:{link:"https://docs.mongodb.com/manual/reference/method/db.logout",description:"Ends the current authentication session. This function has no effect if the current session is not authenticated.",example:"db.logout()"},dropUser:{link:"https://docs.mongodb.com/manual/reference/method/db.dropUser",description:"Removes the user from the current database.",example:"db.dropUser(username, writeConcern)"},dropAllUsers:{link:"https://docs.mongodb.com/manual/reference/method/db.dropAllUsers",description:"Removes all users from the current database.",example:"db.dropAllUsers(writeConcern)"},auth:{link:"https://docs.mongodb.com/manual/reference/method/db.auth",description:"Allows a user to authenticate to the database from within the shell.",example:"db.auth(username, password)"},grantRolesToUser:{link:"https://docs.mongodb.com/manual/reference/method/db.grantRolesToUser",description:"Grants additional roles to a user.",example:'db.grantRolesToUser( "<username>", [ <roles> ], { <writeConcern> } )'},revokeRolesFromUser:{link:"https://docs.mongodb.com/manual/reference/method/db.revokeRolesFromUser",description:"Removes a one or more roles from a user on the current database.",example:'db.revokeRolesFromUser( "<username>", [ <roles> ], { <writeConcern> } )'},getUser:{link:"https://docs.mongodb.com/manual/reference/method/db.getUser",description:"Returns user information for a specified user. Run this method on the user’s database. The user must exist on the database on which the method runs.",example:"db.getUser(username, args)"},getUsers:{link:"https://docs.mongodb.com/manual/reference/method/db.getUsers",description:"Returns information for all the users in the database.",example:"db.getUsers(<options>)"},createRole:{link:"https://docs.mongodb.com/manual/reference/method/db.createRole",description:"Creates a new role.",example:"db.createRole(role, writeConcern)"},updateRole:{link:"https://docs.mongodb.com/manual/reference/method/db.updateRole",description:"Updates the role’s profile on the database on which you run the method. An update to a field completely replaces the previous field’s values.",example:"db.updateRole(rolename, update, writeConcern)"},dropRole:{link:"https://docs.mongodb.com/manual/reference/method/db.dropRole",description:"Removes the role from the current database.",example:"db.dropRole(rolename, writeConcern)"},dropAllRoles:{link:"https://docs.mongodb.com/manual/reference/method/db.dropAllRoles",description:"Removes all roles from the current database.",example:"db.dropAllRoles(writeConcern)"},grantRolesToRole:{link:"https://docs.mongodb.com/manual/reference/method/db.grantRolesToRole",description:"Grants additional roles to a role.",example:'db.grantRolesToRole( "<rolename>", [ <roles> ], { <writeConcern> } )'},revokeRolesFromRole:{link:"https://docs.mongodb.com/manual/reference/method/db.revokeRolesFromRole",description:"Removes a one or more roles from a role on the current database.",example:'db.revokeRolesFromRole( "<rolename>", [ <roles> ], { <writeConcern> } )'},grantPrivilegesToRole:{link:"https://docs.mongodb.com/manual/reference/method/db.grantPrivilegesToRole",description:"Grants additional privileges to a role.",example:'db.grantPrivilegesToRole( "<rolename>", [ <privileges> ], { <writeConcern> } )'},revokePrivilegesFromRole:{link:"https://docs.mongodb.com/manual/reference/method/db.revokePrivilegesFromRole",description:"Removes a one or more privileges from a role on the current database.",example:'db.revokeRolesFromRole( "<rolename>", [ <privileges> ], { <writeConcern> } )'},getRole:{link:"https://docs.mongodb.com/manual/reference/method/db.getRole",description:"Returns role information for a specified role. Run this method on the role’s database. The role must exist on the database on which the method runs.",example:"db.getRole(rolename, args)"},getRoles:{link:"https://docs.mongodb.com/manual/reference/method/db.getRoles",description:"Returns information for all the roles in the database.",example:"db.getRoles(<options>)"},currentOp:{link:"https://docs.mongodb.com/manual/reference/method/db.currentOp",description:"Runs an aggregation using $currentOp operator. Returns a document that contains information on in-progress operations for the database instance. For further information, see $currentOp.",example:"db.currentOp()"},killOp:{link:"https://docs.mongodb.com/manual/reference/method/db.killOp",description:"Calls the killOp command. Terminates an operation as specified by the operation ID. To find operations and their corresponding IDs, see $currentOp or db.currentOp().",example:"db.killOp(<options>)"},shutdownServer:{link:"https://docs.mongodb.com/manual/reference/method/db.shutdownServer",description:"Calls the shutdown command. Shuts down the current mongod or mongos process cleanly and safely. You must issue the db.shutdownServer() operation against the admin database.",example:"db.shutdownServer(<options>)"},fsyncLock:{link:"https://docs.mongodb.com/manual/reference/method/db.fsyncLock",description:"Calls the fsync command. Forces the mongod to flush all pending write operations to disk and locks the entire mongod instance to prevent additional writes until the user releases the lock with a corresponding db.fsyncUnlock() command.",example:"db.fsyncLock(<options>)"},fsyncUnlock:{link:"https://docs.mongodb.com/manual/reference/method/db.fsyncUnlock",description:"Calls the fsyncUnlock command. Reduces the lock taken by db.fsyncLock() on a mongod instance by 1.",example:"db.fsyncUnlock(<options>)"},version:{link:"https://docs.mongodb.com/manual/reference/method/db.version",description:"returns the db version. uses the buildinfo command",example:"db.version()"},serverBits:{link:"https://docs.mongodb.com/manual/reference/method/db.serverBits",description:"returns the db serverBits. uses the buildInfo command",example:"db.serverBits()"},isMaster:{link:"https://docs.mongodb.com/manual/reference/method/db.isMaster",description:"Calls the isMaster command",example:"db.isMaster()"},hello:{link:"https://docs.mongodb.com/manual/reference/method/db.hello",description:"Calls the hello command",example:"db.hello()"},rotateCertificates:{link:"https://docs.mongodb.com/manual/reference/method/db.rotateCertificates",description:"Calls the rotateCertificates command",example:"db.rotateCertificates()"},serverBuildInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.serverBuildInfo",description:"returns the db serverBuildInfo. uses the buildInfo command",example:"db.serverBuildInfo()"},serverStatus:{link:"https://docs.mongodb.com/manual/reference/method/db.serverStatus",description:"returns the server stats. uses the serverStatus command",example:"db.serverStatus(<opts>)"},stats:{link:"https://docs.mongodb.com/manual/reference/method/db.stats",description:"returns the db stats. uses the dbStats command",example:"db.stats(<scale>) or db.stats({ scale: <scale> })"},hostInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.hostInfo",description:"Calls the hostInfo command",example:"db.hostInfo()"},serverCmdLineOpts:{link:"https://docs.mongodb.com/manual/reference/method/db.serverCmdLineOpts",description:"returns the db serverCmdLineOpts. uses the getCmdLineOpts command",example:"db.serverCmdLineOpts()"},printCollectionStats:{link:"https://docs.mongodb.com/manual/reference/method/db.printCollectionStats",description:"Prints the collection.stats for each collection in the db.",example:"db.printCollectionStats(scale)"},getProfilingStatus:{link:"https://docs.mongodb.com/manual/reference/method/db.getProfilingStatus",description:"returns the db getProfilingStatus. uses the profile command",example:"db.getProfilingStatus()"},setProfilingLevel:{link:"https://docs.mongodb.com/manual/reference/method/db.setProfilingLevel",description:"returns the db setProfilingLevel. uses the profile command",example:"db.setProfilingLevel(level, <options>)"},setLogLevel:{link:"https://docs.mongodb.com/manual/reference/method/db.setLogLevel",description:"returns the db setLogLevel. uses the setParameter command",example:"db.setLogLevel(logLevel, <component>)"},getLogComponents:{link:"https://docs.mongodb.com/manual/reference/method/db.getLogComponents",description:"returns the db getLogComponents. uses the getParameter command",example:"db.getLogComponents()"},cloneDatabase:{link:"https://docs.mongodb.com/manual/reference/method/db.cloneDatabase",description:"deprecated, non-functional"},copyDatabase:{link:"https://docs.mongodb.com/manual/reference/method/db.copyDatabase",description:"deprecated, non-functional"},cloneCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.cloneCollection",description:"deprecated, non-functional"},listCommands:{link:"https://docs.mongodb.com/manual/reference/method/db.listCommands",description:"Calls the listCommands command",example:"db.listCommands()"},commandHelp:{link:"https://docs.mongodb.com/manual/reference/method/db.commandHelp",description:"returns the db commandHelp. uses the passed in command with help: true",example:"db.commandHelp(<command>)"},getLastError:{link:"https://docs.mongodb.com/manual/reference/method/db.getLastError",description:"Calls the getLastError command",example:"db.getLastError(<w>, <wTimeout>)"},getLastErrorObj:{link:"https://docs.mongodb.com/manual/reference/method/db.getLastErrorObj",description:"Calls the getLastError command",example:"db.getLastErrorObj(<w>, <wTimeout>, <j>)"},printShardingStatus:{link:"https://docs.mongodb.com/manual/reference/method/db.printShardingStatus",description:"Calls sh.status(verbose)",example:"db.printShardingStatus(verbose?)"},printSecondaryReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.printSecondaryReplicationInfo",description:"Prints secondary replicaset information",example:"db.printSecondaryReplicationInfo()"},printSlaveReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.printSlaveReplicationInfo",description:"DEPRECATED. Use db.printSecondaryReplicationInfo",example:"db.printSlaveReplicationInfo()"},getReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.getReplicationInfo",description:"Returns replication information",example:"db.getReplicationInfo()"},printReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.printReplicationInfo",description:"Formats sh.getReplicationInfo",example:"db.printReplicationInfo()"},setSecondaryOk:{description:"This method is deprecated. Use db.getMongo().setReadPref() instead"},checkMetadataConsistency:{link:"https://docs.mongodb.com/manual/reference/method/db.checkMetadataConsistency",description:"Returns a cursor with information about metadata inconsistencies",example:"db.checkMetadataConsistency(<options>)"}}}},DBQuery:{help:{description:'Deprecated -- use config.set("displayBatchSize", value) instead of DBQuery.shellBatchSize = value'}},Explainable:{help:{description:"Explainable Class",attributes:{aggregate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Provides information on the query plan for db.collection.aggregate() method.",example:"db.coll.explain().aggregate()"},find:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan.",example:"db.coll.explain().find()"},count:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.count().",example:"db.coll.explain().count()"},remove:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.remove().",example:"db.coll.explain().remove({})"},update:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.update().",example:"db.coll.explain().update({}, { $inc: ${ a: 1 } })"},distinct:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.distinct().",example:'db.coll.explain().distinct("_id")'},mapReduce:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.mapReduce().",example:"db.coll.explain().mapReduce(map, reduce, options)"},findAndModify:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.findAndModify().",example:"db.coll.explain().findAndModify({ query: { ... }, update: { ... } })"},findOneAndDelete:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.findOneAndDelete().",example:"db.coll.explain().findOneAndDelete({ ... query ... })"},findOneAndReplace:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.findOneAndReplace().",example:"db.coll.explain().findOneAndReplace({ ... query ... }, { ... replacement ... })"},findOneAndUpdate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.findOneAndUpdate().",example:"db.coll.explain().findOneAndUpdate({ ... query ... }, { ... update operators ... })"},getCollection:{link:"",description:"Returns the explainable collection.",example:"db.coll.explain().getCollection()"},getVerbosity:{link:"",description:"Returns the explainable verbosity.",example:"db.coll.explain().getVerbosity()"},setVerbosity:{link:"",description:"Sets the explainable verbosity.",example:'db.coll.explain().setVerbosity("queryPlanner")'}}}},ExplainableCursor:{iteration:{"no-cursor":"no cursor","type-it-for-more":'Type "it" for more'},help:{description:"Explainable Cursor. See the Cursor class help methods for more information"}},RunCommandCursor:{help:{description:"RunCommandCursor Class",attributes:{batchSize:{description:"Specifies the number of documents to return in each batch of the response from the MongoDB instance."},close:{link:"https://docs.mongodb.com/manual/reference/method/cursor.close",description:"Instructs the server to close a cursor and free associated server resources. The server will automatically close cursors that have no remaining results, as well as cursors that have been idle for a period of time and lack the cursor.noCursorTimeout() option."},forEach:{link:"https://docs.mongodb.com/manual/reference/method/cursor.forEach",description:"Iterates the cursor to apply a JavaScript function to each document from the cursor."},hasNext:{link:"https://docs.mongodb.com/manual/reference/method/cursor.hasNext",description:"cursor.hasNext() returns true if the cursor returned by the db.collection.aggregate() can iterate further to return more documents. NOTE: if the cursor is tailable with awaitData then hasNext will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead"},isClosed:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isClosed",description:"Returns true if the cursor is closed."},isExhausted:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isExhausted",description:"cursor.isExhausted() returns true if the cursor is closed and there are no remaining objects in the batch."},itcount:{link:"https://docs.mongodb.com/manual/reference/method/cursor.itcount",description:"Counts the number of documents remaining in a cursor. itcount() is similar to cursor.count(), but actually executes the query on an existing iterator, exhausting its contents in the process."},map:{link:"https://docs.mongodb.com/manual/reference/method/cursor.map",description:"Applies the first argument, a function, to each document visited by the cursor and collects the return values from successive application into an array."},maxTimeMS:{link:"https://docs.mongodb.com/manual/reference/method/cursor.maxTimeMS",description:"Specifies a cumulative time limit in milliseconds for processing operations on a cursor."},next:{link:"https://docs.mongodb.com/manual/reference/method/cursor.next",description:"The next document in the cursor returned by the db.collection.aggregate() method. NOTE: if the cursor is tailable with awaitData then next will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead"},objsLeftInBatch:{link:"https://docs.mongodb.com/manual/reference/method/cursor.objsLeftInBatch",description:"cursor.objsLeftInBatch() returns the number of documents remaining in the current batch."},pretty:{description:"Deprecated. The shell provides auto-formatting so this method is no longer useful"},toArray:{link:"https://docs.mongodb.com/manual/reference/method/cursor.toArray",description:"The toArray() method returns an array that contains all the documents from a cursor. The method iterates completely the cursor, loading all the documents into RAM and exhausting the cursor."},tryNext:{description:"If a document is in the cursor's batch it will be returned, otherwise null will be returned"}}}},ReplicaSet:{help:{description:"Replica Set Class",link:"https://docs.mongodb.com/manual/reference/method/js-replication/",attributes:{initiate:{link:"https://docs.mongodb.com/manual/reference/method/rs.initiate",description:"Initiates the replica set.",example:"rs.initiate()"},config:{link:"https://docs.mongodb.com/manual/reference/method/rs.conf",description:"Returns a document that contains the current replica set configuration.",example:"rs.config()"},reconfig:{link:"https://docs.mongodb.com/manual/reference/method/rs.reconfig",description:"Reconfigures an existing replica set, overwriting the existing replica set configuration.",example:"rs.reconfig()"},reconfigForPSASet:{link:"https://docs.mongodb.com/manual/reference/method/rs.reconfigForPSASet",description:"Reconfigures an existing replica set, overwriting the existing replica set configuration, if the reconfiguration is a transition from a Primary-Arbiter to a Primary-Secondary-Arbiter set.",example:"rs.reconfigForPSASet(indexOfNewMemberInMembersArray, config)"},conf:{link:"https://docs.mongodb.com/manual/reference/method/rs.conf",description:"Calls replSetConfig",example:"rs.conf()"},status:{link:"https://docs.mongodb.com/manual/reference/method/rs.status",description:"Calls replSetGetStatus",example:"rs.status()"},isMaster:{link:"https://docs.mongodb.com/manual/reference/method/rs.isMaster",description:"Calls isMaster",example:"rs.isMaster()"},hello:{link:"https://docs.mongodb.com/manual/reference/method/rs.hello",description:"Calls hello",example:"rs.hello()"},printSecondaryReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/rs.printSecondaryReplicationInfo",description:"Calls db.printSecondaryReplicationInfo",example:"rs.printSecondaryReplicationInfo()"},printSlaveReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/rs.printSlaveReplicationInfo",description:"DEPRECATED. Use rs.printSecondaryReplicationInfo",example:"rs.printSlaveReplicationInfo()"},printReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/rs.printReplicationInfo",description:"Calls db.printReplicationInfo",example:"rs.printReplicationInfo()"},add:{link:"https://docs.mongodb.com/manual/reference/method/rs.add",description:"Adds replica set member to replica set.",example:"rs.add(hostport, arbiterOnly?)"},addArb:{link:"https://docs.mongodb.com/manual/reference/method/rs.addArb",description:"Calls rs.add with arbiterOnly=true",example:"rs.addArb(hostname)"},remove:{link:"https://docs.mongodb.com/manual/reference/method/rs.remove",description:"Removes a replica set member.",example:"rs.remove(hostname)"},freeze:{link:"https://docs.mongodb.com/manual/reference/method/rs.freeze",description:"Prevents the current member from seeking election as primary for a period of time. Uses the replSetFreeze command",example:"rs.freeze(secs)"},stepDown:{link:"https://docs.mongodb.com/manual/reference/method/rs.stepDown",description:"Causes the current primary to become a secondary which forces an election. If no stepDownSecs is provided, uses 60 seconds. Uses the replSetStepDown command",example:"rs.stepDown(stepDownSecs?, catchUpSecs?)"},syncFrom:{link:"https://docs.mongodb.com/manual/reference/method/rs.syncFrom",description:"Sets the member that this replica set member will sync from, overriding the default sync target selection logic.",example:"rs.syncFrom(host)"},secondaryOk:{description:"This method is deprecated. Use db.getMongo().setReadPref() instead"}}}},Shard:{help:{description:"The Shard Class",attributes:{enableSharding:{link:"https://docs.mongodb.com/manual/reference/method/sh.enableSharding",description:"Enables sharding on a specific database. Uses the enableSharding command",example:"sh.enableSharding(database, primaryShard?)"},shardCollection:{link:"https://docs.mongodb.com/manual/reference/method/sh.shardCollection",description:"Enables sharding for a collection. Uses the shardCollection command",example:"sh.shardCollection(namespace, key, unique?, options?)"},reshardCollection:{link:"https://docs.mongodb.com/manual/reference/method/sh.reshardCollection",description:"Enables sharding for a collection. Uses the reshardCollection command",example:"sh.reshardCollection(namespace, key, unique?, options?)"},commitReshardCollection:{link:"https://docs.mongodb.com/manual/reference/method/sh.commitReshardCollection",description:"Commits the current reshardCollection on a given collection",example:"sh.commitReshardCollection(namespace)"},abortReshardCollection:{link:"https://docs.mongodb.com/manual/reference/method/sh.abortReshardCollection",description:"Abort the current reshardCollection on a given collection",example:"sh.abortReshardCollection(namespace)"},status:{link:"https://docs.mongodb.com/manual/reference/method/sh.status",description:"Prints a formatted report of the sharding configuration and the information regarding existing chunks in a sharded cluster. The default behavior suppresses the detailed chunk information if the total number of chunks is greater than or equal to 20.",example:"sh.status(verbose?)"},addShard:{link:"https://docs.mongodb.com/manual/reference/method/sh.addShard",description:"Adds a shard to a sharded cluster. Uses the addShard command",example:"sh.addShard(url)"},addShardToZone:{link:"https://docs.mongodb.com/manual/reference/method/sh.addShardToZone",description:"Associates a shard to a zone. Uses the addShardToZone command",example:"sh.addShardToZone(shard, zone)"},addShardTag:{link:"https://docs.mongodb.com/manual/reference/method/sh.addShardTag",description:"3.4+ only. Calls addShardTag for a sharded DB. Aliases to sh.addShardToZone().",example:"sh.addShardTag(shard, tag)"},updateZoneKeyRange:{link:"https://docs.mongodb.com/manual/reference/method/sh.updateZoneKeyRange",description:"Associates a range of shard keys to a zone. Uses the updateZoneKeyRange command",example:"sh.updateZoneKeyRange(ns, min, max, zone)"},addTagRange:{link:"https://docs.mongodb.com/manual/reference/method/sh.addTagRange",description:"3.4+ only. Adds a tag range for a sharded DB. This method aliases to sh.updateZoneKeyRange()",example:"sh.addTagRange(ns, min, max, zone)"},removeRangeFromZone:{link:"https://docs.mongodb.com/manual/reference/method/sh.removeRangeFromZone",description:"3.4+ only. Removes an association between a range of shard keys and a zone.",example:"sh.removeRangeFromZone(ns, min, max)"},removeTagRange:{link:"https://docs.mongodb.com/manual/reference/method/sh.removeTagRange",description:"3.4+ only. Removes tag range for a sharded DB. Aliases to sh.removeRangeFromZone",example:"sh.removeTagRange(ns, min, max)"},removeShardFromZone:{link:"https://docs.mongodb.com/manual/reference/method/sh.removeShardFromZone",description:"3.4+ only. Removes the association between a shard and a zone. Uses the removeShardFromZone command",example:"sh.removeShardFromZone(shard, zone)"},removeShardTag:{link:"https://docs.mongodb.com/manual/reference/method/sh.removeShardTag",description:"3.4+ only. Removes a shard tag for a sharded DB. Aliases to sh.removeShardFromZone",example:"sh.removeShardTag(shard, zone)"},enableAutoSplit:{link:"https://docs.mongodb.com/manual/reference/method/sh.enableAutoSplit",description:"Enables auto-splitting for the sharded cluster. Calls update on the config.settings collection",example:"sh.enableAutoSplit()"},disableAutoSplit:{link:"https://docs.mongodb.com/manual/reference/method/sh.disableAutoSplit",description:"Disables auto-splitting for the sharded cluster. Calls update on the config.settings collection",example:"sh.disableAutoSplit()"},splitAt:{link:"https://docs.mongodb.com/manual/reference/method/sh.splitAt",description:"Divides an existing chunk into two chunks using a specific value of the shard key as the dividing point. Uses the split command",example:"sh.splitAt(ns, query)"},splitFind:{link:"https://docs.mongodb.com/manual/reference/method/sh.splitFind",description:"Splits a chunk at the shard key value specified by the query at the median. Uses the split command",example:"sh.splitFind(ns, query)"},moveChunk:{link:"https://docs.mongodb.com/manual/reference/method/sh.moveChunk",description:"Moves the chunk that contains the document specified by the query to the destination shard. Uses the moveChunk command",example:"sh.moveChunk(ns, query, destination)"},balancerCollectionStatus:{link:"https://docs.mongodb.com/manual/reference/method/sh.balancerCollectionStatus",description:"Returns information on whether the chunks of a sharded collection are balanced. Uses the balancerCollectionStatus command",example:"sh.balancerCollectionStatus(ns)"},enableBalancing:{link:"https://docs.mongodb.com/manual/reference/method/sh.enableBalancing",description:"Activates the sharded collection balancer process.",example:"sh.enableBalancing(ns)"},disableBalancing:{link:"https://docs.mongodb.com/manual/reference/method/sh.disableBalancing",description:"Disable balancing on a single collection in a sharded database. Does not affect balancing of other collections in a sharded cluster.",example:"sh.disableBalancing(ns)"},getBalancerState:{link:"https://docs.mongodb.com/manual/reference/method/sh.getBalancerState",description:"Returns true when the balancer is enabled and false if the balancer is disabled. This does not reflect the current state of balancing operations: use sh.isBalancerRunning() to check the balancer’s current state.",example:"sh.getBalancerState()"},isBalancerRunning:{link:"https://docs.mongodb.com/manual/reference/method/sh.isBalancerRunning",description:"Returns true if the balancer process is currently running and migrating chunks and false if the balancer process is not running. Uses the balancerStatus command",example:"sh.isBalancerRunning()"},startBalancer:{link:"https://docs.mongodb.com/manual/reference/method/sh.startBalancer",description:"Enables the balancer. Uses the balancerStart command",example:"sh.startBalancer(timeout)"},stopBalancer:{link:"https://docs.mongodb.com/manual/reference/method/sh.stopBalancer",description:"Disables the balancer. uses the balancerStop command",example:"sh.stopBalancer(timeout)"},setBalancerState:{link:"https://docs.mongodb.com/manual/reference/method/sh.setBalancerState",description:"Calls sh.startBalancer if state is true, otherwise calls sh.stopBalancer",example:"sh.setBalancerState(state)"},getShardedDataDistribution:{description:"Returns data-size distribution information for all existing sharded collections",example:"sh.getShardedDataDistribution()"},startAutoMerger:{link:"https://docs.mongodb.com/manual/reference/method/sh.startAutoMerger",description:"Globally enable auto-merger (active only if balancer is up)",example:"sh.startAutoMerger()"},stopAutoMerger:{link:"https://docs.mongodb.com/manual/reference/method/sh.stopAutoMerger",description:"Globally disable auto-merger",example:"sh.stopAutoMerger()"},isAutoMergerEnabled:{link:"https://docs.mongodb.com/manual/reference/method/sh.isAutoMergerEnabled",description:"Returns whether the auto-merger is enabled",example:"sh.isAutoMergerEnabled()"},disableAutoMerger:{link:"https://docs.mongodb.com/manual/reference/method/sh.disableAutoMerger",description:"Disable auto-merging on one collection",example:"sh.disableAutoMerger(ns)"},enableAutoMerger:{link:"https://docs.mongodb.com/manual/reference/method/sh.enableAutoMerger",description:"Re-enable auto-merge on one collection",example:"sh.enableAutoMerger(ns)"},checkMetadataConsistency:{link:"https://docs.mongodb.com/manual/reference/method/sh.checkMetadataConsistency",description:"Returns a cursor with information about metadata inconsistencies",example:"sh.checkMetadataConsistency(<options>)"}}}},Session:{help:{description:"The Session Class. Represents a server session",link:"https://docs.mongodb.com/manual/reference/method/Session/",attributes:{getDatabase:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.getDatabase",description:"Returns a database class that will pass the session to the server with every command"},advanceOperationTime:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.advanceOperationTime",description:"Updates the operation time"},endSession:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.endSession",description:"Ends the session"},hasEnded:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.hasEnded",description:"Returns a boolean that specifies whether the session has ended."},getClusterTime:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.getClusterTime",description:"Returns the most recent cluster time as seen by the session. Applicable for replica sets and sharded clusters only."},getOperationTime:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.getOperationTime",description:"Returns the timestamp of the last acknowledged operation for the session."},getOptions:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.getOptions",description:"Returns the options object passed to startSession"},startTransaction:{link:"https://docs.mongodb.com/manual/reference/method/Session.startTransaction/#Session.startTransaction",description:"Starts a multi-document transaction for the session."},commitTransaction:{link:"https://docs.mongodb.com/manual/reference/method/Session.commitTransaction/#Session.commitTransaction",description:"Commits the session’s transaction."},abortTransaction:{link:"https://docs.mongodb.com/manual/reference/method/Session.abortTransaction/#Session.abortTransaction",description:"Aborts the session’s transaction."},withTransaction:{link:"https://docs.mongodb.com/manual/reference/method/Session.abortTransaction/#Session.withTransaction",description:"Run a function within a transaction context.",example:'session.withTransaction(() => { session.getDatabase("test").test.insertOne({ doc: 1 }); })'},advanceClusterTime:{description:"Advances the clusterTime for a Session to the provided clusterTime."}}}},Mongo:{help:{description:"The Mongo Class. Represents a connection to a server",link:"https://docs.mongodb.com/manual/reference/method/Mongo/#Mongo",attributes:{watch:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.watch",description:"Opens a change stream cursor on the connection",example:"const cursor = db.getMongo().watch(pipeline, options)"},startSession:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.startSession/",description:"Starts a session for the connection."},getCollection:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getCollection",description:"Returns the specified Collection of the Mongo object.",example:'const collection = db.getMongo().getCollection("databaseName.collectionName")'},getDB:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getDB",description:"Returns the specified Database of the Mongo object."},getDBs:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getDBs",description:"Returns information about all databases. Uses the listDatabases command."},getDBNames:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getDBs",description:"Returns an array of all database names. Uses the listDatabases command.",example:"db.getMongo().getDBNames().map(name => db.getSiblingDB(name).getCollectionNames())"},getURI:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getURI",description:"Returns the connection string for current session"},connect:{link:"https://docs.mongodb.com/manual/reference/method/connect",description:"Creates a connection to a MongoDB instance and returns the reference to the database."},close:{description:"Closes a Mongo object, disposing of related resources and closing the underlying connection."},getReadConcern:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getReadConcern",description:"Returns the ReadConcern set for the connection.",example:"db.getMongo().getReadConcern()"},getWriteConcern:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getWriteConcern",description:"Returns the WriteConcern set for the connection.",example:"db.getMongo().getWriteConcern()"},getReadPref:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getReadPref",description:"Returns the ReadPreference set for the connection.",example:"db.getMongo().getReadPref()"},getReadPrefMode:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getReadPrefMode",description:"Returns the ReadPreference Mode set for the connection.",example:"db.getMongo().getReadPrefMode()"},getReadPrefTagSet:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getReadPrefTagSet",description:"Returns the ReadPreference TagSet set for the connection.",example:"db.getMongo().getReadPrefTagSet()"},setReadPref:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.setReadPref",description:"Sets the ReadPreference for the connection",example:"db.getMongo().setReadPref(mode, tagSets, hedgeOptions)"},setReadConcern:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.setReadConcern",description:"Sets the ReadConcern for the connection",example:"db.getMongo().setReadConcern(level)"},setWriteConcern:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.setWriteConcern",description:"Sets the WriteConcern for the connection",example:"db.getMongo().setWriteConcern('majority')"},setCausalConsistency:{description:"This method is deprecated. It is not possible to set causal consistency for an entire connection due to driver limitations, use startSession({causalConsistency: <>}) instead."},setSlaveOk:{description:"This method is deprecated"},setSecondaryOk:{description:"This method is deprecated. Use .setReadPref() instead"},isCausalConsistency:{description:"This method is deprecated. Causal consistency for drivers is set via Mongo.startSession and can be checked via session.getOptions. The default value is true"},getKeyVault:{description:"Returns the KeyVault object for the current database connection. The KeyVault object supports data encryption key management for Client-side field level encryption.",link:"https://docs.mongodb.com/manual/reference/method/getKeyVault/#getKeyVault"},getClientEncryption:{description:"Returns the ClientEncryption object for the current database collection. The ClientEncryption object supports explicit (manual) encryption and decryption of field values for Client-Side field level encryption.",link:"https://docs.mongodb.com/manual/reference/method/getClientEncryption/#getClientEncryption"},convertShardKeyToHashed:{description:"Returns the hashed value for the input using the same hashing function as a hashed index.",link:"https://www.mongodb.com/docs/manual/reference/method/convertShardKeyToHashed/"}}}},DBRef:{help:{description:"The DBRef BSON Class.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/DBRef.html",example:"new DBRef(namespace: string, oid: ObjectId, db: string [optional])"},attributes:{}},MaxKey:{help:{description:"The MaxKey BSON Class.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/MaxKey.html",example:"new MaxKey()"},attributes:{}},MinKey:{help:{description:"The MinKey BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/MinKey.html",example:"new MinKey()"},attributes:{}},ObjectId:{help:{description:"The ObjectId BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/ObjectID.html",example:"new ObjectId(id: string|number [optional])"},attributes:{}},BSONSymbol:{help:{description:"The Symbol BSON Class. Deprecated since server version 1.6",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Symbol.html",example:'new BSONSymbol("abc")'},attributes:{}},Timestamp:{help:{description:"The Timestamp BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Timestamp.html",example:"new Timestamp(low: signed 32 bit number, high: signed 32 bit number)"},attributes:{}},Code:{help:{description:"The Code BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Code.html",example:'new Code("x", { x: 1 } [optional])'},attributes:{}},NumberDecimal:{help:{description:"A helper method that constructs a Decimal128 BSON Class from a string",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Decimal128.html",example:'NumberDecimal("1.23423423")'}},Decimal128:{help:{description:"The Decimal128 BSON Class. Takes a Buffer as an argument.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Decimal128.html"},attributes:{}},NumberInt:{help:{description:"A helper method that constructs an Int32 BSON Class from a string",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Int32.html",example:'NumberInt("123")'}},Int32:{help:{description:"The 32-bit Integer BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Int32.html",example:"new Int32(123)"},attributes:{}},Long:{help:{description:"The Long BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html",example:"new Long(low: signed 32 bit number, high: signed 32 bit number)"},attributes:{}},Double:{help:{description:"The Double BSON Class.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html",example:"new Double(123)"},attributes:{}},NumberLong:{help:{description:"A helper method that constructs a Long BSON Class from a string",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html",example:'NumberLong("123")'}},Date:{help:{description:"The Date Class"}},ISODate:{help:{description:"Helper method for creating dates using ISO"}},BinData:{help:{description:"A helper method that constructs a Binary BSON Class.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Binary.html",example:"BinData(subtype: number, base64string)"}},Binary:{help:{description:"The Binary BSON Class that takes in (Buffer, subtype: number) as arguments.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Binary.html"},attributes:{SUBTYPE_BYTE_ARRAY:{description:"The byte array BSON type"},SUBTYPE_DEFAULT:{description:"The default BSON type"},SUBTYPE_FUNCTION:{description:"The function BSON type"},SUBTYPE_MD5:{description:"The MD5 BSON type"},SUBTYPE_USER_DEFINED:{description:"The user BSON type"},SUBTYPE_UUID:{description:"The UUID BSON type"},SUBTYPE_UUID_OLD:{description:"The Old UUID BSON type"}}},HexData:{help:{description:"Helper method to create BinData. Accepts subtype hex string",example:'HexData(0, "0123456789abcdef")'}},UUID:{help:{description:"Helper method to create BinData with subtype UUID. Accepts hex string (with optional dashes)",example:'UUID("01234567-89ab-cdef-0123-456789abcdef")'}},MD5:{help:{description:"Helper method to create BinData with subtype MD5. Accepts hex string",example:'MD5("0123456789abcdef0123456789abcdef")'}},bsonsize:{help:{description:"Helper method to calculate BSON object size",example:'bsonsize({ foo: "bar" })'}},Map:{help:{description:"BSON Map"}},Bulk:{help:{link:"https://docs.mongodb.com/manual/reference/method/Bulk",description:"Bulk operations builder used to construct a list of write operations to perform in bulk for a single collection. To instantiate the builder, use either the db.collection.initializeOrderedBulkOp() or the db.collection.initializeUnorderedBulkOp() method.",attributes:{insert:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.insert/",description:"Adds an insert to the bulk operation.",example:"db.insert(<document>)"},execute:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.execute/",description:"Executes the bulk operation.",example:"bulkOp.execute()"},find:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find/",description:"Adds a find to the bulk operation.",example:"bulkOp.find(<filter>)"},getOperations:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.getOperations/",description:"Returns the batches executed by the bulk write.",example:"bulkOp.getOperations()"},tojson:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.tojson/",description:"Returns a JSON document that contains the number of operations and batches in the Bulk() object.",example:"bulkOp.tojson()"},toString:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.toString/",description:"Returns as a string a JSON document that contains the number of operations and batches in the Bulk() object.",example:"bulkOp.toString()"}}}},BulkFindOp:{help:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find",description:"Bulk operations builder returned after Bulk.find()",attributes:{arrayFilters:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.arrayFilters/",description:"Adds an arrayFilter to the bulk operation.",example:"bulkOp.find(...).arrayFilters(<array of filters)"},hint:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.hint/",description:"Adds an hint to the bulk operation.",example:"bulkOp.find(...).hint(<hintd document>)"},collation:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.collation/",description:"Adds collation options to the bulk operation.",example:"bulkOp.find(...).collation(<collation doc>)"},remove:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.remove/",description:"Adds an remove to the bulk operation.",example:"bulkOp.find(...).remove()"},removeOne:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.removeOne/",description:"Adds an removeOne to the bulk operation.",example:"bulkOp.find(...).removeOne()"},delete:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.delete/",description:"Adds an delete to the bulk operation.",example:"bulkOp.find(...).delete()"},deleteOne:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.deleteOne/",description:"Adds an deleteOne to the bulk operation.",example:"bulkOp.find(...).deleteOne()"},replaceOne:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.replaceOne/",description:"Adds an replaceOne to the bulk operation.",example:"bulkOp.find(...).replaceOne(<document>)"},updateOne:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.updateOne/",description:"Adds an updateOne to the bulk operation.",example:"bulkOp.find(...).updateOne(<document>)"},update:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.update/",description:"Adds an update to the bulk operation.",example:"bulkOp.find(...).update(<document>)"},upsert:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.upsert/",description:"Adds an upsert to the bulk operation updates for this find(...).",example:"bulkOp.find(...).upsert()"}}}},PlanCache:{help:{link:"https://docs.mongodb.com/manual/reference/method/js-plan-cache/",description:"An interface to access the query plan cache object and associated PlanCache methods for a collection.",attributes:{clear:{link:"https://docs.mongodb.com/manual/reference/method/PlanCache.clear",description:"Removes cached query plan(s) for a collection.",example:"db.coll.getPlanCache().clear()"},clearPlansByQuery:{link:"https://docs.mongodb.com/manual/reference/method/PlanCache.clearPlansByQuery",description:"Removes cached query plan(s) for a collection of the specified query shape.",example:"db.coll.getPlanCache().clearPlansByQuery(<query>, <projection?>, <sort?>)"},list:{link:"https://docs.mongodb.com/manual/reference/method/PlanCache.list",description:"Lists cached query plan(s) for a collection.",example:"db.coll.getPlanCache().list(<pipeline>)"},getPlansByQuery:{description:"Deprecated. Please use PlanCache.list instead"},listQueryShapes:{description:"Deprecated. Please use PlanCache.list instead"}}}},Document:{help:{link:"https://docs.mongodb.com/manual/core/document/",description:"A generic MongoDB document, without any methods.",attributes:{}}},KeyVault:{help:{link:"https://docs.mongodb.com/manual/core/security-client-side-encryption/",description:"The key vault object for the current MongoDB connection",attributes:{createKey:{description:"Creates a data encryption key for use with client-side field level encryption.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.createKey/#KeyVault.createKey"},deleteKey:{description:"Deletes the specified data encryption key from the key vault.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.deleteKey/#KeyVault.deleteKey"},getKey:{description:"Retreives the specified data encryption key from the key vault.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.getKey/#KeyVault.getKey"},getKeys:{description:"Retrieves all keys in the key vault.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.getKeys/#KeyVault.getKeys"},addKeyAlternateName:{description:"Associates a key alternative name to the specified data encryption key.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.addKeyAlternateName/#KeyVault.addKeyAlternateName"},removeKeyAlternateName:{description:"Removes a key alternative name from the specified data encryption key.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.removeKeyAlternateName/#KeyVault.removeKeyAlternateName"},getKeyByAltName:{description:"Retrieves keys with the specified key alternative name.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.getKeyByAltName/#KeyVault.getKeyByAltName"},rewrapManyDataKey:{description:"Re-wrap one, more, or all data keys with another KMS provider, or re-wrap using the same one.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.rewrapManyDataKey/#KeyVault.rewrapManyDataKey"},createDataKey:{description:"Alias of KeyVault.createKey()",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.createKey/#KeyVault.createKey"},removeKeyAltName:{description:"Alias of KeyVault.removeKeyAlternateName()",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.removeKeyAlternateName/#KeyVault.removeKeyAlternateName"},addKeyAltName:{description:"Alias of KeyVault.addKeyAlternateName()",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.addKeyAlternateName/#KeyVault.addKeyAlternateName"}}}},ClientEncryption:{help:{link:"https://docs.mongodb.com/manual/core/security-client-side-encryption/",description:"The ClientEncryption object for the current database collection.",attributes:{encrypt:{link:"https://docs.mongodb.com/manual/reference/method/ClientEncryption.encrypt/#ClientEncryption.encrypt",description:"Encrypts the value using the specified encryptionKeyId and encryptionAlgorithm. encrypt supports explicit (manual) encryption of field values."},encryptExpression:{link:"https://docs.mongodb.com/manual/reference/method/ClientEncryption.encrypt/#ClientEncryption.encryptExpression",description:"Encrypts an MQL expression using the specified encryptionKeyId and encryptionAlgorithm."},decrypt:{link:"https://docs.mongodb.com/manual/reference/method/ClientEncryption.decrypt/#ClientEncryption.decrypt",description:"decrypts the encryptionValue if the current database connection was configured with access to the Key Management Service (KMS) and key vault used to encrypt encryptionValue."},createEncryptedCollection:{link:"https://docs.mongodb.com/manual/reference/method/ClientEncryption.createEncryptedCollection/#ClientEncryption.createEncryptedCollection",description:"Creates a new collection with a list of encrypted fields each with unique and auto-created data encryption keys (DEKs). This method should be invoked on a connection instantiated with queryable encryption options.",example:'db.getMongo().getClientEncryption().createEncryptedCollection( "dbName", "collName", { "provider": "<kmsProvider>", "createCollectionOptions": { "encryptedFields": { ... }, ...<otherOptions> } })'}}}},Streams:{help:{description:"Streams",attributes:{process:{description:"Allows a user to process streams of data in the shell interactively and quickly iterate building a stream processor as they go."},createStreamProcessor:{description:"Create a named stream processor."},getProcessor:{description:"Get a stream processor with specified name."},listStreamProcessors:{description:"Show a list of all the named stream processors."},listConnections:{description:"Show a list of all the named connections for this instance from the Connection Registry."}}}},StreamProcessor:{help:{description:"Stream processor",attributes:{start:{description:"Start a named stream processor."},stop:{description:"Stop a named stream processor."},drop:{description:"Drop a named stream processor."},sample:{description:"Return a sample of the results from a named stream processor."},stats:{description:"Return stats captured from a named stream processor."}}}}}},"transport-browser":{"stitch-browser-transport":{"auth-error":"Error authenticating with Stitch."}},"transport-core":{"stitch-transport":{"not-implemented":"is not implemented in the Stitch SDK","agg-on-db":"Aggregations run on the database is not allowed via Stitch"}},"transport-server":{}}},78313:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(1296),i=s(r(75962)),a=s(r(415)),o=s(r(27524)),u="en_US",l={en_US:o.default,de_DE:a.default};t.default=class{__(e){const t=this.translate(e);if(void 0===t)throw new n.MongoshInternalError(`Could not translate key ${JSON.stringify(e)}`);return t}constructor(e){this.locale=u,this.catalog=e||l[this.locale]}setLocale(e){Object.prototype.hasOwnProperty.call(l,e)?(this.locale=e,this.catalog=l[e]):(this.locale=u,this.catalog=l[u])}translate(e){return this.find(e)}translateApiHelp(e){const t=this.find(e);if(t)return"string"==typeof t?t:i.default.render("{{description}}\n\n{{link}}\n\n{{example}}\n\n{{returns}}",t)}find(e){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),this.catalog)}}},15789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},26797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},47390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bson=void 0;const s=r(30345);t.bson={ObjectId:s.ObjectId,DBRef:s.DBRef,MaxKey:s.MaxKey,MinKey:s.MinKey,Timestamp:s.Timestamp,BSONSymbol:s.BSONSymbol,Code:s.Code,Decimal128:s.Decimal128,Int32:s.Int32,Long:s.Long,Binary:s.Binary,calculateObjectSize:s.calculateObjectSize,Double:s.Double,EJSON:s.EJSON,BSONRegExp:s.BSONRegExp}},817:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(r(20964));t.default=function(e,t,r,s,i,a){var o;null!=r||(r={});const{isGenuine:u,serverName:l}=n.default.getGenuineMongoDB(e),{isDataLake:c,dlVersion:p}=n.default.getDataLake(r),h=i.s.credentials?i.s.credentials.mechanism:null,{serverOs:d,serverArch:f}=n.default.getBuildEnv(r);return{is_atlas:!!(null==s?void 0:s.atlasVersion)||n.default.isAtlas(e),is_localhost:n.default.isLocalhost(e),is_do:n.default.isDigitalOcean(e),server_version:r.version,node_version:process.version,mongosh_version:t,server_os:d,uri:e,server_arch:f,is_enterprise:n.default.isEnterprise(r),auth_type:h,is_data_federation:c,is_stream:n.default.isAtlasStream(e),dl_version:p,atlas_version:null!==(o=null==s?void 0:s.atlasVersion)&&void 0!==o?o:null,is_genuine:u,non_genuine_server_name:l,is_local_atlas:a}}},63292:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.bsonStringifiers=t.ServiceProviderCore=t.DEFAULT_DB=t.getConnectInfo=t.bson=void 0,r(46503);const a=r(53017);Object.defineProperty(t,"ServiceProviderCore",{enumerable:!0,get:function(){return a.ServiceProviderCore}});const o=i(r(817));t.getConnectInfo=o.default,t.DEFAULT_DB="test";const u=r(81132);Object.defineProperty(t,"bsonStringifiers",{enumerable:!0,get:function(){return u.bsonStringifiers}}),n(r(26797),t),n(r(15789),t);var l=r(47390);Object.defineProperty(t,"bson",{enumerable:!0,get:function(){return l.bson}})},81132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makePrintableBson=t.bsonStringifiers=void 0;const s=r(47390),n=Symbol.for("nodejs.util.inspect.custom");function i(e){const t=s.bson[e].prototype.inspect;return function(...e){return r=t.apply(this,e),String(r).replace(/^(\s*)(new )/,"$1");var r}}const a=i("Binary");t.bsonStringifiers={ObjectId:i("ObjectId"),ObjectID:i("ObjectId"),DBRef:i("DBRef"),MaxKey:i("MaxKey"),MinKey:i("MinKey"),Timestamp:i("Timestamp"),BSONSymbol:i("BSONSymbol"),Code:i("Code"),Decimal128:i("Decimal128"),Int32:i("Int32"),Long:i("Long"),Double:i("Double"),BSONRegExp:i("BSONRegExp"),Binary:function(...e){const t=this.toString("hex");switch(this.sub_type){case s.bson.Binary.SUBTYPE_MD5:return`MD5('${t}')`;case s.bson.Binary.SUBTYPE_UUID:if(32===t.length)return`UUID('${/^(.{8})(.{4})(.{4})(.{4})(.{12})$/.exec(t).slice(1,6).join("-")}')`;default:return a.apply(this,e)}}},t.makePrintableBson=function(e){e||(e=s.bson);for(const[r,s]of Object.entries(t.bsonStringifiers)){if(!(r in e))continue;const t=e[r];for(const e of[n,"inspect"])t.prototype[e]=s}}},53017:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceProviderCore=void 0;const s=r(1296),n=r(81132);t.ServiceProviderCore=class{constructor(e){if(void 0===e)throw new s.MongoshInternalError("BSON Library is undefined.");(0,n.makePrintableBson)(e),this.bsonLibrary=e}}},46503:(e,t)=>{"use strict";function r(){return{TextDecoder:class{decode(e){const t=Buffer.from(e).toString("utf8");return t.slice(+t.startsWith("\ufeff"))}},TextEncoder:class{encode(e){return Buffer.from(e,"utf8")}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.textEncodingPolyfill=void 0,"function"==typeof TextDecoder&&"function"==typeof TextEncoder||Object.assign(Function("return this")(),r()),t.textEncodingPolyfill=r},389:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCursor=void 0;const n=r(33335),i=r(26591),a=r(95961),o=r(75671);let u=t.AbstractCursor=class extends n.ShellApiWithMongoClass{constructor(e,t){super(),this._currentIterationResult=null,this._mongo=e,this._cursor=t,this._transform=null}async[i.asPrintable](){var e;return(await(0,n.toShellResult)(null!==(e=this._currentIterationResult)&&void 0!==e?e:await this._it())).printable}async _it(){const e=this._currentIterationResult=new a.CursorIterationResult;return await(0,o.iterate)(e,this,await this._mongo._displayBatchSize()),e.cursorHasMore=!this.isExhausted(),e}batchSize(e){return this._cursor.batchSize(e),this}async close(){await this._cursor.close()}async forEach(e){for await(const t of this)if(!1===await e(t))break}async hasNext(){return this._cursor.hasNext()}async tryNext(){let e=await this._cursor.tryNext();return null!==e&&null!==this._transform&&(e=await this._transform(e)),e}get[Symbol.for("@@mongosh.syntheticAsyncIterable")](){return!0}async*[Symbol.asyncIterator](){let e;for(;null!=(e=await this.tryNext());)yield e}isClosed(){return this._cursor.closed}isExhausted(){return this.isClosed()&&0===this.objsLeftInBatch()}async itcount(){let e=0;for(;await this.tryNext();)e++;return e}async toArray(){const e=[];for await(const t of this)e.push(t);return e}pretty(){return this}map(e){if(null===this._transform)this._transform=e;else{const t=this._transform;this._transform=r=>e(t(r))}return this}maxTimeMS(e){return this._cursor.maxTimeMS(e),this}async next(){let e=await this._cursor.next();return null!==e&&null!==this._transform&&(e=await this._transform(e)),e}objsLeftInBatch(){return this._cursor.bufferedCount()}};s([(0,n.returnType)("this")],u.prototype,"batchSize",null),s([n.returnsPromise],u.prototype,"close",null),s([n.returnsPromise],u.prototype,"forEach",null),s([n.returnsPromise],u.prototype,"hasNext",null),s([n.returnsPromise],u.prototype,"tryNext",null),s([n.returnsPromise],u.prototype,"itcount",null),s([n.returnsPromise],u.prototype,"toArray",null),s([(0,n.returnType)("this")],u.prototype,"pretty",null),s([(0,n.returnType)("this")],u.prototype,"map",null),s([(0,n.returnType)("this")],u.prototype,"maxTimeMS",null),s([n.returnsPromise],u.prototype,"next",null),t.AbstractCursor=u=s([n.shellApiClassNoHelp],u)},47478:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateOrFindCursor=void 0;const n=r(33335),i=r(75671),a=r(389);let o=t.AggregateOrFindCursor=class extends a.AbstractCursor{projection(e){return this._cursor.project(e),this}skip(e){return this._cursor.skip(e),this}sort(e){return this._cursor.sort(e),this}async explain(e){e=(0,i.validateExplainableVerbosity)(e);const t={...await this._cursor.explain(e)};return"executionStats"!==e&&"allPlansExecution"!==e&&t.executionStats&&delete t.executionStats,"executionStats"===e&&t.executionStats&&t.executionStats.allPlansExecution&&delete t.executionStats.allPlansExecution,(0,i.markAsExplainOutput)(t)}};s([(0,n.returnType)("this")],o.prototype,"projection",null),s([(0,n.returnType)("this")],o.prototype,"skip",null),s([(0,n.returnType)("this")],o.prototype,"sort",null),s([n.returnsPromise,(0,n.apiVersions)([1])],o.prototype,"explain",null),t.AggregateOrFindCursor=o=s([n.shellApiClassNoHelp],o)},53891:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(33335),i=r(47478);let a=class extends i.AggregateOrFindCursor{constructor(e,t){super(e,t)}};a=s([n.shellApiClassDefault],a),t.default=a},14405:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.BulkFindOp=void 0;const n=r(33335),i=r(1296),a=r(26591),o=r(75671),u=r(95961);let l=t.BulkFindOp=class extends n.ShellApiWithMongoClass{constructor(e,t){super(),this._serviceProviderBulkFindOp=e,this._parentBulk=t}get _mongo(){return this._parentBulk._mongo}[a.asPrintable](){return"BulkFindOp"}collation(e){return this._serviceProviderBulkFindOp.collation(e),this}arrayFilters(e){return this._serviceProviderBulkFindOp.arrayFilters(e),this}hint(e){return(0,o.assertArgsDefinedType)([e],[!0],"BulkFindOp.hint"),this._serviceProviderBulkFindOp.hint(e),this}delete(){return this._parentBulk._batchCounts.nRemoveOps++,this._serviceProviderBulkFindOp.delete(),this._parentBulk}deleteOne(){return this._parentBulk._batchCounts.nRemoveOps++,this._serviceProviderBulkFindOp.deleteOne(),this._parentBulk}remove(){return this.delete()}removeOne(){return this.deleteOne()}replaceOne(e){this._parentBulk._batchCounts.nUpdateOps++,(0,o.assertArgsDefinedType)([e],[!0],"BulkFindOp.replacement");const t=(0,o.shallowClone)(e);return this._serviceProviderBulkFindOp.replaceOne(t),this._parentBulk}updateOne(e){this._parentBulk._batchCounts.nUpdateOps++,(0,o.assertArgsDefinedType)([e],[!0],"BulkFindOp.update");const t=(0,o.shallowClone)(e);return this._serviceProviderBulkFindOp.updateOne(t),this._parentBulk}update(e){this._parentBulk._batchCounts.nUpdateOps++,(0,o.assertArgsDefinedType)([e],[!0],"BulkFindOp.update");const t=(0,o.shallowClone)(e);return this._serviceProviderBulkFindOp.update(t),this._parentBulk}upsert(){return this._serviceProviderBulkFindOp.upsert(),this}};s([(0,n.returnType)("BulkFindOp"),(0,n.apiVersions)([1])],l.prototype,"collation",null),s([(0,n.returnType)("BulkFindOp"),(0,n.apiVersions)([1])],l.prototype,"arrayFilters",null),s([(0,n.returnType)("BulkFindOp"),(0,n.apiVersions)([1])],l.prototype,"hint",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],l.prototype,"delete",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],l.prototype,"deleteOne",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1]),n.deprecated],l.prototype,"remove",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1]),n.deprecated],l.prototype,"removeOne",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],l.prototype,"replaceOne",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],l.prototype,"updateOne",null),s([(0,n.returnType)("Bulk")],l.prototype,"update",null),s([(0,n.returnType)("Bulk")],l.prototype,"upsert",null),t.BulkFindOp=l=s([n.shellApiClassDefault],l);let c=class extends n.ShellApiWithMongoClass{constructor(e,t,r=!1){super(),this._collection=e,this._mongo=e._mongo,this._serviceProviderBulkOp=t,this._batchCounts={nInsertOps:0,nUpdateOps:0,nRemoveOps:0},this._executed=!1,this._ordered=r}[a.asPrintable](){return this.toJSON()}_emitBulkApiCall(e,t={}){this._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Bulk",db:this._collection._database._name,coll:this._collection._name,arguments:t})}async execute(e){const t=await this._serviceProviderBulkOp.execute();return this._executed=!0,this._emitBulkApiCall("execute",{writeConcern:e}),new u.BulkWriteResult(!!t.ok,t.insertedCount,t.insertedIds,t.matchedCount,t.modifiedCount,t.deletedCount,t.upsertedCount,t.upsertedIds)}find(e){return(0,o.assertArgsDefinedType)([e],[!0],"Bulk.find"),new l(this._serviceProviderBulkOp.find(e),this)}insert(e){return this._batchCounts.nInsertOps++,(0,o.assertArgsDefinedType)([e],[!0],"Bulk.insert"),this._serviceProviderBulkOp.insert(e),this}toJSON(){const e=this._serviceProviderBulkOp.batches.length;return{...this._batchCounts,nBatches:e}}toString(){return JSON.stringify(this.toJSON())}getOperations(){if(!this._executed)throw new i.MongoshInvalidInputError("Cannot call getOperations on an unexecuted Bulk operation",i.CommonErrors.InvalidOperation);return this._serviceProviderBulkOp.batches.map((e=>({originalZeroIndex:e.originalZeroIndex,batchType:e.batchType,operations:e.operations})))}};s([n.returnsPromise,(0,n.apiVersions)([1])],c.prototype,"execute",null),s([(0,n.returnType)("BulkFindOp"),(0,n.apiVersions)([1])],c.prototype,"find",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],c.prototype,"insert",null),c=s([n.shellApiClassDefault],c),t.default=c},24423:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(33335),i=r(95961),a=r(26591),o=r(1296),u=r(75671);let l=class extends n.ShellApiWithMongoClass{constructor(e,t,r){super(),this._currentIterationResult=null,this._cursor=e,this._on=t,this._mongo=r}async _it(){if(this._cursor.closed)throw new o.MongoshRuntimeError("ChangeStreamCursor is closed");const e=this._currentIterationResult=new i.CursorIterationResult;return(0,u.iterate)(e,this,await this._mongo._displayBatchSize())}[a.asPrintable](){return`ChangeStreamCursor on ${this._on}`}async close(){await this._cursor.close()}async hasNext(){return await this._instanceState.printWarning("If there are no documents in the batch, hasNext will block. Use tryNext if you want to check if there are any documents without waiting."),this._cursor.hasNext()}async tryNext(){if(this._cursor.closed)throw new o.MongoshRuntimeError("Cannot call tryNext on closed cursor");return this._cursor.tryNext()}get[Symbol.for("@@mongosh.syntheticAsyncIterable")](){return!0}async*[Symbol.asyncIterator](){let e;for(;null!==(e=await this.tryNext());)yield e}isClosed(){return this._cursor.closed}isExhausted(){throw new o.MongoshInvalidInputError("isExhausted is not implemented for ChangeStreams because after closing a cursor, the remaining documents in the batch are no longer accessible. If you want to see if the cursor is closed use isClosed. If you want to see if there are documents left in the batch, use tryNext.")}async itcount(){let e=0;for(;await this.tryNext();)e++;return e}async next(){return await this._instanceState.printWarning("If there are no documents in the batch, next will block. Use tryNext if you want to check if there are any documents without waiting."),this._cursor.next()}getResumeToken(){return this._cursor.resumeToken}map(){throw new o.MongoshUnimplementedError("Cannot call map on a change stream cursor")}forEach(){throw new o.MongoshUnimplementedError("Cannot call forEach on a change stream cursor")}toArray(){throw new o.MongoshUnimplementedError("Cannot call toArray on a change stream cursor")}objsLeftInBatch(){throw new o.MongoshUnimplementedError("Cannot call objsLeftInBatch on a change stream cursor")}pretty(){return this}};s([n.returnsPromise],l.prototype,"close",null),s([n.returnsPromise,n.deprecated],l.prototype,"hasNext",null),s([n.returnsPromise],l.prototype,"tryNext",null),s([n.returnsPromise],l.prototype,"itcount",null),s([n.returnsPromise],l.prototype,"next",null),s([(0,n.returnType)("ChangeStreamCursor")],l.prototype,"pretty",null),l=s([n.shellApiClassDefault],l),t.default=l},78419:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=r(26591),o=r(75671),u=r(62294),l=r(1296),c=n(r(14405)),p=r(59215),h=n(r(18421)),d=n(r(24423)),f=r(32589);let m=class extends i.ShellApiWithMongoClass{constructor(e,t,r){return super(),this._mongo=e,this._database=t,this._name=r,new Proxy(this,{get:(e,s)=>s in e?e[s]:"string"==typeof s&&!s.startsWith("_")&&(0,o.isValidCollectionName)(s)?t.getCollection(`${r}.${s}`):void 0})}[a.namespaceInfo](){return{db:this._database.getName(),collection:this._name}}[a.asPrintable](){return`${this._database.getName()}.${this._name}`}_emitCollectionApiCall(e,t={}){this._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Collection",db:this._database._name,coll:this._name,arguments:t})}async aggregate(...e){let t,r;0===e.length||Array.isArray(e[0])?(t=e[1]||{},r=e[0]||[]):(t={},r=e||[]),this._emitCollectionApiCall("aggregate",{options:t,pipeline:r});const{aggOptions:s,dbOptions:n,explain:i}=(0,o.adaptAggregateOptions)(t),a=this._mongo._serviceProvider.aggregate(this._database._name,this._name,r,{...await this._database._baseOptions(),...s},n),l=new u.AggregationCursor(this._mongo,a);return i?await l.explain(i):((0,o.shouldRunAggregationImmediately)(r)&&await l.hasNext(),this._mongo._instanceState.currentCursor=l,l)}async bulkWrite(e,t={}){this._emitCollectionApiCall("bulkWrite",{options:t});const r=await this._mongo._serviceProvider.bulkWrite(this._database._name,this._name,e,{...await this._database._baseOptions(),...t});return new u.BulkWriteResult(!!r.ok,r.insertedCount,r.insertedIds,r.matchedCount,r.modifiedCount,r.deletedCount,r.upsertedCount,r.upsertedIds)}async count(e={},t={}){return await this._instanceState.printDeprecationWarning("Collection.count() is deprecated. Use countDocuments or estimatedDocumentCount."),this._emitCollectionApiCall("count",{query:e,options:t}),this._mongo._serviceProvider.count(this._database._name,this._name,e,{...await this._database._baseOptions(),...t})}async countDocuments(e,t={}){return this._emitCollectionApiCall("countDocuments",{query:e,options:t}),this._mongo._serviceProvider.countDocuments(this._database._name,this._name,e,{...await this._database._baseOptions(),...t})}async deleteMany(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.deleteMany"),this._emitCollectionApiCall("deleteMany",{filter:e,options:t});const r=await this._mongo._serviceProvider.deleteMany(this._database._name,this._name,e,{...await this._database._baseOptions(),...t});return t.explain?(0,o.markAsExplainOutput)(r):new u.DeleteResult(!!r.acknowledged,r.deletedCount)}async deleteOne(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.deleteOne"),this._emitCollectionApiCall("deleteOne",{filter:e,options:t});const r=await this._mongo._serviceProvider.deleteOne(this._database._name,this._name,e,{...await this._database._baseOptions(),...t});return t.explain?(0,o.markAsExplainOutput)(r):new u.DeleteResult(!!r.acknowledged,r.deletedCount)}async distinct(e,t,r={}){return this._emitCollectionApiCall("distinct",{field:e,query:t,options:r}),(0,o.maybeMarkAsExplainOutput)(await this._mongo._serviceProvider.distinct(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r}),r)}async estimatedDocumentCount(e={}){return this._emitCollectionApiCall("estimatedDocumentCount",{options:e}),this._mongo._serviceProvider.estimatedDocumentCount(this._database._name,this._name,{...await this._database._baseOptions(),...e})}async find(e,t,r={}){t&&(r.projection=t),this._emitCollectionApiCall("find",{query:e,options:r});const s=new u.Cursor(this._mongo,this._mongo._serviceProvider.find(this._database._name,this._name,e,{...await this._database._baseOptions(),...r}));return this._mongo._instanceState.currentCursor=s,s}async findAndModify(e){(0,o.assertArgsDefinedType)([e],[!0],"Collection.findAndModify"),(0,o.assertKeysDefined)(e,["query"]),this._emitCollectionApiCall("findAndModify",{options:{...e,update:!!e.update}});const t={...e};if(delete t.query,delete t.update,e.remove)return this.findOneAndDelete(e.query,t);const{update:r}=e;if(!r)throw new l.MongoshInvalidInputError("Must specify options.update or options.remove",l.CommonErrors.InvalidArgument);return Array.isArray(r)||Object.keys(r).some((e=>e.startsWith("$")))?this.findOneAndUpdate(e.query,r,t):this.findOneAndReplace(e.query,r,t)}async findOne(e={},t,r={}){return t&&(r.projection=t),this._emitCollectionApiCall("findOne",{query:e,options:r}),new u.Cursor(this._mongo,this._mongo._serviceProvider.find(this._database._name,this._name,e,{...await this._database._baseOptions(),...r})).limit(1).tryNext()}async renameCollection(e,t){(0,o.assertArgsDefinedType)([e],["string"],"Collection.renameCollection"),this._emitCollectionApiCall("renameCollection",{newName:e,dropTarget:t});try{return await this._mongo._serviceProvider.renameCollection(this._database._name,this._name,e,{...await this._database._baseOptions(),dropTarget:!!t}),{ok:1}}catch(e){if("MongoError"===(null==e?void 0:e.name))return{ok:0,errmsg:e.errmsg,code:e.code,codeName:e.codeName};throw e}}async findOneAndDelete(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.findOneAndDelete"),this._emitCollectionApiCall("findOneAndDelete",{filter:e,options:t});const r=await this._mongo._serviceProvider.findOneAndDelete(this._database._name,this._name,e,{...await this._database._baseOptions(),...t});return t.explain&&r?(0,o.markAsExplainOutput)(r):null==r?void 0:r.value}async findOneAndReplace(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.findOneAndReplace");const s=(0,o.processFindAndModifyOptions)({...await this._database._baseOptions(),...r});this._emitCollectionApiCall("findOneAndReplace",{filter:e,findOneAndReplaceOptions:s});const n=await this._mongo._serviceProvider.findOneAndReplace(this._database._name,this._name,e,t,s);return r.explain?(0,o.markAsExplainOutput)(n):n.value}async findOneAndUpdate(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.findOneAndUpdate");const s=(0,o.processFindAndModifyOptions)({...await this._database._baseOptions(),...r});this._emitCollectionApiCall("findOneAndUpdate",{filter:e,findOneAndUpdateOptions:s});const n=await this._mongo._serviceProvider.findOneAndUpdate(this._database._name,this._name,e,t,s);return r.explain?(0,o.markAsExplainOutput)(n):n.value}async insert(e,t={}){await this._instanceState.printDeprecationWarning("Collection.insert() is deprecated. Use insertOne, insertMany, or bulkWrite."),(0,o.assertArgsDefinedType)([e],[!0],"Collection.insert");const r=Array.isArray(e)?e.map((e=>({...e}))):[{...e}];this._emitCollectionApiCall("insert",{options:t});const s=await this._mongo._serviceProvider.insertMany(this._database._name,this._name,r,{...await this._database._baseOptions(),...t});return new u.InsertManyResult(!!s.acknowledged,s.insertedIds)}async insertMany(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.insertMany");const r=Array.isArray(e)?e.map((e=>({...e}))):e;this._emitCollectionApiCall("insertMany",{options:t});const s=await this._mongo._serviceProvider.insertMany(this._database._name,this._name,r,{...await this._database._baseOptions(),...t});return new u.InsertManyResult(!!s.acknowledged,s.insertedIds)}async insertOne(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.insertOne"),this._emitCollectionApiCall("insertOne",{options:t});const r=await this._mongo._serviceProvider.insertOne(this._database._name,this._name,{...e},{...await this._database._baseOptions(),...t});return new u.InsertOneResult(!!r.acknowledged,r.insertedId)}async isCapped(){var e,t;this._emitCollectionApiCall("isCapped");const r=await this._database._listCollections({name:this._name},{nameOnly:!1});if(0===r.length)throw new l.MongoshRuntimeError(`collection ${this.getFullName()} not found`);return!!(null===(t=null===(e=r[0])||void 0===e?void 0:e.options)||void 0===t?void 0:t.capped)}async remove(e,t={}){await this._instanceState.printDeprecationWarning("Collection.remove() is deprecated. Use deleteOne, deleteMany, findOneAndDelete, or bulkWrite."),(0,o.assertArgsDefinedType)([e],[!0],"Collection.remove");const r=(0,o.processRemoveOptions)(t),s=r.justOne?"deleteOne":"deleteMany";delete r.justOne,this._emitCollectionApiCall("remove",{query:e,removeOptions:r});const n=await this._mongo._serviceProvider[s](this._database._name,this._name,e,{...await this._database._baseOptions(),...r});return r.explain?(0,o.markAsExplainOutput)(n):new u.DeleteResult(!!n.acknowledged,n.deletedCount)}async replaceOne(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.replaceOne"),this._emitCollectionApiCall("replaceOne",{filter:e,options:r});const s=await this._mongo._serviceProvider.replaceOne(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r});return new u.UpdateResult(!!s.acknowledged,s.matchedCount,s.modifiedCount,s.upsertedCount,s.upsertedId)}async update(e,t,r={}){let s;return await this._instanceState.printDeprecationWarning("Collection.update() is deprecated. Use updateOne, updateMany, or bulkWrite."),(0,o.assertArgsDefinedType)([e,t],[!0,!0],"Collection.update"),this._emitCollectionApiCall("update",{filter:e,options:r}),s=r.multi?await this._mongo._serviceProvider.updateMany(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r}):await this._mongo._serviceProvider.updateOne(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r}),r.explain?(0,o.markAsExplainOutput)(s):new u.UpdateResult(!!s.acknowledged,s.matchedCount,s.modifiedCount,s.upsertedCount,s.upsertedId)}async updateMany(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.updateMany"),this._emitCollectionApiCall("updateMany",{filter:e,options:r});const s=await this._mongo._serviceProvider.updateMany(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r});return r.explain?(0,o.markAsExplainOutput)(s):new u.UpdateResult(!!s.acknowledged,s.matchedCount,s.modifiedCount,s.upsertedCount,s.upsertedId)}async updateOne(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.updateOne"),this._emitCollectionApiCall("updateOne",{filter:e,options:r});const s=await this._mongo._serviceProvider.updateOne(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r});return r.explain?(0,o.markAsExplainOutput)(s):new u.UpdateResult(!!s.acknowledged,s.matchedCount,s.modifiedCount,s.upsertedCount,s.upsertedId)}async compactStructuredEncryptionData(){if(!this._mongo._fleOptions)throw new l.MongoshInvalidInputError('The "compactStructuredEncryptionData" command requires Mongo instance configured with auto encryption.',l.CommonErrors.InvalidArgument);return this._emitCollectionApiCall("compactStructuredEncryptionData"),await this._database._runCommand({compactStructuredEncryptionData:this._name})}async convertToCapped(e){return this._emitCollectionApiCall("convertToCapped",{size:e}),await this._database._runCommand({convertToCapped:this._name,size:e})}async _createIndexes(e,t={},r){if((0,o.assertArgsDefinedType)([e],[!0],"Collection.createIndexes"),"object"!=typeof t||Array.isArray(t))throw new l.MongoshInvalidInputError('The "options" argument must be an object.',l.CommonErrors.InvalidArgument);const s=e.map((e=>({...t,key:e}))),n={...await this._database._baseOptions(),...t};return void 0!==r&&(n.commitQuorum=r),await this._mongo._serviceProvider.createIndexes(this._database._name,this._name,s,n)}async createIndexes(e,t={},r){const s=e.map((e=>({...t,key:e})));return this._emitCollectionApiCall("createIndexes",{specs:s}),this._createIndexes(e,t,r)}async createIndex(e,t={},r){if((0,o.assertArgsDefinedType)([e],[!0],"Collection.createIndex"),"object"!=typeof t||Array.isArray(t))throw new l.MongoshInvalidInputError('The "options" argument must be an object.',l.CommonErrors.InvalidArgument);this._emitCollectionApiCall("createIndex",{keys:e,options:t});const s=await this._createIndexes([e],t,r);if(!Array.isArray(s)||1!==s.length)throw new l.MongoshInternalError(`Expected createIndexes() to return array of length 1, saw ${s.toString()}`);return s[0]}async ensureIndex(e,t={},r){return this._emitCollectionApiCall("ensureIndex",{keys:e,options:t}),await this._createIndexes([e],t,r)}async getIndexes(){return this._emitCollectionApiCall("getIndexes"),await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())}async getIndexSpecs(){return this._emitCollectionApiCall("getIndexSpecs"),await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())}async getIndices(){return this._emitCollectionApiCall("getIndices"),await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())}async getIndexKeys(){return this._emitCollectionApiCall("getIndexKeys"),(await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())).map((e=>e.key))}async dropIndexes(e="*"){this._emitCollectionApiCall("dropIndexes",{indexes:e});try{return await this._database._runCommand({dropIndexes:this._name,index:e})}catch(t){if(("IndexNotFound"===(null==t?void 0:t.codeName)||void 0===(null==t?void 0:t.codeName))&&("invalid index name spec"===(null==t?void 0:t.errmsg)||void 0===(null==t?void 0:t.errmsg))&&Array.isArray(e)&&e.length>0&&/^4\.0\./.exec(await this._database.version())){const t=await Promise.all(e.map((async e=>await this.dropIndexes(e))));return t.find((e=>!e.ok))||t.sort(((e,t)=>t.nIndexesWas-e.nIndexesWas))[0]}if("IndexNotFound"===(null==t?void 0:t.codeName))return{ok:t.ok,errmsg:t.errmsg,code:t.code,codeName:t.codeName};throw t}}async dropIndex(e){if((0,o.assertArgsDefinedType)([e],[!0],"Collection.dropIndex"),this._emitCollectionApiCall("dropIndex",{index:e}),"*"===e)throw new l.MongoshInvalidInputError("To drop indexes in the collection using '*', use db.collection.dropIndexes().",l.CommonErrors.InvalidArgument);if(Array.isArray(e))throw new l.MongoshInvalidInputError("The index to drop must be either the index name or the index specification document.",l.CommonErrors.InvalidArgument);return this.dropIndexes(e)}async _getSingleStorageStatValue(e){const t=await this.aggregate([{$collStats:{storageStats:{}}},{$group:{_id:null,value:{$sum:`$storageStats.${e}`}}}]),[{value:r}]=await t.toArray();return r}async totalIndexSize(...e){if(this._emitCollectionApiCall("totalIndexSize"),e.length)throw new l.MongoshInvalidInputError('"totalIndexSize" takes no argument. Use db.collection.stats to get detailed information.',l.CommonErrors.InvalidArgument);return this._getSingleStorageStatValue("totalIndexSize")}async reIndex(){return this._emitCollectionApiCall("reIndex"),await this._database._runCommand({reIndex:this._name})}getDB(){return this._emitCollectionApiCall("getDB"),this._database}getMongo(){return this._emitCollectionApiCall("getMongo"),this._mongo}async dataSize(){return this._emitCollectionApiCall("dataSize"),this._getSingleStorageStatValue("size")}async storageSize(){return this._emitCollectionApiCall("storageSize"),this._getSingleStorageStatValue("storageSize")}async totalSize(){return this._emitCollectionApiCall("totalSize"),this._getSingleStorageStatValue("totalSize")}async drop(e={}){var t,r,s;this._emitCollectionApiCall("drop");let n={};const i=null===(t=this._mongo._fleOptions)||void 0===t?void 0:t.encryptedFieldsMap;if(!(null==i?void 0:i[`${this._database._name}.${this._name}`])&&!e.encryptedFields)try{const e=await this._mongo._serviceProvider.listCollections(this._database._name,{name:this._name},await this._database._baseOptions()),t=null===(s=null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.options)||void 0===s?void 0:s.encryptedFields;t&&(n={encryptedFields:t})}catch(e){}try{return await this._mongo._serviceProvider.dropCollection(this._database._name,this._name,{...await this._database._baseOptions(),...e,...n})}catch(e){if("NamespaceNotFound"===(null==e?void 0:e.codeName))return this._mongo._instanceState.messageBus.emit("mongosh:warn",{method:"drop",class:"Collection",message:`Namespace not found: ${this._name}`}),!1;throw e}}async exists(){return this._emitCollectionApiCall("exists"),(await this._mongo._serviceProvider.listCollections(this._database._name,{name:this._name},await this._database._baseOptions()))[0]||null}getFullName(){return this._emitCollectionApiCall("getFullName"),`${this._database._name}.${this._name}`}getName(){return this._emitCollectionApiCall("getName"),`${this._name}`}async runCommand(e,t){if((0,o.assertArgsDefinedType)([e],[["string","object"]],"Collection.runCommand"),t){if("string"!=typeof e)throw new l.MongoshInvalidInputError("Collection.runCommand takes a command string as its first arugment",l.CommonErrors.InvalidArgument);if(e in t)throw new l.MongoshInvalidInputError('The "commandName" argument cannot be passed as an option to "runCommand".',l.CommonErrors.InvalidArgument)}const r=new RegExp(p.HIDDEN_COMMANDS);"string"!=typeof e||r.test(e)||this._emitCollectionApiCall("runCommand",{commandName:e});const s="string"==typeof e?{[e]:this._name,...t}:e;return await this._database._runCommand(s)}explain(e="queryPlanner"){return e=(0,o.validateExplainableVerbosity)(e),this._emitCollectionApiCall("explain",{verbosity:e}),new u.Explainable(this._mongo,this,e)}async _getLegacyCollStats(e){const t=await this._database._runReadCommand({collStats:this._name,scale:e||1});if(!t)throw new l.MongoshRuntimeError(`Error running collStats command on ${this.getFullName()}`,l.CommonErrors.CommandFailed);return t}async _aggregateAndScaleCollStats(e,t){var r;const s={ok:1},n={},i={},a={},u={};let l,c=0,p=0,h=0,d=0;for(const f of e){const e=f.storageStats,m=e.count,y=void 0!==m?m:0;for(const t of Object.keys(e))if(!["ns","ok","lastExtentSize","paddingFactor"].includes(t))if(["userFlags","capped","max","paddingFactorNote","indexDetails","wiredTiger"].includes(t))null!==(r=s[t])&&void 0!==r||(s[t]=e[t]);else if("timeseries"===t){const r=e[t];for(const[e,t]of Object.entries(r))"string"==typeof t?l||(l=t):"avgBucketSize"===e?d+=(0,o.coerceToJSNumber)(r.bucketCount)*(0,o.coerceToJSNumber)(t):(void 0===u[e]&&(u[e]=0),u[e]+=(0,o.coerceToJSNumber)(t))}else if(["count","size","storageSize","totalIndexSize","totalSize","numOrphanDocs"].includes(t))void 0===i[t]&&(i[t]=0),i[t]+=(0,o.coerceToJSNumber)(e[t]);else if("avgObjSize"===t)p+=(0,o.coerceToJSNumber)(e[t])*y;else if("maxSize"===t){const r=(0,o.coerceToJSNumber)(e[t]);c=Math.max(c,r)}else if("indexSizes"===t)for(const r of Object.keys(e[t]))void 0===a[r]&&(a[r]=0),a[r]+=(0,o.coerceToJSNumber)(e[t][r]);else if("nindexes"===t){const r=e[t];(0===h||r>h)&&(h=r)}f.shard&&(n[f.shard]=(0,o.scaleIndividualShardStatistics)(e,t))}const f=`${this._database._name}.${this._name}`,m=this._mongo.getDB("config");e[0].shard&&(s.shards=n);try{s.sharded=!!await m.getCollection("collections").findOne({_id:null!=l?l:f,dropped:{$ne:!0}})}catch(t){s.sharded=e.length>1}for(const[e,r]of Object.entries(i))["size","storageSize","totalIndexSize","totalSize"].includes(e)?s[e]=r/t:s[e]=r;l&&Object.keys(u).length>0&&(s.timeseries={...u,avgBucketSize:u.bucketCount?d/u.bucketCount:0,bucketsNs:l}),s.indexSizes={};for(const[e,r]of Object.entries(a))s.indexSizes[e]=r/t;return i.count>0?s.avgObjSize=p/i.count:s.avgObjSize=0,s.capped&&(s.maxSize=c/t),s.ns=f,s.nindexes=h,void 0!==e[0].storageStats.scaleFactor&&(s.scaleFactor=t),s.ok=1,s}async _getAggregatedCollStats(e){try{const t=await(await this.aggregate([{$collStats:{storageStats:{scale:1}}}])).toArray();if(!t||void 0===t[0])throw new l.MongoshRuntimeError(`Error running $collStats aggregation stage on ${this.getFullName()}`,l.CommonErrors.CommandFailed);return await this._aggregateAndScaleCollStats(t,e)}catch(t){if("StaleConfig"===(null==t?void 0:t.codeName)||13388===(null==t?void 0:t.code))try{return await this._getLegacyCollStats(e)}catch(e){throw t}throw t}}async stats(e={}){var t;const r="number"==typeof e?{scale:e}:e;if(r.indexDetailsKey&&r.indexDetailsName)throw new l.MongoshInvalidInputError("Cannot filter indexDetails on both indexDetailsKey and indexDetailsName",l.CommonErrors.InvalidArgument);if(r.indexDetailsKey&&"object"!=typeof r.indexDetailsKey)throw new l.MongoshInvalidInputError("Expected options.indexDetailsKey to be a document, got "+typeof r.indexDetailsKey,l.CommonErrors.InvalidArgument);if(r.indexDetailsName&&"string"!=typeof r.indexDetailsName)throw new l.MongoshInvalidInputError("Expected options.indexDetailsName to be a string, got "+typeof r.indexDetailsName,l.CommonErrors.InvalidArgument);r.scale=r.scale||1,r.indexDetails=r.indexDetails||!1,this._emitCollectionApiCall("stats",{options:r});const s=await this._getAggregatedCollStats(r.scale);let n=r.indexDetailsName;!n&&r.indexDetailsKey&&(await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())).forEach((e=>{JSON.stringify(e.key)===JSON.stringify(r.indexDetailsKey)&&(n=e.name)}));const i=e=>{if(e.indexDetails)if(r.indexDetails){if(n)for(const t of Object.keys(e.indexDetails))t!==n&&delete e.indexDetails[t]}else delete e.indexDetails};i(s);for(const e of Object.keys(null!==(t=s.shards)&&void 0!==t?t:{}))i(s.shards[e]);return s}async latencyStats(e={}){return this._emitCollectionApiCall("latencyStats",{options:e}),await(await this.aggregate([{$collStats:{latencyStats:e}}])).toArray()}async initializeOrderedBulkOp(){this._emitCollectionApiCall("initializeOrderedBulkOp");const e=await this._mongo._serviceProvider.initializeBulkOp(this._database._name,this._name,!0,await this._database._baseOptions());return new c.default(this,e,!0)}async initializeUnorderedBulkOp(){this._emitCollectionApiCall("initializeUnorderedBulkOp");const e=await this._mongo._serviceProvider.initializeBulkOp(this._database._name,this._name,!1,await this._database._baseOptions());return new c.default(this,e)}getPlanCache(){return this._emitCollectionApiCall("getPlanCache"),new h.default(this)}async mapReduce(e,t,r){await this._instanceState.printDeprecationWarning("Collection.mapReduce() is deprecated. Use an aggregation instead.\nSee https://docs.mongodb.com/manual/core/map-reduce for details."),(0,o.assertArgsDefinedType)([e,t,r],[!0,!0,!0],"Collection.mapReduce"),this._emitCollectionApiCall("mapReduce",{map:e,reduce:t,out:r});let s={mapReduce:this._name,map:e,reduce:t,...(0,o.processMapReduceOptions)(r)};if(s.explain){const e=s.explain;delete s.explain,s={explain:s,verbosity:e}}return await this._database._runCommand(s)}async validate(e=!1){return this._emitCollectionApiCall("validate",{options:e}),"boolean"==typeof e&&(e={full:e}),await this._database._runReadCommand({validate:this._name,...e})}async getShardVersion(){return this._emitCollectionApiCall("getShardVersion",{}),await this._database._runAdminCommand({getShardVersion:`${this._database._name}.${this._name}`})}async getShardDistribution(){this._emitCollectionApiCall("getShardDistribution",{});const e={},t=this._mongo.getDB("config"),r=`${this._database._name}.${this._name}`,s=await t.getCollection("collections").findOne({_id:r,dropped:{$ne:!0}});if(!s)throw new l.MongoshInvalidInputError(`Collection ${this._name} is not sharded`,f.ShellApiErrors.NotConnectedToShardedCluster);const n=await(await this.aggregate({$collStats:{storageStats:{}}})).toArray(),i={numChunks:0,size:0,count:0},a=[];await Promise.all(n.map((r=>(async()=>{const{shard:n}=r,u={...(0,o.buildConfigChunksCollectionMatch)(s),shard:n},[l,c]=await Promise.all([t.getCollection("shards").findOne({_id:r.shard}),t.getCollection("chunks").countDocuments(u)]),p={shardId:n,host:null!==l?l.host:null,size:r.storageStats.size,count:r.storageStats.count,numChunks:c,avgObjSize:r.storageStats.avgObjSize},h=`Shard ${p.shardId} at ${p.host}`,d=0===p.numChunks?0:p.size/p.numChunks,f=0===p.numChunks?0:Math.floor(p.count/p.numChunks);e[h]={data:(0,o.dataFormat)((0,o.coerceToJSNumber)(p.size)),docs:p.count,chunks:p.numChunks,"estimated data per chunk":(0,o.dataFormat)(d),"estimated docs per chunk":f},i.size+=(0,o.coerceToJSNumber)(p.size),i.count+=(0,o.coerceToJSNumber)(p.count),i.numChunks+=(0,o.coerceToJSNumber)(p.numChunks),a.push(p)})())));const c={data:(0,o.dataFormat)(i.size),docs:i.count,chunks:i.numChunks};for(const e of a){const t=0===i.size?0:Math.floor(e.size/i.size*1e4)/100,r=0===i.count?0:Math.floor(e.count/i.count*1e4)/100;c[`Shard ${e.shardId}`]=[`${t} % data`,`${r} % docs in cluster`,`${(0,o.dataFormat)(e.avgObjSize)} avg obj size on shard`]}return e.Totals=c,new u.CommandResult("StatsResult",e)}async watch(e=[],t={}){Array.isArray(e)||(t=e,e=[]),this._emitCollectionApiCall("watch",{pipeline:e,options:t});const r=new d.default(this._mongo._serviceProvider.watch(e,{...await this._database._baseOptions(),...t},{},this._database._name,this._name),this._name,this._mongo);return t.resumeAfter||t.startAfter||t.startAtOperationTime||await r.tryNext(),this._mongo._instanceState.currentCursor=r,r}async hideIndex(e){return this._emitCollectionApiCall("hideIndex"),(0,o.setHideIndex)(this,e,!0)}async unhideIndex(e){return this._emitCollectionApiCall("unhideIndex"),(0,o.setHideIndex)(this,e,!1)}async analyzeShardKey(e,t={}){return(0,o.assertArgsDefinedType)([e],[!0],"Collection.analyzeShardKey"),this._emitCollectionApiCall("analyzeShardKey",{key:e}),await this._database._runAdminCommand({analyzeShardKey:this.getFullName(),key:e,...t})}async configureQueryAnalyzer(e){return this._emitCollectionApiCall("configureQueryAnalyzer",e),await this._database._runAdminCommand({configureQueryAnalyzer:this.getFullName(),...e})}async checkMetadataConsistency(e={}){return this._emitCollectionApiCall("checkMetadataConsistency",{options:e}),this._database._runCursorCommand({checkMetadataConsistency:this._name})}async getSearchIndexes(e,t){return"object"==typeof e&&null!==e&&(t=e,e=void 0),this._emitCollectionApiCall("getSearchIndexes",{options:t}),await this._mongo._serviceProvider.getSearchIndexes(this._database._name,this._name,e,{...await this._database._baseOptions(),...t})}async createSearchIndex(e,t){var r;return"object"==typeof e&&null!==e&&(t=e,e=void 0),this._emitCollectionApiCall("createSearchIndex",{indexName:e,definition:t}),(await this._mongo._serviceProvider.createSearchIndexes(this._database._name,this._name,[{name:null!==(r=e)&&void 0!==r?r:"default",definition:{...t}}]))[0]}async createSearchIndexes(e){return this._emitCollectionApiCall("createSearchIndexes",{specs:e}),await this._mongo._serviceProvider.createSearchIndexes(this._database._name,this._name,e)}async dropSearchIndex(e){return this._emitCollectionApiCall("dropSearchIndex",{indexName:e}),await this._mongo._serviceProvider.dropSearchIndex(this._database._name,this._name,e)}async updateSearchIndex(e,t){return this._emitCollectionApiCall("updateSearchIndex",{indexName:e,definition:t}),await this._mongo._serviceProvider.updateSearchIndex(this._database._name,this._name,e,t)}};s([i.returnsPromise,(0,i.returnType)("AggregationCursor"),(0,i.apiVersions)([1])],m.prototype,"aggregate",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"bulkWrite",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"4.0.0"]),(0,i.apiVersions)([])],m.prototype,"count",null),s([i.returnsPromise,(0,i.serverVersions)(["4.0.3",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"countDocuments",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"deleteMany",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"deleteOne",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"distinct",null),s([i.returnsPromise,(0,i.serverVersions)(["4.0.3",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"estimatedDocumentCount",null),s([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],m.prototype,"find",null),s([i.returnsPromise,i.deprecated,(0,i.apiVersions)([1])],m.prototype,"findAndModify",null),s([i.returnsPromise,(0,i.returnType)("Document"),(0,i.apiVersions)([1])],m.prototype,"findOne",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"renameCollection",null),s([i.returnsPromise,(0,i.returnType)("Document"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"findOneAndDelete",null),s([i.returnsPromise,(0,i.returnType)("Document"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"findOneAndReplace",null),s([i.returnsPromise,(0,i.returnType)("Document"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"findOneAndUpdate",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"3.6.0"]),(0,i.apiVersions)([1])],m.prototype,"insert",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"insertMany",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"insertOne",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"isCapped",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"3.2.0"]),(0,i.apiVersions)([1])],m.prototype,"remove",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"replaceOne",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"3.2.0"]),(0,i.apiVersions)([1])],m.prototype,"update",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"updateMany",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"updateOne",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"compactStructuredEncryptionData",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"convertToCapped",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"createIndexes",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"createIndex",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"ensureIndex",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"getIndexes",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"getIndexSpecs",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"getIndices",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"getIndexKeys",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"dropIndexes",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"dropIndex",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"totalIndexSize",null),s([i.returnsPromise,i.deprecated,(0,i.topologies)([a.Topologies.Standalone]),(0,i.apiVersions)([])],m.prototype,"reIndex",null),s([(0,i.returnType)("Database")],m.prototype,"getDB",null),s([(0,i.returnType)("Mongo")],m.prototype,"getMongo",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"dataSize",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"storageSize",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"totalSize",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"drop",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"exists",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"runCommand",null),s([(0,i.returnType)("Explainable"),(0,i.apiVersions)([1])],m.prototype,"explain",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"stats",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"latencyStats",null),s([i.returnsPromise,(0,i.returnType)("Bulk"),(0,i.apiVersions)([1])],m.prototype,"initializeOrderedBulkOp",null),s([i.returnsPromise,(0,i.returnType)("Bulk"),(0,i.apiVersions)([1])],m.prototype,"initializeUnorderedBulkOp",null),s([(0,i.returnType)("PlanCache"),(0,i.apiVersions)([])],m.prototype,"getPlanCache",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"4.9.0"]),(0,i.apiVersions)([])],m.prototype,"mapReduce",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"validate",null),s([i.returnsPromise,(0,i.topologies)([a.Topologies.Sharded]),(0,i.apiVersions)([])],m.prototype,"getShardVersion",null),s([i.returnsPromise,(0,i.topologies)([a.Topologies.Sharded]),(0,i.apiVersions)([])],m.prototype,"getShardDistribution",null),s([(0,i.serverVersions)(["3.1.0",a.ServerVersions.latest]),(0,i.topologies)([a.Topologies.ReplSet,a.Topologies.Sharded]),(0,i.apiVersions)([1]),i.returnsPromise],m.prototype,"watch",null),s([(0,i.serverVersions)(["4.4.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"hideIndex",null),s([(0,i.serverVersions)(["4.4.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"unhideIndex",null),s([(0,i.serverVersions)(["7.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.topologies)([a.Topologies.ReplSet,a.Topologies.Sharded]),(0,i.apiVersions)([])],m.prototype,"analyzeShardKey",null),s([(0,i.serverVersions)(["7.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.topologies)([a.Topologies.ReplSet,a.Topologies.Sharded]),(0,i.apiVersions)([])],m.prototype,"configureQueryAnalyzer",null),s([(0,i.serverVersions)(["7.0.0",a.ServerVersions.latest]),(0,i.topologies)([a.Topologies.Sharded]),i.returnsPromise],m.prototype,"checkMetadataConsistency",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"getSearchIndexes",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"createSearchIndex",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"createSearchIndexes",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"dropSearchIndex",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"updateSearchIndex",null),m=s([i.shellApiClassDefault,i.addSourceToResults],m),t.default=m},25075:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(1296),i=r(33335),a=r(26591),o=r(47478);let u=class extends o.AggregateOrFindCursor{constructor(e,t){super(e,t),this._tailable=!1}_addFlag(e){this._cursor.addCursorFlag(e,!0)}addOption(e){if(4===e)throw new n.MongoshUnimplementedError("the slaveOk option is not supported.",n.CommonErrors.NotImplemented);const t=a.CURSOR_FLAGS[e];if(!t)throw new n.MongoshInvalidInputError(`Unknown option flag number: ${e}.`,n.CommonErrors.InvalidArgument);return this._cursor.addCursorFlag(t,!0),this}allowDiskUse(e){return this._cursor.allowDiskUse(e),this}allowPartialResults(){return this._addFlag("partial"),this}collation(e){return this._cursor.collation(e),this}comment(e){return this._cursor.comment(e),this}async count(){return this._cursor.count()}async hasNext(){return this._tailable&&await this._instanceState.printWarning("If this is a tailable cursor with awaitData, and there are no documents in the batch, this method will will block. Use tryNext if you want to check if there are any documents without waiting."),super.hasNext()}hint(e){return this._cursor.hint(e),this}limit(e){return this._cursor.limit(e),this}max(e){return this._cursor.max(e),this}maxAwaitTimeMS(e){return this._cursor.maxAwaitTimeMS(e),this}min(e){return this._cursor.min(e),this}async next(){return this._tailable&&await this._instanceState.printWarning("If this is a tailable cursor with awaitData, and there are no documents in the batch, this method will will block. Use tryNext if you want to check if there are any documents without waiting."),super.next()}noCursorTimeout(){return this._addFlag("noCursorTimeout"),this}oplogReplay(){return this._addFlag("oplogReplay"),this}readPref(e,t,r){let s;return s=t||r?this._mongo._serviceProvider.readPreferenceFromOptions({readPreference:e,readPreferenceTags:t,hedge:r}):e,this._cursor=this._cursor.withReadPreference(s),this}returnKey(e){return this._cursor.returnKey(e),this}async size(){return this._cursor.count()}tailable(e={awaitData:!1}){return this._tailable=!0,this._addFlag("tailable"),e.awaitData&&this._addFlag("awaitData"),this}maxScan(){throw new n.MongoshDeprecatedError("`maxScan()` was removed because it was deprecated in MongoDB 4.0")}showRecordId(){return this._cursor.showRecordId(!0),this}readConcern(e){return this._cursor=this._cursor.withReadConcern({level:e}),this}};s([(0,i.returnType)("Cursor"),(0,i.serverVersions)([a.ServerVersions.earliest,"3.2.0"])],u.prototype,"addOption",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["4.4.0",a.ServerVersions.latest])],u.prototype,"allowDiskUse",null),s([(0,i.returnType)("Cursor")],u.prototype,"allowPartialResults",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.4.0",a.ServerVersions.latest])],u.prototype,"collation",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest])],u.prototype,"comment",null),s([(0,i.serverVersions)([a.ServerVersions.earliest,"4.0.0"]),i.returnsPromise,i.deprecated],u.prototype,"count",null),s([i.returnsPromise],u.prototype,"hasNext",null),s([(0,i.returnType)("Cursor")],u.prototype,"hint",null),s([(0,i.returnType)("Cursor")],u.prototype,"limit",null),s([(0,i.returnType)("Cursor")],u.prototype,"max",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest])],u.prototype,"maxAwaitTimeMS",null),s([(0,i.returnType)("Cursor")],u.prototype,"min",null),s([i.returnsPromise],u.prototype,"next",null),s([(0,i.returnType)("Cursor")],u.prototype,"noCursorTimeout",null),s([(0,i.returnType)("Cursor")],u.prototype,"oplogReplay",null),s([(0,i.returnType)("Cursor")],u.prototype,"readPref",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest])],u.prototype,"returnKey",null),s([i.returnsPromise],u.prototype,"size",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([])],u.prototype,"tailable",null),s([i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"4.0.0"])],u.prototype,"maxScan",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest])],u.prototype,"showRecordId",null),s([(0,i.returnType)("Cursor")],u.prototype,"readConcern",null),u=s([i.shellApiClassDefault],u),t.default=u},93500:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(78419)),a=r(33335),o=r(26591),u=r(75671),l=r(62294),c=r(1296),p=r(59215),h=n(r(24423)),d=r(32589);let f=class extends a.ShellApiWithMongoClass{constructor(e,t,r){super(),this._cachedCollectionNames=[],this._cachedHello=null,this._mongo=e,this._name=t;const s=Object.create(null);this._collections=s,this._session=r;const n=new Proxy(this,{get:(t,r)=>r in t?t[r]:"string"==typeof r&&!r.startsWith("_")&&(0,u.isValidCollectionName)(r)?(s[r]||(s[r]=new i.default(e,n,r)),s[r]):void 0});return n}async _baseOptions(){const e={};this._session&&(e.session=this._session._session);const t=await this._instanceState.shellApi.config.get("maxTimeMS");return"number"==typeof t&&(e.maxTimeMS=t),e}async _maybeCachedHello(){var e;return null!==(e=this._cachedHello)&&void 0!==e?e:await this.hello()}[o.asPrintable](){return this._name}_emitDatabaseApiCall(e,t={}){this._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Database",db:this._name,arguments:t})}async _runCommand(e,t={}){return this._mongo._serviceProvider.runCommandWithCheck(this._name,(0,u.adjustRunCommand)(e,this._instanceState.shellBson),{...await this._baseOptions(),...t})}async _runReadCommand(e,t={}){return this._mongo._serviceProvider.runCommandWithCheck(this._name,(0,u.adjustRunCommand)(e,this._instanceState.shellBson),{...this._mongo._getExplicitlyRequestedReadPref(),...await this._baseOptions(),...t})}async _runAdminCommand(e,t={}){return this.getSiblingDB("admin")._runCommand(e,{...await this._baseOptions(),...t})}async _runCursorCommand(e,t={}){const r=this._mongo._serviceProvider.runCursorCommand(this._name,(0,u.adjustRunCommand)(e,this._instanceState.shellBson),{...this._mongo._getExplicitlyRequestedReadPref(),...await this._baseOptions(),...t}),s=new l.RunCommandCursor(this._mongo,r);return this._mongo._instanceState.currentCursor=s,s}async _runAdminCursorCommand(e,t={}){return this.getSiblingDB("admin")._runCursorCommand(e,t)}async _listCollections(e,t){return await this._mongo._serviceProvider.listCollections(this._name,e,{...this._mongo._getExplicitlyRequestedReadPref(),...await this._baseOptions(),...t})||[]}async _getCollectionNames(e){const t=await this._listCollections({},{...e,nameOnly:!0});return this._cachedCollectionNames=t.map((e=>e.name)),this._cachedCollectionNames}async _getCollectionNamesWithTypes(e){let t=await this._listCollections({},{...e,nameOnly:!0});return t=t.sort(((e,t)=>e.name.localeCompare(t.name))),this._cachedCollectionNames=t.map((e=>e.name)),t.map(((e,r)=>({name:e.name,badge:(0,u.getBadge)(t,r)})))}async _getCollectionNamesForCompletion(){return await Promise.race([(async()=>await this._getCollectionNames({readPreference:"primaryPreferred"}))(),(async()=>(await new Promise((e=>setTimeout(e,200).unref())),this._cachedCollectionNames))()])}async _getLastErrorObj(e,t,r){const s={getlasterror:1};e&&(s.w=e),t&&(s.wtimeout=t),void 0!==r&&(s.j=r);try{return await this._mongo._serviceProvider.runCommand(this._name,s,await this._baseOptions())}catch(e){return e}}getMongo(){return this._mongo}getName(){return this._name}async getCollectionNames(){return this._emitDatabaseApiCall("getCollectionNames"),this._getCollectionNames()}async getCollectionInfos(e={},t={}){return this._emitDatabaseApiCall("getCollectionInfos",{filter:e,options:t}),await this._listCollections(e,t)}async runCommand(e,t){(0,u.assertArgsDefinedType)([e],[["string","object"]],"Database.runCommand"),"string"==typeof e&&(e={[e]:1});const r=new RegExp(p.HIDDEN_COMMANDS);return Object.keys(e).some((e=>r.test(e)))||this._emitDatabaseApiCall("runCommand",{cmd:e,options:t}),this._runCommand(e,t)}async adminCommand(e){(0,u.assertArgsDefinedType)([e],[["string","object"]],"Database.adminCommand"),"string"==typeof e&&(e={[e]:1});const t=new RegExp(p.HIDDEN_COMMANDS);return Object.keys(e).some((e=>t.test(e)))||this._emitDatabaseApiCall("adminCommand",{cmd:e}),await this._runAdminCommand(e,{})}async aggregate(e,t){(0,u.assertArgsDefinedType)([e],[!0],"Database.aggregate"),this._emitDatabaseApiCall("aggregate",{options:t,pipeline:e});const{aggOptions:r,dbOptions:s,explain:n}=(0,u.adaptAggregateOptions)(t),i=this._mongo._serviceProvider.aggregateDb(this._name,e,{...await this._baseOptions(),...r},s),a=new l.AggregationCursor(this._mongo,i);return n?await a.explain(n):((0,u.shouldRunAggregationImmediately)(e)&&await a.hasNext(),this._mongo._instanceState.currentCursor=a,a)}getSiblingDB(e){return(0,u.assertArgsDefinedType)([e],["string"],"Database.getSiblingDB"),this._emitDatabaseApiCall("getSiblingDB",{db:e}),this._session?this._session.getDatabase(e):this._mongo._getDb(e)}getCollection(e){if((0,u.assertArgsDefinedType)([e],["string"],"Database.getColl"),this._emitDatabaseApiCall("getCollection",{coll:e}),!(0,u.isValidCollectionName)(e))throw new c.MongoshInvalidInputError(`Invalid collection name: ${e}`,c.CommonErrors.InvalidArgument);const t=this._collections;return t[e]||(t[e]=new i.default(this._mongo,this,e)),t[e]}async dropDatabase(e){return await this._mongo._serviceProvider.dropDatabase(this._name,{...await this._baseOptions(),writeConcern:e})}async createUser(e,t){if((0,u.assertArgsDefinedType)([e],["object"],"Database.createUser"),(0,u.assertKeysDefined)(e,["user","roles"]),"$external"===this._name){if("pwd"in e)throw new c.MongoshInvalidInputError("Cannot set password for users on the $external database",c.CommonErrors.InvalidArgument)}else(0,u.assertKeysDefined)(e,["pwd"]);if(this._emitDatabaseApiCall("createUser",{}),e.createUser)throw new c.MongoshInvalidInputError("Cannot set createUser field in helper method",c.CommonErrors.InvalidArgument);const r=(0,u.adaptOptions)({user:"createUser",passwordDigestor:null},{},e);t&&(r.writeConcern=t);const s=(0,u.processDigestPassword)(e.user,e.passwordDigestor,r),n={createUser:r.createUser,...r,...s};return await this._runCommand(n)}async updateUser(e,t,r){if((0,u.assertArgsDefinedType)([e,t],["string","object"],"Database.updateUser"),this._emitDatabaseApiCall("updateUser",{}),t.passwordDigestor&&"server"!==t.passwordDigestor&&"client"!==t.passwordDigestor)throw new c.MongoshInvalidInputError(`Invalid field: passwordDigestor must be 'client' or 'server', got ${t.passwordDigestor}`,c.CommonErrors.InvalidArgument);const s=(0,u.adaptOptions)({passwordDigestor:null},{updateUser:e},t);r&&(s.writeConcern=r);const n=(0,u.processDigestPassword)(e,t.passwordDigestor,s),i={updateUser:s.updateUser,...s,...n};return await this._runCommand(i)}async changeUserPassword(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string","string"],"Database.changeUserPassword"),this._emitDatabaseApiCall("changeUserPassword",{});const s=(0,u.adaptOptions)({},{updateUser:e,pwd:t},{});r&&(s.writeConcern=r);const n={updateUser:s.updateUser,...s};return await this._runCommand(n)}async logout(){return this._emitDatabaseApiCall("logout",{}),this._mongo._instanceState.currentCursor=null,await this._runCommand({logout:1})}async dropUser(e,t){(0,u.assertArgsDefinedType)([e],["string"],"Database.dropUser"),this._emitDatabaseApiCall("dropUser",{});const r={dropUser:e};return t&&(r.writeConcern=t),await this._runCommand(r)}async dropAllUsers(e){this._emitDatabaseApiCall("dropAllUsers",{});const t={dropAllUsersFromDatabase:1};return e&&(t.writeConcern=e),await this._runCommand(t)}async auth(...e){let t;if(this._emitDatabaseApiCall("auth",{}),1===e.length){const{evaluationListener:r}=this._mongo._instanceState;t="string"==typeof e[0]&&r.onPrompt?{user:e[0],pwd:await r.onPrompt("Enter password","password")}:e[0]}else{if(2!==e.length)throw new c.MongoshInvalidInputError("auth expects (username), (username, password), or ({ user: username, pwd: password })",c.CommonErrors.InvalidArgument);t={user:e[0],pwd:e[1]}}if(!(t.user&&t.pwd||t.mechanism))throw new c.MongoshInvalidInputError("auth expects user document with at least 'user' and 'pwd' or 'mechanism' fields",c.CommonErrors.InvalidArgument);if("digestPassword"in t)throw new c.MongoshUnimplementedError("digestPassword is not supported for authentication.",c.CommonErrors.NotImplemented);return t.authDb=this._name,this._mongo._instanceState.currentCursor=null,await this._mongo._serviceProvider.authenticate(t)}async grantRolesToUser(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.grantRolesToUser"),this._emitDatabaseApiCall("grantRolesToUser",{});const s={grantRolesToUser:e,roles:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async revokeRolesFromUser(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.revokeRolesFromUser"),this._emitDatabaseApiCall("revokeRolesFromUser",{});const s={revokeRolesFromUser:e,roles:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async getUser(e,t={}){(0,u.assertArgsDefinedType)([e],["string"],"Database.getUser"),this._emitDatabaseApiCall("getUser",{username:e});const r=(0,u.adaptOptions)({},{usersInfo:{user:e,db:this._name}},t),s=await this._runReadCommand(r);if(void 0===s.users)throw new c.MongoshInternalError("No users were returned from the userInfo command");for(let t=0;t<s.users.length;t++)if(s.users[t].user===e)return s.users[t];return null}async getUsers(e={}){this._emitDatabaseApiCall("getUsers",{options:e});const t=(0,u.adaptOptions)({},{usersInfo:1},e);return await this._runReadCommand(t)}async createCollection(e,t={}){return(0,u.assertArgsDefinedType)([e],["string"],"Database.createCollection"),this._emitDatabaseApiCall("createCollection",{name:e,options:t}),await this._mongo._serviceProvider.createCollection(this._name,e,{...await this._baseOptions(),...t})}async createEncryptedCollection(e,t){return this._emitDatabaseApiCall("createEncryptedCollection",{name:e,options:t}),this._mongo.getClientEncryption().createEncryptedCollection(this._name,e,t)}async createView(e,t,r,s={}){(0,u.assertArgsDefinedType)([e,t,r],["string","string",!0],"Database.createView"),this._emitDatabaseApiCall("createView",{name:e,source:t,pipeline:r,options:s});const n={...await this._baseOptions(),viewOn:t,pipeline:r};return s.collation&&(n.collation=s.collation),await this._mongo._serviceProvider.createCollection(this._name,e,n)}async createRole(e,t){if((0,u.assertArgsDefinedType)([e],["object"],"Database.createRole"),(0,u.assertKeysDefined)(e,["role","privileges","roles"]),this._emitDatabaseApiCall("createRole",{}),e.createRole)throw new c.MongoshInvalidInputError("Cannot set createRole field in helper method",c.CommonErrors.InvalidArgument);const r=(0,u.adaptOptions)({role:"createRole"},{},e);t&&(r.writeConcern=t);const s={createRole:r.createRole,...r};return await this._runCommand(s)}async updateRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string","object"],"Database.updateRole"),this._emitDatabaseApiCall("updateRole",{});const s=(0,u.adaptOptions)({},{updateRole:e},t);r&&(s.writeConcern=r);const n={updateRole:s.updateRole,...s};return await this._runCommand(n)}async dropRole(e,t){(0,u.assertArgsDefinedType)([e],["string"],"Database.dropRole"),this._emitDatabaseApiCall("dropRole",{});const r={dropRole:e};return t&&(r.writeConcern=t),await this._runCommand(r)}async dropAllRoles(e){this._emitDatabaseApiCall("dropAllRoles",{});const t={dropAllRolesFromDatabase:1};return e&&(t.writeConcern=e),await this._runCommand(t)}async grantRolesToRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.grantRolesToRole"),this._emitDatabaseApiCall("grantRolesToRole",{});const s={grantRolesToRole:e,roles:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async revokeRolesFromRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.revokeRolesFromRole"),this._emitDatabaseApiCall("revokeRolesFromRole",{});const s={revokeRolesFromRole:e,roles:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async grantPrivilegesToRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.grantPrivilegesToRole"),this._emitDatabaseApiCall("grantPrivilegesToRole",{});const s={grantPrivilegesToRole:e,privileges:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async revokePrivilegesFromRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.revokePrivilegesFromRole"),this._emitDatabaseApiCall("revokePrivilegesFromRole",{});const s={revokePrivilegesFromRole:e,privileges:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async getRole(e,t={}){(0,u.assertArgsDefinedType)([e],["string"],"Database.getRole"),this._emitDatabaseApiCall("getRole",{rolename:e});const r=(0,u.adaptOptions)({},{rolesInfo:{role:e,db:this._name}},t),s=await this._runReadCommand(r);if(void 0===s.roles)throw new c.MongoshInternalError("No roles returned from rolesInfo command");for(let t=0;t<s.roles.length;t++)if(s.roles[t].role===e)return s.roles[t];return null}async getRoles(e={}){this._emitDatabaseApiCall("getRoles",{options:e});const t=(0,u.adaptOptions)({},{rolesInfo:1},e);return await this._runReadCommand(t)}async _getCurrentOperations(e){const t="boolean"==typeof e?{$all:e,$ownOps:!1}:{$all:!!e.$all,$ownOps:!!e.$ownOps},r=[{$currentOp:{allUsers:!t.$ownOps,idleConnections:t.$all,truncateOps:!1}}];if("object"==typeof e){const t={};for(const r of Object.keys(e))"$ownOps"!==r&&"$all"!==r&&"$truncateOps"!==r&&(t[r]=e[r]);r.push({$match:t})}const s=this.getSiblingDB("admin"),n={$readPreference:{mode:"primaryPreferred"}};try{const e=await s.aggregate(r,n);return await e.toArray()}catch(e){if("FailedToParse"===(null==e?void 0:e.codeName)){delete r[0].$currentOp.truncateOps;const e=await s.aggregate(r,n);return await e.toArray()}throw e}}async currentOp(e={}){return this._emitDatabaseApiCall("currentOp",{opts:e}),{inprog:await this._getCurrentOperations(e),ok:1}}async killOp(e){return this._emitDatabaseApiCall("killOp",{opId:e}),await this._runAdminCommand({killOp:1,op:e})}async shutdownServer(e={}){return this._emitDatabaseApiCall("shutdownServer",{opts:e}),await this._runAdminCommand({shutdown:1,...e})}async fsyncLock(){return this._emitDatabaseApiCall("fsyncLock",{}),await this._runAdminCommand({fsync:1,lock:!0})}async fsyncUnlock(){return this._emitDatabaseApiCall("fsyncUnlock",{}),await this._runAdminCommand({fsyncUnlock:1})}async version(){this._emitDatabaseApiCall("version",{});const e=await this._runAdminCommand({buildInfo:1});if(!e||void 0===e.version)throw new c.MongoshRuntimeError(`Error running command serverBuildInfo ${e&&e.errmsg||""}`,c.CommonErrors.CommandFailed);return e.version}async serverBits(){this._emitDatabaseApiCall("serverBits",{});const e=await this._runAdminCommand({buildInfo:1});if(!e||void 0===e.bits)throw new c.MongoshRuntimeError(`Error running command serverBuildInfo ${e&&e.errmsg||""}`,c.CommonErrors.CommandFailed);return e.bits}async isMaster(){this._emitDatabaseApiCall("isMaster",{});const e=await this._runReadCommand({isMaster:1});return e.isWritablePrimary=e.ismaster,e}async hello(){this._emitDatabaseApiCall("hello",{});try{return this._cachedHello=await this._runReadCommand({hello:1}),this._cachedHello}catch(e){if("CommandNotFound"===(null==e?void 0:e.codeName)){const e=await this.isMaster();return delete e.ismaster,this._cachedHello=e,this._cachedHello}throw e}}async serverBuildInfo(){return this._emitDatabaseApiCall("serverBuildInfo",{}),await this._runAdminCommand({buildInfo:1})}async serverStatus(e={}){return this._emitDatabaseApiCall("serverStatus",{options:e}),await this._runAdminCommand({serverStatus:1,...e})}async stats(e=1){return(0,u.assertArgsDefinedType)([e],[["number","object"]],"Database.stats"),"number"==typeof e&&(e={scale:e}),this._emitDatabaseApiCall("stats",{scale:e.scale}),await this._runReadCommand({dbStats:1,scale:1,...e})}async hostInfo(){return this._emitDatabaseApiCall("hostInfo",{}),await this._runAdminCommand({hostInfo:1})}async serverCmdLineOpts(){return this._emitDatabaseApiCall("serverCmdLineOpts",{}),await this._runAdminCommand({getCmdLineOpts:1})}async rotateCertificates(e){return this._emitDatabaseApiCall("rotateCertificates",{message:e}),await this._runAdminCommand({rotateCertificates:1,message:e})}async printCollectionStats(e=1){if("number"!=typeof e||e<1)throw new c.MongoshInvalidInputError(`scale has to be a number >=1, got ${e}`,c.CommonErrors.InvalidArgument);this._emitDatabaseApiCall("printCollectionStats",{scale:e});const t=await this.getCollectionNames(),r={};for(const s of t)try{r[s]=await this.getCollection(s).stats({scale:e})}catch(e){r[s]={ok:0,errmsg:null==e?void 0:e.message}}return new l.CommandResult("StatsResult",r)}async getProfilingStatus(){return this._emitDatabaseApiCall("getProfilingStatus",{}),await this._runReadCommand({profile:-1})}async setProfilingLevel(e,t={}){if((0,u.assertArgsDefinedType)([e],["number"],"Database.setProfilingLevel"),e<0||e>2)throw new c.MongoshInvalidInputError(`Input level ${e} is out of range [0..2]`,c.CommonErrors.InvalidArgument);return"number"==typeof t&&(t={slowms:t}),this._emitDatabaseApiCall("setProfilingLevel",{opts:t}),await this._runCommand({profile:e,...t})}async setLogLevel(e,t){(0,u.assertArgsDefinedType)([e],["number"],"Database.setLogLevel"),this._emitDatabaseApiCall("setLogLevel",{logLevel:e,component:t});let r=[];if("string"==typeof t)r=t.split(".");else if(void 0!==t)throw new c.MongoshInvalidInputError("setLogLevel component must be a string: got "+typeof t,c.CommonErrors.InvalidArgument);let s={verbosity:e};for(;r.length>0;)s={[r.pop()]:s};const n={setParameter:1,logComponentVerbosity:s};return await this._runAdminCommand(n)}async getLogComponents(){this._emitDatabaseApiCall("getLogComponents",{});const e=await this._runAdminCommand({getParameter:1,logComponentVerbosity:1});if(!e||void 0===e.logComponentVerbosity)throw new c.MongoshRuntimeError(`Error running command ${e&&e.errmsg||""}`,c.CommonErrors.CommandFailed);return e.logComponentVerbosity}cloneDatabase(){throw new c.MongoshDeprecatedError("`cloneDatabase()` was removed because it was deprecated in MongoDB 4.0")}cloneCollection(){throw new c.MongoshDeprecatedError("`cloneCollection()` was removed because it was deprecated in MongoDB 4.0")}copyDatabase(){throw new c.MongoshDeprecatedError("`copyDatabase()` was removed because it was deprecated in MongoDB 4.0")}async commandHelp(e){(0,u.assertArgsDefinedType)([e],["string"],"Database.commandHelp"),this._emitDatabaseApiCall("commandHelp",{name:e});const t={};t[e]=1,t.help=!0;const r=await this._runCommand(t);if(!r||void 0===r.help)throw new c.MongoshRuntimeError(`Error running command commandHelp ${r&&r.errmsg||""}`,c.CommonErrors.CommandFailed);return r.help}async listCommands(){this._emitDatabaseApiCall("listCommands",{});const e=await this._runReadCommand({listCommands:1});if(!e||void 0===e.commands)throw new c.MongoshRuntimeError(`Error running command listCommands ${e&&e.errmsg||""}`,c.CommonErrors.CommandFailed);for(const t of Object.values(e.commands))"slaveOk"in t&&(t.secondaryOk=t.slaveOk,delete t.slaveOk),"slaveOverrideOk"in t&&(t.secondaryOverrideOk=t.slaveOverrideOk,delete t.slaveOverrideOk);return new l.CommandResult("ListCommandsResult",e.commands)}async getLastErrorObj(e,t,r){return await this._instanceState.printDeprecationWarning("Database.getLastErrorObj() is deprecated and will be removed in the future."),this._emitDatabaseApiCall("getLastErrorObj",{w:e,wTimeout:t,j:r}),await this._getLastErrorObj(e,t,r)}async getLastError(e,t){return await this._instanceState.printDeprecationWarning("Database.getLastError() is deprecated and will be removed in the future."),this._emitDatabaseApiCall("getLastError",{w:e,wTimeout:t}),(await this._getLastErrorObj(e,t)).err||null}async printShardingStatus(e=!1){this._emitDatabaseApiCall("printShardingStatus",{verbose:e});const t=await(0,u.getPrintableShardStatus)(await(0,u.getConfigDB)(this),e);return new l.CommandResult("StatsResult",t)}async printSecondaryReplicationInfo(){let e=null;const t=this.getSiblingDB("local");if(0!==await t.getCollection("system.replset").countDocuments({})){const t=await this._runAdminCommand({replSetGetStatus:1});let r=null;for(const e of t.members)if(1===e.state){r=e;break}if(r)e=r.optimeDate;else{e=new Date(0,0);for(const r of t.members)r.optimeDate>e&&(e=r.optimeDate)}const s={};for(const n of t.members){const t={};if(null==n)throw new c.MongoshRuntimeError("Member returned from command replSetGetStatus is null",c.CommonErrors.CommandFailed);if(1!==n.state&&7!==n.state){if(n.optime&&0!==n.health){if(null==e)throw new c.MongoshRuntimeError("getReplLag startOptimeDate is null",c.CommonErrors.CommandFailed);e&&(t.syncedTo=n.optimeDate.toString());const s=(n.optimeDate-e)/1e3,i=Math.round(s/36)/100;let a="";a=r?"primary ":"freshest member (no primary available at the moment)",t.replLag=`${Math.round(s)} secs (${i} hrs) behind the ${a}`}else t["no replication info, yet. State"]=n.stateStr;s[`source: ${n.name}`]=t}}return new l.CommandResult("StatsResult",s)}throw new c.MongoshInvalidInputError("local.system.replset is empty. Are you connected to a replica set?",d.ShellApiErrors.NotConnectedToReplicaSet)}async getReplicationInfo(){const e=this.getSiblingDB("local"),t={},r="oplog.rs";if(!(await e.getCollectionNames()).includes(r))throw new c.MongoshInvalidInputError("Replication not detected. Are you connected to a replset?",d.ShellApiErrors.NotConnectedToReplicaSet);const s=e.getCollection(r),[n,i,a]=await Promise.all([s.stats(),(async()=>(await s.find()).sort({$natural:1}).limit(1).tryNext())(),(async()=>(await s.find()).sort({$natural:-1}).limit(1).tryNext())()]);if(!(null==n?void 0:n.maxSize))throw new c.MongoshRuntimeError(`Could not get stats for local.${r} collection. collstats returned ${JSON.stringify(n)}`,c.CommonErrors.CommandFailed);if(t.configuredLogSizeMB=n.maxSize/1048576,t.logSizeMB=Math.max(n.maxSize,n.size)/1048576,t.usedMB=n.size/1048576,t.usedMB=Math.ceil(100*t.usedMB)/100,null===i||null===a)throw new c.MongoshRuntimeError("objects not found in local.oplog.$main -- is this a new and empty db instance?",c.CommonErrors.CommandFailed);let o=i.ts,l=a.ts;return o&&l?(o=(0,u.tsToSeconds)(o),l=(0,u.tsToSeconds)(l),t.timeDiff=l-o,t.timeDiffHours=Math.round(t.timeDiff/36)/100,t.tFirst=new Date(1e3*o).toString(),t.tLast=new Date(1e3*l).toString(),t.now=Date()):t.errmsg="ts element not found in oplog objects",t}async printReplicationInfo(){const e={};let t;try{t=await this.getReplicationInfo()}catch(e){const t=await this.hello();if(t.arbiterOnly)return new l.CommandResult("StatsResult",{message:"cannot provide replication status from an arbiter"});if(!t.isWritablePrimary){const e=await this.printSecondaryReplicationInfo();return new l.CommandResult("StatsResult",{message:"this is a secondary, printing secondary replication info.",...e.value})}throw e}return e["actual oplog size"]=`${t.logSizeMB} MB`,e["configured oplog size"]=`${t.configuredLogSizeMB} MB`,e["log length start to end"]=`${t.timeDiff} secs (${t.timeDiffHours} hrs)`,e["oplog first event time"]=t.tFirst,e["oplog last event time"]=t.tLast,e.now=t.now,new l.CommandResult("StatsResult",e)}printSlaveReplicationInfo(){throw new c.MongoshDeprecatedError("Method deprecated, use db.printSecondaryReplicationInfo instead")}async setSecondaryOk(){await this._mongo.setSecondaryOk()}async watch(e=[],t={}){Array.isArray(e)||(t=e,e=[]),this._emitDatabaseApiCall("watch",{pipeline:e,options:t});const r=new h.default(this._mongo._serviceProvider.watch(e,{...await this._baseOptions(),...t},{},this._name),this._name,this._mongo);return t.resumeAfter||t.startAfter||t.startAtOperationTime||await r.tryNext(),this._mongo._instanceState.currentCursor=r,r}async sql(e,t){var r;this._emitDatabaseApiCall("sql",{sqlString:e,options:t}),await this._instanceState.shellApi.print("Note: this is an experimental feature that may be subject to change in future releases.");const s=await this.aggregate([{$sql:{statement:e,format:"jdbc",dialect:"mongosql",formatVersion:1}}],t);try{await s.hasNext()}catch(e){if(40324===(null===(r=e.code)||void 0===r?void 0:r.valueOf()))throw new c.MongoshRuntimeError("db.sql currently only works when connected to a Data Lake",c.CommonErrors.CommandFailed);throw e}return s}async checkMetadataConsistency(e={}){return this._emitDatabaseApiCall("checkMetadataConsistency",{options:e}),this._runCursorCommand({checkMetadataConsistency:1})}};s([(0,a.returnType)("Mongo")],f.prototype,"getMongo",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"getCollectionNames",null),s([a.returnsPromise,(0,a.serverVersions)(["3.0.0",o.ServerVersions.latest]),(0,a.apiVersions)([1])],f.prototype,"getCollectionInfos",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"runCommand",null),s([a.returnsPromise,(0,a.serverVersions)(["3.4.0",o.ServerVersions.latest]),(0,a.apiVersions)([1])],f.prototype,"adminCommand",null),s([a.returnsPromise,(0,a.returnType)("AggregationCursor"),(0,a.apiVersions)([1])],f.prototype,"aggregate",null),s([(0,a.returnType)("Database")],f.prototype,"getSiblingDB",null),s([(0,a.returnType)("Collection")],f.prototype,"getCollection",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"dropDatabase",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"createUser",null),s([a.returnsPromise],f.prototype,"updateUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"changeUserPassword",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"logout",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"dropUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"dropAllUsers",null),s([a.returnsPromise],f.prototype,"auth",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"grantRolesToUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"revokeRolesFromUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getUsers",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"createCollection",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"createEncryptedCollection",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"createView",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"createRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"updateRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"dropRole",null),s([a.returnsPromise],f.prototype,"dropAllRoles",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"grantRolesToRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"revokeRolesFromRole",null),s([a.returnsPromise],f.prototype,"grantPrivilegesToRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"revokePrivilegesFromRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getRoles",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"currentOp",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"killOp",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"shutdownServer",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"fsyncLock",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"fsyncUnlock",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"version",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"serverBits",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"isMaster",null),s([a.returnsPromise,(0,a.apiVersions)([1]),(0,a.serverVersions)(["5.0.0",o.ServerVersions.latest])],f.prototype,"hello",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"serverBuildInfo",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"serverStatus",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"stats",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"hostInfo",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"serverCmdLineOpts",null),s([a.returnsPromise,(0,a.serverVersions)(["5.0.0",o.ServerVersions.latest]),(0,a.apiVersions)([])],f.prototype,"rotateCertificates",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"printCollectionStats",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getProfilingStatus",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"setProfilingLevel",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"setLogLevel",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getLogComponents",null),s([a.deprecated],f.prototype,"cloneDatabase",null),s([a.deprecated],f.prototype,"cloneCollection",null),s([a.deprecated],f.prototype,"copyDatabase",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"commandHelp",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"listCommands",null),s([(0,a.serverVersions)([o.ServerVersions.earliest,"5.1.0"]),a.deprecated,a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getLastErrorObj",null),s([a.deprecated,a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getLastError",null),s([a.returnsPromise,(0,a.topologies)([o.Topologies.Sharded]),(0,a.apiVersions)([1])],f.prototype,"printShardingStatus",null),s([a.returnsPromise,(0,a.topologies)([o.Topologies.ReplSet]),(0,a.apiVersions)([])],f.prototype,"printSecondaryReplicationInfo",null),s([a.returnsPromise,(0,a.topologies)([o.Topologies.ReplSet]),(0,a.apiVersions)([])],f.prototype,"getReplicationInfo",null),s([a.returnsPromise,(0,a.apiVersions)([]),(0,a.topologies)([o.Topologies.ReplSet])],f.prototype,"printReplicationInfo",null),s([a.deprecated],f.prototype,"printSlaveReplicationInfo",null),s([a.deprecated,a.returnsPromise],f.prototype,"setSecondaryOk",null),s([(0,a.serverVersions)(["3.1.0",o.ServerVersions.latest]),(0,a.topologies)([o.Topologies.ReplSet,o.Topologies.Sharded]),(0,a.apiVersions)([1]),a.returnsPromise],f.prototype,"watch",null),s([(0,a.serverVersions)(["4.4.0",o.ServerVersions.latest]),a.returnsPromise,(0,a.returnType)("AggregationCursor")],f.prototype,"sql",null),s([(0,a.serverVersions)(["7.0.0",o.ServerVersions.latest]),(0,a.topologies)([o.Topologies.Sharded]),a.returnsPromise],f.prototype,"checkMetadataConsistency",null),f=s([a.shellApiClassDefault],f),t.default=f},65505:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.DBQuery=void 0;const n=r(33335);let i=t.DBQuery=class extends n.ShellApiClass{constructor(e){super(),this._instanceState=e}get shellBatchSize(){return this._instanceState.displayBatchSizeFromDBQuery}set shellBatchSize(e){this._instanceState.printDeprecationWarning('DBQuery.shellBatchSize is deprecated, please use config.set("displayBatchSize") instead'),this._instanceState.displayBatchSizeFromDBQuery=e}};t.DBQuery=i=s([n.shellApiClassDefault,n.classDeprecated],i)},33335:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.addSourceToResults=t.classPlatforms=t.platforms=t.classDeprecated=t.returnType=t.shellCommandCompleter=t.directShellCommand=t.returnsPromise=t.nonAsyncFunctionsReturningPromises=t.topologies=t.deprecated=t.apiVersions=t.serverVersions=t.shellApiClassNoHelp=t.shellApiClassDefault=t.toIgnore=t.signatures=t.toShellResult=t.getShellApiType=t.ShellApiValueClass=t.ShellApiWithMongoClass=t.ShellApiClass=void 0;const n=r(1296),i=r(26591),a=s(r(91283)),o=r(75671),u=Symbol.for("@@mongosh.addSourceToResults"),l=Symbol.for("@@mongosh.resultSource");class c{get[i.shellApiType](){throw new n.MongoshInternalError("Shell API Type did not use decorators")}set[i.shellApiType](e){(0,o.addHiddenDataProperty)(this,i.shellApiType,e)}[i.asPrintable](){return Array.isArray(this)?[...this]:{...this}}}function p(e){var t;return null!==(t=null==e?void 0:e[i.shellApiType])&&void 0!==t?t:null}function h(e){function t(t,r){if("object"==typeof t&&null!==t){const s={namespace:r[i.namespaceInfo]()};(0,o.addHiddenDataProperty)(t,l,s),void 0===t[i.shellApiType]&&e.returnType&&(0,o.addHiddenDataProperty)(t,i.shellApiType,e.returnType)}return t}const r=e.returnsPromise?E((async function(...r){return t(await e.call(this,...r),this)})):function(...r){return t(e.call(this,...r),this)};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)),r}function d(e,t){const r=e.returnsPromise?E((async function(...r){var s,n;const i=m(this);f(i,t,e,!0);const a=null==i?void 0:i.interrupted;null==a||a.checkpoint();const o=null==a?void 0:a.asPromise();let u;try{i&&i.apiCallDepth++,u=await Promise.race([null!==(s=null==o?void 0:o.promise)&&void 0!==s?s:new Promise((()=>{})),e.call(this,...r)])}catch(e){throw null!==(n=null==i?void 0:i.transformError(e))&&void 0!==n?n:e}finally{i&&i.apiCallDepth--,o&&o.destroy()}return null==a||a.checkpoint(),u})):function(...r){var s;const n=m(this);f(n,t,e,!1);const i=null==n?void 0:n.interrupted;let a;null==i||i.checkpoint();try{n&&n.apiCallDepth++,a=e.call(this,...r)}catch(e){throw null!==(s=null==n?void 0:n.transformError(e))&&void 0!==s?s:e}finally{n&&n.apiCallDepth--}return null==i||i.checkpoint(),a};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)),r}function f(e,t,r,s){var n;null===(n=null==e?void 0:e.emitApiCall)||void 0===n||n.call(e,{method:r.name,class:t,deprecated:!!r.deprecated,isAsync:s})}function m(e){if(!e[i.shellApiType])throw new n.MongoshInternalError("getShellInstanceState can only be called for functions from shell API classes");return e._instanceState}t.ShellApiClass=c,t.ShellApiWithMongoClass=class extends c{get _instanceState(){var e;return null===(e=this._mongo)||void 0===e?void 0:e._instanceState}},t.ShellApiValueClass=class extends c{get _mongo(){throw new n.MongoshInternalError("Not supported on this value class")}get _instanceState(){throw new n.MongoshInternalError("Not supported on this value class")}},t.getShellApiType=p,t.toShellResult=async function e(t){var r;if("object"!=typeof t&&"function"!=typeof t||null===t)return{type:null,rawValue:t,printable:t};if("then"in t&&"function"==typeof t.then)return e(await t);const s="function"==typeof t[i.asPrintable]?await t[i.asPrintable]():t,n=null!==(r=t[l])&&void 0!==r?r:void 0;return{type:p(t),rawValue:t,printable:s,source:n}};const y="@@@mdb.signatures@@@";r.g[y]||(r.g[y]={});const g=r.g[y];function b(e,r){const s=e.name,n=`shell-api.classes.${s}.help`,l={help:`${n}.description`,docs:`${n}.link`,attr:[]},p={type:s,returnsPromise:e.prototype.returnsPromise||!1,deprecated:e.prototype.deprecated||!1,attributes:{}},f=Object.getOwnPropertyNames(e.prototype);for(const r of f){const o=Object.getOwnPropertyDescriptor(e.prototype,r);if(!(null==o?void 0:o.value)||"function"!=typeof o.value||t.toIgnore.includes(r)||r.startsWith("_"))continue;let c=o.value;e[u]&&(c=h(c)),c=d(c,s),c.serverVersions=c.serverVersions||i.ALL_SERVER_VERSIONS,c.apiVersions=c.apiVersions||i.ALL_API_VERSIONS,c.topologies=c.topologies||i.ALL_TOPOLOGIES,c.returnType=c.returnType||{type:"unknown",attributes:{}},c.returnsPromise=c.returnsPromise||!1,c.deprecated=c.deprecated||!1,c.platforms=c.platforms||i.ALL_PLATFORMS,c.isDirectShellCommand=c.isDirectShellCommand||!1,c.acceptsRawInput=c.acceptsRawInput||!1,c.shellCommandCompleter=c.shellCommandCompleter||void 0,p.attributes[r]={type:"function",serverVersions:c.serverVersions,apiVersions:c.apiVersions,topologies:c.topologies,returnType:"this"===c.returnType?s:c.returnType,returnsPromise:c.returnsPromise,deprecated:c.deprecated,platforms:c.platforms,isDirectShellCommand:c.isDirectShellCommand,acceptsRawInput:c.acceptsRawInput,shellCommandCompleter:c.shellCommandCompleter};const f=`${n}.attributes.${r}`,m={help:`${f}.example`,docs:`${f}.link`,attr:[{description:`${f}.description`}]},y=new a.default(m);c.help=()=>y,Object.setPrototypeOf(c.help,y),l.attr.push({name:r,description:`${f}.description`}),Object.defineProperty(e.prototype,r,{...o,value:c})}let m=e.prototype;for(;null!==(m=Object.getPrototypeOf(m))&&"ShellApiClass"!==m.constructor.name&&m.constructor!==Array;){const e=`shell-api.classes.${m.constructor.name}.help`;for(const r of Object.getOwnPropertyNames(m)){const n=Object.getOwnPropertyDescriptor(m,r),i=(null==n?void 0:n.value)&&"function"==typeof n.value;if(f.includes(r)||!i||t.toIgnore.includes(r)||r.startsWith("_"))continue;const a=n.value;p.attributes[r]={type:"function",serverVersions:a.serverVersions,apiVersions:a.apiVersions,topologies:a.topologies,returnType:"this"===a.returnType?s:a.returnType,returnsPromise:a.returnsPromise,deprecated:a.deprecated,platforms:a.platforms,isDirectShellCommand:a.isDirectShellCommand,acceptsRawInput:a.acceptsRawInput,shellCommandCompleter:a.shellCommandCompleter};const o=`${e}.attributes.${r}`;l.attr.push({name:r,description:`${o}.description`})}}const y=new a.default(l);e.prototype.help=()=>y,Object.setPrototypeOf(e.prototype.help,y),e.prototype[i.asPrintable]=e.prototype[i.asPrintable]||c.prototype[i.asPrintable],(0,o.addHiddenDataProperty)(e.prototype,i.shellApiType,s),r&&(g[s]=p)}function E(e){function t(...t){const r=e.call(this,...t);return(0,o.addHiddenDataProperty)(r,Symbol.for("@@mongosh.syntheticPromise"),!0)}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),t}t.signatures=g,g.Document={type:"Document",attributes:{}},t.toIgnore=["constructor","help","toJSON"],t.shellApiClassDefault=function(e){b(e,!0)},t.shellApiClassNoHelp=function(e){b(e,!1)},t.serverVersions=function(e){return function(t,r,s){s.value.serverVersions=e}},t.apiVersions=function(e){return function(t,r,s){0===e.length?e=[0,0]:1===e.length&&(e=[e[0],1/0]),s.value.apiVersions=e}},t.deprecated=function(e,t,r){r.value.deprecated=!0},t.topologies=function(e){return function(t,r,s){s.value.topologies=e}},t.nonAsyncFunctionsReturningPromises=[],t.returnsPromise=function(e,r,s){const n=s.value;async function i(...e){try{return await n.call(this,...e)}finally{"function"==typeof setTimeout&&"function"==typeof setImmediate&&await new Promise(setImmediate)}}n.returnsPromise=!0,Object.setPrototypeOf(i,Object.getPrototypeOf(n)),Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)),s.value=E(i),"AsyncFunction"!==n.constructor.name&&t.nonAsyncFunctionsReturningPromises.push(n.name)},t.directShellCommand=function(e,t,r){r.value.isDirectShellCommand=!0},t.shellCommandCompleter=function(e){return function(t,r,s){s.value.shellCommandCompleter=e}},t.returnType=function(e){return function(t,r,s){s.value.returnType=e}},t.classDeprecated=function(e){e.prototype.deprecated=!0},t.platforms=function(e){return function(t,r,s){s.value.platforms=e}},t.classPlatforms=function(e){return function(t){t.prototype.platforms=e}},t.addSourceToResults=function(e){e[u]=!0}},26591:(e,t)=>{"use strict";var r,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ADMIN_DB=t.namespaceInfo=t.asPrintable=t.shellApiType=t.CURSOR_FLAGS=t.ALL_API_VERSIONS=t.ALL_PLATFORMS=t.ALL_TOPOLOGIES=t.ALL_SERVER_VERSIONS=t.Topologies=t.ServerVersions=void 0,function(e){e.latest="999.999.999",e.earliest="0.0.0"}(r||(t.ServerVersions=r={})),function(e){e.ReplSet="ReplSet",e.Standalone="Standalone",e.Sharded="Sharded",e.LoadBalanced="LoadBalanced"}(s||(t.Topologies=s={})),t.ALL_SERVER_VERSIONS=[r.earliest,r.latest],t.ALL_TOPOLOGIES=[s.ReplSet,s.Sharded,s.LoadBalanced,s.Standalone],t.ALL_PLATFORMS=["Compass","Browser","CLI"],t.ALL_API_VERSIONS=[0,1/0],t.CURSOR_FLAGS={2:"tailable",4:"SlaveOk",8:"oplogReplay",16:"noTimeout",32:"awaitData",64:"exhaust",128:"partial"},t.shellApiType=Symbol.for("@@mongosh.shellApiType"),t.asPrintable=Symbol.for("@@mongosh.asPrintable"),t.namespaceInfo=Symbol.for("@@mongosh.namespaceInfo"),t.ADMIN_DB="admin"},32589:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ShellApiErrors=t.blockedByDriverMetadata=void 0,t.blockedByDriverMetadata=function(e){return{driverCaused:!0,api:e}},function(e){e.NotConnectedToShardedCluster="SHAPI-10001",e.NotConnectedToReplicaSet="SHAPI-10002",e.NotConnectedToMongos="SHAPI-10003",e.NotConnected="SHAPI-10004",e.NotUsingFLE="SHAPI-10005"}(r||(t.ShellApiErrors=r={}))},78332:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=n(r(25075)),o=r(26591);let u=class extends a.default{constructor(e,t,r){super(e,t._cursor),this._baseCursor=t,this._verbosity=r,this._explained=null}async[o.asPrintable](){var e;return null!==(e=this._explained)&&void 0!==e||(this._explained=await this._baseCursor.explain(this._verbosity)),this._explained}};u=s([i.shellApiClassDefault],u),t.default=u},99042:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(78332)),a=r(33335),o=r(26591),u=r(75671);let l=class extends a.ShellApiWithMongoClass{constructor(e,t,r){super(),this._mongo=e,this._collection=t,this._verbosity=r}[o.asPrintable](){return`Explainable(${this._collection.getFullName()})`}_emitExplainableApiCall(e,t={}){this._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Explainable",db:this._collection._database._name,coll:this._collection._name,arguments:t})}getCollection(){return this._emitExplainableApiCall("getCollection"),this._collection}getVerbosity(){return this._emitExplainableApiCall("getVerbosity"),this._verbosity}setVerbosity(e){e=(0,u.validateExplainableVerbosity)(e),this._emitExplainableApiCall("setVerbosity",{verbosity:e}),this._verbosity=e}async find(e,t){this._emitExplainableApiCall("find",{query:e,projection:t});const r=await this._collection.find(e,t);return new i.default(this._mongo,r,this._verbosity)}async aggregate(...e){var t;let r,s;return this._emitExplainableApiCall("aggregate",{args:e}),Array.isArray(e[0])?(s=e[0],r=null!==(t=e[1])&&void 0!==t?t:{}):(s=e,r={}),await this._collection.aggregate(s,{...r,explain:this._verbosity})}async count(e={},t={}){return this._emitExplainableApiCall("count",{query:e,options:t}),(0,u.markAsExplainOutput)(await this._collection._database._runReadCommand({explain:{count:`${this._collection._name}`,query:e,...t},verbosity:this._verbosity}))}async distinct(e,t,r={}){return this._emitExplainableApiCall("distinct",{field:e,query:t,options:r}),this._collection.distinct(e,null!=t?t:{},{...r,explain:this._verbosity})}async findAndModify(e){return this._emitExplainableApiCall("findAndModify",{options:e}),this._collection.findAndModify({...e,explain:this._verbosity})}async findOneAndDelete(e,t={}){return this._emitExplainableApiCall("findOneAndDelete",{filter:e,options:t}),this._collection.findOneAndDelete(e,{...t,explain:this._verbosity})}async findOneAndReplace(e,t,r={}){return this._emitExplainableApiCall("findOneAndReplace",{filter:e,options:r}),this._collection.findOneAndReplace(e,t,{...r,explain:this._verbosity})}async findOneAndUpdate(e,t,r={}){return this._emitExplainableApiCall("findOneAndUpdate",{filter:e,options:r}),this._collection.findOneAndUpdate(e,t,{...r,explain:this._verbosity})}async remove(e,t={}){return this._emitExplainableApiCall("remove",{query:e,options:t}),t={...(0,u.processRemoveOptions)(t),explain:this._verbosity},this._collection.remove(e,t)}async update(e,t,r={}){return this._emitExplainableApiCall("update",{filter:e,update:t,options:r}),this._collection.update(e,t,{...r,explain:this._verbosity})}async mapReduce(e,t,r){this._emitExplainableApiCall("mapReduce",{map:e,reduce:t,optionsOrOutString:r});const s={...(0,u.processMapReduceOptions)(r),explain:this._verbosity};return this._collection.mapReduce(e,t,s)}};s([(0,a.returnType)("ExplainableCursor"),(0,a.apiVersions)([1]),a.returnsPromise],l.prototype,"find",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"aggregate",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"count",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"distinct",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"findAndModify",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"findOneAndDelete",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"findOneAndReplace",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"findOneAndUpdate",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"remove",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"update",null),s([a.returnsPromise,(0,a.serverVersions)(["4.4.0",o.ServerVersions.latest]),(0,a.apiVersions)([])],l.prototype,"mapReduce",null),l=s([a.shellApiClassDefault],l),t.default=l},36944:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyVault=t.ClientEncryption=void 0;const i=r(33335),a=n(r(25075)),o=r(75671),u=r(26591),l=r(59215),c=r(1296),p=e=>!Array.isArray(e)&&"object"==typeof e&&("masterKey"in e||"keyAltNames"in e||"keyMaterial"in e);let h=t.ClientEncryption=class extends i.ShellApiWithMongoClass{constructor(e){super(),this._mongo=e;const t={...this._mongo._fleOptions};if(delete t.schemaMap,delete t.encryptedFieldsMap,!e._serviceProvider.createClientEncryption)throw new c.MongoshRuntimeError("FLE API is not available");this._libmongocrypt=e._serviceProvider.createClientEncryption(t)}[u.asPrintable](){return`ClientEncryption class for ${(0,l.redactURICredentials)(this._mongo._uri)}`}async encrypt(e,t,r){let s;return s="object"==typeof r?{keyId:e,...r}:{keyId:e,algorithm:r},(0,o.assertArgsDefinedType)([e,t,s],[!0,!0,!0],"ClientEncryption.encrypt"),await this._libmongocrypt.encrypt(t,s)}async decrypt(e){return(0,o.assertArgsDefinedType)([e],[!0],"ClientEncryption.decrypt"),await this._libmongocrypt.decrypt(e)}async encryptExpression(e,t,r){return(0,o.assertArgsDefinedType)([e,t,r],[!0,!0,!0],"ClientEncryption.encryptExpression"),await this._libmongocrypt.encryptExpression(t,{keyId:e,...r})}async createEncryptedCollection(e,t,r){if((0,o.assertArgsDefinedType)([e],["string"],"ClientEncryption.createEncryptedCollection"),(0,o.assertArgsDefinedType)([t],["string"],"ClientEncryption.createEncryptedCollection"),(0,o.assertArgsDefinedType)([r],["object"],"ClientEncryption.createEncryptedCollection"),(0,o.assertKeysDefined)(r,["provider","createCollectionOptions"]),!this._mongo._serviceProvider.createEncryptedCollection)throw new c.MongoshRuntimeError("Runtime does not support createEncryptedCollection yet");const{encryptedFields:s}=await this._mongo._serviceProvider.createEncryptedCollection(e,t,r,this._libmongocrypt);return{collection:this._mongo.getDB(e).getCollection(t),encryptedFields:s}}};s([i.returnsPromise],h.prototype,"encrypt",null),s([i.returnsPromise],h.prototype,"decrypt",null),s([i.returnsPromise],h.prototype,"encryptExpression",null),s([i.returnsPromise,(0,i.apiVersions)([1])],h.prototype,"createEncryptedCollection",null),t.ClientEncryption=h=s([i.shellApiClassDefault,(0,i.classPlatforms)(["CLI"])],h);let d=t.KeyVault=class extends i.ShellApiWithMongoClass{constructor(e){var t,r,s;super(),this._mongo=e._mongo,this._clientEncryption=e;const n=null===(r=null===(t=this._mongo)||void 0===t?void 0:t._fleOptions)||void 0===r?void 0:r.keyVaultNamespace;if(!n)throw new c.MongoshInvalidInputError("FLE options must be passed to the Mongo object");const i=null===(s=n.match(/^(?<db>[^.]+)\.(?<coll>.+)$/))||void 0===s?void 0:s.groups;if(!i)throw new c.MongoshInvalidInputError(`Invalid keyVaultNamespace '${n}'`);const{db:a,coll:o}=i;this._keyColl=this._mongo.getDB(a).getCollection(o)}async _init(){try{if((await this._keyColl.getIndexKeys()).some((e=>e.keyAltNames)))return}catch(e){}try{await this._keyColl.updateMany({keyAltNames:{$size:0}},{$unset:{keyAltNames:""},$currentDate:{updateDate:!0}}),await this._keyColl.createIndex({keyAltNames:1},{unique:!0,partialFilterExpression:{keyAltNames:{$exists:!0}}})}catch(e){await this._instanceState.printWarning(`Creating 'keyAltNames' index on '${this._keyColl.getFullName()}' failed: ${e.message}`)}}[u.asPrintable](){return`KeyVault class for ${(0,l.redactURICredentials)(this._mongo._uri)}`}async createKey(e,t,r){let s,n,i,a;if(p(t)?(s=null==t?void 0:t.masterKey,n=null==t?void 0:t.keyAltNames,i=null==t?void 0:t.keyMaterial):(e=>!Array.isArray(e)&&"object"==typeof e&&!p(e))(t)&&(s=t),r&&(n=r),(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.createKey"),"string"==typeof t){if("local"!==e||""!==t)throw new c.MongoshInvalidInputError('KeyVault.createKey does not support providing masterKey as string anymore. For AWS please use createKey("aws", { region: ..., key: ... })',c.CommonErrors.Deprecated);s=void 0}else if(Array.isArray(t)){if("local"!==e)throw new c.MongoshInvalidInputError("KeyVault.createKey requires masterKey to be given as second argument if KMS is not local",c.CommonErrors.InvalidArgument);if(n)throw new c.MongoshInvalidInputError("KeyVault.createKey was supplied with an array for the masterKey and keyAltNames - either specify keyAltNames as second argument or set undefined for masterKey",c.CommonErrors.InvalidArgument);n=t,s=void 0}return s&&(a={...null!=a?a:{},masterKey:s}),n&&(a={...null!=a?a:{},keyAltNames:n}),i&&(a={...null!=a?a:{},keyMaterial:i}),await this._clientEncryption._libmongocrypt.createDataKey(e,a)}async getKey(e){(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.getKey");const t=await this._keyColl.find({_id:e});return await t.limit(1).next()}async getKeyByAltName(e){(0,o.assertArgsDefinedType)([e],["string"],"KeyVault.getKeyByAltName");const t=await this._keyColl.find({keyAltNames:e});return await t.limit(1).next()}async getKeys(){return new a.default(this._mongo,this._clientEncryption._libmongocrypt.getKeys())}async deleteKey(e){return(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.deleteKey"),await this._clientEncryption._libmongocrypt.deleteKey(e)}async addKeyAlternateName(e,t){return(0,o.assertArgsDefinedType)([e,t],[!0,"string"],"KeyVault.addKeyAlternateName"),await this._clientEncryption._libmongocrypt.addKeyAltName(e,t)}async removeKeyAlternateName(e,t){return(0,o.assertArgsDefinedType)([e,t],[!0,"string"],"KeyVault.removeKeyAlternateName"),await this._clientEncryption._libmongocrypt.removeKeyAltName(e,t)}async rewrapManyDataKey(e,t){return await this._clientEncryption._libmongocrypt.rewrapManyDataKey(e,t)}async createDataKey(...e){return await this.createKey(...e)}async removeKeyAltName(...e){return await this.removeKeyAlternateName(...e)}async addKeyAltName(...e){return await this.addKeyAlternateName(...e)}};s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"createKey",null),s([(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKey",null),s([(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKeyByAltName",null),s([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKeys",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"deleteKey",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"addKeyAlternateName",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"removeKeyAlternateName",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"rewrapManyDataKey",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"createDataKey",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"removeKeyAltName",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"addKeyAltName",null),t.KeyVault=d=s([i.shellApiClassDefault,(0,i.classPlatforms)(["CLI"])],d)},91283:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(r(30102)),i=r(26591),a=n.default.translateApiHelp.bind(n.default);class o{constructor(e,t={translate:a}){this.attr=[],this.help=t.translate(e.help),this.docs=t.translate(e.docs),this.attr=(e.attr||[]).map((e=>({name:e.name,description:t.translate(e.description)}))).filter((e=>e.description))}[i.asPrintable](){const{help:e,docs:t,attr:r}=this;return{help:e,docs:t,attr:r}}get[i.shellApiType](){return"Help"}}t.default=o},75671:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildConfigChunksCollectionMatch=t.pickWithExactKeyMatch=t.assignAll=t.functionCtorWithoutProps=t.shallowClone=t.getBadge=t.adjustRunCommand=t.shouldRunAggregationImmediately=t.isValidCollectionName=t.isValidDatabaseName=t.markAsExplainOutput=t.maybeMarkAsExplainOutput=t.processFLEOptions=t.assertCLI=t.setHideIndex=t.processMapReduceOptions=t.processRemoveOptions=t.processFindAndModifyOptions=t.iterate=t.addHiddenDataProperty=t.tsToSeconds=t.scaleIndividualShardStatistics=t.dataFormat=t.coerceToJSNumber=t.getConfigDB=t.getPrintableShardStatus=t.processDigestPassword=t.adaptOptions=t.assertKeysDefined=t.assertArgsDefinedType=t.validateExplainableVerbosity=t.adaptAggregateOptions=void 0;const n=r(1296),i=s(r(84770)),a=r(32589),o=r(26591),u=r(21764);function l(e){if(!0===e?e="allPlansExecution":!1!==e&&void 0!==e||(e="queryPlanner"),"string"!=typeof e)throw new n.MongoshInvalidInputError("verbosity must be a string",n.CommonErrors.InvalidArgument);return e}function c(e){return e?` (${e})`:""}function p(e,t){for(const r of t)if(void 0===e[r])throw new n.MongoshInvalidInputError(`Missing required property: ${JSON.stringify(r)}`,n.CommonErrors.InvalidArgument)}function h(e){return"number"==typeof e?e:"toNumber"in e?e.toNumber():e.valueOf()}function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0}),e}function f(e){return null!==e&&"object"==typeof e&&d(e,o.shellApiType,"ExplainOutput"),e}function m(e){return"number"==typeof e&&Number.isInteger(e)||"Int32"===(null==e?void 0:e._bsontype)}function y(e){return Object.prototype.hasOwnProperty.call(e,"timestamp")?{uuid:e.uuid}:{ns:e._id}}t.adaptAggregateOptions=function(e={}){const t={...e},r={};let s;return"readConcern"in t&&(r.readConcern=e.readConcern,delete t.readConcern),"writeConcern"in t&&(Object.assign(r,e.writeConcern),delete t.writeConcern),"explain"in t&&(s=l(t.explain),delete t.explain),{aggOptions:t,dbOptions:r,explain:s}},t.validateExplainableVerbosity=l,t.assertArgsDefinedType=function(e,t,r){e.forEach(((e,s)=>{const i=t[s];if(void 0===e){if(!0!==i&&Array.isArray(i)&&i.includes(void 0))return;throw new n.MongoshInvalidInputError(`Missing required argument at position ${s}${c(r)}`,n.CommonErrors.InvalidArgument)}if(!0===i)return;const a="string"==typeof i?[i]:i,o=a.includes(typeof e),u=a.includes(`bson:${null==e?void 0:e._bsontype}`);if(!o&&!u){const t=a.filter((e=>void 0!==e)).map((e=>null==e?void 0:e.replace(/^bson:/,""))).join(" or ");throw new n.MongoshInvalidInputError(`Argument at position ${s} must be of type ${t}, got ${typeof e} instead${c(r)}`,n.CommonErrors.InvalidArgument)}}))},t.assertKeysDefined=p,t.adaptOptions=function(e,t,r){return Object.keys(r).reduce(((t,s)=>(null===e[s]||(t[e[s]||s]=r[s]),t)),t)},t.processDigestPassword=function(e,t,r){if(void 0===t)return{};if("server"!==t&&"client"!==t)throw new n.MongoshInvalidInputError(`Invalid field: passwordDigestor must be 'client' or 'server', got ${t}`,n.CommonErrors.InvalidArgument);if("client"===t){if("string"!=typeof r.pwd)throw new n.MongoshInvalidInputError("User passwords must be of type string. Was given password with type "+typeof r.pwd,n.CommonErrors.InvalidArgument);const t=i.default.createHash("md5");return t.update(`${e}:mongo:${r.pwd}`),{digestPassword:!1,pwd:t.digest("hex")}}return{digestPassword:!0}},t.getPrintableShardStatus=async function(e,t){const r={},s=e.getCollection("mongos"),i=e.getCollection("version"),o=e.getCollection("shards"),l=e.getCollection("chunks"),c=e.getCollection("settings"),p=e.getCollection("changelog"),[h,d,f]=await Promise.all([i.findOne({},{minCompatibleVersion:0,excluding:0,upgradeId:0,upgradeState:0}),o.find().then((e=>e.sort({_id:1}).toArray())),s.find().then((e=>e.sort({ping:-1}).limit(1).tryNext()))]);if(null===h)throw new n.MongoshInvalidInputError("This db does not have sharding enabled. Be sure you are connecting to a mongos from the shell and not to a mongod.",a.ShellApiErrors.NotConnectedToMongos);r.shardingVersion=h,r.shards=d;let m=null,g="most recently active";if(null!==f&&(m=f.ping,m.getTime()>=Date.now()-6e4&&(g="active")),g=`${g} mongoses`,null===m)r[g]="none";else{const e={ping:{$gt:(()=>{const e=m;return e.setTime(e.getTime()-6e4),e})()}};r[g]=t?await(await s.find(e)).sort({ping:-1}).toArray():(await(await s.aggregate([{$match:e},{$group:{_id:"$mongoVersion",num:{$sum:1}}},{$sort:{num:-1}}])).toArray()).map((e=>({[e._id]:e.num})))}const b={};await Promise.all([(async()=>{const e=await c.findOne({_id:"autosplit"});r.autosplit={"Currently enabled":null===e||e.enabled?"yes":"no"}})(),(async()=>{const e=await c.findOne({_id:"balancer"});b["Currently enabled"]=null!==e&&e.stopped?"no":"yes"})(),(async()=>{let t="unknown";try{t=(await e.adminCommand({balancerStatus:1})).inBalancerRound?"yes":"no"}catch(e){}b["Currently running"]=t})(),(async()=>{const e=await c.findOne({_id:"balancer"});if(null!==e&&Object.prototype.hasOwnProperty.call(e,"activeWindow")){const t=e.activeWindow;b["Balancer active window is set between"]=`${t.start} and ${t.stop} server local time`}})(),(async()=>{const t=await(await e.getCollection("locks").find({state:{$eq:2}})).toArray();(null==t?void 0:t.length)>0&&(b["Collections with active migrations"]=t.map((e=>`${e._id} started at ${e.when}`)))})(),(async()=>{let t=!h.currentVersion;const r=h.currentVersion;if(r>5&&(t=!0),5===r){const r=(await e.serverBuildInfo()).versionArray;2===r[0]&&r[1]>6&&(t=!0)}if(t){const t=await(await e.getCollection("actionlog").find({what:"balancer.round"})).sort({time:-1}).limit(5).toArray(),r={count:0,lastErr:"",lastTime:" "};null!==t&&t.forEach((e=>{e.details.errorOccured&&(r.count+=1,1===r.count&&(r.lastErr=e.details.errmsg,r.lastTime=e.time))})),b["Failed balancer rounds in last 5 attempts"]=r.count,r.count>0&&(b["Last reported error"]=r.lastErr,b["Time of Reported error"]=r.lastTime);const s=new Date;s.setDate(s.getDate()-1);let n=await(await p.aggregate([{$match:{time:{$gt:s},what:"moveChunk.from","details.errmsg":{$exists:!1},"details.note":"success"}},{$group:{_id:{msg:"$details.errmsg"},count:{$sum:1}}},{$project:{_id:{$ifNull:["$_id.msg","Success"]},count:"$count"}}])).toArray();n=n.concat(await(await p.aggregate([{$match:{time:{$gt:s},what:"moveChunk.from",$or:[{"details.errmsg":{$exists:!0}},{"details.note":{$ne:"success"}}]}},{$group:{_id:{msg:"$details.errmsg",from:"$details.from",to:"$details.to"},count:{$sum:1}}},{$project:{_id:{$ifNull:["$_id.msg","aborted"]},from:"$_id.from",to:"$_id.to",count:"$count"}}])).toArray());const i={};n.forEach((e=>{"Success"===e._id?i[e.count]=e._id:i[e.count]=`Failed with error '${e._id}', from ${e.from} to ${e.to}`})),0===n.length?b["Migration Results for the last 24 hours"]="No recent migrations":b["Migration Results for the last 24 hours"]=i}})()]),r.balancer=b;const E=await(await e.getCollection("databases").find()).sort({name:1}).toArray();return E.push({_id:"config",primary:"config",partitioned:!0}),E.sort(((e,t)=>e._id.localeCompare(t._id))),r.databases=await Promise.all(E.map((async r=>{const s=await(await e.getCollection("collections").find({_id:new RegExp("^"+(n=r._id,n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")+"\\."))})).sort({_id:1}).toArray();var n;const i=await Promise.all(s.filter((e=>!e.dropped)).map((async r=>{const s={};s.shardKey=r.key,s.unique=!!r.unique,"boolean"!=typeof r.unique&&void 0!==r.unique&&(s.unique=[!!r.unique,{unique:r.unique}]),s.balancing=!r.noBalance,"boolean"!=typeof r.noBalance&&void 0!==r.noBalance&&(s.balancing=[!r.noBalance,{noBalance:r.noBalance}]);const n=[],i=y(r),a=await(await l.aggregate([{$match:i},{$group:{_id:"$shard",cnt:{$sum:1}}},{$project:{_id:0,shard:"$_id",nChunks:"$cnt"}},{$sort:{shard:1}}])).toArray();let o=0;if(s.chunkMetadata=[],a.forEach((e=>{o+=e.nChunks,s.chunkMetadata.push({shard:e.shard,nChunks:e.nChunks})})),o<20||t)for await(const e of(await l.find(i)).sort({min:1})){const t={min:e.min,max:e.max,"on shard":e.shard,"last modified":e.lastmod};Object.defineProperty(t,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t){return(0,u.inspect)({...this},{...t,breakLength:1/0})},writable:!0,configurable:!0}),e.jumbo&&(t.jumbo="yes"),n.push(t)}else n.push("too many chunks to print, use verbose if you want to force print");const c=[];for await(const t of(await e.getCollection("tags").find({ns:r._id})).sort({min:1}))c.push({tag:t.tag,min:t.min,max:t.max});return s.chunks=n,s.tags=c,[r._id,s]})));return{database:r,collections:Object.fromEntries(i)}}))),delete r.shardingVersion.currentVersion,r},t.getConfigDB=async function(e){return"isdbgrid"!==(await e._maybeCachedHello()).msg&&await e._instanceState.printWarning("MongoshWarning: [SHAPI-10003] You are not connected to a mongos. This command may not work as expected."),e.getSiblingDB("config")},t.coerceToJSNumber=h,t.dataFormat=function(e){return null==e?"0B":e<1024?Math.floor(e)+"B":e<1048576?Math.floor(e/1024)+"KiB":e<1073741824?Math.floor(Math.floor(e/1024)/1024*100)/100+"MiB":Math.floor(Math.floor(e/1048576)/1024*100)/100+"GiB"},t.scaleIndividualShardStatistics=function(e,t){const r={};for(const s of Object.keys(e))if(["size","maxSize","storageSize","totalIndexSize","totalSize"].includes(s))r[s]=h(e[s])/t;else if("scaleFactor"===s)r[s]=t;else if("indexSizes"===s){const n={};for(const r of Object.keys(e[s]))n[r]=h(e[s][r])/t;r[s]=n}else r[s]=e[s];return r},t.tsToSeconds=function(e){return"object"==typeof e&&e&&"getHighBits"in e&&"getLowBits"in e?e.getHighBits():Number(e)/4294967296},t.addHiddenDataProperty=d,t.iterate=async function(e,t,r){if(t.isClosed())return e;for(let s=0;s<r;s++){const r=await t.tryNext();if(null===r){e.cursorHasMore=!1;break}e.documents.push(r)}return e},t.processFindAndModifyOptions=function(e){if("returnDocument"in(e={...e})){if("before"!==e.returnDocument&&"after"!==e.returnDocument)throw new n.MongoshInvalidInputError("returnDocument needs to be either 'before' or 'after'",n.CommonErrors.InvalidArgument);return delete e.returnNewDocument,delete e.returnOriginal,e}return"returnOriginal"in e?(e.returnDocument=e.returnOriginal?"before":"after",delete e.returnOriginal,delete e.returnNewDocument,e):"returnNewDocument"in e?(e.returnDocument=e.returnNewDocument?"after":"before",delete e.returnOriginal,delete e.returnNewDocument,delete e.new,e):"new"in e?(e.returnDocument=e.new?"after":"before",delete e.returnOriginal,delete e.returnNewDocument,delete e.new,e):(e.returnDocument="before",e)},t.processRemoveOptions=function(e){return"boolean"==typeof e?{justOne:e}:{justOne:!1,...e}},t.processMapReduceOptions=function(e){if("string"==typeof e)return{out:e};if(void 0===e.out)throw new n.MongoshInvalidInputError("Missing 'out' option",n.CommonErrors.InvalidArgument);return e},t.setHideIndex=async function(e,t,r){const s="string"==typeof t?{name:t,hidden:r}:{keyPattern:t,hidden:r};return await e._database._runCommand({collMod:e._name,index:s})},t.assertCLI=function(e,t){if("CLI"!==e)throw new n.MongoshUnimplementedError(`${t} are not supported for current platform: ${e}`,n.CommonErrors.NotImplemented)},t.processFLEOptions=function(e){var t,r;p(e,["keyVaultNamespace","kmsProviders"]),Object.keys(e).forEach((e=>{if(-1===["keyVaultClient","keyVaultNamespace","kmsProviders","schemaMap","bypassAutoEncryption","tlsOptions","bypassQueryAnalysis","encryptedFieldsMap"].indexOf(e))throw new n.MongoshInvalidInputError(`Unrecognized FLE Client Option ${e}`)}));const s={keyVaultClient:null===(t=e.keyVaultClient)||void 0===t?void 0:t._serviceProvider.getRawClient(),keyVaultNamespace:e.keyVaultNamespace},i=null===(r=e.kmsProviders.local)||void 0===r?void 0:r.key;if(i&&"Binary"===i._bsontype){const t=i.value();if(!Buffer.isBuffer(t))throw new n.MongoshInvalidInputError("When specifying the key of a local KMS as BSON binary it must be constructed from a base64 encoded string");s.kmsProviders={...e.kmsProviders,local:{key:t}}}else s.kmsProviders={...e.kmsProviders};return e.schemaMap&&(s.schemaMap=e.schemaMap),void 0!==e.bypassAutoEncryption&&(s.bypassAutoEncryption=e.bypassAutoEncryption),e.encryptedFieldsMap&&(s.encryptedFieldsMap=e.encryptedFieldsMap),void 0!==e.bypassQueryAnalysis&&(s.bypassQueryAnalysis=e.bypassQueryAnalysis),void 0!==e.tlsOptions&&(s.tlsOptions=e.tlsOptions),s},t.maybeMarkAsExplainOutput=function(e,t){return"explain"in t?f(e):e},t.markAsExplainOutput=f,t.isValidDatabaseName=function(e){return!!e&&!/[/\\. "\0]/.test(e)},t.isValidCollectionName=function(e){return!!e&&!/[$\0]/.test(e)},t.shouldRunAggregationImmediately=function(e){return e.some((e=>Object.keys(e).some((e=>"$merge"===e||"$out"===e))))},t.adjustRunCommand=function e(t,r){if(void 0!==t.replSetResizeOplog){if("size"in t&&m(t.size))return e({...t,size:new r.Double(+t.size)},r);if("minRetentionHours"in t&&m(t.minRetentionHours))return e({...t,minRetentionHours:new r.Double(+t.minRetentionHours)},r)}return void 0!==t.profile&&"sampleRate"in t&&m(t.sampleRate)?e({...t,sampleRate:new r.Double(+t.sampleRate)},r):void 0!==t.setParameter&&void 0!==t.mirrorReads&&"samplingRate"in t.mirrorReads&&m(t.mirrorReads.samplingRate)?e({...t,mirrorReads:{...t.mirrorReads,samplingRate:new r.Double(+t.mirrorReads.samplingRate)}},r):"configureQueryAnalyzer"in t&&m(t.sampleRate)?e({...t,sampleRate:new r.Double(+t.sampleRate)},r):t},t.getBadge=function(e,t){return"timeseries"===e[t].type?"[time-series]":"view"===e[t].type?"[view]":((e,t)=>!e[t].name.startsWith("enxcol_.")&&e.some((r=>r.name===`enxcol_.${e[t].name}.esc`))&&e.some((r=>r.name===`enxcol_.${e[t].name}.ecc`))&&e.some((r=>r.name===`enxcol_.${e[t].name}.ecoc`)))(e,t)?"[queryable-encryption]":""},t.shallowClone=function(e){return e&&"object"==typeof e?Array.isArray(e)?[...e]:{...e}:e},t.functionCtorWithoutProps=function(e){function t(...t){return new.target?Reflect.construct(e,t,new.target):new e(...t)}Object.setPrototypeOf(t,Object.getPrototypeOf(e));const r=Object.getOwnPropertyDescriptor(e,"name");return r&&Object.defineProperty(t,"name",r),t},t.assignAll=function(e,...t){var r;const s=[];for(const e of t)s.push(...Object.entries(Object.getOwnPropertyDescriptors(e)));const n=Object.fromEntries(s);for(const t of Object.getOwnPropertyNames(n))!1===(null===(r=Object.getOwnPropertyDescriptor(e,t))||void 0===r?void 0:r.configurable)&&(e[t]=n[t].value,delete n[t]);return Object.defineProperties(e,n),e},t.pickWithExactKeyMatch=function(e,t){return Object.create(Object.getPrototypeOf(e),Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(e)).filter((([e])=>t.includes(e)))))},t.buildConfigChunksCollectionMatch=y},62294:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InterruptFlag=t.getShellApiType=t.toShellResult=t.Topologies=t.ServerVersions=t.ShellApi=t.signatures=t.UpdateResult=t.ReplicaSet=t.Shard=t.Mongo=t.InsertOneResult=t.InsertManyResult=t.DeleteResult=t.CommandResult=t.BulkWriteResult=t.ShellInstanceState=t.Help=t.ExplainableCursor=t.Explainable=t.Collection=t.Database=t.CursorIterationResult=t.Cursor=t.RunCommandCursor=t.AggregationCursor=void 0;const n=s(r(53891));t.AggregationCursor=n.default;const i=s(r(75161));t.RunCommandCursor=i.default;const a=s(r(78419));t.Collection=a.default;const o=s(r(25075));t.Cursor=o.default;const u=s(r(93500));t.Database=u.default;const l=s(r(99042));t.Explainable=l.default;const c=s(r(78332));t.ExplainableCursor=c.default;const p=s(r(91283));t.Help=p.default;const h=s(r(49040));t.ShellInstanceState=h.default;const d=s(r(13146));t.Shard=d.default;const f=s(r(97976));t.ReplicaSet=f.default;const m=s(r(59418));t.ShellApi=m.default;const y=r(95961);Object.defineProperty(t,"BulkWriteResult",{enumerable:!0,get:function(){return y.BulkWriteResult}}),Object.defineProperty(t,"CommandResult",{enumerable:!0,get:function(){return y.CommandResult}}),Object.defineProperty(t,"CursorIterationResult",{enumerable:!0,get:function(){return y.CursorIterationResult}}),Object.defineProperty(t,"DeleteResult",{enumerable:!0,get:function(){return y.DeleteResult}}),Object.defineProperty(t,"InsertManyResult",{enumerable:!0,get:function(){return y.InsertManyResult}}),Object.defineProperty(t,"InsertOneResult",{enumerable:!0,get:function(){return y.InsertOneResult}}),Object.defineProperty(t,"UpdateResult",{enumerable:!0,get:function(){return y.UpdateResult}});const g=s(r(13599));t.Mongo=g.default;const b=r(33335);Object.defineProperty(t,"signatures",{enumerable:!0,get:function(){return b.signatures}}),Object.defineProperty(t,"toShellResult",{enumerable:!0,get:function(){return b.toShellResult}}),Object.defineProperty(t,"getShellApiType",{enumerable:!0,get:function(){return b.getShellApiType}});const E=r(26591);Object.defineProperty(t,"Topologies",{enumerable:!0,get:function(){return E.Topologies}}),Object.defineProperty(t,"ServerVersions",{enumerable:!0,get:function(){return E.ServerVersions}});const A=r(7764);Object.defineProperty(t,"InterruptFlag",{enumerable:!0,get:function(){return A.InterruptFlag}})},7764:(e,t,r)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.InterruptFlag=t.MongoshInterruptedError=void 0;const n=r(1296),i=Symbol.for("@@mongosh.uncatchable");class a extends n.MongoshBaseError{constructor(){super("MongoshInterruptedError","execution was interrupted"),this[s]=!0}}t.MongoshInterruptedError=a,s=i,t.InterruptFlag=class{constructor(){this.interrupted=!1,this.onInterruptListeners=new Set}isSet(){return this.interrupted}checkpoint(){if(this.interrupted)throw new a}asPromise(){if(this.interrupted){const e=Promise.reject(new a);return e.catch((()=>{})),{destroy:()=>{},promise:e}}let e;const t=new Promise(((t,r)=>{e=()=>{this.onInterruptListeners.delete(r),r(null)},this.onInterruptListeners.add(r)}));return t.catch((()=>{})),{destroy:e,promise:t}}async set(){this.interrupted=!0;const e=new a;for(const t of[...this.onInterruptListeners])try{await t(e)}catch(e){}}reset(){this.interrupted=!1}async withOverrideInterruptBehavior(e,t){const r=this.asPromise();let s;const n=new Promise((e=>{s=async()=>{const r=t();return e(r),r}}));this.onInterruptListeners.add(s);try{this.checkpoint();const t=e(r);return t.catch((()=>{})),await Promise.race([t,r.promise])}catch(e){throw this.interrupted&&await n,e}finally{r.destroy(),this.onInterruptListeners.delete(s)}}}},41117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAnyLogEntry=void 0,t.parseAnyLogEntry=function(e){var t;try{const r=JSON.parse(e);return{id:r.id,timestamp:null===(t=r.t)||void 0===t?void 0:t.$date,severity:r.s,component:r.c,context:r.ctx,message:r.msg,attr:r.attr}}catch(t){return function(e){const t=/^(?<timestamp>\S*) *(?<severity>\S*) *(?<component>\S*) *\[(?<context>[^\]]+)\]\s*(?<message>.*)$/.exec(e.trim());if(!t)throw new Error(`Could not parse line ${JSON.stringify(e)}`);return t.groups}(e)}}},52277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransformMongoErrorPlugin=t.rephraseMongoError=void 0;const r=[{code:13435,replacement:"not primary and secondaryOk=false - consider using db.getMongo().setReadPref() or readPreference in the connection string"}];function s(e){if(!function(e){var t,r,s;return/^Mongo([A-Z].*)?Error$/.test(null!==(s=null===(r=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)||void 0===r?void 0:r.name)&&void 0!==s?s:"")}(e))return e;const t=e,s=t.message,n=r.find((e=>e.matchMessage?"string"==typeof e.matchMessage?s.includes(e.matchMessage):e.matchMessage.test(s):void 0!==e.code&&t.code===e.code));return n&&(t.message="function"==typeof n.replacement?n.replacement(s):n.replacement),t}t.rephraseMongoError=s,t.TransformMongoErrorPlugin=class{transformError(e){return s(e)}}},13599:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1296),a=r(33335),o=r(88438),u=n(r(93500)),l=r(95961),c=r(59215),p=r(26591),h=n(r(80211)),d=r(75671),f=n(r(24423)),m=r(32589),y=r(36944),g=r(32589),b=r(41117);let E=class extends a.ShellApiClass{constructor(e,t,r,s,n){var a,u,l;if(super(),this.__serviceProvider=null,this._databases=Object.create(null),this._explicitEncryptionOnly=!1,this._readPreferenceWasExplicitlyRequested=!1,this._cachedDatabaseNames=[],this._instanceState=e,n&&(this.__serviceProvider=n),"object"==typeof t&&null!==t&&"string"==typeof t._uri?t=t._uri:"string"!=typeof t&&(t=null!==(u=null===(a=null==n?void 0:n.getURI)||void 0===a?void 0:a.call(n))&&void 0!==u?u:"mongodb://localhost/"),this._connectionInfo=(0,o.generateConnectionInfoFromCliArgs)({connectionSpecifier:t}),this._readPreferenceWasExplicitlyRequested=/\breadPreference=/i.test(this._uri),r){if(void 0!==r.explicitEncryptionOnly){if(void 0!==r.schemaMap)throw new i.MongoshInvalidInputError("explicitEncryptionOnly and schemaMap are mutually exclusive",i.CommonErrors.InvalidArgument);r={...r},this._explicitEncryptionOnly=!!r.explicitEncryptionOnly,delete r.explicitEncryptionOnly}this._connectionInfo.driverOptions.autoEncryption=(0,d.processFLEOptions)(r)}else{const e=null===(l=null==n?void 0:n.getFleOptions)||void 0===l?void 0:l.call(n);e&&(this._connectionInfo.driverOptions.autoEncryption=e)}(null==s?void 0:s.api)&&("string"==typeof s.api?this._connectionInfo.driverOptions.serverApi={version:s.api}:this._connectionInfo.driverOptions.serverApi=s.api)}get _uri(){return this._connectionInfo.connectionString}get _fleOptions(){return this._connectionInfo.driverOptions.autoEncryption}get _serviceProvider(){if(null===this.__serviceProvider)throw new i.MongoshInternalError("No ServiceProvider available for this mongo",g.ShellApiErrors.NotConnected);return this.__serviceProvider}set _serviceProvider(e){this.__serviceProvider=e}async _displayBatchSize(){var e;return null!==(e=this._instanceState.displayBatchSizeFromDBQuery)&&void 0!==e?e:await this._instanceState.shellApi.config.get("displayBatchSize")}[p.asPrintable](){return(0,c.redactURICredentials)(this._uri)}_emitMongoApiCall(e,t={}){this._instanceState.emitApiCallWithArgs({method:e,class:"Mongo",uri:this._uri,arguments:t})}async connect(e,t){var r,s,n,i;(e||t)&&(this._connectionInfo=(0,o.mapCliToDriver)({username:e,password:t},this._connectionInfo));const a={...this._connectionInfo.driverOptions};this._explicitEncryptionOnly?delete a.autoEncryption:a.autoEncryption&&(a.autoEncryption.extraOptions={...a.autoEncryption.extraOptions,...await(null===(s=null===(r=this._instanceState.evaluationListener)||void 0===r?void 0:r.getCryptLibraryOptions)||void 0===s?void 0:s.call(r))});const u=this._instanceState.initialServiceProvider;try{this.__serviceProvider=await u.getNewConnection(this._uri,a)}catch(e){throw"MongoServerSelectionError"===(null==e?void 0:e.name)&&(null===(i=null===(n=u.getRawClient())||void 0===n?void 0:n.options)||void 0===i?void 0:i.tls)&&!/\b(ssl|tls)=/.exec(this._uri)&&(e.message+=" (is ?tls=true missing from the connection string?)"),e}}_getDb(e){if((0,d.assertArgsDefinedType)([e],["string"]),!(0,d.isValidDatabaseName)(e))throw new i.MongoshInvalidInputError(`Invalid database name: ${e}`,i.CommonErrors.InvalidArgument);return e in this._databases||(this._databases[e]=new u.default(this,e)),this._databases[e]}getDB(e){return(0,d.assertArgsDefinedType)([e],["string"],"Mongo.getDB"),this._instanceState.messageBus.emit("mongosh:getDB",{db:e}),this._getDb(e)}getCollection(e){var t,r;(0,d.assertArgsDefinedType)([e],["string"]);const{db:s,coll:n}=null!==(r=null===(t=/^(?<db>[^.]+)\.(?<coll>.+)$/.exec(e))||void 0===t?void 0:t.groups)&&void 0!==r?r:{};if(!s||!n)throw new i.MongoshInvalidInputError("Collection must be of the format <db>.<collection>",i.CommonErrors.InvalidArgument);return this._getDb(s).getCollection(n)}getURI(){return this._uri}use(e){var t;let r,s;(0,d.assertArgsDefinedType)([e],["string"],"Mongo.use"),this._instanceState.messageBus.emit("mongosh:use",{db:e});try{const e=this._instanceState.context.db;r=null===(t=null==e?void 0:e.getName)||void 0===t?void 0:t.call(e),s=null==e?void 0:e._mongo}catch(e){if((null==e?void 0:e.code)!==g.ShellApiErrors.NotConnected)throw e}return this._instanceState.context.db=this._getDb(e),e===r&&s===this?`already on db ${e}`:`switched to db ${e}`}async _listDatabases(e={}){const t=await this._serviceProvider.listDatabases("admin",{...this._getExplicitlyRequestedReadPref(),...e});if(!("databases"in t)){const e=new i.MongoshRuntimeError('Got invalid result from "listDatabases"',i.CommonErrors.CommandFailed);throw this._instanceState.messageBus.emit("mongosh:error",e,"shell-api"),e}return this._cachedDatabaseNames=t.databases.map((e=>e.name)),t}async _getDatabaseNamesForCompletion(){return await Promise.race([(async()=>(await this._listDatabases({readPreference:"primaryPreferred"})).databases.map((e=>e.name)))(),(async()=>(await new Promise((e=>setTimeout(e,200).unref())),this._cachedDatabaseNames))()])}async getDBs(e={}){return this._emitMongoApiCall("getDBs",{options:e}),await this._listDatabases(e)}async getDBNames(e={}){return this._emitMongoApiCall("getDBNames",{options:e}),(await this._listDatabases(e)).databases.map((e=>e.name))}async show(e,t,r=!0){var s,n,a;const o=this._instanceState.currentDb;switch(r&&this._instanceState.messageBus.emit("mongosh:show",{method:`show ${e}`}),e){case"databases":case"dbs":const r=(await this._listDatabases({readPreference:"primaryPreferred",promoteLongs:!0})).databases;return new l.CommandResult("ShowDatabasesResult",r);case"collections":case"tables":const u=await o._getCollectionNamesWithTypes({readPreference:"primaryPreferred",promoteLongs:!0});return new l.CommandResult("ShowCollectionsResult",u);case"profile":const c=o.getCollection("system.profile"),p={count:await c.countDocuments({})};return 0!==p.count&&(p.result=await(await c.find({millis:{$gt:0}})).sort({$natural:-1}).limit(5).toArray()),new l.CommandResult("ShowProfileResult",p);case"users":const h=await o.getUsers();return new l.CommandResult("ShowResult",h.users);case"roles":const d=await o.getRoles({showBuiltinRoles:!0});return new l.CommandResult("ShowResult",d.roles);case"log":const f=await o.adminCommand({getLog:t||"global"});return new l.CommandResult("ShowResult",f.log);case"logs":const m=await o.adminCommand({getLog:"*"});return new l.CommandResult("ShowResult",m.names);case"startupWarnings":{let e;try{if(e=await o.adminCommand({getLog:"startupWarnings"}),!e)throw new i.MongoshCommandFailed("adminCommand getLog unexpectedly returned no result")}catch(e){return this._instanceState.messageBus.emit("mongosh:error",e,"shell-api"),new l.CommandResult("ShowBannerResult",null)}if(!e.log||!e.log.length)return new l.CommandResult("ShowBannerResult",null);const t=e.log.map((e=>{try{const t=(0,b.parseAnyLogEntry)(e);return`${t.timestamp}: ${t.message}`}catch(t){return`Unexpected log line format: ${e}`}}));return new l.CommandResult("ShowBannerResult",{header:"The server generated these startup warnings when booting",content:t.join("\n")})}case"automationNotices":{let e;try{e=await o.hello()}catch(e){return this._instanceState.messageBus.emit("mongosh:error",e,"shell-api"),new l.CommandResult("ShowBannerResult",null)}return e.automationServiceDescriptor?new l.CommandResult("ShowBannerResult",{content:`This server is managed by automation service '${e.automationServiceDescriptor}'.\nMany administrative actions are inappropriate, and may be automatically reverted.`}):new l.CommandResult("ShowBannerResult",null)}case"nonGenuineMongoDBCheck":return null===(a=null===(n=null===(s=this._instanceState.connectionInfo)||void 0===s?void 0:s.extraInfo)||void 0===n?void 0:n.is_genuine)||void 0===a||a?new l.CommandResult("ShowBannerResult",null):new l.CommandResult("ShowBannerResult",{header:"Warning: Non-Genuine MongoDB Detected",content:["This server or service appears to be an emulation of MongoDB rather than an official MongoDB product.","Some documented MongoDB features may work differently, be entirely missing or incomplete, or have unexpected performance characteristics.","To learn more please visit: https://dochub.mongodb.org/core/non-genuine-mongodb-server-warning."].join("\n")});default:const y=new i.MongoshInvalidInputError(`'${e}' is not a valid argument for "show".`,i.CommonErrors.InvalidArgument);throw this._instanceState.messageBus.emit("mongosh:error",y,"shell-api"),y}}async close(e){const t=this._instanceState.mongos.indexOf(this);-1===t?process.emitWarning(new i.MongoshInternalError(`Closing untracked Mongo instance ${this[p.asPrintable]()}`)):this._instanceState.mongos.splice(t,1),await this._serviceProvider.close(e)}async _suspend(){return await this._serviceProvider.suspend()}getReadPrefMode(){return this._serviceProvider.getReadPreference().mode}getReadPrefTagSet(){return this._serviceProvider.getReadPreference().tags}getReadPref(){return this._serviceProvider.getReadPreference()}_getExplicitlyRequestedReadPref(){return this._readPreferenceWasExplicitlyRequested?{readPreference:this.getReadPref()}:void 0}getReadConcern(){try{const e=this._serviceProvider.getReadConcern();return e?e.level:void 0}catch(e){throw new i.MongoshInternalError("Error retrieving ReadConcern.")}}getWriteConcern(){try{return this._serviceProvider.getWriteConcern()}catch(e){throw new i.MongoshInternalError("Error retrieving WriteConcern.")}}async setReadPref(e,t,r){await this._serviceProvider.resetConnectionOptions({readPreference:this._serviceProvider.readPreferenceFromOptions({readPreference:e,readPreferenceTags:t,hedge:r})}),this._readPreferenceWasExplicitlyRequested=!0}async setReadConcern(e){await this._serviceProvider.resetConnectionOptions({readConcern:{level:e}})}async setWriteConcern(e,t,r){const s={};let n;if("object"==typeof e){if(void 0!==t||void 0!==r)throw new i.MongoshInvalidInputError("If concern is given as an object no other arguments must be specified",i.CommonErrors.InvalidArgument);n=e}else{if(n={},"string"!=typeof e&&"number"!=typeof e)throw new i.MongoshInvalidInputError("w value must be a number or string, got: "+typeof e,i.CommonErrors.InvalidArgument);if("number"==typeof e&&e<0)throw new i.MongoshInvalidInputError(`w value must be equal to or greather than 0, got: ${e}`,i.CommonErrors.InvalidArgument);if(n.w=e,void 0!==t){if("number"!=typeof t)throw new i.MongoshInvalidInputError("wtimeoutMS value must be a number, got: "+typeof t,i.CommonErrors.InvalidArgument);if(t<0)throw new i.MongoshInvalidInputError(`wtimeoutMS must be equal to or greather than 0, got: ${t}`,i.CommonErrors.InvalidArgument);n.wtimeout=t}if(void 0!==r){if("boolean"!=typeof r)throw new i.MongoshInvalidInputError("j value must be a boolean, got: "+typeof r,i.CommonErrors.InvalidArgument);n.j=r}}void 0!==n.w&&(s.w=n.w),void 0!==n.wtimeout&&(s.wtimeoutMS=n.wtimeout),void 0!==n.j&&(s.journal=n.j),void 0!==n.fsync&&(s.journal=!!n.fsync),await this._serviceProvider.resetConnectionOptions(s)}startSession(e={}){const t=["readConcern","writeConcern","readPreference","maxCommitTimeMS"],r={};for(const s of t)void 0!==e[s]&&(r[s]=e[s]);const s=["causalConsistency","snapshot"],n={};Object.keys(r).length>0&&(n.defaultTransactionOptions=r);for(const t of s)void 0!==e[t]&&(n[t]=e[t]);return new h.default(this,n,this._serviceProvider.startSession(n))}setCausalConsistency(){throw new i.MongoshUnimplementedError("It is not possible to set causal consistency for an entire connection due to the driver, use startSession({causalConsistency: <>}) instead.",i.CommonErrors.NotImplemented,(0,m.blockedByDriverMetadata)("Mongo.setCausalConsistency"))}isCausalConsistency(){throw new i.MongoshUnimplementedError("Causal consistency for drivers is set via Mongo.startSession and can be checked via session.getOptions. The default value is true",i.CommonErrors.NotImplemented,(0,m.blockedByDriverMetadata)("Mongo.isCausalConsistency"))}setSlaveOk(){throw new i.MongoshDeprecatedError("Setting slaveOk is deprecated, use setReadPref instead.")}async setSecondaryOk(){await this._instanceState.printDeprecationWarning('.setSecondaryOk() is deprecated. Use .setReadPref("primaryPreferred") instead');const e=this.getReadPrefMode();"primary"===e?(await this._instanceState.shellApi.print('Setting read preference from "primary" to "primaryPreferred"'),await this.setReadPref("primaryPreferred")):await this._instanceState.shellApi.print(`Leaving read preference unchanged (is already "${e}")`)}async watch(e=[],t={}){Array.isArray(e)||(t=e,e=[]),this._emitMongoApiCall("watch",{pipeline:e,options:t});const r=new f.default(this._serviceProvider.watch(e,t),(0,c.redactURICredentials)(this._uri),this);return t.resumeAfter||t.startAfter||t.startAtOperationTime||await r.tryNext(),this._instanceState.currentCursor=r,r}getClientEncryption(){if(!this._fleOptions)throw new i.MongoshInvalidInputError("Cannot call getClientEncryption() without field-level encryption options",g.ShellApiErrors.NotUsingFLE);return this._clientEncryption||(this._clientEncryption=new y.ClientEncryption(this)),this._clientEncryption}async getKeyVault(){return this._keyVault||(this._keyVault=new y.KeyVault(this.getClientEncryption()),await this._keyVault._init()),this._keyVault}async convertShardKeyToHashed(e){const t=[{$limit:1},{$project:{_id:{$toHashedIndexKey:{$literal:e}}}}];let r;for(const e of[()=>this.getDB("_fakeDbForMongoshCSKTH").aggregate([{$documents:[{}]},...t]),()=>this.getDB("admin").aggregate([{$documents:[{}]},...t]),()=>this.getDB("admin").getCollection("system.version").aggregate(t),()=>this.getDB("local").getCollection("oplog.rs").aggregate([{$collStats:{}},...t])]){try{r=await(await e()).next()}catch(e){continue}if(r)break}if(!r)throw new i.MongoshRuntimeError("Could not find a suitable way to run convertShardKeyToHashed() -- tried $documents and aggregating on admin.system.version and local.oplog.rs",i.CommonErrors.CommandFailed);return r._id}};s([(0,a.returnType)("Database")],E.prototype,"getDB",null),s([(0,a.returnType)("Collection")],E.prototype,"getCollection",null),s([a.returnsPromise,(0,a.apiVersions)([1])],E.prototype,"getDBs",null),s([a.returnsPromise,(0,a.apiVersions)([1])],E.prototype,"getDBNames",null),s([a.returnsPromise,(0,a.apiVersions)([1])],E.prototype,"show",null),s([a.returnsPromise],E.prototype,"setReadPref",null),s([a.returnsPromise],E.prototype,"setReadConcern",null),s([a.returnsPromise],E.prototype,"setWriteConcern",null),s([(0,a.topologies)([p.Topologies.ReplSet])],E.prototype,"startSession",null),s([a.deprecated],E.prototype,"setSlaveOk",null),s([a.deprecated,a.returnsPromise],E.prototype,"setSecondaryOk",null),s([(0,a.serverVersions)(["3.1.0",p.ServerVersions.latest]),(0,a.topologies)([p.Topologies.ReplSet,p.Topologies.Sharded]),(0,a.apiVersions)([1]),a.returnsPromise],E.prototype,"watch",null),s([(0,a.platforms)(["CLI"]),(0,a.serverVersions)(["4.2.0",p.ServerVersions.latest]),(0,a.returnType)("ClientEncryption")],E.prototype,"getClientEncryption",null),s([(0,a.platforms)(["CLI"]),(0,a.serverVersions)(["4.2.0",p.ServerVersions.latest]),(0,a.returnType)("KeyVault"),a.returnsPromise],E.prototype,"getKeyVault",null),s([a.returnsPromise],E.prototype,"convertShardKeyToHashed",null),E=s([a.shellApiClassDefault,(0,a.classPlatforms)(["CLI"])],E),t.default=E},59449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(1296),n=r(32589);t.default=class{constructor(){return this._mongo=new i,new Proxy(this,{get:(e,t)=>{if("_mongo"===t)return this._mongo;throw new s.MongoshInvalidInputError("No connected database",n.ShellApiErrors.NotConnected)}})}};class i{constructor(){return new Proxy(this,{get:()=>{throw new s.MongoshInvalidInputError("No connected database",n.ShellApiErrors.NotConnected)}})}}},18421:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(33335),i=r(26591),a=r(1296);let o=class extends n.ShellApiWithMongoClass{constructor(e){super(),this._collection=e}get _mongo(){return this._collection._mongo}[i.asPrintable](){return`PlanCache for collection ${this._collection._name}.`}async clear(){return await this._collection.runCommand("planCacheClear")}async clearPlansByQuery(e,t,r){const s={query:e};return t&&(s.projection=t),r&&(s.sort=r),await this._collection.runCommand("planCacheClear",s)}async list(e){const t=e||[],r=await this._collection.aggregate([{$planCacheStats:{}},...t]);return await r.toArray()}listQueryShapes(){throw new a.MongoshDeprecatedError("PlanCache.listQueryShapes was deprecated, please use PlanCache.list instead")}getPlansByQuery(){throw new a.MongoshDeprecatedError("PlanCache.getPlansByQuery was deprecated, please use PlanCache.list instead")}};s([n.returnsPromise,(0,n.apiVersions)([])],o.prototype,"clear",null),s([n.returnsPromise,(0,n.apiVersions)([])],o.prototype,"clearPlansByQuery",null),s([(0,n.serverVersions)(["4.4.0",i.ServerVersions.latest]),n.returnsPromise,(0,n.apiVersions)([])],o.prototype,"list",null),s([n.deprecated],o.prototype,"listQueryShapes",null),s([n.deprecated],o.prototype,"getPlansByQuery",null),o=s([n.shellApiClassDefault],o),t.default=o},97976:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(1296),i=r(59215),a=r(33335),o=r(26591),u=r(75671);let l=class extends a.ShellApiWithMongoClass{constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}async initiate(e={}){return this._emitReplicaSetApiCall("initiate",{config:e}),this._database._runAdminCommand({replSetInitiate:e})}async _getConfig(){try{const e=await this._database._runAdminCommand({replSetGetConfig:1});if(void 0===e.config)throw new n.MongoshRuntimeError("Documented returned from command replSetGetConfig does not contain 'config'",n.CommonErrors.CommandFailed);return e.config}catch(e){if("CommandNotFound"===(null==e?void 0:e.codeName)||"APIStrictError"===(null==e?void 0:e.codeName)){const e=await this._database.getSiblingDB("local").getCollection("system.replset").findOne();if(null===e)throw new n.MongoshRuntimeError("No documents in local.system.replset",n.CommonErrors.CommandFailed);return e}throw e}}async config(){return this._emitReplicaSetApiCall("config",{}),this._getConfig()}async conf(){return this._emitReplicaSetApiCall("conf",{}),this._getConfig()}async reconfig(e,t={}){var r;(0,u.assertArgsDefinedType)([e,t],["object",[void 0,"object"]],"ReplicaSet.reconfig"),this._emitReplicaSetApiCall("reconfig",{config:e,options:t});const s=await this._getConfig();e.version=s.version?s.version+1:1,null!==(r=e.protocolVersion)&&void 0!==r||(e.protocolVersion=s.protocolVersion);const n={replSetReconfig:e,...t};return await this._database._runAdminCommand(n)}async reconfigForPSASet(e,t,r={}){var s;(0,u.assertArgsDefinedType)([e,t,r],["number","object",[void 0,"object"]],"ReplicaSet.reconfigForPSASet"),this._emitReplicaSetApiCall("reconfigForPSASet",{newMemberIndex:e,config:t,options:r});const i=e=>this._instanceState.shellApi.print(e),a=null===(s=t.members)||void 0===s?void 0:s[e];if(!a)throw new n.MongoshInvalidInputError(`Node at index ${e} does not exist in the new config`,n.CommonErrors.InvalidArgument);if(1!==a.votes)throw new n.MongoshInvalidInputError(`Node at index ${e} must have { votes: 1 } in the new config (actual: { votes: ${a.votes} })`,n.CommonErrors.InvalidArgument);const o=await this._getConfig(),l=o.members.find((e=>e._id===a._id));if(l){if(l.votes)throw new n.MongoshInvalidInputError(`Node at index ${e} must have { votes: 0 } in the old config (actual: { votes: ${l.votes} })`,n.CommonErrors.InvalidArgument)}else o.members.find((e=>e.host===a.host))&&await i(`Warning: Node at index ${e} has { host: "${a.host}" }, which is also present in the old config, but with a different _id field.`);const c=a.priority;await i(`Running first reconfig to give member at index ${e} { votes: 1, priority: 0 }`),a.votes=1,a.priority=0;const p=await this.reconfig(t,r);if(0===c)return await i("No second reconfig necessary because .priority = 0"),p;await i(`Running second reconfig to give member at index ${e} { priority: ${c} }`),a.priority=c;try{return await this.reconfig(t,r)}catch(e){throw await i("Second reconfig did not succeed, giving up"),await i(`Attempted command: rs.reconfig(${JSON.stringify(t,null," ")}, ${JSON.stringify(r)})`),e}}async status(){return this._emitReplicaSetApiCall("status",{}),this._database._runAdminCommand({replSetGetStatus:1})}async isMaster(){return this._emitReplicaSetApiCall("isMaster",{}),this._database.getSiblingDB("admin").isMaster()}async hello(){return this._emitReplicaSetApiCall("hello",{}),this._database.getSiblingDB("admin").hello()}async printSecondaryReplicationInfo(){return this._emitReplicaSetApiCall("printSecondaryReplicationInfo",{}),this._database.printSecondaryReplicationInfo()}printSlaveReplicationInfo(){throw new n.MongoshDeprecatedError("printSlaveReplicationInfo has been deprecated. Use printSecondaryReplicationInfo instead")}async printReplicationInfo(){return this._emitReplicaSetApiCall("printReplicationInfo",{}),this._database.printReplicationInfo()}async add(e,t){(0,u.assertArgsDefinedType)([e,t],[["string","object"],[void 0,"boolean"]],"ReplicaSet.add"),this._emitReplicaSetApiCall("add",{hostport:e,arb:t});const r=await this._getConfig();r.version++;const s=Math.max(...r.members.map((e=>e._id)));let i;if("string"==typeof e)i={_id:s+1,host:e},t&&(i.arbiterOnly=!0);else{if(!0===t)throw new n.MongoshInvalidInputError(`Expected first parameter to be a host-and-port string of arbiter, but got ${JSON.stringify(e)}`,n.CommonErrors.InvalidArgument);i=e,null!==i._id&&void 0!==i._id||(i._id=s+1)}return r.members.push(i),this._database._runAdminCommand({replSetReconfig:r})}async addArb(e){return this._emitReplicaSetApiCall("addArb",{hostname:e}),this.add(e,!0)}async remove(e){(0,u.assertArgsDefinedType)([e],["string"],"ReplicaSet.remove"),this._emitReplicaSetApiCall("remove",{hostname:e});const t=await this._getConfig();t.version++;for(let r=0;r<t.members.length;r++)if(t.members[r].host===e)return t.members.splice(r,1),this._database._runAdminCommand({replSetReconfig:t});throw new n.MongoshInvalidInputError(`Couldn't find ${e} in ${JSON.stringify(t.members)}. Is ${e} a member of this replset?`,n.CommonErrors.InvalidArgument)}async freeze(e){return(0,u.assertArgsDefinedType)([e],["number"],"ReplicaSet.freeze"),this._emitReplicaSetApiCall("freeze",{secs:e}),this._database._runAdminCommand({replSetFreeze:e})}async stepDown(e,t){(0,u.assertArgsDefinedType)([e,t],[[void 0,"number"],[void 0,"number"]],"ReplicaSet.stepDown"),this._emitReplicaSetApiCall("stepDown",{stepdownSecs:e,catchUpSecs:t});const r={replSetStepDown:void 0===e?60:e};return void 0!==t&&(r.secondaryCatchUpPeriodSecs=t),this._database._runAdminCommand(r)}async syncFrom(e){return(0,u.assertArgsDefinedType)([e],["string"],"ReplicaSet.syncFrom"),this._emitReplicaSetApiCall("syncFrom",{host:e}),this._database._runAdminCommand({replSetSyncFrom:e})}async secondaryOk(){await this._mongo.setSecondaryOk()}[o.asPrintable](){return`ReplicaSet class connected to ${(0,i.redactURICredentials)(this._database._mongo._uri)} via db ${this._database._name}`}_emitReplicaSetApiCall(e,t={}){this._database._mongo._instanceState.emitApiCallWithArgs({method:e,class:"ReplicaSet",arguments:t})}};s([a.returnsPromise],l.prototype,"initiate",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"config",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"conf",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"reconfig",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"reconfigForPSASet",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"status",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"isMaster",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"hello",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"printSecondaryReplicationInfo",null),s([a.deprecated,(0,a.apiVersions)([])],l.prototype,"printSlaveReplicationInfo",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"printReplicationInfo",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"add",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"addArb",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"remove",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"freeze",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"stepDown",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"syncFrom",null),s([a.deprecated,a.returnsPromise],l.prototype,"secondaryOk",null),l=s([a.shellApiClassDefault],l),t.default=l},95961:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorIterationResult=t.DeleteResult=t.UpdateResult=t.InsertOneResult=t.InsertManyResult=t.BulkWriteResult=t.CommandResult=void 0;const n=r(33335),i=r(26591);let a=t.CommandResult=class extends n.ShellApiValueClass{constructor(e,t){super(),this.type=e,this.value=t,this[i.shellApiType]=e}[i.asPrintable](){return this.value}toJSON(){return this.value}};t.CommandResult=a=s([n.shellApiClassDefault],a);let o=t.BulkWriteResult=class extends n.ShellApiValueClass{constructor(e,t,r,s,n,i,a,o){super(),this.acknowledged=e,this.insertedCount=t,this.insertedIds=r,this.matchedCount=s,this.modifiedCount=n,this.deletedCount=i,this.upsertedCount=a,this.upsertedIds=o}};t.BulkWriteResult=o=s([n.shellApiClassDefault],o);let u=t.InsertManyResult=class extends n.ShellApiValueClass{constructor(e,t){super(),this.acknowledged=e,this.insertedIds=t}};t.InsertManyResult=u=s([n.shellApiClassDefault],u);let l=t.InsertOneResult=class extends n.ShellApiValueClass{constructor(e,t){super(),this.acknowledged=e,this.insertedId=t}};t.InsertOneResult=l=s([n.shellApiClassDefault],l);let c=t.UpdateResult=class extends n.ShellApiValueClass{constructor(e,t,r,s,n){super(),this.acknowledged=e,this.insertedId=n,this.matchedCount=t,this.modifiedCount=r,this.upsertedCount=s}};t.UpdateResult=c=s([n.shellApiClassDefault],c);let p=t.DeleteResult=class extends n.ShellApiValueClass{constructor(e,t){super(),this.acknowledged=e,this.deletedCount=t}};t.DeleteResult=p=s([n.shellApiClassDefault],p);let h=t.CursorIterationResult=class extends n.ShellApiValueClass{constructor(){super(),this.cursorHasMore=!0,this.documents=[]}};t.CursorIterationResult=h=s([n.shellApiClassDefault],h)},75161:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(33335),i=r(389);let a=class extends i.AbstractCursor{constructor(e,t){super(e,t)}};a=s([n.shellApiClassDefault],a),t.default=a},80211:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=r(26591),o=n(r(93500)),u=r(1296),l=r(75671);let c=class extends i.ShellApiWithMongoClass{constructor(e,t,r){super(),this._session=r,this._options=t,this._mongo=e,this._databases={},this.id=r.id}[a.asPrintable](){return this._session.id}getDatabase(e){if((0,l.assertArgsDefinedType)([e],["string"],"Session.getDatabase"),!(0,l.isValidDatabaseName)(e))throw new u.MongoshInvalidInputError(`Invalid database name: ${e}`,u.CommonErrors.InvalidArgument);return e in this._databases||(this._databases[e]=new o.default(this._mongo,e,this)),this._databases[e]}advanceOperationTime(e){this._session.advanceOperationTime(e)}advanceClusterTime(e){this._session.advanceClusterTime(e)}async endSession(){return await this._session.endSession()}hasEnded(){return this._session.hasEnded}getClusterTime(){return this._session.clusterTime}getOperationTime(){return this._session.operationTime}getOptions(){return this._options}startTransaction(e={}){return this._session.startTransaction(e)}async commitTransaction(){await this._session.commitTransaction()}async abortTransaction(){await this._session.abortTransaction()}async withTransaction(e,t={}){return(0,l.assertArgsDefinedType)([e,t],["function",[void 0,"object"]]),await this._session.withTransaction((async()=>await e()),t)}};s([i.returnsPromise],c.prototype,"endSession",null),s([i.returnsPromise],c.prototype,"commitTransaction",null),s([i.returnsPromise],c.prototype,"abortTransaction",null),s([i.returnsPromise],c.prototype,"withTransaction",null),c=s([i.shellApiClassDefault,(0,i.classPlatforms)(["CLI"])],c),t.default=c},13146:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=r(75671),o=r(26591),u=r(95961),l=r(59215),c=n(r(82328));let p=class extends i.ShellApiWithMongoClass{constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}[o.asPrintable](){return`Shard class connected to ${(0,l.redactURICredentials)(this._database._mongo._uri)} via db ${this._database._name}`}_emitShardApiCall(e,t={}){this._database._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Shard",arguments:t})}async enableSharding(e,t){(0,a.assertArgsDefinedType)([e,t],["string",[void 0,"string"]],"Shard.enableSharding"),this._emitShardApiCall("enableSharding",{database:e,primaryShard:t});const r={enableSharding:e};void 0!==t&&(r.primaryShard=t);try{return await this._database._runAdminCommand(r)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. Are you connected to mongos?`),e}}async commitReshardCollection(e){return(0,a.assertArgsDefinedType)([e],["string"],"Shard.commitReshardCollection"),this._emitShardApiCall("commitReshardCollection",{namespace:e}),await this._database._runAdminCommand({commitReshardCollection:e})}async abortReshardCollection(e){return(0,a.assertArgsDefinedType)([e],["string"],"Shard.abortReshardCollection"),this._emitShardApiCall("abortReshardCollection",{namespace:e}),await this._database._runAdminCommand({abortReshardCollection:e})}async shardCollection(e,t,r,s){return await this._runShardCollection("shardCollection",e,t,r,s)}async reshardCollection(e,t,r,s){return await this._runShardCollection("reshardCollection",e,t,r,s)}async _runShardCollection(e,t,r,s,n){(0,a.assertArgsDefinedType)([t,r,s,n],["string","object",[void 0,"boolean","object"],[void 0,"object"]],`Shard.${e}`),this._emitShardApiCall(e,{namespace:t,key:r,unique:s,options:n}),"object"==typeof s&&null!==s&&(n=s,s=void 0);const i={[e]:t,key:r};void 0!==s&&(i.unique=s);try{return await this._database._runAdminCommand({...i,...n})}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. Are you connected to mongos?`),e}}async status(e=!1,t){const r=await(0,a.getPrintableShardStatus)(null!=t?t:await(0,a.getConfigDB)(this._database),e);return new u.CommandResult("StatsResult",r)}async addShard(e){return(0,a.assertArgsDefinedType)([e],["string"],"Shard.addShard"),await(0,a.getConfigDB)(this._database),this._emitShardApiCall("addShard",{url:e}),this._database._runAdminCommand({addShard:e})}async addShardToZone(e,t){return(0,a.assertArgsDefinedType)([e,t],["string","string"],"Shard.addShardToZone"),this._emitShardApiCall("addShardToZone",{shard:e,zone:t}),await(0,a.getConfigDB)(this._database),this._database._runAdminCommand({addShardToZone:e,zone:t})}async addShardTag(e,t){(0,a.assertArgsDefinedType)([e,t],["string","string"],"Shard.addShardTag"),this._emitShardApiCall("addShardTag",{shard:e,tag:t});try{return await this.addShardToZone(e,t)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. This method aliases to addShardToZone which exists only for server versions > 3.4.`),e}}async updateZoneKeyRange(e,t,r,s){return(0,a.assertArgsDefinedType)([e,t,r,s],["string","object","object",!0],"Shard.updateZoneKeyRange"),this._emitShardApiCall("updateZoneKeyRange",{namespace:e,min:t,max:r,zone:s}),await(0,a.getConfigDB)(this._database),await this._database._runAdminCommand({updateZoneKeyRange:e,min:t,max:r,zone:s})}async addTagRange(e,t,r,s){(0,a.assertArgsDefinedType)([e,t,r,s],["string","object","object",!0],"Shard.addTagRange"),this._emitShardApiCall("addTagRange",{namespace:e,min:t,max:r,zone:s});try{return await this.updateZoneKeyRange(e,t,r,s)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. This method aliases to updateZoneKeyRange which exists only for server versions > 3.4.`),e}}async removeRangeFromZone(e,t,r){return(0,a.assertArgsDefinedType)([e,t,r],["string","object","object"],"Shard.removeRangeFromZone"),this._emitShardApiCall("removeRangeFromZone",{ns:e,min:t,max:r}),this.updateZoneKeyRange(e,t,r,null)}async removeTagRange(e,t,r){(0,a.assertArgsDefinedType)([e,t,r],["string","object","object"],"Shard.removeTagRange"),this._emitShardApiCall("removeTagRange",{ns:e,min:t,max:r});try{return await this.updateZoneKeyRange(e,t,r,null)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. This method aliases to updateZoneKeyRange which exists only for server versions > 3.4.`),e}}async removeShardFromZone(e,t){return(0,a.assertArgsDefinedType)([e,t],["string","string"],"Shard.removeShardFromZone"),this._emitShardApiCall("removeShardFromZone",{shard:e,zone:t}),await(0,a.getConfigDB)(this._database),await this._database._runAdminCommand({removeShardFromZone:e,zone:t})}async removeShardTag(e,t){(0,a.assertArgsDefinedType)([e,t],["string","string"],"Shard.removeShardTag"),this._emitShardApiCall("removeTagRange",{shard:e,tag:t});try{return await this.removeShardFromZone(e,t)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. This method aliases to removeShardFromZone which exists only for server versions > 3.4.`),e}}async enableAutoSplit(){this._instanceState.connectionInfo.buildInfo.version&&c.default.gte(this._instanceState.connectionInfo.buildInfo.version,"6.0.3")&&await this._instanceState.printDeprecationWarning("Starting in MongoDB 6.0.3, automatic chunk splitting is not performed. This is because of balancing policy improvements. Auto-splitting commands still exist, but do not perform an operation. For details, see Balancing Policy Changes: https://www.mongodb.com/docs/manual/release-notes/6.0/#balancing-policy-changes\n"),this._emitShardApiCall("enableAutoSplit",{});const e=await(0,a.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"autosplit"},{$set:{enabled:!0}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async disableAutoSplit(){this._instanceState.connectionInfo.buildInfo.version&&c.default.gte(this._instanceState.connectionInfo.buildInfo.version,"6.0.3")&&await this._instanceState.printDeprecationWarning("Starting in MongoDB 6.0.3, automatic chunk splitting is not performed. This is because of balancing policy improvements. Auto-splitting commands still exist, but do not perform an operation. For details, see Balancing Policy Changes: https://www.mongodb.com/docs/manual/release-notes/6.0/#balancing-policy-changes\n"),this._emitShardApiCall("disableAutoSplit",{});const e=await(0,a.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"autosplit"},{$set:{enabled:!1}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async splitAt(e,t){return(0,a.assertArgsDefinedType)([e,t],["string","object"],"Shard.splitAt"),this._emitShardApiCall("splitAt",{ns:e,query:t}),this._database._runAdminCommand({split:e,middle:t})}async splitFind(e,t){return(0,a.assertArgsDefinedType)([e,t],["string","object"],"Shard.splitFind"),this._emitShardApiCall("splitFind",{ns:e,query:t}),this._database._runAdminCommand({split:e,find:t})}async moveChunk(e,t,r){return(0,a.assertArgsDefinedType)([e,t,r],["string","object","string"],"Shard.moveChunk"),this._emitShardApiCall("moveChunk",{ns:e,query:t,destination:r}),this._database._runAdminCommand({moveChunk:e,find:t,to:r})}async balancerCollectionStatus(e){return(0,a.assertArgsDefinedType)([e],["string"],"Shard.balancerCollectionStatus"),this._emitShardApiCall("balancerCollectionStatus",{ns:e}),this._database._runAdminCommand({balancerCollectionStatus:e})}async enableBalancing(e){(0,a.assertArgsDefinedType)([e],["string"],"Shard.enableBalancing"),this._emitShardApiCall("enableBalancing",{ns:e});const t=await(0,a.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{noBalance:!1}},{writeConcern:{w:"majority",wtimeout:6e4}})}async disableBalancing(e){(0,a.assertArgsDefinedType)([e],["string"],"Shard.disableBalancing"),this._emitShardApiCall("disableBalancing",{ns:e});const t=await(0,a.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{noBalance:!0}},{writeConcern:{w:"majority",wtimeout:6e4}})}async getBalancerState(){this._emitShardApiCall("getBalancerState",{});const e=await(0,a.getConfigDB)(this._database),t=await e.getCollection("settings").findOne({_id:"balancer"});return null==t||!t.stopped}async isBalancerRunning(){return this._emitShardApiCall("isBalancerRunning",{}),await(0,a.getConfigDB)(this._database),this._database._runAdminCommand({balancerStatus:1})}async startBalancer(e=6e4){return(0,a.assertArgsDefinedType)([e],["number"],"Shard.startBalancer"),this._emitShardApiCall("startBalancer",{timeout:e}),this._database._runAdminCommand({balancerStart:1,maxTimeMS:e})}async stopBalancer(e=6e4){return(0,a.assertArgsDefinedType)([e],["number"],"Shard.stopBalancer"),this._emitShardApiCall("stopBalancer",{timeout:e}),this._database._runAdminCommand({balancerStop:1,maxTimeMS:e})}async setBalancerState(e){return(0,a.assertArgsDefinedType)([e],["boolean"],"Shard.setBalancerState"),this._emitShardApiCall("setBalancerState",{state:e}),e?this.startBalancer():this.stopBalancer()}async getShardedDataDistribution(e={}){var t;this._emitShardApiCall("getShardedDataDistribution",{});const r=await this._database.getSiblingDB("admin").aggregate([{$shardedDataDistribution:e}]);try{await r.hasNext()}catch(e){throw 40324===(null===(t=e.code)||void 0===t?void 0:t.valueOf())&&(e.message=`sh.getShardedDataDistribution only works on mongos and MongoDB server versions greater than 6.0.3 [Original Error: ${e.message}]`),e}return r}async startAutoMerger(){this._emitShardApiCall("startAutoMerger",{});const e=await(0,a.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"automerge"},{$set:{enabled:!0}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async stopAutoMerger(){this._emitShardApiCall("stopAutoMerger",{});const e=await(0,a.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"automerge"},{$set:{enabled:!1}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async isAutoMergerEnabled(){this._emitShardApiCall("isAutoMergerEnabled",{});const e=await(0,a.getConfigDB)(this._database),t=await e.getCollection("settings").findOne({_id:"automerge"});return null==t||t.enabled}async disableAutoMerger(e){(0,a.assertArgsDefinedType)([e],["string"],"Shard.disableAutoMerger"),this._emitShardApiCall("disableAutoMerger",{ns:e});const t=await(0,a.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{enableAutoMerge:!1}},{writeConcern:{w:"majority",wtimeout:6e4}})}async enableAutoMerger(e){(0,a.assertArgsDefinedType)([e],["string"],"Shard.enableAutoMerger"),this._emitShardApiCall("enableAutoMerger",{ns:e});const t=await(0,a.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$unset:{enableAutoMerge:1}},{writeConcern:{w:"majority",wtimeout:6e4}})}async checkMetadataConsistency(e={}){return this._emitShardApiCall("checkMetadataConsistency",{options:e}),this._database._runAdminCursorCommand({checkMetadataConsistency:1})}};s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"enableSharding",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],p.prototype,"commitReshardCollection",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],p.prototype,"abortReshardCollection",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"shardCollection",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],p.prototype,"reshardCollection",null),s([i.returnsPromise,(0,i.apiVersions)([1])],p.prototype,"status",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"addShard",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"addShardToZone",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"addShardTag",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"updateZoneKeyRange",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"addTagRange",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"removeRangeFromZone",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"removeTagRange",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"removeShardFromZone",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"removeShardTag",null),s([i.returnsPromise,(0,i.apiVersions)([1]),(0,i.serverVersions)(["3.4.0","6.0.2"])],p.prototype,"enableAutoSplit",null),s([i.returnsPromise,(0,i.apiVersions)([1]),(0,i.serverVersions)(["3.4.0","6.0.2"])],p.prototype,"disableAutoSplit",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"splitAt",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"splitFind",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"moveChunk",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["4.4.0",o.ServerVersions.latest])],p.prototype,"balancerCollectionStatus",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"enableBalancing",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"disableBalancing",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"getBalancerState",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"isBalancerRunning",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"startBalancer",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"stopBalancer",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"setBalancerState",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["6.0.3",o.ServerVersions.latest]),(0,i.returnType)("AggregationCursor")],p.prototype,"getShardedDataDistribution",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"startAutoMerger",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"stopAutoMerger",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"isAutoMergerEnabled",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"disableAutoMerger",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"enableAutoMerger",null),s([i.returnsPromise,(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"checkMetadataConsistency",null),p=s([i.shellApiClassDefault],p),t.default=p},59418:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=r(26591),o=n(r(13599)),u=r(95961),l=r(75671),c=r(63292),p=r(1296),h=r(65505),d=r(21764),f=r(55315),m=r(45347),y=n(r(30102)),g=Symbol.for("@@mongosh.instanceState"),b=Symbol.for("@@mongosh.loadCallNestingLevel");let E=class extends i.ShellApiClass{constructor(e){super(),this._instanceState=e,this.defaults=Object.freeze(new m.ShellUserConfig)}async set(e,t){var r,s;(0,l.assertArgsDefinedType)([e],["string"],"config.set");const{evaluationListener:n}=this._instanceState,i=(await this._allKeys()).includes(e);if(i){const s=await(null===(r=n.validateConfig)||void 0===r?void 0:r.call(n,e,t));if(s)return`Cannot set option "${e}": ${s}`}return"success"!==(i&&await(null===(s=n.setConfig)||void 0===s?void 0:s.call(n,e,t)))?`Option "${e}" is not available in this environment`:`Setting "${e}" has been changed`}async get(e){var t,r;(0,l.assertArgsDefinedType)([e],["string"],"config.get");const{evaluationListener:s}=this._instanceState;return null!==(r=await(null===(t=s.getConfig)||void 0===t?void 0:t.call(s,e)))&&void 0!==r?r:this.defaults[e]}async reset(e){var t;(0,l.assertArgsDefinedType)([e],["string"],"config.reset");const{evaluationListener:r}=this._instanceState;return"success"!==await(null===(t=r.resetConfig)||void 0===t?void 0:t.call(r,e))?`Option "${e}" cannot be changed in this environment`:`Setting "${e}" has been reset to its default value`}async _allKeys(){var e,t;const{evaluationListener:r}=this._instanceState;return null!==(t=await(null===(e=r.listConfigOptions)||void 0===e?void 0:e.call(r)))&&void 0!==t?t:Object.keys(this.defaults)}async[a.asPrintable](){return new Map(await Promise.all((await this._allKeys()).map((async e=>[e,await this.get(e)]))))}};async function A(e,t){if(!(t.length>2))return"d"===t[1]?["databases"]:["databases","dbs","collections","tables","profile","users","roles","log","logs","startupWarnings","automationNotices","nonGenuineMongoDBCheck"].filter((e=>{var r;return e.startsWith(null!==(r=t[1])&&void 0!==r?r:"")}))}s([i.returnsPromise],E.prototype,"set",null),s([i.returnsPromise],E.prototype,"get",null),s([i.returnsPromise],E.prototype,"reset",null),E=s([i.shellApiClassDefault],E);let x=class extends i.ShellApiClass{constructor(e){super(),this[g]=e,this[b]=0,this.DBQuery=new h.DBQuery(e),this.config=new E(e)}get _instanceState(){return this[g]}get loadCallNestingLevel(){return this[b]}set loadCallNestingLevel(e){this[b]=e}use(e){return this._instanceState.currentDb._mongo.use(e)}async show(e,t){return await this._instanceState.currentDb._mongo.show(e,t)}async _untrackedShow(e,t){return await this._instanceState.currentDb._mongo.show(e,t,!1)}async exit(e){var t,r;throw(0,l.assertArgsDefinedType)([e],[[void 0,"number"]],"exit"),(0,l.assertCLI)(this._instanceState.initialServiceProvider.platform,"the exit/quit commands"),await this._instanceState.close(!0),await(null===(r=(t=this._instanceState.evaluationListener).onExit)||void 0===r?void 0:r.call(t,e)),new p.MongoshInternalError(".onExit listener returned")}async quit(e){return await this.exit(e)}async Mongo(e,t,r){(0,l.assertCLI)(this._instanceState.initialServiceProvider.platform,"new Mongo connections");const s=new o.default(this._instanceState,e,t,r);return await s.connect(),this._instanceState.mongos.push(s),s}async connect(e,t,r){(0,l.assertArgsDefinedType)([e,t,r],["string",[void 0,"string"],[void 0,"string"]],"connect"),(0,l.assertCLI)(this._instanceState.initialServiceProvider.platform,"new Mongo connections");const s=new o.default(this._instanceState,e);await s.connect(t,r),this._instanceState.mongos.push(s);const n=s._serviceProvider.initialDb||c.DEFAULT_DB;return s.getDB(n)}async it(){return this._instanceState.currentCursor?await this._instanceState.currentCursor._it():new u.CursorIterationResult}version(){return r(57518).i8}async load(e){if((0,l.assertArgsDefinedType)([e],["string"],"load"),!this._instanceState.evaluationListener.onLoad)throw new p.MongoshUnimplementedError("load is not currently implemented for this platform",p.CommonErrors.NotImplemented);this._instanceState.messageBus.emit("mongosh:api-load-file",{nested:this.loadCallNestingLevel>0,filename:e});const{resolvedFilename:t,evaluate:r}=await this._instanceState.evaluationListener.onLoad(e),s=this._instanceState.context,n=s.__filename;s.__filename=t,s.__dirname=(0,f.dirname)(t),this.loadCallNestingLevel++;try{await r()}finally{this.loadCallNestingLevel--,n?(s.__filename=n,s.__dirname=(0,f.dirname)(n)):(delete s.__filename,delete s.__dirname)}return!0}async enableTelemetry(){var e,t;if("success"===await(null===(t=(e=this._instanceState.evaluationListener).setConfig)||void 0===t?void 0:t.call(e,"enableTelemetry",!0)))return y.default.__("cli-repl.cli-repl.enabledTelemetry")}async disableTelemetry(){var e,t;if("success"===await(null===(t=(e=this._instanceState.evaluationListener).setConfig)||void 0===t?void 0:t.call(e,"enableTelemetry",!1)))return y.default.__("cli-repl.cli-repl.disabledTelemetry")}async passwordPrompt(){const{evaluationListener:e}=this._instanceState;if(!e.onPrompt)throw new p.MongoshUnimplementedError("passwordPrompt() is not available in this shell",p.CommonErrors.NotImplemented);return await e.onPrompt("Enter password","password")}async sleep(e){return await(0,d.promisify)(setTimeout)(e)}async _print(e,t){var r;const{evaluationListener:s}=this._instanceState,n=await Promise.all(e.map((e=>(0,i.toShellResult)(e))));await(null===(r=s.onPrint)||void 0===r?void 0:r.call(s,n,t))}async print(...e){await this._print(e,"print")}async printjson(...e){await this._print(e,"printjson")}async convertShardKeyToHashed(e){return this._instanceState.currentDb._mongo.convertShardKeyToHashed(e)}async cls(){var e;const{evaluationListener:t}=this._instanceState;await(null===(e=t.onClearCommand)||void 0===e?void 0:e.call(t))}isInteractive(){return this._instanceState.isInteractive}};s([i.directShellCommand,(0,i.shellCommandCompleter)((async function(e,t){var r;if(!(t.length>2))return await e.getDatabaseCompletions(null!==(r=t[1])&&void 0!==r?r:"")}))],x.prototype,"use",null),s([i.directShellCommand,i.returnsPromise,(0,i.shellCommandCompleter)(A)],x.prototype,"show",null),s([i.directShellCommand,i.returnsPromise,(0,i.shellCommandCompleter)(A)],x.prototype,"_untrackedShow",null),s([i.directShellCommand,i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"exit",null),s([i.directShellCommand,i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"quit",null),s([i.returnsPromise,(0,i.returnType)("Mongo"),(0,i.platforms)(["CLI"])],x.prototype,"Mongo",null),s([i.returnsPromise,(0,i.returnType)("Database"),(0,i.platforms)(["CLI"])],x.prototype,"connect",null),s([i.directShellCommand,i.returnsPromise],x.prototype,"it",null),s([i.returnsPromise],x.prototype,"load",null),s([i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"enableTelemetry",null),s([i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"disableTelemetry",null),s([i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"passwordPrompt",null),s([i.returnsPromise],x.prototype,"sleep",null),s([i.returnsPromise],x.prototype,"print",null),s([i.returnsPromise],x.prototype,"printjson",null),s([i.returnsPromise],x.prototype,"convertShardKeyToHashed",null),s([i.directShellCommand,i.returnsPromise],x.prototype,"cls",null),x=s([i.shellApiClassDefault],x),t.default=x},24599:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(26591),i=s(r(91283)),a=r(63292),o=r(1296),u=r(75671),l=r(84770);function c(e){const t=`shell-api.classes.${e}.help`,r={help:`${t}.description`,example:`${t}.example`,docs:`${t}.link`,attr:[]};return new i.default(r)}t.default=function(e,t){void 0===e&&(e=a.bson);const r={};["Binary","Code","DBRef","Decimal128","Double","Int32","Long","MaxKey","MinKey","ObjectId","Timestamp","BSONSymbol","BSONRegExp"].forEach((t=>{if(!(t in e))throw new o.MongoshInternalError(`${t} does not exist in provided BSON package.`);const s=e[t].prototype;s.serverVersions=n.ALL_SERVER_VERSIONS,s.platforms=n.ALL_PLATFORMS,s.topologies=n.ALL_TOPOLOGIES;const i=c(t);r[t]=i,s.help=()=>i,Object.setPrototypeOf(s.help,i)})),e.BSONSymbol.prototype.serverVersions=[n.ServerVersions.earliest,"1.6.0"],e.BSONSymbol.prototype.deprecated=!0;const s={DBRef:(0,u.assignAll)((function(t,r,s,n){return(0,u.assertArgsDefinedType)([t,r,s],["string",!0,[void 0,"string"],[void 0,"object"]],"DBRef"),new e.DBRef(t,r,s,n)}),(0,u.pickWithExactKeyMatch)(e.DBRef,["prototype"])),bsonsize:function(t){return(0,u.assertArgsDefinedType)([t],["object"],"bsonsize"),e.calculateObjectSize(t)},MaxKey:(0,u.assignAll)((function(){return new e.MaxKey}),(0,u.pickWithExactKeyMatch)(e.MaxKey,["prototype"]),{toBSON:()=>new e.MaxKey}),MinKey:(0,u.assignAll)((function(){return new e.MinKey}),(0,u.pickWithExactKeyMatch)(e.MinKey,["prototype"]),{toBSON:()=>new e.MinKey}),ObjectId:(0,u.assignAll)((function(t){return(0,u.assertArgsDefinedType)([t],[[void 0,"string","number","object"]],"ObjectId"),new e.ObjectId(t)}),(0,u.pickWithExactKeyMatch)(e.ObjectId,["prototype","cacheHexString","generate","createFromTime","createFromHexString","createFromBase64","isValid"])),Timestamp:(0,u.assignAll)((function(t,r){return(0,u.assertArgsDefinedType)([t,r],[["number","object",void 0],[void 0,"number"]],"Timestamp"),"object"==typeof t&&null!==t&&"t"in t&&"i"in t?new e.Timestamp(t):void 0!==r||"number"==typeof t?new e.Timestamp({t,i:null!=r?r:0}):new e.Timestamp(t)}),(0,u.pickWithExactKeyMatch)(e.Timestamp,["prototype","fromInt","fromNumber","fromBits","fromString","MAX_VALUE"])),Code:(0,u.assignAll)((function(t="",r){return(0,u.assertArgsDefinedType)([t,r],[[void 0,"string","function"],[void 0,"object"]],"Code"),new e.Code(t,r)}),(0,u.pickWithExactKeyMatch)(e.Code,["prototype"])),NumberDecimal:(0,u.assignAll)((function(r="0"){return(0,u.assertArgsDefinedType)([r],[["string","number","bson:Long","bson:Int32","bson:Decimal128"]],"NumberDecimal"),"number"==typeof r&&t("NumberDecimal: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead"),e.Decimal128.fromString(`${r}`)}),{prototype:e.Decimal128.prototype}),NumberInt:(0,u.assignAll)((function(t="0"){return null!=t||(t="0"),(0,u.assertArgsDefinedType)([t],[["string","number","bson:Long","bson:Int32"]],"NumberInt"),new e.Int32(parseInt(`${t}`,10))}),{prototype:e.Int32.prototype}),NumberLong:(0,u.assignAll)((function(r="0"){return null!=r||(r="0"),(0,u.assertArgsDefinedType)([r],[["string","number","bson:Long","bson:Int32"]],"NumberLong"),"number"==typeof r?(t("NumberLong: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead"),e.Long.fromNumber(r)):e.Long.fromString(`${r}`)}),{prototype:e.Long.prototype}),ISODate:function(e){e||(e=(new Date).toISOString());const t=/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/.exec(e);if(null!==t&&void 0!==t.groups){const{Y:e,M:r,D:s,h:n,m:i,s:a,ms:o,tz:u}=t.groups,l=new Date(`${e}-${r}-${s}T${n||"00"}:${i||"00"}:${a||"00"}.${o||"000"}${u||"Z"}`);if(l.getTime()>=-621672192e5&&l.getTime()<=0xe677d21fdbff)return l}throw new o.MongoshInvalidInputError(`${JSON.stringify(e)} is not a valid ISODate`,o.CommonErrors.InvalidArgument)},BinData:(0,u.assignAll)((function(t,r){(0,u.assertArgsDefinedType)([t,r],["number","string"],"BinData");const s=Buffer.from(r,"base64");return new e.Binary(s,t)}),{prototype:e.Binary.prototype}),HexData:(0,u.assignAll)((function(t,r){(0,u.assertArgsDefinedType)([t,r],["number","string"],"HexData");const s=Buffer.from(r,"hex");return new e.Binary(s,t)}),{prototype:e.Binary.prototype}),UUID:(0,u.assignAll)((function(t){if(void 0===t){const e=(0,l.randomBytes)(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128,t=e.toString("hex")}(0,u.assertArgsDefinedType)([t],["string"],"UUID");const r=Buffer.from(t.replace(/-/g,""),"hex");return new e.Binary(r,e.Binary.SUBTYPE_UUID)}),{prototype:e.Binary.prototype}),MD5:(0,u.assignAll)((function(t){(0,u.assertArgsDefinedType)([t],["string"],"MD5");const r=Buffer.from(t,"hex");return new e.Binary(r,e.Binary.SUBTYPE_MD5)}),{prototype:e.Binary.prototype}),Decimal128:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Decimal128),(0,u.pickWithExactKeyMatch)(e.Decimal128,["prototype","fromString","fromStringWithRounding"])),BSONSymbol:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.BSONSymbol),(0,u.pickWithExactKeyMatch)(e.BSONSymbol,["prototype"])),Int32:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Int32),(0,u.pickWithExactKeyMatch)(e.Int32,["prototype"])),Long:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Long),(0,u.pickWithExactKeyMatch)(e.Long,["prototype","fromValue","isLong","fromBytesBE","fromBytesLE","fromBytes","fromString","fromBigInt","fromNumber","fromInt","fromBits","MIN_VALUE","MAX_VALUE","NEG_ONE","UONE","ONE","UZERO","ZERO","MAX_UNSIGNED_VALUE","TWO_PWR_24"])),Binary:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Binary),(0,u.pickWithExactKeyMatch)(e.Binary,["prototype","createFromBase64","createFromHexString","BUFFER_SIZE","SUBTYPE_DEFAULT","SUBTYPE_FUNCTION","SUBTYPE_BYTE_ARRAY","SUBTYPE_UUID_OLD","SUBTYPE_UUID","SUBTYPE_MD5","SUBTYPE_ENCRYPTED","SUBTYPE_COLUMN","SUBTYPE_USER_DEFINED"])),Double:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Double),(0,u.pickWithExactKeyMatch)(e.Double,["prototype"])),BSONRegExp:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.BSONRegExp),(0,u.pickWithExactKeyMatch)(e.BSONRegExp,["prototype","parseOptions"])),EJSON:(0,u.pickWithExactKeyMatch)(e.EJSON,["parse","serialize","stringify","deserialize"])};for(const e of Object.keys(s)){const t=r[e]||c(e);s[e].help=()=>t,Object.setPrototypeOf(s[e].help,t)}return s}},49040:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(1296),i=r(63292),a=r(17702),o=s(r(43808)),u=r(33335),l=r(26591),c=r(32589),p=r(62294),h=r(7764),d=r(52277),f=s(r(59449)),m=s(r(24599)),y=r(15200);t.default=class{constructor(e,t=new a.EventEmitter,r={}){if(this.displayBatchSizeFromDBQuery=void 0,this.isInteractive=!1,this.apiCallDepth=0,this.warningsShown=new Set,this.interrupted=new h.InterruptFlag,this.plugins=[new d.TransformMongoErrorPlugin],this.alreadyTransformedErrors=new WeakMap,this.initialServiceProvider=e,this.messageBus=t,this.shellApi=new p.ShellApi(this),this.shellBson=(0,m.default)(e.bsonLibrary,(e=>{this.shellApi.print(`Warning: ${e}`)})),this.mongos=[],this.connectionInfo={buildInfo:{}},r.nodb)this.currentDb=new f.default;else{const t=new p.Mongo(this,void 0,void 0,void 0,e);this.mongos.push(t),this.currentDb=t.getDB(e.initialDb||i.DEFAULT_DB)}this.currentCursor=null,this.context={},this.cliOptions=r,this.evaluationListener={}}async fetchConnectionInfo(){if(!this.cliOptions.nodb){this.connectionInfo=await this.currentServiceProvider.getConnectionInfo();const e=this.apiVersionInfo();this.messageBus.emit("mongosh:connect",{...this.connectionInfo.extraInfo,api_version:null==e?void 0:e.version,api_strict:null==e?void 0:e.strict,api_deprecation_errors:null==e?void 0:e.deprecationErrors,uri:(0,o.default)(this.connectionInfo.extraInfo.uri)})}}async close(e){for(const t of[...this.mongos])await t.close(e)}setDbFunc(e){return this.currentDb=e,this.context.rs=new p.ReplicaSet(this.currentDb),this.context.sh=new p.Shard(this.currentDb),this.context.sp=y.Streams.newInstance(this.currentDb),this.fetchConnectionInfo().catch((e=>this.messageBus.emit("mongosh:error",e,"shell-api"))),this.currentDb._getCollectionNamesForCompletion().catch((e=>this.messageBus.emit("mongosh:error",e,"shell-api"))),this.currentDb._mongo._getDatabaseNamesForCompletion().catch((e=>this.messageBus.emit("mongosh:error",e,"shell-api"))),this.currentCursor=null,e}setCtx(e){this.context=e,Object.assign(e,this.shellApi);for(const t of Object.getOwnPropertyNames(p.ShellApi.prototype)){const{shellApi:r}=this;u.toIgnore.concat(["help"]).includes(t)||"function"!=typeof r[t]||(e[t]=function(...e){return r[t](...e)},e[t].help=r[t].help)}e.help=this.shellApi.help,Object.assign(e,this.shellBson),void 0===e.console&&(e.console={});for(const t of["log","warn","info","error"])e.console[t]=(...t)=>e.print(...t);e.console.clear=e.cls,e.rs=new p.ReplicaSet(this.currentDb),e.sh=new p.Shard(this.currentDb),e.sp=y.Streams.newInstance(this.currentDb);"JavaShell"===this.initialServiceProvider.platform?e.db=this.setDbFunc(this.currentDb):Object.defineProperty(e,"db",{configurable:!0,set:e=>{if("Database"!==(0,p.getShellApiType)(e))throw new n.MongoshInvalidInputError("Cannot reassign 'db' to non-Database type",n.CommonErrors.InvalidOperation);return this.setDbFunc(e)},get:()=>this.currentDb}),this.messageBus.emit("mongosh:setCtx",{method:"setCtx",arguments:{}})}get currentServiceProvider(){try{return this.currentDb._mongo._serviceProvider}catch(e){if((null==e?void 0:e.code)===c.ShellApiErrors.NotConnected)return this.initialServiceProvider;throw e}}emitApiCallWithArgs(e){this.messageBus.emit("mongosh:api-call-with-arguments",e)}emitApiCall(e){this.messageBus.emit("mongosh:api-call",{...e,callDepth:this.apiCallDepth})}setEvaluationListener(e){this.evaluationListener=e}getAutocompleteParameters(){return{topology:()=>{var e;let t;const r=null===(e=this.currentServiceProvider.getTopology())||void 0===e?void 0:e.description;switch(null==r?void 0:r.type){case"ReplicaSetNoPrimary":case"ReplicaSetWithPrimary":t=l.Topologies.ReplSet;break;case"Sharded":t=l.Topologies.Sharded;break;case"LoadBalanced":t=l.Topologies.LoadBalanced;break;default:if(t=l.Topologies.Standalone,1===r.servers.size){const[e]=r.servers.values();switch(e.type){case"Mongos":t=l.Topologies.Sharded;break;case"PossiblePrimary":case"RSPrimary":case"RSSecondary":case"RSArbiter":case"RSOther":case"RSGhost":t=l.Topologies.ReplSet}}}return t},apiVersionInfo:()=>this.apiVersionInfo(),connectionInfo:()=>this.connectionInfo.extraInfo,getCollectionCompletionsForCurrentDb:async e=>{try{return(await this.currentDb._getCollectionNamesForCompletion()).filter((t=>t.toLowerCase().startsWith(e.toLowerCase())))}catch(e){if((null==e?void 0:e.code)===c.ShellApiErrors.NotConnected||"Unauthorized"===(null==e?void 0:e.codeName))return[];throw e}},getDatabaseCompletions:async e=>{try{return(await this.currentDb._mongo._getDatabaseNamesForCompletion()).filter((t=>t.toLowerCase().startsWith(e.toLowerCase())))}catch(e){if((null==e?void 0:e.code)===c.ShellApiErrors.NotConnected||"Unauthorized"===(null==e?void 0:e.codeName))return[];throw e}}}}apiVersionInfo(){var e,t;const{serverApi:r}=null!==(t=null===(e=this.currentServiceProvider.getRawClient())||void 0===e?void 0:e.options)&&void 0!==t?t:{};return(null==r?void 0:r.version)?{strict:!1,deprecationErrors:!1,...r}:void 0}async onInterruptExecution(){return await this.interrupted.set(),this.currentCursor=null,this.resumeMongosAfterInterrupt=await Promise.all(this.mongos.map((async e=>{try{return{mongo:e,resume:await e._suspend()}}catch(t){return{mongo:e,resume:null}}}))),!this.resumeMongosAfterInterrupt.find((e=>null===e.resume))}async onResumeExecution(){var e,t;const r=null!==(t=null===(e=this.resumeMongosAfterInterrupt)||void 0===e?void 0:e.map((async e=>{if(!this.mongos.find((t=>t===e.mongo)))return!0;if(null===e.resume)return!1;try{return await e.resume(),!0}catch(e){return!1}})))&&void 0!==t?t:[];this.resumeMongosAfterInterrupt=void 0;const s=await Promise.all(r);return this.interrupted.reset(),!s.find((e=>!1===e))}async getDefaultPrompt(){var e,t;if(null===(t=null===(e=this.connectionInfo)||void 0===e?void 0:e.extraInfo)||void 0===t?void 0:t.is_stream)return"AtlasStreamProcessing> ";const r=this.getDefaultPromptPrefix(),s=this.getTopologySpecificPrompt();let n="";try{n=this.currentDb.getName()}catch(e){}return`${[r,s,n].filter(Boolean).join(" ")}> `}getDefaultPromptPrefix(){var e,t,r,s;const n=null===(e=this.connectionInfo)||void 0===e?void 0:e.extraInfo;return(null==n?void 0:n.is_data_federation)?"AtlasDataFederation":(null==n?void 0:n.is_local_atlas)?"AtlasLocalDev":(null==n?void 0:n.is_atlas)?"Atlas":(null==n?void 0:n.is_enterprise)||(null===(s=null===(r=null===(t=this.connectionInfo)||void 0===t?void 0:t.buildInfo)||void 0===r?void 0:r.modules)||void 0===s?void 0:s.indexOf("enterprise"))>=0?"Enterprise":""}getTopologySpecificPrompt(){var e,t,r,s;const n=null===(e=this.currentServiceProvider.getTopology())||void 0===e?void 0:e.description;if(!n)return"";let i=n.setName,a="";switch(n.type){case"Single":const e=this.getTopologySinglePrompt(n);i=null!==(t=null==e?void 0:e.replicaSet)&&void 0!==t?t:i,a=(null==e?void 0:e.serverType)?`[direct: ${e.serverType}]`:"";break;case"ReplicaSetNoPrimary":a="[secondary]";break;case"ReplicaSetWithPrimary":a="[primary]";break;case"Sharded":a=(null===(s=null===(r=this.connectionInfo)||void 0===r?void 0:r.extraInfo)||void 0===s?void 0:s.atlas_version)?"":"[mongos]";break;default:return""}return`${i?`${i} `:""}${a}`}getTopologySinglePrompt(e){var t;if(1!==(null===(t=e.servers)||void 0===t?void 0:t.size))return;const[r]=e.servers.values();let s;switch(r.type){case"Mongos":s="mongos";break;case"RSPrimary":s="primary";break;case"RSSecondary":s="secondary";break;case"RSArbiter":s="arbiter";break;case"RSOther":s="other";break;default:s=""}return{replicaSet:r.setName,serverType:s}}registerPlugin(e){this.plugins.push(e)}transformError(e){if("[object Error]"===Object.prototype.toString.call(e)){if(this.alreadyTransformedErrors.has(e))return this.alreadyTransformedErrors.get(e);const t=e;for(const t of this.plugins)t.transformError&&(e=t.transformError(e));this.alreadyTransformedErrors.set(t,e)}return e}async printDeprecationWarning(e){this.warningsShown.has(e)||(this.warningsShown.add(e),this.context.print?await this.context.print.call(this.shellApi,`DeprecationWarning: ${e}`):await this.shellApi.print(`DeprecationWarning: ${e}`))}async printWarning(e){this.warningsShown.has(e)||(this.warningsShown.add(e),this.context.print?await this.context.print.call(this.shellApi,`Warning: ${e}`):await this.shellApi.print(`Warning: ${e}`))}}},34050:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(26591),i=r(33335);let a=class extends i.ShellApiWithMongoClass{constructor(e,t){super(),this._streams=e,this.name=t}get _mongo(){return this._streams._mongo}[n.asPrintable](){return`Atlas Stream Processor: ${this.name}`}async start(){return await this._streams._runStreamCommand({startStreamProcessor:this.name})}async stop(){return await this._streams._runStreamCommand({stopStreamProcessor:this.name})}async drop(){return this._drop()}async _drop(){return await this._streams._runStreamCommand({dropStreamProcessor:this.name})}async stats(e={}){return this._streams._runStreamCommand({getStreamProcessorStats:this.name,...e})}async sample(e={}){const t=await this._streams._runStreamCommand({startSampleStreamProcessor:this.name,...e});return 1!==t.ok?t:this._sampleFrom(t.cursorId)}async _sampleFrom(e){let t=e;for(;"0"!==String(t);){const e=await this._streams._runStreamCommand({getMoreSampleStreamProcessor:this.name,cursorId:t});if(1!==e.ok)return e;t=e.cursorId;for(const t of e.messages)await this._instanceState.shellApi.printjson(t);if(!e.messages.length){const e=this._instanceState.interrupted.asPromise();try{await Promise.race([this._instanceState.shellApi.sleep(1e3),e.promise])}finally{e.destroy()}}}}};s([i.returnsPromise],a.prototype,"start",null),s([i.returnsPromise],a.prototype,"stop",null),s([i.returnsPromise],a.prototype,"drop",null),s([i.returnsPromise],a.prototype,"stats",null),s([i.returnsPromise],a.prototype,"sample",null),a=s([i.shellApiClassDefault],a),t.default=a},15200:function(e,t,r){"use strict";var s,n=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Streams=void 0;const a=r(1296),o=r(33335),u=i(r(34050)),l=r(26591);let c=t.Streams=s=class extends o.ShellApiWithMongoClass{static newInstance(e){return new Proxy(new s(e),{get(e,t){const r=e[t];return void 0!==r?r:"string"!=typeof t||t.startsWith("_")?void 0:e.getProcessor(t)}})}constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}[l.asPrintable](){return"Atlas Stream Processing"}getProcessor(e){return new u.default(this,e)}async process(e,t){if(!Array.isArray(e)||!e.length)throw new a.MongoshInvalidInputError("Invalid pipeline",a.CommonErrors.InvalidArgument,e);const r=await this._runStreamCommand({processStreamProcessor:e,...t?{options:t}:{}});if(1!==r.ok)return r;const{name:s,cursorId:n}=r,i=this.getProcessor(s);async function o(){try{await i._drop()}catch(e){}}return await this._instanceState.interrupted.withOverrideInterruptBehavior((()=>i._sampleFrom(n)),o),o()}async createStreamProcessor(e,t,r){if("string"!=typeof e||""===e.trim())throw new a.MongoshInvalidInputError(`Invalid processor name: ${e}`,a.CommonErrors.InvalidArgument);if(!Array.isArray(t)||!t.length)throw new a.MongoshInvalidInputError("Invalid pipeline",a.CommonErrors.InvalidArgument,t);const s=await this._runStreamCommand({createStreamProcessor:e,pipeline:t,...r?{options:r}:{}});return 1!==s.ok?s:this.getProcessor(e)}async listStreamProcessors(e){const t=await this._runStreamCommand({listStreamProcessors:1,filter:e});if(1!==t.ok)return t;const r=t.streamProcessors,s=r.map((e=>this.getProcessor(e.name)));return Object.defineProperties(s,{[l.asPrintable]:{value:()=>r},[l.shellApiType]:{value:"StreamsListResult"}})}async listConnections(e){const t=await this._runStreamCommand({listStreamConnections:1,filter:e});return 1!==t.ok?t:Object.defineProperties(t.connections,{[l.shellApiType]:{value:"StreamsListResult"}})}async _runStreamCommand(e,t={}){return this._mongo._serviceProvider.runCommand(l.ADMIN_DB,e,t)}};n([o.returnsPromise],c.prototype,"process",null),n([o.returnsPromise],c.prototype,"createStreamProcessor",null),n([o.returnsPromise],c.prototype,"listStreamProcessors",null),n([o.returnsPromise],c.prototype,"listConnections",null),t.Streams=c=s=n([o.shellApiClassDefault],c)},31065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShellEvaluator=void 0;const s=r(76294);Object.defineProperty(t,"ShellEvaluator",{enumerable:!0,get:function(){return s.ShellEvaluator}}),t.default=s.ShellEvaluator},76294:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShellEvaluator=void 0;const shell_api_1=__webpack_require__(62294),async_rewriter2_1=__importDefault(__webpack_require__(38674)),history_1=__webpack_require__(59215),types_1=__webpack_require__(45347);let hasAlreadyRunGlobalRuntimeSupportEval=!1,v8;try{v8=__webpack_require__(99672)}catch(e){}(null===(_b=null===(_a=null==v8?void 0:v8.startupSnapshot)||void 0===_a?void 0:_a.isBuildingSnapshot)||void 0===_b?void 0:_b.call(_a))&&v8.startupSnapshot.addSerializeCallback((()=>{eval((new async_rewriter2_1.default).runtimeSupportCode()),hasAlreadyRunGlobalRuntimeSupportEval=!0}));class ShellEvaluator{constructor(e,t=shell_api_1.toShellResult,r){this.hasAppliedAsyncWriterRuntimeSupport=!0,this.instanceState=e,this.resultHandler=t,this.asyncWriter=new async_rewriter2_1.default,this.hasAppliedAsyncWriterRuntimeSupport=!1,this.markTime=r}async innerEval(originalEval,input,context,filename){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l;const{shellApi}=this.instanceState,trimmedInput=input.trim(),argv=trimmedInput.replace(/;$/,"").split(/\s+/g),cmd=argv.shift();if((null===(_a=shellApi[cmd])||void 0===_a?void 0:_a.isDirectShellCommand)&&(null===(_b=shellApi[cmd])||void 0===_b?void 0:_b.acceptsRawInput)&&!(null!==(_c=argv[0])&&void 0!==_c?_c:"").startsWith("(")){const e=trimmedInput.replace(/^\S+\s*/,"");return shellApi[cmd](e)}if((null===(_d=shellApi[cmd])||void 0===_d?void 0:_d.isDirectShellCommand)&&!(null!==(_e=argv[0])&&void 0!==_e?_e:"").startsWith("("))return shellApi[cmd](...argv);null===(_f=this.markTime)||void 0===_f||_f.call(this,types_1.TimingCategories.AsyncRewrite,"start async rewrite");let rewrittenInput=this.asyncWriter.process(input);null===(_g=this.markTime)||void 0===_g||_g.call(this,types_1.TimingCategories.AsyncRewrite,"done async rewrite");const hiddenCommands=RegExp(history_1.HIDDEN_COMMANDS,"g");if(hiddenCommands.test(input)||hiddenCommands.test(rewrittenInput)||this.instanceState.messageBus.emit("mongosh:evaluate-input",{input:(0,history_1.redactSensitiveData)(trimmedInput)}),!this.hasAppliedAsyncWriterRuntimeSupport){this.hasAppliedAsyncWriterRuntimeSupport=!0,null===(_h=this.markTime)||void 0===_h||_h.call(this,types_1.TimingCategories.AsyncRewrite,"start runtimeSupportCode processing");const supportCode=this.asyncWriter.runtimeSupportCode();hasAlreadyRunGlobalRuntimeSupportEval||eval(supportCode),null===(_j=this.markTime)||void 0===_j||_j.call(this,types_1.TimingCategories.AsyncRewrite,"done global runtimeSupportCode processing"),rewrittenInput=supportCode+";\n"+rewrittenInput}try{return null===(_k=this.markTime)||void 0===_k||_k.call(this,types_1.TimingCategories.Eval,"started evaluating processed code"),await originalEval(rewrittenInput,context,filename)}catch(e){throw this.instanceState.transformError(e)}finally{null===(_l=this.markTime)||void 0===_l||_l.call(this,types_1.TimingCategories.Eval,"finished evaluating processed code")}}async customEval(e,t,r,s){const n=await this.innerEval(e,t,r,s);return await this.resultHandler(n)}}exports.ShellEvaluator=ShellEvaluator},45347:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimingCategories=t.CliUserConfigValidator=t.CliUserConfig=t.SnippetShellUserConfigValidator=t.SnippetShellUserConfig=t.ShellUserConfigValidator=t.ShellUserConfig=void 0;class r{constructor(){this.displayBatchSize=20,this.maxTimeMS=null,this.enableTelemetry=!1,this.editor=null}}t.ShellUserConfig=r;class s{static async validate(e,t){switch(e){case"displayBatchSize":return"number"!=typeof t||t<=0?`${e} must be a positive integer`:null;case"maxTimeMS":return null!==t&&("number"!=typeof t||t<=0)?`${e} must be null or a positive integer`:null;case"enableTelemetry":return"boolean"!=typeof t?`${e} must be a boolean`:null;case"editor":return"string"!=typeof t&&null!==t?`${e} must be a string or null`:null;default:return`${e} is not a known config option`}}}t.ShellUserConfigValidator=s;class n extends r{constructor(){super(...arguments),this.snippetIndexSourceURLs="https://compass.mongodb.com/mongosh/snippets-index.bson.br",this.snippetRegistryURL="https://registry.npmjs.org",this.snippetAutoload=!0}}t.SnippetShellUserConfig=n;class i extends s{static async validate(e,t){switch(e){case"snippetIndexSourceURLs":return"string"!=typeof t||t.split(";").some((e=>e&&!a(e)))?`${e} must be a ;-separated list of valid URLs`:null;case"snippetRegistryURL":return"string"==typeof t&&a(t)?null:`${e} must be a valid URL`;case"snippetAutoload":return"boolean"!=typeof t?`${e} must be a boolean`:null;default:return super.validate(e,t)}}}function a(e){if("function"==typeof URL)try{return new URL(e),!0}catch(e){return!1}return!0}t.SnippetShellUserConfigValidator=i,t.CliUserConfig=class extends n{constructor(){super(...arguments),this.userId="",this.telemetryAnonymousId="",this.disableGreetingMessage=!1,this.forceDisableTelemetry=!1,this.inspectCompact=3,this.inspectDepth=6,this.historyLength=1e3,this.showStackTraces=!1,this.redactHistory="remove",this.oidcRedirectURI=void 0,this.oidcTrustedEndpoints=void 0,this.browser=void 0,this.updateURL="https://downloads.mongodb.com/compass/mongosh.json"}},t.CliUserConfigValidator=class extends i{static async validate(e,t){switch(e){case"userId":case"telemetryAnonymousId":case"disableGreetingMessage":return null;case"inspectCompact":return"boolean"!=typeof t&&("number"!=typeof t||t<0)?`${e} must be a boolean or a positive integer`:null;case"inspectDepth":case"historyLength":return"number"!=typeof t||t<0?`${e} must be a positive integer`:null;case"forceDisableTelemetry":case"showStackTraces":return"boolean"!=typeof t?`${e} must be a boolean`:null;case"redactHistory":return"keep"!==t&&"remove"!==t&&"remove-redact"!==t?`${e} must be one of 'keep', 'remove', or 'remove-redact'`:null;case"oidcRedirectURI":return void 0===t||"string"==typeof t&&a(t)?null:`${e} must be undefined or a valid URL`;case"oidcTrustedEndpoints":return void 0===t||Array.isArray(t)&&!t.some((e=>"string"!=typeof e))?null:`${e} must be undefined or an array of hostnames`;case"browser":return void 0!==t&&!1!==t&&"string"!=typeof t?`${e} must be undefined, false, or a command string`:null;case"updateURL":return"string"!=typeof t||t.trim()&&!a(t)?`${e} must be a valid URL or empty`:null;default:return super.validate(e,t)}}},t.TimingCategories={REPLInstantiation:"REPLInstantiation",UserConfigLoading:"UserConfigLoading",DriverSetup:"DriverSetup",Logging:"Logging",SnippetLoading:"SnippetLoading",Snapshot:"Snapshot",ResourceFileLoading:"ResourceFileLoading",AsyncRewrite:"AsyncRewrite",Eval:"Eval",EvalFile:"EvalFile",Telemetry:"Telemetry",Main:"Main"}},19562:(e,t,r)=>{"use strict";var s=r(92048),n=r(55315),i=r(60645);function a(e,r){var a;(r=r||{}).isFileComment&&(e=function(e,r){var i=t.mapFileCommentRegex.exec(e),a=i[1]||i[2],o=n.resolve(r,a);try{return s.readFileSync(o,"utf8")}catch(e){throw new Error("An error occurred while trying to read the map file at "+o+"\n"+e)}}(e,r.commentFileDir)),r.hasComment&&(e=function(e){return e.split(",").pop()}(e)),r.isEncoded&&(a=e,e=(i.Buffer.from(a,"base64")||"").toString()),(r.isJSON||r.isEncoded)&&(e=JSON.parse(e)),this.sourcemap=e}Object.defineProperty(t,"commentRegex",{get:function(){return/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/gm}}),Object.defineProperty(t,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm}}),a.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)},a.prototype.toBase64=function(){var e=this.toJSON();return(i.Buffer.from(e,"utf8")||"").toString("base64")},a.prototype.toComment=function(e){var t="sourceMappingURL=data:application/json;charset=utf-8;base64,"+this.toBase64();return e&&e.multiline?"/*# "+t+" */":"//# "+t},a.prototype.toObject=function(){return JSON.parse(this.toJSON())},a.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)},a.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this},a.prototype.getProperty=function(e){return this.sourcemap[e]},t.fromObject=function(e){return new a(e)},t.fromJSON=function(e){return new a(e,{isJSON:!0})},t.fromBase64=function(e){return new a(e,{isEncoded:!0})},t.fromComment=function(e){return new a(e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{isEncoded:!0,hasComment:!0})},t.fromMapFileComment=function(e,t){return new a(e,{commentFileDir:t,isFileComment:!0,isJSON:!0})},t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null},t.fromMapFileSource=function(e,r){var s=e.match(t.mapFileCommentRegex);return s?t.fromMapFileComment(s.pop(),r):null},t.removeComments=function(e){return e.replace(t.commentRegex,"")},t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")},t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}},60645:(e,t,r)=>{var s=r(78893),n=s.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=s:(i(s,t),t.Buffer=a),i(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var s=n(e);return void 0!==t?"string"==typeof r?s.fill(t,r):s.fill(t):s.fill(0),s},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s.SlowBuffer(e)}},90095:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(n=s))})),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(19709)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},19709:(e,t,r)=>{e.exports=function(e){function t(e){let r,n=null;function i(...e){if(!i.enabled)return;const s=i,n=Number(new Date),a=n-(r||n);s.diff=a,s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,n)=>{if("%%"===r)return"%";o++;const i=t.formatters[n];if("function"==typeof i){const t=e[o];r=i.call(s,t),e.splice(o,1),o--}return r})),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=s,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===n?t.enabled(e):n,set:e=>{n=e}}),"function"==typeof t.init&&t.init(i),i}function s(e,r){const s=t(this.namespace+(void 0===r?":":r)+e);return s.log=this.log,s}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),n=s.length;for(r=0;r<n;r++)s[r]&&("-"===(e=s[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,s;for(r=0,s=t.skips.length;r<s;r++)if(t.skips[r].test(e))return!1;for(r=0,s=t.names.length;r<s;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(8112),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},80164:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},79413:e=>{"use strict";const t=Symbol.for("gensync:v1:start"),r=Symbol.for("gensync:v1:suspend"),s="GENSYNC_EXPECTED_START",n="GENSYNC_EXPECTED_SUSPEND",i="GENSYNC_OPTIONS_ERROR",a="GENSYNC_RACE_NONEMPTY";function o(e,t,r,s){if(typeof r===e||s&&void 0===r)return;let n;throw n=s?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,u(n,i)}function u(e,t){return Object.assign(new Error(e),{code:t})}function l({name:e,arity:s,sync:n,async:i}){return m(e,s,(function*(...e){const s=yield t;if(!s)return n.call(this,e);let a;try{i.call(this,e,(e=>{a||(a={value:e},s())}),(e=>{a||(a={err:e},s())}))}catch(e){a={err:e},s()}if(yield r,a.hasOwnProperty("err"))throw a.err;return a.value}))}function c(e){let t;for(;!({value:t}=e.next()).done;)h(t,e);return t}function p(e,t,r){!function s(){try{let r;for(;!({value:r}=e.next()).done;){h(r,e);let t=!0,n=!1;const i=e.next((()=>{t?n=!0:s()}));if(t=!1,d(i,e),!n)return}return t(r)}catch(e){return r(e)}}()}function h(e,r){e!==t&&f(r,u(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,s))}function d({value:e,done:t},s){(t||e!==r)&&f(s,u(t?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(e)}. If you get this, it is probably a gensync bug.`,n))}function f(e,t){throw e.throw&&e.throw(t),t}function m(e,t,r){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(r,"name");t&&!t.configurable||Object.defineProperty(r,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(r,"length");e&&!e.configurable||Object.defineProperty(r,"length",Object.assign(e||{},{configurable:!0,value:t}))}return r}e.exports=Object.assign((function(e){let t=e;return t="function"!=typeof e?function({name:e,arity:t,sync:r,async:s,errback:n}){if(o("string","name",e,!0),o("number","arity",t,!0),o("function","sync",r),o("function","async",s,!0),o("function","errback",n,!0),s&&n)throw u("Expected one of either opts.async or opts.errback, but got _both_.",i);if("string"!=typeof e){let t;n&&n.name&&"errback"!==n.name&&(t=n.name),s&&s.name&&"async"!==s.name&&(t=s.name.replace(/Async$/,"")),r&&r.name&&"sync"!==r.name&&(t=r.name.replace(/Sync$/,"")),"string"==typeof t&&(e=t)}return"number"!=typeof t&&(t=r.length),l({name:e,arity:t,sync:function(e){return r.apply(this,e)},async:function(e,t,i){s?s.apply(this,e).then(t,i):n?n.call(this,...e,((e,r)=>{null==e?t(r):i(e)})):t(r.apply(this,e))}})}(e):function(e){return m(e.name,e.length,(function(...t){return e.apply(this,t)}))}(e),Object.assign(t,function(e){return{sync:function(...t){return c(e.apply(this,t))},async:function(...t){return new Promise(((r,s)=>{p(e.apply(this,t),r,s)}))},errback:function(...t){const r=t.pop();if("function"!=typeof r)throw u("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let s;try{s=e.apply(this,t)}catch(e){return void r(e)}p(s,(e=>r(void 0,e)),(e=>r(e)))}}}(t))}),{all:l({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map((e=>c(e)))},async:function(e,t,r){const s=Array.from(e[0]);if(0===s.length)return void Promise.resolve().then((()=>t([])));let n=0;const i=s.map((()=>{}));s.forEach(((e,s)=>{p(e,(e=>{i[s]=e,n+=1,n===i.length&&t(i)}),r)}))}}),race:l({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(0===t.length)throw u("Must race at least 1 item",a);return c(t[0])},async:function(e,t,r){const s=Array.from(e[0]);if(0===s.length)throw u("Must race at least 1 item",a);for(const e of s)p(e,t,r)}})})},65513:(e,t,r)=>{"use strict";e.exports=r(10964)},49384:(e,t,r)=>{"use strict";var s=r(89737),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function u(e){return s.isMemo(e)?a:o[e.$$typeof]||n}o[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[s.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,s){if("string"!=typeof r){if(f){var n=d(r);n&&n!==f&&e(t,n,s)}var a=c(r);p&&(a=a.concat(p(r)));for(var o=u(t),m=u(r),y=0;y<a.length;++y){var g=a[y];if(!(i[g]||s&&s[g]||m&&m[g]||o&&o[g])){var b=h(r,g);try{l(t,g,b)}catch(e){}}}}return t}},66226:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,s=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,E=r?Symbol.for("react.responder"):60118,A=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case c:case p:case i:case o:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case h:case y:case m:case u:return e;default:return t}}case n:return t}}}function v(e){return x(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=s,t.ForwardRef=h,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=n,t.Profiler=o,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return v(e)||x(e)===c},t.isConcurrentMode=v,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===y},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===n},t.isProfiler=function(e){return x(e)===o},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===o||e===a||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===b||e.$$typeof===E||e.$$typeof===A||e.$$typeof===g)},t.typeOf=x},89737:(e,t,r)=>{"use strict";e.exports=r(66226)},75592:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},65490:e=>{"use strict";const t={},r=t.hasOwnProperty,s=(e,t)=>{for(const s in e)r.call(e,s)&&t(s,e[s])},n=t.toString,i=Array.isArray,a=Buffer.isBuffer,o={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},u=/["'\\\b\f\n\r\t]/,l=/[0-9]/,c=/[ !#-&\(-\[\]-_a-~]/,p=(e,t)=>{const r=()=>{A=E,++t.indentLevel,E=t.indent.repeat(t.indentLevel)},h={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},d=t&&t.json;var f,m;d&&(h.quotes="double",h.wrap=!0),f=h,"single"!=(t=(m=t)?(s(m,((e,t)=>{f[e]=t})),f):f).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const y="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",g=t.compact,b=t.lowercaseHex;let E=t.indent.repeat(t.indentLevel),A="";const x=t.__inline1__,v=t.__inline2__,C=g?"":"\n";let P,S=!0;const w="binary"==t.numbers,T="octal"==t.numbers,F="decimal"==t.numbers,D="hexadecimal"==t.numbers;if(d&&e&&(e=>"function"==typeof e)(e.toJSON)&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==n.call(e))(e)){if((e=>"[object Map]"==n.call(e))(e))return 0==e.size?"new Map()":(g||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+p(Array.from(e),t)+")");if((e=>"[object Set]"==n.call(e))(e))return 0==e.size?"new Set()":"new Set("+p(Array.from(e),t)+")";if(a(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+p(Array.from(e),t)+")";if(i(e))return P=[],t.wrap=!0,x&&(t.__inline1__=!1,t.__inline2__=!0),v||r(),((e,t)=>{const r=e.length;let s=-1;for(;++s<r;)t(e[s])})(e,(e=>{S=!1,v&&(t.__inline2__=!1),P.push((g||v?"":E)+p(e,t))})),S?"[]":v?"["+P.join(", ")+"]":"["+C+P.join(","+C)+C+(g?"":A)+"]";if(!(e=>"number"==typeof e||"[object Number]"==n.call(e))(e))return(e=>"[object Object]"==n.call(e))(e)?(P=[],t.wrap=!0,r(),s(e,((e,r)=>{S=!1,P.push((g?"":E)+p(e,t)+":"+(g?"":" ")+p(r,t))})),S?"{}":"{"+C+P.join(","+C)+C+(g?"":A)+"}"):d?JSON.stringify(e)||"null":String(e);if(d)return JSON.stringify(e);if(F)return String(e);if(D){let t=e.toString(16);return b||(t=t.toUpperCase()),"0x"+t}if(w)return"0b"+e.toString(2);if(T)return"0o"+e.toString(8)}const I=e;let _=-1;const k=I.length;for(P="";++_<k;){const e=I.charAt(_);if(t.es6){const e=I.charCodeAt(_);if(e>=55296&&e<=56319&&k>_+1){const t=I.charCodeAt(_+1);if(t>=56320&&t<=57343){let r=(1024*(e-55296)+t-56320+65536).toString(16);b||(r=r.toUpperCase()),P+="\\u{"+r+"}",++_;continue}}}if(!t.escapeEverything){if(c.test(e)){P+=e;continue}if('"'==e){P+=y==e?'\\"':e;continue}if("`"==e){P+=y==e?"\\`":e;continue}if("'"==e){P+=y==e?"\\'":e;continue}}if("\0"==e&&!d&&!l.test(I.charAt(_+1))){P+="\\0";continue}if(u.test(e)){P+=o[e];continue}const r=e.charCodeAt(0);if(t.minimal&&8232!=r&&8233!=r){P+=e;continue}let s=r.toString(16);b||(s=s.toUpperCase());const n=s.length>2||d,i="\\"+(n?"u":"x")+("0000"+s).slice(n?-4:-2);P+=i}return t.wrap&&(P=y+P+y),"`"==y&&(P=P.replace(/\$\{/g,"\\${")),t.isScriptContext?P.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,d?"\\u003C!--":"\\x3C!--"):P};p.version="2.5.2",e.exports=p},20964:(e,t,r)=>{const{default:s}=r(68370),n=/\.mongodb(-dev|-qa|-stage)?\.net$/i,i=/^atlas-stream-.+/i,a=/^(localhost|127\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])|0\.0\.0\.0|(?:0*\:)*?:?0*1)$/i,o=/\.mongo\.ondigitalocean\.com$/i,u=/\.cosmos\.azure\.com$/i,l=/docdb(-elastic)?\.amazonaws\.com$/i;function c(e){return e.startsWith("[")?e.substring(1).split("]")[0]:e.split(":")[0]}function p(e){if("string"!=typeof e)return"";try{return c(new s(e).hosts[0])}catch(t){return c(e)}}e.exports={getDataLake:function(e){const t={isDataLake:!1,dlVersion:null};return e.dataLake&&(t.isDataLake=!0,t.dlVersion=e.dataLake.version),t},isEnterprise:function(e){return!(!e.gitVersion||!e.gitVersion.match(/enterprise/))||!(!e.modules||-1===e.modules.indexOf("enterprise"))},isAtlas:function(e){return!!p(e).match(n)},isLocalAtlas:function(e){return e("admin","atlascli",{managedClusterType:"atlasCliLocalDevCluster"}).then((e=>e>0)).catch((()=>!1))},isAtlasStream:function(e){const t=p(e);return!(!t.match(n)||!t.match(i))},isLocalhost:function(e){return!!p(e).match(a)},isDigitalOcean:function(e){return!!p(e).match(o)},getGenuineMongoDB:function(e){const t=p(e);return t.match(u)?{isGenuine:!1,serverName:"cosmosdb"}:t.match(l)?{isGenuine:!1,serverName:"documentdb"}:{isGenuine:!0,serverName:"mongodb"}},getBuildEnv:function(e){return{serverOs:e.buildEnvironment?e.buildEnvironment.target_os:null,serverArch:e.buildEnvironment?e.buildEnvironment.target_arch:null}}}},68370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const s=r(77596),n=r(2298);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return n.redactConnectionString}});const i="__this_is_a_placeholder__",a=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class o extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class u extends s.URL{}class l extends Error{get name(){return"MongoParseError"}}class c extends u{constructor(e,t={}){var r;const{looseValidation:s}=t;if(!s&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new l('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const u=e.match(a);if(!u)throw new l(`Invalid connection string "${e}"`);const{protocol:p,username:h,password:d,hosts:f,rest:m}=null!==(r=u.groups)&&void 0!==r?r:{};if(!s){if(!p||!f)throw new l(`Protocol and host list are required in "${e}"`);try{decodeURIComponent(null!=h?h:""),decodeURIComponent(null!=d?d:"")}catch(e){throw new l(e.message)}const t=/[:/?#[\]@]/gi;if(null==h?void 0:h.match(t))throw new l(`Username contains unescaped characters ${h}`);if(!h||!d){const t=e.replace(`${p}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new l("URI contained empty userinfo section")}if(null==d?void 0:d.match(t))throw new l("Password contains unescaped characters")}let y="";"string"==typeof h&&(y+=h),"string"==typeof d&&(y+=`:${d}`),y&&(y+="@");try{super(`${p.toLowerCase()}://${y}${i}${m}`)}catch(r){throw s&&new c(e,{...t,looseValidation:!1}),"string"==typeof r.message&&(r.message=r.message.replace(i,f)),r}if(this._hosts=f.split(","),!s){if(this.isSRV&&1!==this.hosts.length)throw new l("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new l("mongodb+srv URI cannot have port number")}var g;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(g=this.searchParams.constructor,class extends g{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return o.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new c(this.toString(),{looseValidation:!0})}redact(e){return(0,n.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:r,username:s,password:n,hosts:i,pathname:a,search:o,searchParams:u,hash:l}=this;return{href:e,origin:t,protocol:r,username:s,password:n,hosts:i,pathname:a,search:o,searchParams:u,hash:l}}}t.ConnectionString=c,t.CommaAndColonSeparatedRecord=class extends o{constructor(e){super();for(const t of(null!=e?e:"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=c},2298:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.redactConnectionString=t.redactValidConnectionString=void 0;const a=i(r(68370));t.redactValidConnectionString=function(e,t){var r,s;const n=e.clone(),i=null!==(r=null==t?void 0:t.replacementString)&&void 0!==r?r:"_credentials_",o=null===(s=null==t?void 0:t.redactUsernames)||void 0===s||s;if((n.username||n.password)&&o?(n.username=i,n.password=""):n.password&&(n.password=i),n.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(n.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",i),n.searchParams.set("authMechanismProperties",e.toString()))}return n.searchParams.has("tlsCertificateKeyFilePassword")&&n.searchParams.set("tlsCertificateKeyFilePassword",i),n.searchParams.has("proxyUsername")&&o&&n.searchParams.set("proxyUsername",i),n.searchParams.has("proxyPassword")&&n.searchParams.set("proxyPassword",i),n},t.redactConnectionString=function(e,t){var r,s;const n=null!==(r=null==t?void 0:t.replacementString)&&void 0!==r?r:"<credentials>",i=null===(s=null==t?void 0:t.redactUsernames)||void 0===s||s;let o;try{o=new a.default(e)}catch(e){}if(o)return t={...t,replacementString:"___credentials___"},o.redact(t).toString().replace(/___credentials___/g,n);const u=n,l=[e=>e.replace(i?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${u}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${u}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${u}`),e=>i?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${u}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${u}`)];for(const t of l)e=t(e);return e}},7346:(e,t,r)=>{"use strict";const s=r(75540),n=r(87987),i=r(86306),{STATUS_MAPPING:a}=r(84513);function o(e,{useSTD3ASCIIRules:t}){let r=0,s=i.length-1;for(;r<=s;){const n=Math.floor((r+s)/2),o=i[n],u=Array.isArray(o[0])?o[0][0]:o[0],l=Array.isArray(o[0])?o[0][1]:o[0];if(u<=e&&l>=e)return!t||o[1]!==a.disallowed_STD3_valid&&o[1]!==a.disallowed_STD3_mapped?o[1]===a.disallowed_STD3_valid?[a.valid,...o.slice(2)]:o[1]===a.disallowed_STD3_mapped?[a.mapped,...o.slice(2)]:o.slice(1):[a.disallowed,...o.slice(2)];u>e?s=n-1:r=n+1}return null}function u(e,{checkHyphens:t,checkBidi:r,checkJoiners:s,processingOption:i,useSTD3ASCIIRules:u}){if(e.normalize("NFC")!==e)return!1;const l=Array.from(e);if(t&&("-"===l[2]&&"-"===l[3]||e.startsWith("-")||e.endsWith("-")))return!1;if(e.includes(".")||l.length>0&&n.combiningMarks.test(l[0]))return!1;for(const e of l){const[t]=o(e.codePointAt(0),{useSTD3ASCIIRules:u});if("transitional"===i&&t!==a.valid||"nontransitional"===i&&t!==a.valid&&t!==a.deviation)return!1}if(s){let e=0;for(const[t,r]of l.entries())if(""===r||""===r){if(t>0){if(n.combiningClassVirama.test(l[t-1]))continue;if(""===r){const r=l.indexOf("",t+1),s=r<0?l.slice(e):l.slice(e,r);if(n.validZWNJ.test(s.join(""))){e=t+1;continue}}}return!1}}if(r&&l.length>0){let t;if(n.bidiS1LTR.test(l[0]))t=!1;else{if(!n.bidiS1RTL.test(l[0]))return!1;t=!0}if(t){if(!n.bidiS2.test(e)||!n.bidiS3.test(e)||n.bidiS4EN.test(e)&&n.bidiS4AN.test(e))return!1}else if(!n.bidiS5.test(e)||!n.bidiS6.test(e))return!1}return!0}function l(e,t){const{processingOption:r}=t;let{string:i,error:l}=function(e,{useSTD3ASCIIRules:t,processingOption:r}){let s=!1,n="";for(const i of e){const[e,u]=o(i.codePointAt(0),{useSTD3ASCIIRules:t});switch(e){case a.disallowed:s=!0,n+=i;break;case a.ignored:break;case a.mapped:n+=u;break;case a.deviation:n+="transitional"===r?u:i;break;case a.valid:n+=i}}return{string:n,error:s}}(e,t);i=i.normalize("NFC");const c=i.split("."),p=function(e){const t=e.map((e=>{if(e.startsWith("xn--"))try{return s.decode(e.substring(4))}catch(e){return""}return e})).join(".");return n.bidiDomain.test(t)}(c);for(const[e,n]of c.entries()){let i=n,a=r;if(i.startsWith("xn--")){try{i=s.decode(i.substring(4)),c[e]=i}catch(e){l=!0;continue}a="nontransitional"}l||(u(i,{...t,processingOption:a,checkBidi:t.checkBidi&&p})||(l=!0))}return{string:c.join("."),error:l}}e.exports={toASCII:function(e,{checkHyphens:t=!1,checkBidi:r=!1,checkJoiners:n=!1,useSTD3ASCIIRules:i=!1,processingOption:a="nontransitional",verifyDNSLength:o=!1}={}){if("transitional"!==a&&"nontransitional"!==a)throw new RangeError("processingOption must be either transitional or nontransitional");const u=l(e,{processingOption:a,checkHyphens:t,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:i});let c=u.string.split(".");if(c=c.map((e=>{if(/[^\x00-\x7F]/u.test(e))try{return`xn--${s.encode(e)}`}catch(e){u.error=!0}return e})),o){const e=c.join(".").length;(e>253||0===e)&&(u.error=!0);for(let e=0;e<c.length;++e)if(c[e].length>63||0===c[e].length){u.error=!0;break}}return u.error?null:c.join(".")},toUnicode:function(e,{checkHyphens:t=!1,checkBidi:r=!1,checkJoiners:s=!1,useSTD3ASCIIRules:n=!1,processingOption:i="nontransitional"}={}){const a=l(e,{processingOption:i,checkHyphens:t,checkBidi:r,checkJoiners:s,useSTD3ASCIIRules:n});return{domain:a.string,error:a.error}}}},87987:e=>{"use strict";e.exports={combiningMarks:/[\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,combiningClassVirama:/[\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,validZWNJ:/[\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,bidiDomain:/[\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,bidiS1LTR:/[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,bidiS1RTL:/[\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,bidiS2:/^[\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,bidiS3:/[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,bidiS4EN:/[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,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\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,bidiS6:/[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}},84513:e=>{"use strict";e.exports.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}},93094:(e,t)=>{"use strict";function r(e,t,r){return r.globals&&(e=r.globals[e.name]),new e(`${r.context?r.context:"Value"} ${t}.`)}function s(e,t){if("bigint"==typeof e)throw r(TypeError,"is a BigInt which cannot be converted to a number",t);return t.globals?t.globals.Number(e):Number(e)}function n(e){return o(e>0&&e%1==.5&&0==(1&e)||e<0&&e%1==-.5&&1==(1&e)?Math.floor(e):Math.round(e))}function i(e){return o(Math.trunc(e))}function a(e){return e<0?-1:1}function o(e){return 0===e?0:e}function u(e,{unsigned:t}){let u,l;t?(u=0,l=2**e-1):(u=-(2**(e-1)),l=2**(e-1)-1);const c=2**e,p=2**(e-1);return(e,h={})=>{let d=s(e,h);if(d=o(d),h.enforceRange){if(!Number.isFinite(d))throw r(TypeError,"is not a finite number",h);if(d=i(d),d<u||d>l)throw r(TypeError,`is outside the accepted range of ${u} to ${l}, inclusive`,h);return d}return!Number.isNaN(d)&&h.clamp?(d=Math.min(Math.max(d,u),l),d=n(d),d):Number.isFinite(d)&&0!==d?(d=i(d),d>=u&&d<=l?d:(d=function(e,t){const r=e%t;return a(t)!==a(r)?r+t:r}(d,c),!t&&d>=p?d-c:d)):0}}function l(e,{unsigned:t}){const a=Number.MAX_SAFE_INTEGER,u=t?0:Number.MIN_SAFE_INTEGER,l=t?BigInt.asUintN:BigInt.asIntN;return(t,c={})=>{let p=s(t,c);if(p=o(p),c.enforceRange){if(!Number.isFinite(p))throw r(TypeError,"is not a finite number",c);if(p=i(p),p<u||p>a)throw r(TypeError,`is outside the accepted range of ${u} to ${a}, inclusive`,c);return p}if(!Number.isNaN(p)&&c.clamp)return p=Math.min(Math.max(p,u),a),p=n(p),p;if(!Number.isFinite(p)||0===p)return 0;let h=BigInt(i(p));return h=l(e,h),Number(h)}}t.any=e=>e,t.undefined=()=>{},t.boolean=e=>Boolean(e),t.byte=u(8,{unsigned:!1}),t.octet=u(8,{unsigned:!0}),t.short=u(16,{unsigned:!1}),t["unsigned short"]=u(16,{unsigned:!0}),t.long=u(32,{unsigned:!1}),t["unsigned long"]=u(32,{unsigned:!0}),t["long long"]=l(64,{unsigned:!1}),t["unsigned long long"]=l(64,{unsigned:!0}),t.double=(e,t={})=>{const n=s(e,t);if(!Number.isFinite(n))throw r(TypeError,"is not a finite floating-point value",t);return n},t["unrestricted double"]=(e,t={})=>s(e,t),t.float=(e,t={})=>{const n=s(e,t);if(!Number.isFinite(n))throw r(TypeError,"is not a finite floating-point value",t);if(Object.is(n,-0))return n;const i=Math.fround(n);if(!Number.isFinite(i))throw r(TypeError,"is outside the range of a single-precision floating-point value",t);return i},t["unrestricted float"]=(e,t={})=>{const r=s(e,t);return isNaN(r)||Object.is(r,-0)?r:Math.fround(r)},t.DOMString=(e,t={})=>{if(t.treatNullAsEmptyString&&null===e)return"";if("symbol"==typeof e)throw r(TypeError,"is a symbol, which cannot be converted to a string",t);return(t.globals?t.globals.String:String)(e)},t.ByteString=(e,s={})=>{const n=t.DOMString(e,s);let i;for(let e=0;void 0!==(i=n.codePointAt(e));++e)if(i>255)throw r(TypeError,"is not a valid ByteString",s);return n},t.USVString=(e,r={})=>{const s=t.DOMString(e,r),n=s.length,i=[];for(let e=0;e<n;++e){const t=s.charCodeAt(e);if(t<55296||t>57343)i.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)i.push(String.fromCodePoint(65533));else if(e===n-1)i.push(String.fromCodePoint(65533));else{const r=s.charCodeAt(e+1);if(56320<=r&&r<=57343){const s=1023&t,n=1023&r;i.push(String.fromCodePoint(65536+1024*s+n)),++e}else i.push(String.fromCodePoint(65533))}}return i.join("")},t.object=(e,t={})=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)throw r(TypeError,"is not an object",t);return e};const c=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,p="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(e){try{return c.call(e),!0}catch{return!1}}function d(e){try{return p.call(e),!0}catch{return!1}}function f(e){try{return new Uint8Array(e),!1}catch{return!0}}t.ArrayBuffer=(e,t={})=>{if(!h(e)){if(t.allowShared&&!d(e))throw r(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t);throw r(TypeError,"is not an ArrayBuffer",t)}if(f(e))throw r(TypeError,"is a detached ArrayBuffer",t);return e};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=(e,t={})=>{try{m.call(e)}catch(e){throw r(TypeError,"is not a DataView",t)}if(!t.allowShared&&d(e.buffer))throw r(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is backed by a detached ArrayBuffer",t);return e};const y=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((e=>{const{name:s}=e,n=/^[AEIOU]/u.test(s)?"an":"a";t[s]=(e,t={})=>{if(!ArrayBuffer.isView(e)||y.call(e)!==s)throw r(TypeError,`is not ${n} ${s} object`,t);if(!t.allowShared&&d(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e}})),t.ArrayBufferView=(e,t={})=>{if(!ArrayBuffer.isView(e))throw r(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t);if(!t.allowShared&&d(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e},t.BufferSource=(e,t={})=>{if(ArrayBuffer.isView(e)){if(!t.allowShared&&d(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e}if(!t.allowShared&&!h(e))throw r(TypeError,"is not an ArrayBuffer or a view on one",t);if(t.allowShared&&!d(e)&&!h(e))throw r(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t);if(f(e))throw r(TypeError,"is a detached ArrayBuffer",t);return e},t.DOMTimeStamp=t["unsigned long long"]},77596:(e,t,r)=>{"use strict";const{URL:s,URLSearchParams:n}=r(70483),i=r(39521),a=r(63820),o={Array,Object,Promise,String,TypeError};s.install(o,["Window"]),n.install(o,["Window"]),t.URL=o.URL,t.URLSearchParams=o.URLSearchParams,t.parseURL=i.parseURL,t.basicURLParse=i.basicURLParse,t.serializeURL=i.serializeURL,t.serializePath=i.serializePath,t.serializeHost=i.serializeHost,t.serializeInteger=i.serializeInteger,t.serializeURLOrigin=i.serializeURLOrigin,t.setTheUsername=i.setTheUsername,t.setThePassword=i.setThePassword,t.cannotHaveAUsernamePasswordPort=i.cannotHaveAUsernamePasswordPort,t.hasAnOpaquePath=i.hasAnOpaquePath,t.percentDecodeString=a.percentDecodeString,t.percentDecodeBytes=a.percentDecodeBytes},39985:(e,t,r)=>{"use strict";const s=r(93094),n=r(27514);t.convert=(e,t,{context:r="The provided value"}={})=>{if("function"!=typeof t)throw new e.TypeError(r+" is not a function");function i(...i){const a=n.tryWrapperForImpl(this);let o;for(let e=0;e<i.length;e++)i[e]=n.tryWrapperForImpl(i[e]);return o=Reflect.apply(t,a,i),o=s.any(o,{context:r,globals:e}),o}return i.construct=(...i)=>{for(let e=0;e<i.length;e++)i[e]=n.tryWrapperForImpl(i[e]);let a=Reflect.construct(t,i);return a=s.any(a,{context:r,globals:e}),a},i[n.wrapperSymbol]=t,i.objectReference=t,i}},8621:(e,t,r)=>{"use strict";const s=r(39521),n=r(55189),i=r(92084);t.implementation=class{constructor(e,t){const r=t[0],n=t[1];let a=null;if(void 0!==n&&(a=s.basicURLParse(n),null===a))throw new TypeError(`Invalid base URL: ${n}`);const o=s.basicURLParse(r,{baseURL:a});if(null===o)throw new TypeError(`Invalid URL: ${r}`);const u=null!==o.query?o.query:"";this._url=o,this._query=i.createImpl(e,[u],{doNotStripQMark:!0}),this._query._url=this}static canParse(e,t){let r=null;return(void 0===t||(r=s.basicURLParse(t),null!==r))&&null!==s.basicURLParse(e,{baseURL:r})}get href(){return s.serializeURL(this._url)}set href(e){const t=s.basicURLParse(e);if(null===t)throw new TypeError(`Invalid URL: ${e}`);this._url=t,this._query._list.splice(0);const{query:r}=t;null!==r&&(this._query._list=n.parseUrlencodedString(r))}get origin(){return s.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(e){s.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){s.cannotHaveAUsernamePasswordPort(this._url)||s.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){s.cannotHaveAUsernamePasswordPort(this._url)||s.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?s.serializeHost(e.host):`${s.serializeHost(e.host)}:${s.serializeInteger(e.port)}`}set host(e){s.hasAnOpaquePath(this._url)||s.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":s.serializeHost(this._url.host)}set hostname(e){s.hasAnOpaquePath(this._url)||s.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":s.serializeInteger(this._url.port)}set port(e){s.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:s.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return s.serializePath(this._url)}set pathname(e){s.hasAnOpaquePath(this._url)||(this._url.path=[],s.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(e){const t=this._url;if(""===e)return t.query=null,this._query._list=[],void this._potentiallyStripTrailingSpacesFromAnOpaquePath();const r="?"===e[0]?e.substring(1):e;t.query="",s.basicURLParse(r,{url:t,stateOverride:"query"}),this._query._list=n.parseUrlencodedString(r)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(e){if(""===e)return this._url.fragment=null,void this._potentiallyStripTrailingSpacesFromAnOpaquePath();const t="#"===e[0]?e.substring(1):e;this._url.fragment="",s.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}_potentiallyStripTrailingSpacesFromAnOpaquePath(){s.hasAnOpaquePath(this._url)&&null===this._url.fragment&&null===this._url.query&&(this._url.path=this._url.path.replace(/\u0020+$/u,""))}}},99970:(e,t,r)=>{"use strict";const s=r(93094),n=r(27514),i=n.implSymbol,a=n.ctorRegistrySymbol;function o(e,t){let r;return void 0!==t&&(r=t.prototype),n.isObject(r)||(r=e[a].URL.prototype),Object.create(r)}t.is=e=>n.isObject(e)&&n.hasOwn(e,i)&&e[i]instanceof l.implementation,t.isImpl=e=>n.isObject(e)&&e instanceof l.implementation,t.convert=(e,r,{context:s="The provided value"}={})=>{if(t.is(r))return n.implForWrapper(r);throw new e.TypeError(`${s} is not of type 'URL'.`)},t.create=(e,r,s)=>{const n=o(e);return t.setup(n,e,r,s)},t.createImpl=(e,r,s)=>{const i=t.create(e,r,s);return n.implForWrapper(i)},t._internalSetup=(e,t)=>{},t.setup=(e,r,s=[],a={})=>(a.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,i,{value:new l.implementation(r,s,a),configurable:!0}),e[i][n.wrapperSymbol]=e,l.init&&l.init(e[i]),e),t.new=(e,r)=>{const s=o(e,r);return t._internalSetup(s,e),Object.defineProperty(s,i,{value:Object.create(l.implementation.prototype),configurable:!0}),s[i][n.wrapperSymbol]=s,l.init&&l.init(s[i]),s[i]};const u=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>u.has(e))))return;const a=n.initCtorRegistry(e);class o{constructor(r){if(arguments.length<1)throw new e.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to construct 'URL': parameter 1",globals:e}),n.push(t)}{let t=arguments[1];void 0!==t&&(t=s.USVString(t,{context:"Failed to construct 'URL': parameter 2",globals:e})),n.push(t)}return t.setup(Object.create(new.target.prototype),e,n)}toJSON(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return r[i].toJSON()}get href(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.");return r[i].href}set href(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e}),n[i].href=r}toString(){if(!t.is(this))throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[i].href}get origin(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.");return r[i].origin}get protocol(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return r[i].protocol}set protocol(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e}),n[i].protocol=r}get username(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.");return r[i].username}set username(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e}),n[i].username=r}get password(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.");return r[i].password}set password(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e}),n[i].password=r}get host(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.");return r[i].host}set host(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e}),n[i].host=r}get hostname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return r[i].hostname}set hostname(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e}),n[i].hostname=r}get port(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.");return r[i].port}set port(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e}),n[i].port=r}get pathname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return r[i].pathname}set pathname(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e}),n[i].pathname=r}get search(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.");return r[i].search}set search(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e}),n[i].search=r}get searchParams(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return n.getSameObject(this,"searchParams",(()=>n.tryWrapperForImpl(r[i].searchParams)))}get hash(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.");return r[i].hash}set hash(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e}),n[i].hash=r}static canParse(t){if(arguments.length<1)throw new e.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const r=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:e}),r.push(t)}{let t=arguments[1];void 0!==t&&(t=s.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:e})),r.push(t)}return l.implementation.canParse(...r)}}Object.defineProperties(o.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(o,{canParse:{enumerable:!0}}),a.URL=o,Object.defineProperty(e,"URL",{configurable:!0,writable:!0,value:o}),r.includes("Window")&&Object.defineProperty(e,"webkitURL",{configurable:!0,writable:!0,value:o})};const l=r(8621)},73065:(e,t,r)=>{"use strict";const s=r(55189);t.implementation=class{constructor(e,t,{doNotStripQMark:r=!1}){let n=t[0];if(this._list=[],this._url=null,r||"string"!=typeof n||"?"!==n[0]||(n=n.slice(1)),Array.isArray(n))for(const e of n){if(2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([e[0],e[1]])}else if("object"==typeof n&&null===Object.getPrototypeOf(n))for(const e of Object.keys(n)){const t=n[e];this._list.push([e,t])}else this._list=s.parseUrlencodedString(n)}_updateSteps(){if(null!==this._url){let e=s.serializeUrlencoded(this._list);""===e&&(e=null),this._url._url.query=e,null===e&&this._url._potentiallyStripTrailingSpacesFromAnOpaquePath()}}get size(){return this._list.length}append(e,t){this._list.push([e,t]),this._updateSteps()}delete(e,t){let r=0;for(;r<this._list.length;)this._list[r][0]!==e||void 0!==t&&this._list[r][1]!==t?r++:this._list.splice(r,1);this._updateSteps()}get(e){for(const t of this._list)if(t[0]===e)return t[1];return null}getAll(e){const t=[];for(const r of this._list)r[0]===e&&t.push(r[1]);return t}has(e,t){for(const r of this._list)if(r[0]===e&&(void 0===t||r[1]===t))return!0;return!1}set(e,t){let r=!1,s=0;for(;s<this._list.length;)this._list[s][0]===e?r?this._list.splice(s,1):(r=!0,this._list[s][1]=t,s++):s++;r||this._list.push([e,t]),this._updateSteps()}sort(){this._list.sort(((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0)),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return s.serializeUrlencoded(this._list)}}},92084:(e,t,r)=>{"use strict";const s=r(93094),n=r(27514),i=r(39985),a=n.newObjectInRealm,o=n.implSymbol,u=n.ctorRegistrySymbol,l="URLSearchParams";function c(e,t){let r;return void 0!==t&&(r=t.prototype),n.isObject(r)||(r=e[u].URLSearchParams.prototype),Object.create(r)}t.is=e=>n.isObject(e)&&n.hasOwn(e,o)&&e[o]instanceof h.implementation,t.isImpl=e=>n.isObject(e)&&e instanceof h.implementation,t.convert=(e,r,{context:s="The provided value"}={})=>{if(t.is(r))return n.implForWrapper(r);throw new e.TypeError(`${s} is not of type 'URLSearchParams'.`)},t.createDefaultIterator=(e,t,r)=>{const s=e[u]["URLSearchParams Iterator"],i=Object.create(s);return Object.defineProperty(i,n.iterInternalSymbol,{value:{target:t,kind:r,index:0},configurable:!0}),i},t.create=(e,r,s)=>{const n=c(e);return t.setup(n,e,r,s)},t.createImpl=(e,r,s)=>{const i=t.create(e,r,s);return n.implForWrapper(i)},t._internalSetup=(e,t)=>{},t.setup=(e,r,s=[],i={})=>(i.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,o,{value:new h.implementation(r,s,i),configurable:!0}),e[o][n.wrapperSymbol]=e,h.init&&h.init(e[o]),e),t.new=(e,r)=>{const s=c(e,r);return t._internalSetup(s,e),Object.defineProperty(s,o,{value:Object.create(h.implementation.prototype),configurable:!0}),s[o][n.wrapperSymbol]=s,h.init&&h.init(s[o]),s[o]};const p=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>p.has(e))))return;const u=n.initCtorRegistry(e);class c{constructor(){const r=[];{let t=arguments[0];if(void 0!==t)if(n.isObject(t))if(void 0!==t[Symbol.iterator]){if(!n.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const r=[],i=t;for(let t of i){if(!n.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const r=[],n=t;for(let t of n)t=s.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:e}),r.push(t);t=r}r.push(t)}t=r}}else{if(!n.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const r=Object.create(null);for(const n of Reflect.ownKeys(t)){const i=Object.getOwnPropertyDescriptor(t,n);if(i&&i.enumerable){let i=n;i=s.USVString(i,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:e});let a=t[n];a=s.USVString(a,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:e}),r[i]=a}}t=r}}else t=s.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e});else t="";r.push(t)}return t.setup(Object.create(new.target.prototype),e,r)}append(r,i){const a=null!=this?this:e;if(!t.is(a))throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=s.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return n.tryWrapperForImpl(a[o].append(...u))}delete(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const a=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e}),a.push(t)}{let t=arguments[1];void 0!==t&&(t=s.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:e})),a.push(t)}return n.tryWrapperForImpl(i[o].delete(...a))}get(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e}),i.push(t)}return n[o].get(...i)}getAll(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const a=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e}),a.push(t)}return n.tryWrapperForImpl(i[o].getAll(...a))}has(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e}),i.push(t)}{let t=arguments[1];void 0!==t&&(t=s.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:e})),i.push(t)}return n[o].has(...i)}set(r,i){const a=null!=this?this:e;if(!t.is(a))throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=s.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return n.tryWrapperForImpl(a[o].set(...u))}sort(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return n.tryWrapperForImpl(r[o].sort())}toString(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return r[o].toString()}keys(){if(!t.is(this))throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this))throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this))throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key+value")}forEach(r){if(!t.is(this))throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");r=i.convert(e,r,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const s=arguments[1];let a=Array.from(this[o]),u=0;for(;u<a.length;){const[e,t]=a[u].map(n.tryWrapperForImpl);r.call(s,t,e,this),a=Array.from(this[o]),u++}}get size(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return r[o].size}}Object.defineProperties(c.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:c.prototype.entries,configurable:!0,writable:!0}}),u[l]=c,u["URLSearchParams Iterator"]=Object.create(u["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),n.define(u["URLSearchParams Iterator"],{next(){const t=this&&this[n.iterInternalSymbol];if(!t)throw new e.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:r,kind:s,index:i}=t,u=Array.from(r[o]);if(i>=u.length)return a(e,{value:void 0,done:!0});const l=u[i];return t.index=i+1,a(e,n.iteratorResult(l.map(n.tryWrapperForImpl),s))}}),Object.defineProperty(e,l,{configurable:!0,writable:!0,value:c})};const h=r(73065)},92611:e=>{"use strict";const t=new TextEncoder,r=new TextDecoder("utf-8",{ignoreBOM:!0});e.exports={utf8Encode:function(e){return t.encode(e)},utf8DecodeWithoutBOM:function(e){return r.decode(e)}}},80171:e=>{"use strict";function t(e){return e>=48&&e<=57}function r(e){return e>=65&&e<=90||e>=97&&e<=122}e.exports={isASCIIDigit:t,isASCIIAlpha:r,isASCIIAlphanumeric:function(e){return r(e)||t(e)},isASCIIHex:function(e){return t(e)||e>=65&&e<=70||e>=97&&e<=102}}},63820:(e,t,r)=>{"use strict";const{isASCIIHex:s}=r(80171),{utf8Encode:n}=r(92611);function i(e){return e.codePointAt(0)}function a(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t=`0${t}`),`%${t}`}function o(e){const t=new Uint8Array(e.byteLength);let r=0;for(let n=0;n<e.byteLength;++n){const i=e[n];if(37!==i)t[r++]=i;else if(37!==i||s(e[n+1])&&s(e[n+2])){const s=parseInt(String.fromCodePoint(e[n+1],e[n+2]),16);t[r++]=s,n+=2}else t[r++]=i}return t.slice(0,r)}function u(e){return e<=31||e>126}const l=new Set([i(" "),i('"'),i("<"),i(">"),i("`")]),c=new Set([i(" "),i('"'),i("#"),i("<"),i(">")]);function p(e){return u(e)||c.has(e)}const h=new Set([i("?"),i("`"),i("{"),i("}")]);function d(e){return p(e)||h.has(e)}const f=new Set([i("/"),i(":"),i(";"),i("="),i("@"),i("["),i("\\"),i("]"),i("^"),i("|")]);function m(e){return d(e)||f.has(e)}const y=new Set([i("$"),i("%"),i("&"),i("+"),i(",")]),g=new Set([i("!"),i("'"),i("("),i(")"),i("~")]);function b(e,t){const r=n(e);let s="";for(const e of r)t(e)?s+=a(e):s+=String.fromCharCode(e);return s}e.exports={isC0ControlPercentEncode:u,isFragmentPercentEncode:function(e){return u(e)||l.has(e)},isQueryPercentEncode:p,isSpecialQueryPercentEncode:function(e){return p(e)||e===i("'")},isPathPercentEncode:d,isUserinfoPercentEncode:m,isURLEncodedPercentEncode:function(e){return function(e){return m(e)||y.has(e)}(e)||g.has(e)},percentDecodeString:function(e){return o(n(e))},percentDecodeBytes:o,utf8PercentEncodeString:function(e,t,r=!1){let s="";for(const n of e)s+=r&&" "===n?"+":b(n,t);return s},utf8PercentEncodeCodePoint:function(e,t){return b(String.fromCodePoint(e),t)}}},39521:(e,t,r)=>{"use strict";const s=r(7346),n=r(80171),{utf8DecodeWithoutBOM:i}=r(92611),{percentDecodeString:a,utf8PercentEncodeCodePoint:o,utf8PercentEncodeString:u,isC0ControlPercentEncode:l,isFragmentPercentEncode:c,isQueryPercentEncode:p,isSpecialQueryPercentEncode:h,isPathPercentEncode:d,isUserinfoPercentEncode:f}=r(63820);function m(e){return e.codePointAt(0)}const y={ftp:21,file:null,http:80,https:443,ws:80,wss:443},g=Symbol("failure");function b(e){return[...e].length}function E(e,t){const r=e[t];return isNaN(r)?void 0:String.fromCodePoint(r)}function A(e){return"."===e||"%2e"===e.toLowerCase()}function x(e){return 2===e.length&&n.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function v(e){return-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)}function C(e){return void 0!==y[e]}function P(e){return C(e.scheme)}function S(e){return!C(e.scheme)}function w(e){return y[e]}function T(e){if(""===e)return g;let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;let r=/[^0-7]/u;return 10===t&&(r=/[^0-9]/u),16===t&&(r=/[^0-9A-Fa-f]/u),r.test(e)?g:parseInt(e,t)}function F(e,t=!1){if("["===e[0])return"]"!==e[e.length-1]?g:function(e){const t=[0,0,0,0,0,0,0,0];let r=0,s=null,i=0;if((e=Array.from(e,(e=>e.codePointAt(0))))[i]===m(":")){if(e[i+1]!==m(":"))return g;i+=2,++r,s=r}for(;i<e.length;){if(8===r)return g;if(e[i]===m(":")){if(null!==s)return g;++i,++r,s=r;continue}let a=0,o=0;for(;o<4&&n.isASCIIHex(e[i]);)a=16*a+parseInt(E(e,i),16),++i,++o;if(e[i]===m(".")){if(0===o)return g;if(i-=o,r>6)return g;let s=0;for(;void 0!==e[i];){let a=null;if(s>0){if(!(e[i]===m(".")&&s<4))return g;++i}if(!n.isASCIIDigit(e[i]))return g;for(;n.isASCIIDigit(e[i]);){const t=parseInt(E(e,i));if(null===a)a=t;else{if(0===a)return g;a=10*a+t}if(a>255)return g;++i}t[r]=256*t[r]+a,++s,2!==s&&4!==s||++r}if(4!==s)return g;break}if(e[i]===m(":")){if(++i,void 0===e[i])return g}else if(void 0!==e[i])return g;t[r]=a,++r}if(null!==s){let e=r-s;for(r=7;0!==r&&e>0;){const n=t[s+e-1];t[s+e-1]=t[r],t[r]=n,--r,--e}}else if(null===s&&8!==r)return g;return t}(e.substring(1,e.length-1));if(t)return function(e){return v(e)?g:u(e,l)}(e);const r=function(e,t=!1){const r=s.toASCII(e,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:t,verifyDNSLength:t});return null===r||""===r?g:r}(i(a(e)));return r===g||v(o=r)||-1!==o.search(/[\u0000-\u001F]|%|\u007F/u)?g:function(e){const t=e.split(".");if(""===t[t.length-1]){if(1===t.length)return!1;t.pop()}const r=t[t.length-1];return T(r)!==g||!!/^[0-9]+$/u.test(r)}(r)?function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return g;const r=[];for(const e of t){const t=T(e);if(t===g)return g;r.push(t)}for(let e=0;e<r.length-1;++e)if(r[e]>255)return g;if(r[r.length-1]>=256**(5-r.length))return g;let s=r.pop(),n=0;for(const e of r)s+=e*256**(3-n),++n;return s}(r):r;var o}function D(e){return"number"==typeof e?function(e){let t="",r=e;for(let e=1;e<=4;++e)t=String(r%256)+t,4!==e&&(t=`.${t}`),r=Math.floor(r/256);return t}(e):e instanceof Array?`[${function(e){let t="";const r=function(e){let t=null,r=1,s=null,n=0;for(let i=0;i<e.length;++i)0!==e[i]?(n>r&&(t=s,r=n),s=null,n=0):(null===s&&(s=i),++n);return n>r?s:t}(e);let s=!1;for(let n=0;n<=7;++n)s&&0===e[n]||(s&&(s=!1),r!==n?(t+=e[n].toString(16),7!==n&&(t+=":")):(t+=0===n?"::":":",s=!0));return t}(e)}]`:e}function I(e){const{path:t}=e;var r;0!==t.length&&("file"===e.scheme&&1===t.length&&(r=t[0],/^[A-Za-z]:$/u.test(r))||t.pop())}function _(e){return""!==e.username||""!==e.password}function k(e){return"string"==typeof e.path}function B(e,t,r,s,n){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=r||"utf-8",this.stateOverride=n,this.url=s,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/gu,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const i=function(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(i!==this.input&&(this.parseError=!0),this.input=i,this.state=n||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(e=>e.codePointAt(0)));this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),r=this[`parse ${this.state}`](e,t);if(!r)break;if(r===g){this.failure=!0;break}}}B.prototype["parse scheme start"]=function(e,t){if(n.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,g;this.state="no scheme",--this.pointer}return!0},B.prototype["parse scheme"]=function(e,t){if(n.isASCIIAlphanumeric(e)||e===m("+")||e===m("-")||e===m("."))this.buffer+=t.toLowerCase();else if(e===m(":")){if(this.stateOverride){if(P(this.url)&&!C(this.buffer))return!1;if(!P(this.url)&&C(this.buffer))return!1;if((_(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===w(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===m("/")&&this.input[this.pointer+2]===m("/")||(this.parseError=!0),this.state="file"):P(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":P(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===m("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,g;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},B.prototype["parse no scheme"]=function(e){return null===this.base||k(this.base)&&e!==m("#")?g:(k(this.base)&&e===m("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},B.prototype["parse special relative or authority"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},B.prototype["parse path or authority"]=function(e){return e===m("/")?this.state="authority":(this.state="path",--this.pointer),!0},B.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===m("/")?this.state="relative slash":P(this.url)&&e===m("\\")?(this.parseError=!0,this.state="relative slash"):(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,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},B.prototype["parse relative slash"]=function(e){return!P(this.url)||e!==m("/")&&e!==m("\\")?e===m("/")?this.state="authority":(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):(e===m("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},B.prototype["parse special authority slashes"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},B.prototype["parse special authority ignore slashes"]=function(e){return e!==m("/")&&e!==m("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},B.prototype["parse authority"]=function(e,t){if(e===m("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const e=b(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===m(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const r=o(e,f);this.passwordTokenSeenFlag?this.url.password+=r:this.url.username+=r}this.buffer=""}else if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||P(this.url)&&e===m("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,g;this.pointer-=b(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},B.prototype["parse hostname"]=B.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(e!==m(":")||this.arrFlag)if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||P(this.url)&&e===m("\\")){if(--this.pointer,P(this.url)&&""===this.buffer)return this.parseError=!0,g;if(this.stateOverride&&""===this.buffer&&(_(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=F(this.buffer,S(this.url));if(e===g)return g;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===m("[")?this.arrFlag=!0:e===m("]")&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,g;if("hostname"===this.stateOverride)return!1;const e=F(this.buffer,S(this.url));if(e===g)return g;this.url.host=e,this.buffer="",this.state="port"}return!0},B.prototype["parse port"]=function(e,t){if(n.isASCIIDigit(e))this.buffer+=t;else{if(!(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||P(this.url)&&e===m("\\")||this.stateOverride))return this.parseError=!0,g;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,g;this.url.port=e===w(this.url.scheme)?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const O=new Set([m("/"),m("\\"),m("?"),m("#")]);function N(e,t){const r=e.length-t;return r>=2&&(s=e[t],i=e[t+1],n.isASCIIAlpha(s)&&(i===m(":")||i===m("|")))&&(2===r||O.has(e[t+2]));var s,i}function M(e){if(k(e))return e.path;let t="";for(const r of e.path)t+=`/${r}`;return t}B.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,N(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):I(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},B.prototype["parse file slash"]=function(e){var t;return e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!N(this.input,this.pointer)&&2===(t=this.base.path[0]).length&&n.isASCIIAlpha(t.codePointAt(0))&&":"===t[1]&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},B.prototype["parse file host"]=function(e,t){if(isNaN(e)||e===m("/")||e===m("\\")||e===m("?")||e===m("#"))if(--this.pointer,!this.stateOverride&&x(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 e=F(this.buffer,S(this.url));if(e===g)return g;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},B.prototype["parse path start"]=function(e){return P(this.url)?(e===m("\\")&&(this.parseError=!0),this.state="path",e!==m("/")&&e!==m("\\")&&--this.pointer):this.stateOverride||e!==m("?")?this.stateOverride||e!==m("#")?void 0!==e?(this.state="path",e!==m("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},B.prototype["parse path"]=function(e){var t;return isNaN(e)||e===m("/")||P(this.url)&&e===m("\\")||!this.stateOverride&&(e===m("?")||e===m("#"))?(P(this.url)&&e===m("\\")&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(I(this.url),e===m("/")||P(this.url)&&e===m("\\")||this.url.path.push("")):!A(this.buffer)||e===m("/")||P(this.url)&&e===m("\\")?A(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&x(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="",e===m("?")&&(this.url.query="",this.state="query"),e===m("#")&&(this.url.fragment="",this.state="fragment")):(e!==m("%")||n.isASCIIHex(this.input[this.pointer+1])&&n.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=o(e,d)),!0},B.prototype["parse opaque path"]=function(e){return e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):(isNaN(e)||e===m("%")||(this.parseError=!0),e!==m("%")||n.isASCIIHex(this.input[this.pointer+1])&&n.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path+=o(e,l))),!0},B.prototype["parse query"]=function(e,t){if(P(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&e===m("#")||isNaN(e)){const t=P(this.url)?h:p;this.url.query+=u(this.buffer,t),this.buffer="",e===m("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(e)||(e!==m("%")||n.isASCIIHex(this.input[this.pointer+1])&&n.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t);return!0},B.prototype["parse fragment"]=function(e){return isNaN(e)||(e!==m("%")||n.isASCIIHex(this.input[this.pointer+1])&&n.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=o(e,c)),!0},e.exports.serializeURL=function(e,t){let r=`${e.scheme}:`;return null!==e.host&&(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=`:${e.password}`),r+="@"),r+=D(e.host),null!==e.port&&(r+=`:${e.port}`)),null===e.host&&!k(e)&&e.path.length>1&&""===e.path[0]&&(r+="/."),r+=M(e),null!==e.query&&(r+=`?${e.query}`),t||null===e.fragment||(r+=`#${e.fragment}`),r},e.exports.serializePath=M,e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":{const r=e.exports.parseURL(M(t));return null===r||"http"!==r.scheme&&"https"!==r.scheme?"null":e.exports.serializeURLOrigin(r)}case"ftp":case"http":case"https":case"ws":case"wss":return function(e){let t=`${e.scheme}://`;return t+=D(e.host),null!==e.port&&(t+=`:${e.port}`),t}({scheme:t.scheme,host:t.host,port:t.port});default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const r=new B(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?null:r.url},e.exports.setTheUsername=function(e,t){e.username=u(t,f)},e.exports.setThePassword=function(e,t){e.password=u(t,f)},e.exports.serializeHost=D,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||"file"===e.scheme},e.exports.hasAnOpaquePath=k,e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,r){return void 0===r&&(r={}),e.exports.basicURLParse(t,{baseURL:r.baseURL,encodingOverride:r.encodingOverride})}},55189:(e,t,r)=>{"use strict";const{utf8Encode:s,utf8DecodeWithoutBOM:n}=r(92611),{percentDecodeBytes:i,utf8PercentEncodeString:a,isURLEncodedPercentEncode:o}=r(63820);function u(e){return e.codePointAt(0)}function l(e,t,r){let s=e.indexOf(t);for(;s>=0;)e[s]=r,s=e.indexOf(t,s+1);return e}e.exports={parseUrlencodedString:function(e){return function(e){const t=function(e,t){const r=[];let s=0,n=e.indexOf(t);for(;n>=0;)r.push(e.slice(s,n)),s=n+1,n=e.indexOf(t,s);return s!==e.length&&r.push(e.slice(s)),r}(e,u("&")),r=[];for(const e of t){if(0===e.length)continue;let t,s;const a=e.indexOf(u("="));a>=0?(t=e.slice(0,a),s=e.slice(a+1)):(t=e,s=new Uint8Array(0)),t=l(t,43,32),s=l(s,43,32);const o=n(i(t)),c=n(i(s));r.push([o,c])}return r}(s(e))},serializeUrlencoded:function(e,t=void 0){let r="utf-8";void 0!==t&&(r=t);let s="";for(const[t,n]of e.entries()){const e=a(n[0],o,!0);let i=n[1];n.length>2&&void 0!==n[2]&&("hidden"===n[2]&&"_charset_"===e?i=r:"file"===n[2]&&(i=i.name)),i=a(i,o,!0),0!==t&&(s+="&"),s+=`${e}=${i}`}return s}}},27514:(e,t)=>{"use strict";const r=Function.prototype.call.bind(Object.prototype.hasOwnProperty),s=Symbol("wrapper"),n=Symbol("impl"),i=Symbol("SameObject caches"),a=Symbol.for("[webidl2js] constructor registry"),o=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);function u(e){if(r(e,a))return e[a];const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype,t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=o}return e[a]=t,t}function l(e){return e?e[s]:null}function c(e){return e?e[n]:null}const p=Symbol("internal"),h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,d=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),y=Symbol("supported property names"),g=Symbol("indexed property get"),b=Symbol("indexed property set new"),E=Symbol("indexed property set existing"),A=Symbol("named property get"),x=Symbol("named property set new"),v=Symbol("named property set existing"),C=Symbol("named property delete"),P=Symbol("async iterator get the next iteration result"),S=Symbol("async iterator return steps"),w=Symbol("async iterator initialization steps"),T=Symbol("async iterator end of iteration");e.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:r,define:function(e,t){for(const r of Reflect.ownKeys(t)){const s=Reflect.getOwnPropertyDescriptor(t,r);if(s&&!Reflect.defineProperty(e,r,s))throw new TypeError(`Cannot redefine property: ${String(r)}`)}},newObjectInRealm:function(e,t){const r=u(e);return Object.defineProperties(Object.create(r["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))},wrapperSymbol:s,implSymbol:n,getSameObject:function(e,t,r){return e[i]||(e[i]=Object.create(null)),t in e[i]||(e[i][t]=r()),e[i][t]},ctorRegistrySymbol:a,initCtorRegistry:u,wrapperForImpl:l,implForWrapper:c,tryWrapperForImpl:function(e){return l(e)||e},tryImplForWrapper:function(e){return c(e)||e},iterInternalSymbol:p,isArrayBuffer:function(e){try{return h.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;const t=e>>>0;return t!==2**32-1&&e===`${t}`},supportsPropertyIndex:d,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:y,indexedGet:g,indexedSetNew:b,indexedSetExisting:E,namedGet:A,namedSetNew:x,namedSetExisting:v,namedDelete:C,asyncIteratorNext:P,asyncIteratorReturn:S,asyncIteratorInit:w,asyncIteratorEOI:T,iteratorResult:function([e,t],r){let s;switch(r){case"key":s=e;break;case"value":s=t;break;case"key+value":s=[e,t]}return{value:s,done:!1}}}},70483:(e,t,r)=>{"use strict";const s=r(99970),n=r(92084);t.URL=s,t.URLSearchParams=n},75962:function(e){e.exports=function(){"use strict";var e=Object.prototype.toString,t=Array.isArray||function(t){return"[object Array]"===e.call(t)};function r(e){return"function"==typeof e}function s(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function n(e,t){return null!=e&&"object"==typeof e&&t in e}var i=RegExp.prototype.test;var a=/\S/;function o(e){return!function(e,t){return i.call(e,t)}(a,e)}var u={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var l=/\s*/,c=/\s+/,p=/\s*=/,h=/\s*\}/,d=/#|\^|\/|>|\{|&|=|!/;function f(e){this.string=e,this.tail=e,this.pos=0}function m(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}f.prototype.eos=function(){return""===this.tail},f.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var r=t[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},f.prototype.scanUntil=function(e){var t,r=this.tail.search(e);switch(r){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=t.length,t},m.prototype.push=function(e){return new m(e,this)},m.prototype.lookup=function(e){var t,s,i,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var o,u,l,c=this,p=!1;c;){if(e.indexOf(".")>0)for(o=c.view,u=e.split("."),l=0;null!=o&&l<u.length;)l===u.length-1&&(p=n(o,u[l])||(s=o,i=u[l],null!=s&&"object"!=typeof s&&s.hasOwnProperty&&s.hasOwnProperty(i))),o=o[u[l++]];else o=c.view[e],p=n(c.view,e);if(p){t=o;break}c=c.parent}a[e]=t}return r(t)&&(t=t.call(this.view)),t},y.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},y.prototype.parse=function(e,r){var n=this.templateCache,i=e+":"+(r||g.tags).join(":"),a=void 0!==n,u=a?n.get(i):void 0;return null==u&&(u=function(e,r){if(!e)return[];var n,i,a,u=!1,m=[],y=[],b=[],E=!1,A=!1,x="",v=0;function C(){if(E&&!A)for(;b.length;)delete y[b.pop()];else b=[];E=!1,A=!1}function P(e){if("string"==typeof e&&(e=e.split(c,2)),!t(e)||2!==e.length)throw new Error("Invalid tags: "+e);n=new RegExp(s(e[0])+"\\s*"),i=new RegExp("\\s*"+s(e[1])),a=new RegExp("\\s*"+s("}"+e[1]))}P(r||g.tags);for(var S,w,T,F,D,I,_=new f(e);!_.eos();){if(S=_.pos,T=_.scanUntil(n))for(var k=0,B=T.length;k<B;++k)o(F=T.charAt(k))?(b.push(y.length),x+=F):(A=!0,u=!0,x+=" "),y.push(["text",F,S,S+1]),S+=1,"\n"===F&&(C(),x="",v=0,u=!1);if(!_.scan(n))break;if(E=!0,w=_.scan(d)||"name",_.scan(l),"="===w?(T=_.scanUntil(p),_.scan(p),_.scanUntil(i)):"{"===w?(T=_.scanUntil(a),_.scan(h),_.scanUntil(i),w="&"):T=_.scanUntil(i),!_.scan(i))throw new Error("Unclosed tag at "+_.pos);if(D=">"==w?[w,T,S,_.pos,x,v,u]:[w,T,S,_.pos],v++,y.push(D),"#"===w||"^"===w)m.push(D);else if("/"===w){if(!(I=m.pop()))throw new Error('Unopened section "'+T+'" at '+S);if(I[1]!==T)throw new Error('Unclosed section "'+I[1]+'" at '+S)}else"name"===w||"{"===w||"&"===w?A=!0:"="===w&&P(T)}if(C(),I=m.pop())throw new Error('Unclosed section "'+I[1]+'" at '+_.pos);return function(e){for(var t,r=[],s=r,n=[],i=0,a=e.length;i<a;++i)switch((t=e[i])[0]){case"#":case"^":s.push(t),n.push(t),s=t[4]=[];break;case"/":n.pop()[5]=t[2],s=n.length>0?n[n.length-1][4]:r;break;default:s.push(t)}return r}(function(e){for(var t,r,s=[],n=0,i=e.length;n<i;++n)(t=e[n])&&("text"===t[0]&&r&&"text"===r[0]?(r[1]+=t[1],r[3]=t[3]):(s.push(t),r=t));return s}(y))}(e,r),a&&n.set(i,u)),u},y.prototype.render=function(e,t,r,s){var n=this.getConfigTags(s),i=this.parse(e,n),a=t instanceof m?t:new m(t,void 0);return this.renderTokens(i,a,r,e,s)},y.prototype.renderTokens=function(e,t,r,s,n){for(var i,a,o,u="",l=0,c=e.length;l<c;++l)o=void 0,"#"===(a=(i=e[l])[0])?o=this.renderSection(i,t,r,s,n):"^"===a?o=this.renderInverted(i,t,r,s,n):">"===a?o=this.renderPartial(i,t,r,n):"&"===a?o=this.unescapedValue(i,t):"name"===a?o=this.escapedValue(i,t,n):"text"===a&&(o=this.rawValue(i)),void 0!==o&&(u+=o);return u},y.prototype.renderSection=function(e,s,n,i,a){var o=this,u="",l=s.lookup(e[1]);if(l){if(t(l))for(var c=0,p=l.length;c<p;++c)u+=this.renderTokens(e[4],s.push(l[c]),n,i,a);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)u+=this.renderTokens(e[4],s.push(l),n,i,a);else if(r(l)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(s.view,i.slice(e[3],e[5]),(function(e){return o.render(e,s,n,a)})))&&(u+=l)}else u+=this.renderTokens(e[4],s,n,i,a);return u}},y.prototype.renderInverted=function(e,r,s,n,i){var a=r.lookup(e[1]);if(!a||t(a)&&0===a.length)return this.renderTokens(e[4],r,s,n,i)},y.prototype.indentPartial=function(e,t,r){for(var s=t.replace(/[^ \t]/g,""),n=e.split("\n"),i=0;i<n.length;i++)n[i].length&&(i>0||!r)&&(n[i]=s+n[i]);return n.join("\n")},y.prototype.renderPartial=function(e,t,s,n){if(s){var i=this.getConfigTags(n),a=r(s)?s(e[1]):s[e[1]];if(null!=a){var o=e[6],u=e[5],l=e[4],c=a;0==u&&l&&(c=this.indentPartial(a,l,o));var p=this.parse(c,i);return this.renderTokens(p,t,s,c,n)}}},y.prototype.unescapedValue=function(e,t){var r=t.lookup(e[1]);if(null!=r)return r},y.prototype.escapedValue=function(e,t,r){var s=this.getConfigEscape(r)||g.escape,n=t.lookup(e[1]);if(null!=n)return"number"==typeof n&&s===g.escape?String(n):s(n)},y.prototype.rawValue=function(e){return e[1]},y.prototype.getConfigTags=function(e){return t(e)?e:e&&"object"==typeof e?e.tags:void 0},y.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!t(e)?e.escape:void 0};var g={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){b.templateCache=e},get templateCache(){return b.templateCache}},b=new y;return g.clearCache=function(){return b.clearCache()},g.parse=function(e,t){return b.parse(e,t)},g.render=function(e,r,s,n){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((t(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)'));var i;return b.render(e,r,s,n)},g.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return u[e]}))},g.Scanner=f,g.Context=m,g.Writer=y,g}()},38690:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach((function(e){s[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},s)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,a,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))r.call(i,l)&&(o[l]=i[l]);if(t){a=t(i);for(var c=0;c<a.length;c++)s.call(i,a[c])&&(o[a[c]]=i[a[c]])}}return o}},51482:(e,t,r)=>{"use strict";var s=r(21161);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,i,a){if(a!==s){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r}},91998:(e,t,r)=>{e.exports=r(51482)()},21161:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},77116:(e,t,r)=>{"use strict";var s=r(99497),n=r(38690),i=r(95695);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!s)throw Error(a(227));var o=new Set,u={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)o.add(t[e])}var p=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,f={},m={};function y(e,t,r,s,n,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=s,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function E(e){return e[1].toUpperCase()}function A(e,t,r,s){var n=g.hasOwnProperty(t)?g[t]:null;(null!==n?0===n.type:!s&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,r,s){if(null==t||function(e,t,r,s){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!s&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,s))return!0;if(s)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,n,s)&&(r=null),s||null===n?function(e){return!!d.call(m,e)||!d.call(f,e)&&(h.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=null===r?3!==n.type&&"":r:(t=n.attributeName,s=n.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(n=n.type)||4===n&&!0===r?"":""+r,s?e.setAttributeNS(s,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,E);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,E);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,E);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=60103,C=60106,P=60107,S=60108,w=60114,T=60109,F=60110,D=60112,I=60113,_=60120,k=60115,B=60116,O=60121,N=60128,M=60129,L=60130,R=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;v=j("react.element"),C=j("react.portal"),P=j("react.fragment"),S=j("react.strict_mode"),w=j("react.profiler"),T=j("react.provider"),F=j("react.context"),D=j("react.forward_ref"),I=j("react.suspense"),_=j("react.suspense_list"),k=j("react.memo"),B=j("react.lazy"),O=j("react.block"),j("react.scope"),N=j("react.opaque.id"),M=j("react.debug_trace_mode"),L=j("react.offscreen"),R=j("react.legacy_hidden")}var U,V="function"==typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function z(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var q=!1;function W(e,t){if(!e||q)return"";q=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var s=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){s=e}e.call(t.prototype)}else{try{throw Error()}catch(e){s=e}e()}}catch(e){if(e&&s&&"string"==typeof e.stack){for(var n=e.stack.split("\n"),i=s.stack.split("\n"),a=n.length-1,o=i.length-1;1<=a&&0<=o&&n[a]!==i[o];)o--;for(;1<=a&&0<=o;a--,o--)if(n[a]!==i[o]){if(1!==a||1!==o)do{if(a--,0>--o||n[a]!==i[o])return"\n"+n[a].replace(" at new "," at ")}while(1<=a&&0<=o);break}}}finally{q=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function K(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 22:return W(e.type._render,!1);case 1:return W(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P:return"Fragment";case C:return"Portal";case w:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case _:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case F:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case k:return H(e.type);case O:return H(e._render);case B:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function J(e){e._valueTracker||(e._valueTracker=function(e){var t=X(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(e){s=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(e){s=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=X(e)?e.checked?"true":"false":e.value),(e=s)!==r&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var r=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,s=null!=t.checked?t.checked:t.defaultChecked;r=G(null!=t.value?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&A(e,"checked",t,!1)}function re(e,t){te(e,t);var r=G(t.value),s=t.type;if(null!=r)"number"===s?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===s||"reset"===s)return void e.removeAttribute("value");t.hasOwnProperty("value")?ne(e,t.type,r):t.hasOwnProperty("defaultValue")&&ne(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function se(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!("submit"!==s&&"reset"!==s||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ne(e,t,r){"number"===t&&Q(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function ie(e,t){return e=n({children:void 0},t),(t=function(e){var t="";return s.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,r,s){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&s&&(e[r].defaultSelected=!0)}else{for(r=""+G(r),t=null,n=0;n<e.length;n++){if(e[n].value===r)return e[n].selected=!0,void(s&&(e[n].defaultSelected=!0));null!==t||e[n].disabled||(t=e[n])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return n({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:G(r)}}function le(e,t){var r=G(t.value),s=G(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=s&&(e.defaultValue=""+s)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var pe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function de(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var fe,me,ye=(me=function(e,t){if(e.namespaceURI!==pe.svg||"innerHTML"in e)e.innerHTML=t;else{for((fe=fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,s){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ge(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ee=["Webkit","ms","Moz","O"];function Ae(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function xe(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var s=0===r.indexOf("--"),n=Ae(r,t[r],s);"float"===r&&(r="cssFloat"),s?e.setProperty(r,n):e[r]=n}}Object.keys(be).forEach((function(e){Ee.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var ve=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Pe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Te=null,Fe=null;function De(e){if(e=en(e)){if("function"!=typeof we)throw Error(a(280));var t=e.stateNode;t&&(t=rn(t),we(e.stateNode,e.type,t))}}function Ie(e){Te?Fe?Fe.push(e):Fe=[e]:Te=e}function _e(){if(Te){var e=Te,t=Fe;if(Fe=Te=null,De(e),t)for(e=0;e<t.length;e++)De(t[e])}}function ke(e,t){return e(t)}function Be(e,t,r,s,n){return e(t,r,s,n)}function Oe(){}var Ne=ke,Me=!1,Le=!1;function Re(){null===Te&&null===Fe||(Oe(),_e())}function je(e,t){var r=e.stateNode;if(null===r)return null;var s=rn(r);if(null===s)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(s=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!s;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(a(231,t,typeof r));return r}var Ue=!1;if(p)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(me){Ue=!1}function $e(e,t,r,s,n,i,a,o,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(e){this.onError(e)}}var ze=!1,qe=null,We=!1,Ke=null,He={onError:function(e){ze=!0,qe=e}};function Ge(e,t,r,s,n,i,a,o,u){ze=!1,qe=null,$e.apply(He,arguments)}function Xe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ye(e){if(Xe(e)!==e)throw Error(a(188))}function Qe(e,t){for(var r=e.alternate;null!==t;){if(t===e||t===r)return!0;t=t.return}return!1}var Ze,et,tt,rt,st=!1,nt=[],it=null,at=null,ot=null,ut=new Map,lt=new Map,ct=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,r,s,n){return{blockedOn:e,domEventName:t,eventSystemFlags:16|r,nativeEvent:n,targetContainers:[s]}}function dt(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":ot=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lt.delete(t.pointerId)}}function ft(e,t,r,s,n,i){return null===e||e.nativeEvent!==i?(e=ht(t,r,s,n,i),null!==t&&null!==(t=en(t))&&et(t),e):(e.eventSystemFlags|=s,t=e.targetContainers,null!==n&&-1===t.indexOf(n)&&t.push(n),e)}function mt(e){var t=Zs(e.target);if(null!==t){var r=Xe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Je(r)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){tt(r)}))}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=en(r))&&et(t),e.blockedOn=r,!1;t.shift()}return!0}function gt(e,t,r){yt(e)&&r.delete(t)}function bt(){for(st=!1;0<nt.length;){var e=nt[0];if(null!==e.blockedOn){null!==(e=en(e.blockedOn))&&Ze(e);break}for(var t=e.targetContainers;0<t.length;){var r=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r){e.blockedOn=r;break}t.shift()}null===e.blockedOn&&nt.shift()}null!==it&&yt(it)&&(it=null),null!==at&&yt(at)&&(at=null),null!==ot&&yt(ot)&&(ot=null),ut.forEach(gt),lt.forEach(gt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,st||(st=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function At(e){function t(t){return Et(t,e)}if(0<nt.length){Et(nt[0],e);for(var r=1;r<nt.length;r++){var s=nt[r];s.blockedOn===e&&(s.blockedOn=null)}}for(null!==it&&Et(it,e),null!==at&&Et(at,e),null!==ot&&Et(ot,e),ut.forEach(t),lt.forEach(t),r=0;r<ct.length;r++)(s=ct[r]).blockedOn===e&&(s.blockedOn=null);for(;0<ct.length&&null===(r=ct[0]).blockedOn;)mt(r),null===r.blockedOn&&ct.shift()}function xt(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vt={animationend:xt("Animation","AnimationEnd"),animationiteration:xt("Animation","AnimationIteration"),animationstart:xt("Animation","AnimationStart"),transitionend:xt("Transition","TransitionEnd")},Ct={},Pt={};function St(e){if(Ct[e])return Ct[e];if(!vt[e])return e;var t,r=vt[e];for(t in r)if(r.hasOwnProperty(t)&&t in Pt)return Ct[e]=r[t];return e}p&&(Pt=document.createElement("div").style,"AnimationEvent"in window||(delete vt.animationend.animation,delete vt.animationiteration.animation,delete vt.animationstart.animation),"TransitionEvent"in window||delete vt.transitionend.transition);var wt=St("animationend"),Tt=St("animationiteration"),Ft=St("animationstart"),Dt=St("transitionend"),It=new Map,_t=new Map,kt=["abort","abort",wt,"animationEnd",Tt,"animationIteration",Ft,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dt,"transitionEnd","waiting","waiting"];function Bt(e,t){for(var r=0;r<e.length;r+=2){var s=e[r],n=e[r+1];n="on"+(n[0].toUpperCase()+n.slice(1)),_t.set(s,t),It.set(s,n),l(n,[s])}}(0,i.unstable_now)();var Ot=8;function Nt(e){if(0!=(1&e))return Ot=15,1;if(0!=(2&e))return Ot=14,2;if(0!=(4&e))return Ot=13,4;var t=24&e;return 0!==t?(Ot=12,t):0!=(32&e)?(Ot=11,32):0!=(t=192&e)?(Ot=10,t):0!=(256&e)?(Ot=9,256):0!=(t=3584&e)?(Ot=8,t):0!=(4096&e)?(Ot=7,4096):0!=(t=4186112&e)?(Ot=6,t):0!=(t=62914560&e)?(Ot=5,t):67108864&e?(Ot=4,67108864):0!=(134217728&e)?(Ot=3,134217728):0!=(t=805306368&e)?(Ot=2,t):0!=(1073741824&e)?(Ot=1,1073741824):(Ot=8,e)}function Mt(e,t){var r=e.pendingLanes;if(0===r)return Ot=0;var s=0,n=0,i=e.expiredLanes,a=e.suspendedLanes,o=e.pingedLanes;if(0!==i)s=i,n=Ot=15;else if(0!=(i=134217727&r)){var u=i&~a;0!==u?(s=Nt(u),n=Ot):0!=(o&=i)&&(s=Nt(o),n=Ot)}else 0!=(i=r&~a)?(s=Nt(i),n=Ot):0!==o&&(s=Nt(o),n=Ot);if(0===s)return 0;if(s=r&((0>(s=31-$t(s))?0:1<<s)<<1)-1,0!==t&&t!==s&&0==(t&a)){if(Nt(t),n<=Ot)return t;Ot=n}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=s;0<t;)n=1<<(r=31-$t(t)),s|=e[r],t&=~n;return s}function Lt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Rt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?Rt(10,t):e;case 10:return 0===(e=jt(192&~t))?Rt(8,t):e;case 8:return 0===(e=jt(3584&~t))&&0===(e=jt(4186112&~t))&&(e=512),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function jt(e){return e&-e}function Ut(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Vt(e,t,r){e.pendingLanes|=t;var s=t-1;e.suspendedLanes&=s,e.pingedLanes&=s,(e=e.eventTimes)[t=31-$t(t)]=r}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(zt(e)/qt|0)|0},zt=Math.log,qt=Math.LN2,Wt=i.unstable_UserBlockingPriority,Kt=i.unstable_runWithPriority,Ht=!0;function Gt(e,t,r,s){Me||Oe();var n=Jt,i=Me;Me=!0;try{Be(n,e,t,r,s)}finally{(Me=i)||Re()}}function Xt(e,t,r,s){Kt(Wt,Jt.bind(null,e,t,r,s))}function Jt(e,t,r,s){var n;if(Ht)if((n=0==(4&t))&&0<nt.length&&-1<pt.indexOf(e))e=ht(null,e,t,r,s),nt.push(e);else{var i=Yt(e,t,r,s);if(null===i)n&&dt(e,s);else{if(n){if(-1<pt.indexOf(e))return e=ht(i,e,t,r,s),void nt.push(e);if(function(e,t,r,s,n){switch(t){case"focusin":return it=ft(it,e,t,r,s,n),!0;case"dragenter":return at=ft(at,e,t,r,s,n),!0;case"mouseover":return ot=ft(ot,e,t,r,s,n),!0;case"pointerover":var i=n.pointerId;return ut.set(i,ft(ut.get(i)||null,e,t,r,s,n)),!0;case"gotpointercapture":return i=n.pointerId,lt.set(i,ft(lt.get(i)||null,e,t,r,s,n)),!0}return!1}(i,e,t,r,s))return;dt(e,s)}ks(e,t,s,null,r)}}}function Yt(e,t,r,s){var n=Se(s);if(null!==(n=Zs(n))){var i=Xe(n);if(null===i)n=null;else{var a=i.tag;if(13===a){if(null!==(n=Je(i)))return n;n=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return ks(e,t,s,n,r),null}var Qt=null,Zt=null,er=null;function tr(){if(er)return er;var e,t,r=Zt,s=r.length,n="value"in Qt?Qt.value:Qt.textContent,i=n.length;for(e=0;e<s&&r[e]===n[e];e++);var a=s-e;for(t=1;t<=a&&r[s-t]===n[i-t];t++);return er=n.slice(e,1<t?1-t:void 0)}function rr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sr(){return!0}function nr(){return!1}function ir(e){function t(t,r,s,n,i){for(var a in this._reactName=t,this._targetInst=s,this.type=r,this.nativeEvent=n,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(n):n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?sr:nr,this.isPropagationStopped=nr,this}return n(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sr)},persist:function(){},isPersistent:sr}),t}var ar,or,ur,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=ir(lr),pr=n({},lr,{view:0,detail:0}),hr=ir(pr),dr=n({},pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ur&&(ur&&"mousemove"===e.type?(ar=e.screenX-ur.screenX,or=e.screenY-ur.screenY):or=ar=0,ur=e),ar)},movementY:function(e){return"movementY"in e?e.movementY:or}}),fr=ir(dr),mr=ir(n({},dr,{dataTransfer:0})),yr=ir(n({},pr,{relatedTarget:0})),gr=ir(n({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),br=n({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Er=ir(br),Ar=ir(n({},lr,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function Sr(){return Pr}var wr=n({},pr,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?vr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sr,charCode:function(e){return"keypress"===e.type?rr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tr=ir(wr),Fr=ir(n({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dr=ir(n({},pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sr})),Ir=ir(n({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),_r=n({},dr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kr=ir(_r),Br=[9,13,27,32],Or=p&&"CompositionEvent"in window,Nr=null;p&&"documentMode"in document&&(Nr=document.documentMode);var Mr=p&&"TextEvent"in window&&!Nr,Lr=p&&(!Or||Nr&&8<Nr&&11>=Nr),Rr=String.fromCharCode(32),jr=!1;function Ur(e,t){switch(e){case"keyup":return-1!==Br.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $r=!1,zr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Wr(e,t,r,s){Ie(s),0<(t=Os(t,"onChange")).length&&(r=new cr("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var Kr=null,Hr=null;function Gr(e){ws(e,0)}function Xr(e){if(Y(tn(e)))return e}function Jr(e,t){if("change"===e)return t}var Yr=!1;if(p){var Qr;if(p){var Zr="oninput"in document;if(!Zr){var es=document.createElement("div");es.setAttribute("oninput","return;"),Zr="function"==typeof es.oninput}Qr=Zr}else Qr=!1;Yr=Qr&&(!document.documentMode||9<document.documentMode)}function ts(){Kr&&(Kr.detachEvent("onpropertychange",rs),Hr=Kr=null)}function rs(e){if("value"===e.propertyName&&Xr(Hr)){var t=[];if(Wr(t,Hr,e,Se(e)),e=Gr,Me)e(t);else{Me=!0;try{ke(e,t)}finally{Me=!1,Re()}}}}function ss(e,t,r){"focusin"===e?(ts(),Hr=r,(Kr=t).attachEvent("onpropertychange",rs)):"focusout"===e&&ts()}function ns(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xr(Hr)}function is(e,t){if("click"===e)return Xr(t)}function as(e,t){if("input"===e||"change"===e)return Xr(t)}var os="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},us=Object.prototype.hasOwnProperty;function ls(e,t){if(os(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++)if(!us.call(t,r[s])||!os(e[r[s]],t[r[s]]))return!1;return!0}function cs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ps(e,t){var r,s=cs(e);for(e=0;s;){if(3===s.nodeType){if(r=e+s.textContent.length,e<=t&&r>=t)return{node:s,offset:t-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=cs(s)}}function hs(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hs(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ds(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Q((e=t.contentWindow).document)}return t}function fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ms=p&&"documentMode"in document&&11>=document.documentMode,ys=null,gs=null,bs=null,Es=!1;function As(e,t,r){var s=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;Es||null==ys||ys!==Q(s)||(s="selectionStart"in(s=ys)&&fs(s)?{start:s.selectionStart,end:s.selectionEnd}:{anchorNode:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset},bs&&ls(bs,s)||(bs=s,0<(s=Os(gs,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=ys)))}Bt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Bt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Bt(kt,2);for(var xs="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),vs=0;vs<xs.length;vs++)_t.set(xs[vs],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ps=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cs));function Ss(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,s,n,i,o,u,l){if(Ge.apply(this,arguments),ze){if(!ze)throw Error(a(198));var c=qe;ze=!1,qe=null,We||(We=!0,Ke=c)}}(s,t,void 0,e),e.currentTarget=null}function ws(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var s=e[r],n=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var a=s.length-1;0<=a;a--){var o=s[a],u=o.instance,l=o.currentTarget;if(o=o.listener,u!==i&&n.isPropagationStopped())break e;Ss(n,o,l),i=u}else for(a=0;a<s.length;a++){if(u=(o=s[a]).instance,l=o.currentTarget,o=o.listener,u!==i&&n.isPropagationStopped())break e;Ss(n,o,l),i=u}}}if(We)throw e=Ke,We=!1,Ke=null,e}function Ts(e,t){var r=sn(t),s=e+"__bubble";r.has(s)||(_s(t,e,2,!1),r.add(s))}var Fs="_reactListening"+Math.random().toString(36).slice(2);function Ds(e){e[Fs]||(e[Fs]=!0,o.forEach((function(t){Ps.has(t)||Is(t,!1,e,null),Is(t,!0,e,null)})))}function Is(e,t,r,s){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=r;if("selectionchange"===e&&9!==r.nodeType&&(i=r.ownerDocument),null!==s&&!t&&Ps.has(e)){if("scroll"!==e)return;n|=2,i=s}var a=sn(i),o=e+"__"+(t?"capture":"bubble");a.has(o)||(t&&(n|=4),_s(i,e,n,t),a.add(o))}function _s(e,t,r,s){var n=_t.get(t);switch(void 0===n?2:n){case 0:n=Gt;break;case 1:n=Xt;break;default:n=Jt}r=n.bind(null,t,r,e),n=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(n=!0),s?void 0!==n?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):void 0!==n?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function ks(e,t,r,s,n){var i=s;if(0==(1&t)&&0==(2&t)&&null!==s)e:for(;;){if(null===s)return;var a=s.tag;if(3===a||4===a){var o=s.stateNode.containerInfo;if(o===n||8===o.nodeType&&o.parentNode===n)break;if(4===a)for(a=s.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===n||8===u.nodeType&&u.parentNode===n))return;a=a.return}for(;null!==o;){if(null===(a=Zs(o)))return;if(5===(u=a.tag)||6===u){s=i=a;continue e}o=o.parentNode}}s=s.return}!function(e,t,r){if(Le)return e();Le=!0;try{return Ne(e,t,r)}finally{Le=!1,Re()}}((function(){var s=i,n=Se(r),a=[];e:{var o=It.get(e);if(void 0!==o){var u=cr,l=e;switch(e){case"keypress":if(0===rr(r))break e;case"keydown":case"keyup":u=Tr;break;case"focusin":l="focus",u=yr;break;case"focusout":l="blur",u=yr;break;case"beforeblur":case"afterblur":u=yr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Dr;break;case wt:case Tt:case Ft:u=gr;break;case Dt:u=Ir;break;case"scroll":u=hr;break;case"wheel":u=kr;break;case"copy":case"cut":case"paste":u=Er;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Fr}var c=0!=(4&t),p=!c&&"scroll"===e,h=c?null!==o?o+"Capture":null:o;c=[];for(var d,f=s;null!==f;){var m=(d=f).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==h&&null!=(m=je(f,h))&&c.push(Bs(f,m,d))),p)break;f=f.return}0<c.length&&(o=new u(o,l,null,r,n),a.push({event:o,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=r.relatedTarget||r.fromElement)||!Zs(l)&&!l[Ys])&&(u||o)&&(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,u?(u=s,null!==(l=(l=r.relatedTarget||r.toElement)?Zs(l):null)&&(l!==(p=Xe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=s),u!==l)){if(c=fr,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Fr,m="onPointerLeave",h="onPointerEnter",f="pointer"),p=null==u?o:tn(u),d=null==l?o:tn(l),(o=new c(m,f+"leave",u,r,n)).target=p,o.relatedTarget=d,m=null,Zs(n)===s&&((c=new c(h,f+"enter",l,r,n)).target=d,c.relatedTarget=p,m=c),p=m,u&&l)e:{for(h=l,f=0,d=c=u;d;d=Ns(d))f++;for(d=0,m=h;m;m=Ns(m))d++;for(;0<f-d;)c=Ns(c),f--;for(;0<d-f;)h=Ns(h),d--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=Ns(c),h=Ns(h)}c=null}else c=null;null!==u&&Ms(a,o,u,c,!1),null!==l&&null!==p&&Ms(a,p,l,c,!0)}if("select"===(u=(o=s?tn(s):window).nodeName&&o.nodeName.toLowerCase())||"input"===u&&"file"===o.type)var y=Jr;else if(qr(o))if(Yr)y=as;else{y=ns;var g=ss}else(u=o.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(y=is);switch(y&&(y=y(e,s))?Wr(a,y,r,n):(g&&g(e,o,s),"focusout"===e&&(g=o._wrapperState)&&g.controlled&&"number"===o.type&&ne(o,"number",o.value)),g=s?tn(s):window,e){case"focusin":(qr(g)||"true"===g.contentEditable)&&(ys=g,gs=s,bs=null);break;case"focusout":bs=gs=ys=null;break;case"mousedown":Es=!0;break;case"contextmenu":case"mouseup":case"dragend":Es=!1,As(a,r,n);break;case"selectionchange":if(ms)break;case"keydown":case"keyup":As(a,r,n)}var b;if(Or)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else $r?Ur(e,r)&&(E="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(E="onCompositionStart");E&&(Lr&&"ko"!==r.locale&&($r||"onCompositionStart"!==E?"onCompositionEnd"===E&&$r&&(b=tr()):(Zt="value"in(Qt=n)?Qt.value:Qt.textContent,$r=!0)),0<(g=Os(s,E)).length&&(E=new Ar(E,e,null,r,n),a.push({event:E,listeners:g}),(b||null!==(b=Vr(r)))&&(E.data=b))),(b=Mr?function(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return 32!==t.which?null:(jr=!0,Rr);case"textInput":return(e=t.data)===Rr&&jr?null:e;default:return null}}(e,r):function(e,t){if($r)return"compositionend"===e||!Or&&Ur(e,t)?(e=tr(),er=Zt=Qt=null,$r=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(s=Os(s,"onBeforeInput")).length&&(n=new Ar("onBeforeInput","beforeinput",null,r,n),a.push({event:n,listeners:s}),n.data=b)}ws(a,t)}))}function Bs(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Os(e,t){for(var r=t+"Capture",s=[];null!==e;){var n=e,i=n.stateNode;5===n.tag&&null!==i&&(n=i,null!=(i=je(e,r))&&s.unshift(Bs(e,i,n)),null!=(i=je(e,t))&&s.push(Bs(e,i,n))),e=e.return}return s}function Ns(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ms(e,t,r,s,n){for(var i=t._reactName,a=[];null!==r&&r!==s;){var o=r,u=o.alternate,l=o.stateNode;if(null!==u&&u===s)break;5===o.tag&&null!==l&&(o=l,n?null!=(u=je(r,i))&&a.unshift(Bs(r,u,o)):n||null!=(u=je(r,i))&&a.push(Bs(r,u,o))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}function Ls(){}var Rs=null,js=null;function Us(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vs(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var $s="function"==typeof setTimeout?setTimeout:void 0,zs="function"==typeof clearTimeout?clearTimeout:void 0;function qs(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Ws(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ks(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Hs=0,Gs=Math.random().toString(36).slice(2),Xs="__reactFiber$"+Gs,Js="__reactProps$"+Gs,Ys="__reactContainer$"+Gs,Qs="__reactEvents$"+Gs;function Zs(e){var t=e[Xs];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ys]||r[Xs]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Ks(e);null!==e;){if(r=e[Xs])return r;e=Ks(e)}return t}r=(e=r).parentNode}return null}function en(e){return!(e=e[Xs]||e[Ys])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function tn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function rn(e){return e[Js]||null}function sn(e){var t=e[Qs];return void 0===t&&(t=e[Qs]=new Set),t}var nn=[],an=-1;function on(e){return{current:e}}function un(e){0>an||(e.current=nn[an],nn[an]=null,an--)}function ln(e,t){an++,nn[an]=e.current,e.current=t}var cn={},pn=on(cn),hn=on(!1),dn=cn;function fn(e,t){var r=e.type.contextTypes;if(!r)return cn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var n,i={};for(n in r)i[n]=t[n];return s&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mn(e){return null!=e.childContextTypes}function yn(){un(hn),un(pn)}function gn(e,t,r){if(pn.current!==cn)throw Error(a(168));ln(pn,t),ln(hn,r)}function bn(e,t,r){var s=e.stateNode;if(e=t.childContextTypes,"function"!=typeof s.getChildContext)return r;for(var i in s=s.getChildContext())if(!(i in e))throw Error(a(108,H(t)||"Unknown",i));return n({},r,s)}function En(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,dn=pn.current,ln(pn,e),ln(hn,hn.current),!0}function An(e,t,r){var s=e.stateNode;if(!s)throw Error(a(169));r?(e=bn(e,t,dn),s.__reactInternalMemoizedMergedChildContext=e,un(hn),un(pn),ln(pn,e)):un(hn),ln(hn,r)}var xn=null,vn=null,Cn=i.unstable_runWithPriority,Pn=i.unstable_scheduleCallback,Sn=i.unstable_cancelCallback,wn=i.unstable_shouldYield,Tn=i.unstable_requestPaint,Fn=i.unstable_now,Dn=i.unstable_getCurrentPriorityLevel,In=i.unstable_ImmediatePriority,_n=i.unstable_UserBlockingPriority,kn=i.unstable_NormalPriority,Bn=i.unstable_LowPriority,On=i.unstable_IdlePriority,Nn={},Mn=void 0!==Tn?Tn:function(){},Ln=null,Rn=null,jn=!1,Un=Fn(),Vn=1e4>Un?Fn:function(){return Fn()-Un};function $n(){switch(Dn()){case In:return 99;case _n:return 98;case kn:return 97;case Bn:return 96;case On:return 95;default:throw Error(a(332))}}function zn(e){switch(e){case 99:return In;case 98:return _n;case 97:return kn;case 96:return Bn;case 95:return On;default:throw Error(a(332))}}function qn(e,t){return e=zn(e),Cn(e,t)}function Wn(e,t,r){return e=zn(e),Pn(e,t,r)}function Kn(){if(null!==Rn){var e=Rn;Rn=null,Sn(e)}Hn()}function Hn(){if(!jn&&null!==Ln){jn=!0;var e=0;try{var t=Ln;qn(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Ln=null}catch(t){throw null!==Ln&&(Ln=Ln.slice(e+1)),Pn(In,Kn),t}finally{jn=!1}}}var Gn=x.ReactCurrentBatchConfig;function Xn(e,t){if(e&&e.defaultProps){for(var r in t=n({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var Jn=on(null),Yn=null,Qn=null,Zn=null;function ei(){Zn=Qn=Yn=null}function ti(e){var t=Jn.current;un(Jn),e.type._context._currentValue=t}function ri(e,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)===t){if(null===r||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,null!==r&&(r.childLanes|=t);e=e.return}}function si(e,t){Yn=e,Zn=Qn=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Oa=!0),e.firstContext=null)}function ni(e,t){if(Zn!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zn=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qn){if(null===Yn)throw Error(a(308));Qn=t,Yn.dependencies={lanes:0,firstContext:t,responders:null}}else Qn=Qn.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function li(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function ci(e,t){var r=e.updateQueue,s=e.alternate;if(null!==s&&r===(s=s.updateQueue)){var n=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?n=i=a:i=i.next=a,r=r.next}while(null!==r);null===i?n=i=t:i=i.next=t}else n=i=t;return r={baseState:s.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:s.shared,effects:s.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function pi(e,t,r,s){var i=e.updateQueue;ii=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var l=u,c=l.next;l.next=null,null===o?a=c:o.next=c,o=l;var p=e.alternate;if(null!==p){var h=(p=p.updateQueue).lastBaseUpdate;h!==o&&(null===h?p.firstBaseUpdate=c:h.next=c,p.lastBaseUpdate=l)}}if(null!==a){for(h=i.baseState,o=0,p=c=l=null;;){u=a.lane;var d=a.eventTime;if((s&u)===u){null!==p&&(p=p.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(u=t,d=r,m.tag){case 1:if("function"==typeof(f=m.payload)){h=f.call(d,h,u);break e}h=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null==(u="function"==typeof(f=m.payload)?f.call(d,h,u):f))break e;h=n({},h,u);break e;case 2:ii=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else d={eventTime:d,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===p?(c=p=d,l=h):p=p.next=d,o|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===p&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=p,Ro|=o,e.lanes=o,e.memoizedState=h}}function hi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var s=e[t],n=s.callback;if(null!==n){if(s.callback=null,s=r,"function"!=typeof n)throw Error(a(191,n));n.call(s)}}}var di=(new s.Component).refs;function fi(e,t,r,s){r=null==(r=r(s,t=e.memoizedState))?t:n({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var mi={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var s=lu(),n=cu(e),i=ui(s,n);i.payload=t,null!=r&&(i.callback=r),li(e,i),pu(e,n,s)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=lu(),n=cu(e),i=ui(s,n);i.tag=1,i.payload=t,null!=r&&(i.callback=r),li(e,i),pu(e,n,s)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=lu(),s=cu(e),n=ui(r,s);n.tag=2,null!=t&&(n.callback=t),li(e,n),pu(e,s,r)}};function yi(e,t,r,s,n,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(s,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ls(r,s)&&ls(n,i))}function gi(e,t,r){var s=!1,n=cn,i=t.contextType;return"object"==typeof i&&null!==i?i=ni(i):(n=mn(t)?dn:pn.current,i=(s=null!=(s=t.contextTypes))?fn(e,n):cn),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,s&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function bi(e,t,r,s){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,s),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function Ei(e,t,r,s){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs=di,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?n.context=ni(i):(i=mn(t)?dn:pn.current,n.context=fn(e,i)),pi(e,r,n,s),n.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(fi(e,t,i,r),n.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof n.getSnapshotBeforeUpdate||"function"!=typeof n.UNSAFE_componentWillMount&&"function"!=typeof n.componentWillMount||(t=n.state,"function"==typeof n.componentWillMount&&n.componentWillMount(),"function"==typeof n.UNSAFE_componentWillMount&&n.UNSAFE_componentWillMount(),t!==n.state&&mi.enqueueReplaceState(n,n.state,null),pi(e,r,n,s),n.state=e.memoizedState),"function"==typeof n.componentDidMount&&(e.flags|=4)}var Ai=Array.isArray;function xi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var s=r.stateNode}if(!s)throw Error(a(147,e));var n=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===n?t.ref:(t=function(e){var t=s.refs;t===di&&(t=s.refs={}),null===e?delete t[n]:t[n]=e},t._stringRef=n,t)}if("string"!=typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function vi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ci(e){function t(t,r){if(e){var s=t.lastEffect;null!==s?(s.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,s){if(!e)return null;for(;null!==s;)t(r,s),s=s.sibling;return null}function s(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function n(e,t){return(e=$u(e,t)).index=0,e.sibling=null,e}function i(t,r,s){return t.index=s,e?null!==(s=t.alternate)?(s=s.index)<r?(t.flags=2,r):s:(t.flags=2,r):r}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,r,s){return null===t||6!==t.tag?((t=Ku(r,e.mode,s)).return=e,t):((t=n(t,r)).return=e,t)}function l(e,t,r,s){return null!==t&&t.elementType===r.type?((s=n(t,r.props)).ref=xi(e,t,r),s.return=e,s):((s=zu(r.type,r.key,r.props,null,e.mode,s)).ref=xi(e,t,r),s.return=e,s)}function c(e,t,r,s){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Hu(r,e.mode,s)).return=e,t):((t=n(t,r.children||[])).return=e,t)}function p(e,t,r,s,i){return null===t||7!==t.tag?((t=qu(r,e.mode,s,i)).return=e,t):((t=n(t,r)).return=e,t)}function h(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Ku(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case v:return(r=zu(t.type,t.key,t.props,null,e.mode,r)).ref=xi(e,null,t),r.return=e,r;case C:return(t=Hu(t,e.mode,r)).return=e,t}if(Ai(t)||$(t))return(t=qu(t,e.mode,r,null)).return=e,t;vi(e,t)}return null}function d(e,t,r,s){var n=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==n?null:u(e,t,""+r,s);if("object"==typeof r&&null!==r){switch(r.$$typeof){case v:return r.key===n?r.type===P?p(e,t,r.props.children,s,n):l(e,t,r,s):null;case C:return r.key===n?c(e,t,r,s):null}if(Ai(r)||$(r))return null!==n?null:p(e,t,r,s,null);vi(e,r)}return null}function f(e,t,r,s,n){if("string"==typeof s||"number"==typeof s)return u(t,e=e.get(r)||null,""+s,n);if("object"==typeof s&&null!==s){switch(s.$$typeof){case v:return e=e.get(null===s.key?r:s.key)||null,s.type===P?p(t,e,s.props.children,n,s.key):l(t,e,s,n);case C:return c(t,e=e.get(null===s.key?r:s.key)||null,s,n)}if(Ai(s)||$(s))return p(t,e=e.get(r)||null,s,n,null);vi(t,s)}return null}function m(n,a,o,u){for(var l=null,c=null,p=a,m=a=0,y=null;null!==p&&m<o.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=d(n,p,o[m],u);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(n,p),a=i(g,a,m),null===c?l=g:c.sibling=g,c=g,p=y}if(m===o.length)return r(n,p),l;if(null===p){for(;m<o.length;m++)null!==(p=h(n,o[m],u))&&(a=i(p,a,m),null===c?l=p:c.sibling=p,c=p);return l}for(p=s(n,p);m<o.length;m++)null!==(y=f(p,n,m,o[m],u))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=i(y,a,m),null===c?l=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(n,e)})),l}function y(n,o,u,l){var c=$(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var p=c=null,m=o,y=o=0,g=null,b=u.next();null!==m&&!b.done;y++,b=u.next()){m.index>y?(g=m,m=null):g=m.sibling;var E=d(n,m,b.value,l);if(null===E){null===m&&(m=g);break}e&&m&&null===E.alternate&&t(n,m),o=i(E,o,y),null===p?c=E:p.sibling=E,p=E,m=g}if(b.done)return r(n,m),c;if(null===m){for(;!b.done;y++,b=u.next())null!==(b=h(n,b.value,l))&&(o=i(b,o,y),null===p?c=b:p.sibling=b,p=b);return c}for(m=s(n,m);!b.done;y++,b=u.next())null!==(b=f(m,n,y,b.value,l))&&(e&&null!==b.alternate&&m.delete(null===b.key?y:b.key),o=i(b,o,y),null===p?c=b:p.sibling=b,p=b);return e&&m.forEach((function(e){return t(n,e)})),c}return function(e,s,i,u){var l="object"==typeof i&&null!==i&&i.type===P&&null===i.key;l&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case v:e:{for(c=i.key,l=s;null!==l;){if(l.key===c){if(7===l.tag){if(i.type===P){r(e,l.sibling),(s=n(l,i.props.children)).return=e,e=s;break e}}else if(l.elementType===i.type){r(e,l.sibling),(s=n(l,i.props)).ref=xi(e,l,i),s.return=e,e=s;break e}r(e,l);break}t(e,l),l=l.sibling}i.type===P?((s=qu(i.props.children,e.mode,u,i.key)).return=e,e=s):((u=zu(i.type,i.key,i.props,null,e.mode,u)).ref=xi(e,s,i),u.return=e,e=u)}return o(e);case C:e:{for(l=i.key;null!==s;){if(s.key===l){if(4===s.tag&&s.stateNode.containerInfo===i.containerInfo&&s.stateNode.implementation===i.implementation){r(e,s.sibling),(s=n(s,i.children||[])).return=e,e=s;break e}r(e,s);break}t(e,s),s=s.sibling}(s=Hu(i,e.mode,u)).return=e,e=s}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==s&&6===s.tag?(r(e,s.sibling),(s=n(s,i)).return=e,e=s):(r(e,s),(s=Ku(i,e.mode,u)).return=e,e=s),o(e);if(Ai(i))return m(e,s,i,u);if($(i))return y(e,s,i,u);if(c&&vi(e,i),void 0===i&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,H(e.type)||"Component"))}return r(e,s)}}var Pi=Ci(!0),Si=Ci(!1),wi={},Ti=on(wi),Fi=on(wi),Di=on(wi);function Ii(e){if(e===wi)throw Error(a(174));return e}function _i(e,t){switch(ln(Di,t),ln(Fi,e),ln(Ti,wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:de(null,"");break;default:t=de(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}un(Ti),ln(Ti,t)}function ki(){un(Ti),un(Fi),un(Di)}function Bi(e){Ii(Di.current);var t=Ii(Ti.current),r=de(t,e.type);t!==r&&(ln(Fi,e),ln(Ti,r))}function Oi(e){Fi.current===e&&(un(Ti),un(Fi))}var Ni=on(0);function Mi(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Li=null,Ri=null,ji=!1;function Ui(e,t){var r=Uu(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Vi(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function $i(e){if(ji){var t=Ri;if(t){var r=t;if(!Vi(e,t)){if(!(t=Ws(r.nextSibling))||!Vi(e,t))return e.flags=-1025&e.flags|2,ji=!1,void(Li=e);Ui(Li,r)}Li=e,Ri=Ws(t.firstChild)}else e.flags=-1025&e.flags|2,ji=!1,Li=e}}function zi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Li=e}function qi(e){if(e!==Li)return!1;if(!ji)return zi(e),ji=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vs(t,e.memoizedProps))for(t=Ri;t;)Ui(e,t),t=Ws(t.nextSibling);if(zi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ri=Ws(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ri=null}}else Ri=Li?Ws(e.stateNode.nextSibling):null;return!0}function Wi(){Ri=Li=null,ji=!1}var Ki=[];function Hi(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var Gi=x.ReactCurrentDispatcher,Xi=x.ReactCurrentBatchConfig,Ji=0,Yi=null,Qi=null,Zi=null,ea=!1,ta=!1;function ra(){throw Error(a(321))}function sa(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!os(e[r],t[r]))return!1;return!0}function na(e,t,r,s,n,i){if(Ji=i,Yi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=null===e||null===e.memoizedState?Ia:_a,e=r(s,n),ta){i=0;do{if(ta=!1,!(25>i))throw Error(a(301));i+=1,Zi=Qi=null,t.updateQueue=null,Gi.current=ka,e=r(s,n)}while(ta)}if(Gi.current=Da,t=null!==Qi&&null!==Qi.next,Ji=0,Zi=Qi=Yi=null,ea=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e,Zi}function aa(){if(null===Qi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Zi?Yi.memoizedState:Zi.next;if(null!==t)Zi=t,Qi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e}return Zi}function oa(e,t){return"function"==typeof t?t(e):t}function ua(e){var t=aa(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var s=Qi,n=s.baseQueue,i=r.pending;if(null!==i){if(null!==n){var o=n.next;n.next=i.next,i.next=o}s.baseQueue=n=i,r.pending=null}if(null!==n){n=n.next,s=s.baseState;var u=o=i=null,l=n;do{var c=l.lane;if((Ji&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),s=l.eagerReducer===e?l.eagerState:e(s,l.action);else{var p={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(o=u=p,i=s):u=u.next=p,Yi.lanes|=c,Ro|=c}l=l.next}while(null!==l&&l!==n);null===u?i=s:u.next=o,os(s,t.memoizedState)||(Oa=!0),t.memoizedState=s,t.baseState=i,t.baseQueue=u,r.lastRenderedState=s}return[t.memoizedState,r.dispatch]}function la(e){var t=aa(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var s=r.dispatch,n=r.pending,i=t.memoizedState;if(null!==n){r.pending=null;var o=n=n.next;do{i=e(i,o.action),o=o.next}while(o!==n);os(i,t.memoizedState)||(Oa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,s]}function ca(e,t,r){var s=t._getVersion;s=s(t._source);var n=t._workInProgressVersionPrimary;if(null!==n?e=n===s:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=s,Ki.push(t))),e)return r(t._source);throw Ki.push(t),Error(a(350))}function pa(e,t,r,s){var n=Io;if(null===n)throw Error(a(349));var i=t._getVersion,o=i(t._source),u=Gi.current,l=u.useState((function(){return ca(n,t,r)})),c=l[1],p=l[0];l=Zi;var h=e.memoizedState,d=h.refs,f=d.getSnapshot,m=h.source;h=h.subscribe;var y=Yi;return e.memoizedState={refs:d,source:t,subscribe:s},u.useEffect((function(){d.getSnapshot=r,d.setSnapshot=c;var e=i(t._source);if(!os(o,e)){e=r(t._source),os(p,e)||(c(e),e=cu(y),n.mutableReadLanes|=e&n.pendingLanes),e=n.mutableReadLanes,n.entangledLanes|=e;for(var s=n.entanglements,a=e;0<a;){var u=31-$t(a),l=1<<u;s[u]|=e,a&=~l}}}),[r,t,s]),u.useEffect((function(){return s(t._source,(function(){var e=d.getSnapshot,r=d.setSnapshot;try{r(e(t._source));var s=cu(y);n.mutableReadLanes|=s&n.pendingLanes}catch(e){r((function(){throw e}))}}))}),[t,s]),os(f,r)&&os(m,t)&&os(h,s)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:p}).dispatch=c=Fa.bind(null,Yi,e),l.queue=e,l.baseQueue=null,p=ca(n,t,r),l.memoizedState=l.baseState=p),p}function ha(e,t,r){return pa(aa(),e,t,r)}function da(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Fa.bind(null,Yi,e),[t.memoizedState,e]}function fa(e,t,r,s){return e={tag:e,create:t,destroy:r,deps:s,next:null},null===(t=Yi.updateQueue)?(t={lastEffect:null},Yi.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e),e}function ma(e){return e={current:e},ia().memoizedState=e}function ya(){return aa().memoizedState}function ga(e,t,r,s){var n=ia();Yi.flags|=e,n.memoizedState=fa(1|t,r,void 0,void 0===s?null:s)}function ba(e,t,r,s){var n=aa();s=void 0===s?null:s;var i=void 0;if(null!==Qi){var a=Qi.memoizedState;if(i=a.destroy,null!==s&&sa(s,a.deps))return void fa(t,r,i,s)}Yi.flags|=e,n.memoizedState=fa(1|t,r,i,s)}function Ea(e,t){return ga(516,4,e,t)}function Aa(e,t){return ba(516,4,e,t)}function xa(e,t){return ba(4,2,e,t)}function va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ca(e,t,r){return r=null!=r?r.concat([e]):null,ba(4,2,va.bind(null,t,e),r)}function Pa(){}function Sa(e,t){var r=aa();t=void 0===t?null:t;var s=r.memoizedState;return null!==s&&null!==t&&sa(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function wa(e,t){var r=aa();t=void 0===t?null:t;var s=r.memoizedState;return null!==s&&null!==t&&sa(t,s[1])?s[0]:(e=e(),r.memoizedState=[e,t],e)}function Ta(e,t){var r=$n();qn(98>r?98:r,(function(){e(!0)})),qn(97<r?97:r,(function(){var r=Xi.transition;Xi.transition=1;try{e(!1),t()}finally{Xi.transition=r}}))}function Fa(e,t,r){var s=lu(),n=cu(e),i={lane:n,action:r,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Yi||null!==a&&a===Yi)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,u=a(o,r);if(i.eagerReducer=a,i.eagerState=u,os(u,o))return}catch(e){}pu(e,n,s)}}var Da={readContext:ni,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useLayoutEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useDeferredValue:ra,useTransition:ra,useMutableSource:ra,useOpaqueIdentifier:ra,unstable_isNewReconciler:!1},Ia={readContext:ni,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:ni,useEffect:Ea,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,ga(4,2,va.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var r=ia();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=ia();return t=void 0!==r?r(t):t,s.memoizedState=s.baseState=t,e=(e=s.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Fa.bind(null,Yi,e),[s.memoizedState,e]},useRef:ma,useState:da,useDebugValue:Pa,useDeferredValue:function(e){var t=da(e),r=t[0],s=t[1];return Ea((function(){var t=Xi.transition;Xi.transition=1;try{s(e)}finally{Xi.transition=t}}),[e]),r},useTransition:function(){var e=da(!1),t=e[0];return ma(e=Ta.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,r){var s=ia();return s.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},pa(s,e,t,r)},useOpaqueIdentifier:function(){if(ji){var e=!1,t=function(e){return{$$typeof:N,toString:e,valueOf:e}}((function(){throw e||(e=!0,r("r:"+(Hs++).toString(36))),Error(a(355))})),r=da(t)[1];return 0==(2&Yi.mode)&&(Yi.flags|=516,fa(5,(function(){r("r:"+(Hs++).toString(36))}),void 0,null)),t}return da(t="r:"+(Hs++).toString(36)),t},unstable_isNewReconciler:!1},_a={readContext:ni,useCallback:Sa,useContext:ni,useEffect:Aa,useImperativeHandle:Ca,useLayoutEffect:xa,useMemo:wa,useReducer:ua,useRef:ya,useState:function(){return ua(oa)},useDebugValue:Pa,useDeferredValue:function(e){var t=ua(oa),r=t[0],s=t[1];return Aa((function(){var t=Xi.transition;Xi.transition=1;try{s(e)}finally{Xi.transition=t}}),[e]),r},useTransition:function(){var e=ua(oa)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return ua(oa)[0]},unstable_isNewReconciler:!1},ka={readContext:ni,useCallback:Sa,useContext:ni,useEffect:Aa,useImperativeHandle:Ca,useLayoutEffect:xa,useMemo:wa,useReducer:la,useRef:ya,useState:function(){return la(oa)},useDebugValue:Pa,useDeferredValue:function(e){var t=la(oa),r=t[0],s=t[1];return Aa((function(){var t=Xi.transition;Xi.transition=1;try{s(e)}finally{Xi.transition=t}}),[e]),r},useTransition:function(){var e=la(oa)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return la(oa)[0]},unstable_isNewReconciler:!1},Ba=x.ReactCurrentOwner,Oa=!1;function Na(e,t,r,s){t.child=null===e?Si(t,null,r,s):Pi(t,e.child,r,s)}function Ma(e,t,r,s,n){r=r.render;var i=t.ref;return si(t,n),s=na(e,t,r,s,i,n),null===e||Oa?(t.flags|=1,Na(e,t,s,n),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n,to(e,t,n))}function La(e,t,r,s,n,i){if(null===e){var a=r.type;return"function"!=typeof a||Vu(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=zu(r.type,null,s,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ra(e,t,a,s,n,i))}return a=e.child,0==(n&i)&&(n=a.memoizedProps,(r=null!==(r=r.compare)?r:ls)(n,s)&&e.ref===t.ref)?to(e,t,i):(t.flags|=1,(e=$u(a,s)).ref=t.ref,e.return=t,t.child=e)}function Ra(e,t,r,s,n,i){if(null!==e&&ls(e.memoizedProps,s)&&e.ref===t.ref){if(Oa=!1,0==(i&n))return t.lanes=e.lanes,to(e,t,i);0!=(16384&e.flags)&&(Oa=!0)}return Va(e,t,r,s,i)}function ja(e,t,r){var s=t.pendingProps,n=s.children,i=null!==e?e.memoizedState:null;if("hidden"===s.mode||"unstable-defer-without-hiding"===s.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bu(0,r);else{if(0==(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bu(0,e),null;t.memoizedState={baseLanes:0},bu(0,null!==i?i.baseLanes:r)}else null!==i?(s=i.baseLanes|r,t.memoizedState=null):s=r,bu(0,s);return Na(e,t,n,r),t.child}function Ua(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=128)}function Va(e,t,r,s,n){var i=mn(r)?dn:pn.current;return i=fn(t,i),si(t,n),r=na(e,t,r,s,i,n),null===e||Oa?(t.flags|=1,Na(e,t,r,n),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n,to(e,t,n))}function $a(e,t,r,s,n){if(mn(r)){var i=!0;En(t)}else i=!1;if(si(t,n),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),gi(t,r,s),Ei(t,r,s,n),s=!0;else if(null===e){var a=t.stateNode,o=t.memoizedProps;a.props=o;var u=a.context,l=r.contextType;l="object"==typeof l&&null!==l?ni(l):fn(t,l=mn(r)?dn:pn.current);var c=r.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==s||u!==l)&&bi(t,a,s,l),ii=!1;var h=t.memoizedState;a.state=h,pi(t,s,a,n),u=t.memoizedState,o!==s||h!==u||hn.current||ii?("function"==typeof c&&(fi(t,r,c,s),u=t.memoizedState),(o=ii||yi(t,r,o,s,h,u,l))?(p||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=s,t.memoizedState=u),a.props=s,a.state=u,a.context=l,s=o):("function"==typeof a.componentDidMount&&(t.flags|=4),s=!1)}else{a=t.stateNode,oi(e,t),o=t.memoizedProps,l=t.type===t.elementType?o:Xn(t.type,o),a.props=l,p=t.pendingProps,h=a.context,u="object"==typeof(u=r.contextType)&&null!==u?ni(u):fn(t,u=mn(r)?dn:pn.current);var d=r.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==p||h!==u)&&bi(t,a,s,u),ii=!1,h=t.memoizedState,a.state=h,pi(t,s,a,n);var f=t.memoizedState;o!==p||h!==f||hn.current||ii?("function"==typeof d&&(fi(t,r,d,s),f=t.memoizedState),(l=ii||yi(t,r,l,s,h,f,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(s,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(s,f,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=s,t.memoizedState=f),a.props=s,a.state=f,a.context=u,s=l):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),s=!1)}return za(e,t,r,s,i,n)}function za(e,t,r,s,n,i){Ua(e,t);var a=0!=(64&t.flags);if(!s&&!a)return n&&An(t,r,!1),to(e,t,i);s=t.stateNode,Ba.current=t;var o=a&&"function"!=typeof r.getDerivedStateFromError?null:s.render();return t.flags|=1,null!==e&&a?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,o,i)):Na(e,t,o,i),t.memoizedState=s.state,n&&An(t,r,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?gn(0,t.pendingContext,t.pendingContext!==t.context):t.context&&gn(0,t.context,!1),_i(e,t.containerInfo)}var Wa,Ka,Ha,Ga,Xa={dehydrated:null,retryLane:0};function Ja(e,t,r){var s,n=t.pendingProps,i=Ni.current,a=!1;return(s=0!=(64&t.flags))||(s=(null===e||null!==e.memoizedState)&&0!=(2&i)),s?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===n.fallback||!0===n.unstable_avoidThisFallback||(i|=1),ln(Ni,1&i),null===e?(void 0!==n.fallback&&$i(t),e=n.children,i=n.fallback,a?(e=Ya(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Xa,e):"number"==typeof n.unstable_expectedLoadTime?(e=Ya(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Xa,t.lanes=33554432,e):((r=Wu({mode:"visible",children:e},t.mode,r,null)).return=t,t.child=r)):(e.memoizedState,a?(n=function(e,t,r,s,n){var i=t.mode,a=e.child;e=a.sibling;var o={mode:"hidden",children:r};return 0==(2&i)&&t.child!==a?((r=t.child).childLanes=0,r.pendingProps=o,null!==(a=r.lastEffect)?(t.firstEffect=r.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):r=$u(a,o),null!==e?s=$u(e,s):(s=qu(s,i,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,s}(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=Xa,n):(r=function(e,t,r,s){var n=e.child;return e=n.sibling,r=$u(n,{mode:"visible",children:r}),0==(2&t.mode)&&(r.lanes=s),r.return=t,r.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}(e,t,n.children,r),t.memoizedState=null,r))}function Ya(e,t,r,s){var n=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&n)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Wu(t,n,0,null),r=qu(r,n,s,null),i.return=e,r.return=e,i.sibling=r,e.child=i,r}function Qa(e,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ri(e.return,t)}function Za(e,t,r,s,n,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:n,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=s,a.tail=r,a.tailMode=n,a.lastEffect=i)}function eo(e,t,r){var s=t.pendingProps,n=s.revealOrder,i=s.tail;if(Na(e,t,s.children,r),0!=(2&(s=Ni.current)))s=1&s|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qa(e,r);else if(19===e.tag)Qa(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(ln(Ni,s),0==(2&t.mode))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;null!==r;)null!==(e=r.alternate)&&null===Mi(e)&&(n=r),r=r.sibling;null===(r=n)?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),Za(t,!1,n,r,i,t.lastEffect);break;case"backwards":for(r=null,n=t.child,t.child=null;null!==n;){if(null!==(e=n.alternate)&&null===Mi(e)){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}Za(t,!0,r,null,i,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function to(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ro|=t.lanes,0!=(r&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=$u(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=$u(e,e.pendingProps)).return=t;r.sibling=null}return t.child}return null}function ro(e,t){if(!ji)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;null!==r;)null!==r.alternate&&(s=r),r=r.sibling;null===s?t||null===e.tail?e.tail=null:e.tail.sibling=null:s.sibling=null}}function so(e,t,r){var s=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mn(t.type)&&yn(),null;case 3:return ki(),un(hn),un(pn),Hi(),(s=t.stateNode).pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:s.hydrate||(t.flags|=256)),Ka(t),null;case 5:Oi(t);var i=Ii(Di.current);if(r=t.type,null!==e&&null!=t.stateNode)Ha(e,t,r,s,i),e.ref!==t.ref&&(t.flags|=128);else{if(!s){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ii(Ti.current),qi(t)){s=t.stateNode,r=t.type;var o=t.memoizedProps;switch(s[Xs]=t,s[Js]=o,r){case"dialog":Ts("cancel",s),Ts("close",s);break;case"iframe":case"object":case"embed":Ts("load",s);break;case"video":case"audio":for(e=0;e<Cs.length;e++)Ts(Cs[e],s);break;case"source":Ts("error",s);break;case"img":case"image":case"link":Ts("error",s),Ts("load",s);break;case"details":Ts("toggle",s);break;case"input":ee(s,o),Ts("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!o.multiple},Ts("invalid",s);break;case"textarea":ue(s,o),Ts("invalid",s)}for(var l in Ce(r,o),e=null,o)o.hasOwnProperty(l)&&(i=o[l],"children"===l?"string"==typeof i?s.textContent!==i&&(e=["children",i]):"number"==typeof i&&s.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Ts("scroll",s));switch(r){case"input":J(s),se(s,o,!0);break;case"textarea":J(s),ce(s);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(s.onclick=Ls)}s=e,t.updateQueue=s,null!==s&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===pe.html&&(e=he(r)),e===pe.html?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof s.is?e=l.createElement(r,{is:s.is}):(e=l.createElement(r),"select"===r&&(l=e,s.multiple?l.multiple=!0:s.size&&(l.size=s.size))):e=l.createElementNS(e,r),e[Xs]=t,e[Js]=s,Wa(e,t,!1,!1),t.stateNode=e,l=Pe(r,s),r){case"dialog":Ts("cancel",e),Ts("close",e),i=s;break;case"iframe":case"object":case"embed":Ts("load",e),i=s;break;case"video":case"audio":for(i=0;i<Cs.length;i++)Ts(Cs[i],e);i=s;break;case"source":Ts("error",e),i=s;break;case"img":case"image":case"link":Ts("error",e),Ts("load",e),i=s;break;case"details":Ts("toggle",e),i=s;break;case"input":ee(e,s),i=Z(e,s),Ts("invalid",e);break;case"option":i=ie(e,s);break;case"select":e._wrapperState={wasMultiple:!!s.multiple},i=n({},s,{value:void 0}),Ts("invalid",e);break;case"textarea":ue(e,s),i=oe(e,s),Ts("invalid",e);break;default:i=s}Ce(r,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var p=c[o];"style"===o?xe(e,p):"dangerouslySetInnerHTML"===o?null!=(p=p?p.__html:void 0)&&ye(e,p):"children"===o?"string"==typeof p?("textarea"!==r||""!==p)&&ge(e,p):"number"==typeof p&&ge(e,""+p):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(u.hasOwnProperty(o)?null!=p&&"onScroll"===o&&Ts("scroll",e):null!=p&&A(e,o,p,l))}switch(r){case"input":J(e),se(e,s,!1);break;case"textarea":J(e),ce(e);break;case"option":null!=s.value&&e.setAttribute("value",""+G(s.value));break;case"select":e.multiple=!!s.multiple,null!=(o=s.value)?ae(e,!!s.multiple,o,!1):null!=s.defaultValue&&ae(e,!!s.multiple,s.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Ls)}Us(r,s)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(e,t,e.memoizedProps,s);else{if("string"!=typeof s&&null===t.stateNode)throw Error(a(166));r=Ii(Di.current),Ii(Ti.current),qi(t)?(s=t.stateNode,r=t.memoizedProps,s[Xs]=t,s.nodeValue!==r&&(t.flags|=4)):((s=(9===r.nodeType?r:r.ownerDocument).createTextNode(s))[Xs]=t,t.stateNode=s)}return null;case 13:return un(Ni),s=t.memoizedState,0!=(64&t.flags)?(t.lanes=r,t):(s=null!==s,r=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):r=null!==e.memoizedState,s&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ni.current)?0===No&&(No=3):(0!==No&&3!==No||(No=4),null===Io||0==(134217727&Ro)&&0==(134217727&jo)||mu(Io,ko))),(s||r)&&(t.flags|=4),null);case 4:return ki(),Ka(t),null===e&&Ds(t.stateNode.containerInfo),null;case 10:return ti(t),null;case 19:if(un(Ni),null===(s=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(l=s.rendering))if(o)ro(s,!1);else{if(0!==No||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Mi(e))){for(t.flags|=64,ro(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===s.lastEffect&&(t.firstEffect=null),t.lastEffect=s.lastEffect,s=r,r=t.child;null!==r;)e=s,(o=r).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ln(Ni,1&Ni.current|2),t.child}e=e.sibling}null!==s.tail&&Vn()>zo&&(t.flags|=64,o=!0,ro(s,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Mi(l))){if(t.flags|=64,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),ro(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ji)return null!==(t=t.lastEffect=s.lastEffect)&&(t.nextEffect=null),null}else 2*Vn()-s.renderingStartTime>zo&&1073741824!==r&&(t.flags|=64,o=!0,ro(s,!1),t.lanes=33554432);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(r=s.tail,s.rendering=r,s.tail=r.sibling,s.lastEffect=t.lastEffect,s.renderingStartTime=Vn(),r.sibling=null,t=Ni.current,ln(Ni,o?1&t|2:1&t),r):null;case 23:case 24:return Eu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==s.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function no(e){switch(e.tag){case 1:mn(e.type)&&yn();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ki(),un(hn),un(pn),Hi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Oi(e),null;case 13:return un(Ni),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return un(Ni),null;case 4:return ki(),null;case 10:return ti(e),null;case 23:case 24:return Eu(),null;default:return null}}function io(e,t){try{var r="",s=t;do{r+=K(s),s=s.return}while(s);var n=r}catch(e){n="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:n}}function ao(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wa=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ka=function(){},Ha=function(e,t,r,s){var i=e.memoizedProps;if(i!==s){e=t.stateNode,Ii(Ti.current);var a,o=null;switch(r){case"input":i=Z(e,i),s=Z(e,s),o=[];break;case"option":i=ie(e,i),s=ie(e,s),o=[];break;case"select":i=n({},i,{value:void 0}),s=n({},s,{value:void 0}),o=[];break;case"textarea":i=oe(e,i),s=oe(e,s),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof s.onClick&&(e.onclick=Ls)}for(p in Ce(r,s),r=null,i)if(!s.hasOwnProperty(p)&&i.hasOwnProperty(p)&&null!=i[p])if("style"===p){var l=i[p];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==p&&"children"!==p&&"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(u.hasOwnProperty(p)?o||(o=[]):(o=o||[]).push(p,null));for(p in s){var c=s[p];if(l=null!=i?i[p]:void 0,s.hasOwnProperty(p)&&c!==l&&(null!=c||null!=l))if("style"===p)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(o||(o=[]),o.push(p,r)),r=c;else"dangerouslySetInnerHTML"===p?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(p,c)):"children"===p?"string"!=typeof c&&"number"!=typeof c||(o=o||[]).push(p,""+c):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&(u.hasOwnProperty(p)?(null!=c&&"onScroll"===p&&Ts("scroll",e),o||l===c||(o=[])):"object"==typeof c&&null!==c&&c.$$typeof===N?c.toString():(o=o||[]).push(p,c))}r&&(o=o||[]).push("style",r);var p=o;(t.updateQueue=p)&&(t.flags|=4)}},Ga=function(e,t,r,s){r!==s&&(t.flags|=4)};var oo="function"==typeof WeakMap?WeakMap:Map;function uo(e,t,r){(r=ui(-1,r)).tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){Ho||(Ho=!0,Go=s),ao(0,t)},r}function lo(e,t,r){(r=ui(-1,r)).tag=3;var s=e.type.getDerivedStateFromError;if("function"==typeof s){var n=t.value;r.payload=function(){return ao(0,t),s(n)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof s&&(null===Xo?Xo=new Set([this]):Xo.add(this),ao(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}var co="function"==typeof WeakSet?WeakSet:Set;function po(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Mu(e,t)}else t.current=null}function ho(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var r=e.memoizedProps,s=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Xn(t.type,r),s),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qs(t.stateNode.containerInfo))}throw Error(a(163))}function fo(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var s=e.create;e.destroy=s()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var n=e;s=n.next,0!=(4&(n=n.tag))&&0!=(1&n)&&(Bu(r,e),ku(r,e)),e=s}while(e!==t)}return;case 1:return e=r.stateNode,4&r.flags&&(null===t?e.componentDidMount():(s=r.elementType===r.type?t.memoizedProps:Xn(r.type,t.memoizedProps),e.componentDidUpdate(s,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=r.updateQueue)&&hi(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}hi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.flags&&Us(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&At(r)))))}throw Error(a(163))}function mo(e,t){for(var r=e;;){if(5===r.tag){var s=r.stateNode;if(t)"function"==typeof(s=s.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{s=r.stateNode;var n=r.memoizedProps.style;n=null!=n&&n.hasOwnProperty("display")?n.display:null,s.style.display=Ae("display",n)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function yo(e,t){if(vn&&"function"==typeof vn.onCommitFiberUnmount)try{vn.onCommitFiberUnmount(xn,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var s=r,n=s.destroy;if(s=s.tag,void 0!==n)if(0!=(4&s))Bu(t,r);else{s=t;try{n()}catch(e){Mu(s,e)}}r=r.next}while(r!==e)}break;case 1:if(po(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Mu(t,e)}break;case 5:po(t);break;case 4:vo(e,t)}}function go(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bo(e){return 5===e.tag||3===e.tag||4===e.tag}function Eo(e){e:{for(var t=e.return;null!==t;){if(bo(t))break e;t=t.return}throw Error(a(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var s=!1;break;case 3:case 4:t=t.containerInfo,s=!0;break;default:throw Error(a(161))}16&r.flags&&(ge(t,""),r.flags&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||bo(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break e}}s?Ao(e,r,t):xo(e,r,t)}function Ao(e,t,r){var s=e.tag,n=5===s||6===s;if(n)e=n?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ls));else if(4!==s&&null!==(e=e.child))for(Ao(e,t,r),e=e.sibling;null!==e;)Ao(e,t,r),e=e.sibling}function xo(e,t,r){var s=e.tag,n=5===s||6===s;if(n)e=n?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==s&&null!==(e=e.child))for(xo(e,t,r),e=e.sibling;null!==e;)xo(e,t,r),e=e.sibling}function vo(e,t){for(var r,s,n=t,i=!1;;){if(!i){i=n.return;e:for(;;){if(null===i)throw Error(a(160));switch(r=i.stateNode,i.tag){case 5:s=!1;break e;case 3:case 4:r=r.containerInfo,s=!0;break e}i=i.return}i=!0}if(5===n.tag||6===n.tag){e:for(var o=e,u=n,l=u;;)if(yo(o,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}s?(o=r,u=n.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):r.removeChild(n.stateNode)}else if(4===n.tag){if(null!==n.child){r=n.stateNode.containerInfo,s=!0,n.child.return=n,n=n.child;continue}}else if(yo(e,n),null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;4===(n=n.return).tag&&(i=!1)}n.sibling.return=n.return,n=n.sibling}}function Co(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var s=r=r.next;do{3==(3&s.tag)&&(e=s.destroy,s.destroy=void 0,void 0!==e&&e()),s=s.next}while(s!==r)}return;case 1:case 12:case 17:return;case 5:if(null!=(r=t.stateNode)){s=t.memoizedProps;var n=null!==e?e.memoizedProps:s;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[Js]=s,"input"===e&&"radio"===s.type&&null!=s.name&&te(r,s),Pe(e,n),t=Pe(e,s),n=0;n<i.length;n+=2){var o=i[n],u=i[n+1];"style"===o?xe(r,u):"dangerouslySetInnerHTML"===o?ye(r,u):"children"===o?ge(r,u):A(r,o,u,t)}switch(e){case"input":re(r,s);break;case"textarea":le(r,s);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!s.multiple,null!=(i=s.value)?ae(r,!!s.multiple,i,!1):e!==!!s.multiple&&(null!=s.defaultValue?ae(r,!!s.multiple,s.defaultValue,!0):ae(r,!!s.multiple,s.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((r=t.stateNode).hydrate&&(r.hydrate=!1,At(r.containerInfo)));case 13:return null!==t.memoizedState&&($o=Vn(),mo(t.child,!0)),void Po(t);case 19:return void Po(t);case 23:case 24:return void mo(t,null!==t.memoizedState)}throw Error(a(163))}function Po(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new co),t.forEach((function(t){var s=Ru.bind(null,e,t);r.has(t)||(r.add(t),t.then(s,s))}))}}function So(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var wo=Math.ceil,To=x.ReactCurrentDispatcher,Fo=x.ReactCurrentOwner,Do=0,Io=null,_o=null,ko=0,Bo=0,Oo=on(0),No=0,Mo=null,Lo=0,Ro=0,jo=0,Uo=0,Vo=null,$o=0,zo=1/0;function qo(){zo=Vn()+500}var Wo,Ko=null,Ho=!1,Go=null,Xo=null,Jo=!1,Yo=null,Qo=90,Zo=[],eu=[],tu=null,ru=0,su=null,nu=-1,iu=0,au=0,ou=null,uu=!1;function lu(){return 0!=(48&Do)?Vn():-1!==nu?nu:nu=Vn()}function cu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===$n()?1:2;if(0===iu&&(iu=Lo),0!==Gn.transition){0!==au&&(au=null!==Vo?Vo.pendingLanes:0),e=iu;var t=4186112&~au;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=$n(),e=Rt(0!=(4&Do)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),iu)}function pu(e,t,r){if(50<ru)throw ru=0,su=null,Error(a(185));if(null===(e=hu(e,t)))return null;Vt(e,t,r),e===Io&&(jo|=t,4===No&&mu(e,ko));var s=$n();1===t?0!=(8&Do)&&0==(48&Do)?yu(e):(du(e,r),0===Do&&(qo(),Kn())):(0==(4&Do)||98!==s&&99!==s||(null===tu?tu=new Set([e]):tu.add(e)),du(e,r)),Vo=e}function hu(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function du(e,t){for(var r=e.callbackNode,s=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-$t(o),l=1<<u,c=i[u];if(-1===c){if(0==(l&s)||0!=(l&n)){c=t,Nt(l);var p=Ot;i[u]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);o&=~l}if(s=Mt(e,e===Io?ko:0),t=Ot,0===s)null!==r&&(r!==Nn&&Sn(r),e.callbackNode=null,e.callbackPriority=0);else{if(null!==r){if(e.callbackPriority===t)return;r!==Nn&&Sn(r)}15===t?(r=yu.bind(null,e),null===Ln?(Ln=[r],Rn=Pn(In,Hn)):Ln.push(r),r=Nn):14===t?r=Wn(99,yu.bind(null,e)):(r=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),r=Wn(r,fu.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function fu(e){if(nu=-1,au=iu=0,0!=(48&Do))throw Error(a(327));var t=e.callbackNode;if(_u()&&e.callbackNode!==t)return null;var r=Mt(e,e===Io?ko:0);if(0===r)return null;var s=r,n=Do;Do|=16;var i=vu();for(Io===e&&ko===s||(qo(),Au(e,s));;)try{Su();break}catch(t){xu(e,t)}if(ei(),To.current=i,Do=n,null!==_o?s=0:(Io=null,ko=0,s=No),0!=(Lo&jo))Au(e,0);else if(0!==s){if(2===s&&(Do|=64,e.hydrate&&(e.hydrate=!1,qs(e.containerInfo)),0!==(r=Lt(e))&&(s=Cu(e,r))),1===s)throw t=Mo,Au(e,0),mu(e,r),du(e,Vn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,s){case 0:case 1:throw Error(a(345));case 2:case 5:Fu(e);break;case 3:if(mu(e,r),(62914560&r)===r&&10<(s=$o+500-Vn())){if(0!==Mt(e,0))break;if(((n=e.suspendedLanes)&r)!==r){lu(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=$s(Fu.bind(null,e),s);break}Fu(e);break;case 4:if(mu(e,r),(4186112&r)===r)break;for(s=e.eventTimes,n=-1;0<r;){var o=31-$t(r);i=1<<o,(o=s[o])>n&&(n=o),r&=~i}if(r=n,10<(r=(120>(r=Vn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wo(r/1960))-r)){e.timeoutHandle=$s(Fu.bind(null,e),r);break}Fu(e);break;default:throw Error(a(329))}}return du(e,Vn()),e.callbackNode===t?fu.bind(null,e):null}function mu(e,t){for(t&=~Uo,t&=~jo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-$t(t),s=1<<r;e[r]=-1,t&=~s}}function yu(e){if(0!=(48&Do))throw Error(a(327));if(_u(),e===Io&&0!=(e.expiredLanes&ko)){var t=ko,r=Cu(e,t);0!=(Lo&jo)&&(r=Cu(e,t=Mt(e,t)))}else r=Cu(e,t=Mt(e,0));if(0!==e.tag&&2===r&&(Do|=64,e.hydrate&&(e.hydrate=!1,qs(e.containerInfo)),0!==(t=Lt(e))&&(r=Cu(e,t))),1===r)throw r=Mo,Au(e,0),mu(e,t),du(e,Vn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fu(e),du(e,Vn()),null}function gu(e,t){var r=Do;Do|=1;try{return e(t)}finally{0===(Do=r)&&(qo(),Kn())}}function bu(e,t){ln(Oo,Bo),Bo|=t,Lo|=t}function Eu(){Bo=Oo.current,un(Oo)}function Au(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,zs(r)),null!==_o)for(r=_o.return;null!==r;){var s=r;switch(s.tag){case 1:null!=(s=s.type.childContextTypes)&&yn();break;case 3:ki(),un(hn),un(pn),Hi();break;case 5:Oi(s);break;case 4:ki();break;case 13:case 19:un(Ni);break;case 10:ti(s);break;case 23:case 24:Eu()}r=r.return}Io=e,_o=$u(e.current,null),ko=Bo=Lo=t,No=0,Mo=null,Uo=jo=Ro=0}function xu(e,t){for(;;){var r=_o;try{if(ei(),Gi.current=Da,ea){for(var s=Yi.memoizedState;null!==s;){var n=s.queue;null!==n&&(n.pending=null),s=s.next}ea=!1}if(Ji=0,Zi=Qi=Yi=null,ta=!1,Fo.current=null,null===r||null===r.return){No=1,Mo=t,_o=null;break}e:{var i=e,a=r.return,o=r,u=t;if(t=ko,o.flags|=2048,o.firstEffect=o.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&o.mode)){var c=o.alternate;c?(o.updateQueue=c.updateQueue,o.memoizedState=c.memoizedState,o.lanes=c.lanes):(o.updateQueue=null,o.memoizedState=null)}var p=0!=(1&Ni.current),h=a;do{var d;if(d=13===h.tag){var f=h.memoizedState;if(null!==f)d=null!==f.dehydrated;else{var m=h.memoizedProps;d=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!p)}}if(d){var y=h.updateQueue;if(null===y){var g=new Set;g.add(l),h.updateQueue=g}else y.add(l);if(0==(2&h.mode)){if(h.flags|=64,o.flags|=16384,o.flags&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var b=ui(-1,1);b.tag=2,li(o,b)}o.lanes|=1;break e}u=void 0,o=t;var E=i.pingCache;if(null===E?(E=i.pingCache=new oo,u=new Set,E.set(l,u)):void 0===(u=E.get(l))&&(u=new Set,E.set(l,u)),!u.has(o)){u.add(o);var A=Lu.bind(null,i,l,o);l.then(A,A)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);u=Error((H(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==No&&(No=2),u=io(u,o),h=a;do{switch(h.tag){case 3:i=u,h.flags|=4096,t&=-t,h.lanes|=t,ci(h,uo(0,i,t));break e;case 1:i=u;var x=h.type,v=h.stateNode;if(0==(64&h.flags)&&("function"==typeof x.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Xo||!Xo.has(v)))){h.flags|=4096,t&=-t,h.lanes|=t,ci(h,lo(h,i,t));break e}}h=h.return}while(null!==h)}Tu(r)}catch(e){t=e,_o===r&&null!==r&&(_o=r=r.return);continue}break}}function vu(){var e=To.current;return To.current=Da,null===e?Da:e}function Cu(e,t){var r=Do;Do|=16;var s=vu();for(Io===e&&ko===t||Au(e,t);;)try{Pu();break}catch(t){xu(e,t)}if(ei(),Do=r,To.current=s,null!==_o)throw Error(a(261));return Io=null,ko=0,No}function Pu(){for(;null!==_o;)wu(_o)}function Su(){for(;null!==_o&&!wn();)wu(_o)}function wu(e){var t=Wo(e.alternate,e,Bo);e.memoizedProps=e.pendingProps,null===t?Tu(e):_o=t,Fo.current=null}function Tu(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(r=so(r,t,Bo)))return void(_o=r);if(24!==(r=t).tag&&23!==r.tag||null===r.memoizedState||0!=(1073741824&Bo)||0==(4&r.mode)){for(var s=0,n=r.child;null!==n;)s|=n.lanes|n.childLanes,n=n.sibling;r.childLanes=s}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(r=no(t)))return r.flags&=2047,void(_o=r);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(_o=t);_o=t=e}while(null!==t);0===No&&(No=5)}function Fu(e){var t=$n();return qn(99,Du.bind(null,e,t)),null}function Du(e,t){do{_u()}while(null!==Yo);if(0!=(48&Do))throw Error(a(327));var r=e.finishedWork;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null;var s=r.lanes|r.childLanes,n=s,i=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;for(var o=e.eventTimes,u=e.expirationTimes;0<i;){var l=31-$t(i),c=1<<l;n[l]=0,o[l]=-1,u[l]=-1,i&=~c}if(null!==tu&&0==(24&s)&&tu.has(e)&&tu.delete(e),e===Io&&(_o=Io=null,ko=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,s=r.firstEffect):s=r:s=r.firstEffect,null!==s){if(n=Do,Do|=32,Fo.current=null,Rs=Ht,fs(o=ds())){if("selectionStart"in o)u={start:o.selectionStart,end:o.selectionEnd};else e:if(u=(u=o.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(e){u=null;break e}var p=0,h=-1,d=-1,f=0,m=0,y=o,g=null;t:for(;;){for(var b;y!==u||0!==i&&3!==y.nodeType||(h=p+i),y!==l||0!==c&&3!==y.nodeType||(d=p+c),3===y.nodeType&&(p+=y.nodeValue.length),null!==(b=y.firstChild);)g=y,y=b;for(;;){if(y===o)break t;if(g===u&&++f===i&&(h=p),g===l&&++m===c&&(d=p),null!==(b=y.nextSibling))break;g=(y=g).parentNode}y=b}u=-1===h||-1===d?null:{start:h,end:d}}else u=null;u=u||{start:0,end:0}}else u=null;js={focusedElem:o,selectionRange:u},Ht=!1,ou=null,uu=!1,Ko=s;do{try{Iu()}catch(e){if(null===Ko)throw Error(a(330));Mu(Ko,e),Ko=Ko.nextEffect}}while(null!==Ko);ou=null,Ko=s;do{try{for(o=e;null!==Ko;){var E=Ko.flags;if(16&E&&ge(Ko.stateNode,""),128&E){var A=Ko.alternate;if(null!==A){var x=A.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&E){case 2:Eo(Ko),Ko.flags&=-3;break;case 6:Eo(Ko),Ko.flags&=-3,Co(Ko.alternate,Ko);break;case 1024:Ko.flags&=-1025;break;case 1028:Ko.flags&=-1025,Co(Ko.alternate,Ko);break;case 4:Co(Ko.alternate,Ko);break;case 8:vo(o,u=Ko);var v=u.alternate;go(u),null!==v&&go(v)}Ko=Ko.nextEffect}}catch(e){if(null===Ko)throw Error(a(330));Mu(Ko,e),Ko=Ko.nextEffect}}while(null!==Ko);if(x=js,A=ds(),E=x.focusedElem,o=x.selectionRange,A!==E&&E&&E.ownerDocument&&hs(E.ownerDocument.documentElement,E)){null!==o&&fs(E)&&(A=o.start,void 0===(x=o.end)&&(x=A),"selectionStart"in E?(E.selectionStart=A,E.selectionEnd=Math.min(x,E.value.length)):(x=(A=E.ownerDocument||document)&&A.defaultView||window).getSelection&&(x=x.getSelection(),u=E.textContent.length,v=Math.min(o.start,u),o=void 0===o.end?v:Math.min(o.end,u),!x.extend&&v>o&&(u=o,o=v,v=u),u=ps(E,v),i=ps(E,o),u&&i&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((A=A.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),v>o?(x.addRange(A),x.extend(i.node,i.offset)):(A.setEnd(i.node,i.offset),x.addRange(A))))),A=[];for(x=E;x=x.parentNode;)1===x.nodeType&&A.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<A.length;E++)(x=A[E]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Ht=!!Rs,js=Rs=null,e.current=r,Ko=s;do{try{for(E=e;null!==Ko;){var C=Ko.flags;if(36&C&&fo(E,Ko.alternate,Ko),128&C){A=void 0;var P=Ko.ref;if(null!==P){var S=Ko.stateNode;Ko.tag,A=S,"function"==typeof P?P(A):P.current=A}}Ko=Ko.nextEffect}}catch(e){if(null===Ko)throw Error(a(330));Mu(Ko,e),Ko=Ko.nextEffect}}while(null!==Ko);Ko=null,Mn(),Do=n}else e.current=r;if(Jo)Jo=!1,Yo=e,Qo=t;else for(Ko=s;null!==Ko;)t=Ko.nextEffect,Ko.nextEffect=null,8&Ko.flags&&((C=Ko).sibling=null,C.stateNode=null),Ko=t;if(0===(s=e.pendingLanes)&&(Xo=null),1===s?e===su?ru++:(ru=0,su=e):ru=0,r=r.stateNode,vn&&"function"==typeof vn.onCommitFiberRoot)try{vn.onCommitFiberRoot(xn,r,void 0,64==(64&r.current.flags))}catch(e){}if(du(e,Vn()),Ho)throw Ho=!1,e=Go,Go=null,e;return 0!=(8&Do)||Kn(),null}function Iu(){for(;null!==Ko;){var e=Ko.alternate;uu||null===ou||(0!=(8&Ko.flags)?Qe(Ko,ou)&&(uu=!0):13===Ko.tag&&So(e,Ko)&&Qe(Ko,ou)&&(uu=!0));var t=Ko.flags;0!=(256&t)&&ho(e,Ko),0==(512&t)||Jo||(Jo=!0,Wn(97,(function(){return _u(),null}))),Ko=Ko.nextEffect}}function _u(){if(90!==Qo){var e=97<Qo?97:Qo;return Qo=90,qn(e,Ou)}return!1}function ku(e,t){Zo.push(t,e),Jo||(Jo=!0,Wn(97,(function(){return _u(),null})))}function Bu(e,t){eu.push(t,e),Jo||(Jo=!0,Wn(97,(function(){return _u(),null})))}function Ou(){if(null===Yo)return!1;var e=Yo;if(Yo=null,0!=(48&Do))throw Error(a(331));var t=Do;Do|=32;var r=eu;eu=[];for(var s=0;s<r.length;s+=2){var n=r[s],i=r[s+1],o=n.destroy;if(n.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===i)throw Error(a(330));Mu(i,e)}}for(r=Zo,Zo=[],s=0;s<r.length;s+=2){n=r[s],i=r[s+1];try{var u=n.create;n.destroy=u()}catch(e){if(null===i)throw Error(a(330));Mu(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Do=t,Kn(),!0}function Nu(e,t,r){li(e,t=uo(0,t=io(r,t),1)),t=lu(),null!==(e=hu(e,1))&&(Vt(e,1,t),du(e,t))}function Mu(e,t){if(3===e.tag)Nu(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Nu(r,e,t);break}if(1===r.tag){var s=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof s.componentDidCatch&&(null===Xo||!Xo.has(s))){var n=lo(r,e=io(t,e),1);if(li(r,n),n=lu(),null!==(r=hu(r,1)))Vt(r,1,n),du(r,n);else if("function"==typeof s.componentDidCatch&&(null===Xo||!Xo.has(s)))try{s.componentDidCatch(t,e)}catch(e){}break}}r=r.return}}function Lu(e,t,r){var s=e.pingCache;null!==s&&s.delete(t),t=lu(),e.pingedLanes|=e.suspendedLanes&r,Io===e&&(ko&r)===r&&(4===No||3===No&&(62914560&ko)===ko&&500>Vn()-$o?Au(e,0):Uo|=r),du(e,t)}function Ru(e,t){var r=e.stateNode;null!==r&&r.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===$n()?1:2:(0===iu&&(iu=Lo),0===(t=jt(62914560&~iu))&&(t=4194304))),r=lu(),null!==(e=hu(e,t))&&(Vt(e,t,r),du(e,r))}function ju(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uu(e,t,r,s){return new ju(e,t,r,s)}function Vu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $u(e,t){var r=e.alternate;return null===r?((r=Uu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function zu(e,t,r,s,n,i){var o=2;if(s=e,"function"==typeof e)Vu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case P:return qu(r.children,n,i,t);case M:o=8,n|=16;break;case S:o=8,n|=1;break;case w:return(e=Uu(12,r,t,8|n)).elementType=w,e.type=w,e.lanes=i,e;case I:return(e=Uu(13,r,t,n)).type=I,e.elementType=I,e.lanes=i,e;case _:return(e=Uu(19,r,t,n)).elementType=_,e.lanes=i,e;case L:return Wu(r,n,i,t);case R:return(e=Uu(24,r,t,n)).elementType=R,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:o=10;break e;case F:o=9;break e;case D:o=11;break e;case k:o=14;break e;case B:o=16,s=null;break e;case O:o=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Uu(o,r,t,n)).elementType=e,t.type=s,t.lanes=i,t}function qu(e,t,r,s){return(e=Uu(7,e,s,t)).lanes=r,e}function Wu(e,t,r,s){return(e=Uu(23,e,s,t)).elementType=L,e.lanes=r,e}function Ku(e,t,r){return(e=Uu(6,e,null,t)).lanes=r,e}function Hu(e,t,r){return(t=Uu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gu(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Xu(e,t,r,s){var n=t.current,i=lu(),o=cu(n);e:if(r){t:{if(Xe(r=r._reactInternals)!==r||1!==r.tag)throw Error(a(170));var u=r;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(mn(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===r.tag){var l=r.type;if(mn(l)){r=bn(r,l,u);break e}}r=u}else r=cn;return null===t.context?t.context=r:t.pendingContext=r,(t=ui(i,o)).payload={element:e},null!==(s=void 0===s?null:s)&&(t.callback=s),li(n,t),pu(n,o,i),o}function Ju(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Yu(e,t){Ju(e,t),(e=e.alternate)&&Ju(e,t)}function Qu(e,t,r){var s=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Gu(e,t,null!=r&&!0===r.hydrate),t=Uu(3,null,null,2===t?7:1===t?3:0),r.current=t,t.stateNode=r,ai(t),e[Ys]=r.current,Ds(8===e.nodeType?e.parentNode:e),s)for(e=0;e<s.length;e++){var n=(t=s[e])._getVersion;n=n(t._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[t,n]:r.mutableSourceEagerHydrationData.push(t,n)}this._internalRoot=r}Wo=function(e,t,r){var s=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hn.current)Oa=!0;else{if(0==(r&s)){switch(Oa=!1,t.tag){case 3:qa(t),Wi();break;case 5:Bi(t);break;case 1:mn(t.type)&&En(t);break;case 4:_i(t,t.stateNode.containerInfo);break;case 10:s=t.memoizedProps.value;var n=t.type._context;ln(Jn,n._currentValue),n._currentValue=s;break;case 13:if(null!==t.memoizedState)return 0!=(r&t.child.childLanes)?Ja(e,t,r):(ln(Ni,1&Ni.current),null!==(t=to(e,t,r))?t.sibling:null);ln(Ni,1&Ni.current);break;case 19:if(s=0!=(r&t.childLanes),0!=(64&e.flags)){if(s)return eo(e,t,r);t.flags|=64}if(null!==(n=t.memoizedState)&&(n.rendering=null,n.tail=null,n.lastEffect=null),ln(Ni,Ni.current),s)break;return null;case 23:case 24:return t.lanes=0,ja(e,t,r)}return to(e,t,r)}Oa=0!=(16384&e.flags)}else Oa=!1;switch(t.lanes=0,t.tag){case 2:if(s=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,n=fn(t,pn.current),si(t,r),n=na(null,t,s,e,n,r),t.flags|=1,"object"==typeof n&&null!==n&&"function"==typeof n.render&&void 0===n.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mn(s)){var i=!0;En(t)}else i=!1;t.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,ai(t);var o=s.getDerivedStateFromProps;"function"==typeof o&&fi(t,s,o,e),n.updater=mi,t.stateNode=n,n._reactInternals=t,Ei(t,s,e,r),t=za(null,t,s,!0,i,r)}else t.tag=0,Na(null,t,n,r),t=t.child;return t;case 16:n=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return Vu(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===k)return 14}return 2}(n),e=Xn(n,e),i){case 0:t=Va(null,t,n,e,r);break e;case 1:t=$a(null,t,n,e,r);break e;case 11:t=Ma(null,t,n,e,r);break e;case 14:t=La(null,t,n,Xn(n.type,e),s,r);break e}throw Error(a(306,n,""))}return t;case 0:return s=t.type,n=t.pendingProps,Va(e,t,s,n=t.elementType===s?n:Xn(s,n),r);case 1:return s=t.type,n=t.pendingProps,$a(e,t,s,n=t.elementType===s?n:Xn(s,n),r);case 3:if(qa(t),s=t.updateQueue,null===e||null===s)throw Error(a(282));if(s=t.pendingProps,n=null!==(n=t.memoizedState)?n.element:null,oi(e,t),pi(t,s,null,r),(s=t.memoizedState.element)===n)Wi(),t=to(e,t,r);else{if((i=(n=t.stateNode).hydrate)&&(Ri=Ws(t.stateNode.containerInfo.firstChild),Li=t,i=ji=!0),i){if(null!=(e=n.mutableSourceEagerHydrationData))for(n=0;n<e.length;n+=2)(i=e[n])._workInProgressVersionPrimary=e[n+1],Ki.push(i);for(r=Si(t,null,s,r),t.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else Na(e,t,s,r),Wi();t=t.child}return t;case 5:return Bi(t),null===e&&$i(t),s=t.type,n=t.pendingProps,i=null!==e?e.memoizedProps:null,o=n.children,Vs(s,n)?o=null:null!==i&&Vs(s,i)&&(t.flags|=16),Ua(e,t),Na(e,t,o,r),t.child;case 6:return null===e&&$i(t),null;case 13:return Ja(e,t,r);case 4:return _i(t,t.stateNode.containerInfo),s=t.pendingProps,null===e?t.child=Pi(t,null,s,r):Na(e,t,s,r),t.child;case 11:return s=t.type,n=t.pendingProps,Ma(e,t,s,n=t.elementType===s?n:Xn(s,n),r);case 7:return Na(e,t,t.pendingProps,r),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,r),t.child;case 10:e:{s=t.type._context,n=t.pendingProps,o=t.memoizedProps,i=n.value;var u=t.type._context;if(ln(Jn,u._currentValue),u._currentValue=i,null!==o)if(u=o.value,0==(i=os(u,i)?0:0|("function"==typeof s._calculateChangedBits?s._calculateChangedBits(u,i):1073741823))){if(o.children===n.children&&!hn.current){t=to(e,t,r);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){o=u.child;for(var c=l.firstContext;null!==c;){if(c.context===s&&0!=(c.observedBits&i)){1===u.tag&&((c=ui(-1,r&-r)).tag=2,li(u,c)),u.lanes|=r,null!==(c=u.alternate)&&(c.lanes|=r),ri(u.return,r),l.lanes|=r;break}c=c.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}Na(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,s=(i=t.pendingProps).children,si(t,r),s=s(n=ni(n,i.unstable_observedBits)),t.flags|=1,Na(e,t,s,r),t.child;case 14:return i=Xn(n=t.type,t.pendingProps),La(e,t,n,i=Xn(n.type,i),s,r);case 15:return Ra(e,t,t.type,t.pendingProps,s,r);case 17:return s=t.type,n=t.pendingProps,n=t.elementType===s?n:Xn(s,n),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mn(s)?(e=!0,En(t)):e=!1,si(t,r),gi(t,s,n),Ei(t,s,n,r),za(null,t,s,!0,e,r);case 19:return eo(e,t,r);case 23:case 24:return ja(e,t,r)}throw Error(a(156,t.tag))},Qu.prototype.render=function(e){Xu(e,this._internalRoot,null,null)},Qu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xu(null,e,null,(function(){t[Ys]=null}))},Ze=function(e){13===e.tag&&(pu(e,4,lu()),Yu(e,4))},et=function(e){13===e.tag&&(pu(e,67108864,lu()),Yu(e,67108864))},tt=function(e){if(13===e.tag){var t=lu(),r=cu(e);pu(e,r,t),Yu(e,r)}},rt=function(e,t){return t()},we=function(e,t,r){switch(t){case"input":if(re(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var n=rn(s);if(!n)throw Error(a(90));Y(s),re(s,n)}}}break;case"textarea":le(e,r);break;case"select":null!=(t=r.value)&&ae(e,!!r.multiple,t,!1)}},ke=gu,Be=function(e,t,r,s,n){var i=Do;Do|=4;try{return qn(98,e.bind(null,t,r,s,n))}finally{0===(Do=i)&&(qo(),Kn())}},Oe=function(){0==(49&Do)&&(function(){if(null!==tu){var e=tu;tu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,du(e,Vn())}))}Kn()}(),_u())},Ne=function(e,t){var r=Do;Do|=2;try{return e(t)}finally{0===(Do=r)&&(qo(),Kn())}};var Zu={findFiberByHostInstance:Zs,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},el={bundleType:Zu.bundleType,version:Zu.version,rendererPackageName:Zu.rendererPackageName,rendererConfig:Zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=function(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,s=t;;){var n=r.return;if(null===n)break;var i=n.alternate;if(null===i){if(null!==(s=n.return)){r=s;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return Ye(n),e;if(i===s)return Ye(n),t;i=i.sibling}throw Error(a(188))}if(r.return!==s.return)r=n,s=i;else{for(var o=!1,u=n.child;u;){if(u===r){o=!0,r=n,s=i;break}if(u===s){o=!0,s=n,r=i;break}u=u.sibling}if(!o){for(u=i.child;u;){if(u===r){o=!0,r=i,s=n;break}if(u===s){o=!0,s=i,r=n;break}u=u.sibling}if(!o)throw Error(a(189))}}if(r.alternate!==s)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode},findFiberByHostInstance:Zu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tl.isDisabled&&tl.supportsFiber)try{xn=tl.inject(el),vn=tl}catch(me){}}t.unstable_batchedUpdates=gu},39558:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(77116)},92622:(e,t)=>{"use strict";var r,s,n,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,u=o.now();t.unstable_now=function(){return o.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,p=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(p,0))},s=function(e,t){c=setTimeout(e,t)},n=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,g=-1,b=5,E=0;t.unstable_shouldYield=function(){return t.unstable_now()>=E},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var A=new MessageChannel,x=A.port2;A.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+b;try{y(!0,e)?x.postMessage(null):(m=!1,y=null)}catch(e){throw x.postMessage(null),e}}else m=!1},r=function(e){y=e,m||(m=!0,x.postMessage(null))},s=function(e,r){g=h((function(){e(t.unstable_now())}),r)},n=function(){d(g),g=-1}}function v(e,t){var r=e.length;e.push(t);e:for(;;){var s=r-1>>>1,n=e[s];if(!(void 0!==n&&0<S(n,t)))break e;e[s]=t,e[r]=n,r=s}}function C(e){return void 0===(e=e[0])?null:e}function P(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var s=0,n=e.length;s<n;){var i=2*(s+1)-1,a=e[i],o=i+1,u=e[o];if(void 0!==a&&0>S(a,r))void 0!==u&&0>S(u,a)?(e[s]=u,e[o]=r,s=o):(e[s]=a,e[i]=r,s=i);else{if(!(void 0!==u&&0>S(u,r)))break e;e[s]=u,e[o]=r,s=o}}}return t}return null}function S(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var w=[],T=[],F=1,D=null,I=3,_=!1,k=!1,B=!1;function O(e){for(var t=C(T);null!==t;){if(null===t.callback)P(T);else{if(!(t.startTime<=e))break;P(T),t.sortIndex=t.expirationTime,v(w,t)}t=C(T)}}function N(e){if(B=!1,O(e),!k)if(null!==C(w))k=!0,r(M);else{var t=C(T);null!==t&&s(N,t.startTime-e)}}function M(e,r){k=!1,B&&(B=!1,n()),_=!0;var i=I;try{for(O(r),D=C(w);null!==D&&(!(D.expirationTime>r)||e&&!t.unstable_shouldYield());){var a=D.callback;if("function"==typeof a){D.callback=null,I=D.priorityLevel;var o=a(D.expirationTime<=r);r=t.unstable_now(),"function"==typeof o?D.callback=o:D===C(w)&&P(w),O(r)}else P(w);D=C(w)}if(null!==D)var u=!0;else{var l=C(T);null!==l&&s(N,l.startTime-r),u=!1}return u}finally{D=null,I=i,_=!1}}var L=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){k||_||(k=!0,r(M))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return C(w)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var r=I;I=t;try{return e()}finally{I=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=I;I=e;try{return t()}finally{I=r}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:F++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>o?(e.sortIndex=a,v(T,e),null===C(w)&&e===C(T)&&(B?n():B=!0,s(N,a-o))):(e.sortIndex=u,v(w,e),k||_||(k=!0,r(M))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var r=I;I=t;try{return e.apply(this,arguments)}finally{I=r}}}},95695:(e,t,r)=>{"use strict";e.exports=r(92622)},50447:(e,t,r)=>{"use strict";r.d(t,{$j:()=>N});var s=r(84245),n=r(14812),i=r(39558);let a=function(e){e()};const o=()=>a;var u=r(99497);const l=Symbol.for("react-redux-context"),c="undefined"!=typeof globalThis?globalThis:{};function p(){var e;if(!u.createContext)return{};const t=null!=(e=c[l])?e:c[l]=new Map;let r=t.get(u.createContext);return r||(r=u.createContext(null),t.set(u.createContext,r)),r}const h=p();let d=null;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},f.apply(this,arguments)}function m(e,t){if(null==e)return{};var r,s,n={},i=Object.keys(e);for(s=0;s<i.length;s++)r=i[s],t.indexOf(r)>=0||(n[r]=e[r]);return n}var y=r(49384),g=r.n(y),b=r(24097);const E=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function A(e,t,r,s,{areStatesEqual:n,areOwnPropsEqual:i,areStatePropsEqual:a}){let o,u,l,c,p,h=!1;return function(d,f){return h?function(h,d){const f=!i(d,u),m=!n(h,o,d,u);return o=h,u=d,f&&m?(l=e(o,u),t.dependsOnOwnProps&&(c=t(s,u)),p=r(l,c,u),p):f?(e.dependsOnOwnProps&&(l=e(o,u)),t.dependsOnOwnProps&&(c=t(s,u)),p=r(l,c,u),p):m?function(){const t=e(o,u),s=!a(t,l);return l=t,s&&(p=r(l,c,u)),p}():p}(d,f):(o=d,u=f,l=e(o,u),c=t(s,u),p=r(l,c,u),h=!0,p)}}function x(e){return function(t){const r=e(t);function s(){return r}return s.dependsOnOwnProps=!1,s}}function v(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function C(e,t){return function(t,{displayName:r}){const s=function(e,t){return s.dependsOnOwnProps?s.mapToProps(e,t):s.mapToProps(e,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(t,r){s.mapToProps=e,s.dependsOnOwnProps=v(e);let n=s(t,r);return"function"==typeof n&&(s.mapToProps=n,s.dependsOnOwnProps=v(n),n=s(t,r)),n},s}}function P(e,t){return(r,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function S(e,t,r){return f({},r,e,t)}const w={notify(){},get:()=>[]};const T="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function F(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function D(e,t){if(F(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let s=0;s<r.length;s++)if(!Object.prototype.hasOwnProperty.call(t,r[s])||!F(e[r[s]],t[r[s]]))return!1;return!0}const I=["reactReduxForwardedRef"];let _=()=>{throw new Error("uSES not initialized!")};const k=[null,null];function B(e,t,r,s,n,i){e.current=s,r.current=!1,n.current&&(n.current=null,i())}function O(e,t){return e===t}const N=function(e,t,r,{pure:s,areStatesEqual:n=O,areOwnPropsEqual:i=D,areStatePropsEqual:a=D,areMergedPropsEqual:l=D,forwardRef:c=!1,context:p=h}={}){const d=p,y=function(e){return e?"function"==typeof e?C(e):P(e,"mapStateToProps"):x((()=>({})))}(e),v=function(e){return e&&"object"==typeof e?x((t=>function(e,t){const r={};for(const s in e){const n=e[s];"function"==typeof n&&(r[s]=(...e)=>t(n(...e)))}return r}(e,t))):e?"function"==typeof e?C(e):P(e,"mapDispatchToProps"):x((e=>({dispatch:e})))}(t),F=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:s}){let n,i=!1;return function(t,r,a){const o=e(t,r,a);return i?s(o,n)||(n=o):(i=!0,n=o),n}}}(e):P(e,"mergeProps"):()=>S}(r),N=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,s={shouldHandleStateChanges:N,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:y,initMapDispatchToProps:v,initMergeProps:F,areStatesEqual:n,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:l};function p(t){const[r,n,i]=u.useMemo((()=>{const{reactReduxForwardedRef:e}=t,r=m(t,I);return[t.context,e,r]}),[t]),a=u.useMemo((()=>r&&r.Consumer&&(0,b.isContextConsumer)(u.createElement(r.Consumer,null))?r:d),[r,d]),l=u.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),p=Boolean(l)&&Boolean(l.store),h=c?t.store:l.store,y=p?l.getServerState:h.getState,g=u.useMemo((()=>function(e,t){let{initMapStateToProps:r,initMapDispatchToProps:s,initMergeProps:n}=t,i=m(t,E);return A(r(e,i),s(e,i),n(e,i),e,i)}(h.dispatch,s)),[h]),[x,v]=u.useMemo((()=>{if(!N)return k;const e=function(e,t){let r,s=w,n=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function u(){n++,r||(r=t?t.addNestedSub(a):e.subscribe(a),s=function(){const e=o();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let s=!0,n=r={callback:e,next:null,prev:r};return n.prev?n.prev.next=n:t=n,function(){s&&null!==t&&(s=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}())}function l(){n--,r&&0===n&&(r(),r=void 0,s.clear(),s=w)}const c={addNestedSub:function(e){u();const t=s.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){s.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,u())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>s};return c}(h,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,c,l]),C=u.useMemo((()=>c?l:f({},l,{subscription:x})),[c,l,x]),P=u.useRef(),S=u.useRef(i),F=u.useRef(),D=u.useRef(!1),O=(u.useRef(!1),u.useRef(!1)),M=u.useRef();T((()=>(O.current=!0,()=>{O.current=!1})),[]);const L=u.useMemo((()=>()=>F.current&&i===S.current?F.current:g(h.getState(),i)),[h,i]),R=u.useMemo((()=>e=>x?function(e,t,r,s,n,i,a,o,u,l,c){if(!e)return()=>{};let p=!1,h=null;const d=()=>{if(p||!o.current)return;const e=t.getState();let r,d;try{r=s(e,n.current)}catch(e){d=e,h=e}d||(h=null),r===i.current?a.current||l():(i.current=r,u.current=r,a.current=!0,c())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}(N,h,x,g,S,P,D,O,F,v,e):()=>{}),[x]);var j,U;let V;j=B,U=[S,P,D,i,F,v],T((()=>j(...U)),undefined);try{V=_(R,L,y?()=>g(y(),i):L)}catch(e){throw M.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${M.current.stack}\n\n`),e}T((()=>{M.current=void 0,F.current=void 0,P.current=V}));const $=u.useMemo((()=>u.createElement(e,f({},V,{ref:n}))),[n,e,V]);return u.useMemo((()=>N?u.createElement(a.Provider,{value:C},$):$),[a,$,C])}const h=u.memo(p);if(h.WrappedComponent=e,h.displayName=p.displayName=r,c){const t=u.forwardRef((function(e,t){return u.createElement(h,f({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,g()(t,e)}return g()(h,e)}};var M;d=n.useSyncExternalStoreWithSelector,(e=>{_=e})(s.useSyncExternalStore),M=i.unstable_batchedUpdates,a=M},20163:(e,t)=>{"use strict";var r=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case n:case a:case i:case p:case h:return e;default:switch(e=e&&e.$$typeof){case l:case u:case c:case f:case d:case o:return e;default:return t}}case s:return t}}}(e)===u}},24097:(e,t,r)=>{"use strict";e.exports=r(20163)},55615:(e,t,r)=>{const s=Symbol("SemVer ANY");class n{static get ANY(){return s}constructor(e,t){if(t=i(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=n;const i=r(90779),{safeRe:a,t:o}=r(37642),u=r(97326),l=r(87626),c=r(24248),p=r(84597)},84597:(e,t,r)=>{class s{constructor(e,t){if(t=i(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&m))+":"+e,r=n.get(t);if(r)return r;const s=this.options.loose,i=s?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];e=e.replace(i,D(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(l[c.COMPARATORTRIM],p),o("comparator trim",e),e=e.replace(l[c.TILDETRIM],h),o("tilde trim",e),e=e.replace(l[c.CARETTRIM],d),o("caret trim",e);let u=e.split(" ").map((e=>E(e,this.options))).join(" ").split(/\s+/).map((e=>F(e,this.options)));s&&(u=u.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(l[c.COMPARATORLOOSE]))))),o("range list",u);const g=new Map,b=u.map((e=>new a(e,this.options)));for(const e of b){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const A=[...g.values()];return n.set(t,A),A}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>b(r,t)&&e.set.some((e=>b(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const n=new(r(54280))({max:1e3}),i=r(90779),a=r(55615),o=r(87626),u=r(24248),{safeRe:l,t:c,comparatorTrimReplace:p,tildeTrimReplace:h,caretTrimReplace:d}=r(37642),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:m}=r(76758),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,b=(e,t)=>{let r=!0;const s=e.slice();let n=s.pop();for(;r&&s.length;)r=s.every((e=>n.intersects(e,t))),n=s.pop();return r},E=(e,t)=>(o("comp",e,t),e=C(e,t),o("caret",e),e=x(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=T(e,t),o("stars",e),e),A=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const r=t.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(r,((t,r,s,n,i)=>{let a;return o("tilde",e,t,r,s,n,i),A(r)?a="":A(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:A(n)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:i?(o("replaceTilde pr",i),a=`>=${r}.${s}.${n}-${i} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`,o("tilde return",a),a}))},C=(e,t)=>e.trim().split(/\s+/).map((e=>P(e,t))).join(" "),P=(e,t)=>{o("caret",e,t);const r=t.loose?l[c.CARETLOOSE]:l[c.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,i,a)=>{let u;return o("caret",e,t,r,n,i,a),A(r)?u="":A(n)?u=`>=${r}.0.0${s} <${+r+1}.0.0-0`:A(i)?u="0"===r?`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${s} <${+r+1}.0.0-0`:a?(o("replaceCaret pr",a),u="0"===r?"0"===n?`>=${r}.${n}.${i}-${a} <${r}.${n}.${+i+1}-0`:`>=${r}.${n}.${i}-${a} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${i}-${a} <${+r+1}.0.0-0`):(o("no pr"),u="0"===r?"0"===n?`>=${r}.${n}.${i}${s} <${r}.${n}.${+i+1}-0`:`>=${r}.${n}.${i}${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${i} <${+r+1}.0.0-0`),o("caret return",u),u}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>w(e,t))).join(" ")),w=(e,t)=>{e=e.trim();const r=t.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(r,((r,s,n,i,a,u)=>{o("xRange",e,r,s,n,i,a,u);const l=A(n),c=l||A(i),p=c||A(a),h=p;return"="===s&&h&&(s=""),u=t.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&h?(c&&(i=0),a=0,">"===s?(s=">=",c?(n=+n+1,i=0,a=0):(i=+i+1,a=0)):"<="===s&&(s="<",c?n=+n+1:i=+i+1),"<"===s&&(u="-0"),r=`${s+n}.${i}.${a}${u}`):c?r=`>=${n}.0.0${u} <${+n+1}.0.0-0`:p&&(r=`>=${n}.${i}.0${u} <${n}.${+i+1}.0-0`),o("xRange return",r),r}))},T=(e,t)=>(o("replaceStars",e,t),e.trim().replace(l[c.STAR],"")),F=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),D=e=>(t,r,s,n,i,a,o,u,l,c,p,h,d)=>`${r=A(s)?"":A(n)?`>=${s}.0.0${e?"-0":""}`:A(i)?`>=${s}.${n}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=A(l)?"":A(c)?`<${+l+1}.0.0-0`:A(p)?`<${l}.${+c+1}.0-0`:h?`<=${l}.${c}.${p}-${h}`:e?`<${l}.${c}.${+p+1}-0`:`<=${u}`}`.trim(),I=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(o(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},24248:(e,t,r)=>{const s=r(87626),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=r(76758),{safeRe:a,t:o}=r(37642),u=r(90779),{compareIdentifiers:l}=r(83266);class c{constructor(e,t){if(t=u(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[o.LOOSE]:a[o.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(s("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let s=[t,e];!1===r&&(s=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},72411:(e,t,r)=>{const s=r(82680);e.exports=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},97326:(e,t,r)=>{const s=r(43229),n=r(54636),i=r(97152),a=r(12045),o=r(5978),u=r(94237);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return s(e,r,l);case"!=":return n(e,r,l);case">":return i(e,r,l);case">=":return a(e,r,l);case"<":return o(e,r,l);case"<=":return u(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},44086:(e,t,r)=>{const s=r(24248),n=r(82680),{safeRe:i,t:a}=r(37642);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=i[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),i[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[a.COERCERTL].lastIndex=-1}else r=e.match(i[a.COERCE]);return null===r?null:n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},60770:(e,t,r)=>{const s=r(24248);e.exports=(e,t,r)=>{const n=new s(e,r),i=new s(t,r);return n.compare(i)||n.compareBuild(i)}},12371:(e,t,r)=>{const s=r(94482);e.exports=(e,t)=>s(e,t,!0)},94482:(e,t,r)=>{const s=r(24248);e.exports=(e,t,r)=>new s(e,r).compare(new s(t,r))},70738:(e,t,r)=>{const s=r(82680);e.exports=(e,t)=>{const r=s(e,null,!0),n=s(t,null,!0),i=r.compare(n);if(0===i)return null;const a=i>0,o=a?r:n,u=a?n:r,l=!!o.prerelease.length;if(u.prerelease.length&&!l)return u.patch||u.minor?o.patch?"patch":o.minor?"minor":"major":"major";const c=l?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"}},43229:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>0===s(e,t,r)},97152:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(e,t,r)>0},12045:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(e,t,r)>=0},64752:(e,t,r)=>{const s=r(24248);e.exports=(e,t,r,n,i)=>{"string"==typeof r&&(i=n,n=r,r=void 0);try{return new s(e instanceof s?e.version:e,r).inc(t,n,i).version}catch(e){return null}}},5978:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(e,t,r)<0},94237:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(e,t,r)<=0},76555:(e,t,r)=>{const s=r(24248);e.exports=(e,t)=>new s(e,t).major},47526:(e,t,r)=>{const s=r(24248);e.exports=(e,t)=>new s(e,t).minor},54636:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>0!==s(e,t,r)},82680:(e,t,r)=>{const s=r(24248);e.exports=(e,t,r=!1)=>{if(e instanceof s)return e;try{return new s(e,t)}catch(e){if(!r)return null;throw e}}},79377:(e,t,r)=>{const s=r(24248);e.exports=(e,t)=>new s(e,t).patch},38471:(e,t,r)=>{const s=r(82680);e.exports=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null}},25578:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(t,e,r)},36942:(e,t,r)=>{const s=r(60770);e.exports=(e,t)=>e.sort(((e,r)=>s(r,e,t)))},31915:(e,t,r)=>{const s=r(84597);e.exports=(e,t,r)=>{try{t=new s(t,r)}catch(e){return!1}return t.test(e)}},89619:(e,t,r)=>{const s=r(60770);e.exports=(e,t)=>e.sort(((e,r)=>s(e,r,t)))},77906:(e,t,r)=>{const s=r(82680);e.exports=(e,t)=>{const r=s(e,t);return r?r.version:null}},82328:(e,t,r)=>{const s=r(37642),n=r(76758),i=r(24248),a=r(83266),o=r(82680),u=r(77906),l=r(72411),c=r(64752),p=r(70738),h=r(76555),d=r(47526),f=r(79377),m=r(38471),y=r(94482),g=r(25578),b=r(12371),E=r(60770),A=r(89619),x=r(36942),v=r(97152),C=r(5978),P=r(43229),S=r(54636),w=r(12045),T=r(94237),F=r(97326),D=r(44086),I=r(55615),_=r(84597),k=r(31915),B=r(80799),O=r(66276),N=r(80705),M=r(37773),L=r(4926),R=r(3782),j=r(88028),U=r(90077),V=r(27636),$=r(14412),z=r(28326);e.exports={parse:o,valid:u,clean:l,inc:c,diff:p,major:h,minor:d,patch:f,prerelease:m,compare:y,rcompare:g,compareLoose:b,compareBuild:E,sort:A,rsort:x,gt:v,lt:C,eq:P,neq:S,gte:w,lte:T,cmp:F,coerce:D,Comparator:I,Range:_,satisfies:k,toComparators:B,maxSatisfying:O,minSatisfying:N,minVersion:M,validRange:L,outside:R,gtr:j,ltr:U,intersects:V,simplifyRange:$,subset:z,SemVer:i,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},76758:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},87626:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},83266:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const s=t.test(e),n=t.test(r);return s&&n&&(e=+e,r=+r),e===r?0:s&&!n?-1:n&&!s?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},90779:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},37642:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=r(76758),a=r(87626),o=(t=e.exports={}).re=[],u=t.safeRe=[],l=t.src=[],c=t.t={};let p=0;const h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[h,n]],f=(e,t,r)=>{const s=(e=>{for(const[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),n=p++;a(e,n,t),c[e]=n,l[n]=t,o[n]=new RegExp(t,r?"g":void 0),u[n]=new RegExp(s,r?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),f("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${h}+`),f("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),f("FULL",`^${l[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),f("LOOSE",`^${l[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),f("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?(?:$|[^\\d])`),f("COERCERTL",l[c.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},88028:(e,t,r)=>{const s=r(3782);e.exports=(e,t,r)=>s(e,t,">",r)},27636:(e,t,r)=>{const s=r(84597);e.exports=(e,t,r)=>(e=new s(e,r),t=new s(t,r),e.intersects(t,r))},90077:(e,t,r)=>{const s=r(3782);e.exports=(e,t,r)=>s(e,t,"<",r)},66276:(e,t,r)=>{const s=r(24248),n=r(84597);e.exports=(e,t,r)=>{let i=null,a=null,o=null;try{o=new n(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(i&&-1!==a.compare(e)||(i=e,a=new s(i,r)))})),i}},80705:(e,t,r)=>{const s=r(24248),n=r(84597);e.exports=(e,t,r)=>{let i=null,a=null,o=null;try{o=new n(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(i&&1!==a.compare(e)||(i=e,a=new s(i,r)))})),i}},37773:(e,t,r)=>{const s=r(24248),n=r(84597),i=r(97152);e.exports=(e,t)=>{e=new n(e,t);let r=new s("0.0.0");if(e.test(r))return r;if(r=new s("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let a=null;n.forEach((e=>{const t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!i(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!i(r,a)||(r=a)}return r&&e.test(r)?r:null}},3782:(e,t,r)=>{const s=r(24248),n=r(55615),{ANY:i}=n,a=r(84597),o=r(31915),u=r(97152),l=r(5978),c=r(94237),p=r(12045);e.exports=(e,t,r,h)=>{let d,f,m,y,g;switch(e=new s(e,h),t=new a(t,h),r){case">":d=u,f=c,m=l,y=">",g=">=";break;case"<":d=l,f=p,m=u,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,h))return!1;for(let r=0;r<t.set.length;++r){const s=t.set[r];let a=null,o=null;if(s.forEach((e=>{e.semver===i&&(e=new n(">=0.0.0")),a=a||e,o=o||e,d(e.semver,a.semver,h)?a=e:m(e.semver,o.semver,h)&&(o=e)})),a.operator===y||a.operator===g)return!1;if((!o.operator||o.operator===y)&&f(e,o.semver))return!1;if(o.operator===g&&m(e,o.semver))return!1}return!0}},14412:(e,t,r)=>{const s=r(31915),n=r(94482);e.exports=(e,t,r)=>{const i=[];let a=null,o=null;const u=e.sort(((e,t)=>n(e,t,r)));for(const e of u)s(e,t,r)?(o=e,a||(a=e)):(o&&i.push([a,o]),o=null,a=null);a&&i.push([a,null]);const l=[];for(const[e,t]of i)e===t?l.push(e):t||e!==u[0]?t?e===u[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const c=l.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return c.length<p.length?c:t}},28326:(e,t,r)=>{const s=r(84597),n=r(55615),{ANY:i}=n,a=r(31915),o=r(94482),u=[new n(">=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?u:l}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l}const s=new Set;let n,c,d,f,m,y,g;for(const t of e)">"===t.operator||">="===t.operator?n=p(n,t,r):"<"===t.operator||"<="===t.operator?c=h(c,t,r):s.add(t.semver);if(s.size>1)return null;if(n&&c){if(d=o(n.semver,c.semver,r),d>0)return null;if(0===d&&(">="!==n.operator||"<="!==c.operator))return null}for(const e of s){if(n&&!a(e,String(n),r))return null;if(c&&!a(e,String(c),r))return null;for(const s of t)if(!a(e,String(s),r))return!1;return!0}let b=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver,E=!(!n||r.includePrerelease||!n.semver.prerelease.length)&&n.semver;b&&1===b.prerelease.length&&"<"===c.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,y=y||"<"===e.operator||"<="===e.operator,n)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if(f=p(n,e,r),f===e&&f!==n)return!1}else if(">="===n.operator&&!a(n.semver,String(e),r))return!1;if(c)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(m=h(c,e,r),m===e&&m!==c)return!1}else if("<="===c.operator&&!a(c.semver,String(e),r))return!1;if(!e.operator&&(c||n)&&0!==d)return!1}return!(n&&y&&!c&&0!==d||c&&g&&!n&&0!==d||E||b)},p=(e,t,r)=>{if(!e)return t;const s=o(e.semver,t.semver,r);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,r)=>{if(!e)return t;const s=o(e.semver,t.semver,r);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new s(e,r),t=new s(t,r);let n=!1;e:for(const s of e.set){for(const e of t.set){const t=c(s,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}},80799:(e,t,r)=>{const s=r(84597);e.exports=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},4926:(e,t,r)=>{const s=r(84597);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},32333:e=>{function t(e){var t=/\.[^.]*$/.exec(e);return t?t.index+1:e.length}function r(e,t,r){if(e.reduce)return e.reduce(t,r);for(var s=0,n=arguments.length>=3?r:e[s++];s<e.length;s++)t(n,e[s],s);return n}function s(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t.call(e,e[r],r)}function n(e,t){if(e.map)return e.map(t);for(var r=[],s=0;s<e.length;s++)r.push(t.call(e,e[s],s));return r}e.exports=function(e,i){i||(i={});var a=void 0===i.hsep?" ":i.hsep,o=i.align||[],u=i.stringLength||function(e){return String(e).length},l=r(e,(function(e,r){return s(r,(function(r,s){var n=t(r);(!e[s]||n>e[s])&&(e[s]=n)})),e}),[]),c=n(e,(function(e){return n(e,(function(e,r){var s=String(e);if("."===o[r]){var n=t(s),i=l[r]+(/\./.test(s)?1:2)-(u(s)-n);return s+Array(i).join(" ")}return s}))})),p=r(c,(function(e,t){return s(t,(function(t,r){var s=u(t);(!e[r]||s>e[r])&&(e[r]=s)})),e}),[]);return n(c,(function(e){return n(e,(function(e,t){var r=p[t]-u(e)||0,s=Array(Math.max(r+1,1)).join(" ");return"r"===o[t]||"."===o[t]?s+e:"c"===o[t]?Array(Math.ceil(r/2+1)).join(" ")+e+Array(Math.floor(r/2+1)).join(" "):e+s})).join(a).replace(/\s+$/,"")})).join("\n")}},96832:e=>{"use strict";let t=null;function r(e){if(null!==t&&(t.property,1)){const e=t;return t=r.prototype=null,e}return t=r.prototype=null==e?Object.create(null):e,new r}r(),e.exports=function(e){return r(e)}},15229:(e,t,r)=>{"use strict";var s=r(99497),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useState,a=s.useEffect,o=s.useLayoutEffect,u=s.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),s=i({inst:{value:r,getSnapshot:t}}),n=s[0].inst,c=s[1];return o((function(){n.value=r,n.getSnapshot=t,l(n)&&c({inst:n})}),[e,r,t]),a((function(){return l(n)&&c({inst:n}),e((function(){l(n)&&c({inst:n})}))}),[e]),u(r),r};t.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},92047:(e,t,r)=>{"use strict";var s=r(99497),n=r(84245),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,o=s.useRef,u=s.useEffect,l=s.useMemo,c=s.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,s,n){var p=o(null);if(null===p.current){var h={hasValue:!1,value:null};p.current=h}else h=p.current;p=l((function(){function e(e){if(!u){if(u=!0,a=e,e=s(e),void 0!==n&&h.hasValue){var t=h.value;if(n(t,e))return o=t}return o=e}if(t=o,i(a,e))return t;var r=s(e);return void 0!==n&&n(t,r)?t:(a=e,o=r)}var a,o,u=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,r,s,n]);var d=a(e,p[0],p[1]);return u((function(){h.hasValue=!0,h.value=d}),[d]),c(d),d}},84245:(e,t,r)=>{"use strict";e.exports=r(15229)},14812:(e,t,r)=>{"use strict";e.exports=r(92047)},11999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=l,t.default=function(e,t,r,s={}){if(!o){o=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return l(e,{start:{column:r=Math.max(r,0),line:t}},s)};var s=r(4608),n=function(e,t){if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(true);if(r&&r.has(e))return r.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(s,a,o):s[a]=e[a]}return s.default=e,r&&r.set(e,s),s}(r(70463));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}let a,o=!1;const u=/\r\n|[\n\r\u2028\u2029]/;function l(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,s.shouldHighlight)(r),o=r.forceColor?(null!=a||(a=new n.default.constructor({enabled:!0,level:1})),a):n.default,l=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),c=(e,t)=>i?e(t):t,p=e.split(u),{start:h,end:d,markerLines:f}=function(e,t,r){const s=Object.assign({column:0,line:-1},e.start),n=Object.assign({},s,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},o=s.line,u=s.column,l=n.line,c=n.column;let p=Math.max(o-(i+1),0),h=Math.min(t.length,l+a);-1===o&&(p=0),-1===l&&(h=t.length);const d=l-o,f={};if(d)for(let e=0;e<=d;e++){const r=e+o;if(u)if(0===e){const e=t[r-1].length;f[r]=[u,e-u+1]}else if(e===d)f[r]=[0,c];else{const s=t[r-e].length;f[r]=[0,s]}else f[r]=!0}else f[o]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:h,markerLines:f}}(t,p,r),m=t.start&&"number"==typeof t.start.column,y=String(d).length;let g=(i?(0,s.default)(e,r):e).split(u,d).slice(h,d).map(((e,t)=>{const s=h+1+t,n=` ${` ${s}`.slice(-y)} |`,i=f[s],a=!f[s+1];if(i){let t="";if(Array.isArray(i)){const s=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),o=i[1]||1;t=["\n ",c(l.gutter,n.replace(/\d/g," "))," ",s,c(l.marker,"^").repeat(o)].join(""),a&&r.message&&(t+=" "+c(l.message,r.message))}return[c(l.marker,">"),c(l.gutter,n),e.length>0?` ${e}`:"",t].join("")}return` ${c(l.gutter,n)}${e.length>0?` ${e}`:""}`})).join("\n");return r.message&&!m&&(g=`${" ".repeat(y+1)}${r.message}\n${g}`),i?o.reset(g):g}},9737:(e,t,r)=>{e.exports=r(95619)},27343:(e,t,r)=>{e.exports=r(7286)},30977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,r,s,n){const i=this._queueCursor;i===this._queue.length&&this._allocQueue();const a=this._queue[i];a.char=e,a.repeat=t,a.line=r,a.column=s,a.filename=n,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const r=e?e.get():null;return t.map=r,r},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const r=null==e?void 0:e.getRawMappings();return t.rawMappings=r,r},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let r=0;r<e;r++){const e=t[r];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,r){if(this._last=e,-1===e){const e=this._fastIndentations[t];this._str+=void 0!==e?e:t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)}_append(e,t,r){const s=e.length,n=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!r&&!this._map)return void(n.column+=s);const{column:i,identifierName:a,identifierNamePos:o,filename:u}=t;let l=t.line;null==a&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let c=e.indexOf("\n"),p=0;for(0!==c&&this._mark(l,i,a,o,u);-1!==c;)n.line++,n.column=0,p=c+1,p<s&&void 0!==l&&this._mark(++l,0,null,null,u),c=e.indexOf("\n",p);n.column+=s-p}_mark(e,t,r,s,n){var i;null==(i=this._map)||i.mark(this._position,e,t,r,s,n)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let r=e-1;r>=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const r=e.identifierName,s=this._sourcePosition;r&&(this._canMarkIdName=!1,s.identifierName=r),t(),r&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){this._map&&this._normalizePosition(e,t,r)}withSource(e,t,r){this._map&&this.source(e,t),r()}_normalizePosition(e,t,r){const s=t[e],n=this._sourcePosition;s&&(n.line=s.line,n.column=Math.max(s.column+r,0),n.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let r=-1,s=0;for(let n=0;n<t;n++){const t=e[n];10===t.char&&(r=s),s+=t.repeat}return-1===r?this._position.column+s:s-1-r}getCurrentLine(){let e=0;const t=this._queue;for(let r=0;r<this._queueCursor;r++)10===t[r].char&&e++;return this._position.line+e}}},95690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const r=null==(t=e.directives)?void 0:t.length;if(r){var s;const t=e.body.length?2:1;this.printSequence(e.directives,e,{indent:!0,trailingCommentsLineOffset:t}),null!=(s=e.directives[r-1].trailingComments)&&s.length||this.newline(t)}this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e)},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const{value:n}=e;if(s.test(n)){if(r.test(n))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${n}'`)}else this.token(`"${n}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter,e),this.print(e.program,e)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const r=null==(t=e.directives)?void 0:t.length;if(r){var s;const t=e.body.length?2:1;this.printSequence(e.directives,e,{trailingCommentsLineOffset:t}),null!=(s=e.directives[r-1].trailingComments)&&s.length||this.newline(t)}this.printSequence(e.body,e)};const r=/(?:^|[^\\])(?:\\\\)*'/,s=/(?:^|[^\\])(?:\\\\)*"/},62881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators,e);const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.ClassBody=function(e){this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.endsWith(10)||this.newline(),this.rightBrace(e))},t.ClassExpression=t.ClassDeclaration=function(e,t){(n(t)||i(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.ClassProperty=function(e){var t;this.printJoin(e.decorators,e);const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e))},t._classMethodHead=function(e){var t;this.printJoin(e.decorators,e);const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var s=r(10147);const{isExportDefaultDeclaration:n,isExportNamedDeclaration:i}=s},54428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e,t){const r=this.inForStatementInitCounter&&"in"===e.operator&&!n.needsParens(e,t);r&&this.tokenChar(40),this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator),this.space(),this.print(e.right,e),r&&this.tokenChar(41)},t.AssignmentPattern=function(e){this.print(e.left,e),e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e)},t.AwaitExpression=function(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))},t.BindExpression=function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},t.CallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent,e),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate,e)},t.Decorator=function(e){this.tokenChar(64);const{expression:t}=e;!function(e){return"ParenthesizedExpression"!==e.type&&!l("CallExpression"===e.type?e.callee:e)}(t)?this.print(t,e):(this.tokenChar(40),this.print(t,e),this.tokenChar(41)),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body,e)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&o(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;a(e.property)&&"number"==typeof e.property.value&&(t=!0),t?(this.tokenChar(91),this.print(e.property,e),this.tokenChar(93)):(this.tokenChar(46),this.print(e.property,e))},t.MetaProperty=function(e){this.print(e.meta,e),this.tokenChar(46),this.print(e.property,e)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t,e),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){this.word("new"),this.space(),this.print(e.callee,e),(!this.format.minified||0!==e.arguments.length||e.optional||i(t,{callee:e})||o(t)||u(t))&&(this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e))},t.OptionalCallExpression=function(e){this.print(e.callee,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.print(e.typeArguments,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:r,property:s}=e;if(this.print(e.object,e),!t&&o(s))throw new TypeError("Got a MemberExpression for MemberExpression property");a(s)&&"number"==typeof s.value&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(s,e),this.tokenChar(93)):(r||this.tokenChar(46),this.print(s,e))},t.ParenthesizedExpression=function(e){this.tokenChar(40),this.print(e.expression,e),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id,e)},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){const{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument,e)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.printTerminatorless(e.argument,e,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument,e))):e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var s=r(10147),n=r(22603);const{isCallExpression:i,isLiteral:a,isMemberExpression:o,isNewExpression:u}=s;function l(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&l(e.object);default:return!1}}},41956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),n.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),p.call(this,e)},t.DeclareFunction=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation,e)},t.DeclareOpaqueType=function(e,t){a(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value,e),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;u(this,"boolean",t),l(this,e)},t.EnumBooleanMember=function(e){c(this,e)},t.EnumDeclaration=function(e){const{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t,e),this.print(r,e)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t,e),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;u(this,"number",t),l(this,e)},t.EnumNumberMember=function(e){c(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;u(this,"string",t),l(this,e)},t.EnumStringMember=function(e){c(this,e)},t.EnumSymbolBody=function(e){u(this,"symbol",!0),l(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation,e),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params,e),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest,e)),this.tokenChar(41);const r=null==t?void 0:t.type;null!=r&&("ObjectTypeCallProperty"===r||"ObjectTypeInternalSlot"===r||"DeclareFunction"===r||"ObjectTypeProperty"===r&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation,e)},t.IndexedAccessType=function(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id,e),this.print(e.typeParameters,e,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),this.space(),this.print(e.body,e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:h})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation,e)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())}}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id,e),this.tokenChar(58),this.space()),this.print(e.key,e),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value,e)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id,e),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space()),this._variance(e),this.print(e.key,e),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype,e)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype,e)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType,e),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.tokenChar(46),this.print(e.id,e)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types,e),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params,e,{}),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:d})},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,r,s;(this.print(e.id,e),this.print(e.typeParameters,e),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),"DeclareClass"===e.type)&&(null!=(r=e.mixins)&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e)),null!=(s=e.implements)&&s.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)));this.space(),this.print(e.body,e)},t._variance=function(e){var t;const r=null==(t=e.variance)?void 0:t.kind;null!=r&&("plus"===r?this.tokenChar(43):"minus"===r&&this.tokenChar(45))};var s=r(10147),n=r(55894),i=r(74693);const{isDeclareExportDeclaration:a,isStatement:o}=s;function u(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function l(e,t){const{members:r}=t;e.token("{"),e.indent(),e.newline();for(const s of r)e.print(s,t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function c(e,t){const{id:r,init:s}=t;e.print(r,t),e.space(),e.token("="),e.space(),e.print(s,t),e.token(",")}function p(e){if(e.declaration){const t=e.declaration;this.print(t,e),o(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function h(){this.space(),this.tokenChar(38),this.space()}function d(){this.space(),this.tokenChar(124),this.space()}},2806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(79357);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var n=r(54428);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(99170);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=r(62881);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var o=r(99130);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var u=r(55894);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=r(74693);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(41956);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var p=r(95690);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=r(69924);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var d=r(71410);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}))},69924:(e,t)=>{"use strict";function r(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.tokenChar(61),this.print(e.value,e))},t.JSXClosingElement=function(e){this.token("</"),this.print(e.name,e),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingElement,e)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression,e),this.tokenChar(125)},t.JSXFragment=function(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.tokenChar(46),this.print(e.property,e)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.tokenChar(58),this.print(e.name,e)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:r})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument,e),this.tokenChar(125)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression,e),this.tokenChar(125)},t.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)}},99130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){let r;e.async&&(this.word("async",!0),this.space()),this.format.retainLines||1!==e.params.length||!n(r=e.params[0])||function(e,t){var r,s;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||null!=(r=t.leadingComments)&&r.length||null!=(s=t.trailingComments)&&s.length)}(e,r)?this._params(e,void 0,t):this.print(r,e,!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.print(e.body,e)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body,e)},t._functionHead=function(e,t){e.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),e.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),e.id&&this.print(e.id,e),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){const t=e.kind,r=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r,e),this.tokenChar(93)):this.print(r,e),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},t._param=function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t._parameters=function(e,t){const r=e.length;for(let s=0;s<r;s++)this._param(e[s],t),s<e.length-1&&(this.tokenChar(44),this.space())},t._params=function(e,t,r){this.print(e.typeParameters,e);const s=i.call(this,t,r);s&&this.sourceIdentifierName(s.name,s.pos),this.tokenChar(40),this._parameters(e.params,e),this.tokenChar(41);const n="ArrowFunctionExpression"===e.type;this.print(e.returnType,e,n),this._noLineTerminator=n},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,e,t))};var s=r(10147);const{isIdentifier:n}=s;function i(e,t){let r,s=e;if(!s&&t){const e=t.type;"VariableDeclarator"===e?s=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?s=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(s=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(s=t.key)}if(s){var n,i;if("Identifier"===s.type)r={pos:null==(n=s.loc)?void 0:n.start,name:(null==(i=s.loc)?void 0:i.identifierName)||s.name};else if("PrivateName"===s.type){var a;r={pos:null==(a=s.loc)?void 0:a.start,name:"#"+s.id.name}}else if("StringLiteral"===s.type){var o;r={pos:null==(o=s.loc)?void 0:o.start,name:s.value}}return r}}},55894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()},t.ExportDefaultDeclaration=function(e){p(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space();const t=e.declaration;this.print(t,e),l(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported,e)},t.ExportNamedDeclaration=function(e){if(p(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t,e),l(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const s=e.specifiers.slice(0);let n=!1;for(;;){const t=s[0];if(!i(t)&&!a(t))break;n=!0,this.print(s.shift(),e),s.length&&(this.tokenChar(44),this.space())}var t,r;(s.length||!s.length&&!n)&&(this.tokenChar(123),s.length&&(this.space(),this.printList(s,e),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e)),this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported,e)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,r;this.word("import"),this.space();const s="type"===e.importKind||"typeof"===e.importKind;s?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const n=e.specifiers.slice(0),i=!!n.length;for(;i;){const t=n[0];if(!o(t)&&!u(t))break;this.print(n.shift(),e),n.length&&(this.tokenChar(44),this.space())}n.length?(this.tokenChar(123),this.space(),this.printList(n,e),this.space(),this.tokenChar(125)):s&&!i&&(this.tokenChar(123),this.tokenChar(125)),(i||s)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local,e)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source,e),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options,e)),this.tokenChar(41)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local,e)},t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))},t._printAttributes=function(e){const{importAttributesKeyword:t}=this.format,{attributes:r,assertions:s}=e;!r||t||c||(c=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const n="assert"===t||!t&&s;this.word(n?"assert":"with"),this.space(),n||"with"===t?(this.tokenChar(123),this.space(),this.printList(r||s,e),this.space(),this.tokenChar(125)):this.printList(r||s,e)};var s=r(10147);const{isClassDeclaration:n,isExportDefaultSpecifier:i,isExportNamespaceSpecifier:a,isImportDefaultSpecifier:o,isImportNamespaceSpecifier:u,isStatement:l}=s;let c=!1;function p(e,t){n(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t)}},99170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),c(this,e.label,e,!0)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.tokenChar(41),this.space()),this.print(e.body,e)},t.ContinueStatement=function(e){this.word("continue"),c(this,e.label,e,!0)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.tokenChar(59),e.test&&(this.space(),this.print(e.test,e)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update,e)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.space();const t=e.alternate&&a(u(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.LabeledStatement=function(e){this.print(e.label,e),this.tokenChar(58),this.space(),this.print(e.body,e)},t.ReturnStatement=function(e){this.word("return"),c(this,e.argument,e,!1)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant,e),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),c(this,e.argument,e,!1)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:r}=e;this.word(r,"using"===r||"await using"===r),this.space();let s=!1;if(!n(t))for(const t of e.declarations)t.init&&(s=!0);if(this.printList(e.declarations,e,{separator:s?function(){this.tokenChar(44),this.newline()}:void 0,indent:e.declarations.length>1}),n(t))if(i(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init,e))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object,e),this.tokenChar(41),this.printBlock(e)};var s=r(10147);const{isFor:n,isForStatement:i,isIfStatement:a,isStatement:o}=s;function u(e){const{body:t}=e;return!1===o(t)?e:u(t)}function l(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.print(e.left,e),this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right,e),this.tokenChar(41),this.printBlock(e)}function c(e,t,r,s){t&&(e.space(),e.printTerminatorless(t,r,s)),e.semicolon()}t.ForInStatement=l,t.ForOfStatement=l},79357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){const r=t.quasis[0]===e,s=t.quasis[t.quasis.length-1]===e,n=(r?"`":"}")+e.value.raw+(s?"`":"${");this.token(n,!0)},t.TemplateLiteral=function(e){const t=e.quasis;for(let r=0;r<t.length;r++)this.print(t[r],e),r+1<t.length&&this.print(e.expressions[r],e)}},74693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,r=t.length;this.tokenChar(91);for(let s=0;s<t.length;s++){const n=t[s];n?(s>0&&this.space(),this.print(n,e),s<r-1&&this.tokenChar(44)):this.tokenChar(44)}this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.DecimalLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),r=this.format.jsescOption,s=e.value,i=s+"";r.numbers?this.number(n(s,r),s):null==t?this.number(i,s):this.format.minified?this.number(t.length<i.length?t:i,s):this.number(t,s)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;this.tokenChar(123),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e),e.computed)this.tokenChar(91),this.print(e.key,e),this.tokenChar(93);else{if(i(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value,e)},t.PipelineBareFunction=function(e){this.print(e.callee,e)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression,e)},t.RecordExpression=function(e){const t=e.properties;let r,s;if("bar"===this.format.recordAndTupleSyntaxType)r="{|",s="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",s="}"}this.token(r),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.token(s)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument,e)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const r=n(e.value,this.format.jsescOption);this.token(r)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!o.has(e)){const t=JSON.stringify(e),r=Array.from(o,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,r=t.length;let s,n;if("bar"===this.format.recordAndTupleSyntaxType)s="[|",n="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);s="#[",n="]"}this.token(s);for(let s=0;s<t.length;s++){const n=t[s];n&&(s>0&&this.space(),this.print(n,e),s<r-1&&this.tokenChar(44))}this.token(n)};var s=r(10147),n=r(65490);const{isAssignmentPattern:i,isIdentifier:a}=s,o=new Set(["^^","@@","^","%","#"])},71410:(e,t)=>{"use strict";function r(e,t,r){if(e.token("{"),t.length){e.indent(),e.newline();for(const s of t)e.print(s,r),e.newline();e.dedent()}e.rightBrace(r)}function s(e,t,r){e.printJoin(t.types,t,{separator(){this.space(),this.token(r),this.space()}})}function n(e,t){!0!==t&&e.token(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,e,!0),this.token("[]")},t.TSSatisfiesExpression=t.TSAsExpression=function(e){var t;const{type:r,expression:s,typeAnnotation:n}=e,i=!(null==(t=s.trailingComments)||!t.length);this.print(s,e,!0,void 0,i),this.space(),this.word("TSAsExpression"===r?"as":"satisfies"),this.space(),this.print(n,e)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.tokenChar(59)},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.tokenChar(59)},t.TSEnumDeclaration=function(e){const{declare:t,const:s,id:n,members:i}=e;t&&(this.word("declare"),this.space()),s&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n,e),this.space(),r(this,i,e)},t.TSEnumMember=function(e){const{id:t,initializer:r}=e;this.print(t,e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,e)),this.tokenChar(44)},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression,e),this.tokenChar(59)},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression,e),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{isExport:t,id:r,moduleReference:s}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r,e),this.space(),this.tokenChar(61),this.space(),this.print(s,e),this.tokenChar(59)},t.TSImportType=function(e){const{argument:t,qualifier:r,typeParameters:s}=e;this.word("import"),this.tokenChar(40),this.print(t,e),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r,e)),s&&this.print(s,e)},t.TSIndexSignature=function(e){const{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,e),this.tokenChar(93),this.print(e.typeAnnotation,e),this.tokenChar(59)},t.TSIndexedAccessType=function(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.TSInferType=function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSInterfaceBody=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},t.TSInterfaceDeclaration=function(e){const{declare:t,id:r,typeParameters:s,extends:n,body:i}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r,e),this.print(s,e),null!=n&&n.length&&(this.space(),this.word("extends"),this.space(),this.printList(n,e)),this.space(),this.print(i,e)},t.TSIntersectionType=function(e){s(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal,e)},t.TSMappedType=function(e){const{nameType:t,optional:r,readonly:s,typeParameter:i}=e;this.tokenChar(123),this.space(),s&&(n(this,s),this.word("readonly"),this.space()),this.tokenChar(91),this.word(i.name),this.space(),this.word("in"),this.space(),this.print(i.constraint,i),t&&(this.space(),this.word("as"),this.space(),this.print(t,e)),this.tokenChar(93),r&&(n(this,r),this.tokenChar(63)),this.tokenChar(58),this.space(),this.print(e.typeAnnotation,e),this.space(),this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSModuleBlock=function(e){r(this,e.body,e)},t.TSModuleDeclaration=function(e){const{declare:t,id:r}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word("Identifier"===r.type?"namespace":"module"),this.space()),this.print(r,e),!e.body)return void this.tokenChar(59);let s=e.body;for(;"TSModuleDeclaration"===s.type;)this.tokenChar(46),this.print(s.id,s),s=s.body;this.space(),this.print(s,e)},t.TSNamedTupleMember=function(e){this.print(e.label,e),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType,e)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression,e),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation,e),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation,e),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t,initializer:r}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,e)),this.tokenChar(59)},t.TSQualifiedName=function(e){this.print(e.left,e),this.tokenChar(46),this.print(e.right,e)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation,e)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,e),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:r,typeParameters:s,typeAnnotation:n}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r,e),this.print(s,e),this.space(),this.tokenChar(61),this.space(),this.print(n,e),this.tokenChar(59)},t.TSTypeAnnotation=function(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t,e),this.tokenChar(62),this.space(),this.print(r,e)},t.TSTypeLiteral=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)},t.TSTypeParameter=function(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60),this.printList(e.params,e,{}),"ArrowFunctionExpression"===t.type&&1===e.params.length&&this.tokenChar(44),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters,e)},t.TSTypeReference=function(e){this.print(e.typeName,e,!0),this.print(e.typeParameters,e,!0)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){s(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){const t="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space())},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41),this.space(),this.token("=>"),this.space();const s=e.typeAnnotation;this.print(s.typeAnnotation,e)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key,e),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41);const s=e.typeAnnotation;this.print(s,e)},t.tsPrintTypeLiteralOrInterfaceBody=function(e,t){r(this,e,t)}},12927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGenerator=void 0,t.default=function(e,t,r){return new i(e,t,r).generate()};var s=r(17271),n=r(77314);class i extends n.default{constructor(e,t={},r){const n=function(e,t){var r;const s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),recordAndTupleSyntaxType:null!=(r=t.recordAndTupleSyntaxType)?r:"hash",topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(e=>s.comments||e.includes("@license")||e.includes("@preserve")),"auto"===s.compact&&(s.compact="string"==typeof e&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),s.compact&&(s.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:n,auxiliaryCommentAfter:i,shouldPrintComment:a}=s;return n&&!a(n)&&(s.auxiliaryCommentBefore=void 0),i&&!a(i)&&(s.auxiliaryCommentAfter=void 0),s}(r,t);super(n,t.sourceMaps?new s.default(t,r):null),this.ast=void 0,this.ast=e}generate(){return super.generate(this.ast)}}t.CodeGenerator=class{constructor(e,t,r){this._generator=void 0,this._generator=new i(e,t,r)}generate(){return this._generator.generate()}}},22603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.needsParens=function(e,t,r){var s;return!!t&&(!(!c(t)||t.callee!==e||!f(e))||(null==(s=h.get(e.type))?void 0:s(e,t,r)))},t.needsWhitespace=m,t.needsWhitespaceAfter=function(e,t){return m(e,t,2)},t.needsWhitespaceBefore=function(e,t){return m(e,t,1)};var s=r(83815),n=r(88043),i=r(10147);const{FLIPPED_ALIAS_KEYS:a,isCallExpression:o,isExpressionStatement:u,isMemberExpression:l,isNewExpression:c}=i;function p(e){const t=new Map;function r(e,r){const s=t.get(e);t.set(e,s?function(e,t,n){var i;return null!=(i=s(e,t,n))?i:r(e,t,n)}:r)}for(const t of Object.keys(e)){const s=a[t];if(s)for(const n of s)r(n,e[t]);else r(t,e[t])}return t}const h=p(n),d=p(s.nodes);function f(e){return!!o(e)||l(e)&&f(e.object)}function m(e,t,r){var s;if(!e)return!1;u(e)&&(e=e.expression);const n=null==(s=d.get(e.type))?void 0:s(e,t);return"number"==typeof n&&0!=(n&r)}},88043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){return u(t)||A(e,t)},t.AssignmentExpression=function(e,t){return!!h(e.left)||A(e,t)},t.Binary=function(e,t){const r=t.type;if("**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(g(e,t))return!0;if(b(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;if("BinaryExpression"===r||"LogicalExpression"===r){const s=m.get(t.operator),n=m.get(e.operator);if(s===n&&t.right===e&&"LogicalExpression"!==r||s>n)return!0}},t.BinaryExpression=function(e,t){if("in"===e.operator){const e=t.type;return"VariableDeclarator"===e||"ForStatement"===e||"ForInStatement"===e||"ForOfStatement"===e}return!1},t.ClassExpression=function(e,t,r){return x(r,5)},t.ConditionalExpression=A,t.DoExpression=function(e,t,r){return!e.async&&x(r,1)},t.FunctionExpression=function(e,t,r){return x(r,5)},t.FunctionTypeAnnotation=function(e,t,r){if(r.length<3)return;const s=t.type;return"UnionTypeAnnotation"===s||"IntersectionTypeAnnotation"===s||"ArrayTypeAnnotation"===s||"TypeAnnotation"===s&&i(r[r.length-3])},t.Identifier=function(e,t,r){var s;const n=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===n&&t.left===e){const e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return"let"===e.name?x(r,p(t,{object:e,computed:!0})||d(t,{object:e,computed:!0,optional:!1})?57:32):"async"===e.name&&l(t)&&e===t.left},t.LogicalExpression=function(e,t){const r=t.type;if(y(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return n(t)},t.ObjectExpression=function(e,t,r){return x(r,3)},t.OptionalIndexedAccessType=function(e,t){return c(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return o(t)&&t.callee===e||p(t)&&t.object===e},t.SequenceExpression=function(e,t){const r=t.type;return!("ForStatement"===r||"ThrowStatement"===r||"ReturnStatement"===r||"IfStatement"===r&&t.test===e||"WhileStatement"===r&&t.test===e||"ForInStatement"===r&&t.right===e||"SwitchStatement"===r&&t.discriminant===e||"ExpressionStatement"===r&&t.expression===e)},t.TSTypeAssertion=t.TSSatisfiesExpression=t.TSAsExpression=function(){return!0},t.TSInferType=function(e,t){const r=t.type;return"TSArrayType"===r||"TSOptionalType"===r},t.TSInstantiationExpression=function(e,t){const r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters},t.TSIntersectionType=t.TSUnionType=function(e,t){const r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSUnionType"===r||"TSRestType"===r},t.UnaryLike=E,t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){const r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r},t.UpdateExpression=function(e,t){return b(e,t)||g(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){const r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||b(e,t)||"AwaitExpression"===r&&f(e)||"ConditionalExpression"===r&&e===t.test||g(e,t)};var s=r(10147);const{isArrayTypeAnnotation:n,isArrowFunctionExpression:i,isBinaryExpression:a,isCallExpression:o,isExportDeclaration:u,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:p,isObjectPattern:h,isOptionalMemberExpression:d,isYieldExpression:f}=s,m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function y(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const g=(e,t)=>{const r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},b=(e,t)=>{const r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function E(e,t){return b(e,t)||a(t)&&"**"===t.operator&&t.left===e||g(e,t)}function A(e,t){const r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||y(r))||E(e,t)}function x(e,t){const r=1&t,s=2&t,n=4&t,i=8&t,a=16&t,o=32&t;let u=e.length-1;if(u<=0)return;let l=e[u];u--;let c=e[u];for(;u>=0;){const t=c.type;if(r&&"ExpressionStatement"===t&&c.expression===l||n&&"ExportDefaultDeclaration"===t&&l===c.declaration||s&&"ArrowFunctionExpression"===t&&c.body===l||i&&"ForStatement"===t&&c.init===l||a&&"ForInStatement"===t&&c.left===l||o&&"ForOfStatement"===t&&c.left===l)return!0;if(!(u>0&&(b(l,c)&&"NewExpression"!==t||"SequenceExpression"===t&&c.expressions[0]===l||"UpdateExpression"===t&&!c.prefix||"ConditionalExpression"===t&&c.test===l||("BinaryExpression"===t||"LogicalExpression"===t)&&c.left===l||"AssignmentExpression"===t&&c.left===l)))return!1;l=c,u--,c=e[u]}return!1}},83815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;var s=r(10147);const{FLIPPED_ALIAS_KEYS:n,isArrayExpression:i,isAssignmentExpression:a,isBinary:o,isBlockStatement:u,isCallExpression:l,isFunction:c,isIdentifier:p,isLiteral:h,isMemberExpression:d,isObjectExpression:f,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:g}=s;function b(e,t){return e?(d(e)||y(e)?(b(e.object,t),e.computed&&b(e.property,t)):o(e)||a(e)?(b(e.left,t),b(e.right,t)):l(e)||m(e)?(t.hasCall=!0,b(e.callee,t)):c(e)?t.hasFunction=!0:p(e)&&(t.hasHelper=t.hasHelper||e.callee&&A(e.callee)),t):t}function E(e){return b(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function A(e){return!!e&&(d(e)?A(e.object)||A(e.property):p(e)?"require"===e.name||95===e.name.charCodeAt(0):l(e)?A(e.callee):!(!o(e)&&!a(e))&&(p(e.left)&&A(e.left)||A(e.right)))}function x(e){return h(e)||f(e)||i(e)||p(e)||d(e)}const v=t.nodes={AssignmentExpression(e){const t=E(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2),LogicalExpression(e){if(c(e.left)||c(e.right))return 2},Literal(e){if(g(e)&&"use strict"===e.value)return 2},CallExpression(e){if(c(e.callee)||A(e))return 3},OptionalCallExpression(e){if(c(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let s=A(r.id)&&!x(r.init);if(!s&&r.init){const e=E(r.init);s=A(r.init)&&e.hasCall||e.hasFunction}if(s)return 3}},IfStatement(e){if(u(e.consequent))return 3}};v.ObjectProperty=v.ObjectTypeProperty=v.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1},v.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&(null==(r=t.properties)||!r.length))return 1},v.ObjectTypeIndexer=function(e,t){var r,s;if(!(t.indexers[0]!==e||null!=(r=t.properties)&&r.length||null!=(s=t.callProperties)&&s.length))return 1},v.ObjectTypeInternalSlot=function(e,t){var r,s,n;if(!(t.internalSlots[0]!==e||null!=(r=t.properties)&&r.length||null!=(s=t.callProperties)&&s.length||null!=(n=t.indexers)&&n.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){[e].concat(n[e]||[]).forEach((function(e){const r=t?3:0;v[e]=()=>r}))}))},77314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(30977),n=r(22603),i=r(10147),a=r(2806);const{isFunction:o,isStatement:u,isClassBody:l,isTSInterfaceBody:c,isTSEnumDeclaration:p}=i,h=/e/i,d=/\.0+$/,f=/[\n\r\u2028\u2029]/,m=/[\n\r\u2028\u2029]|\*\//,{needsParens:y}=n;class g{constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=e,this._indentRepeat=e.indent.style.length,this._inputMap=null==t?void 0:t._inputMap,this._buf=new s.default(t,e.indent.style[0])}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47===e.charCodeAt(0)&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!h.test(e)&&!d.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1){this._maybePrintInnerComments();const r=this.getLastChar(),s=e.charCodeAt(0);(33===r&&("--"===e||61===s)||43===s&&43===r||45===s&&45===r||46===s&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar();(43===e&&43===t||45===e&&45===t||46===e&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,r){t&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r))}withSource(e,t,r){t?(this._catchUp(e,t),this._buf.withSource(e,t,r)):r()}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1}_appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1}_queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}_maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(10===e?(this.tokenChar(40),this.indent(),t.printed=!0):this._parenPushNewlineState=null)}_maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;const r=e.length;let s;for(s=0;s<r&&32===e.charCodeAt(s);s++)continue;if(s===r)return;const n=e.charCodeAt(s);if(10!==n){if(47!==n||s+1===r)return void(this._parenPushNewlineState=null);const t=e.charCodeAt(s+1);if(42===t)return;if(47!==t)return void(this._parenPushNewlineState=null)}this.tokenChar(40),this.indent(),t.printed=!0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){var r;if(!this.format.retainLines)return;const s=null==t||null==(r=t[e])?void 0:r.line;if(null!=s){const e=s-this._buf.getCurrentLine();for(let t=0;t<e;t++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e,t,r){if(r)this._noLineTerminator=!0,this.print(e,t);else{const r={printed:!1};this._parenPushNewlineState=r,this.print(e,t),r.printed&&(this.dedent(),this.newline(),this.tokenChar(41))}}print(e,t,r,s,n){var i,a;if(!e)return;this._endsWithInnerRaw=!1;const o=e.type,u=this.format,l=u.concise;e._compact&&(u.concise=!0);const c=this[o];if(void 0===c)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(e.constructor.name)}`);this._printStack.push(e);const p=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!p);const h=null==(i=e.extra)?void 0:i.parenthesized;let d=n||h&&u.retainFunctionParens&&"FunctionExpression"===o||y(e,t,this._printStack);if(!d&&h&&null!=(a=e.leadingComments)&&a.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==t?void 0:t.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(t.callee!==e)break;default:d=!0}d&&(this.tokenChar(40),this._endsWithInnerRaw=!1),this._lastCommentLine=0,this._printLeadingComments(e,t);const f="Program"===o||"File"===o?null:e.loc;this.exactSource(f,c.bind(this,e,t)),d?(this._printTrailingComments(e,t),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,t)):this._printTrailingComments(e,t,s),this._printStack.pop(),u.concise=l,this._insideAux=p,this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,r={}){if(null==e||!e.length)return;let{indent:s}=r;if(null==s&&this.format.retainLines){var n;const t=null==(n=e[0].loc)?void 0:n.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(s=!0)}s&&this.indent();const i={addNewlines:r.addNewlines,nextNodeStartLine:0},a=r.separator?r.separator.bind(this):null,o=e.length;for(let s=0;s<o;s++){const n=e[s];var u;if(n&&(r.statement&&this._printNewline(0===s,i),this.print(n,t,void 0,r.trailingCommentsLineOffset||0),null==r.iterator||r.iterator(n,s),s<o-1&&(null==a||a()),r.statement))if(null!=(u=n.trailingComments)&&u.length||(this._lastCommentLine=0),s+1===o)this.newline(1);else{var l;const t=e[s+1];i.nextNodeStartLine=(null==(l=t.loc)?void 0:l.start.line)||0,this._printNewline(!0,i)}}s&&this.dedent()}printAndIndentOnComments(e,t){const r=e.leadingComments&&e.leadingComments.length>0;r&&this.indent(),this.print(e,t),r&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t,e)}_printTrailingComments(e,t,r){const{innerComments:s,trailingComments:n}=e;null!=s&&s.length&&this._printComments(2,s,e,t,r),null!=n&&n.length&&this._printComments(2,n,e,t,r)}_printLeadingComments(e,t){const r=e.leadingComments;null!=r&&r.length&&this._printComments(0,r,e,t)}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){const e=this._printStack[this._printStack.length-1],t=e.innerComments;if(null==t||!t.length)return;const r=this.endsWith(32),s=this._indentInnerComments,n=this._printedComments.size;s&&this.indent(),this._printComments(1,t,e),r&&n!==this._printedComments.size&&this.space(),s&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,r={}){r.statement=!0,null!=r.indent||(r.indent=!1),this.printJoin(e,t,r)}printList(e,t,r={}){null==r.separator&&(r.separator=b),this.printJoin(e,t,r)}_printNewline(e,t){const r=this.format;if(r.retainLines||r.compact)return;if(r.concise)return void this.space();if(!e)return;const s=t.nextNodeStartLine,n=this._lastCommentLine;if(s>0&&n>0){const e=s-n;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0:this._noLineTerminator&&m.test(e.value)?2:(this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0)}_printComment(e,t){const r=this._noLineTerminator,s="CommentBlock"===e.type,n=s&&1!==t&&!this._noLineTerminator;n&&this._buf.hasContent()&&2!==t&&this.newline(1);const i=this.getLastChar();let a;if(91!==i&&123!==i&&this.space(),s){const{_parenPushNewlineState:t}=this;if(!1===(null==t?void 0:t.printed)&&f.test(e.value)&&(this.tokenChar(40),t.printed=!0),a=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}if(this.format.concise)a=a.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else a=r?`/*${e.value}*/`:`//${e.value}`;this.endsWith(47)&&this._space(),this.source("start",e.loc),this._append(a,s),s||r||this.newline(1,!0),n&&3!==t&&this.newline(1)}_printComments(e,t,r,s,n=0){const i=r.loc,a=t.length;let h=!!i;const d=h?i.start.line:0,m=h?i.end.line:0;let y=0,g=0;const b=this._noLineTerminator?function(){}:this.newline.bind(this);for(let i=0;i<a;i++){const E=t[i],A=this._shouldPrintComment(E);if(2===A){h=!1;break}if(h&&E.loc&&1===A){const t=E.loc.start.line,r=E.loc.end.line;if(0===e){let e=0;0===i?!this._buf.hasContent()||"CommentLine"!==E.type&&t==r||(e=g=1):e=t-y,y=r,b(e),this._printComment(E,1),i+1===a&&(b(Math.max(d-y,g)),y=d)}else if(1===e){const e=t-(0===i?d:y);y=r,b(e),this._printComment(E,1),i+1===a&&(b(Math.min(1,m-y)),y=m)}else{const e=t-(0===i?m-n:y);y=r,b(e),this._printComment(E,1)}}else{if(h=!1,1!==A)continue;if(1===a){const t=E.loc?E.loc.start.line===E.loc.end.line:!f.test(E.value),n=t&&!u(r)&&!l(s)&&!c(s)&&!p(s);0===e?this._printComment(E,n&&"ObjectExpression"!==r.type||t&&o(s,{body:r})?1:0):n&&2===e?this._printComment(E,1):this._printComment(E,0)}else 1!==e||"ObjectExpression"===r.type&&r.properties.length>1||"ClassBody"===r.type||"TSInterfaceBody"===r.type?this._printComment(E,0):this._printComment(E,0===i?2:i===a-1?3:0)}}2===e&&h&&y&&(this._lastCommentLine=y)}}function b(){this.tokenChar(44),this.space()}Object.assign(g.prototype,a),g.prototype.Noop=function(){},t.default=g},17271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(50620),n=r(73244);t.default=class{constructor(e,t){var r;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const i=this._map=new s.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(r=e.sourceFileName)?void 0:r.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new n.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var a;(0,s.setSourceContent)(i,t[e],null==(a=this._inputMap.sourcesContent)?void 0:a[e])}}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(const e of Object.keys(t))(0,s.setSourceContent)(i,e.replace(/\\/g,"/"),t[e])}else(0,s.setSourceContent)(i,this._sourceFileName,t)}get(){return(0,s.toEncodedMap)(this._map)}getDecoded(){return(0,s.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,s.allMappings)(this._map))}mark(e,t,r,i,a,o){var u;let l;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(l=(0,n.originalPositionFor)(this._inputMap,{line:t,column:r}),!l.name&&a){const e=(0,n.originalPositionFor)(this._inputMap,a);e.name&&(i=e.name)}}else l={source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r};(0,s.maybeAddMapping)(this._map,{name:i,generated:e,source:null==(u=l)?void 0:u.source,original:l})}}},6488:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInclusionReasons=function(e,t,r){const a=r[e]||{};return Object.keys(t).reduce(((e,r)=>{const o=(0,i.getLowestImplementedVersion)(a,r),u=t[r];if(o){const t=(0,i.isUnreleasedVersion)(o,r);(0,i.isUnreleasedVersion)(u,r)||!t&&!s.lt(u.toString(),(0,i.semverify)(o))||(e[r]=(0,n.prettifyVersion)(u))}else e[r]=(0,n.prettifyVersion)(u);return e}),{})};var s=r(10638),n=r(35671),i=r(77407)},40114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,s,n,i,a){const u=new Set,l={compatData:e,includes:t,excludes:r};for(const t in e)if(o(t,s,l))u.add(t);else if(a){const e=a.get(t);e&&u.add(e)}return null==n||n.forEach((e=>!r.has(e)&&u.add(e))),null==i||i.forEach((e=>!t.has(e)&&u.delete(e))),u},t.isRequired=o,t.targetsSupported=a;var s=r(10638),n=r(27343),i=r(77407);function a(e,t){const r=Object.keys(e);return 0!==r.length&&0===r.filter((r=>{const n=(0,i.getLowestImplementedVersion)(t,r);if(!n)return!0;const a=e[r];if((0,i.isUnreleasedVersion)(a,r))return!1;if((0,i.isUnreleasedVersion)(n,r))return!0;if(!s.valid(a.toString()))throw new Error(`Invalid version passed for target "${r}": "${a}". Versions must be in semver format (major.minor.patch)`);return s.gt((0,i.semverify)(n),a.toString())})).length}function o(e,t,{compatData:r=n,includes:s,excludes:i}={}){return!(null!=i&&i.has(e)||(null==s||!s.has(e))&&a(t,r[e]))}},63479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TargetNames",{enumerable:!0,get:function(){return l.TargetNames}}),t.default=function(e={},t={}){var r,i;let{browsers:a,esmodules:c}=e;const{configPath:p="."}=t;!function(e){f.invariant(void 0===e||m(e),`'${String(e)}' is not a valid browserslist query`)}(a);let h=function(e){const t=Object.keys(l.TargetNames);for(const r of Object.keys(e))if(!(r in l.TargetNames))throw new Error(f.formatMessage(`'${r}' is not a valid target\n- Did you mean '${(0,n.findSuggestion)(r,t)}'?`));return e}(function(e){const t=Object.assign({},e);return delete t.esmodules,delete t.browsers,t}(e));const y=!!a||Object.keys(h).length>0,A=!t.ignoreBrowserslistConfig&&!y;if(!a&&A&&(a=s.loadConfig({config:t.configFile,path:p,env:t.browserslistEnv}),null==a&&(a=[])),!c||"intersect"===c&&null!=(r=a)&&r.length||(a=Object.keys(d).map((e=>`${e} >= ${d[e]}`)).join(", "),c=!1),null!=(i=a)&&i.length){const e=function(e,t){const r="string"==typeof e?e:e.join()+t;let n=E.get(r);return n||(n=function(e,t){return function(e){return e.reduce(((e,t)=>{const[r,s]=t.split(" "),n=u.browserNameMap[r];if(!n)return e;try{const t=s.split("-")[0].toLowerCase(),r=(0,o.isUnreleasedVersion)(t,n);if(!e[n])return e[n]=r?t:(0,o.semverify)(t),e;const i=e[n],a=(0,o.isUnreleasedVersion)(i,n);if(a&&r)e[n]=(0,o.getLowestUnreleased)(i,t,n);else if(a)e[n]=(0,o.semverify)(t);else if(!a&&!r){const r=(0,o.semverify)(t);e[n]=(0,o.semverMin)(i,r)}}catch(e){}return e}),{})}(s(e,{mobileToDesktop:!0,env:t}))}(e,t),E.set(r,n)),Object.assign({},n)}(a,t.browserslistEnv);if("intersect"===c)for(const t of Object.keys(e))if("deno"!==t&&"ie"!==t){const r=d["opera_mobile"===t?"op_mob":t];if(r){const s=e[t];e[t]=(0,o.getHighestUnreleased)(s,(0,o.semverify)(r),t)}else delete e[t]}else delete e[t];h=Object.assign(e,h)}const x={},v=[];for(const e of Object.keys(h).sort()){const t=h[e];"number"==typeof t&&t%1!=0&&v.push({target:e,value:t});const[r,s]="node"===e?g(t):b(e,t);s&&(x[r]=s)}return(C=v).length&&(console.warn("Warning, the following targets are using a decimal version:\n"),C.forEach((({target:e,value:t})=>console.warn(` ${e}: ${t}`))),console.warn("\nWe recommend using a string for minor/patch versions to avoid numbers like 6.10\ngetting parsed as 6.1, which can lead to unexpected behavior.\n")),x;var C},Object.defineProperty(t,"filterItems",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"getInclusionReasons",{enumerable:!0,get:function(){return p.getInclusionReasons}}),t.isBrowsersQueryValid=m,Object.defineProperty(t,"isRequired",{enumerable:!0,get:function(){return h.isRequired}}),Object.defineProperty(t,"prettifyTargets",{enumerable:!0,get:function(){return c.prettifyTargets}}),Object.defineProperty(t,"unreleasedLabels",{enumerable:!0,get:function(){return u.unreleasedLabels}});var s=r(70648),n=r(39400),i=r(9737),a=r(66249),o=r(77407),u=r(86124),l=r(7900),c=r(35671),p=r(6488),h=r(40114);const d=i["es6.module"],f=new n.OptionValidator("@babel/helper-compilation-targets");function m(e){return"string"==typeof e||Array.isArray(e)&&e.every((e=>"string"==typeof e))}function y(e,t){try{return(0,o.semverify)(t)}catch(r){throw new Error(f.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function g(e){return["node",!0===e||"current"===e?process.versions.node:y("node",e)]}function b(e,t){return[e,(0,o.isUnreleasedVersion)(t,e)?t.toLowerCase():y(e,t)]}const E=new a({max:64})},7900:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TargetNames=void 0,t.TargetNames={node:"node",deno:"deno",chrome:"chrome",opera:"opera",edge:"edge",firefox:"firefox",safari:"safari",ie:"ie",ios:"ios",android:"android",electron:"electron",samsung:"samsung",rhino:"rhino",opera_mobile:"opera_mobile"}},35671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prettifyTargets=function(e){return Object.keys(e).reduce(((t,r)=>{let s=e[r];const a=n.unreleasedLabels[r];return"string"==typeof s&&a!==s&&(s=i(s)),t[r]=s,t}),{})},t.prettifyVersion=i;var s=r(10638),n=r(86124);function i(e){if("string"!=typeof e)return e;const{major:t,minor:r,patch:n}=s.parse(e),i=[t];return(r||n)&&i.push(r),n&&i.push(n),i.join(".")}},86124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unreleasedLabels=t.browserNameMap=void 0,t.unreleasedLabels={safari:"tp"},t.browserNameMap={and_chr:"chrome",and_ff:"firefox",android:"android",chrome:"chrome",edge:"edge",firefox:"firefox",ie:"ie",ie_mob:"ie",ios_saf:"ios",node:"node",deno:"deno",op_mob:"opera_mobile",opera:"opera",safari:"safari",samsung:"samsung"}},77407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHighestUnreleased=function(e,t,r){return l(e,t,r)===e?t:e},t.getLowestImplementedVersion=function(e,t){const r=e[t];return r||"android"!==t?r:e.chrome},t.getLowestUnreleased=l,t.isUnreleasedVersion=function(e,t){const r=i.unreleasedLabels[t];return!!r&&r===e.toString().toLowerCase()},t.semverMin=u,t.semverify=function(e){if("string"==typeof e&&s.valid(e))return e;o.invariant("number"==typeof e||"string"==typeof e&&a.test(e),`'${e}' is not a valid version`),e=e.toString();let t=0,r=0;for(;(t=e.indexOf(".",t+1))>0;)r++;return e+".0".repeat(2-r)};var s=r(10638),n=r(39400),i=r(86124);const a=/^(\d+|\d+.\d+)$/,o=new n.OptionValidator("@babel/helper-compilation-targets");function u(e,t){return e&&s.lt(e,t)?e:t}function l(e,t,r){const s=i.unreleasedLabels[r];return e===s?t:t===s?e:u(e,t)}},14743:(e,t)=>{"use strict";function r(e){const{context:t,node:r}=e;if(r.computed&&t.maybeQueue(e.get("key")),r.decorators)for(const r of e.get("decorators"))t.maybeQueue(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=r,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var s={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&r(e))},Property(e){e.isObjectProperty()||(e.skip(),r(e))}};t.default=s},33554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({node:e,parent:t,scope:r,id:s},n=!1,P=!1){if(e.id)return;if(!m(t)&&!f(t,{kind:"method"})||t.computed&&!h(t.key)){if(E(t)){if(s=t.id,p(s)&&!n){const t=r.parent.getBinding(s.name);if(t&&t.constant&&r.getBinding(s.name)===t)return e.id=a(s),void(e.id[i]=!0)}}else if(u(t,{operator:"="}))s=t.left;else if(!s)return}else s=t.key;let S;if(s&&h(s)?S=function(e){return d(e)?"null":y(e)?`_${e.pattern}_${e.flags}`:b(e)?e.quasis.map((e=>e.value.raw)).join(""):void 0!==e.value?e.value+"":""}(s):s&&p(s)&&(S=s.name),void 0===S)return;if(!P&&c(e)&&/[\uD800-\uDFFF]/.test(S))return;S=A(S);const w=o(S);return w[i]=!0,function(e,t,r,s){if(e.selfReference){if(!s.hasBinding(r.name)||s.hasGlobal(r.name)){if(!c(t))return;let e=x;t.generator&&(e=v);const n=e({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:s.generateUidIdentifier(r.name)}).expression,i=n.callee.body.body[0].params;for(let e=0,r=function(e){const t=e.params.findIndex((e=>l(e)||g(e)));return-1===t?e.params.length:t}(t);e<r;e++)i.push(s.generateUidIdentifier("x"));return n}s.rename(r.name)}t.id=r,s.getProgramParent().references[r.name]=!0}(function(e,t,r){const s={selfAssignment:!1,selfReference:!1,outerDeclar:r.getBindingIdentifier(t),name:t},n=r.getOwnBinding(t);return n?"param"===n.kind&&(s.selfReference=!0):(s.outerDeclar||r.hasGlobal(t))&&r.traverse(e,C,s),s}(e,S,r),e,w,r)||e};var s=r(67504),n=r(10147);const{NOT_LOCAL_BINDING:i,cloneNode:a,identifier:o,isAssignmentExpression:u,isAssignmentPattern:l,isFunction:c,isIdentifier:p,isLiteral:h,isNullLiteral:d,isObjectMethod:f,isObjectProperty:m,isRegExpLiteral:y,isRestElement:g,isTemplateLiteral:b,isVariableDeclarator:E,toBindingIdentifierName:A}=n,x=s.default.statement("\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),v=s.default.statement("\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),C={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop())}}},80917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r="var"){e.traverse(o,{kind:r,emit:t})};var s=r(10147);const{assignmentExpression:n,expressionStatement:i,identifier:a}=s,o={Scope(e,t){"let"===t.kind&&e.skip()},FunctionParent(e){e.skip()},VariableDeclaration(e,t){if(t.kind&&e.node.kind!==t.kind)return;const r=[],s=e.get("declarations");let o;for(const e of s){o=e.node.id,e.node.init&&r.push(i(n("=",e.node.id,e.node.init)));for(const r of Object.keys(e.getBindingIdentifiers()))t.emit(a(r),r,null!==e.node.init)}e.parentPath.isFor({left:e.node})?e.replaceWith(o):e.replaceWithMultiple(r)}}},2467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(27790),n=r(10147);const{callExpression:i,cloneNode:a,expressionStatement:o,identifier:u,importDeclaration:l,importDefaultSpecifier:c,importNamespaceSpecifier:p,importSpecifier:h,memberExpression:d,stringLiteral:f,variableDeclaration:m,variableDeclarator:y}=n;t.default=class{constructor(e,t,r){this._statements=[],this._resultName=null,this._importedSource=void 0,this._scope=t,this._hub=r,this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){return this._statements.push(l([],f(this._importedSource))),this}require(){return this._statements.push(o(i(u("require"),[f(this._importedSource)]))),this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e),r=this._statements[this._statements.length-1];return s("ImportDeclaration"===r.type),s(0===r.specifiers.length),r.specifiers=[p(t)],this._resultName=a(t),this}default(e){const t=this._scope.generateUidIdentifier(e),r=this._statements[this._statements.length-1];return s("ImportDeclaration"===r.type),s(0===r.specifiers.length),r.specifiers=[c(t)],this._resultName=a(t),this}named(e,t){if("default"===t)return this.default(e);const r=this._scope.generateUidIdentifier(e),n=this._statements[this._statements.length-1];return s("ImportDeclaration"===n.type),s(0===n.specifiers.length),n.specifiers=[h(r,u(t))],this._resultName=a(r),this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];return"ExpressionStatement"!==r.type&&(s(this._resultName),r=o(this._resultName),this._statements.push(r)),this._statements[this._statements.length-1]=m("var",[y(t,r.expression)]),this._resultName=a(t),this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];return"ExpressionStatement"===t.type?t.expression=i(e,[t.expression]):"VariableDeclaration"===t.type?(s(1===t.declarations.length),t.declarations[0].init=i(e,[t.declarations[0].init])):s.fail("Unexpected type."),this}prop(e){const t=this._statements[this._statements.length-1];return"ExpressionStatement"===t.type?t.expression=d(t.expression,u(e)):"VariableDeclaration"===t.type?(s(1===t.declarations.length),t.declarations[0].init=d(t.declarations[0].init,u(e))):s.fail("Unexpected type:"+t.type),this}read(e){this._resultName=d(this._resultName,u(e))}}},244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(27790),n=r(10147),i=r(2467),a=r(50555);const{numericLiteral:o,sequenceExpression:u}=n;t.default=class{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:!1,ensureNoContext:!1,importPosition:"before"};const s=e.find((e=>e.isProgram()));this._programPath=s,this._programScope=s.scope,this._hub=s.hub,this._defaultOpts=this._applyDefaults(t,r,!0)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){return s("string"==typeof e),this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=!1){let n;return"string"==typeof e?n=Object.assign({},this._defaultOpts,{importedSource:e},t):(s(!t,"Unexpected secondary arguments."),n=Object.assign({},this._defaultOpts,e)),!r&&t&&(void 0!==t.nameHint&&(n.nameHint=t.nameHint),void 0!==t.blockHoist&&(n.blockHoist=t.blockHoist)),n}_generateImport(e,t){const r="default"===t,s=!!t&&!r,n=null===t,{importedSource:l,importedType:c,importedInterop:p,importingInterop:h,ensureLiveReference:d,ensureNoContext:f,nameHint:m,importPosition:y,blockHoist:g}=e;let b=m||t;const E=(0,a.default)(this._programPath),A=E&&"node"===h,x=E&&"babel"===h;if("after"===y&&!E)throw new Error('"importPosition": "after" is only supported in modules');const v=new i.default(l,this._programScope,this._hub);if("es6"===c){if(!A&&!x)throw new Error("Cannot import an ES6 module from CommonJS");v.import(),n?v.namespace(m||l):(r||s)&&v.named(b,t)}else{if("commonjs"!==c)throw new Error(`Unexpected interopType "${c}"`);if("babel"===p)if(A){b="default"!==b?b:l;const e=`${l}$es6Default`;v.import(),n?v.default(e).var(b||l).wildcardInterop():r?d?v.default(e).var(b||l).defaultInterop().read("default"):v.default(e).var(b).defaultInterop().prop(t):s&&v.default(e).read(t)}else x?(v.import(),n?v.namespace(b||l):(r||s)&&v.named(b,t)):(v.require(),n?v.var(b||l).wildcardInterop():(r||s)&&d?r?(b="default"!==b?b:l,v.var(b).read(t),v.defaultInterop()):v.var(l).read(t):r?v.var(b).defaultInterop().prop(t):s&&v.var(b).prop(t));else if("compiled"===p)A?(v.import(),n?v.default(b||l):(r||s)&&v.default(l).read(b)):x?(v.import(),n?v.namespace(b||l):(r||s)&&v.named(b,t)):(v.require(),n?v.var(b||l):(r||s)&&(d?v.var(l).read(b):v.prop(t).var(b)));else{if("uncompiled"!==p)throw new Error(`Unknown importedInterop "${p}".`);if(r&&d)throw new Error("No live reference for commonjs default");A?(v.import(),n?v.default(b||l):r?v.default(b):s&&v.default(l).read(b)):x?(v.import(),n?v.default(b||l):r?v.default(b):s&&v.named(b,t)):(v.require(),n?v.var(b||l):r?v.var(b):s&&(d?v.var(l).read(b):v.var(b).prop(t)))}}const{statements:C,resultName:P}=v.done();return this._insertStatements(C,y,g),(r||s)&&f&&"Identifier"!==P.type?u([o(0),P]):P}_insertStatements(e,t="before",r=3){const s=this._programPath.get("body");if("after"===t){for(let t=s.length-1;t>=0;t--)if(s[t].isImportDeclaration())return void s[t].insertAfter(e)}else{e.forEach((e=>{e._blockHoist=r}));const t=s.find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(t)return void t.insertBefore(e)}this._programPath.unshiftContainer("body",e)}}},89196:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImportInjector",{enumerable:!0,get:function(){return s.default}}),t.addDefault=function(e,t,r){return new s.default(e).addDefault(t,r)},t.addNamed=function(e,t,r,n){return new s.default(e).addNamed(t,r,n)},t.addNamespace=function(e,t,r){return new s.default(e).addNamespace(t,r)},t.addSideEffect=function(e,t,r){return new s.default(e).addSideEffect(t,r)},Object.defineProperty(t,"isModule",{enumerable:!0,get:function(){return n.default}});var s=r(244),n=r(50555)},50555:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"module"===e.node.sourceType}},42833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildDynamicImport=function(e,t,r,n){const i=s.types.isCallExpression(e)?e.arguments[0]:e.source;if(s.types.isStringLiteral(i)||s.types.isTemplateLiteral(i)&&0===i.quasis.length)return t?s.template.expression.ast`
|
|
22
|
+
`,{placeholderPattern:!1,placeholderWhitelist:new Set(["DE_IDENTIFIER"])}),x=a.template.expression("(\n SYNC_RETURN_VALUE_IDENTIFIER = NODE,\n FUNCTION_STATE_IDENTIFIER === 'async' ? SYNC_RETURN_VALUE_IDENTIFIER : null\n )");function v({file:t},r,{wrap:s=!0}={}){var n,i;const a=(25,(o=void 0!==r.start?t.code.slice(null!==(n=r.start)&&void 0!==n?n:void 0,null!==(i=r.end)&&void 0!==i?i:void 0):"<unknown>").length<=25?o:o.slice(0,14)+" ... "+o.slice(o.length-6));var o;return s?e.stringLiteral("\ufeff"+a+"\ufeff"):e.stringLiteral(a)}return{pre(e){this.file=e},visitor:{BlockStatement(r){var a,o,g,E,x,v,C,P,S,w,T,F;if(!r.parentPath.isFunction())return;if(r.parentPath.getData(u))return;if(r.parentPath.node[t])return;if(r.parentPath.node[s])return;const D=void 0!==r.parent.start?this.file.code.slice(null!==(a=r.parent.start)&&void 0!==a?a:void 0,null!==(o=r.parent.end)&&void 0!==o?o:void 0):"function () { [unknown code] }",I=encodeURIComponent(D),_=e.expressionStatement(e.stringLiteral(`<async_rewriter>${I}</>`)),k=null===(g=r.findParent((e=>!!e.getData(u))))||void 0===g?void 0:g.getData(u),B=r.scope.generateUidIdentifier("fs"),O=r.scope.generateUidIdentifier("srv"),N=r.scope.generateUidIdentifier("arv"),M=null!==(E=null==k?void 0:k.expressionHolder)&&void 0!==E?E:r.scope.generateUidIdentifier("ex"),L=null!==(x=null==k?void 0:k.markSyntheticPromise)&&void 0!==x?x:r.scope.generateUidIdentifier("msp"),R=null!==(v=null==k?void 0:k.isSyntheticPromise)&&void 0!==v?v:r.scope.generateUidIdentifier("isp"),j=null!==(C=null==k?void 0:k.adaptAsyncIterableToSyncIterable)&&void 0!==C?C:r.scope.generateUidIdentifier("aaitsi"),U=null!==(P=null==k?void 0:k.assertNotSyntheticPromise)&&void 0!==P?P:r.scope.generateUidIdentifier("ansp"),V=null!==(S=null==k?void 0:k.syntheticPromiseSymbol)&&void 0!==S?S:r.scope.generateUidIdentifier("sp"),$=null!==(w=null==k?void 0:k.syntheticAsyncIterableSymbol)&&void 0!==w?w:r.scope.generateUidIdentifier("sai"),z=null!==(T=null==k?void 0:k.demangleError)&&void 0!==T?T:r.scope.generateUidIdentifier("de"),q={functionState:B,synchronousReturnValue:O,asynchronousReturnValue:N,expressionHolder:M,markSyntheticPromise:L,isSyntheticPromise:R,adaptAsyncIterableToSyncIterable:j,assertNotSyntheticPromise:U,syntheticPromiseSymbol:V,syntheticAsyncIterableSymbol:$,demangleError:z};r.parentPath.setData(u,q);const W=k?[]:[...l({SP_IDENTIFIER:V,SAI_IDENTIFIER:$}).map((e=>Object.assign(e,{[s]:!0}))),Object.assign(m({EXPRESSION_HOLDER_IDENTIFIER:M}),{[s]:!0})],K=k?[]:[...W,Object.assign(c({MSP_IDENTIFIER:L,SP_IDENTIFIER:V}),{[s]:!0}),Object.assign(d({AAITSI_IDENTIFIER:j,SAI_IDENTIFIER:$}),{[s]:!0}),Object.assign(p({ISP_IDENTIFIER:R,SP_IDENTIFIER:V}),{[s]:!0}),Object.assign(A({DE_IDENTIFIER:z}),{[s]:!0})],H=[...W,Object.assign(h({ANSP_IDENTIFIER:U,SP_IDENTIFIER:V,SAI_IDENTIFIER:$,CUSTOM_ERROR_BUILDER:null!==(F=this.opts.customErrorBuilder)&&void 0!==F?F:e.identifier("Error")}),{[s]:!0})];if(r.parentPath.node.async)return void r.replaceWith(e.blockStatement([_,...K,b({ORIGINAL_CODE:r.node.body})]));if(r.parentPath.node.generator||r.parentPath.isClassMethod()&&"Identifier"===r.parentPath.node.key.type&&"constructor"===r.parentPath.node.key.name)return Object.assign(r.parentPath.node,{[i]:!0}),void r.replaceWith(e.blockStatement([_,...H,b({ORIGINAL_CODE:r.node.body})]));const G=Object.assign(f({FUNCTION_STATE_IDENTIFIER:B,SYNC_RETURN_VALUE_IDENTIFIER:O,ORIGINAL_CODE:Object.assign(r.node,{[n]:!0})}),{[t]:!0}),X=y({FUNCTION_STATE_IDENTIFIER:B,SYNC_RETURN_VALUE_IDENTIFIER:O,ASYNC_RETURN_VALUE_IDENTIFIER:N,MSP_IDENTIFIER:L,ASYNC_TRY_CATCH_WRAPPER:G});r.replaceWith(e.blockStatement([_,...K,...X]))},UnaryExpression:{enter(t){"typeof"!==t.node.operator||"Identifier"!==t.node.argument.type||t.node[o]||t.replaceWith(e.conditionalExpression(e.binaryExpression("===",{...t.node,[s]:!0,[o]:!0},e.stringLiteral("undefined")),e.stringLiteral("undefined"),{...t.node,[o]:!0}))}},Expression:{enter(t){var r,n;if(t.parentPath.isArrowFunctionExpression()&&"body"===t.key&&t.replaceWith(e.blockStatement([e.returnStatement(t.node)])),null===(n=null===(r=t.find((e=>e.isFunction()||!!e.node[s])))||void 0===r?void 0:r.node)||void 0===n?void 0:n[s])return t.skip()},exit(r){var a,o,l,c;const p=r.getFunctionParent();if(!p)return;if(!p.node.async&&!p.node[i])return;let h;if(p.node[t]){if(!(null===(o=null===(a=r.findParent((e=>e.isFunction()||!!e.node[n])))||void 0===a?void 0:a.node)||void 0===o?void 0:o[n]))return;if(h=null===(c=null===(l=p.getFunctionParent())||void 0===l?void 0:l.getData)||void 0===c?void 0:c.call(l,u),!h)throw new Error("Parent of generated inner function does not have existing identifiers available");if(r.parentPath.isReturnStatement()&&!r.node[s])return void r.replaceWith(Object.assign(x({SYNC_RETURN_VALUE_IDENTIFIER:h.synchronousReturnValue,FUNCTION_STATE_IDENTIFIER:h.functionState,NODE:r.node}),{[s]:!0}))}else h=p.getData(u);if(r.parentPath.isCallExpression()&&"callee"===r.key&&(r.isMemberExpression()||r.isImport()||r.isIdentifier()&&"eval"===r.node.name))return;if(r.parentPath.isAssignmentExpression()&&"left"===r.key)return;if(r.parentPath.isForXStatement()&&"left"===r.key)return;if(r.parentPath.isUpdateExpression())return;if(r.parentPath.isUnaryExpression()&&"delete"===r.parentPath.node.operator)return;if(r.isLiteral()||r.isArrayExpression()||r.isObjectExpression()||r.isFunctionExpression()||r.isArrowFunctionExpression()||r.isClassExpression()||r.isAssignmentExpression()||r.isBinaryExpression()||r.isConditionalExpression()||r.isLogicalExpression()||r.isSequenceExpression()||r.isParenthesizedExpression()||r.isUnaryExpression()||r.isSuper()||r.isThisExpression()||r.isAwaitExpression()||r.parentPath.isAwaitExpression())return;if(r.isIdentifier()&&r.scope.hasBinding(r.node.name))return;const{expressionHolder:d,isSyntheticPromise:f,assertNotSyntheticPromise:m}=h;if(!p.node.async){const t=[r.node,v(this,r.node,{wrap:!1})];return("ForOfStatement"===r.parent.type&&r.node===r.parent.right||"YieldExpression"===r.parent.type&&r.parent.delegate)&&t.push(e.booleanLiteral(!0)),void r.replaceWith(Object.assign(e.callExpression(m,t),{[s]:!0}))}r.replaceWith(Object.assign(g({ORIGINAL_SOURCE:v(this,r.node),EXPRESSION_HOLDER:d,ISP_IDENTIFIER:f,NODE:r.node}),{[s]:!0})),r.skip()}},CatchClause:{exit(t){var r;if(t.node[s]||!t.node.param||"Identifier"!==t.node.param.type)return;const n=null===(r=t.findParent((e=>!!e.getData(u))))||void 0===r?void 0:r.getData(u);n&&t.replaceWith(Object.assign(e.catchClause(t.node.param,e.blockStatement([e.expressionStatement(e.assignmentExpression("=",t.node.param,e.callExpression(n.demangleError,[t.node.param]))),t.node.body])),{[s]:!0}))}},ForOfStatement(t){var n,i,a,o,l,c;if(t.node.await||!(null===(n=t.getFunctionParent())||void 0===n?void 0:n.node.async))return;if(null===(a=null===(i=t.find((e=>e.isFunction()||!!e.node[s])))||void 0===i?void 0:i.node)||void 0===a?void 0:a[s])return t.skip();if(null===(l=null===(o=t.find((e=>e.isFunction()||!!e.node[r])))||void 0===o?void 0:o.node)||void 0===l?void 0:l[r])return;const p=null===(c=t.findParent((e=>!!e.getData(u))))||void 0===c?void 0:c.getData(u);if(!p)throw new Error("Missing identifier group for ForOfStatement");const{adaptAsyncIterableToSyncIterable:h}=p,d=t.scope.generateUidIdentifier("i");t.replaceWith(Object.assign(E({ORIGINAL_ITERABLE:t.node.right,ORIGINAL_ITERABLE_SOURCE:v(this,t.node.right),ORIGINAL_DECLARATION:"VariableDeclaration"===t.node.left.type?e.variableDeclaration(t.node.left.kind,t.node.left.declarations.map((e=>({...e,init:d})))):e.expressionStatement(e.assignmentExpression("=",t.node.left,d)),ORIGINAL_BODY:t.node.body,ITERABLE_INFO:t.scope.generateUidIdentifier("ii"),ITERABLE_ISAI:t.scope.generateUidIdentifier("isai"),ITERABLE:t.scope.generateUidIdentifier("it"),ITEM:d,AAITSI_IDENTIFIER:h}),{[r]:!0}))}}}}},15588:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=i(r(63005));t.default=({types:e})=>{const t=Symbol("isGeneratedTryCatch"),r=a.template.expression("\n (!ERR_IDENTIFIER || !ERR_IDENTIFIER[Symbol.for('@@mongosh.uncatchable')])\n ");return{visitor:{TryStatement(s){var n;if(s.node[t])return;const{block:i,finalizer:a}=s.node;let o,u;const l=s.scope.generateUidIdentifier("err");if(s.node.handler?"Identifier"===(null===(n=s.node.handler.param)||void 0===n?void 0:n.type)?(o=s.node.handler.param,u=s.node.handler):s.node.handler.param?(o=l,u=e.catchClause(o,e.blockStatement([e.variableDeclaration("let",[e.variableDeclarator(s.node.handler.param,o)]),s.node.handler.body]))):(o=l,u=s.node.handler):(o=l,u=e.catchClause(o,e.blockStatement([e.throwStatement(o)]))),a){const n=s.scope.generateUidIdentifier("_isCatchable"),l=s.scope.generateUidIdentifier("_innerExc");s.replaceWithMultiple([e.variableDeclaration("let",[e.variableDeclarator(n,e.booleanLiteral(!0))]),Object.assign(e.tryStatement(i,e.catchClause(o,e.blockStatement([e.expressionStatement(e.assignmentExpression("=",n,r({ERR_IDENTIFIER:o}))),e.ifStatement(n,Object.assign(e.tryStatement(u.body,e.catchClause(l,e.blockStatement([e.expressionStatement(e.assignmentExpression("=",n,r({ERR_IDENTIFIER:l}))),e.throwStatement(l)]))),{[t]:!0}),e.throwStatement(o))])),e.blockStatement([e.ifStatement(n,a)])),{[t]:!0})])}else s.replaceWith(Object.assign(e.tryStatement(i,e.catchClause(o,e.blockStatement([e.ifStatement(r({ERR_IDENTIFIER:o}),u.body,e.throwStatement(o))]))),{[t]:!0}))}}}}},86121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=({types:e})=>({pre(){this.movedStatements=[],this.functionDeclarations=[],this.hasFinishedMoving=!1,this.addedCompletionRecords=!1,this.variables=[]},visitor:{Statement(t){if(!this.hasFinishedMoving){if(t.isDeclaration()&&!t.getFunctionParent())if(t.isVariableDeclaration()){if(t.parentPath.isProgram()||"var"===t.node.kind){const r=[];for(const s of t.node.declarations){if(s.id.name===this.completionRecordId.name)return;if(this.variables.push(s.id.name),s.init){const n=e.assignmentExpression("=",s.id,s.init);r.push(e.variableDeclaration("const",[e.variableDeclarator(t.scope.generateUidIdentifier("v"),n)]))}}return void(t.parentPath.isProgram()?(this.movedStatements.push(...r),t.remove()):t.replaceWithMultiple(r))}}else{if(t.isFunctionDeclaration())return this.functionDeclarations.push(t.node),void(t.node.id?t.replaceWith(e.expressionStatement(t.node.id)):t.remove());if(t.isClassDeclaration()&&t.parentPath.isProgram()&&t.node.id)return this.variables.push(t.node.id.name),this.movedStatements.push(e.expressionStatement(e.assignmentExpression("=",t.node.id,e.classExpression(t.node.id,t.node.superClass,t.node.body)))),void t.replaceWith(e.expressionStatement(t.node.id))}!t.isExpressionWrapper()||t.getFunctionParent()||t.isExpressionStatement()&&"AssignmentExpression"===t.node.expression.type&&"Identifier"===t.node.expression.left.type&&t.node.expression.left.name===this.completionRecordId.name?t.parentPath.isProgram()&&this.movedStatements.push(t.node):t.replaceWith(e.expressionStatement(e.assignmentExpression("=",this.completionRecordId,t.node.expression)))}},Program:{enter(t){this.hasFinishedMoving||(this.completionRecordId=t.scope.generateUidIdentifier("cr"),1===t.node.directives.length&&"DirectiveLiteral"===t.node.directives[0].value.type&&0===t.node.body.length&&t.replaceWith(e.program([e.expressionStatement({...t.node.directives[0].value,type:"StringLiteral"})])))},exit(t){this.hasFinishedMoving||(this.hasFinishedMoving=!0,t.replaceWith(e.program([...this.variables.map((t=>e.variableDeclaration("var",[e.variableDeclarator(e.identifier(t))]))),...this.functionDeclarations,e.expressionStatement(e.callExpression(e.arrowFunctionExpression([],e.blockStatement([e.variableDeclaration("var",[e.variableDeclarator(this.completionRecordId)]),...this.movedStatements,e.returnStatement(this.completionRecordId)])),[]))],t.node.directives)))}}}})},88184:(e,t)=>{"use strict";var r;function s(e,t){(t=t||{}).hasComment&&(e=function(e){return e.split(",").pop()}(e)),"base64"===t.encoding?e=r(e):"uri"===t.encoding&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}function n(e){return new s(e,{isJSON:!0})}Object.defineProperty(t,"commentRegex",{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm}}),Object.defineProperty(t,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm}}),r="undefined"!=typeof Buffer?"function"==typeof Buffer.from?function(e){return Buffer.from(e,"base64").toString()}:function(e){if("number"==typeof value)throw new TypeError("The value to decode must not be of type number.");return new Buffer(e,"base64").toString()}:function(e){return decodeURIComponent(escape(atob(e)))},s.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)},"undefined"!=typeof Buffer?"function"==typeof Buffer.from?s.prototype.toBase64=function(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}:s.prototype.toBase64=function(){var e=this.toJSON();if("number"==typeof e)throw new TypeError("The json to encode must not be of type number.");return new Buffer(e,"utf8").toString("base64")}:s.prototype.toBase64=function(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))},s.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)},s.prototype.toComment=function(e){var t,r,s;return null!=e&&"uri"===e.encoding?(t="",r=this.toURI()):(t=";base64",r=this.toBase64()),s="sourceMappingURL=data:application/json;charset=utf-8"+t+","+r,null!=e&&e.multiline?"/*# "+s+" */":"//# "+s},s.prototype.toObject=function(){return JSON.parse(this.toJSON())},s.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)},s.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this},s.prototype.getProperty=function(e){return this.sourcemap[e]},t.fromObject=function(e){return new s(e)},t.fromJSON=function(e){return new s(e,{isJSON:!0})},t.fromURI=function(e){return new s(e,{encoding:"uri"})},t.fromBase64=function(e){return new s(e,{encoding:"base64"})},t.fromComment=function(e){var r;return new s(e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{encoding:(r=t.commentRegex.exec(e))&&r[4]||"uri",hasComment:!0})},t.fromMapFileComment=function(e,r){if("string"==typeof r)throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var s=function(e,r){var s=t.mapFileCommentRegex.exec(e),n=s[1]||s[2];try{return null!=(e=r(n))&&"function"==typeof e.catch?e.catch(i):e}catch(e){i(e)}function i(e){throw new Error("An error occurred while trying to read the map file at "+n+"\n"+e.stack)}}(e,r);return null!=s&&"function"==typeof s.then?s.then(n):n(s)},t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null},t.fromMapFileSource=function(e,r){if("string"==typeof r)throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var s=e.match(t.mapFileCommentRegex);return s?t.fromMapFileComment(s.pop(),r):null},t.removeComments=function(e){return e.replace(t.commentRegex,"")},t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")},t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}},61365:(e,t)=>{var r;t=e.exports=g,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var s=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,i=s-6,a=t.re=[],o=t.safeRe=[],u=t.src=[],l=t.tokens={},c=0;function p(e){l[e]=c++}var h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",s],[h,i]];function f(e){for(var t=0;t<d.length;t++){var r=d[t][0],s=d[t][1];e=e.split(r+"*").join(r+"{0,"+s+"}").split(r+"+").join(r+"{1,"+s+"}")}return e}p("NUMERICIDENTIFIER"),u[l.NUMERICIDENTIFIER]="0|[1-9]\\d*",p("NUMERICIDENTIFIERLOOSE"),u[l.NUMERICIDENTIFIERLOOSE]="\\d+",p("NONNUMERICIDENTIFIER"),u[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+h+"*",p("MAINVERSION"),u[l.MAINVERSION]="("+u[l.NUMERICIDENTIFIER]+")\\.("+u[l.NUMERICIDENTIFIER]+")\\.("+u[l.NUMERICIDENTIFIER]+")",p("MAINVERSIONLOOSE"),u[l.MAINVERSIONLOOSE]="("+u[l.NUMERICIDENTIFIERLOOSE]+")\\.("+u[l.NUMERICIDENTIFIERLOOSE]+")\\.("+u[l.NUMERICIDENTIFIERLOOSE]+")",p("PRERELEASEIDENTIFIER"),u[l.PRERELEASEIDENTIFIER]="(?:"+u[l.NUMERICIDENTIFIER]+"|"+u[l.NONNUMERICIDENTIFIER]+")",p("PRERELEASEIDENTIFIERLOOSE"),u[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+u[l.NUMERICIDENTIFIERLOOSE]+"|"+u[l.NONNUMERICIDENTIFIER]+")",p("PRERELEASE"),u[l.PRERELEASE]="(?:-("+u[l.PRERELEASEIDENTIFIER]+"(?:\\."+u[l.PRERELEASEIDENTIFIER]+")*))",p("PRERELEASELOOSE"),u[l.PRERELEASELOOSE]="(?:-?("+u[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+u[l.PRERELEASEIDENTIFIERLOOSE]+")*))",p("BUILDIDENTIFIER"),u[l.BUILDIDENTIFIER]=h+"+",p("BUILD"),u[l.BUILD]="(?:\\+("+u[l.BUILDIDENTIFIER]+"(?:\\."+u[l.BUILDIDENTIFIER]+")*))",p("FULL"),p("FULLPLAIN"),u[l.FULLPLAIN]="v?"+u[l.MAINVERSION]+u[l.PRERELEASE]+"?"+u[l.BUILD]+"?",u[l.FULL]="^"+u[l.FULLPLAIN]+"$",p("LOOSEPLAIN"),u[l.LOOSEPLAIN]="[v=\\s]*"+u[l.MAINVERSIONLOOSE]+u[l.PRERELEASELOOSE]+"?"+u[l.BUILD]+"?",p("LOOSE"),u[l.LOOSE]="^"+u[l.LOOSEPLAIN]+"$",p("GTLT"),u[l.GTLT]="((?:<|>)?=?)",p("XRANGEIDENTIFIERLOOSE"),u[l.XRANGEIDENTIFIERLOOSE]=u[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",p("XRANGEIDENTIFIER"),u[l.XRANGEIDENTIFIER]=u[l.NUMERICIDENTIFIER]+"|x|X|\\*",p("XRANGEPLAIN"),u[l.XRANGEPLAIN]="[v=\\s]*("+u[l.XRANGEIDENTIFIER]+")(?:\\.("+u[l.XRANGEIDENTIFIER]+")(?:\\.("+u[l.XRANGEIDENTIFIER]+")(?:"+u[l.PRERELEASE]+")?"+u[l.BUILD]+"?)?)?",p("XRANGEPLAINLOOSE"),u[l.XRANGEPLAINLOOSE]="[v=\\s]*("+u[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+u[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+u[l.XRANGEIDENTIFIERLOOSE]+")(?:"+u[l.PRERELEASELOOSE]+")?"+u[l.BUILD]+"?)?)?",p("XRANGE"),u[l.XRANGE]="^"+u[l.GTLT]+"\\s*"+u[l.XRANGEPLAIN]+"$",p("XRANGELOOSE"),u[l.XRANGELOOSE]="^"+u[l.GTLT]+"\\s*"+u[l.XRANGEPLAINLOOSE]+"$",p("COERCE"),u[l.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",p("COERCERTL"),a[l.COERCERTL]=new RegExp(u[l.COERCE],"g"),o[l.COERCERTL]=new RegExp(f(u[l.COERCE]),"g"),p("LONETILDE"),u[l.LONETILDE]="(?:~>?)",p("TILDETRIM"),u[l.TILDETRIM]="(\\s*)"+u[l.LONETILDE]+"\\s+",a[l.TILDETRIM]=new RegExp(u[l.TILDETRIM],"g"),o[l.TILDETRIM]=new RegExp(f(u[l.TILDETRIM]),"g"),p("TILDE"),u[l.TILDE]="^"+u[l.LONETILDE]+u[l.XRANGEPLAIN]+"$",p("TILDELOOSE"),u[l.TILDELOOSE]="^"+u[l.LONETILDE]+u[l.XRANGEPLAINLOOSE]+"$",p("LONECARET"),u[l.LONECARET]="(?:\\^)",p("CARETTRIM"),u[l.CARETTRIM]="(\\s*)"+u[l.LONECARET]+"\\s+",a[l.CARETTRIM]=new RegExp(u[l.CARETTRIM],"g"),o[l.CARETTRIM]=new RegExp(f(u[l.CARETTRIM]),"g"),p("CARET"),u[l.CARET]="^"+u[l.LONECARET]+u[l.XRANGEPLAIN]+"$",p("CARETLOOSE"),u[l.CARETLOOSE]="^"+u[l.LONECARET]+u[l.XRANGEPLAINLOOSE]+"$",p("COMPARATORLOOSE"),u[l.COMPARATORLOOSE]="^"+u[l.GTLT]+"\\s*("+u[l.LOOSEPLAIN]+")$|^$",p("COMPARATOR"),u[l.COMPARATOR]="^"+u[l.GTLT]+"\\s*("+u[l.FULLPLAIN]+")$|^$",p("COMPARATORTRIM"),u[l.COMPARATORTRIM]="(\\s*)"+u[l.GTLT]+"\\s*("+u[l.LOOSEPLAIN]+"|"+u[l.XRANGEPLAIN]+")",a[l.COMPARATORTRIM]=new RegExp(u[l.COMPARATORTRIM],"g"),o[l.COMPARATORTRIM]=new RegExp(f(u[l.COMPARATORTRIM]),"g"),p("HYPHENRANGE"),u[l.HYPHENRANGE]="^\\s*("+u[l.XRANGEPLAIN]+")\\s+-\\s+("+u[l.XRANGEPLAIN]+")\\s*$",p("HYPHENRANGELOOSE"),u[l.HYPHENRANGELOOSE]="^\\s*("+u[l.XRANGEPLAINLOOSE]+")\\s+-\\s+("+u[l.XRANGEPLAINLOOSE]+")\\s*$",p("STAR"),u[l.STAR]="(<|>)?=?\\s*\\*";for(var m=0;m<c;m++)r(m,u[m]),a[m]||(a[m]=new RegExp(u[m]),o[m]=new RegExp(f(u[m])));function y(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g)return e;if("string"!=typeof e)return null;if(e.length>s)return null;if(!(t.loose?o[l.LOOSE]:o[l.FULL]).test(e))return null;try{return new g(e,t)}catch(e){return null}}function g(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>s)throw new TypeError("version is longer than "+s+" characters");if(!(this instanceof g))return new g(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[l.LOOSE]:o[l.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=y,t.valid=function(e,t){var r=y(e,t);return r?r.version:null},t.clean=function(e,t){var r=y(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=g,g.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},g.prototype.toString=function(){return this.version},g.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof g||(e=new g(e,this.options)),this.compareMain(e)||this.comparePre(e)},g.prototype.compareMain=function(e){return e instanceof g||(e=new g(e,this.options)),E(this.major,e.major)||E(this.minor,e.minor)||E(this.patch,e.patch)},g.prototype.comparePre=function(e){if(e instanceof g||(e=new g(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var s=this.prerelease[t],n=e.prerelease[t];if(r("prerelease compare",t,s,n),void 0===s&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===s)return-1;if(s!==n)return E(s,n)}while(++t)},g.prototype.compareBuild=function(e){e instanceof g||(e=new g(e,this.options));var t=0;do{var s=this.build[t],n=e.build[t];if(r("prerelease compare",t,s,n),void 0===s&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===s)return-1;if(s!==n)return E(s,n)}while(++t)},g.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,s){"string"==typeof r&&(s=r,r=void 0);try{return new g(e,r).inc(t,s).version}catch(e){return null}},t.diff=function(e,t){if(C(e,t))return null;var r=y(e),s=y(t),n="";if(r.prerelease.length||s.prerelease.length){n="pre";var i="prerelease"}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==s[a])return n+a;return i},t.compareIdentifiers=E;var b=/^[0-9]+$/;function E(e,t){var r=b.test(e),s=b.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:e<t?-1:1}function A(e,t,r){return new g(e,r).compare(new g(t,r))}function x(e,t,r){return A(e,t,r)>0}function v(e,t,r){return A(e,t,r)<0}function C(e,t,r){return 0===A(e,t,r)}function P(e,t,r){return 0!==A(e,t,r)}function S(e,t,r){return A(e,t,r)>=0}function w(e,t,r){return A(e,t,r)<=0}function T(e,t,r,s){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return C(e,r,s);case"!=":return P(e,r,s);case">":return x(e,r,s);case">=":return S(e,r,s);case"<":return v(e,r,s);case"<=":return w(e,r,s);default:throw new TypeError("Invalid operator: "+t)}}function F(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof F){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof F))return new F(e,t);e=e.trim().split(/\s+/).join(" "),r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return E(t,e)},t.major=function(e,t){return new g(e,t).major},t.minor=function(e,t){return new g(e,t).minor},t.patch=function(e,t){return new g(e,t).patch},t.compare=A,t.compareLoose=function(e,t){return A(e,t,!0)},t.compareBuild=function(e,t,r){var s=new g(e,r),n=new g(t,r);return s.compare(n)||s.compareBuild(n)},t.rcompare=function(e,t,r){return A(t,e,r)},t.sort=function(e,r){return e.sort((function(e,s){return t.compareBuild(e,s,r)}))},t.rsort=function(e,r){return e.sort((function(e,s){return t.compareBuild(s,e,r)}))},t.gt=x,t.lt=v,t.eq=C,t.neq=P,t.gte=S,t.lte=w,t.cmp=T,t.Comparator=F;var D={};function I(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof I)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new I(e.raw,t);if(e instanceof F)return new I(e.value,t);if(!(this instanceof I))return new I(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function _(e,t){for(var r=!0,s=e.slice(),n=s.pop();r&&s.length;)r=s.every((function(e){return n.intersects(e,t)})),n=s.pop();return r}function k(e){return!e||"x"===e.toLowerCase()||"*"===e}function B(e,t,r,s,n,i,a,o,u,l,c,p,h){return((t=k(r)?"":k(s)?">="+r+".0.0":k(n)?">="+r+"."+s+".0":">="+t)+" "+(o=k(u)?"":k(l)?"<"+(+u+1)+".0.0":k(c)?"<"+u+"."+(+l+1)+".0":p?"<="+u+"."+l+"."+c+"-"+p:"<="+o)).trim()}function O(e,t,s){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!s.includePrerelease){for(n=0;n<e.length;n++)if(r(e[n].semver),e[n].semver!==D&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function N(e,t,r){try{t=new I(t,r)}catch(e){return!1}return t.test(e)}function M(e,t,r,s){var n,i,a,o,u;switch(e=new g(e,s),t=new I(t,s),r){case">":n=x,i=w,a=v,o=">",u=">=";break;case"<":n=v,i=S,a=x,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(N(e,t,s))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],p=null,h=null;if(c.forEach((function(e){e.semver===D&&(e=new F(">=0.0.0")),p=p||e,h=h||e,n(e.semver,p.semver,s)?p=e:a(e.semver,h.semver,s)&&(h=e)})),p.operator===o||p.operator===u)return!1;if((!h.operator||h.operator===o)&&i(e,h.semver))return!1;if(h.operator===u&&a(e,h.semver))return!1}return!0}F.prototype.parse=function(e){var t=this.options.loose?o[l.COMPARATORLOOSE]:o[l.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new g(r[2],this.options.loose):this.semver=D},F.prototype.toString=function(){return this.value},F.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if("string"==typeof e)try{e=new g(e,this.options)}catch(e){return!1}return T(e,this.operator,this.semver,this.options)},F.prototype.intersects=function(e,t){if(!(e instanceof F))throw new TypeError("a Comparator is required");var r;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new I(e.value,t),N(this.value,r,t));if(""===e.operator)return""===e.value||(r=new I(this.value,t),N(e.semver,r,t));var s=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=T(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=T(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return s||n||i&&a||o||u},t.Range=I,I.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},I.prototype.toString=function(){return this.range},I.prototype.parseRange=function(e){var t=this.options.loose,s=t?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];e=e.replace(s,B),r("hyphen replace",e),e=e.replace(o[l.COMPARATORTRIM],"$1$2$3"),r("comparator trim",e,o[l.COMPARATORTRIM]),e=(e=(e=e.replace(o[l.TILDETRIM],"$1~")).replace(o[l.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?o[l.COMPARATORLOOSE]:o[l.COMPARATOR],i=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var s=t.loose?o[l.CARETLOOSE]:o[l.CARET];return e.replace(s,(function(t,s,n,i,a){var o;return r("caret",e,t,s,n,i,a),k(s)?o="":k(n)?o=">="+s+".0.0 <"+(+s+1)+".0.0":k(i)?o="0"===s?">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0":">="+s+"."+n+".0 <"+(+s+1)+".0.0":a?(r("replaceCaret pr",a),o="0"===s?"0"===n?">="+s+"."+n+"."+i+"-"+a+" <"+s+"."+n+"."+(+i+1):">="+s+"."+n+"."+i+"-"+a+" <"+s+"."+(+n+1)+".0":">="+s+"."+n+"."+i+"-"+a+" <"+(+s+1)+".0.0"):(r("no pr"),o="0"===s?"0"===n?">="+s+"."+n+"."+i+" <"+s+"."+n+"."+(+i+1):">="+s+"."+n+"."+i+" <"+s+"."+(+n+1)+".0":">="+s+"."+n+"."+i+" <"+(+s+1)+".0.0"),r("caret return",o),o}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var s=t.loose?o[l.TILDELOOSE]:o[l.TILDE];return e.replace(s,(function(t,s,n,i,a){var o;return r("tilde",e,t,s,n,i,a),k(s)?o="":k(n)?o=">="+s+".0.0 <"+(+s+1)+".0.0":k(i)?o=">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0":a?(r("replaceTilde pr",a),o=">="+s+"."+n+"."+i+"-"+a+" <"+s+"."+(+n+1)+".0"):o=">="+s+"."+n+"."+i+" <"+s+"."+(+n+1)+".0",r("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var s=t.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return e.replace(s,(function(s,n,i,a,o,u){r("xRange",e,s,n,i,a,o,u);var l=k(i),c=l||k(a),p=c||k(o),h=p;return"="===n&&h&&(n=""),u=t.includePrerelease?"-0":"",l?s=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(c&&(a=0),o=0,">"===n?(n=">=",c?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===n&&(n="<",c?i=+i+1:a=+a+1),s=n+i+"."+a+"."+o+u):c?s=">="+i+".0.0"+u+" <"+(+i+1)+".0.0"+u:p&&(s=">="+i+"."+a+".0"+u+" <"+i+"."+(+a+1)+".0"+u),r("xRange return",s),s}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(o[l.STAR],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter((function(e){return!!e.match(n)}))),i.map((function(e){return new F(e,this.options)}),this)},I.prototype.intersects=function(e,t){if(!(e instanceof I))throw new TypeError("a Range is required");return this.set.some((function(r){return _(r,t)&&e.set.some((function(e){return _(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new I(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},I.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new g(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1},t.satisfies=N,t.maxSatisfying=function(e,t,r){var s=null,n=null;try{var i=new I(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(s&&-1!==n.compare(e)||(n=new g(s=e,r)))})),s},t.minSatisfying=function(e,t,r){var s=null,n=null;try{var i=new I(t,r)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(s&&1!==n.compare(e)||(n=new g(s=e,r)))})),s},t.minVersion=function(e,t){e=new I(e,t);var r=new g("0.0.0");if(e.test(r))return r;if(r=new g("0.0.0-0"),e.test(r))return r;r=null;for(var s=0;s<e.set.length;++s)e.set[s].forEach((function(e){var t=new g(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!x(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return r&&e.test(r)?r:null},t.validRange=function(e,t){try{return new I(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,r){return M(e,t,"<",r)},t.gtr=function(e,t,r){return M(e,t,">",r)},t.outside=M,t.prerelease=function(e,t){var r=y(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new I(e,r),t=new I(t,r),e.intersects(t)},t.coerce=function(e,t){if(e instanceof g)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r=null;if((t=t||{}).rtl){for(var s;(s=o[l.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),o[l.COERCERTL].lastIndex=s.index+s[1].length+s[2].length;o[l.COERCERTL].lastIndex=-1}else r=e.match(o[l.COERCE]);return null===r?null:y(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},28885:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MATCH_COMPLETIONS=t.BASE_COMPLETIONS=void 0;const n=r(62294),i=s(r(82328)),a=r(15403);t.BASE_COMPLETIONS=[].concat(a.EXPRESSION_OPERATORS,a.CONVERSION_OPERATORS,a.BSON_TYPES,a.STAGE_OPERATORS),t.MATCH_COMPLETIONS=[].concat(a.QUERY_OPERATORS,a.BSON_TYPES);const o=a.STAGE_OPERATORS.filter((({namespaces:e})=>1===e.length&&e[0]===a.DATABASE));function u(e,t,r){const s=e.connectionInfo(),n=e.apiVersionInfo();let o;o=(null==n?void 0:n.strict)&&t.apiVersions?t.apiVersions.includes(+n.version):!t[r]||!(null==s?void 0:s.server_version)||i.default.gte(s.server_version,t[r]);const u=!t.env||!s||(s.is_data_federation?t.env.includes(a.ADL):s.is_atlas||s.is_local_atlas?t.env.includes(a.ATLAS):t.env.includes(a.ON_PREM));return o&&u}function l(e,t){return t.includes("$project")?a.ACCUMULATORS.filter((t=>u(e,t,"projectVersion"))):t.includes("$group")?a.ACCUMULATORS:[]}function c(e,t,r,s){return t.filter((t=>t.name&&t.name.startsWith(r)&&u(e,t,"version"))).map((e=>`${s}${e.name}`))}function p(e,t,r,s){const n=Object.keys(t).filter((s=>{var n;if(!s.toLowerCase().startsWith(r.toLowerCase()))return!1;if(t[s].deprecated)return!1;const a=e.apiVersionInfo();let o,u;if((null==a?void 0:a.strict)&&(u=t[s].apiVersions))o=+a.version>=u[0]&&+a.version<=u[1];else{const r=null===(n=e.connectionInfo())||void 0===n?void 0:n.server_version;if(!r)return!0;const a=t[s].serverVersions;o=!a||i.default.gte(r,a[0])&&i.default.lte(r,a[1])}const l=t[s].topologies,c=!l||l.includes(e.topology());return o&&c}));return s?n.map((e=>`${s.slice(0,-1).join(".")}.${e}`)):n}t.default=async function(e,r){var s,i,a;const u=n.signatures.ShellApi.attributes,h=n.signatures.Collection.attributes,d=n.signatures.Database.attributes,f=n.signatures.AggregationCursor.attributes,m=n.signatures.Cursor.attributes,y=n.signatures.ReplicaSet.attributes,g=n.signatures.ShellConfig.attributes,b=n.signatures.Shard.attributes,E=r.split(/(?<!\S)(?=\S)/),A=E[0].trim();if(null===(s=u[A])||void 0===s?void 0:s.isDirectShellCommand){const t=u[A].shellCommandCompleter;return t?(1===E.length&&(E[0].trimEnd()===E[0]&&(E[0]+=" "),E.push("")),[(await t(e,E.map((e=>e.trim())))||[]).map((e=>[...E.slice(0,-1),e].join(""))),r,"exclusive"]):[[r],r,"exclusive"]}const x=r.split("."),v=x[0],C=x[x.length-1];if(x.length<=1){const t=p(e,u,C);return[t.length?t:[],r]}if(/\bdb\b/.exec(v)&&2===x.length){if(/aggregate\s*\(\s*\[\s*\{\s*/.exec(C)){const s=r.split("{"),n=(null===(i=s.pop())||void 0===i?void 0:i.trim())||"",a=n?r.split(n).shift():r,u=c(e,s.length<=2?o:[...t.BASE_COMPLETIONS,...l(e,C)],n,a);return[u.length?u:[],r]}const s=p(e,d,C,x),n=await e.getCollectionCompletionsForCurrentDb(C.trim());return s.push(...n.map((e=>`${x[0]}.${e}`))),[s.length?s:[],r]}if(/\bdb\b/.exec(v)&&x.length>2){if(!/^\s*\w+\s*$/.exec(x[1])&&!/\bgetCollection\b/.exec(x[1]))return[[],r];if(x.length>3){if(/\baggregate\b/.exec(x[2])){const t=p(e,f,C,x);return[t.length?t:[],r]}if(/\bfind\b/.exec(x[2])){const t=p(e,m,C,x);return[t.length?t:[],r]}return[[],r]}if(x[2].includes("([")||x[2].includes("({")){let s;s=/\baggregate\b/.exec(x[2])?[...t.BASE_COMPLETIONS,...l(e,C)]:t.MATCH_COMPLETIONS;const n=null===(a=r.split("{").pop())||void 0===a?void 0:a.trim(),i=c(e,s,n||"",n?r.split(n).shift():r);return[i.length?i:[],r]}const s=p(e,h,C,x);return[s.length?s:[],r]}if(/\bsh\b/.exec(v)&&2===x.length){const t=p(e,b,C,x);return[t.length?t:[],r]}if(/\brs\b/.exec(v)&&2===x.length){const t=p(e,y,C,x);return[t.length?t:[],r]}if(/\bconfig\b/.exec(v)&&2===x.length){const t=p(e,g,C,x);return[t.length?t:[],r]}return[[],r]}},97980:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=t.createCommands=t.editorStyles=void 0;const a=i(r(99497)),o=r(30709),u=r(22970),l=()=>{};function c({state:e,dispatch:t}){return t(e.update({selection:{anchor:e.doc.length},scrollIntoView:!0,userEvent:"select"})),!0}function p(e){return[{key:"Enter",run:()=>(e.onEnter(),!0),preventDefault:!0},{key:"ArrowUp",run:t=>{const r=t.state.selection.main;return!!r.empty&&(0===t.lineBlockAt(r.from).from&&(e.onArrowUpOnFirstLine().then((e=>{e&&c(t)})),!0))},preventDefault:!0},{key:"ArrowDown",run:t=>{const r=t.state.selection.main;return!!r.empty&&(t.lineBlockAt(r.from).to===t.state.doc.length&&(e.onArrowDownOnLastLine().then((e=>{e&&c(t)})),!0))},preventDefault:!0},{key:"Mod-l",run:()=>(e.onClearCommand(),!0),preventDefault:!0},{key:"Ctrl-c",run:()=>(e.onSigInt(),!0),preventDefault:!0}]}t.editorStyles=(0,o.css)({"& .cm-content":{paddingTop:0,paddingBottom:0},"& .cm-line":{paddingLeft:1,paddingRight:1}}),t.createCommands=p;class h extends a.Component{constructor(e){super(e),this.editorId=Date.now(),this.autocompleter=e=>{var t;if(!(null===(t=this.props.autocompleter)||void 0===t?void 0:t.getCompletions))return null;const r=e.state.doc.lineAt(e.pos);return this.props.autocompleter.getCompletions(r.text).then((e=>e&&e.length>0?{from:r.from,options:e.map((({completion:e})=>({label:e})))}:null),(()=>null))},this.commands=p(this.props)}render(){return a.default.createElement(u.CodemirrorInlineEditor,{id:`mongosh-ace-${this.editorId}`,language:"javascript",ref:this.props.editorRef,readOnly:this.props.operationInProgress,text:this.props.value,onChangeText:this.props.onChange,commands:this.commands,maxLines:1/0,className:t.editorStyles,completer:this.autocompleter,lineHeight:24})}}t.Editor=h,h.defaultProps={onEnter:l,onArrowUpOnFirstLine:()=>Promise.resolve(!1),onArrowDownOnLastLine:()=>Promise.resolve(!1),onChange:l,onClearCommand:l,onSigInt:l,operationInProgress:!1,value:""}},35260:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordPrompt=void 0;const a=i(r(99497)),o=r(30709),u=(0,o.css)({paddingLeft:23,"& input":{fontSize:"13px",lineHeight:"24px",fontFamily:o.fontFamilies.code,backgroundColor:o.palette.gray.dark4,color:o.palette.gray.light3,padding:"0 3px",border:`1px solid ${o.palette.gray.light3}`,borderRadius:3}});class l extends a.Component{constructor(e){super(e),this.onKeyDown=e=>{switch(e.key){case"Enter":this.props.onFinish(e.target.value);break;case"Esc":case"Escape":this.props.onCancel()}}}render(){return a.default.createElement("label",{className:u},this.props.prompt,": ",a.default.createElement("input",{type:"password",onKeyDown:this.onKeyDown,autoFocus:!0}))}}t.PasswordPrompt=l},63642:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShellInput=void 0;const o=i(r(99497)),u=r(30709),l=r(97980),c=a(r(83748)),p=r(38409),h=(0,u.css)({padding:"0 8px",minHeight:"24px"});class d extends o.Component{constructor(e){super(e),this.state={currentValue:"",readOnly:!1},this.historyNavigationEntries=[],this.historyNavigationIndex=0,this.onChange=e=>{this.setState({currentValue:e})},this.historyBack=()=>new Promise((e=>{if(this.historyNavigationIndex>=this.historyNavigationEntries.length-1)return e(!1);this.historyNavigationIndex++,this.syncCurrentValueWithHistoryNavigation(e)})),this.historyNext=()=>new Promise((e=>{if(this.historyNavigationIndex<=0)return e(!1);this.historyNavigationIndex--,this.syncCurrentValueWithHistoryNavigation(e)})),this.onEnter=async()=>{this.props.onInput&&await this.props.onInput(this.state.currentValue),this.setState({currentValue:""})},this.initializeHistoryNavigation()}componentDidUpdate(e){e.history!==this.props.history&&this.initializeHistoryNavigation(),0===this.historyNavigationIndex&&(this.historyNavigationEntries[0]=this.state.currentValue)}initializeHistoryNavigation(){this.historyNavigationEntries=[this.state.currentValue,...this.props.history||[]],this.historyNavigationIndex=0}syncCurrentValueWithHistoryNavigation(e){const t=this.historyNavigationEntries[this.historyNavigationIndex];if(void 0===t)return e(!1);this.setState({currentValue:t},(()=>{e(!0)}))}render(){let e;if(this.props.operationInProgress)e=o.default.createElement(c.default,null);else if(this.props.prompt){const t=this.props.prompt.trim();e=t.endsWith(">")?o.default.createElement(o.default.Fragment,null,o.default.createElement("span",null,t.replace(/>$/g,"")),o.default.createElement(u.Icon,{size:12,glyph:"ChevronRight"})):o.default.createElement("span",null,t)}else e=o.default.createElement(u.Icon,{size:12,glyph:"ChevronRight"});const t=o.default.createElement(l.Editor,{autocompleter:this.props.autocompleter,onArrowUpOnFirstLine:this.historyBack,onArrowDownOnLastLine:this.historyNext,onChange:this.onChange,onEnter:this.onEnter,onClearCommand:this.props.onClearCommand,editorRef:this.props.editorRef,value:this.state.currentValue,operationInProgress:this.props.operationInProgress,onSigInt:this.props.onSigInt});return o.default.createElement(p.LineWithIcon,{className:h,icon:e,"data-testid":"shell-input"},t)}}t.ShellInput=d},83748:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=i(r(99497)),o=r(30709),u=(0,o.css)({"& div":{borderTopColor:o.palette.green.light2}});class l extends a.Component{render(){const{size:e}=this.props;return a.default.createElement("div",{className:u},a.default.createElement(o.SpinLoader,{size:e}))}}l.defaultProps={size:"12px"},t.default=l},85402:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShellOutputLine=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(30709),c=r(38409),p=r(50126),h=r(11878),d=r(92425),f=r(23563),m=r(11188),y=r(56100),g=r(65911),b=r(99435),E=r(24661),A=r(4418),x=r(55528),v=(0,l.css)({padding:"0 8px"}),C=(0,l.css)({backgroundColor:l.palette.red.light2,color:l.palette.red.dark3}),P=(0,l.css)({color:l.palette.gray.dark1}),S=(0,l.css)({color:"inherit"});class w extends o.Component{renderValue(){const{type:e,value:t,format:r}=this.props.entry;return"input"===r||this.isPreformattedResult(t,e)?o.default.createElement("pre",null,t):"string"==typeof t&&"InspectResult"===e?o.default.createElement(E.SimpleTypeOutput,{value:t,raw:!0}):this.isPrimitiveOrFunction(t)?o.default.createElement(E.SimpleTypeOutput,{value:t}):"Help"===e?o.default.createElement(p.HelpOutput,{value:t}):"ShowDatabasesResult"===e?o.default.createElement(d.ShowDbsOutput,{value:t}):"StatsResult"===e?o.default.createElement(b.StatsResultOutput,{value:t}):"ListCommandsResult"===e?o.default.createElement(E.SimpleTypeOutput,{value:t}):"ShowCollectionsResult"===e?o.default.createElement(f.ShowCollectionsOutput,{value:t}):"ShowBannerResult"===e?o.default.createElement(h.ShowBannerResultOutput,{value:t}):"Cursor"===e||"AggregationCursor"===e?o.default.createElement(m.CursorOutput,{value:t}):"CursorIterationResult"===e?o.default.createElement(y.CursorIterationResultOutput,{value:t}):"ShowProfileResult"===e?o.default.createElement(x.ShowProfileOutput,{value:t}):this.isError(t)?o.default.createElement(A.ErrorOutput,{value:t}):o.default.createElement(g.ObjectOutput,{value:t})}isError(e){return"string"==typeof e.message&&"string"==typeof e.stack}isPreformattedResult(e,t){return"string"==typeof e&&("Database"===t||"Collection"===t||!t)}isPrimitiveOrFunction(e){return e!==Object(e)||"function"==typeof e}getIconGlyph(){const{format:e}=this.props.entry;return"input"===e?"ChevronRight":"error"===e?"XWithCircle":"ChevronLeft"}render(){const{format:e}=this.props.entry,t=o.default.createElement(l.Icon,{size:12,glyph:this.getIconGlyph(),className:(0,l.cx)("error"===e?S:P)});return o.default.createElement(c.LineWithIcon,{className:(0,l.cx)(v,"error"===e&&C),icon:t,"data-testid":"shell-output"},this.renderValue())}}t.ShellOutputLine=w,w.propTypes={entry:u.default.object.isRequired}},52804:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShellOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(85402);class c extends o.Component{constructor(){super(...arguments),this.renderLine=(e,t)=>o.default.createElement(l.ShellOutputLine,{key:`shell-output-entry-${t}`,entry:e})}render(){return this.props.output.filter((e=>void 0!==e.value)).map(this.renderLine)}}t.ShellOutput=c,c.propTypes={output:u.default.arrayOf(u.default.any).isRequired}},60494:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Shell=void 0;const a=i(r(99497)),o=r(30709),u=r(59215),l=r(35260),c=r(63642),p=r(52804),h=(0,o.css)({fontSize:"13px",lineHeight:"24px",fontFamily:o.fontFamilies.code,backgroundColor:o.palette.gray.dark4,color:o.palette.gray.light3,padding:"4px 0",width:"100%",height:"100%",overflowY:"scroll",overflowX:"hidden","& a, & a:link, & a:visited, & a:hover, & a:active":{fontWeight:"bold",color:"inherit",backgroundColor:"transparent",textDecoration:"underline",cursor:"pointer"},"& pre, & code":{fontFamily:"inherit",background:"transparent",border:"0px transparent",padding:0,margin:0,fontSize:"inherit",borderRadius:0,color:"inherit",tabSize:2}}),d=()=>{};class f extends a.Component{constructor(){super(...arguments),this.shellInputElement=null,this.editor=null,this.onFinishPasswordPrompt=d,this.onCancelPasswordPrompt=d,this.state={operationInProgress:!1,output:this.props.initialOutput.slice(-this.props.maxOutputLength),history:this.props.initialHistory.slice(0,this.props.maxHistoryLength),passwordPrompt:"",shellPrompt:">"},this.evaluate=async e=>{let t;try{this.props.onOperationStarted(),this.props.runtime.setEvaluationListener(this);const r=await this.props.runtime.evaluate(e);t={format:"output",type:r.type,value:r.printable}}catch(e){t={format:"error",value:e}}finally{await this.updateShellPrompt(),this.props.onOperationEnd()}return t},this.onClearCommand=()=>{const e=[];Object.freeze(e),this.setState({output:e}),this.props.onOutputChanged(e)},this.onPrint=e=>{const t=this.addEntriesToOutput(e.map((e=>({format:"output",type:e.type,value:e.printable}))));this.setState({output:t}),this.props.onOutputChanged(t)},this.onPrompt=(e,t)=>{if("password"!==t)return Promise.reject(new Error("yes/no prompts not implemented yet"));const r=()=>{this.onFinishPasswordPrompt=d,this.onCancelPasswordPrompt=d,this.setState({passwordPrompt:""}),setTimeout(this.focusEditor,1)},s=new Promise(((e,t)=>{this.onFinishPasswordPrompt=t=>{r(),e(t)},this.onCancelPasswordPrompt=()=>{r(),t(new Error("Canceled by user"))}}));return this.setState({passwordPrompt:e}),s},this.onInput=async e=>{if(!e||""===e.trim())return void this.appendEmptyInput();const t={format:"input",value:e};let r=this.addEntriesToOutput([t]);this.setState({operationInProgress:!0,output:r}),this.props.onOutputChanged(r);const s=await this.evaluate(e);r=this.addEntriesToOutput([s]);const n=this.addEntryToHistory(e);this.setState({operationInProgress:!1,output:r,history:n}),this.props.onOutputChanged(r),this.props.onHistoryChanged(n)},this.onShellClicked=e=>{e.currentTarget===e.target&&this.focusEditor()},this.setEditor=e=>{this.editor=e},this.focusEditor=()=>{var e;null===(e=this.editor)||void 0===e||e.focus()},this.onSigInt=()=>this.state.operationInProgress&&this.props.runtime.interrupt?this.props.runtime.interrupt():Promise.resolve(!1)}componentDidMount(){this.scrollToBottom(),this.updateShellPrompt()}componentDidUpdate(){this.scrollToBottom()}async updateShellPrompt(){var e;let t=">",r=!1;try{this.props.runtime.setEvaluationListener(this);const e=await this.props.runtime.evaluate("\n (() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()");null===e.type&&"string"==typeof e.printable&&(t=e.printable,r=!0)}catch(e){}if(!r)try{t=null!==(e=await this.props.runtime.getShellPrompt())&&void 0!==e?e:">"}catch(e){}this.setState({shellPrompt:t})}addEntryToHistory(e){const t=[e,...this.state.history];return(0,u.changeHistory)(t,this.props.redactInfo?"redact-sensitive-data":"keep-sensitive-data"),t.splice(this.props.maxHistoryLength),Object.freeze(t),t}addEntriesToOutput(e){const t=[...this.state.output,...e];return t.splice(0,t.length-this.props.maxOutputLength),Object.freeze(t),t}appendEmptyInput(){const e=this.addEntriesToOutput([{format:"input",value:" "}]);this.setState({output:e})}scrollToBottom(){this.shellInputElement&&this.shellInputElement.scrollIntoView()}renderInput(){return this.state.passwordPrompt?a.default.createElement(l.PasswordPrompt,{onFinish:this.onFinishPasswordPrompt,onCancel:this.onCancelPasswordPrompt,prompt:this.state.passwordPrompt}):a.default.createElement(c.ShellInput,{prompt:this.state.shellPrompt,autocompleter:this.props.runtime,history:this.state.history,onClearCommand:this.onClearCommand,onInput:this.onInput,operationInProgress:this.state.operationInProgress,editorRef:this.setEditor,onSigInt:this.onSigInt})}render(){return a.default.createElement(o.ThemeProvider,{theme:{theme:o.Theme.Dark,enabled:!0}},a.default.createElement("div",{"data-testid":"shell",className:h,onClick:this.onShellClicked},a.default.createElement("div",null,a.default.createElement(p.ShellOutput,{output:this.state.output})),a.default.createElement("div",{ref:e=>{this.shellInputElement=e}},this.renderInput())))}}t.Shell=f,f.defaultProps={onHistoryChanged:d,onOperationStarted:d,onOperationEnd:d,onOutputChanged:d,maxOutputLength:1e3,maxHistoryLength:1e3,initialOutput:[],initialHistory:[]}},56100:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorIterationResultOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(65911),c=a(r(30102));class p extends o.Component{constructor(){super(...arguments),this.renderDocument=(e,t)=>o.default.createElement(l.ObjectOutput,{key:`document-${t}`,value:e})}render(){if(!this.props.value.documents.length)return o.default.createElement("div",null,c.default.__("shell-api.classes.Cursor.iteration.no-cursor"));const e=this.props.value.cursorHasMore?o.default.createElement("pre",null,c.default.__("shell-api.classes.Cursor.iteration.type-it-for-more")):"";return o.default.createElement("div",null,this.props.value.documents.map(this.renderDocument),e)}}t.CursorIterationResultOutput=p,p.propTypes={value:u.default.arrayOf(u.default.object).isRequired}},11188:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(56100);class c extends o.Component{render(){return this.props.value.documents.length?o.default.createElement(l.CursorIterationResultOutput,{value:this.props.value}):o.default.createElement("pre",null)}}t.CursorOutput=c,c.propTypes={value:u.default.arrayOf(u.default.object).isRequired}},4418:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(1296),c=r(24661),p=r(61804);class h extends o.Component{renderCollapsed(e){return o.default.createElement("div",null,o.default.createElement("pre",null,o.default.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),e()}},this.props.value.name||"Error",":")," ",this.props.value.message))}formatStack(){return this.props.value.stack.split("\n").slice(1).join("\n")}formatErrorBugReportInfo(){if((0,l.isShouldReportAsBugError)(this.props.value))return o.default.createElement("div",null,"This is an error inside mongosh. Please"," ",o.default.createElement("a",{href:"https://jira.mongodb.org/projects/MONGOSH/issues",target:"_blank",rel:"noreferrer"},"file a bug report for the MONGOSH project"),".")}formatErrorInfo(){if(this.props.value.errInfo)return o.default.createElement("div",null,"Additional information:",o.default.createElement(c.SimpleTypeOutput,{value:this.props.value.errInfo}))}formatErrorResult(){if(this.props.value.result)return o.default.createElement("div",null,"Result:",o.default.createElement(c.SimpleTypeOutput,{value:this.props.value.result}))}renderExpanded(e){return o.default.createElement("div",null,this.renderCollapsed(e),o.default.createElement("div",null,this.formatErrorBugReportInfo(),this.formatErrorInfo(),this.formatErrorResult(),o.default.createElement("pre",null,this.formatStack())))}render(){return o.default.createElement(p.Expandable,null,((e,t)=>e?this.renderExpanded(t):this.renderCollapsed(t)))}}t.ErrorOutput=h,h.propTypes={value:u.default.any}},50126:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HelpOutput=void 0;const o=i(r(99497)),u=r(30709),l=a(r(91998)),c=a(r(30102)),p=(0,u.css)({"& table, & caption, & tbody, & tfoot, & thead, & tr, & th, & td":{margin:0,padding:0,border:0,outline:0,fontSize:"100%",verticalAlign:"baseline",background:"transparent"},"& table":{width:"100%",tableLayout:"fixed",overflowWrap:"break-word",textAlign:"left",margin:"1em 0","& th":{width:"25%",fontWeight:"bold"},"& th, & td":{textAlign:"left"}}});class h extends o.Component{constructor(){super(...arguments),this.renderAttrTable=e=>{if(e&&e.length)return o.default.createElement("table",null,o.default.createElement("tbody",null,e.map(this.renderAttrTableRow)))},this.renderAttrTableRow=(e,t)=>o.default.createElement("tr",{key:`row-${t}`},o.default.createElement("th",null,e.name),o.default.createElement("td",null,e.description))}renderHelpDocsLink(e){if(e)return o.default.createElement("div",null,c.default.__("cli-repl.args.moreInformation")," ",o.default.createElement("a",{href:e,target:"_blank",rel:"noreferrer"},e))}renderHelpText(e){if(e)return o.default.createElement("div",null,e)}render(){const e=this.props.value;return o.default.createElement("div",{className:p},this.renderHelpText(e.help),this.renderAttrTable(e.attr),this.renderHelpDocsLink(e.docs))}}t.HelpOutput=h,h.propTypes={value:l.default.object.isRequired}},65911:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(59196),c=r(81402);class p extends o.Component{render(){return o.default.createElement(l.SyntaxHighlight,{code:(0,c.inspect)(this.props.value)})}}t.ObjectOutput=p,p.propTypes={value:u.default.any}},11878:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowBannerResultOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(30709);class c extends o.Component{render(){var e,t;return o.default.createElement(o.default.Fragment,null,(null===(e=this.props.value)||void 0===e?void 0:e.header)&&o.default.createElement(l.H3,null,this.props.value.header),(null===(t=this.props.value)||void 0===t?void 0:t.content)&&o.default.createElement("pre",null,this.props.value.content))}}t.ShowBannerResultOutput=c,c.propTypes={value:u.default.any}},23563:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCollectionsOutput=void 0;const o=r(30709),u=a(r(91998)),l=i(r(99497)),c=(0,o.css)({fontWeight:"bold"}),p=(0,o.css)({color:o.palette.gray.base});function h(e){return e.name.startsWith("system.")||e.name.startsWith("enxcol_.")}class d extends l.Component{constructor(){super(...arguments),this.renderTable=e=>{const t=[],r=[];let s=0;e.forEach((e=>{s=Math.max(s,e.name.length),h(e)?t.push(e):r.push(e)}));const n=[];return[...r,...t].forEach(((e,t)=>{const r=s-e.name.length+1,i=(0,o.cx)(c,h(e)&&p);n.push(l.default.createElement("span",{key:`row-${t}`},l.default.createElement("span",{className:i},e.name),e.badge?e.badge.padStart(e.badge.length+r):"",l.default.createElement("br",null)))})),l.default.createElement(l.default.Fragment,null,n)}}render(){return l.default.createElement("pre",null,this.renderTable(this.props.value))}}t.ShowCollectionsOutput=d,d.propTypes={value:u.default.array}},92425:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDbsOutput=void 0;const o=i(r(99497)),u=a(r(480)),l=a(r(91998)),c=a(r(32333));function p(e){const t=e<=1e3?"0":"0.00";return(0,u.default)(e).format(t+" ib")}class h extends o.Component{constructor(){super(...arguments),this.renderTable=e=>{const t=e.map((e=>[e.name,p(e.sizeOnDisk)]));return(0,c.default)(t,{align:["l","r"]})}}render(){return o.default.createElement("pre",null,this.renderTable(this.props.value))}}t.ShowDbsOutput=h,h.propTypes={value:l.default.any}},55528:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowProfileOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(24661),c=r(81402);class p extends o.Component{render(){if(0===this.props.value.count)return o.default.createElement(l.SimpleTypeOutput,{value:'db.system.profile is empty.\\nUse db.setProfilingLevel(2) will enable profiling.\\nUse db.getCollection("system.profile").find() to show raw profile entries.'});const e=this.props.value.result.map((e=>{const t=`${e.op} ${e.ns} ${e.millis}ms ${String(e.ts).substring(0,24)}\n`;let r="";for(const t in e){if("op"===t||"ns"===t||"millis"===t||"ts"===t)continue;const s=e[t],n=typeof s;r+="object"===n?t+":"+(0,c.inspect)(s)+" ":"boolean"===n?t+" ":t+":"+s+" "}return`${t}${r}`}));return o.default.createElement(l.SimpleTypeOutput,{value:e})}}t.ShowProfileOutput=p,p.propTypes={value:u.default.object}},24661:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleTypeOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(59196),c=r(81402);class p extends o.Component{render(){const e=this.props.raw?this.props.value:(0,c.inspect)(this.props.value);return o.default.createElement(l.SyntaxHighlight,{code:e})}}t.SimpleTypeOutput=p,p.propTypes={value:u.default.any,raw:u.default.bool}},99435:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsResultOutput=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(65911);class c extends o.Component{render(){const e=[];for(const[t,r]of Object.entries(this.props.value))e.length>0&&e.push(o.default.createElement("hr",{key:`${t}-separator`})),e.push(o.default.createElement("div",{key:t},o.default.createElement("h4",null,t),o.default.createElement(l.ObjectOutput,{value:r})));return o.default.createElement("div",null,e)}}t.StatsResultOutput=c,c.propTypes={value:u.default.any}},61804:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Expandable=void 0;const a=i(r(99497)),o=r(30709),u=r(30709),l=r(38409),c=(0,o.css)({cursor:"pointer"});class p extends a.Component{constructor(){super(...arguments),this.state={expanded:!1},this.toggle=()=>{this.setState({expanded:!this.state.expanded})}}render(){const e=a.default.createElement(u.Icon,{size:12,glyph:this.state.expanded?"CaretDown":"CaretRight",className:c,onClick:this.toggle});return a.default.createElement(l.LineWithIcon,{icon:e,"data-testid":"shell-output"},"function"==typeof this.props.children?this.props.children(this.state.expanded,this.toggle):this.props.children)}}t.Expandable=p,p.propTypes={}},81402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=void 0;const s=r(21764),n=r(63292),i=s.inspect.custom||"inspect",a=new WeakSet;function o(e,t){try{Object.defineProperty(e,i,{writable:!0,configurable:!0,enumerable:!1,value:function(...e){try{return t.call(this,...e)}catch(e){return console.warn("Could not inspect bson object",{obj:this,err:e}),(0,s.inspect)(this,{customInspect:!1})}}})}catch(t){console.warn("Could not add inspect key to object",{obj:e,err:t})}}function u(e){if("object"!=typeof e&&"function"!=typeof e||null===e)return;if(a.has(e))return;a.add(e),u(Object.getPrototypeOf(e));const t=Object.getOwnPropertyDescriptors(e);for(const{value:e}of Object.values(t))u(e);const r=e._bsontype;r&&r in n.bsonStringifiers&&n.bsonStringifiers[r]&&!t[i]&&!Object.isSealed(e)?o(e,n.bsonStringifiers[r]):function(e){try{return Date.prototype.getTime.call(e),!0}catch(e){return!1}}(e)&&o(e,(function(){return this.toISOString()}))}t.inspect=function(e){return u(e),(0,s.inspect)(e,{customInspect:!0,depth:1e3,breakLength:0})}},38409:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LineWithIcon=void 0;const o=i(r(99497)),u=r(30709),l=a(r(91998)),c=(0,u.css)({display:"flex",flexDirection:"row"}),p=(0,u.css)({display:"flex",alignItems:"center",marginRight:"3px",maxHeight:"24px"}),h=(0,u.css)({flex:1,overflowX:"auto"});class d extends o.Component{render(){return o.default.createElement("div",{className:(0,u.cx)(this.props.className,c),"data-testid":this.props["data-testid"]},o.default.createElement("span",{className:p},this.props.icon),o.default.createElement("div",{className:h},this.props.children))}}t.LineWithIcon=d,d.propTypes={icon:l.default.object.isRequired,className:l.default.string,"data-testid":l.default.string}},59196:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyntaxHighlight=void 0;const o=i(r(99497)),u=a(r(91998)),l=r(22970),c=r(97980);class p extends o.Component{render(){return o.default.createElement(l.CodemirrorInlineEditor,{readOnly:!0,initialText:this.props.code,maxLines:1/0,lineHeight:24,className:c.editorStyles})}}t.SyntaxHighlight=p,p.propTypes={code:u.default.string.isRequired}},46236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeInterpreterEnvironment=void 0,t.IframeInterpreterEnvironment=class{constructor(e){this.window=e,this.sloppyEval("delete window.prompt")}sloppyEval(e){return this.window.eval(e)}getContextObject(){return this.window}}},2805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeRuntime=void 0;const s=r(46236),n=r(4645);t.IframeRuntime=class{constructor(e){this.openContextRuntime=null,this.readyPromise=null,this.iframe=null,this.container=null,this.evaluationListener=null,this.serviceProvider=e}setEvaluationListener(e){const t=this.evaluationListener;return this.evaluationListener=e,this.openContextRuntime&&this.openContextRuntime.setEvaluationListener(e),t}async evaluate(e){const t=await this.initialize();return await t.evaluate(e)}async getCompletions(e){const t=await this.initialize();return await t.getCompletions(e)}async getShellPrompt(){const e=await this.initialize();return await e.getShellPrompt()}async initialize(){if(null!==this.readyPromise)return await this.readyPromise,this.openContextRuntime;this.container=document.createElement("div"),this.container.style.display="none",this.container.insertAdjacentHTML("beforeend",'<iframe src="about:blank" style="display: none" sandbox="allow-same-origin" />');const e=this.container.firstElementChild;this.iframe=e,this.readyPromise=new Promise((t=>{e.onload=()=>{t()}})),document.body.appendChild(this.container);const t=new s.IframeInterpreterEnvironment(e.contentWindow);return this.openContextRuntime=new n.OpenContextRuntime(this.serviceProvider,t),this.evaluationListener&&this.openContextRuntime.setEvaluationListener(this.evaluationListener),this.initialize()}async destroy(){if(!this.iframe)return;const e=this.iframe.parentNode;e&&e.removeChild(this.iframe)}}},11421:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2805),t)},22859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeRuntime=t.Shell=void 0;var s=r(60494);Object.defineProperty(t,"Shell",{enumerable:!0,get:function(){return s.Shell}});var n=r(11421);Object.defineProperty(t,"IframeRuntime",{enumerable:!0,get:function(){return n.IframeRuntime}})},480:function(e,t,r){var s,n;s=function(){var e,t,r,s,n,i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(e,t){this._input=e,this._value=t}return(e=function(r){var s,n,a,o;if(e.isNumeral(r))s=r.value();else if(0===r||void 0===r)s=0;else if(null===r||t.isNaN(r))s=null;else if("string"==typeof r)if(u.zeroFormat&&r===u.zeroFormat)s=0;else if(u.nullFormat&&r===u.nullFormat||!r.replace(/[^0-9]+/g,"").length)s=null;else{for(n in i)if((o="function"==typeof i[n].regexps.unformat?i[n].regexps.unformat():i[n].regexps.unformat)&&r.match(o)){a=i[n].unformat;break}s=(a=a||e._.stringToNumber)(r)}else s=Number(r)||null;return new l(r,s)}).version="2.0.6",e.isNumeral=function(e){return e instanceof l},e._=t={numberToFormat:function(t,r,s){var n,i,o,u,l,c,p,h,d=a[e.options.currentLocale],f=!1,m=!1,y="",g=1e12,b=1e9,E=1e6,A="",x=!1;if(t=t||0,i=Math.abs(t),e._.includes(r,"(")?(f=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(l=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(n=!!(n=r.match(/a(k|m|b|t)?/))&&n[1],e._.includes(r," a")&&(y=" "),r=r.replace(new RegExp(y+"a[kmbt]?"),""),i>=g&&!n||"t"===n?(y+=d.abbreviations.trillion,t/=g):i<g&&i>=b&&!n||"b"===n?(y+=d.abbreviations.billion,t/=b):i<b&&i>=E&&!n||"m"===n?(y+=d.abbreviations.million,t/=E):(i<E&&i>=1e3&&!n||"k"===n)&&(y+=d.abbreviations.thousand,t/=1e3)),e._.includes(r,"[.]")&&(m=!0,r=r.replace("[.]",".")),o=t.toString().split(".")[0],u=r.split(".")[1],c=r.indexOf(","),h=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),A=e._.toFixed(t,u[0].length+u[1].length,s,u[1].length)):A=e._.toFixed(t,u.length,s),o=A.split(".")[0],A=e._.includes(A,".")?d.delimiters.decimal+A.split(".")[1]:"",m&&0===Number(A.slice(1))&&(A="")):o=e._.toFixed(t,0,s),y&&!n&&Number(o)>=1e3&&y!==d.abbreviations.trillion)switch(o=String(Number(o)/1e3),y){case d.abbreviations.thousand:y=d.abbreviations.million;break;case d.abbreviations.million:y=d.abbreviations.billion;break;case d.abbreviations.billion:y=d.abbreviations.trillion}if(e._.includes(o,"-")&&(o=o.slice(1),x=!0),o.length<h)for(var v=h-o.length;v>0;v--)o="0"+o;return c>-1&&(o=o.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===r.indexOf(".")&&(o=""),p=o+A+(y||""),f?p=(f&&x?"(":"")+p+(f&&x?")":""):l>=0?p=0===l?(x?"-":"+")+p:p+(x?"-":"+"):x&&(p="-"+p),p},stringToNumber:function(e){var t,r,s,n=a[u.currentLocale],i=e,o={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&e===u.zeroFormat)r=0;else if(u.nullFormat&&e===u.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==n.delimiters.decimal&&(e=e.replace(/\./g,"").replace(n.delimiters.decimal,".")),o)if(s=new RegExp("[^a-zA-Z]"+n.abbreviations[t]+"(?:\\)|(\\"+n.currency.symbol+")?(?:\\))?)?$"),i.match(s)){r*=Math.pow(10,o[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var r,s=Object(e),n=s.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{for(;i<n&&!(i in s);)i++;if(i>=n)throw new TypeError("Reduce of empty array with no initial value");r=s[i++]}for(;i<n;i++)i in s&&(r=t(r,s[i],i,s));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,r){var s=t.multiplier(r);return e>s?e:s}),1)},toFixed:function(e,t,r,s){var n,i,a,o,u=e.toString().split("."),l=t-(s||0);return n=2===u.length?Math.min(Math.max(u[1].length,l),t):l,a=Math.pow(10,n),o=(r(e+"e+"+n)/a).toFixed(n),s>t-n&&(i=new RegExp("\\.?0{1,"+(s-(t-n))+"}$"),o=o.replace(i,"")),o}},e.options=u,e.formats=i,e.locales=a,e.locale=function(e){return e&&(u.currentLocale=e.toLowerCase()),u.currentLocale},e.localeData=function(e){if(!e)return a[u.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in o)u[e]=o[e]},e.zeroFormat=function(e){u.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){u.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){u.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var s,n,i,a,o,u,l,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{l=e.localeData(r)}catch(t){l=e.localeData(e.locale())}return i=l.currency.symbol,o=l.abbreviations,s=l.delimiters.decimal,n="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==i)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==o.thousand&&c[0]!==o.million&&c[0]!==o.billion&&c[0]!==o.trillion)||(u=new RegExp(n+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(s)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(u):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(u)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(u)||!a[1].match(/^\d+$/))))},e.fn=l.prototype={clone:function(){return e(this)},format:function(t,r){var s,n,a,o=this._value,l=t||u.defaultFormat;if(r=r||Math.round,0===o&&null!==u.zeroFormat)n=u.zeroFormat;else if(null===o&&null!==u.nullFormat)n=u.nullFormat;else{for(s in i)if(l.match(i[s].regexps.format)){a=i[s].format;break}n=(a=a||e._.numberToFormat)(o,l,r)}return n},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,s,n){return e+Math.round(r*t)}),0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,s,n){return e-Math.round(r*t)}),Math.round(this._value*r))/r,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,r,s,n){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,r,s,n){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,s){var n,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),n=e._.numberToFormat(t,r,s),e._.includes(n,")")?((n=n.split("")).splice(-1,0,i+"BPS"),n=n.join("")):n=n+i+"BPS",n},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),s={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},n="("+(n=(r={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(s.suffixes.filter((function(e){return r.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(n)},format:function(t,n,i){var a,o,u,l=e._.includes(n,"ib")?s:r,c=e._.includes(n," b")||e._.includes(n," ib")?" ":"";for(n=n.replace(/\s?i?b/,""),a=0;a<=l.suffixes.length;a++)if(o=Math.pow(l.base,a),u=Math.pow(l.base,a+1),null===t||0===t||t>=o&&t<u){c+=l.suffixes[a],o>0&&(t/=o);break}return e._.numberToFormat(t,n,i)+c},unformat:function(t){var n,i,a=e._.stringToNumber(t);if(a){for(n=r.suffixes.length-1;n>=0;n--){if(e._.includes(t,r.suffixes[n])){i=Math.pow(r.base,n);break}if(e._.includes(t,s.suffixes[n])){i=Math.pow(s.base,n);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,s){var n,i,a=e.locales[e.options.currentLocale],o={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),n=e._.numberToFormat(t,r,s),t>=0?(o.before=o.before.replace(/[\-\(]/,""),o.after=o.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(o.before,"-")&&!e._.includes(o.before,"(")&&(o.before="-"+o.before),i=0;i<o.before.length;i++)switch(o.before[i]){case"$":n=e._.insert(n,a.currency.symbol,i);break;case" ":n=e._.insert(n," ",i+a.currency.symbol.length-1)}for(i=o.after.length-1;i>=0;i--)switch(o.after[i]){case"$":n=i===o.after.length-1?n+a.currency.symbol:e._.insert(n,a.currency.symbol,-(o.after.length-(1+i)));break;case" ":n=i===o.after.length-1?n+" ":e._.insert(n," ",-(o.after.length-(1+i)+a.currency.symbol.length-1))}return n}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,s){var n=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return r=r.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(n[0]),r,s)+"e"+n[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),s=Number(r[0]),n=Number(r[1]);return n=e._.includes(t,"e-")?n*=-1:n,e._.reduce([s,Math.pow(10,n)],(function(t,r,s,n){var i=e._.correctionFactor(t,r);return t*i*(r*i)/(i*i)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,s){var n=e.locales[e.options.currentLocale],i=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),i+=n.ordinal(t),e._.numberToFormat(t,r,s)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,s){var n,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),n=e._.numberToFormat(t,r,s),e._.includes(n,")")?((n=n.split("")).splice(-1,0,i+"%"),n=n.join("")):n=n+i+"%",n},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var s=Math.floor(e/60/60),n=Math.floor((e-60*s*60)/60),i=Math.round(e-60*s*60-60*n);return s+":"+(n<10?"0"+n:n)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),e},void 0===(n=s.call(t,r,t,e))||(e.exports=n)},3779:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShellApiAutocompleter=void 0;const n=s(r(28885));t.ShellApiAutocompleter=class{constructor(e){this.parameters=e}async getCompletions(e){if(!e)return[];const t=await(0,n.default)(this.parameters,e);return t&&t.length?t[0].map((e=>({completion:e}))):[]}}},4645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenContextRuntime=void 0;var s=r(29252);Object.defineProperty(t,"OpenContextRuntime",{enumerable:!0,get:function(){return s.OpenContextRuntime}})},29252:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenContextRuntime=void 0;const s=r(3779),n=r(17702),i=r(62294),a=r(31065);t.OpenContextRuntime=class{constructor(e,t,r){this.autocompleter=null,this.evaluationListener=null,this.updatedConnectionInfoPromise=null,this.interpreterEnvironment=t,this.instanceState=new i.ShellInstanceState(e,r||new n.EventEmitter),this.instanceState.isInteractive=!0,this.shellEvaluator=new a.ShellEvaluator(this.instanceState),this.instanceState.setCtx(this.interpreterEnvironment.getContextObject())}async getCompletions(e){var t;return this.autocompleter||(this.autocompleter=new s.ShellApiAutocompleter(this.instanceState.getAutocompleteParameters()),null!==(t=this.updatedConnectionInfoPromise)&&void 0!==t||(this.updatedConnectionInfoPromise=this.instanceState.fetchConnectionInfo()),await this.updatedConnectionInfoPromise),this.autocompleter.getCompletions(e)}async evaluate(e){const t=this.interpreterEnvironment.sloppyEval.bind(this.interpreterEnvironment),{type:r,printable:s,source:n}=await this.shellEvaluator.customEval(t,e,this.interpreterEnvironment.getContextObject(),"");return{type:r,printable:s,source:n}}setEvaluationListener(e){const t=this.evaluationListener;return this.evaluationListener=e,this.instanceState.setEvaluationListener(e),t}async getShellPrompt(){var e;return null!==(e=this.updatedConnectionInfoPromise)&&void 0!==e||(this.updatedConnectionInfoPromise=this.instanceState.fetchConnectionInfo()),await this.updatedConnectionInfoPromise,await this.instanceState.getDefaultPrompt()}}},34101:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CommonErrors=void 0,function(e){e.InvalidArgument="COMMON-10001",e.InvalidOperation="COMMON-10002",e.Deprecated="COMMON-10003",e.CommandFailed="COMMON-10004",e.UnexpectedInternalError="COMMON-90001",e.NotImplemented="COMMON-90002"}(r||(t.CommonErrors=r={}))},1296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommonErrors=t.MongoshCommandFailed=t.MongoshDeprecatedError=t.MongoshUnimplementedError=t.MongoshInvalidInputError=t.MongoshInternalError=t.MongoshRuntimeError=t.MongoshWarning=t.MongoshBaseError=t.isShouldReportAsBugError=t.getScopeFromErrorCode=void 0;const s=r(34101);function n(e){if(!e)return;const t=/^([a-zA-Z0-9]+)-/.exec(e);return t?t[1]:void 0}Object.defineProperty(t,"CommonErrors",{enumerable:!0,get:function(){return s.CommonErrors}}),t.getScopeFromErrorCode=n,t.isShouldReportAsBugError=function(e){return(null==e?void 0:e.code)===s.CommonErrors.UnexpectedInternalError};class i extends Error{constructor(e,t,r,s){super(r?`[${r}] ${t}`:t),this.name=e,this.code=r,this.scope=n(r),this.metadata=s}}t.MongoshBaseError=i,t.MongoshRuntimeError=class extends i{constructor(e,t,r){super("MongoshRuntimeError",e,t,r)}},t.MongoshInternalError=class extends i{constructor(e,t){super("MongoshInternalError",e,s.CommonErrors.UnexpectedInternalError,t)}},t.MongoshUnimplementedError=class extends i{constructor(e,t,r){super("MongoshUnimplementedError",e,t,r)}},t.MongoshInvalidInputError=class extends i{constructor(e,t,r){super("MongoshInvalidInputError",e,t,r)}},t.MongoshWarning=class extends i{constructor(e,t,r){super("MongoshWarning",e,t,r)}},t.MongoshDeprecatedError=class extends i{constructor(e,t){super("MongoshDeprecatedError",e,s.CommonErrors.Deprecated,t)}},t.MongoshCommandFailed=class extends i{constructor(e,t){super("MongoshCommandFailed",`Command ${e} returned ok: 0. To see the raw results of the command, use 'runCommand' instead.`,s.CommonErrors.CommandFailed,t)}}},30102:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(r(78313));t.default=new n.default},415:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n={...s(r(27524)).default};t.default=n},27524:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"browser-repl":{},build:{},"cli-repl":{args:{usage:"$ mongosh [options] [db address] [file names (ending in .js or .mongodb)]",options:"Options:",file:"Load the specified mongosh script",help:"Show this usage information",ipv6:"Enable IPv6 support (disabled by default)",host:"Server to connect to",port:"Port to connect to",buildInfo:"Show build information",version:"Show version information",quiet:"Silence output from the shell during the connection process",shell:"Run the shell after executing files",nodb:"Don't connect to mongod on startup - no 'db address' [arg] expected",norc:"Will not run the '.mongoshrc.js' file on start up",eval:"Evaluate javascript",json:"Print result of --eval as Extended JSON, including errors",retryWrites:"Automatically retry write operations upon transient network errors (Default: true)",authenticationOptions:"Authentication Options:",username:"Username for authentication",password:"Password for authentication",authenticationDatabase:"User source (defaults to dbname)",authenticationMechanism:"Authentication mechanism",awsIamSessionToken:"AWS IAM Temporary Session Token ID",gssapiServiceName:"Service name to use when authenticating using GSSAPI/Kerberos",gssapiHostName:"Remote host name to use for purpose of GSSAPI/Kerberos authentication",sspiHostnameCanonicalization:"Specify the SSPI hostname canonicalization (none or forward, available on Windows)",sspiRealmOverride:"Specify the SSPI server realm (available on Windows)",tlsOptions:"TLS Options:",tls:"Use TLS for all connections",tlsCertificateKeyFile:"PEM certificate/key file for TLS",tlsCertificateKeyFilePassword:"Password for key in PEM file for TLS",tlsCAFile:"Certificate Authority file for TLS",tlsCRFile:"Certificate Revocation List file for TLS",tlsAllowInvalidHostnames:"Allow connections to servers with non-matching hostnames",tlsAllowInvalidCertificates:"Allow connections to servers with invalid certificates",tlsCertificateSelector:"TLS Certificate in system store (Windows and macOS only)",tlsCRLFile:"Specifies the .pem file that contains the Certificate Revocation List",tlsDisabledProtocols:"Comma separated list of TLS protocols to disable [TLS1_0,TLS1_1,TLS1_2]",tlsUseSystemCA:"Load the operating system trusted certificate list",tlsFIPSMode:"Enable the system TLS library's FIPS mode",apiVersionOptions:"API version options:",apiVersion:"Specifies the API version to connect with",apiStrict:"Use strict API version mode",apiDeprecationErrors:"Fail deprecated commands for the specified API version",fleOptions:"FLE Options:",awsAccessKeyId:"AWS Access Key for FLE Amazon KMS",awsSecretAccessKey:"AWS Secret Key for FLE Amazon KMS",awsSessionToken:"Optional AWS Session Token ID",keyVaultNamespace:"database.collection to store encrypted FLE parameters",kmsURL:"Test parameter to override the URL of the KMS endpoint",dbAddressOptions:"DB Address Examples:","dbAddress/foo":"Foo database on local machine","dbAddress/192/foo":"Foo database on 192.168.0.5 machine","dbAddress/192/host/foo":"Foo database on 192.168.0.5 machine on port 9999","dbAddress/connectionURI":"Connection string URI can also be used",fileNames:"File Names:",filenameDescription:"A list of files to run. Files must end in .js and will exit after unless --shell is specified.",examples:"Examples:",connectionExampleWithDatabase:"Start mongosh using 'ships' database on specified connection string:",moreInformation:"For more information on usage:"},"arg-parser":{"unknown-option":"Error parsing command line: unrecognized option:"},"cli-repl":{connecting:"Connecting to:",telemetry:"To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).",disableTelemetry:"You can opt-out by running the ",command:"command.",enabledTelemetry:"Telemetry is now enabled.",disabledTelemetry:"Telemetry is now disabled.",wiki:{info:"For mongosh info see:",link:"https://docs.mongodb.com/mongodb-shell/"},additionalErrorInfo:"Additional information",additionalErrorResult:"Result",additionalErrorViolations:"Violations",additionalErrorWriteErrors:"Write Errors",errorCausedBy:"Caused by"},"uri-generator":{"no-host-port":"If a full URI is provided, you cannot also specify --host or --port","invalid-host":"The --host argument contains an invalid character","host-list-port-mismatch":"The host list contains different ports than provided by --port","diverging-service-name":"Either the --gssapiServiceName parameter or the SERVICE_NAME authentication mechanism property in the connection string can be used but not both.","gssapi-service-name-unsupported":"The gssapiServiceName query parameter is not supported anymore. Please use the --gssapiServiceName argument or the SERVICE_NAME authentication mechanism property (e.g. ?authMechanismProperties=SERVICE_NAME:<value>)."}},"service-provider-browser":{},"service-provider-core":{},"service-provider-server":{},"shell-api":{classes:{ShellApi:{help:{description:"Shell Help",link:"https://docs.mongodb.com/manual/reference/method",attributes:{use:{description:"Set current database"},it:{description:"result of the last line evaluated; use to further iterate"},exit:{description:"Quit the MongoDB shell with exit/exit()/.exit"},quit:{description:"Quit the MongoDB shell with quit/quit()"},show:{description:"'show databases'/'show dbs': Print a list of all available databases.\n'show collections'/'show tables': Print a list of all collections for current database.\n'show profile': Prints system.profile information.\n'show users': Print a list of all users for current database.\n'show roles': Print a list of all roles for current database.\n'show log <type>': log for current connection, if type is not set uses 'global'\n'show logs': Print all logs.\n"},connect:{description:"Create a new connection and return the Database object. Usage: connect(URI, username [optional], password [optional])",link:"https://docs.mongodb.com/manual/reference/method/connect"},Mongo:{description:"Create a new connection and return the Mongo object. Usage: new Mongo(URI, options [optional])",link:"https://docs.mongodb.com/manual/reference/method/Mongo/#Mongo"},version:{description:"Shell version",link:"https://docs.mongodb.com/manual/reference/method/version/"},load:{description:"Loads and runs a JavaScript file into the current shell environment",example:'load("path/to/file.js")'},enableTelemetry:{description:"Enables collection of anonymous usage data to improve the mongosh CLI"},disableTelemetry:{description:"Disables collection of anonymous usage data to improve the mongosh CLI"},passwordPrompt:{description:"Prompts the user for a password",link:"https://docs.mongodb.com/manual/reference/method/passwordPrompt/"},sleep:{description:"Sleep for the specified number of milliseconds",link:"https://docs.mongodb.com/manual/reference/method/sleep/",example:"sleep(5000)"},cls:{description:"Clears the screen like console.clear()"},print:{description:"Prints the contents of an object to the output",example:'print({ some: "value" })'},printjson:{description:"Alias for print()"},isInteractive:{description:"Returns whether the shell will enter or has entered interactive mode"},convertShardKeyToHashed:{description:"Returns the hashed value for the input using the same hashing function as a hashed index.",link:"https://www.mongodb.com/docs/manual/reference/method/convertShardKeyToHashed/"}}}},ShellConfig:{help:{description:"Shell configuration methods",attributes:{get:{description:"Get a configuration value with config.get(key)"},set:{description:"Change a configuration value with config.set(key, value)"},reset:{description:"Reset a configuration value to its default value with config.reset(key)"}}}},AggregationCursor:{help:{description:"Aggregation Class",attributes:{close:{link:"https://docs.mongodb.com/manual/reference/method/cursor.close",description:"Instructs the server to close a cursor and free associated server resources. The server will automatically close cursors that have no remaining results, as well as cursors that have been idle for a period of time and lack the cursor.noCursorTimeout() option.",example:"db.collection.aggregate(pipeline, options).close()"},forEach:{link:"https://docs.mongodb.com/manual/reference/method/cursor.forEach",description:"Iterates the cursor to apply a JavaScript function to each document from the cursor.",example:"db.collection.aggregate(pipeline, options).forEach(function)"},hasNext:{link:"https://docs.mongodb.com/manual/reference/method/cursor.hasNext",description:"cursor.hasNext() returns true if the cursor returned by the db.collection.aggregate() can iterate further to return more documents. NOTE: if the cursor is tailable with awaitData then hasNext will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead",example:"db.collection.aggregate(pipeline, options).hasNext()"},isClosed:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isClosed",description:"Returns true if the cursor is closed.",example:"db.collection.aggregate(pipeline, options).isClosed()"},isExhausted:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isExhausted",description:"cursor.isExhausted() returns true if the cursor is closed and there are no remaining objects in the batch.",example:"db.collection.aggregate(pipeline, options).isExhausted()"},itcount:{link:"https://docs.mongodb.com/manual/reference/method/cursor.itcount",description:"Counts the number of documents remaining in a cursor. itcount() is similar to cursor.count(), but actually executes the query on an existing iterator, exhausting its contents in the process.",example:"db.collection.aggregate(pipeline, options).itcount()"},map:{link:"https://docs.mongodb.com/manual/reference/method/cursor.map",description:"Applies the first argument, a function, to each document visited by the cursor and collects the return values from successive application into an array.",example:"db.collection.aggregate(pipeline, options).map(function)"},maxTimeMS:{link:"https://docs.mongodb.com/manual/reference/method/cursor.maxTimeMS",description:"Specifies a cumulative time limit in milliseconds for processing operations on a cursor.",example:"db.collection.aggregate(pipeline, options).maxTimeMS(timeLimit)"},next:{link:"https://docs.mongodb.com/manual/reference/method/cursor.next",description:"The next document in the cursor returned by the db.collection.aggregate() method. NOTE: if the cursor is tailable with awaitData then next will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead",example:"db.collection.aggregate(pipeline, options).next()"},tryNext:{description:"If a document is in the cursor's batch it will be returned, otherwise null will be returned"},explain:{link:"https://docs.mongodb.com/manual/reference/method/cursor.explain",description:"Provides information on the query plan for db.collection.aggregate() method.",example:"db.collection.aggregate(pipeline, options).explain([verbosity])"},objsLeftInBatch:{link:"https://docs.mongodb.com/manual/reference/method/cursor.objsLeftInBatch",description:"cursor.objsLeftInBatch() returns the number of documents remaining in the current batch.",example:"db.collection.aggregate(pipeline, options).objsLeftInBatch()"},toArray:{link:"https://docs.mongodb.com/manual/reference/method/cursor.toArray",description:"The toArray() method returns an array that contains all the documents from a cursor. The method iterates completely the cursor, loading all the documents into RAM and exhausting the cursor.",example:"db.collection.aggregate(pipeline, options).toArray()"},pretty:{description:"Deprecated. The shell provides auto-formatting so this method is no longer useful"},batchSize:{description:"Specifies the number of documents to return in each batch of the response from the MongoDB instance.",example:"db.collection.aggregate(pipeline, options).batchSize(10)"},projection:{link:"",description:"Sets a field projection for the query.",example:"db.collection.aggregate(pipeline, options).projection(field)"},sort:{link:"https://docs.mongodb.com/manual/reference/method/cursor.sort",description:"Specifies the order in which the query returns matching documents. You must apply sort() to the cursor before retrieving any documents from the database.",example:"db.collection.aggregate(pipeline, options).sort(sortDocument)"},skip:{link:"https://docs.mongodb.com/manual/reference/method/cursor.skip",description:"Call the cursor.skip() method on a cursor to control where MongoDB begins returning results. This approach may be useful in implementing paginated results.",example:"db.collection.aggregate(pipeline, options).skip(offsetNumber)"}}}},BulkWriteResult:{help:{description:"BulkWriteResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},insertedCount:{description:"Number of documents inserted"},insertedIds:{description:"Array of ObjectIds inserted"},matchedCount:{description:"Number of documents matched"},modifiedCount:{description:"Number of documents modified"},deletedCount:{description:"Number of documents deleted"},upsertedCount:{description:"Number of documents upserted"},upsertedIds:{description:"Array of ObjectIds upserted"}}}},CommandResult:{help:{description:"CommandResult Class"}},InsertManyResult:{help:{description:"InsertManyResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},insertedIds:{description:"Array of ObjectIds inserted"}}}},InsertOneResult:{help:{description:"InsertOneResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},insertedId:{description:"ObjectId of document inserted"}}}},UpdateResult:{help:{description:"CommandResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},insertedId:{description:"ObjectId inserted"},matchedCount:{description:"Number of documents matched"},modifiedCount:{description:"Number of documents modified"},upsertedCount:{description:"Number of documents upserted"}}}},DeleteResult:{help:{description:"CommandResult Class",attributes:{acknowledged:{description:"Acknowledged returned from the server"},deletedCount:{description:"Number of documents deleted"}}}},ShowDbsResult:{help:{description:"ShowDatabasesResult Class"}},Collection:{help:{description:"Collection Class",attributes:{watch:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.watch",description:"Opens a change stream cursor on the collection",example:"const cursor = db.collection.watch(pipeline, options)"},aggregate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.aggregate",description:"Calculates aggregate values for the data in a collection or a view.",example:"db.collection.aggregate(pipeline, options)"},bulkWrite:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.bulkWrite",description:"Performs multiple write operations with controls for order of execution.",example:"db.collection.bulkWrite(operations, options)"},countDocuments:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.countDocuments",description:"Returns the count of documents that match the query for a collection or view.",example:"db.collection.countDocuments(query, options)"},count:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.count",description:"Returns the count of documents that would match a find() query for the collection or view.",example:"db.collection.count(query, options)"},dataSize:{link:"hhttps://docs.mongodb.com/manual/reference/method/db.collection.dataSize",description:"This method provides a wrapper around the size output of the collStats (i.e. db.collection.stats()) command.",example:"db.collection.dataSize()"},deleteMany:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.deleteMany",description:"Removes all documents that match the filter from a collection.",example:"db.collection.deleteMany()"},deleteOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.deleteOne",description:"Removes a single document from a collection.",example:"db.collection.deleteOne(filter, options)"},distinct:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.distinct",description:"Finds the distinct values for a specified field across a single collection or view and returns the results in an array.",example:"db.collection.distinct(field, query, options)"},estimatedDocumentCount:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.estimatedDocumentCount",description:"Returns the count of all documents in a collection or view.",example:"db.collection.estimatedDocumentCount(options)"},find:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.find",description:"Selects documents in a collection or view.",example:"db.collection.find(query, projection)"},findAndModify:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findAndModify",description:"Modifies and returns a single document.",example:"db.collection.findAndModify(spec)"},findOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findOne",description:"Selects documents in a collection or view.",example:"db.collection.findOne(query, projection)"},findOneAndDelete:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndDelete",description:"Deletes a single document based on the filter and sort criteria, returning the deleted document.",example:"db.collection.findOneAndDelete(filter, options)"},findOneAndReplace:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndReplace",description:"Modifies and replaces a single document based on the filter and sort criteria.",example:"db.collection.findOneAndReplace(filter, replacement, options)"},findOneAndUpdate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.findOneAndUpdate",description:"Updates a single document based on the filter and sort criteria.",example:"db.collection.findOneAndUpdate(filter, update, options)"},getIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getIndexes",description:"Returns an array that holds a list of documents that identify and describe the existing indexes on the collection.",example:"db.collection.getIndexes()"},getIndices:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getIndexes",description:"Alias for getIndexes. Returns an array that holds a list of documents that identify and describe the existing indexes on the collection.",example:"db.collection.getIndices()"},insert:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.insert",description:"Inserts a document or documents into a collection.",example:"db.collection.insert(document, options)"},insertMany:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.insertMany",description:"Inserts multiple documents into a collection.",example:"db.collection.insertMany(documents, options)"},insertOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.insertOne",description:"Inserts a document into a collection.",example:"db.collection.insertOne(document, options)"},isCapped:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.isCapped",description:"Checks if a collection is capped",example:"db.collection.isCapped()"},remove:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.remove",description:"Removes documents from a collection.",example:"db.collection.remove(query, options)"},stats:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.stats",description:"Returns statistics about the collection.",example:"db.collection.stats(options)"},storageSize:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.storageSize",description:"The total amount of storage allocated to this collection for document storage.",example:"db.collection.storageSize()"},replaceOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.replaceOne",description:"Replaces a single document within the collection based on the filter.",example:"db.collection.replaceOne(filter, replacement, options)"},totalSize:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.totalSize",description:"The total size in bytes of the data in the collection plus the size of every index on the collection.",example:"db.collection.totalSize()"},update:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.update",description:"Modifies an existing document or documents in a collection.",example:"db.collection.update(query, update, options)"},updateMany:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.updateMany",description:"Updates all documents that match the specified filter for a collection.",example:"db.collection.updateMany(filter, update, options)"},compactStructuredEncryptionData:{link:"",description:"Compacts structured encryption data",example:"db.collection.compactStructuredEncryptionData()"},convertToCapped:{link:"",description:"calls {convertToCapped:'coll', size:maxBytes}} command",example:"db.coll.convertToCapped(10000)"},createIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.createIndexes",description:"Creates one or more indexes on a collection",example:"db.coll.createIndexes([{ category: 1 }], { name: 'index-1' })"},createIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.createIndex",description:"Creates one index on a collection",example:"db.coll.createIndex({ category: 1 }, { name: 'index-1' })"},ensureIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.ensureIndex",description:"Creates one index on a collection",example:"db.coll.ensureIndex({ category: 1 }, { name: 'index-1' })"},getDB:{link:"",description:"Get current database.",example:"db.collection.getDB()"},getIndexKeys:{link:"",description:"Return an array of key patterns for indexes defined on collection",example:"db.collection.getIndexKeys()"},getIndexSpecs:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getIndexes",description:"Alias for getIndexes. Returns an array that holds a list of documents that identify and describe the existing indexes on the collection.",example:"db.collection.getIndexSpecs()"},totalIndexSize:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.totalIndexSize",description:"Reports the total size used by the indexes on a collection.",example:"db.collection.totalIndexSize()"},dropIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.dropIndexes",description:"Drops the specified index or indexes (except the index on the _id field) from a collection.",example:"db.collection.dropIndexes()"},dropIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.dropIndex",description:"Drops or removes the specified index from a collection.",example:"db.collection.dropIndex()"},reIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.reIndex",description:"Rebuilds all existing indexes on a collection.",example:""},hideIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.hideIndex",description:"Hides an existing index from the query planner.",example:'db.collection.hideIndex("index_1")'},unhideIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.unhideIndex",description:"Unhides an existing index from the query planner.",example:'db.collection.unhideIndex("index_1")'},drop:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.drop",description:"Removes a collection or view from the database.",example:"db.students.drop()"},exists:{link:"",description:"Returns collection infos if the collection exists or null otherwise.",example:"db.coll.exists()"},getFullName:{link:"",description:"Returns the name of the collection prefixed with the database name.",example:"db.coll.getFullName()"},getName:{link:"",description:"Returns the name of the collection.",example:"db.coll.getName()"},renameCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.renameCollection/",description:"Renames a collection.",example:'db.coll.renameCollection("newName")'},runCommand:{link:"",description:"Runs a db command with the given name where the first param is the collection name.",example:'db.collection.runCommand("text", { search: "searchKeywords" })'},explain:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan.",example:"db.collection.explain().<method(...)>"},updateOne:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.updateOne",description:"Updates a single document within the collection based on the filter.",example:"db.collection.updateOne(filter, update, options)"},getMongo:{description:"Returns the Mongo object.",example:"db.collection.getMongo()"},latencyStats:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.latencyStats",description:"returns the $latencyStats aggregation for the collection. Takes an options document with an optional boolean 'histograms' field.",example:"db.latencyStats({ histograms: true })"},initializeUnorderedBulkOp:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.initializeUnorderedBulkOp",description:"Initializes an unordered bulk command. Returns an instance of Bulk",example:"db.coll.initializeUnorderedBulkOp()"},initializeOrderedBulkOp:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.initializeOrderedBulkOp",description:"Initializes an ordered bulk command. Returns an instance of Bulk",example:"db.coll.initializeOrderedBulkOp()"},getPlanCache:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getPlanCache/",description:"Returns an interface to access the query plan cache for a collection. The interface provides methods to view and clear the query plan cache.",example:"db.coll.getPlanCache()"},validate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.validate",description:"Calls the validate command. Default full value is false",example:"db.coll.validate(<full>)"},mapReduce:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.mapReduce",description:"Calls the mapReduce command",example:"db.coll.mapReduce(mapFn, reduceFn, options)"},getShardVersion:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getShardVersion",description:"Calls the getShardVersion command",example:"db.coll.getShardVersion()"},getShardDistribution:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getShardDistribution",description:"Prints the data distribution statistics for a sharded collection.",example:"db.coll.getShardDistribution()"},analyzeShardKey:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.analyzeShardKey",description:"Returns metrics for evaluating a shard key. That is, ‘key’ can be a candidate shard key for an unsharded or sharded collection, or the current shard key for a sharded collection.",example:"db.coll.analyzeShardKey(key)"},configureQueryAnalyzer:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.configureQueryAnalyzer",description:"Starts or stops collecting metrics about reads and writes against an unsharded or sharded collection.",example:"db.coll.configureQueryAnalyzer(options)"},checkMetadataConsistency:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.checkMetadataConsistency",description:"Returns a cursor with information about metadata inconsistencies",example:"db.coll.checkMetadataConsistency(<options>)"},getSearchIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.getSearchIndexes",description:"Returns an array that holds a list of documents that identify and describe the existing search indexes on the collection.",example:"db.coll.getSearchIndexes(<name>)"},createSearchIndexes:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.createSearchIndexes",description:"Creates one or more search indexes on a collection",example:"db.coll.createSearchIndexes(specs)"},createSearchIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.createSearchIndex",description:"Creates one search indexes on a collection",example:"db.coll.createSearchIndex(<name>, definition)"},dropSearchIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.dropSearchIndex",description:"Drops or removes the specified search index from a collection.",example:"db.coll.dropSearchIndex(name)"},updateSearchIndex:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.updateSearchIndex",description:"Updates the sepecified search index.",example:"db.coll.updateSearchIndex(name, definition)"}}}},ChangeStreamCursor:{iteration:{"no-cursor":"no cursor","type-it-for-more":'Type "it" for more'},help:{description:"Change Stream Cursor",attributes:{close:{description:"Instructs the server to close a cursor and free associated server resources."},isClosed:{description:"Returns true if the cursor is closed"},itcount:{description:"Returns the number of documents in the current batch. NOTE: this method exhausts the cursor batch"},getResumeToken:{description:"Returns the ResumeToken of the change stream"},hasNext:{description:"WARNING: on change streams this method will block unless the cursor is closed. Use tryNext to check if there are any documents in the batch. This is a breaking change"},next:{description:"WARNING: on change streams this method will block unless the cursor is closed. Use tryNext to get the next document in the batch. This is a breaking change"},tryNext:{description:"If there is a document in the change stream, it will be returned. Otherwise returns null."},isExhausted:{description:"This method is deprecated because because after closing a cursor, the remaining documents in the batch are no longer accessible. If you want to see if the cursor is closed use cursor.isClosed. If you want to see if there are documents left in the batch, use cursor.tryNext. This is a breaking change"}}}},Cursor:{iteration:{"no-cursor":"no cursor","type-it-for-more":'Type "it" for more'},help:{description:"Collection Cursor",attributes:{addOption:{link:"https://docs.mongodb.com/manual/reference/method/cursor.addOption",description:"Adds OP_QUERY wire protocol flags, such as the tailable flag, to change the behavior of queries. Accepts: DBQuery.Option fields tailable, slaveOk, noTimeout, awaitData, exhaust, partial.",example:"db.collection.find(query, projection).addOption(flag)"},allowPartialResults:{link:"https://docs.mongodb.com/manual/reference/method/cursor.allowPartialResults",description:"Sets the 'partial' option to true.",example:"db.collection.find(query, projection).allowPartialResults()"},allowDiskUse:{link:"https://docs.mongodb.com/manual/reference/method/cursor.allowDiskUse",description:"Sets the 'allowDiskUse' option. If no argument is passed, the default is true.",example:"db.collection.find(query, projection).sort(sort).allowDiskUse(false)"},batchSize:{link:"https://docs.mongodb.com/manual/reference/method/cursor.batchSize",description:"Specifies the number of documents to return in each batch of the response from the MongoDB instance. In most cases, modifying the batch size will not affect the user or the application, as the mongo shell and most drivers return results as if MongoDB returned a single batch.",example:"db.collection.find(query, projection).batchSize(10)"},close:{link:"https://docs.mongodb.com/manual/reference/method/cursor.close",description:"Instructs the server to close a cursor and free associated server resources. The server will automatically close cursors that have no remaining results, as well as cursors that have been idle for a period of time and lack the cursor.noCursorTimeout() option.",example:"db.collection.find(query, projection).close()"},collation:{link:"https://docs.mongodb.com/manual/reference/method/cursor.collation",description:"Specifies the collation for the cursor returned by the db.collection.find(). To use, append to the db.collection.find().",example:"db.collection.find(query, projection).collation(collationDocument)"},comment:{link:"https://docs.mongodb.com/manual/reference/method/cursor.comment",description:"Adds a comment field to the query.",example:"db.collection.find(query, projection).comment('Comment')"},count:{link:"https://docs.mongodb.com/manual/reference/method/cursor.count",description:"Counts the number of documents referenced by a cursor.",example:"db.collection.find(query, projection).count()"},explain:{link:"https://docs.mongodb.com/manual/reference/method/cursor.explain",description:"Provides information on the query plan for the db.collection.find() method.",example:"db.collection.find(query, projection).explain()"},forEach:{link:"https://docs.mongodb.com/manual/reference/method/cursor.forEach",description:"Iterates the cursor to apply a JavaScript function to each document from the cursor.",example:"db.collection.find(query, projection).forEach(function)"},getQueryPlan:{link:"https://docs.mongodb.com/manual/reference/method/cursor.explain",description:"Runs cursor.explain()",example:"db.collection.find(query, projection).getQueryPlan()"},hasNext:{link:"https://docs.mongodb.com/manual/reference/method/cursor.hasNext",description:"cursor.hasNext() returns true if the cursor returned by the db.collection.find() query can iterate further to return more documents. NOTE: if the cursor is tailable with awaitData then hasNext will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead",example:"db.collection.find(query, projection).hasNext()"},hint:{link:"https://docs.mongodb.com/manual/reference/method/cursor.hint",description:"Call this method on a query to override MongoDB’s default index selection and query optimization process. Use db.collection.getIndexes() to return the list of current indexes on a collection.",example:"db.collection.find(query, projection).hint(index)"},isClosed:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isClosed",description:"Returns true if the cursor is closed.",example:"db.collection.find(query, projection).isClosed()"},isExhausted:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isExhausted",description:"cursor.isExhausted() returns true if the cursor is closed and there are no remaining objects in the batch.",example:"db.collection.find(query, projection).isExhausted()"},itcount:{link:"https://docs.mongodb.com/manual/reference/method/cursor.itcount",description:"Counts the number of documents remaining in a cursor. itcount() is similar to cursor.count(), but actually executes the query on an existing iterator, exhausting its contents in the process.",example:"db.collection.find(query, projection).itcount()"},length:{link:"https://docs.mongodb.com/manual/reference/method/cursor.count",description:"Runs cursor.count()",example:"db.collection.find(query, projection).length()"},limit:{link:"https://docs.mongodb.com/manual/reference/method/cursor.limit",description:"Use the limit() method on a cursor to specify the maximum number of documents the cursor will return.",example:"db.collection.find(query, projection).limit(2)"},map:{link:"https://docs.mongodb.com/manual/reference/method/cursor.map",description:"Applies the first argument, a function, to each document visited by the cursor and collects the return values from successive application into an array.",example:"db.collection.find(query, projection).map(function)"},max:{link:"https://docs.mongodb.com/manual/reference/method/cursor.max",description:"Specifies the exclusive upper bound for a specific index in order to constrain the results of find(). max() provides a way to specify an upper bound on compound key indexes.",example:"db.collection.find(query, projection).max(indexBoundsDocument)"},maxScan:{link:"https://docs.mongodb.com/manual/reference/method/cursor.maxScan",description:"deprecated, non-functional"},maxTimeMS:{link:"https://docs.mongodb.com/manual/reference/method/cursor.maxTimeMS",description:"Specifies a cumulative time limit in milliseconds for processing operations on a cursor.",example:"db.collection.find(query, projection).maxTimeMS(timeLimit)"},maxAwaitTimeMS:{description:"Set a maxAwaitTimeMS on a tailing cursor query to allow to customize the timeout value for the option awaitData (Only supported on MongoDB 3.2 or higher, ignored otherwise)",example:"db.collection.find(query, projection).maxAwaitTimeMS(timeLimit)"},min:{link:"https://docs.mongodb.com/manual/reference/method/cursor.min",description:"Specifies the inclusive lower bound for a specific index in order to constrain the results of find(). min() provides a way to specify lower bounds on compound key indexes.",example:"db.collection.find(query, projection).min(indexBoundsDocument)"},modifiers:{link:"",description:"Get query modifiers.",example:"db.collection.find(query, projection).modifiers()"},next:{link:"https://docs.mongodb.com/manual/reference/method/cursor.next",description:"The next document in the cursor returned by the db.collection.find() method. NOTE: if the cursor is tailable with awaitData then hasNext will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead",example:"db.collection.find(query, projection).next()"},tryNext:{description:"If a document is in the cursor's batch it will be returned, otherwise null will be returned"},noCursorTimeout:{link:"https://docs.mongodb.com/manual/reference/method/cursor.noCursorTimeout",description:"Instructs the server to avoid closing a cursor automatically after a period of inactivity.",example:"db.collection.find(query, projection).noCursorTimeout()"},objsLeftInBatch:{link:"https://docs.mongodb.com/manual/reference/method/cursor.objsLeftInBatch",description:"cursor.objsLeftInBatch() returns the number of documents remaining in the current batch.",example:"db.collection.find(query, projection).objsLeftInBatch()"},oplogReplay:{link:"",description:"Sets oplogReplay cursor flag to true.",example:"db.collection.find(query, projection).oplogReplay()"},projection:{link:"",description:"Sets a field projection for the query.",example:"db.collection.find(query, projection).projection(field)"},pretty:{description:"Deprecated. The shell provides auto-formatting so this method is no longer useful"},readConcern:{link:"https://docs.mongodb.com/manual/reference/method/cursor.readConcern",description:"Specify a read concern for the db.collection.find() method.",example:"db.collection.find(query, projection).readConcern(level)"},readonly:{link:"",description:"",example:""},readPref:{link:"https://docs.mongodb.com/manual/reference/method/cursor.readPref",description:"Append readPref() to a cursor to control how the client routes the query to members of the replica set.",example:"db.collection.find(query, projection).readPref(mode, tagSet)"},returnKey:{link:"https://docs.mongodb.com/manual/reference/method/cursor.returnKey",description:"Modifies the cursor to return index keys rather than the documents.",example:"db.collection.find(query, projection).returnKey()"},showDiskLoc:{link:"",description:"The $showDiskLoc option has now been deprecated and replaced with the showRecordId field. $showDiskLoc will still be accepted for OP_QUERY style find.",example:"db.collection.find(query, projection).showDiskLoc()"},showRecordId:{link:"https://docs.mongodb.com/manual/reference/method/cursor.showRecordId",description:"Modifies the output of a query by adding a field $recordId to matching documents. $recordId is the internal key which uniquely identifies a document in a collection.",example:"db.collection.find(query, projection).showRecordId"},size:{link:"https://docs.mongodb.com/manual/reference/method/cursor.size",description:"A count of the number of documents that match the db.collection.find() query after applying any cursor.skip() and cursor.limit() methods.",example:"db.collection.find(query, projection).size()"},skip:{link:"https://docs.mongodb.com/manual/reference/method/cursor.skip",description:"Call the cursor.skip() method on a cursor to control where MongoDB begins returning results. This approach may be useful in implementing paginated results.",example:"db.collection.find(query, projection).skip(offsetNumber)"},snapshot:{link:"",description:"The $snapshot operator prevents the cursor from returning a document more than once because an intervening write operation results in a move of the document",example:"db.collection.find(query, projection).snapshot()"},sort:{link:"https://docs.mongodb.com/manual/reference/method/cursor.sort",description:"Specifies the order in which the query returns matching documents. You must apply sort() to the cursor before retrieving any documents from the database.",example:"db.collection.find(query, projection).sort(sortDocument)"},tailable:{link:"https://docs.mongodb.com/manual/reference/method/cursor.tailable",description:"Marks the cursor as tailable.",example:"db.collection.find(query, projection).tailable({ awaitData: true })"},toArray:{link:"https://docs.mongodb.com/manual/reference/method/cursor.toArray",description:"The toArray() method returns an array that contains all the documents from a cursor. The method iterates completely the cursor, loading all the documents into RAM and exhausting the cursor.",example:"db.collection.find(query, projection).toArray()"}}}},Database:{help:{description:"Database Class",attributes:{sql:{link:"https://docs.mongodb.com/manual/reference/method/db.sql",description:"(Experimental) Runs a SQL query against Atlas Data Lake. Note: this is an experimental feature that may be subject to change in future releases.",example:'const cursor = db.sql("SELECT * FROM myCollection", options)'},watch:{link:"https://docs.mongodb.com/manual/reference/method/db.watch",description:"Opens a change stream cursor on the database",example:"const cursor = db.watch(pipeline, options)"},aggregate:{link:"https://docs.mongodb.com/manual/reference/method/db.aggregate",description:"Runs a specified admin/diagnostic pipeline which does not require an underlying collection.",example:"db.aggregate(pipeline, options)"},runCommand:{link:"https://docs.mongodb.com/manual/reference/method/db.runCommand",description:"Runs an arbitrary command on the database.",example:'db.runCommand({ text: "myCollection", search: "searchKeywords" })'},dropDatabase:{link:"https://docs.mongodb.com/manual/reference/method/db.dropDatabase",description:"Removes the current database, deleting the associated data files.",example:"db.dropDatabase([writeConcern])"},adminCommand:{link:"https://docs.mongodb.com/manual/reference/method/db.adminCommand",description:"Runs an arbitrary command against the admin database.",example:"db.adminCommand({ serverStatus: 1 })"},getCollectionInfos:{link:"https://docs.mongodb.com/manual/reference/method/db.getCollectionInfos",description:"Returns an array of documents with collection information, i.e. collection name and options, for the current database.",example:"db.getCollectionInfos()"},getCollectionNames:{link:"https://docs.mongodb.com/manual/reference/method/db.getCollectionNames",description:"Returns an array containing the names of all collections in the current database.",example:"db.getCollectionNames"},getSiblingDB:{link:"https://docs.mongodb.com/manual/reference/method/db.getSiblingDB",description:"Returns another database without modifying the db variable in the shell environment.",example:"db.getSiblingDB(name)"},getCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.getCollection",description:"Returns a collection or a view object that is functionally equivalent to using the db.<collectionName>.",example:"db.getCollection(name)"},getMongo:{link:"https://docs.mongodb.com/manual/reference/method/db.getMongo/",description:"Returns the current database connection",example:"connection = db.getMongo()"},getName:{link:"https://docs.mongodb.com/manual/reference/method/db.getName",description:"Returns the name of the DB",example:"db.getName()"},createCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.createCollection/",description:"Create new collection",example:"db.createCollection('collName')"},createEncryptedCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.createEncryptedCollection/",description:"Creates a new collection with a list of encrypted fields each with unique and auto-created data encryption keys (DEKs). This is a utility function that internally utilises ClientEnryption.createEncryptedCollection.",example:'db.createEncryptedCollection( "collName", { "provider": "<kmsProvider>", "createCollectionOptions": { "encryptedFields": { ... }, ...<otherOptions> } })'},createView:{link:"https://docs.mongodb.com/manual/reference/method/db.createView/",description:"Create new view",example:"db.createCollection('viewName', 'source', [])"},createUser:{link:"https://docs.mongodb.com/manual/reference/method/db.createUser",description:"Creates a new user for the database on which the method is run. db.createUser() returns a duplicate user error if the user already exists on the database.",example:"db.createUser(user, writeConcern)"},updateUser:{link:"https://docs.mongodb.com/manual/reference/method/db.updateUser",description:"Updates the user’s profile on the database on which you run the method. An update to a field completely replaces the previous field’s values. This includes updates to the user’s roles array.",example:"db.updateUser(username, update, writeConcern)"},changeUserPassword:{link:"https://docs.mongodb.com/manual/reference/method/db.changeUserPassword",description:"Updates a user’s password. Run the method in the database where the user is defined, i.e. the database you created the user.",example:"db.changeUserPassword(username, password)"},logout:{link:"https://docs.mongodb.com/manual/reference/method/db.logout",description:"Ends the current authentication session. This function has no effect if the current session is not authenticated.",example:"db.logout()"},dropUser:{link:"https://docs.mongodb.com/manual/reference/method/db.dropUser",description:"Removes the user from the current database.",example:"db.dropUser(username, writeConcern)"},dropAllUsers:{link:"https://docs.mongodb.com/manual/reference/method/db.dropAllUsers",description:"Removes all users from the current database.",example:"db.dropAllUsers(writeConcern)"},auth:{link:"https://docs.mongodb.com/manual/reference/method/db.auth",description:"Allows a user to authenticate to the database from within the shell.",example:"db.auth(username, password)"},grantRolesToUser:{link:"https://docs.mongodb.com/manual/reference/method/db.grantRolesToUser",description:"Grants additional roles to a user.",example:'db.grantRolesToUser( "<username>", [ <roles> ], { <writeConcern> } )'},revokeRolesFromUser:{link:"https://docs.mongodb.com/manual/reference/method/db.revokeRolesFromUser",description:"Removes a one or more roles from a user on the current database.",example:'db.revokeRolesFromUser( "<username>", [ <roles> ], { <writeConcern> } )'},getUser:{link:"https://docs.mongodb.com/manual/reference/method/db.getUser",description:"Returns user information for a specified user. Run this method on the user’s database. The user must exist on the database on which the method runs.",example:"db.getUser(username, args)"},getUsers:{link:"https://docs.mongodb.com/manual/reference/method/db.getUsers",description:"Returns information for all the users in the database.",example:"db.getUsers(<options>)"},createRole:{link:"https://docs.mongodb.com/manual/reference/method/db.createRole",description:"Creates a new role.",example:"db.createRole(role, writeConcern)"},updateRole:{link:"https://docs.mongodb.com/manual/reference/method/db.updateRole",description:"Updates the role’s profile on the database on which you run the method. An update to a field completely replaces the previous field’s values.",example:"db.updateRole(rolename, update, writeConcern)"},dropRole:{link:"https://docs.mongodb.com/manual/reference/method/db.dropRole",description:"Removes the role from the current database.",example:"db.dropRole(rolename, writeConcern)"},dropAllRoles:{link:"https://docs.mongodb.com/manual/reference/method/db.dropAllRoles",description:"Removes all roles from the current database.",example:"db.dropAllRoles(writeConcern)"},grantRolesToRole:{link:"https://docs.mongodb.com/manual/reference/method/db.grantRolesToRole",description:"Grants additional roles to a role.",example:'db.grantRolesToRole( "<rolename>", [ <roles> ], { <writeConcern> } )'},revokeRolesFromRole:{link:"https://docs.mongodb.com/manual/reference/method/db.revokeRolesFromRole",description:"Removes a one or more roles from a role on the current database.",example:'db.revokeRolesFromRole( "<rolename>", [ <roles> ], { <writeConcern> } )'},grantPrivilegesToRole:{link:"https://docs.mongodb.com/manual/reference/method/db.grantPrivilegesToRole",description:"Grants additional privileges to a role.",example:'db.grantPrivilegesToRole( "<rolename>", [ <privileges> ], { <writeConcern> } )'},revokePrivilegesFromRole:{link:"https://docs.mongodb.com/manual/reference/method/db.revokePrivilegesFromRole",description:"Removes a one or more privileges from a role on the current database.",example:'db.revokeRolesFromRole( "<rolename>", [ <privileges> ], { <writeConcern> } )'},getRole:{link:"https://docs.mongodb.com/manual/reference/method/db.getRole",description:"Returns role information for a specified role. Run this method on the role’s database. The role must exist on the database on which the method runs.",example:"db.getRole(rolename, args)"},getRoles:{link:"https://docs.mongodb.com/manual/reference/method/db.getRoles",description:"Returns information for all the roles in the database.",example:"db.getRoles(<options>)"},currentOp:{link:"https://docs.mongodb.com/manual/reference/method/db.currentOp",description:"Runs an aggregation using $currentOp operator. Returns a document that contains information on in-progress operations for the database instance. For further information, see $currentOp.",example:"db.currentOp()"},killOp:{link:"https://docs.mongodb.com/manual/reference/method/db.killOp",description:"Calls the killOp command. Terminates an operation as specified by the operation ID. To find operations and their corresponding IDs, see $currentOp or db.currentOp().",example:"db.killOp(<options>)"},shutdownServer:{link:"https://docs.mongodb.com/manual/reference/method/db.shutdownServer",description:"Calls the shutdown command. Shuts down the current mongod or mongos process cleanly and safely. You must issue the db.shutdownServer() operation against the admin database.",example:"db.shutdownServer(<options>)"},fsyncLock:{link:"https://docs.mongodb.com/manual/reference/method/db.fsyncLock",description:"Calls the fsync command. Forces the mongod to flush all pending write operations to disk and locks the entire mongod instance to prevent additional writes until the user releases the lock with a corresponding db.fsyncUnlock() command.",example:"db.fsyncLock(<options>)"},fsyncUnlock:{link:"https://docs.mongodb.com/manual/reference/method/db.fsyncUnlock",description:"Calls the fsyncUnlock command. Reduces the lock taken by db.fsyncLock() on a mongod instance by 1.",example:"db.fsyncUnlock(<options>)"},version:{link:"https://docs.mongodb.com/manual/reference/method/db.version",description:"returns the db version. uses the buildinfo command",example:"db.version()"},serverBits:{link:"https://docs.mongodb.com/manual/reference/method/db.serverBits",description:"returns the db serverBits. uses the buildInfo command",example:"db.serverBits()"},isMaster:{link:"https://docs.mongodb.com/manual/reference/method/db.isMaster",description:"Calls the isMaster command",example:"db.isMaster()"},hello:{link:"https://docs.mongodb.com/manual/reference/method/db.hello",description:"Calls the hello command",example:"db.hello()"},rotateCertificates:{link:"https://docs.mongodb.com/manual/reference/method/db.rotateCertificates",description:"Calls the rotateCertificates command",example:"db.rotateCertificates()"},serverBuildInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.serverBuildInfo",description:"returns the db serverBuildInfo. uses the buildInfo command",example:"db.serverBuildInfo()"},serverStatus:{link:"https://docs.mongodb.com/manual/reference/method/db.serverStatus",description:"returns the server stats. uses the serverStatus command",example:"db.serverStatus(<opts>)"},stats:{link:"https://docs.mongodb.com/manual/reference/method/db.stats",description:"returns the db stats. uses the dbStats command",example:"db.stats(<scale>) or db.stats({ scale: <scale> })"},hostInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.hostInfo",description:"Calls the hostInfo command",example:"db.hostInfo()"},serverCmdLineOpts:{link:"https://docs.mongodb.com/manual/reference/method/db.serverCmdLineOpts",description:"returns the db serverCmdLineOpts. uses the getCmdLineOpts command",example:"db.serverCmdLineOpts()"},printCollectionStats:{link:"https://docs.mongodb.com/manual/reference/method/db.printCollectionStats",description:"Prints the collection.stats for each collection in the db.",example:"db.printCollectionStats(scale)"},getProfilingStatus:{link:"https://docs.mongodb.com/manual/reference/method/db.getProfilingStatus",description:"returns the db getProfilingStatus. uses the profile command",example:"db.getProfilingStatus()"},setProfilingLevel:{link:"https://docs.mongodb.com/manual/reference/method/db.setProfilingLevel",description:"returns the db setProfilingLevel. uses the profile command",example:"db.setProfilingLevel(level, <options>)"},setLogLevel:{link:"https://docs.mongodb.com/manual/reference/method/db.setLogLevel",description:"returns the db setLogLevel. uses the setParameter command",example:"db.setLogLevel(logLevel, <component>)"},getLogComponents:{link:"https://docs.mongodb.com/manual/reference/method/db.getLogComponents",description:"returns the db getLogComponents. uses the getParameter command",example:"db.getLogComponents()"},cloneDatabase:{link:"https://docs.mongodb.com/manual/reference/method/db.cloneDatabase",description:"deprecated, non-functional"},copyDatabase:{link:"https://docs.mongodb.com/manual/reference/method/db.copyDatabase",description:"deprecated, non-functional"},cloneCollection:{link:"https://docs.mongodb.com/manual/reference/method/db.cloneCollection",description:"deprecated, non-functional"},listCommands:{link:"https://docs.mongodb.com/manual/reference/method/db.listCommands",description:"Calls the listCommands command",example:"db.listCommands()"},commandHelp:{link:"https://docs.mongodb.com/manual/reference/method/db.commandHelp",description:"returns the db commandHelp. uses the passed in command with help: true",example:"db.commandHelp(<command>)"},getLastError:{link:"https://docs.mongodb.com/manual/reference/method/db.getLastError",description:"Calls the getLastError command",example:"db.getLastError(<w>, <wTimeout>)"},getLastErrorObj:{link:"https://docs.mongodb.com/manual/reference/method/db.getLastErrorObj",description:"Calls the getLastError command",example:"db.getLastErrorObj(<w>, <wTimeout>, <j>)"},printShardingStatus:{link:"https://docs.mongodb.com/manual/reference/method/db.printShardingStatus",description:"Calls sh.status(verbose)",example:"db.printShardingStatus(verbose?)"},printSecondaryReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.printSecondaryReplicationInfo",description:"Prints secondary replicaset information",example:"db.printSecondaryReplicationInfo()"},printSlaveReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.printSlaveReplicationInfo",description:"DEPRECATED. Use db.printSecondaryReplicationInfo",example:"db.printSlaveReplicationInfo()"},getReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.getReplicationInfo",description:"Returns replication information",example:"db.getReplicationInfo()"},printReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/db.printReplicationInfo",description:"Formats sh.getReplicationInfo",example:"db.printReplicationInfo()"},setSecondaryOk:{description:"This method is deprecated. Use db.getMongo().setReadPref() instead"},checkMetadataConsistency:{link:"https://docs.mongodb.com/manual/reference/method/db.checkMetadataConsistency",description:"Returns a cursor with information about metadata inconsistencies",example:"db.checkMetadataConsistency(<options>)"}}}},DBQuery:{help:{description:'Deprecated -- use config.set("displayBatchSize", value) instead of DBQuery.shellBatchSize = value'}},Explainable:{help:{description:"Explainable Class",attributes:{aggregate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Provides information on the query plan for db.collection.aggregate() method.",example:"db.coll.explain().aggregate()"},find:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan.",example:"db.coll.explain().find()"},count:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.count().",example:"db.coll.explain().count()"},remove:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.remove().",example:"db.coll.explain().remove({})"},update:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.update().",example:"db.coll.explain().update({}, { $inc: ${ a: 1 } })"},distinct:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.distinct().",example:'db.coll.explain().distinct("_id")'},mapReduce:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.mapReduce().",example:"db.coll.explain().mapReduce(map, reduce, options)"},findAndModify:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.findAndModify().",example:"db.coll.explain().findAndModify({ query: { ... }, update: { ... } })"},findOneAndDelete:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.findOneAndDelete().",example:"db.coll.explain().findOneAndDelete({ ... query ... })"},findOneAndReplace:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.findOneAndReplace().",example:"db.coll.explain().findOneAndReplace({ ... query ... }, { ... replacement ... })"},findOneAndUpdate:{link:"https://docs.mongodb.com/manual/reference/method/db.collection.explain",description:"Returns information on the query plan for db.collection.findOneAndUpdate().",example:"db.coll.explain().findOneAndUpdate({ ... query ... }, { ... update operators ... })"},getCollection:{link:"",description:"Returns the explainable collection.",example:"db.coll.explain().getCollection()"},getVerbosity:{link:"",description:"Returns the explainable verbosity.",example:"db.coll.explain().getVerbosity()"},setVerbosity:{link:"",description:"Sets the explainable verbosity.",example:'db.coll.explain().setVerbosity("queryPlanner")'}}}},ExplainableCursor:{iteration:{"no-cursor":"no cursor","type-it-for-more":'Type "it" for more'},help:{description:"Explainable Cursor. See the Cursor class help methods for more information"}},RunCommandCursor:{help:{description:"RunCommandCursor Class",attributes:{batchSize:{description:"Specifies the number of documents to return in each batch of the response from the MongoDB instance."},close:{link:"https://docs.mongodb.com/manual/reference/method/cursor.close",description:"Instructs the server to close a cursor and free associated server resources. The server will automatically close cursors that have no remaining results, as well as cursors that have been idle for a period of time and lack the cursor.noCursorTimeout() option."},forEach:{link:"https://docs.mongodb.com/manual/reference/method/cursor.forEach",description:"Iterates the cursor to apply a JavaScript function to each document from the cursor."},hasNext:{link:"https://docs.mongodb.com/manual/reference/method/cursor.hasNext",description:"cursor.hasNext() returns true if the cursor returned by the db.collection.aggregate() can iterate further to return more documents. NOTE: if the cursor is tailable with awaitData then hasNext will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead"},isClosed:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isClosed",description:"Returns true if the cursor is closed."},isExhausted:{link:"https://docs.mongodb.com/manual/reference/method/cursor.isExhausted",description:"cursor.isExhausted() returns true if the cursor is closed and there are no remaining objects in the batch."},itcount:{link:"https://docs.mongodb.com/manual/reference/method/cursor.itcount",description:"Counts the number of documents remaining in a cursor. itcount() is similar to cursor.count(), but actually executes the query on an existing iterator, exhausting its contents in the process."},map:{link:"https://docs.mongodb.com/manual/reference/method/cursor.map",description:"Applies the first argument, a function, to each document visited by the cursor and collects the return values from successive application into an array."},maxTimeMS:{link:"https://docs.mongodb.com/manual/reference/method/cursor.maxTimeMS",description:"Specifies a cumulative time limit in milliseconds for processing operations on a cursor."},next:{link:"https://docs.mongodb.com/manual/reference/method/cursor.next",description:"The next document in the cursor returned by the db.collection.aggregate() method. NOTE: if the cursor is tailable with awaitData then next will block until a document is returned. To check if a document is in the cursor's batch without waiting, use tryNext instead"},objsLeftInBatch:{link:"https://docs.mongodb.com/manual/reference/method/cursor.objsLeftInBatch",description:"cursor.objsLeftInBatch() returns the number of documents remaining in the current batch."},pretty:{description:"Deprecated. The shell provides auto-formatting so this method is no longer useful"},toArray:{link:"https://docs.mongodb.com/manual/reference/method/cursor.toArray",description:"The toArray() method returns an array that contains all the documents from a cursor. The method iterates completely the cursor, loading all the documents into RAM and exhausting the cursor."},tryNext:{description:"If a document is in the cursor's batch it will be returned, otherwise null will be returned"}}}},ReplicaSet:{help:{description:"Replica Set Class",link:"https://docs.mongodb.com/manual/reference/method/js-replication/",attributes:{initiate:{link:"https://docs.mongodb.com/manual/reference/method/rs.initiate",description:"Initiates the replica set.",example:"rs.initiate()"},config:{link:"https://docs.mongodb.com/manual/reference/method/rs.conf",description:"Returns a document that contains the current replica set configuration.",example:"rs.config()"},reconfig:{link:"https://docs.mongodb.com/manual/reference/method/rs.reconfig",description:"Reconfigures an existing replica set, overwriting the existing replica set configuration.",example:"rs.reconfig()"},reconfigForPSASet:{link:"https://docs.mongodb.com/manual/reference/method/rs.reconfigForPSASet",description:"Reconfigures an existing replica set, overwriting the existing replica set configuration, if the reconfiguration is a transition from a Primary-Arbiter to a Primary-Secondary-Arbiter set.",example:"rs.reconfigForPSASet(indexOfNewMemberInMembersArray, config)"},conf:{link:"https://docs.mongodb.com/manual/reference/method/rs.conf",description:"Calls replSetConfig",example:"rs.conf()"},status:{link:"https://docs.mongodb.com/manual/reference/method/rs.status",description:"Calls replSetGetStatus",example:"rs.status()"},isMaster:{link:"https://docs.mongodb.com/manual/reference/method/rs.isMaster",description:"Calls isMaster",example:"rs.isMaster()"},hello:{link:"https://docs.mongodb.com/manual/reference/method/rs.hello",description:"Calls hello",example:"rs.hello()"},printSecondaryReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/rs.printSecondaryReplicationInfo",description:"Calls db.printSecondaryReplicationInfo",example:"rs.printSecondaryReplicationInfo()"},printSlaveReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/rs.printSlaveReplicationInfo",description:"DEPRECATED. Use rs.printSecondaryReplicationInfo",example:"rs.printSlaveReplicationInfo()"},printReplicationInfo:{link:"https://docs.mongodb.com/manual/reference/method/rs.printReplicationInfo",description:"Calls db.printReplicationInfo",example:"rs.printReplicationInfo()"},add:{link:"https://docs.mongodb.com/manual/reference/method/rs.add",description:"Adds replica set member to replica set.",example:"rs.add(hostport, arbiterOnly?)"},addArb:{link:"https://docs.mongodb.com/manual/reference/method/rs.addArb",description:"Calls rs.add with arbiterOnly=true",example:"rs.addArb(hostname)"},remove:{link:"https://docs.mongodb.com/manual/reference/method/rs.remove",description:"Removes a replica set member.",example:"rs.remove(hostname)"},freeze:{link:"https://docs.mongodb.com/manual/reference/method/rs.freeze",description:"Prevents the current member from seeking election as primary for a period of time. Uses the replSetFreeze command",example:"rs.freeze(secs)"},stepDown:{link:"https://docs.mongodb.com/manual/reference/method/rs.stepDown",description:"Causes the current primary to become a secondary which forces an election. If no stepDownSecs is provided, uses 60 seconds. Uses the replSetStepDown command",example:"rs.stepDown(stepDownSecs?, catchUpSecs?)"},syncFrom:{link:"https://docs.mongodb.com/manual/reference/method/rs.syncFrom",description:"Sets the member that this replica set member will sync from, overriding the default sync target selection logic.",example:"rs.syncFrom(host)"},secondaryOk:{description:"This method is deprecated. Use db.getMongo().setReadPref() instead"}}}},Shard:{help:{description:"The Shard Class",attributes:{enableSharding:{link:"https://docs.mongodb.com/manual/reference/method/sh.enableSharding",description:"Enables sharding on a specific database. Uses the enableSharding command",example:"sh.enableSharding(database, primaryShard?)"},shardCollection:{link:"https://docs.mongodb.com/manual/reference/method/sh.shardCollection",description:"Enables sharding for a collection. Uses the shardCollection command",example:"sh.shardCollection(namespace, key, unique?, options?)"},reshardCollection:{link:"https://docs.mongodb.com/manual/reference/method/sh.reshardCollection",description:"Enables sharding for a collection. Uses the reshardCollection command",example:"sh.reshardCollection(namespace, key, unique?, options?)"},commitReshardCollection:{link:"https://docs.mongodb.com/manual/reference/method/sh.commitReshardCollection",description:"Commits the current reshardCollection on a given collection",example:"sh.commitReshardCollection(namespace)"},abortReshardCollection:{link:"https://docs.mongodb.com/manual/reference/method/sh.abortReshardCollection",description:"Abort the current reshardCollection on a given collection",example:"sh.abortReshardCollection(namespace)"},status:{link:"https://docs.mongodb.com/manual/reference/method/sh.status",description:"Prints a formatted report of the sharding configuration and the information regarding existing chunks in a sharded cluster. The default behavior suppresses the detailed chunk information if the total number of chunks is greater than or equal to 20.",example:"sh.status(verbose?)"},addShard:{link:"https://docs.mongodb.com/manual/reference/method/sh.addShard",description:"Adds a shard to a sharded cluster. Uses the addShard command",example:"sh.addShard(url)"},addShardToZone:{link:"https://docs.mongodb.com/manual/reference/method/sh.addShardToZone",description:"Associates a shard to a zone. Uses the addShardToZone command",example:"sh.addShardToZone(shard, zone)"},addShardTag:{link:"https://docs.mongodb.com/manual/reference/method/sh.addShardTag",description:"3.4+ only. Calls addShardTag for a sharded DB. Aliases to sh.addShardToZone().",example:"sh.addShardTag(shard, tag)"},updateZoneKeyRange:{link:"https://docs.mongodb.com/manual/reference/method/sh.updateZoneKeyRange",description:"Associates a range of shard keys to a zone. Uses the updateZoneKeyRange command",example:"sh.updateZoneKeyRange(ns, min, max, zone)"},addTagRange:{link:"https://docs.mongodb.com/manual/reference/method/sh.addTagRange",description:"3.4+ only. Adds a tag range for a sharded DB. This method aliases to sh.updateZoneKeyRange()",example:"sh.addTagRange(ns, min, max, zone)"},removeRangeFromZone:{link:"https://docs.mongodb.com/manual/reference/method/sh.removeRangeFromZone",description:"3.4+ only. Removes an association between a range of shard keys and a zone.",example:"sh.removeRangeFromZone(ns, min, max)"},removeTagRange:{link:"https://docs.mongodb.com/manual/reference/method/sh.removeTagRange",description:"3.4+ only. Removes tag range for a sharded DB. Aliases to sh.removeRangeFromZone",example:"sh.removeTagRange(ns, min, max)"},removeShardFromZone:{link:"https://docs.mongodb.com/manual/reference/method/sh.removeShardFromZone",description:"3.4+ only. Removes the association between a shard and a zone. Uses the removeShardFromZone command",example:"sh.removeShardFromZone(shard, zone)"},removeShardTag:{link:"https://docs.mongodb.com/manual/reference/method/sh.removeShardTag",description:"3.4+ only. Removes a shard tag for a sharded DB. Aliases to sh.removeShardFromZone",example:"sh.removeShardTag(shard, zone)"},enableAutoSplit:{link:"https://docs.mongodb.com/manual/reference/method/sh.enableAutoSplit",description:"Enables auto-splitting for the sharded cluster. Calls update on the config.settings collection",example:"sh.enableAutoSplit()"},disableAutoSplit:{link:"https://docs.mongodb.com/manual/reference/method/sh.disableAutoSplit",description:"Disables auto-splitting for the sharded cluster. Calls update on the config.settings collection",example:"sh.disableAutoSplit()"},splitAt:{link:"https://docs.mongodb.com/manual/reference/method/sh.splitAt",description:"Divides an existing chunk into two chunks using a specific value of the shard key as the dividing point. Uses the split command",example:"sh.splitAt(ns, query)"},splitFind:{link:"https://docs.mongodb.com/manual/reference/method/sh.splitFind",description:"Splits a chunk at the shard key value specified by the query at the median. Uses the split command",example:"sh.splitFind(ns, query)"},moveChunk:{link:"https://docs.mongodb.com/manual/reference/method/sh.moveChunk",description:"Moves the chunk that contains the document specified by the query to the destination shard. Uses the moveChunk command",example:"sh.moveChunk(ns, query, destination)"},balancerCollectionStatus:{link:"https://docs.mongodb.com/manual/reference/method/sh.balancerCollectionStatus",description:"Returns information on whether the chunks of a sharded collection are balanced. Uses the balancerCollectionStatus command",example:"sh.balancerCollectionStatus(ns)"},enableBalancing:{link:"https://docs.mongodb.com/manual/reference/method/sh.enableBalancing",description:"Activates the sharded collection balancer process.",example:"sh.enableBalancing(ns)"},disableBalancing:{link:"https://docs.mongodb.com/manual/reference/method/sh.disableBalancing",description:"Disable balancing on a single collection in a sharded database. Does not affect balancing of other collections in a sharded cluster.",example:"sh.disableBalancing(ns)"},getBalancerState:{link:"https://docs.mongodb.com/manual/reference/method/sh.getBalancerState",description:"Returns true when the balancer is enabled and false if the balancer is disabled. This does not reflect the current state of balancing operations: use sh.isBalancerRunning() to check the balancer’s current state.",example:"sh.getBalancerState()"},isBalancerRunning:{link:"https://docs.mongodb.com/manual/reference/method/sh.isBalancerRunning",description:"Returns true if the balancer process is currently running and migrating chunks and false if the balancer process is not running. Uses the balancerStatus command",example:"sh.isBalancerRunning()"},startBalancer:{link:"https://docs.mongodb.com/manual/reference/method/sh.startBalancer",description:"Enables the balancer. Uses the balancerStart command",example:"sh.startBalancer(timeout)"},stopBalancer:{link:"https://docs.mongodb.com/manual/reference/method/sh.stopBalancer",description:"Disables the balancer. uses the balancerStop command",example:"sh.stopBalancer(timeout)"},setBalancerState:{link:"https://docs.mongodb.com/manual/reference/method/sh.setBalancerState",description:"Calls sh.startBalancer if state is true, otherwise calls sh.stopBalancer",example:"sh.setBalancerState(state)"},getShardedDataDistribution:{description:"Returns data-size distribution information for all existing sharded collections",example:"sh.getShardedDataDistribution()"},startAutoMerger:{link:"https://docs.mongodb.com/manual/reference/method/sh.startAutoMerger",description:"Globally enable auto-merger (active only if balancer is up)",example:"sh.startAutoMerger()"},stopAutoMerger:{link:"https://docs.mongodb.com/manual/reference/method/sh.stopAutoMerger",description:"Globally disable auto-merger",example:"sh.stopAutoMerger()"},isAutoMergerEnabled:{link:"https://docs.mongodb.com/manual/reference/method/sh.isAutoMergerEnabled",description:"Returns whether the auto-merger is enabled",example:"sh.isAutoMergerEnabled()"},disableAutoMerger:{link:"https://docs.mongodb.com/manual/reference/method/sh.disableAutoMerger",description:"Disable auto-merging on one collection",example:"sh.disableAutoMerger(ns)"},enableAutoMerger:{link:"https://docs.mongodb.com/manual/reference/method/sh.enableAutoMerger",description:"Re-enable auto-merge on one collection",example:"sh.enableAutoMerger(ns)"},checkMetadataConsistency:{link:"https://docs.mongodb.com/manual/reference/method/sh.checkMetadataConsistency",description:"Returns a cursor with information about metadata inconsistencies",example:"sh.checkMetadataConsistency(<options>)"}}}},Session:{help:{description:"The Session Class. Represents a server session",link:"https://docs.mongodb.com/manual/reference/method/Session/",attributes:{getDatabase:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.getDatabase",description:"Returns a database class that will pass the session to the server with every command"},advanceOperationTime:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.advanceOperationTime",description:"Updates the operation time"},endSession:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.endSession",description:"Ends the session"},hasEnded:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.hasEnded",description:"Returns a boolean that specifies whether the session has ended."},getClusterTime:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.getClusterTime",description:"Returns the most recent cluster time as seen by the session. Applicable for replica sets and sharded clusters only."},getOperationTime:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.getOperationTime",description:"Returns the timestamp of the last acknowledged operation for the session."},getOptions:{link:"https://docs.mongodb.com/manual/reference/method/Session/#Session.getOptions",description:"Returns the options object passed to startSession"},startTransaction:{link:"https://docs.mongodb.com/manual/reference/method/Session.startTransaction/#Session.startTransaction",description:"Starts a multi-document transaction for the session."},commitTransaction:{link:"https://docs.mongodb.com/manual/reference/method/Session.commitTransaction/#Session.commitTransaction",description:"Commits the session’s transaction."},abortTransaction:{link:"https://docs.mongodb.com/manual/reference/method/Session.abortTransaction/#Session.abortTransaction",description:"Aborts the session’s transaction."},withTransaction:{link:"https://docs.mongodb.com/manual/reference/method/Session.abortTransaction/#Session.withTransaction",description:"Run a function within a transaction context.",example:'session.withTransaction(() => { session.getDatabase("test").test.insertOne({ doc: 1 }); })'},advanceClusterTime:{description:"Advances the clusterTime for a Session to the provided clusterTime."}}}},Mongo:{help:{description:"The Mongo Class. Represents a connection to a server",link:"https://docs.mongodb.com/manual/reference/method/Mongo/#Mongo",attributes:{watch:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.watch",description:"Opens a change stream cursor on the connection",example:"const cursor = db.getMongo().watch(pipeline, options)"},startSession:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.startSession/",description:"Starts a session for the connection."},getCollection:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getCollection",description:"Returns the specified Collection of the Mongo object.",example:'const collection = db.getMongo().getCollection("databaseName.collectionName")'},getDB:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getDB",description:"Returns the specified Database of the Mongo object."},getDBs:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getDBs",description:"Returns information about all databases. Uses the listDatabases command."},getDBNames:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getDBs",description:"Returns an array of all database names. Uses the listDatabases command.",example:"db.getMongo().getDBNames().map(name => db.getSiblingDB(name).getCollectionNames())"},getURI:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getURI",description:"Returns the connection string for current session"},connect:{link:"https://docs.mongodb.com/manual/reference/method/connect",description:"Creates a connection to a MongoDB instance and returns the reference to the database."},close:{description:"Closes a Mongo object, disposing of related resources and closing the underlying connection."},getReadConcern:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getReadConcern",description:"Returns the ReadConcern set for the connection.",example:"db.getMongo().getReadConcern()"},getWriteConcern:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getWriteConcern",description:"Returns the WriteConcern set for the connection.",example:"db.getMongo().getWriteConcern()"},getReadPref:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getReadPref",description:"Returns the ReadPreference set for the connection.",example:"db.getMongo().getReadPref()"},getReadPrefMode:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getReadPrefMode",description:"Returns the ReadPreference Mode set for the connection.",example:"db.getMongo().getReadPrefMode()"},getReadPrefTagSet:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.getReadPrefTagSet",description:"Returns the ReadPreference TagSet set for the connection.",example:"db.getMongo().getReadPrefTagSet()"},setReadPref:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.setReadPref",description:"Sets the ReadPreference for the connection",example:"db.getMongo().setReadPref(mode, tagSets, hedgeOptions)"},setReadConcern:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.setReadConcern",description:"Sets the ReadConcern for the connection",example:"db.getMongo().setReadConcern(level)"},setWriteConcern:{link:"https://docs.mongodb.com/manual/reference/method/Mongo.setWriteConcern",description:"Sets the WriteConcern for the connection",example:"db.getMongo().setWriteConcern('majority')"},setCausalConsistency:{description:"This method is deprecated. It is not possible to set causal consistency for an entire connection due to driver limitations, use startSession({causalConsistency: <>}) instead."},setSlaveOk:{description:"This method is deprecated"},setSecondaryOk:{description:"This method is deprecated. Use .setReadPref() instead"},isCausalConsistency:{description:"This method is deprecated. Causal consistency for drivers is set via Mongo.startSession and can be checked via session.getOptions. The default value is true"},getKeyVault:{description:"Returns the KeyVault object for the current database connection. The KeyVault object supports data encryption key management for Client-side field level encryption.",link:"https://docs.mongodb.com/manual/reference/method/getKeyVault/#getKeyVault"},getClientEncryption:{description:"Returns the ClientEncryption object for the current database collection. The ClientEncryption object supports explicit (manual) encryption and decryption of field values for Client-Side field level encryption.",link:"https://docs.mongodb.com/manual/reference/method/getClientEncryption/#getClientEncryption"},convertShardKeyToHashed:{description:"Returns the hashed value for the input using the same hashing function as a hashed index.",link:"https://www.mongodb.com/docs/manual/reference/method/convertShardKeyToHashed/"}}}},DBRef:{help:{description:"The DBRef BSON Class.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/DBRef.html",example:"new DBRef(namespace: string, oid: ObjectId, db: string [optional])"},attributes:{}},MaxKey:{help:{description:"The MaxKey BSON Class.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/MaxKey.html",example:"new MaxKey()"},attributes:{}},MinKey:{help:{description:"The MinKey BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/MinKey.html",example:"new MinKey()"},attributes:{}},ObjectId:{help:{description:"The ObjectId BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/ObjectID.html",example:"new ObjectId(id: string|number [optional])"},attributes:{}},BSONSymbol:{help:{description:"The Symbol BSON Class. Deprecated since server version 1.6",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Symbol.html",example:'new BSONSymbol("abc")'},attributes:{}},Timestamp:{help:{description:"The Timestamp BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Timestamp.html",example:"new Timestamp(low: signed 32 bit number, high: signed 32 bit number)"},attributes:{}},Code:{help:{description:"The Code BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Code.html",example:'new Code("x", { x: 1 } [optional])'},attributes:{}},NumberDecimal:{help:{description:"A helper method that constructs a Decimal128 BSON Class from a string",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Decimal128.html",example:'NumberDecimal("1.23423423")'}},Decimal128:{help:{description:"The Decimal128 BSON Class. Takes a Buffer as an argument.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Decimal128.html"},attributes:{}},NumberInt:{help:{description:"A helper method that constructs an Int32 BSON Class from a string",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Int32.html",example:'NumberInt("123")'}},Int32:{help:{description:"The 32-bit Integer BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Int32.html",example:"new Int32(123)"},attributes:{}},Long:{help:{description:"The Long BSON Class",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html",example:"new Long(low: signed 32 bit number, high: signed 32 bit number)"},attributes:{}},Double:{help:{description:"The Double BSON Class.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html",example:"new Double(123)"},attributes:{}},NumberLong:{help:{description:"A helper method that constructs a Long BSON Class from a string",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Long.html",example:'NumberLong("123")'}},Date:{help:{description:"The Date Class"}},ISODate:{help:{description:"Helper method for creating dates using ISO"}},BinData:{help:{description:"A helper method that constructs a Binary BSON Class.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Binary.html",example:"BinData(subtype: number, base64string)"}},Binary:{help:{description:"The Binary BSON Class that takes in (Buffer, subtype: number) as arguments.",link:"https://mongodb.github.io/node-mongodb-native/3.6/api/Binary.html"},attributes:{SUBTYPE_BYTE_ARRAY:{description:"The byte array BSON type"},SUBTYPE_DEFAULT:{description:"The default BSON type"},SUBTYPE_FUNCTION:{description:"The function BSON type"},SUBTYPE_MD5:{description:"The MD5 BSON type"},SUBTYPE_USER_DEFINED:{description:"The user BSON type"},SUBTYPE_UUID:{description:"The UUID BSON type"},SUBTYPE_UUID_OLD:{description:"The Old UUID BSON type"}}},HexData:{help:{description:"Helper method to create BinData. Accepts subtype hex string",example:'HexData(0, "0123456789abcdef")'}},UUID:{help:{description:"Helper method to create BinData with subtype UUID. Accepts hex string (with optional dashes)",example:'UUID("01234567-89ab-cdef-0123-456789abcdef")'}},MD5:{help:{description:"Helper method to create BinData with subtype MD5. Accepts hex string",example:'MD5("0123456789abcdef0123456789abcdef")'}},bsonsize:{help:{description:"Helper method to calculate BSON object size",example:'bsonsize({ foo: "bar" })'}},Map:{help:{description:"BSON Map"}},Bulk:{help:{link:"https://docs.mongodb.com/manual/reference/method/Bulk",description:"Bulk operations builder used to construct a list of write operations to perform in bulk for a single collection. To instantiate the builder, use either the db.collection.initializeOrderedBulkOp() or the db.collection.initializeUnorderedBulkOp() method.",attributes:{insert:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.insert/",description:"Adds an insert to the bulk operation.",example:"db.insert(<document>)"},execute:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.execute/",description:"Executes the bulk operation.",example:"bulkOp.execute()"},find:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find/",description:"Adds a find to the bulk operation.",example:"bulkOp.find(<filter>)"},getOperations:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.getOperations/",description:"Returns the batches executed by the bulk write.",example:"bulkOp.getOperations()"},tojson:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.tojson/",description:"Returns a JSON document that contains the number of operations and batches in the Bulk() object.",example:"bulkOp.tojson()"},toString:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.toString/",description:"Returns as a string a JSON document that contains the number of operations and batches in the Bulk() object.",example:"bulkOp.toString()"}}}},BulkFindOp:{help:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find",description:"Bulk operations builder returned after Bulk.find()",attributes:{arrayFilters:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.arrayFilters/",description:"Adds an arrayFilter to the bulk operation.",example:"bulkOp.find(...).arrayFilters(<array of filters)"},hint:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.hint/",description:"Adds an hint to the bulk operation.",example:"bulkOp.find(...).hint(<hintd document>)"},collation:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.collation/",description:"Adds collation options to the bulk operation.",example:"bulkOp.find(...).collation(<collation doc>)"},remove:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.remove/",description:"Adds an remove to the bulk operation.",example:"bulkOp.find(...).remove()"},removeOne:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.removeOne/",description:"Adds an removeOne to the bulk operation.",example:"bulkOp.find(...).removeOne()"},delete:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.delete/",description:"Adds an delete to the bulk operation.",example:"bulkOp.find(...).delete()"},deleteOne:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.deleteOne/",description:"Adds an deleteOne to the bulk operation.",example:"bulkOp.find(...).deleteOne()"},replaceOne:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.replaceOne/",description:"Adds an replaceOne to the bulk operation.",example:"bulkOp.find(...).replaceOne(<document>)"},updateOne:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.updateOne/",description:"Adds an updateOne to the bulk operation.",example:"bulkOp.find(...).updateOne(<document>)"},update:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.update/",description:"Adds an update to the bulk operation.",example:"bulkOp.find(...).update(<document>)"},upsert:{link:"https://docs.mongodb.com/manual/reference/method/Bulk.find.upsert/",description:"Adds an upsert to the bulk operation updates for this find(...).",example:"bulkOp.find(...).upsert()"}}}},PlanCache:{help:{link:"https://docs.mongodb.com/manual/reference/method/js-plan-cache/",description:"An interface to access the query plan cache object and associated PlanCache methods for a collection.",attributes:{clear:{link:"https://docs.mongodb.com/manual/reference/method/PlanCache.clear",description:"Removes cached query plan(s) for a collection.",example:"db.coll.getPlanCache().clear()"},clearPlansByQuery:{link:"https://docs.mongodb.com/manual/reference/method/PlanCache.clearPlansByQuery",description:"Removes cached query plan(s) for a collection of the specified query shape.",example:"db.coll.getPlanCache().clearPlansByQuery(<query>, <projection?>, <sort?>)"},list:{link:"https://docs.mongodb.com/manual/reference/method/PlanCache.list",description:"Lists cached query plan(s) for a collection.",example:"db.coll.getPlanCache().list(<pipeline>)"},getPlansByQuery:{description:"Deprecated. Please use PlanCache.list instead"},listQueryShapes:{description:"Deprecated. Please use PlanCache.list instead"}}}},Document:{help:{link:"https://docs.mongodb.com/manual/core/document/",description:"A generic MongoDB document, without any methods.",attributes:{}}},KeyVault:{help:{link:"https://docs.mongodb.com/manual/core/security-client-side-encryption/",description:"The key vault object for the current MongoDB connection",attributes:{createKey:{description:"Creates a data encryption key for use with client-side field level encryption.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.createKey/#KeyVault.createKey"},deleteKey:{description:"Deletes the specified data encryption key from the key vault.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.deleteKey/#KeyVault.deleteKey"},getKey:{description:"Retreives the specified data encryption key from the key vault.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.getKey/#KeyVault.getKey"},getKeys:{description:"Retrieves all keys in the key vault.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.getKeys/#KeyVault.getKeys"},addKeyAlternateName:{description:"Associates a key alternative name to the specified data encryption key.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.addKeyAlternateName/#KeyVault.addKeyAlternateName"},removeKeyAlternateName:{description:"Removes a key alternative name from the specified data encryption key.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.removeKeyAlternateName/#KeyVault.removeKeyAlternateName"},getKeyByAltName:{description:"Retrieves keys with the specified key alternative name.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.getKeyByAltName/#KeyVault.getKeyByAltName"},rewrapManyDataKey:{description:"Re-wrap one, more, or all data keys with another KMS provider, or re-wrap using the same one.",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.rewrapManyDataKey/#KeyVault.rewrapManyDataKey"},createDataKey:{description:"Alias of KeyVault.createKey()",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.createKey/#KeyVault.createKey"},removeKeyAltName:{description:"Alias of KeyVault.removeKeyAlternateName()",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.removeKeyAlternateName/#KeyVault.removeKeyAlternateName"},addKeyAltName:{description:"Alias of KeyVault.addKeyAlternateName()",link:"https://docs.mongodb.com/manual/reference/method/KeyVault.addKeyAlternateName/#KeyVault.addKeyAlternateName"}}}},ClientEncryption:{help:{link:"https://docs.mongodb.com/manual/core/security-client-side-encryption/",description:"The ClientEncryption object for the current database collection.",attributes:{encrypt:{link:"https://docs.mongodb.com/manual/reference/method/ClientEncryption.encrypt/#ClientEncryption.encrypt",description:"Encrypts the value using the specified encryptionKeyId and encryptionAlgorithm. encrypt supports explicit (manual) encryption of field values."},encryptExpression:{link:"https://docs.mongodb.com/manual/reference/method/ClientEncryption.encrypt/#ClientEncryption.encryptExpression",description:"Encrypts an MQL expression using the specified encryptionKeyId and encryptionAlgorithm."},decrypt:{link:"https://docs.mongodb.com/manual/reference/method/ClientEncryption.decrypt/#ClientEncryption.decrypt",description:"decrypts the encryptionValue if the current database connection was configured with access to the Key Management Service (KMS) and key vault used to encrypt encryptionValue."},createEncryptedCollection:{link:"https://docs.mongodb.com/manual/reference/method/ClientEncryption.createEncryptedCollection/#ClientEncryption.createEncryptedCollection",description:"Creates a new collection with a list of encrypted fields each with unique and auto-created data encryption keys (DEKs). This method should be invoked on a connection instantiated with queryable encryption options.",example:'db.getMongo().getClientEncryption().createEncryptedCollection( "dbName", "collName", { "provider": "<kmsProvider>", "createCollectionOptions": { "encryptedFields": { ... }, ...<otherOptions> } })'}}}},Streams:{help:{description:"Streams",attributes:{process:{description:"Allows a user to process streams of data in the shell interactively and quickly iterate building a stream processor as they go."},createStreamProcessor:{description:"Create a named stream processor."},getProcessor:{description:"Get a stream processor with specified name."},listStreamProcessors:{description:"Show a list of all the named stream processors."},listConnections:{description:"Show a list of all the named connections for this instance from the Connection Registry."}}}},StreamProcessor:{help:{description:"Stream processor",attributes:{start:{description:"Start a named stream processor."},stop:{description:"Stop a named stream processor."},drop:{description:"Drop a named stream processor."},sample:{description:"Return a sample of the results from a named stream processor."},stats:{description:"Return stats captured from a named stream processor."}}}}}},"transport-browser":{"stitch-browser-transport":{"auth-error":"Error authenticating with Stitch."}},"transport-core":{"stitch-transport":{"not-implemented":"is not implemented in the Stitch SDK","agg-on-db":"Aggregations run on the database is not allowed via Stitch"}},"transport-server":{}}},78313:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(1296),i=s(r(75962)),a=s(r(415)),o=s(r(27524)),u="en_US",l={en_US:o.default,de_DE:a.default};t.default=class{__(e){const t=this.translate(e);if(void 0===t)throw new n.MongoshInternalError(`Could not translate key ${JSON.stringify(e)}`);return t}constructor(e){this.locale=u,this.catalog=e||l[this.locale]}setLocale(e){Object.prototype.hasOwnProperty.call(l,e)?(this.locale=e,this.catalog=l[e]):(this.locale=u,this.catalog=l[u])}translate(e){return this.find(e)}translateApiHelp(e){const t=this.find(e);if(t)return"string"==typeof t?t:i.default.render("{{description}}\n\n{{link}}\n\n{{example}}\n\n{{returns}}",t)}find(e){return e.split(".").reduce(((e,t)=>e?e[t]:void 0),this.catalog)}}},15789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},26797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},47390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bson=void 0;const s=r(30345);t.bson={ObjectId:s.ObjectId,DBRef:s.DBRef,MaxKey:s.MaxKey,MinKey:s.MinKey,Timestamp:s.Timestamp,BSONSymbol:s.BSONSymbol,Code:s.Code,Decimal128:s.Decimal128,Int32:s.Int32,Long:s.Long,Binary:s.Binary,calculateObjectSize:s.calculateObjectSize,Double:s.Double,EJSON:s.EJSON,BSONRegExp:s.BSONRegExp}},817:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(r(20964));t.default=function(e,t,r,s,i,a){var o;null!=r||(r={});const{isGenuine:u,serverName:l}=n.default.getGenuineMongoDB(e),{isDataLake:c,dlVersion:p}=n.default.getDataLake(r),h=i.s.credentials?i.s.credentials.mechanism:null,{serverOs:d,serverArch:f}=n.default.getBuildEnv(r);return{is_atlas:!!(null==s?void 0:s.atlasVersion)||n.default.isAtlas(e),is_localhost:n.default.isLocalhost(e),is_do:n.default.isDigitalOcean(e),server_version:r.version,node_version:process.version,mongosh_version:t,server_os:d,uri:e,server_arch:f,is_enterprise:n.default.isEnterprise(r),auth_type:h,is_data_federation:c,is_stream:n.default.isAtlasStream(e),dl_version:p,atlas_version:null!==(o=null==s?void 0:s.atlasVersion)&&void 0!==o?o:null,is_genuine:u,non_genuine_server_name:l,is_local_atlas:a}}},63292:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.bsonStringifiers=t.ServiceProviderCore=t.DEFAULT_DB=t.getConnectInfo=t.bson=void 0,r(46503);const a=r(53017);Object.defineProperty(t,"ServiceProviderCore",{enumerable:!0,get:function(){return a.ServiceProviderCore}});const o=i(r(817));t.getConnectInfo=o.default,t.DEFAULT_DB="test";const u=r(81132);Object.defineProperty(t,"bsonStringifiers",{enumerable:!0,get:function(){return u.bsonStringifiers}}),n(r(26797),t),n(r(15789),t);var l=r(47390);Object.defineProperty(t,"bson",{enumerable:!0,get:function(){return l.bson}})},81132:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makePrintableBson=t.bsonStringifiers=void 0;const s=r(47390),n=Symbol.for("nodejs.util.inspect.custom");function i(e){const t=s.bson[e].prototype.inspect;return function(...e){return r=t.apply(this,e),String(r).replace(/^(\s*)(new )/,"$1");var r}}const a=i("Binary");t.bsonStringifiers={ObjectId:i("ObjectId"),ObjectID:i("ObjectId"),DBRef:i("DBRef"),MaxKey:i("MaxKey"),MinKey:i("MinKey"),Timestamp:i("Timestamp"),BSONSymbol:i("BSONSymbol"),Code:i("Code"),Decimal128:i("Decimal128"),Int32:i("Int32"),Long:i("Long"),Double:i("Double"),BSONRegExp:i("BSONRegExp"),Binary:function(...e){const t=this.toString("hex");switch(this.sub_type){case s.bson.Binary.SUBTYPE_MD5:return`MD5('${t}')`;case s.bson.Binary.SUBTYPE_UUID:if(32===t.length)return`UUID('${/^(.{8})(.{4})(.{4})(.{4})(.{12})$/.exec(t).slice(1,6).join("-")}')`;default:return a.apply(this,e)}}},t.makePrintableBson=function(e){e||(e=s.bson);for(const[r,s]of Object.entries(t.bsonStringifiers)){if(!(r in e))continue;const t=e[r];for(const e of[n,"inspect"])t.prototype[e]=s}}},53017:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceProviderCore=void 0;const s=r(1296),n=r(81132);t.ServiceProviderCore=class{constructor(e){if(void 0===e)throw new s.MongoshInternalError("BSON Library is undefined.");(0,n.makePrintableBson)(e),this.bsonLibrary=e}}},46503:(e,t)=>{"use strict";function r(){return{TextDecoder:class{decode(e){const t=Buffer.from(e).toString("utf8");return t.slice(+t.startsWith("\ufeff"))}},TextEncoder:class{encode(e){return Buffer.from(e,"utf8")}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.textEncodingPolyfill=void 0,"function"==typeof TextDecoder&&"function"==typeof TextEncoder||Object.assign(Function("return this")(),r()),t.textEncodingPolyfill=r},389:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCursor=void 0;const n=r(33335),i=r(26591),a=r(95961),o=r(75671);let u=t.AbstractCursor=class extends n.ShellApiWithMongoClass{constructor(e,t){super(),this._currentIterationResult=null,this._mongo=e,this._cursor=t,this._transform=null}async[i.asPrintable](){var e;return(await(0,n.toShellResult)(null!==(e=this._currentIterationResult)&&void 0!==e?e:await this._it())).printable}async _it(){const e=this._currentIterationResult=new a.CursorIterationResult;return await(0,o.iterate)(e,this,await this._mongo._displayBatchSize()),e.cursorHasMore=!this.isExhausted(),e}batchSize(e){return this._cursor.batchSize(e),this}async close(){await this._cursor.close()}async forEach(e){for await(const t of this)if(!1===await e(t))break}async hasNext(){return this._cursor.hasNext()}async tryNext(){let e=await this._cursor.tryNext();return null!==e&&null!==this._transform&&(e=await this._transform(e)),e}get[Symbol.for("@@mongosh.syntheticAsyncIterable")](){return!0}async*[Symbol.asyncIterator](){let e;for(;null!=(e=await this.tryNext());)yield e}isClosed(){return this._cursor.closed}isExhausted(){return this.isClosed()&&0===this.objsLeftInBatch()}async itcount(){let e=0;for(;await this.tryNext();)e++;return e}async toArray(){const e=[];for await(const t of this)e.push(t);return e}pretty(){return this}map(e){if(null===this._transform)this._transform=e;else{const t=this._transform;this._transform=r=>e(t(r))}return this}maxTimeMS(e){return this._cursor.maxTimeMS(e),this}async next(){let e=await this._cursor.next();return null!==e&&null!==this._transform&&(e=await this._transform(e)),e}objsLeftInBatch(){return this._cursor.bufferedCount()}};s([(0,n.returnType)("this")],u.prototype,"batchSize",null),s([n.returnsPromise],u.prototype,"close",null),s([n.returnsPromise],u.prototype,"forEach",null),s([n.returnsPromise],u.prototype,"hasNext",null),s([n.returnsPromise],u.prototype,"tryNext",null),s([n.returnsPromise],u.prototype,"itcount",null),s([n.returnsPromise],u.prototype,"toArray",null),s([(0,n.returnType)("this")],u.prototype,"pretty",null),s([(0,n.returnType)("this")],u.prototype,"map",null),s([(0,n.returnType)("this")],u.prototype,"maxTimeMS",null),s([n.returnsPromise],u.prototype,"next",null),t.AbstractCursor=u=s([n.shellApiClassNoHelp],u)},47478:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateOrFindCursor=void 0;const n=r(33335),i=r(75671),a=r(389);let o=t.AggregateOrFindCursor=class extends a.AbstractCursor{projection(e){return this._cursor.project(e),this}skip(e){return this._cursor.skip(e),this}sort(e){return this._cursor.sort(e),this}async explain(e){e=(0,i.validateExplainableVerbosity)(e);const t={...await this._cursor.explain(e)};return"executionStats"!==e&&"allPlansExecution"!==e&&t.executionStats&&delete t.executionStats,"executionStats"===e&&t.executionStats&&t.executionStats.allPlansExecution&&delete t.executionStats.allPlansExecution,(0,i.markAsExplainOutput)(t)}};s([(0,n.returnType)("this")],o.prototype,"projection",null),s([(0,n.returnType)("this")],o.prototype,"skip",null),s([(0,n.returnType)("this")],o.prototype,"sort",null),s([n.returnsPromise,(0,n.apiVersions)([1])],o.prototype,"explain",null),t.AggregateOrFindCursor=o=s([n.shellApiClassNoHelp],o)},53891:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(33335),i=r(47478);let a=class extends i.AggregateOrFindCursor{constructor(e,t){super(e,t)}};a=s([n.shellApiClassDefault],a),t.default=a},14405:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.BulkFindOp=void 0;const n=r(33335),i=r(1296),a=r(26591),o=r(75671),u=r(95961);let l=t.BulkFindOp=class extends n.ShellApiWithMongoClass{constructor(e,t){super(),this._serviceProviderBulkFindOp=e,this._parentBulk=t}get _mongo(){return this._parentBulk._mongo}[a.asPrintable](){return"BulkFindOp"}collation(e){return this._serviceProviderBulkFindOp.collation(e),this}arrayFilters(e){return this._serviceProviderBulkFindOp.arrayFilters(e),this}hint(e){return(0,o.assertArgsDefinedType)([e],[!0],"BulkFindOp.hint"),this._serviceProviderBulkFindOp.hint(e),this}delete(){return this._parentBulk._batchCounts.nRemoveOps++,this._serviceProviderBulkFindOp.delete(),this._parentBulk}deleteOne(){return this._parentBulk._batchCounts.nRemoveOps++,this._serviceProviderBulkFindOp.deleteOne(),this._parentBulk}remove(){return this.delete()}removeOne(){return this.deleteOne()}replaceOne(e){this._parentBulk._batchCounts.nUpdateOps++,(0,o.assertArgsDefinedType)([e],[!0],"BulkFindOp.replacement");const t=(0,o.shallowClone)(e);return this._serviceProviderBulkFindOp.replaceOne(t),this._parentBulk}updateOne(e){this._parentBulk._batchCounts.nUpdateOps++,(0,o.assertArgsDefinedType)([e],[!0],"BulkFindOp.update");const t=(0,o.shallowClone)(e);return this._serviceProviderBulkFindOp.updateOne(t),this._parentBulk}update(e){this._parentBulk._batchCounts.nUpdateOps++,(0,o.assertArgsDefinedType)([e],[!0],"BulkFindOp.update");const t=(0,o.shallowClone)(e);return this._serviceProviderBulkFindOp.update(t),this._parentBulk}upsert(){return this._serviceProviderBulkFindOp.upsert(),this}};s([(0,n.returnType)("BulkFindOp"),(0,n.apiVersions)([1])],l.prototype,"collation",null),s([(0,n.returnType)("BulkFindOp"),(0,n.apiVersions)([1])],l.prototype,"arrayFilters",null),s([(0,n.returnType)("BulkFindOp"),(0,n.apiVersions)([1])],l.prototype,"hint",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],l.prototype,"delete",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],l.prototype,"deleteOne",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1]),n.deprecated],l.prototype,"remove",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1]),n.deprecated],l.prototype,"removeOne",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],l.prototype,"replaceOne",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],l.prototype,"updateOne",null),s([(0,n.returnType)("Bulk")],l.prototype,"update",null),s([(0,n.returnType)("Bulk")],l.prototype,"upsert",null),t.BulkFindOp=l=s([n.shellApiClassDefault],l);let c=class extends n.ShellApiWithMongoClass{constructor(e,t,r=!1){super(),this._collection=e,this._mongo=e._mongo,this._serviceProviderBulkOp=t,this._batchCounts={nInsertOps:0,nUpdateOps:0,nRemoveOps:0},this._executed=!1,this._ordered=r}[a.asPrintable](){return this.toJSON()}_emitBulkApiCall(e,t={}){this._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Bulk",db:this._collection._database._name,coll:this._collection._name,arguments:t})}async execute(e){const t=await this._serviceProviderBulkOp.execute();return this._executed=!0,this._emitBulkApiCall("execute",{writeConcern:e}),new u.BulkWriteResult(!!t.ok,t.insertedCount,t.insertedIds,t.matchedCount,t.modifiedCount,t.deletedCount,t.upsertedCount,t.upsertedIds)}find(e){return(0,o.assertArgsDefinedType)([e],[!0],"Bulk.find"),new l(this._serviceProviderBulkOp.find(e),this)}insert(e){return this._batchCounts.nInsertOps++,(0,o.assertArgsDefinedType)([e],[!0],"Bulk.insert"),this._serviceProviderBulkOp.insert(e),this}toJSON(){const e=this._serviceProviderBulkOp.batches.length;return{...this._batchCounts,nBatches:e}}toString(){return JSON.stringify(this.toJSON())}getOperations(){if(!this._executed)throw new i.MongoshInvalidInputError("Cannot call getOperations on an unexecuted Bulk operation",i.CommonErrors.InvalidOperation);return this._serviceProviderBulkOp.batches.map((e=>({originalZeroIndex:e.originalZeroIndex,batchType:e.batchType,operations:e.operations})))}};s([n.returnsPromise,(0,n.apiVersions)([1])],c.prototype,"execute",null),s([(0,n.returnType)("BulkFindOp"),(0,n.apiVersions)([1])],c.prototype,"find",null),s([(0,n.returnType)("Bulk"),(0,n.apiVersions)([1])],c.prototype,"insert",null),c=s([n.shellApiClassDefault],c),t.default=c},24423:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(33335),i=r(95961),a=r(26591),o=r(1296),u=r(75671);let l=class extends n.ShellApiWithMongoClass{constructor(e,t,r){super(),this._currentIterationResult=null,this._cursor=e,this._on=t,this._mongo=r}async _it(){if(this._cursor.closed)throw new o.MongoshRuntimeError("ChangeStreamCursor is closed");const e=this._currentIterationResult=new i.CursorIterationResult;return(0,u.iterate)(e,this,await this._mongo._displayBatchSize())}[a.asPrintable](){return`ChangeStreamCursor on ${this._on}`}async close(){await this._cursor.close()}async hasNext(){return await this._instanceState.printWarning("If there are no documents in the batch, hasNext will block. Use tryNext if you want to check if there are any documents without waiting."),this._cursor.hasNext()}async tryNext(){if(this._cursor.closed)throw new o.MongoshRuntimeError("Cannot call tryNext on closed cursor");return this._cursor.tryNext()}get[Symbol.for("@@mongosh.syntheticAsyncIterable")](){return!0}async*[Symbol.asyncIterator](){let e;for(;null!==(e=await this.tryNext());)yield e}isClosed(){return this._cursor.closed}isExhausted(){throw new o.MongoshInvalidInputError("isExhausted is not implemented for ChangeStreams because after closing a cursor, the remaining documents in the batch are no longer accessible. If you want to see if the cursor is closed use isClosed. If you want to see if there are documents left in the batch, use tryNext.")}async itcount(){let e=0;for(;await this.tryNext();)e++;return e}async next(){return await this._instanceState.printWarning("If there are no documents in the batch, next will block. Use tryNext if you want to check if there are any documents without waiting."),this._cursor.next()}getResumeToken(){return this._cursor.resumeToken}map(){throw new o.MongoshUnimplementedError("Cannot call map on a change stream cursor")}forEach(){throw new o.MongoshUnimplementedError("Cannot call forEach on a change stream cursor")}toArray(){throw new o.MongoshUnimplementedError("Cannot call toArray on a change stream cursor")}objsLeftInBatch(){throw new o.MongoshUnimplementedError("Cannot call objsLeftInBatch on a change stream cursor")}pretty(){return this}};s([n.returnsPromise],l.prototype,"close",null),s([n.returnsPromise,n.deprecated],l.prototype,"hasNext",null),s([n.returnsPromise],l.prototype,"tryNext",null),s([n.returnsPromise],l.prototype,"itcount",null),s([n.returnsPromise],l.prototype,"next",null),s([(0,n.returnType)("ChangeStreamCursor")],l.prototype,"pretty",null),l=s([n.shellApiClassDefault],l),t.default=l},78419:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=r(26591),o=r(75671),u=r(62294),l=r(1296),c=n(r(14405)),p=r(59215),h=n(r(18421)),d=n(r(24423)),f=r(32589);let m=class extends i.ShellApiWithMongoClass{constructor(e,t,r){return super(),this._mongo=e,this._database=t,this._name=r,new Proxy(this,{get:(e,s)=>s in e?e[s]:"string"==typeof s&&!s.startsWith("_")&&(0,o.isValidCollectionName)(s)?t.getCollection(`${r}.${s}`):void 0})}[a.namespaceInfo](){return{db:this._database.getName(),collection:this._name}}[a.asPrintable](){return`${this._database.getName()}.${this._name}`}_emitCollectionApiCall(e,t={}){this._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Collection",db:this._database._name,coll:this._name,arguments:t})}async aggregate(...e){let t,r;0===e.length||Array.isArray(e[0])?(t=e[1]||{},r=e[0]||[]):(t={},r=e||[]),this._emitCollectionApiCall("aggregate",{options:t,pipeline:r});const{aggOptions:s,dbOptions:n,explain:i}=(0,o.adaptAggregateOptions)(t),a=this._mongo._serviceProvider.aggregate(this._database._name,this._name,r,{...await this._database._baseOptions(),...s},n),l=new u.AggregationCursor(this._mongo,a);return i?await l.explain(i):((0,o.shouldRunAggregationImmediately)(r)&&await l.hasNext(),this._mongo._instanceState.currentCursor=l,l)}async bulkWrite(e,t={}){this._emitCollectionApiCall("bulkWrite",{options:t});const r=await this._mongo._serviceProvider.bulkWrite(this._database._name,this._name,e,{...await this._database._baseOptions(),...t});return new u.BulkWriteResult(!!r.ok,r.insertedCount,r.insertedIds,r.matchedCount,r.modifiedCount,r.deletedCount,r.upsertedCount,r.upsertedIds)}async count(e={},t={}){return await this._instanceState.printDeprecationWarning("Collection.count() is deprecated. Use countDocuments or estimatedDocumentCount."),this._emitCollectionApiCall("count",{query:e,options:t}),this._mongo._serviceProvider.count(this._database._name,this._name,e,{...await this._database._baseOptions(),...t})}async countDocuments(e,t={}){return this._emitCollectionApiCall("countDocuments",{query:e,options:t}),this._mongo._serviceProvider.countDocuments(this._database._name,this._name,e,{...await this._database._baseOptions(),...t})}async deleteMany(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.deleteMany"),this._emitCollectionApiCall("deleteMany",{filter:e,options:t});const r=await this._mongo._serviceProvider.deleteMany(this._database._name,this._name,e,{...await this._database._baseOptions(),...t});return t.explain?(0,o.markAsExplainOutput)(r):new u.DeleteResult(!!r.acknowledged,r.deletedCount)}async deleteOne(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.deleteOne"),this._emitCollectionApiCall("deleteOne",{filter:e,options:t});const r=await this._mongo._serviceProvider.deleteOne(this._database._name,this._name,e,{...await this._database._baseOptions(),...t});return t.explain?(0,o.markAsExplainOutput)(r):new u.DeleteResult(!!r.acknowledged,r.deletedCount)}async distinct(e,t,r={}){return this._emitCollectionApiCall("distinct",{field:e,query:t,options:r}),(0,o.maybeMarkAsExplainOutput)(await this._mongo._serviceProvider.distinct(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r}),r)}async estimatedDocumentCount(e={}){return this._emitCollectionApiCall("estimatedDocumentCount",{options:e}),this._mongo._serviceProvider.estimatedDocumentCount(this._database._name,this._name,{...await this._database._baseOptions(),...e})}async find(e,t,r={}){t&&(r.projection=t),this._emitCollectionApiCall("find",{query:e,options:r});const s=new u.Cursor(this._mongo,this._mongo._serviceProvider.find(this._database._name,this._name,e,{...await this._database._baseOptions(),...r}));return this._mongo._instanceState.currentCursor=s,s}async findAndModify(e){(0,o.assertArgsDefinedType)([e],[!0],"Collection.findAndModify"),(0,o.assertKeysDefined)(e,["query"]),this._emitCollectionApiCall("findAndModify",{options:{...e,update:!!e.update}});const t={...e};if(delete t.query,delete t.update,e.remove)return this.findOneAndDelete(e.query,t);const{update:r}=e;if(!r)throw new l.MongoshInvalidInputError("Must specify options.update or options.remove",l.CommonErrors.InvalidArgument);return Array.isArray(r)||Object.keys(r).some((e=>e.startsWith("$")))?this.findOneAndUpdate(e.query,r,t):this.findOneAndReplace(e.query,r,t)}async findOne(e={},t,r={}){return t&&(r.projection=t),this._emitCollectionApiCall("findOne",{query:e,options:r}),new u.Cursor(this._mongo,this._mongo._serviceProvider.find(this._database._name,this._name,e,{...await this._database._baseOptions(),...r})).limit(1).tryNext()}async renameCollection(e,t){(0,o.assertArgsDefinedType)([e],["string"],"Collection.renameCollection"),this._emitCollectionApiCall("renameCollection",{newName:e,dropTarget:t});try{return await this._mongo._serviceProvider.renameCollection(this._database._name,this._name,e,{...await this._database._baseOptions(),dropTarget:!!t}),{ok:1}}catch(e){if("MongoError"===(null==e?void 0:e.name))return{ok:0,errmsg:e.errmsg,code:e.code,codeName:e.codeName};throw e}}async findOneAndDelete(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.findOneAndDelete"),this._emitCollectionApiCall("findOneAndDelete",{filter:e,options:t});const r=await this._mongo._serviceProvider.findOneAndDelete(this._database._name,this._name,e,{...await this._database._baseOptions(),...t});return t.explain&&r?(0,o.markAsExplainOutput)(r):null==r?void 0:r.value}async findOneAndReplace(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.findOneAndReplace");const s=(0,o.processFindAndModifyOptions)({...await this._database._baseOptions(),...r});this._emitCollectionApiCall("findOneAndReplace",{filter:e,findOneAndReplaceOptions:s});const n=await this._mongo._serviceProvider.findOneAndReplace(this._database._name,this._name,e,t,s);return r.explain?(0,o.markAsExplainOutput)(n):n.value}async findOneAndUpdate(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.findOneAndUpdate");const s=(0,o.processFindAndModifyOptions)({...await this._database._baseOptions(),...r});this._emitCollectionApiCall("findOneAndUpdate",{filter:e,findOneAndUpdateOptions:s});const n=await this._mongo._serviceProvider.findOneAndUpdate(this._database._name,this._name,e,t,s);return r.explain?(0,o.markAsExplainOutput)(n):n.value}async insert(e,t={}){await this._instanceState.printDeprecationWarning("Collection.insert() is deprecated. Use insertOne, insertMany, or bulkWrite."),(0,o.assertArgsDefinedType)([e],[!0],"Collection.insert");const r=Array.isArray(e)?e.map((e=>({...e}))):[{...e}];this._emitCollectionApiCall("insert",{options:t});const s=await this._mongo._serviceProvider.insertMany(this._database._name,this._name,r,{...await this._database._baseOptions(),...t});return new u.InsertManyResult(!!s.acknowledged,s.insertedIds)}async insertMany(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.insertMany");const r=Array.isArray(e)?e.map((e=>({...e}))):e;this._emitCollectionApiCall("insertMany",{options:t});const s=await this._mongo._serviceProvider.insertMany(this._database._name,this._name,r,{...await this._database._baseOptions(),...t});return new u.InsertManyResult(!!s.acknowledged,s.insertedIds)}async insertOne(e,t={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.insertOne"),this._emitCollectionApiCall("insertOne",{options:t});const r=await this._mongo._serviceProvider.insertOne(this._database._name,this._name,{...e},{...await this._database._baseOptions(),...t});return new u.InsertOneResult(!!r.acknowledged,r.insertedId)}async isCapped(){var e,t;this._emitCollectionApiCall("isCapped");const r=await this._database._listCollections({name:this._name},{nameOnly:!1});if(0===r.length)throw new l.MongoshRuntimeError(`collection ${this.getFullName()} not found`);return!!(null===(t=null===(e=r[0])||void 0===e?void 0:e.options)||void 0===t?void 0:t.capped)}async remove(e,t={}){await this._instanceState.printDeprecationWarning("Collection.remove() is deprecated. Use deleteOne, deleteMany, findOneAndDelete, or bulkWrite."),(0,o.assertArgsDefinedType)([e],[!0],"Collection.remove");const r=(0,o.processRemoveOptions)(t),s=r.justOne?"deleteOne":"deleteMany";delete r.justOne,this._emitCollectionApiCall("remove",{query:e,removeOptions:r});const n=await this._mongo._serviceProvider[s](this._database._name,this._name,e,{...await this._database._baseOptions(),...r});return r.explain?(0,o.markAsExplainOutput)(n):new u.DeleteResult(!!n.acknowledged,n.deletedCount)}async replaceOne(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.replaceOne"),this._emitCollectionApiCall("replaceOne",{filter:e,options:r});const s=await this._mongo._serviceProvider.replaceOne(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r});return new u.UpdateResult(!!s.acknowledged,s.matchedCount,s.modifiedCount,s.upsertedCount,s.upsertedId)}async update(e,t,r={}){let s;return await this._instanceState.printDeprecationWarning("Collection.update() is deprecated. Use updateOne, updateMany, or bulkWrite."),(0,o.assertArgsDefinedType)([e,t],[!0,!0],"Collection.update"),this._emitCollectionApiCall("update",{filter:e,options:r}),s=r.multi?await this._mongo._serviceProvider.updateMany(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r}):await this._mongo._serviceProvider.updateOne(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r}),r.explain?(0,o.markAsExplainOutput)(s):new u.UpdateResult(!!s.acknowledged,s.matchedCount,s.modifiedCount,s.upsertedCount,s.upsertedId)}async updateMany(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.updateMany"),this._emitCollectionApiCall("updateMany",{filter:e,options:r});const s=await this._mongo._serviceProvider.updateMany(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r});return r.explain?(0,o.markAsExplainOutput)(s):new u.UpdateResult(!!s.acknowledged,s.matchedCount,s.modifiedCount,s.upsertedCount,s.upsertedId)}async updateOne(e,t,r={}){(0,o.assertArgsDefinedType)([e],[!0],"Collection.updateOne"),this._emitCollectionApiCall("updateOne",{filter:e,options:r});const s=await this._mongo._serviceProvider.updateOne(this._database._name,this._name,e,t,{...await this._database._baseOptions(),...r});return r.explain?(0,o.markAsExplainOutput)(s):new u.UpdateResult(!!s.acknowledged,s.matchedCount,s.modifiedCount,s.upsertedCount,s.upsertedId)}async compactStructuredEncryptionData(){if(!this._mongo._fleOptions)throw new l.MongoshInvalidInputError('The "compactStructuredEncryptionData" command requires Mongo instance configured with auto encryption.',l.CommonErrors.InvalidArgument);return this._emitCollectionApiCall("compactStructuredEncryptionData"),await this._database._runCommand({compactStructuredEncryptionData:this._name})}async convertToCapped(e){return this._emitCollectionApiCall("convertToCapped",{size:e}),await this._database._runCommand({convertToCapped:this._name,size:e})}async _createIndexes(e,t={},r){if((0,o.assertArgsDefinedType)([e],[!0],"Collection.createIndexes"),"object"!=typeof t||Array.isArray(t))throw new l.MongoshInvalidInputError('The "options" argument must be an object.',l.CommonErrors.InvalidArgument);const s=e.map((e=>({...t,key:e}))),n={...await this._database._baseOptions(),...t};return void 0!==r&&(n.commitQuorum=r),await this._mongo._serviceProvider.createIndexes(this._database._name,this._name,s,n)}async createIndexes(e,t={},r){const s=e.map((e=>({...t,key:e})));return this._emitCollectionApiCall("createIndexes",{specs:s}),this._createIndexes(e,t,r)}async createIndex(e,t={},r){if((0,o.assertArgsDefinedType)([e],[!0],"Collection.createIndex"),"object"!=typeof t||Array.isArray(t))throw new l.MongoshInvalidInputError('The "options" argument must be an object.',l.CommonErrors.InvalidArgument);this._emitCollectionApiCall("createIndex",{keys:e,options:t});const s=await this._createIndexes([e],t,r);if(!Array.isArray(s)||1!==s.length)throw new l.MongoshInternalError(`Expected createIndexes() to return array of length 1, saw ${s.toString()}`);return s[0]}async ensureIndex(e,t={},r){return this._emitCollectionApiCall("ensureIndex",{keys:e,options:t}),await this._createIndexes([e],t,r)}async getIndexes(){return this._emitCollectionApiCall("getIndexes"),await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())}async getIndexSpecs(){return this._emitCollectionApiCall("getIndexSpecs"),await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())}async getIndices(){return this._emitCollectionApiCall("getIndices"),await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())}async getIndexKeys(){return this._emitCollectionApiCall("getIndexKeys"),(await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())).map((e=>e.key))}async dropIndexes(e="*"){this._emitCollectionApiCall("dropIndexes",{indexes:e});try{return await this._database._runCommand({dropIndexes:this._name,index:e})}catch(t){if(("IndexNotFound"===(null==t?void 0:t.codeName)||void 0===(null==t?void 0:t.codeName))&&("invalid index name spec"===(null==t?void 0:t.errmsg)||void 0===(null==t?void 0:t.errmsg))&&Array.isArray(e)&&e.length>0&&/^4\.0\./.exec(await this._database.version())){const t=await Promise.all(e.map((async e=>await this.dropIndexes(e))));return t.find((e=>!e.ok))||t.sort(((e,t)=>t.nIndexesWas-e.nIndexesWas))[0]}if("IndexNotFound"===(null==t?void 0:t.codeName))return{ok:t.ok,errmsg:t.errmsg,code:t.code,codeName:t.codeName};throw t}}async dropIndex(e){if((0,o.assertArgsDefinedType)([e],[!0],"Collection.dropIndex"),this._emitCollectionApiCall("dropIndex",{index:e}),"*"===e)throw new l.MongoshInvalidInputError("To drop indexes in the collection using '*', use db.collection.dropIndexes().",l.CommonErrors.InvalidArgument);if(Array.isArray(e))throw new l.MongoshInvalidInputError("The index to drop must be either the index name or the index specification document.",l.CommonErrors.InvalidArgument);return this.dropIndexes(e)}async _getSingleStorageStatValue(e){const t=await this.aggregate([{$collStats:{storageStats:{}}},{$group:{_id:null,value:{$sum:`$storageStats.${e}`}}}]),[{value:r}]=await t.toArray();return r}async totalIndexSize(...e){if(this._emitCollectionApiCall("totalIndexSize"),e.length)throw new l.MongoshInvalidInputError('"totalIndexSize" takes no argument. Use db.collection.stats to get detailed information.',l.CommonErrors.InvalidArgument);return this._getSingleStorageStatValue("totalIndexSize")}async reIndex(){return this._emitCollectionApiCall("reIndex"),await this._database._runCommand({reIndex:this._name})}getDB(){return this._emitCollectionApiCall("getDB"),this._database}getMongo(){return this._emitCollectionApiCall("getMongo"),this._mongo}async dataSize(){return this._emitCollectionApiCall("dataSize"),this._getSingleStorageStatValue("size")}async storageSize(){return this._emitCollectionApiCall("storageSize"),this._getSingleStorageStatValue("storageSize")}async totalSize(){return this._emitCollectionApiCall("totalSize"),this._getSingleStorageStatValue("totalSize")}async drop(e={}){var t,r,s;this._emitCollectionApiCall("drop");let n={};const i=null===(t=this._mongo._fleOptions)||void 0===t?void 0:t.encryptedFieldsMap;if(!(null==i?void 0:i[`${this._database._name}.${this._name}`])&&!e.encryptedFields)try{const e=await this._mongo._serviceProvider.listCollections(this._database._name,{name:this._name},await this._database._baseOptions()),t=null===(s=null===(r=null==e?void 0:e[0])||void 0===r?void 0:r.options)||void 0===s?void 0:s.encryptedFields;t&&(n={encryptedFields:t})}catch(e){}try{return await this._mongo._serviceProvider.dropCollection(this._database._name,this._name,{...await this._database._baseOptions(),...e,...n})}catch(e){if("NamespaceNotFound"===(null==e?void 0:e.codeName))return this._mongo._instanceState.messageBus.emit("mongosh:warn",{method:"drop",class:"Collection",message:`Namespace not found: ${this._name}`}),!1;throw e}}async exists(){return this._emitCollectionApiCall("exists"),(await this._mongo._serviceProvider.listCollections(this._database._name,{name:this._name},await this._database._baseOptions()))[0]||null}getFullName(){return this._emitCollectionApiCall("getFullName"),`${this._database._name}.${this._name}`}getName(){return this._emitCollectionApiCall("getName"),`${this._name}`}async runCommand(e,t){if((0,o.assertArgsDefinedType)([e],[["string","object"]],"Collection.runCommand"),t){if("string"!=typeof e)throw new l.MongoshInvalidInputError("Collection.runCommand takes a command string as its first arugment",l.CommonErrors.InvalidArgument);if(e in t)throw new l.MongoshInvalidInputError('The "commandName" argument cannot be passed as an option to "runCommand".',l.CommonErrors.InvalidArgument)}const r=new RegExp(p.HIDDEN_COMMANDS);"string"!=typeof e||r.test(e)||this._emitCollectionApiCall("runCommand",{commandName:e});const s="string"==typeof e?{[e]:this._name,...t}:e;return await this._database._runCommand(s)}explain(e="queryPlanner"){return e=(0,o.validateExplainableVerbosity)(e),this._emitCollectionApiCall("explain",{verbosity:e}),new u.Explainable(this._mongo,this,e)}async _getLegacyCollStats(e){const t=await this._database._runReadCommand({collStats:this._name,scale:e||1});if(!t)throw new l.MongoshRuntimeError(`Error running collStats command on ${this.getFullName()}`,l.CommonErrors.CommandFailed);return t}async _aggregateAndScaleCollStats(e,t){var r;const s={ok:1},n={},i={},a={},u={};let l,c=0,p=0,h=0,d=0;for(const f of e){const e=f.storageStats,m=e.count,y=void 0!==m?m:0;for(const t of Object.keys(e))if(!["ns","ok","lastExtentSize","paddingFactor"].includes(t))if(["userFlags","capped","max","paddingFactorNote","indexDetails","wiredTiger"].includes(t))null!==(r=s[t])&&void 0!==r||(s[t]=e[t]);else if("timeseries"===t){const r=e[t];for(const[e,t]of Object.entries(r))"string"==typeof t?l||(l=t):"avgBucketSize"===e?d+=(0,o.coerceToJSNumber)(r.bucketCount)*(0,o.coerceToJSNumber)(t):(void 0===u[e]&&(u[e]=0),u[e]+=(0,o.coerceToJSNumber)(t))}else if(["count","size","storageSize","totalIndexSize","totalSize","numOrphanDocs"].includes(t))void 0===i[t]&&(i[t]=0),i[t]+=(0,o.coerceToJSNumber)(e[t]);else if("avgObjSize"===t)p+=(0,o.coerceToJSNumber)(e[t])*y;else if("maxSize"===t){const r=(0,o.coerceToJSNumber)(e[t]);c=Math.max(c,r)}else if("indexSizes"===t)for(const r of Object.keys(e[t]))void 0===a[r]&&(a[r]=0),a[r]+=(0,o.coerceToJSNumber)(e[t][r]);else if("nindexes"===t){const r=e[t];(0===h||r>h)&&(h=r)}f.shard&&(n[f.shard]=(0,o.scaleIndividualShardStatistics)(e,t))}const f=`${this._database._name}.${this._name}`,m=this._mongo.getDB("config");e[0].shard&&(s.shards=n);try{s.sharded=!!await m.getCollection("collections").findOne({_id:null!=l?l:f,dropped:{$ne:!0}})}catch(t){s.sharded=e.length>1}for(const[e,r]of Object.entries(i))["size","storageSize","totalIndexSize","totalSize"].includes(e)?s[e]=r/t:s[e]=r;l&&Object.keys(u).length>0&&(s.timeseries={...u,avgBucketSize:u.bucketCount?d/u.bucketCount:0,bucketsNs:l}),s.indexSizes={};for(const[e,r]of Object.entries(a))s.indexSizes[e]=r/t;return i.count>0?s.avgObjSize=p/i.count:s.avgObjSize=0,s.capped&&(s.maxSize=c/t),s.ns=f,s.nindexes=h,void 0!==e[0].storageStats.scaleFactor&&(s.scaleFactor=t),s.ok=1,s}async _getAggregatedCollStats(e){try{const t=await(await this.aggregate([{$collStats:{storageStats:{scale:1}}}])).toArray();if(!t||void 0===t[0])throw new l.MongoshRuntimeError(`Error running $collStats aggregation stage on ${this.getFullName()}`,l.CommonErrors.CommandFailed);return await this._aggregateAndScaleCollStats(t,e)}catch(t){if("StaleConfig"===(null==t?void 0:t.codeName)||13388===(null==t?void 0:t.code))try{return await this._getLegacyCollStats(e)}catch(e){throw t}throw t}}async stats(e={}){var t;const r="number"==typeof e?{scale:e}:e;if(r.indexDetailsKey&&r.indexDetailsName)throw new l.MongoshInvalidInputError("Cannot filter indexDetails on both indexDetailsKey and indexDetailsName",l.CommonErrors.InvalidArgument);if(r.indexDetailsKey&&"object"!=typeof r.indexDetailsKey)throw new l.MongoshInvalidInputError("Expected options.indexDetailsKey to be a document, got "+typeof r.indexDetailsKey,l.CommonErrors.InvalidArgument);if(r.indexDetailsName&&"string"!=typeof r.indexDetailsName)throw new l.MongoshInvalidInputError("Expected options.indexDetailsName to be a string, got "+typeof r.indexDetailsName,l.CommonErrors.InvalidArgument);r.scale=r.scale||1,r.indexDetails=r.indexDetails||!1,this._emitCollectionApiCall("stats",{options:r});const s=await this._getAggregatedCollStats(r.scale);let n=r.indexDetailsName;!n&&r.indexDetailsKey&&(await this._mongo._serviceProvider.getIndexes(this._database._name,this._name,await this._database._baseOptions())).forEach((e=>{JSON.stringify(e.key)===JSON.stringify(r.indexDetailsKey)&&(n=e.name)}));const i=e=>{if(e.indexDetails)if(r.indexDetails){if(n)for(const t of Object.keys(e.indexDetails))t!==n&&delete e.indexDetails[t]}else delete e.indexDetails};i(s);for(const e of Object.keys(null!==(t=s.shards)&&void 0!==t?t:{}))i(s.shards[e]);return s}async latencyStats(e={}){return this._emitCollectionApiCall("latencyStats",{options:e}),await(await this.aggregate([{$collStats:{latencyStats:e}}])).toArray()}async initializeOrderedBulkOp(){this._emitCollectionApiCall("initializeOrderedBulkOp");const e=await this._mongo._serviceProvider.initializeBulkOp(this._database._name,this._name,!0,await this._database._baseOptions());return new c.default(this,e,!0)}async initializeUnorderedBulkOp(){this._emitCollectionApiCall("initializeUnorderedBulkOp");const e=await this._mongo._serviceProvider.initializeBulkOp(this._database._name,this._name,!1,await this._database._baseOptions());return new c.default(this,e)}getPlanCache(){return this._emitCollectionApiCall("getPlanCache"),new h.default(this)}async mapReduce(e,t,r){await this._instanceState.printDeprecationWarning("Collection.mapReduce() is deprecated. Use an aggregation instead.\nSee https://docs.mongodb.com/manual/core/map-reduce for details."),(0,o.assertArgsDefinedType)([e,t,r],[!0,!0,!0],"Collection.mapReduce"),this._emitCollectionApiCall("mapReduce",{map:e,reduce:t,out:r});let s={mapReduce:this._name,map:e,reduce:t,...(0,o.processMapReduceOptions)(r)};if(s.explain){const e=s.explain;delete s.explain,s={explain:s,verbosity:e}}return await this._database._runCommand(s)}async validate(e=!1){return this._emitCollectionApiCall("validate",{options:e}),"boolean"==typeof e&&(e={full:e}),await this._database._runReadCommand({validate:this._name,...e})}async getShardVersion(){return this._emitCollectionApiCall("getShardVersion",{}),await this._database._runAdminCommand({getShardVersion:`${this._database._name}.${this._name}`})}async getShardDistribution(){this._emitCollectionApiCall("getShardDistribution",{});const e={},t=this._mongo.getDB("config"),r=`${this._database._name}.${this._name}`,s=await t.getCollection("collections").findOne({_id:r,dropped:{$ne:!0}});if(!s)throw new l.MongoshInvalidInputError(`Collection ${this._name} is not sharded`,f.ShellApiErrors.NotConnectedToShardedCluster);const n=await(await this.aggregate({$collStats:{storageStats:{}}})).toArray(),i={numChunks:0,size:0,count:0},a=[];await Promise.all(n.map((r=>(async()=>{const{shard:n}=r,u={...(0,o.buildConfigChunksCollectionMatch)(s),shard:n},[l,c]=await Promise.all([t.getCollection("shards").findOne({_id:r.shard}),t.getCollection("chunks").countDocuments(u)]),p={shardId:n,host:null!==l?l.host:null,size:r.storageStats.size,count:r.storageStats.count,numChunks:c,avgObjSize:r.storageStats.avgObjSize},h=`Shard ${p.shardId} at ${p.host}`,d=0===p.numChunks?0:p.size/p.numChunks,f=0===p.numChunks?0:Math.floor(p.count/p.numChunks);e[h]={data:(0,o.dataFormat)((0,o.coerceToJSNumber)(p.size)),docs:p.count,chunks:p.numChunks,"estimated data per chunk":(0,o.dataFormat)(d),"estimated docs per chunk":f},i.size+=(0,o.coerceToJSNumber)(p.size),i.count+=(0,o.coerceToJSNumber)(p.count),i.numChunks+=(0,o.coerceToJSNumber)(p.numChunks),a.push(p)})())));const c={data:(0,o.dataFormat)(i.size),docs:i.count,chunks:i.numChunks};for(const e of a){const t=0===i.size?0:Math.floor(e.size/i.size*1e4)/100,r=0===i.count?0:Math.floor(e.count/i.count*1e4)/100;c[`Shard ${e.shardId}`]=[`${t} % data`,`${r} % docs in cluster`,`${(0,o.dataFormat)(e.avgObjSize)} avg obj size on shard`]}return e.Totals=c,new u.CommandResult("StatsResult",e)}async watch(e=[],t={}){Array.isArray(e)||(t=e,e=[]),this._emitCollectionApiCall("watch",{pipeline:e,options:t});const r=new d.default(this._mongo._serviceProvider.watch(e,{...await this._database._baseOptions(),...t},{},this._database._name,this._name),this._name,this._mongo);return t.resumeAfter||t.startAfter||t.startAtOperationTime||await r.tryNext(),this._mongo._instanceState.currentCursor=r,r}async hideIndex(e){return this._emitCollectionApiCall("hideIndex"),(0,o.setHideIndex)(this,e,!0)}async unhideIndex(e){return this._emitCollectionApiCall("unhideIndex"),(0,o.setHideIndex)(this,e,!1)}async analyzeShardKey(e,t={}){return(0,o.assertArgsDefinedType)([e],[!0],"Collection.analyzeShardKey"),this._emitCollectionApiCall("analyzeShardKey",{key:e}),await this._database._runAdminCommand({analyzeShardKey:this.getFullName(),key:e,...t})}async configureQueryAnalyzer(e){return this._emitCollectionApiCall("configureQueryAnalyzer",e),await this._database._runAdminCommand({configureQueryAnalyzer:this.getFullName(),...e})}async checkMetadataConsistency(e={}){return this._emitCollectionApiCall("checkMetadataConsistency",{options:e}),this._database._runCursorCommand({checkMetadataConsistency:this._name})}async getSearchIndexes(e,t){return"object"==typeof e&&null!==e&&(t=e,e=void 0),this._emitCollectionApiCall("getSearchIndexes",{options:t}),await this._mongo._serviceProvider.getSearchIndexes(this._database._name,this._name,e,{...await this._database._baseOptions(),...t})}async createSearchIndex(e,t){var r;return"object"==typeof e&&null!==e&&(t=e,e=void 0),this._emitCollectionApiCall("createSearchIndex",{indexName:e,definition:t}),(await this._mongo._serviceProvider.createSearchIndexes(this._database._name,this._name,[{name:null!==(r=e)&&void 0!==r?r:"default",definition:{...t}}]))[0]}async createSearchIndexes(e){return this._emitCollectionApiCall("createSearchIndexes",{specs:e}),await this._mongo._serviceProvider.createSearchIndexes(this._database._name,this._name,e)}async dropSearchIndex(e){return this._emitCollectionApiCall("dropSearchIndex",{indexName:e}),await this._mongo._serviceProvider.dropSearchIndex(this._database._name,this._name,e)}async updateSearchIndex(e,t){return this._emitCollectionApiCall("updateSearchIndex",{indexName:e,definition:t}),await this._mongo._serviceProvider.updateSearchIndex(this._database._name,this._name,e,t)}};s([i.returnsPromise,(0,i.returnType)("AggregationCursor"),(0,i.apiVersions)([1])],m.prototype,"aggregate",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"bulkWrite",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"4.0.0"]),(0,i.apiVersions)([])],m.prototype,"count",null),s([i.returnsPromise,(0,i.serverVersions)(["4.0.3",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"countDocuments",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"deleteMany",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"deleteOne",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"distinct",null),s([i.returnsPromise,(0,i.serverVersions)(["4.0.3",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"estimatedDocumentCount",null),s([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],m.prototype,"find",null),s([i.returnsPromise,i.deprecated,(0,i.apiVersions)([1])],m.prototype,"findAndModify",null),s([i.returnsPromise,(0,i.returnType)("Document"),(0,i.apiVersions)([1])],m.prototype,"findOne",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"renameCollection",null),s([i.returnsPromise,(0,i.returnType)("Document"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"findOneAndDelete",null),s([i.returnsPromise,(0,i.returnType)("Document"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"findOneAndReplace",null),s([i.returnsPromise,(0,i.returnType)("Document"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"findOneAndUpdate",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"3.6.0"]),(0,i.apiVersions)([1])],m.prototype,"insert",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"insertMany",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"insertOne",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"isCapped",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"3.2.0"]),(0,i.apiVersions)([1])],m.prototype,"remove",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"replaceOne",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"3.2.0"]),(0,i.apiVersions)([1])],m.prototype,"update",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"updateMany",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"updateOne",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"compactStructuredEncryptionData",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"convertToCapped",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"createIndexes",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"createIndex",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"ensureIndex",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"getIndexes",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"getIndexSpecs",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"getIndices",null),s([i.returnsPromise,(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([1])],m.prototype,"getIndexKeys",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"dropIndexes",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"dropIndex",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"totalIndexSize",null),s([i.returnsPromise,i.deprecated,(0,i.topologies)([a.Topologies.Standalone]),(0,i.apiVersions)([])],m.prototype,"reIndex",null),s([(0,i.returnType)("Database")],m.prototype,"getDB",null),s([(0,i.returnType)("Mongo")],m.prototype,"getMongo",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"dataSize",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"storageSize",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"totalSize",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"drop",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"exists",null),s([i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"runCommand",null),s([(0,i.returnType)("Explainable"),(0,i.apiVersions)([1])],m.prototype,"explain",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"stats",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"latencyStats",null),s([i.returnsPromise,(0,i.returnType)("Bulk"),(0,i.apiVersions)([1])],m.prototype,"initializeOrderedBulkOp",null),s([i.returnsPromise,(0,i.returnType)("Bulk"),(0,i.apiVersions)([1])],m.prototype,"initializeUnorderedBulkOp",null),s([(0,i.returnType)("PlanCache"),(0,i.apiVersions)([])],m.prototype,"getPlanCache",null),s([i.returnsPromise,i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"4.9.0"]),(0,i.apiVersions)([])],m.prototype,"mapReduce",null),s([i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"validate",null),s([i.returnsPromise,(0,i.topologies)([a.Topologies.Sharded]),(0,i.apiVersions)([])],m.prototype,"getShardVersion",null),s([i.returnsPromise,(0,i.topologies)([a.Topologies.Sharded]),(0,i.apiVersions)([])],m.prototype,"getShardDistribution",null),s([(0,i.serverVersions)(["3.1.0",a.ServerVersions.latest]),(0,i.topologies)([a.Topologies.ReplSet,a.Topologies.Sharded]),(0,i.apiVersions)([1]),i.returnsPromise],m.prototype,"watch",null),s([(0,i.serverVersions)(["4.4.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"hideIndex",null),s([(0,i.serverVersions)(["4.4.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([1])],m.prototype,"unhideIndex",null),s([(0,i.serverVersions)(["7.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.topologies)([a.Topologies.ReplSet,a.Topologies.Sharded]),(0,i.apiVersions)([])],m.prototype,"analyzeShardKey",null),s([(0,i.serverVersions)(["7.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.topologies)([a.Topologies.ReplSet,a.Topologies.Sharded]),(0,i.apiVersions)([])],m.prototype,"configureQueryAnalyzer",null),s([(0,i.serverVersions)(["7.0.0",a.ServerVersions.latest]),(0,i.topologies)([a.Topologies.Sharded]),i.returnsPromise],m.prototype,"checkMetadataConsistency",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"getSearchIndexes",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"createSearchIndex",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"createSearchIndexes",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"dropSearchIndex",null),s([(0,i.serverVersions)(["6.0.0",a.ServerVersions.latest]),i.returnsPromise,(0,i.apiVersions)([])],m.prototype,"updateSearchIndex",null),m=s([i.shellApiClassDefault,i.addSourceToResults],m),t.default=m},25075:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(1296),i=r(33335),a=r(26591),o=r(47478);let u=class extends o.AggregateOrFindCursor{constructor(e,t){super(e,t),this._tailable=!1}_addFlag(e){this._cursor.addCursorFlag(e,!0)}addOption(e){if(4===e)throw new n.MongoshUnimplementedError("the slaveOk option is not supported.",n.CommonErrors.NotImplemented);const t=a.CURSOR_FLAGS[e];if(!t)throw new n.MongoshInvalidInputError(`Unknown option flag number: ${e}.`,n.CommonErrors.InvalidArgument);return this._cursor.addCursorFlag(t,!0),this}allowDiskUse(e){return this._cursor.allowDiskUse(e),this}allowPartialResults(){return this._addFlag("partial"),this}collation(e){return this._cursor.collation(e),this}comment(e){return this._cursor.comment(e),this}async count(){return this._cursor.count()}async hasNext(){return this._tailable&&await this._instanceState.printWarning("If this is a tailable cursor with awaitData, and there are no documents in the batch, this method will will block. Use tryNext if you want to check if there are any documents without waiting."),super.hasNext()}hint(e){return this._cursor.hint(e),this}limit(e){return this._cursor.limit(e),this}max(e){return this._cursor.max(e),this}maxAwaitTimeMS(e){return this._cursor.maxAwaitTimeMS(e),this}min(e){return this._cursor.min(e),this}async next(){return this._tailable&&await this._instanceState.printWarning("If this is a tailable cursor with awaitData, and there are no documents in the batch, this method will will block. Use tryNext if you want to check if there are any documents without waiting."),super.next()}noCursorTimeout(){return this._addFlag("noCursorTimeout"),this}oplogReplay(){return this._addFlag("oplogReplay"),this}readPref(e,t,r){let s;return s=t||r?this._mongo._serviceProvider.readPreferenceFromOptions({readPreference:e,readPreferenceTags:t,hedge:r}):e,this._cursor=this._cursor.withReadPreference(s),this}returnKey(e){return this._cursor.returnKey(e),this}async size(){return this._cursor.count()}tailable(e={awaitData:!1}){return this._tailable=!0,this._addFlag("tailable"),e.awaitData&&this._addFlag("awaitData"),this}maxScan(){throw new n.MongoshDeprecatedError("`maxScan()` was removed because it was deprecated in MongoDB 4.0")}showRecordId(){return this._cursor.showRecordId(!0),this}readConcern(e){return this._cursor=this._cursor.withReadConcern({level:e}),this}};s([(0,i.returnType)("Cursor"),(0,i.serverVersions)([a.ServerVersions.earliest,"3.2.0"])],u.prototype,"addOption",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["4.4.0",a.ServerVersions.latest])],u.prototype,"allowDiskUse",null),s([(0,i.returnType)("Cursor")],u.prototype,"allowPartialResults",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.4.0",a.ServerVersions.latest])],u.prototype,"collation",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest])],u.prototype,"comment",null),s([(0,i.serverVersions)([a.ServerVersions.earliest,"4.0.0"]),i.returnsPromise,i.deprecated],u.prototype,"count",null),s([i.returnsPromise],u.prototype,"hasNext",null),s([(0,i.returnType)("Cursor")],u.prototype,"hint",null),s([(0,i.returnType)("Cursor")],u.prototype,"limit",null),s([(0,i.returnType)("Cursor")],u.prototype,"max",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest])],u.prototype,"maxAwaitTimeMS",null),s([(0,i.returnType)("Cursor")],u.prototype,"min",null),s([i.returnsPromise],u.prototype,"next",null),s([(0,i.returnType)("Cursor")],u.prototype,"noCursorTimeout",null),s([(0,i.returnType)("Cursor")],u.prototype,"oplogReplay",null),s([(0,i.returnType)("Cursor")],u.prototype,"readPref",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest])],u.prototype,"returnKey",null),s([i.returnsPromise],u.prototype,"size",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest]),(0,i.apiVersions)([])],u.prototype,"tailable",null),s([i.deprecated,(0,i.serverVersions)([a.ServerVersions.earliest,"4.0.0"])],u.prototype,"maxScan",null),s([(0,i.returnType)("Cursor"),(0,i.serverVersions)(["3.2.0",a.ServerVersions.latest])],u.prototype,"showRecordId",null),s([(0,i.returnType)("Cursor")],u.prototype,"readConcern",null),u=s([i.shellApiClassDefault],u),t.default=u},93500:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(78419)),a=r(33335),o=r(26591),u=r(75671),l=r(62294),c=r(1296),p=r(59215),h=n(r(24423)),d=r(32589);let f=class extends a.ShellApiWithMongoClass{constructor(e,t,r){super(),this._cachedCollectionNames=[],this._cachedHello=null,this._mongo=e,this._name=t;const s=Object.create(null);this._collections=s,this._session=r;const n=new Proxy(this,{get:(t,r)=>r in t?t[r]:"string"==typeof r&&!r.startsWith("_")&&(0,u.isValidCollectionName)(r)?(s[r]||(s[r]=new i.default(e,n,r)),s[r]):void 0});return n}async _baseOptions(){const e={};this._session&&(e.session=this._session._session);const t=await this._instanceState.shellApi.config.get("maxTimeMS");return"number"==typeof t&&(e.maxTimeMS=t),e}async _maybeCachedHello(){var e;return null!==(e=this._cachedHello)&&void 0!==e?e:await this.hello()}[o.asPrintable](){return this._name}_emitDatabaseApiCall(e,t={}){this._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Database",db:this._name,arguments:t})}async _runCommand(e,t={}){return this._mongo._serviceProvider.runCommandWithCheck(this._name,(0,u.adjustRunCommand)(e,this._instanceState.shellBson),{...await this._baseOptions(),...t})}async _runReadCommand(e,t={}){return this._mongo._serviceProvider.runCommandWithCheck(this._name,(0,u.adjustRunCommand)(e,this._instanceState.shellBson),{...this._mongo._getExplicitlyRequestedReadPref(),...await this._baseOptions(),...t})}async _runAdminCommand(e,t={}){return this.getSiblingDB("admin")._runCommand(e,{...await this._baseOptions(),...t})}async _runCursorCommand(e,t={}){const r=this._mongo._serviceProvider.runCursorCommand(this._name,(0,u.adjustRunCommand)(e,this._instanceState.shellBson),{...this._mongo._getExplicitlyRequestedReadPref(),...await this._baseOptions(),...t}),s=new l.RunCommandCursor(this._mongo,r);return this._mongo._instanceState.currentCursor=s,s}async _runAdminCursorCommand(e,t={}){return this.getSiblingDB("admin")._runCursorCommand(e,t)}async _listCollections(e,t){return await this._mongo._serviceProvider.listCollections(this._name,e,{...this._mongo._getExplicitlyRequestedReadPref(),...await this._baseOptions(),...t})||[]}async _getCollectionNames(e){const t=await this._listCollections({},{...e,nameOnly:!0});return this._cachedCollectionNames=t.map((e=>e.name)),this._cachedCollectionNames}async _getCollectionNamesWithTypes(e){let t=await this._listCollections({},{...e,nameOnly:!0});return t=t.sort(((e,t)=>e.name.localeCompare(t.name))),this._cachedCollectionNames=t.map((e=>e.name)),t.map(((e,r)=>({name:e.name,badge:(0,u.getBadge)(t,r)})))}async _getCollectionNamesForCompletion(){return await Promise.race([(async()=>await this._getCollectionNames({readPreference:"primaryPreferred"}))(),(async()=>(await new Promise((e=>setTimeout(e,200).unref())),this._cachedCollectionNames))()])}async _getLastErrorObj(e,t,r){const s={getlasterror:1};e&&(s.w=e),t&&(s.wtimeout=t),void 0!==r&&(s.j=r);try{return await this._mongo._serviceProvider.runCommand(this._name,s,await this._baseOptions())}catch(e){return e}}getMongo(){return this._mongo}getName(){return this._name}async getCollectionNames(){return this._emitDatabaseApiCall("getCollectionNames"),this._getCollectionNames()}async getCollectionInfos(e={},t={}){return this._emitDatabaseApiCall("getCollectionInfos",{filter:e,options:t}),await this._listCollections(e,t)}async runCommand(e,t){(0,u.assertArgsDefinedType)([e],[["string","object"]],"Database.runCommand"),"string"==typeof e&&(e={[e]:1});const r=new RegExp(p.HIDDEN_COMMANDS);return Object.keys(e).some((e=>r.test(e)))||this._emitDatabaseApiCall("runCommand",{cmd:e,options:t}),this._runCommand(e,t)}async adminCommand(e){(0,u.assertArgsDefinedType)([e],[["string","object"]],"Database.adminCommand"),"string"==typeof e&&(e={[e]:1});const t=new RegExp(p.HIDDEN_COMMANDS);return Object.keys(e).some((e=>t.test(e)))||this._emitDatabaseApiCall("adminCommand",{cmd:e}),await this._runAdminCommand(e,{})}async aggregate(e,t){(0,u.assertArgsDefinedType)([e],[!0],"Database.aggregate"),this._emitDatabaseApiCall("aggregate",{options:t,pipeline:e});const{aggOptions:r,dbOptions:s,explain:n}=(0,u.adaptAggregateOptions)(t),i=this._mongo._serviceProvider.aggregateDb(this._name,e,{...await this._baseOptions(),...r},s),a=new l.AggregationCursor(this._mongo,i);return n?await a.explain(n):((0,u.shouldRunAggregationImmediately)(e)&&await a.hasNext(),this._mongo._instanceState.currentCursor=a,a)}getSiblingDB(e){return(0,u.assertArgsDefinedType)([e],["string"],"Database.getSiblingDB"),this._emitDatabaseApiCall("getSiblingDB",{db:e}),this._session?this._session.getDatabase(e):this._mongo._getDb(e)}getCollection(e){if((0,u.assertArgsDefinedType)([e],["string"],"Database.getColl"),this._emitDatabaseApiCall("getCollection",{coll:e}),!(0,u.isValidCollectionName)(e))throw new c.MongoshInvalidInputError(`Invalid collection name: ${e}`,c.CommonErrors.InvalidArgument);const t=this._collections;return t[e]||(t[e]=new i.default(this._mongo,this,e)),t[e]}async dropDatabase(e){return await this._mongo._serviceProvider.dropDatabase(this._name,{...await this._baseOptions(),writeConcern:e})}async createUser(e,t){if((0,u.assertArgsDefinedType)([e],["object"],"Database.createUser"),(0,u.assertKeysDefined)(e,["user","roles"]),"$external"===this._name){if("pwd"in e)throw new c.MongoshInvalidInputError("Cannot set password for users on the $external database",c.CommonErrors.InvalidArgument)}else(0,u.assertKeysDefined)(e,["pwd"]);if(this._emitDatabaseApiCall("createUser",{}),e.createUser)throw new c.MongoshInvalidInputError("Cannot set createUser field in helper method",c.CommonErrors.InvalidArgument);const r=(0,u.adaptOptions)({user:"createUser",passwordDigestor:null},{},e);t&&(r.writeConcern=t);const s=(0,u.processDigestPassword)(e.user,e.passwordDigestor,r),n={createUser:r.createUser,...r,...s};return await this._runCommand(n)}async updateUser(e,t,r){if((0,u.assertArgsDefinedType)([e,t],["string","object"],"Database.updateUser"),this._emitDatabaseApiCall("updateUser",{}),t.passwordDigestor&&"server"!==t.passwordDigestor&&"client"!==t.passwordDigestor)throw new c.MongoshInvalidInputError(`Invalid field: passwordDigestor must be 'client' or 'server', got ${t.passwordDigestor}`,c.CommonErrors.InvalidArgument);const s=(0,u.adaptOptions)({passwordDigestor:null},{updateUser:e},t);r&&(s.writeConcern=r);const n=(0,u.processDigestPassword)(e,t.passwordDigestor,s),i={updateUser:s.updateUser,...s,...n};return await this._runCommand(i)}async changeUserPassword(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string","string"],"Database.changeUserPassword"),this._emitDatabaseApiCall("changeUserPassword",{});const s=(0,u.adaptOptions)({},{updateUser:e,pwd:t},{});r&&(s.writeConcern=r);const n={updateUser:s.updateUser,...s};return await this._runCommand(n)}async logout(){return this._emitDatabaseApiCall("logout",{}),this._mongo._instanceState.currentCursor=null,await this._runCommand({logout:1})}async dropUser(e,t){(0,u.assertArgsDefinedType)([e],["string"],"Database.dropUser"),this._emitDatabaseApiCall("dropUser",{});const r={dropUser:e};return t&&(r.writeConcern=t),await this._runCommand(r)}async dropAllUsers(e){this._emitDatabaseApiCall("dropAllUsers",{});const t={dropAllUsersFromDatabase:1};return e&&(t.writeConcern=e),await this._runCommand(t)}async auth(...e){let t;if(this._emitDatabaseApiCall("auth",{}),1===e.length){const{evaluationListener:r}=this._mongo._instanceState;t="string"==typeof e[0]&&r.onPrompt?{user:e[0],pwd:await r.onPrompt("Enter password","password")}:e[0]}else{if(2!==e.length)throw new c.MongoshInvalidInputError("auth expects (username), (username, password), or ({ user: username, pwd: password })",c.CommonErrors.InvalidArgument);t={user:e[0],pwd:e[1]}}if(!(t.user&&t.pwd||t.mechanism))throw new c.MongoshInvalidInputError("auth expects user document with at least 'user' and 'pwd' or 'mechanism' fields",c.CommonErrors.InvalidArgument);if("digestPassword"in t)throw new c.MongoshUnimplementedError("digestPassword is not supported for authentication.",c.CommonErrors.NotImplemented);return t.authDb=this._name,this._mongo._instanceState.currentCursor=null,await this._mongo._serviceProvider.authenticate(t)}async grantRolesToUser(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.grantRolesToUser"),this._emitDatabaseApiCall("grantRolesToUser",{});const s={grantRolesToUser:e,roles:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async revokeRolesFromUser(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.revokeRolesFromUser"),this._emitDatabaseApiCall("revokeRolesFromUser",{});const s={revokeRolesFromUser:e,roles:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async getUser(e,t={}){(0,u.assertArgsDefinedType)([e],["string"],"Database.getUser"),this._emitDatabaseApiCall("getUser",{username:e});const r=(0,u.adaptOptions)({},{usersInfo:{user:e,db:this._name}},t),s=await this._runReadCommand(r);if(void 0===s.users)throw new c.MongoshInternalError("No users were returned from the userInfo command");for(let t=0;t<s.users.length;t++)if(s.users[t].user===e)return s.users[t];return null}async getUsers(e={}){this._emitDatabaseApiCall("getUsers",{options:e});const t=(0,u.adaptOptions)({},{usersInfo:1},e);return await this._runReadCommand(t)}async createCollection(e,t={}){return(0,u.assertArgsDefinedType)([e],["string"],"Database.createCollection"),this._emitDatabaseApiCall("createCollection",{name:e,options:t}),await this._mongo._serviceProvider.createCollection(this._name,e,{...await this._baseOptions(),...t})}async createEncryptedCollection(e,t){return this._emitDatabaseApiCall("createEncryptedCollection",{name:e,options:t}),this._mongo.getClientEncryption().createEncryptedCollection(this._name,e,t)}async createView(e,t,r,s={}){(0,u.assertArgsDefinedType)([e,t,r],["string","string",!0],"Database.createView"),this._emitDatabaseApiCall("createView",{name:e,source:t,pipeline:r,options:s});const n={...await this._baseOptions(),viewOn:t,pipeline:r};return s.collation&&(n.collation=s.collation),await this._mongo._serviceProvider.createCollection(this._name,e,n)}async createRole(e,t){if((0,u.assertArgsDefinedType)([e],["object"],"Database.createRole"),(0,u.assertKeysDefined)(e,["role","privileges","roles"]),this._emitDatabaseApiCall("createRole",{}),e.createRole)throw new c.MongoshInvalidInputError("Cannot set createRole field in helper method",c.CommonErrors.InvalidArgument);const r=(0,u.adaptOptions)({role:"createRole"},{},e);t&&(r.writeConcern=t);const s={createRole:r.createRole,...r};return await this._runCommand(s)}async updateRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string","object"],"Database.updateRole"),this._emitDatabaseApiCall("updateRole",{});const s=(0,u.adaptOptions)({},{updateRole:e},t);r&&(s.writeConcern=r);const n={updateRole:s.updateRole,...s};return await this._runCommand(n)}async dropRole(e,t){(0,u.assertArgsDefinedType)([e],["string"],"Database.dropRole"),this._emitDatabaseApiCall("dropRole",{});const r={dropRole:e};return t&&(r.writeConcern=t),await this._runCommand(r)}async dropAllRoles(e){this._emitDatabaseApiCall("dropAllRoles",{});const t={dropAllRolesFromDatabase:1};return e&&(t.writeConcern=e),await this._runCommand(t)}async grantRolesToRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.grantRolesToRole"),this._emitDatabaseApiCall("grantRolesToRole",{});const s={grantRolesToRole:e,roles:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async revokeRolesFromRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.revokeRolesFromRole"),this._emitDatabaseApiCall("revokeRolesFromRole",{});const s={revokeRolesFromRole:e,roles:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async grantPrivilegesToRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.grantPrivilegesToRole"),this._emitDatabaseApiCall("grantPrivilegesToRole",{});const s={grantPrivilegesToRole:e,privileges:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async revokePrivilegesFromRole(e,t,r){(0,u.assertArgsDefinedType)([e,t],["string",!0],"Database.revokePrivilegesFromRole"),this._emitDatabaseApiCall("revokePrivilegesFromRole",{});const s={revokePrivilegesFromRole:e,privileges:t};return r&&(s.writeConcern=r),await this._runCommand(s)}async getRole(e,t={}){(0,u.assertArgsDefinedType)([e],["string"],"Database.getRole"),this._emitDatabaseApiCall("getRole",{rolename:e});const r=(0,u.adaptOptions)({},{rolesInfo:{role:e,db:this._name}},t),s=await this._runReadCommand(r);if(void 0===s.roles)throw new c.MongoshInternalError("No roles returned from rolesInfo command");for(let t=0;t<s.roles.length;t++)if(s.roles[t].role===e)return s.roles[t];return null}async getRoles(e={}){this._emitDatabaseApiCall("getRoles",{options:e});const t=(0,u.adaptOptions)({},{rolesInfo:1},e);return await this._runReadCommand(t)}async _getCurrentOperations(e){const t="boolean"==typeof e?{$all:e,$ownOps:!1}:{$all:!!e.$all,$ownOps:!!e.$ownOps},r=[{$currentOp:{allUsers:!t.$ownOps,idleConnections:t.$all,truncateOps:!1}}];if("object"==typeof e){const t={};for(const r of Object.keys(e))"$ownOps"!==r&&"$all"!==r&&"$truncateOps"!==r&&(t[r]=e[r]);r.push({$match:t})}const s=this.getSiblingDB("admin"),n={$readPreference:{mode:"primaryPreferred"}};try{const e=await s.aggregate(r,n);return await e.toArray()}catch(e){if("FailedToParse"===(null==e?void 0:e.codeName)){delete r[0].$currentOp.truncateOps;const e=await s.aggregate(r,n);return await e.toArray()}throw e}}async currentOp(e={}){return this._emitDatabaseApiCall("currentOp",{opts:e}),{inprog:await this._getCurrentOperations(e),ok:1}}async killOp(e){return this._emitDatabaseApiCall("killOp",{opId:e}),await this._runAdminCommand({killOp:1,op:e})}async shutdownServer(e={}){return this._emitDatabaseApiCall("shutdownServer",{opts:e}),await this._runAdminCommand({shutdown:1,...e})}async fsyncLock(){return this._emitDatabaseApiCall("fsyncLock",{}),await this._runAdminCommand({fsync:1,lock:!0})}async fsyncUnlock(){return this._emitDatabaseApiCall("fsyncUnlock",{}),await this._runAdminCommand({fsyncUnlock:1})}async version(){this._emitDatabaseApiCall("version",{});const e=await this._runAdminCommand({buildInfo:1});if(!e||void 0===e.version)throw new c.MongoshRuntimeError(`Error running command serverBuildInfo ${e&&e.errmsg||""}`,c.CommonErrors.CommandFailed);return e.version}async serverBits(){this._emitDatabaseApiCall("serverBits",{});const e=await this._runAdminCommand({buildInfo:1});if(!e||void 0===e.bits)throw new c.MongoshRuntimeError(`Error running command serverBuildInfo ${e&&e.errmsg||""}`,c.CommonErrors.CommandFailed);return e.bits}async isMaster(){this._emitDatabaseApiCall("isMaster",{});const e=await this._runReadCommand({isMaster:1});return e.isWritablePrimary=e.ismaster,e}async hello(){this._emitDatabaseApiCall("hello",{});try{return this._cachedHello=await this._runReadCommand({hello:1}),this._cachedHello}catch(e){if("CommandNotFound"===(null==e?void 0:e.codeName)){const e=await this.isMaster();return delete e.ismaster,this._cachedHello=e,this._cachedHello}throw e}}async serverBuildInfo(){return this._emitDatabaseApiCall("serverBuildInfo",{}),await this._runAdminCommand({buildInfo:1})}async serverStatus(e={}){return this._emitDatabaseApiCall("serverStatus",{options:e}),await this._runAdminCommand({serverStatus:1,...e})}async stats(e=1){return(0,u.assertArgsDefinedType)([e],[["number","object"]],"Database.stats"),"number"==typeof e&&(e={scale:e}),this._emitDatabaseApiCall("stats",{scale:e.scale}),await this._runReadCommand({dbStats:1,scale:1,...e})}async hostInfo(){return this._emitDatabaseApiCall("hostInfo",{}),await this._runAdminCommand({hostInfo:1})}async serverCmdLineOpts(){return this._emitDatabaseApiCall("serverCmdLineOpts",{}),await this._runAdminCommand({getCmdLineOpts:1})}async rotateCertificates(e){return this._emitDatabaseApiCall("rotateCertificates",{message:e}),await this._runAdminCommand({rotateCertificates:1,message:e})}async printCollectionStats(e=1){if("number"!=typeof e||e<1)throw new c.MongoshInvalidInputError(`scale has to be a number >=1, got ${e}`,c.CommonErrors.InvalidArgument);this._emitDatabaseApiCall("printCollectionStats",{scale:e});const t=await this.getCollectionNames(),r={};for(const s of t)try{r[s]=await this.getCollection(s).stats({scale:e})}catch(e){r[s]={ok:0,errmsg:null==e?void 0:e.message}}return new l.CommandResult("StatsResult",r)}async getProfilingStatus(){return this._emitDatabaseApiCall("getProfilingStatus",{}),await this._runReadCommand({profile:-1})}async setProfilingLevel(e,t={}){if((0,u.assertArgsDefinedType)([e],["number"],"Database.setProfilingLevel"),e<0||e>2)throw new c.MongoshInvalidInputError(`Input level ${e} is out of range [0..2]`,c.CommonErrors.InvalidArgument);return"number"==typeof t&&(t={slowms:t}),this._emitDatabaseApiCall("setProfilingLevel",{opts:t}),await this._runCommand({profile:e,...t})}async setLogLevel(e,t){(0,u.assertArgsDefinedType)([e],["number"],"Database.setLogLevel"),this._emitDatabaseApiCall("setLogLevel",{logLevel:e,component:t});let r=[];if("string"==typeof t)r=t.split(".");else if(void 0!==t)throw new c.MongoshInvalidInputError("setLogLevel component must be a string: got "+typeof t,c.CommonErrors.InvalidArgument);let s={verbosity:e};for(;r.length>0;)s={[r.pop()]:s};const n={setParameter:1,logComponentVerbosity:s};return await this._runAdminCommand(n)}async getLogComponents(){this._emitDatabaseApiCall("getLogComponents",{});const e=await this._runAdminCommand({getParameter:1,logComponentVerbosity:1});if(!e||void 0===e.logComponentVerbosity)throw new c.MongoshRuntimeError(`Error running command ${e&&e.errmsg||""}`,c.CommonErrors.CommandFailed);return e.logComponentVerbosity}cloneDatabase(){throw new c.MongoshDeprecatedError("`cloneDatabase()` was removed because it was deprecated in MongoDB 4.0")}cloneCollection(){throw new c.MongoshDeprecatedError("`cloneCollection()` was removed because it was deprecated in MongoDB 4.0")}copyDatabase(){throw new c.MongoshDeprecatedError("`copyDatabase()` was removed because it was deprecated in MongoDB 4.0")}async commandHelp(e){(0,u.assertArgsDefinedType)([e],["string"],"Database.commandHelp"),this._emitDatabaseApiCall("commandHelp",{name:e});const t={};t[e]=1,t.help=!0;const r=await this._runCommand(t);if(!r||void 0===r.help)throw new c.MongoshRuntimeError(`Error running command commandHelp ${r&&r.errmsg||""}`,c.CommonErrors.CommandFailed);return r.help}async listCommands(){this._emitDatabaseApiCall("listCommands",{});const e=await this._runReadCommand({listCommands:1});if(!e||void 0===e.commands)throw new c.MongoshRuntimeError(`Error running command listCommands ${e&&e.errmsg||""}`,c.CommonErrors.CommandFailed);for(const t of Object.values(e.commands))"slaveOk"in t&&(t.secondaryOk=t.slaveOk,delete t.slaveOk),"slaveOverrideOk"in t&&(t.secondaryOverrideOk=t.slaveOverrideOk,delete t.slaveOverrideOk);return new l.CommandResult("ListCommandsResult",e.commands)}async getLastErrorObj(e,t,r){return await this._instanceState.printDeprecationWarning("Database.getLastErrorObj() is deprecated and will be removed in the future."),this._emitDatabaseApiCall("getLastErrorObj",{w:e,wTimeout:t,j:r}),await this._getLastErrorObj(e,t,r)}async getLastError(e,t){return await this._instanceState.printDeprecationWarning("Database.getLastError() is deprecated and will be removed in the future."),this._emitDatabaseApiCall("getLastError",{w:e,wTimeout:t}),(await this._getLastErrorObj(e,t)).err||null}async printShardingStatus(e=!1){this._emitDatabaseApiCall("printShardingStatus",{verbose:e});const t=await(0,u.getPrintableShardStatus)(await(0,u.getConfigDB)(this),e);return new l.CommandResult("StatsResult",t)}async printSecondaryReplicationInfo(){let e=null;const t=this.getSiblingDB("local");if(0!==await t.getCollection("system.replset").countDocuments({})){const t=await this._runAdminCommand({replSetGetStatus:1});let r=null;for(const e of t.members)if(1===e.state){r=e;break}if(r)e=r.optimeDate;else{e=new Date(0,0);for(const r of t.members)r.optimeDate>e&&(e=r.optimeDate)}const s={};for(const n of t.members){const t={};if(null==n)throw new c.MongoshRuntimeError("Member returned from command replSetGetStatus is null",c.CommonErrors.CommandFailed);if(1!==n.state&&7!==n.state){if(n.optime&&0!==n.health){if(null==e)throw new c.MongoshRuntimeError("getReplLag startOptimeDate is null",c.CommonErrors.CommandFailed);e&&(t.syncedTo=n.optimeDate.toString());const s=(n.optimeDate-e)/1e3,i=Math.round(s/36)/100;let a="";a=r?"primary ":"freshest member (no primary available at the moment)",t.replLag=`${Math.round(s)} secs (${i} hrs) behind the ${a}`}else t["no replication info, yet. State"]=n.stateStr;s[`source: ${n.name}`]=t}}return new l.CommandResult("StatsResult",s)}throw new c.MongoshInvalidInputError("local.system.replset is empty. Are you connected to a replica set?",d.ShellApiErrors.NotConnectedToReplicaSet)}async getReplicationInfo(){const e=this.getSiblingDB("local"),t={},r="oplog.rs";if(!(await e.getCollectionNames()).includes(r))throw new c.MongoshInvalidInputError("Replication not detected. Are you connected to a replset?",d.ShellApiErrors.NotConnectedToReplicaSet);const s=e.getCollection(r),[n,i,a]=await Promise.all([s.stats(),(async()=>(await s.find()).sort({$natural:1}).limit(1).tryNext())(),(async()=>(await s.find()).sort({$natural:-1}).limit(1).tryNext())()]);if(!(null==n?void 0:n.maxSize))throw new c.MongoshRuntimeError(`Could not get stats for local.${r} collection. collstats returned ${JSON.stringify(n)}`,c.CommonErrors.CommandFailed);if(t.configuredLogSizeMB=n.maxSize/1048576,t.logSizeMB=Math.max(n.maxSize,n.size)/1048576,t.usedMB=n.size/1048576,t.usedMB=Math.ceil(100*t.usedMB)/100,null===i||null===a)throw new c.MongoshRuntimeError("objects not found in local.oplog.$main -- is this a new and empty db instance?",c.CommonErrors.CommandFailed);let o=i.ts,l=a.ts;return o&&l?(o=(0,u.tsToSeconds)(o),l=(0,u.tsToSeconds)(l),t.timeDiff=l-o,t.timeDiffHours=Math.round(t.timeDiff/36)/100,t.tFirst=new Date(1e3*o).toString(),t.tLast=new Date(1e3*l).toString(),t.now=Date()):t.errmsg="ts element not found in oplog objects",t}async printReplicationInfo(){const e={};let t;try{t=await this.getReplicationInfo()}catch(e){const t=await this.hello();if(t.arbiterOnly)return new l.CommandResult("StatsResult",{message:"cannot provide replication status from an arbiter"});if(!t.isWritablePrimary){const e=await this.printSecondaryReplicationInfo();return new l.CommandResult("StatsResult",{message:"this is a secondary, printing secondary replication info.",...e.value})}throw e}return e["actual oplog size"]=`${t.logSizeMB} MB`,e["configured oplog size"]=`${t.configuredLogSizeMB} MB`,e["log length start to end"]=`${t.timeDiff} secs (${t.timeDiffHours} hrs)`,e["oplog first event time"]=t.tFirst,e["oplog last event time"]=t.tLast,e.now=t.now,new l.CommandResult("StatsResult",e)}printSlaveReplicationInfo(){throw new c.MongoshDeprecatedError("Method deprecated, use db.printSecondaryReplicationInfo instead")}async setSecondaryOk(){await this._mongo.setSecondaryOk()}async watch(e=[],t={}){Array.isArray(e)||(t=e,e=[]),this._emitDatabaseApiCall("watch",{pipeline:e,options:t});const r=new h.default(this._mongo._serviceProvider.watch(e,{...await this._baseOptions(),...t},{},this._name),this._name,this._mongo);return t.resumeAfter||t.startAfter||t.startAtOperationTime||await r.tryNext(),this._mongo._instanceState.currentCursor=r,r}async sql(e,t){var r;this._emitDatabaseApiCall("sql",{sqlString:e,options:t}),await this._instanceState.shellApi.print("Note: this is an experimental feature that may be subject to change in future releases.");const s=await this.aggregate([{$sql:{statement:e,format:"jdbc",dialect:"mongosql",formatVersion:1}}],t);try{await s.hasNext()}catch(e){if(40324===(null===(r=e.code)||void 0===r?void 0:r.valueOf()))throw new c.MongoshRuntimeError("db.sql currently only works when connected to a Data Lake",c.CommonErrors.CommandFailed);throw e}return s}async checkMetadataConsistency(e={}){return this._emitDatabaseApiCall("checkMetadataConsistency",{options:e}),this._runCursorCommand({checkMetadataConsistency:1})}};s([(0,a.returnType)("Mongo")],f.prototype,"getMongo",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"getCollectionNames",null),s([a.returnsPromise,(0,a.serverVersions)(["3.0.0",o.ServerVersions.latest]),(0,a.apiVersions)([1])],f.prototype,"getCollectionInfos",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"runCommand",null),s([a.returnsPromise,(0,a.serverVersions)(["3.4.0",o.ServerVersions.latest]),(0,a.apiVersions)([1])],f.prototype,"adminCommand",null),s([a.returnsPromise,(0,a.returnType)("AggregationCursor"),(0,a.apiVersions)([1])],f.prototype,"aggregate",null),s([(0,a.returnType)("Database")],f.prototype,"getSiblingDB",null),s([(0,a.returnType)("Collection")],f.prototype,"getCollection",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"dropDatabase",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"createUser",null),s([a.returnsPromise],f.prototype,"updateUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"changeUserPassword",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"logout",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"dropUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"dropAllUsers",null),s([a.returnsPromise],f.prototype,"auth",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"grantRolesToUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"revokeRolesFromUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getUser",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getUsers",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"createCollection",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"createEncryptedCollection",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"createView",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"createRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"updateRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"dropRole",null),s([a.returnsPromise],f.prototype,"dropAllRoles",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"grantRolesToRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"revokeRolesFromRole",null),s([a.returnsPromise],f.prototype,"grantPrivilegesToRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"revokePrivilegesFromRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getRole",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getRoles",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"currentOp",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"killOp",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"shutdownServer",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"fsyncLock",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"fsyncUnlock",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"version",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"serverBits",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"isMaster",null),s([a.returnsPromise,(0,a.apiVersions)([1]),(0,a.serverVersions)(["5.0.0",o.ServerVersions.latest])],f.prototype,"hello",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"serverBuildInfo",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"serverStatus",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"stats",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"hostInfo",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"serverCmdLineOpts",null),s([a.returnsPromise,(0,a.serverVersions)(["5.0.0",o.ServerVersions.latest]),(0,a.apiVersions)([])],f.prototype,"rotateCertificates",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"printCollectionStats",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getProfilingStatus",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"setProfilingLevel",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"setLogLevel",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getLogComponents",null),s([a.deprecated],f.prototype,"cloneDatabase",null),s([a.deprecated],f.prototype,"cloneCollection",null),s([a.deprecated],f.prototype,"copyDatabase",null),s([a.returnsPromise,(0,a.apiVersions)([1])],f.prototype,"commandHelp",null),s([a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"listCommands",null),s([(0,a.serverVersions)([o.ServerVersions.earliest,"5.1.0"]),a.deprecated,a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getLastErrorObj",null),s([a.deprecated,a.returnsPromise,(0,a.apiVersions)([])],f.prototype,"getLastError",null),s([a.returnsPromise,(0,a.topologies)([o.Topologies.Sharded]),(0,a.apiVersions)([1])],f.prototype,"printShardingStatus",null),s([a.returnsPromise,(0,a.topologies)([o.Topologies.ReplSet]),(0,a.apiVersions)([])],f.prototype,"printSecondaryReplicationInfo",null),s([a.returnsPromise,(0,a.topologies)([o.Topologies.ReplSet]),(0,a.apiVersions)([])],f.prototype,"getReplicationInfo",null),s([a.returnsPromise,(0,a.apiVersions)([]),(0,a.topologies)([o.Topologies.ReplSet])],f.prototype,"printReplicationInfo",null),s([a.deprecated],f.prototype,"printSlaveReplicationInfo",null),s([a.deprecated,a.returnsPromise],f.prototype,"setSecondaryOk",null),s([(0,a.serverVersions)(["3.1.0",o.ServerVersions.latest]),(0,a.topologies)([o.Topologies.ReplSet,o.Topologies.Sharded]),(0,a.apiVersions)([1]),a.returnsPromise],f.prototype,"watch",null),s([(0,a.serverVersions)(["4.4.0",o.ServerVersions.latest]),a.returnsPromise,(0,a.returnType)("AggregationCursor")],f.prototype,"sql",null),s([(0,a.serverVersions)(["7.0.0",o.ServerVersions.latest]),(0,a.topologies)([o.Topologies.Sharded]),a.returnsPromise],f.prototype,"checkMetadataConsistency",null),f=s([a.shellApiClassDefault],f),t.default=f},65505:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.DBQuery=void 0;const n=r(33335);let i=t.DBQuery=class extends n.ShellApiClass{constructor(e){super(),this._instanceState=e}get shellBatchSize(){return this._instanceState.displayBatchSizeFromDBQuery}set shellBatchSize(e){this._instanceState.printDeprecationWarning('DBQuery.shellBatchSize is deprecated, please use config.set("displayBatchSize") instead'),this._instanceState.displayBatchSizeFromDBQuery=e}};t.DBQuery=i=s([n.shellApiClassDefault,n.classDeprecated],i)},33335:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.addSourceToResults=t.classPlatforms=t.platforms=t.classDeprecated=t.returnType=t.shellCommandCompleter=t.directShellCommand=t.returnsPromise=t.nonAsyncFunctionsReturningPromises=t.topologies=t.deprecated=t.apiVersions=t.serverVersions=t.shellApiClassNoHelp=t.shellApiClassDefault=t.toIgnore=t.signatures=t.toShellResult=t.getShellApiType=t.ShellApiValueClass=t.ShellApiWithMongoClass=t.ShellApiClass=void 0;const n=r(1296),i=r(26591),a=s(r(91283)),o=r(75671),u=Symbol.for("@@mongosh.addSourceToResults"),l=Symbol.for("@@mongosh.resultSource");class c{get[i.shellApiType](){throw new n.MongoshInternalError("Shell API Type did not use decorators")}set[i.shellApiType](e){(0,o.addHiddenDataProperty)(this,i.shellApiType,e)}[i.asPrintable](){return Array.isArray(this)?[...this]:{...this}}}function p(e){var t;return null!==(t=null==e?void 0:e[i.shellApiType])&&void 0!==t?t:null}function h(e){function t(t,r){if("object"==typeof t&&null!==t){const s={namespace:r[i.namespaceInfo]()};(0,o.addHiddenDataProperty)(t,l,s),void 0===t[i.shellApiType]&&e.returnType&&(0,o.addHiddenDataProperty)(t,i.shellApiType,e.returnType)}return t}const r=e.returnsPromise?E((async function(...r){return t(await e.call(this,...r),this)})):function(...r){return t(e.call(this,...r),this)};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)),r}function d(e,t){const r=e.returnsPromise?E((async function(...r){var s,n;const i=m(this);f(i,t,e,!0);const a=null==i?void 0:i.interrupted;null==a||a.checkpoint();const o=null==a?void 0:a.asPromise();let u;try{i&&i.apiCallDepth++,u=await Promise.race([null!==(s=null==o?void 0:o.promise)&&void 0!==s?s:new Promise((()=>{})),e.call(this,...r)])}catch(e){throw null!==(n=null==i?void 0:i.transformError(e))&&void 0!==n?n:e}finally{i&&i.apiCallDepth--,o&&o.destroy()}return null==a||a.checkpoint(),u})):function(...r){var s;const n=m(this);f(n,t,e,!1);const i=null==n?void 0:n.interrupted;let a;null==i||i.checkpoint();try{n&&n.apiCallDepth++,a=e.call(this,...r)}catch(e){throw null!==(s=null==n?void 0:n.transformError(e))&&void 0!==s?s:e}finally{n&&n.apiCallDepth--}return null==i||i.checkpoint(),a};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)),r}function f(e,t,r,s){var n;null===(n=null==e?void 0:e.emitApiCall)||void 0===n||n.call(e,{method:r.name,class:t,deprecated:!!r.deprecated,isAsync:s})}function m(e){if(!e[i.shellApiType])throw new n.MongoshInternalError("getShellInstanceState can only be called for functions from shell API classes");return e._instanceState}t.ShellApiClass=c,t.ShellApiWithMongoClass=class extends c{get _instanceState(){var e;return null===(e=this._mongo)||void 0===e?void 0:e._instanceState}},t.ShellApiValueClass=class extends c{get _mongo(){throw new n.MongoshInternalError("Not supported on this value class")}get _instanceState(){throw new n.MongoshInternalError("Not supported on this value class")}},t.getShellApiType=p,t.toShellResult=async function e(t){var r;if("object"!=typeof t&&"function"!=typeof t||null===t)return{type:null,rawValue:t,printable:t};if("then"in t&&"function"==typeof t.then)return e(await t);const s="function"==typeof t[i.asPrintable]?await t[i.asPrintable]():t,n=null!==(r=t[l])&&void 0!==r?r:void 0;return{type:p(t),rawValue:t,printable:s,source:n}};const y="@@@mdb.signatures@@@";r.g[y]||(r.g[y]={});const g=r.g[y];function b(e,r){const s=e.name,n=`shell-api.classes.${s}.help`,l={help:`${n}.description`,docs:`${n}.link`,attr:[]},p={type:s,returnsPromise:e.prototype.returnsPromise||!1,deprecated:e.prototype.deprecated||!1,attributes:{}},f=Object.getOwnPropertyNames(e.prototype);for(const r of f){const o=Object.getOwnPropertyDescriptor(e.prototype,r);if(!(null==o?void 0:o.value)||"function"!=typeof o.value||t.toIgnore.includes(r)||r.startsWith("_"))continue;let c=o.value;e[u]&&(c=h(c)),c=d(c,s),c.serverVersions=c.serverVersions||i.ALL_SERVER_VERSIONS,c.apiVersions=c.apiVersions||i.ALL_API_VERSIONS,c.topologies=c.topologies||i.ALL_TOPOLOGIES,c.returnType=c.returnType||{type:"unknown",attributes:{}},c.returnsPromise=c.returnsPromise||!1,c.deprecated=c.deprecated||!1,c.platforms=c.platforms||i.ALL_PLATFORMS,c.isDirectShellCommand=c.isDirectShellCommand||!1,c.acceptsRawInput=c.acceptsRawInput||!1,c.shellCommandCompleter=c.shellCommandCompleter||void 0,p.attributes[r]={type:"function",serverVersions:c.serverVersions,apiVersions:c.apiVersions,topologies:c.topologies,returnType:"this"===c.returnType?s:c.returnType,returnsPromise:c.returnsPromise,deprecated:c.deprecated,platforms:c.platforms,isDirectShellCommand:c.isDirectShellCommand,acceptsRawInput:c.acceptsRawInput,shellCommandCompleter:c.shellCommandCompleter};const f=`${n}.attributes.${r}`,m={help:`${f}.example`,docs:`${f}.link`,attr:[{description:`${f}.description`}]},y=new a.default(m);c.help=()=>y,Object.setPrototypeOf(c.help,y),l.attr.push({name:r,description:`${f}.description`}),Object.defineProperty(e.prototype,r,{...o,value:c})}let m=e.prototype;for(;null!==(m=Object.getPrototypeOf(m))&&"ShellApiClass"!==m.constructor.name&&m.constructor!==Array;){const e=`shell-api.classes.${m.constructor.name}.help`;for(const r of Object.getOwnPropertyNames(m)){const n=Object.getOwnPropertyDescriptor(m,r),i=(null==n?void 0:n.value)&&"function"==typeof n.value;if(f.includes(r)||!i||t.toIgnore.includes(r)||r.startsWith("_"))continue;const a=n.value;p.attributes[r]={type:"function",serverVersions:a.serverVersions,apiVersions:a.apiVersions,topologies:a.topologies,returnType:"this"===a.returnType?s:a.returnType,returnsPromise:a.returnsPromise,deprecated:a.deprecated,platforms:a.platforms,isDirectShellCommand:a.isDirectShellCommand,acceptsRawInput:a.acceptsRawInput,shellCommandCompleter:a.shellCommandCompleter};const o=`${e}.attributes.${r}`;l.attr.push({name:r,description:`${o}.description`})}}const y=new a.default(l);e.prototype.help=()=>y,Object.setPrototypeOf(e.prototype.help,y),e.prototype[i.asPrintable]=e.prototype[i.asPrintable]||c.prototype[i.asPrintable],(0,o.addHiddenDataProperty)(e.prototype,i.shellApiType,s),r&&(g[s]=p)}function E(e){function t(...t){const r=e.call(this,...t);return(0,o.addHiddenDataProperty)(r,Symbol.for("@@mongosh.syntheticPromise"),!0)}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),t}t.signatures=g,g.Document={type:"Document",attributes:{}},t.toIgnore=["constructor","help","toJSON"],t.shellApiClassDefault=function(e){b(e,!0)},t.shellApiClassNoHelp=function(e){b(e,!1)},t.serverVersions=function(e){return function(t,r,s){s.value.serverVersions=e}},t.apiVersions=function(e){return function(t,r,s){0===e.length?e=[0,0]:1===e.length&&(e=[e[0],1/0]),s.value.apiVersions=e}},t.deprecated=function(e,t,r){r.value.deprecated=!0},t.topologies=function(e){return function(t,r,s){s.value.topologies=e}},t.nonAsyncFunctionsReturningPromises=[],t.returnsPromise=function(e,r,s){const n=s.value;async function i(...e){try{return await n.call(this,...e)}finally{"function"==typeof setTimeout&&"function"==typeof setImmediate&&await new Promise(setImmediate)}}n.returnsPromise=!0,Object.setPrototypeOf(i,Object.getPrototypeOf(n)),Object.defineProperties(i,Object.getOwnPropertyDescriptors(n)),s.value=E(i),"AsyncFunction"!==n.constructor.name&&t.nonAsyncFunctionsReturningPromises.push(n.name)},t.directShellCommand=function(e,t,r){r.value.isDirectShellCommand=!0},t.shellCommandCompleter=function(e){return function(t,r,s){s.value.shellCommandCompleter=e}},t.returnType=function(e){return function(t,r,s){s.value.returnType=e}},t.classDeprecated=function(e){e.prototype.deprecated=!0},t.platforms=function(e){return function(t,r,s){s.value.platforms=e}},t.classPlatforms=function(e){return function(t){t.prototype.platforms=e}},t.addSourceToResults=function(e){e[u]=!0}},26591:(e,t)=>{"use strict";var r,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ADMIN_DB=t.namespaceInfo=t.asPrintable=t.shellApiType=t.CURSOR_FLAGS=t.ALL_API_VERSIONS=t.ALL_PLATFORMS=t.ALL_TOPOLOGIES=t.ALL_SERVER_VERSIONS=t.Topologies=t.ServerVersions=void 0,function(e){e.latest="999.999.999",e.earliest="0.0.0"}(r||(t.ServerVersions=r={})),function(e){e.ReplSet="ReplSet",e.Standalone="Standalone",e.Sharded="Sharded",e.LoadBalanced="LoadBalanced"}(s||(t.Topologies=s={})),t.ALL_SERVER_VERSIONS=[r.earliest,r.latest],t.ALL_TOPOLOGIES=[s.ReplSet,s.Sharded,s.LoadBalanced,s.Standalone],t.ALL_PLATFORMS=["Compass","Browser","CLI"],t.ALL_API_VERSIONS=[0,1/0],t.CURSOR_FLAGS={2:"tailable",4:"SlaveOk",8:"oplogReplay",16:"noTimeout",32:"awaitData",64:"exhaust",128:"partial"},t.shellApiType=Symbol.for("@@mongosh.shellApiType"),t.asPrintable=Symbol.for("@@mongosh.asPrintable"),t.namespaceInfo=Symbol.for("@@mongosh.namespaceInfo"),t.ADMIN_DB="admin"},32589:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ShellApiErrors=t.blockedByDriverMetadata=void 0,t.blockedByDriverMetadata=function(e){return{driverCaused:!0,api:e}},function(e){e.NotConnectedToShardedCluster="SHAPI-10001",e.NotConnectedToReplicaSet="SHAPI-10002",e.NotConnectedToMongos="SHAPI-10003",e.NotConnected="SHAPI-10004",e.NotUsingFLE="SHAPI-10005"}(r||(t.ShellApiErrors=r={}))},78332:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=n(r(25075)),o=r(26591);let u=class extends a.default{constructor(e,t,r){super(e,t._cursor),this._baseCursor=t,this._verbosity=r,this._explained=null}async[o.asPrintable](){var e;return null!==(e=this._explained)&&void 0!==e||(this._explained=await this._baseCursor.explain(this._verbosity)),this._explained}};u=s([i.shellApiClassDefault],u),t.default=u},99042:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(78332)),a=r(33335),o=r(26591),u=r(75671);let l=class extends a.ShellApiWithMongoClass{constructor(e,t,r){super(),this._mongo=e,this._collection=t,this._verbosity=r}[o.asPrintable](){return`Explainable(${this._collection.getFullName()})`}_emitExplainableApiCall(e,t={}){this._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Explainable",db:this._collection._database._name,coll:this._collection._name,arguments:t})}getCollection(){return this._emitExplainableApiCall("getCollection"),this._collection}getVerbosity(){return this._emitExplainableApiCall("getVerbosity"),this._verbosity}setVerbosity(e){e=(0,u.validateExplainableVerbosity)(e),this._emitExplainableApiCall("setVerbosity",{verbosity:e}),this._verbosity=e}async find(e,t){this._emitExplainableApiCall("find",{query:e,projection:t});const r=await this._collection.find(e,t);return new i.default(this._mongo,r,this._verbosity)}async aggregate(...e){var t;let r,s;return this._emitExplainableApiCall("aggregate",{args:e}),Array.isArray(e[0])?(s=e[0],r=null!==(t=e[1])&&void 0!==t?t:{}):(s=e,r={}),await this._collection.aggregate(s,{...r,explain:this._verbosity})}async count(e={},t={}){return this._emitExplainableApiCall("count",{query:e,options:t}),(0,u.markAsExplainOutput)(await this._collection._database._runReadCommand({explain:{count:`${this._collection._name}`,query:e,...t},verbosity:this._verbosity}))}async distinct(e,t,r={}){return this._emitExplainableApiCall("distinct",{field:e,query:t,options:r}),this._collection.distinct(e,null!=t?t:{},{...r,explain:this._verbosity})}async findAndModify(e){return this._emitExplainableApiCall("findAndModify",{options:e}),this._collection.findAndModify({...e,explain:this._verbosity})}async findOneAndDelete(e,t={}){return this._emitExplainableApiCall("findOneAndDelete",{filter:e,options:t}),this._collection.findOneAndDelete(e,{...t,explain:this._verbosity})}async findOneAndReplace(e,t,r={}){return this._emitExplainableApiCall("findOneAndReplace",{filter:e,options:r}),this._collection.findOneAndReplace(e,t,{...r,explain:this._verbosity})}async findOneAndUpdate(e,t,r={}){return this._emitExplainableApiCall("findOneAndUpdate",{filter:e,options:r}),this._collection.findOneAndUpdate(e,t,{...r,explain:this._verbosity})}async remove(e,t={}){return this._emitExplainableApiCall("remove",{query:e,options:t}),t={...(0,u.processRemoveOptions)(t),explain:this._verbosity},this._collection.remove(e,t)}async update(e,t,r={}){return this._emitExplainableApiCall("update",{filter:e,update:t,options:r}),this._collection.update(e,t,{...r,explain:this._verbosity})}async mapReduce(e,t,r){this._emitExplainableApiCall("mapReduce",{map:e,reduce:t,optionsOrOutString:r});const s={...(0,u.processMapReduceOptions)(r),explain:this._verbosity};return this._collection.mapReduce(e,t,s)}};s([(0,a.returnType)("ExplainableCursor"),(0,a.apiVersions)([1]),a.returnsPromise],l.prototype,"find",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"aggregate",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"count",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"distinct",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"findAndModify",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"findOneAndDelete",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"findOneAndReplace",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"findOneAndUpdate",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"remove",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"update",null),s([a.returnsPromise,(0,a.serverVersions)(["4.4.0",o.ServerVersions.latest]),(0,a.apiVersions)([])],l.prototype,"mapReduce",null),l=s([a.shellApiClassDefault],l),t.default=l},36944:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyVault=t.ClientEncryption=void 0;const i=r(33335),a=n(r(25075)),o=r(75671),u=r(26591),l=r(59215),c=r(1296),p=e=>!Array.isArray(e)&&"object"==typeof e&&("masterKey"in e||"keyAltNames"in e||"keyMaterial"in e);let h=t.ClientEncryption=class extends i.ShellApiWithMongoClass{constructor(e){super(),this._mongo=e;const t={...this._mongo._fleOptions};if(delete t.schemaMap,delete t.encryptedFieldsMap,!e._serviceProvider.createClientEncryption)throw new c.MongoshRuntimeError("FLE API is not available");this._libmongocrypt=e._serviceProvider.createClientEncryption(t)}[u.asPrintable](){return`ClientEncryption class for ${(0,l.redactURICredentials)(this._mongo._uri)}`}async encrypt(e,t,r){let s;return s="object"==typeof r?{keyId:e,...r}:{keyId:e,algorithm:r},(0,o.assertArgsDefinedType)([e,t,s],[!0,!0,!0],"ClientEncryption.encrypt"),await this._libmongocrypt.encrypt(t,s)}async decrypt(e){return(0,o.assertArgsDefinedType)([e],[!0],"ClientEncryption.decrypt"),await this._libmongocrypt.decrypt(e)}async encryptExpression(e,t,r){return(0,o.assertArgsDefinedType)([e,t,r],[!0,!0,!0],"ClientEncryption.encryptExpression"),await this._libmongocrypt.encryptExpression(t,{keyId:e,...r})}async createEncryptedCollection(e,t,r){if((0,o.assertArgsDefinedType)([e],["string"],"ClientEncryption.createEncryptedCollection"),(0,o.assertArgsDefinedType)([t],["string"],"ClientEncryption.createEncryptedCollection"),(0,o.assertArgsDefinedType)([r],["object"],"ClientEncryption.createEncryptedCollection"),(0,o.assertKeysDefined)(r,["provider","createCollectionOptions"]),!this._mongo._serviceProvider.createEncryptedCollection)throw new c.MongoshRuntimeError("Runtime does not support createEncryptedCollection yet");const{encryptedFields:s}=await this._mongo._serviceProvider.createEncryptedCollection(e,t,r,this._libmongocrypt);return{collection:this._mongo.getDB(e).getCollection(t),encryptedFields:s}}};s([i.returnsPromise],h.prototype,"encrypt",null),s([i.returnsPromise],h.prototype,"decrypt",null),s([i.returnsPromise],h.prototype,"encryptExpression",null),s([i.returnsPromise,(0,i.apiVersions)([1])],h.prototype,"createEncryptedCollection",null),t.ClientEncryption=h=s([i.shellApiClassDefault,(0,i.classPlatforms)(["CLI"])],h);let d=t.KeyVault=class extends i.ShellApiWithMongoClass{constructor(e){var t,r,s;super(),this._mongo=e._mongo,this._clientEncryption=e;const n=null===(r=null===(t=this._mongo)||void 0===t?void 0:t._fleOptions)||void 0===r?void 0:r.keyVaultNamespace;if(!n)throw new c.MongoshInvalidInputError("FLE options must be passed to the Mongo object");const i=null===(s=n.match(/^(?<db>[^.]+)\.(?<coll>.+)$/))||void 0===s?void 0:s.groups;if(!i)throw new c.MongoshInvalidInputError(`Invalid keyVaultNamespace '${n}'`);const{db:a,coll:o}=i;this._keyColl=this._mongo.getDB(a).getCollection(o)}async _init(){try{if((await this._keyColl.getIndexKeys()).some((e=>e.keyAltNames)))return}catch(e){}try{await this._keyColl.updateMany({keyAltNames:{$size:0}},{$unset:{keyAltNames:""},$currentDate:{updateDate:!0}}),await this._keyColl.createIndex({keyAltNames:1},{unique:!0,partialFilterExpression:{keyAltNames:{$exists:!0}}})}catch(e){await this._instanceState.printWarning(`Creating 'keyAltNames' index on '${this._keyColl.getFullName()}' failed: ${e.message}`)}}[u.asPrintable](){return`KeyVault class for ${(0,l.redactURICredentials)(this._mongo._uri)}`}async createKey(e,t,r){let s,n,i,a;if(p(t)?(s=null==t?void 0:t.masterKey,n=null==t?void 0:t.keyAltNames,i=null==t?void 0:t.keyMaterial):(e=>!Array.isArray(e)&&"object"==typeof e&&!p(e))(t)&&(s=t),r&&(n=r),(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.createKey"),"string"==typeof t){if("local"!==e||""!==t)throw new c.MongoshInvalidInputError('KeyVault.createKey does not support providing masterKey as string anymore. For AWS please use createKey("aws", { region: ..., key: ... })',c.CommonErrors.Deprecated);s=void 0}else if(Array.isArray(t)){if("local"!==e)throw new c.MongoshInvalidInputError("KeyVault.createKey requires masterKey to be given as second argument if KMS is not local",c.CommonErrors.InvalidArgument);if(n)throw new c.MongoshInvalidInputError("KeyVault.createKey was supplied with an array for the masterKey and keyAltNames - either specify keyAltNames as second argument or set undefined for masterKey",c.CommonErrors.InvalidArgument);n=t,s=void 0}return s&&(a={...null!=a?a:{},masterKey:s}),n&&(a={...null!=a?a:{},keyAltNames:n}),i&&(a={...null!=a?a:{},keyMaterial:i}),await this._clientEncryption._libmongocrypt.createDataKey(e,a)}async getKey(e){(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.getKey");const t=await this._keyColl.find({_id:e});return await t.limit(1).next()}async getKeyByAltName(e){(0,o.assertArgsDefinedType)([e],["string"],"KeyVault.getKeyByAltName");const t=await this._keyColl.find({keyAltNames:e});return await t.limit(1).next()}async getKeys(){return new a.default(this._mongo,this._clientEncryption._libmongocrypt.getKeys())}async deleteKey(e){return(0,o.assertArgsDefinedType)([e],[!0],"KeyVault.deleteKey"),await this._clientEncryption._libmongocrypt.deleteKey(e)}async addKeyAlternateName(e,t){return(0,o.assertArgsDefinedType)([e,t],[!0,"string"],"KeyVault.addKeyAlternateName"),await this._clientEncryption._libmongocrypt.addKeyAltName(e,t)}async removeKeyAlternateName(e,t){return(0,o.assertArgsDefinedType)([e,t],[!0,"string"],"KeyVault.removeKeyAlternateName"),await this._clientEncryption._libmongocrypt.removeKeyAltName(e,t)}async rewrapManyDataKey(e,t){return await this._clientEncryption._libmongocrypt.rewrapManyDataKey(e,t)}async createDataKey(...e){return await this.createKey(...e)}async removeKeyAltName(...e){return await this.removeKeyAlternateName(...e)}async addKeyAltName(...e){return await this.addKeyAlternateName(...e)}};s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"createKey",null),s([(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKey",null),s([(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKeyByAltName",null),s([(0,i.returnType)("Cursor"),(0,i.apiVersions)([1]),i.returnsPromise],d.prototype,"getKeys",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"deleteKey",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"addKeyAlternateName",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"removeKeyAlternateName",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"rewrapManyDataKey",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"createDataKey",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"removeKeyAltName",null),s([i.returnsPromise,(0,i.apiVersions)([1])],d.prototype,"addKeyAltName",null),t.KeyVault=d=s([i.shellApiClassDefault,(0,i.classPlatforms)(["CLI"])],d)},91283:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=s(r(30102)),i=r(26591),a=n.default.translateApiHelp.bind(n.default);class o{constructor(e,t={translate:a}){this.attr=[],this.help=t.translate(e.help),this.docs=t.translate(e.docs),this.attr=(e.attr||[]).map((e=>({name:e.name,description:t.translate(e.description)}))).filter((e=>e.description))}[i.asPrintable](){const{help:e,docs:t,attr:r}=this;return{help:e,docs:t,attr:r}}get[i.shellApiType](){return"Help"}}t.default=o},75671:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildConfigChunksCollectionMatch=t.pickWithExactKeyMatch=t.assignAll=t.functionCtorWithoutProps=t.shallowClone=t.getBadge=t.adjustRunCommand=t.shouldRunAggregationImmediately=t.isValidCollectionName=t.isValidDatabaseName=t.markAsExplainOutput=t.maybeMarkAsExplainOutput=t.processFLEOptions=t.assertCLI=t.setHideIndex=t.processMapReduceOptions=t.processRemoveOptions=t.processFindAndModifyOptions=t.iterate=t.addHiddenDataProperty=t.tsToSeconds=t.scaleIndividualShardStatistics=t.dataFormat=t.coerceToJSNumber=t.getConfigDB=t.getPrintableShardStatus=t.processDigestPassword=t.adaptOptions=t.assertKeysDefined=t.assertArgsDefinedType=t.validateExplainableVerbosity=t.adaptAggregateOptions=void 0;const n=r(1296),i=s(r(84770)),a=r(32589),o=r(26591),u=r(21764);function l(e){if(!0===e?e="allPlansExecution":!1!==e&&void 0!==e||(e="queryPlanner"),"string"!=typeof e)throw new n.MongoshInvalidInputError("verbosity must be a string",n.CommonErrors.InvalidArgument);return e}function c(e){return e?` (${e})`:""}function p(e,t){for(const r of t)if(void 0===e[r])throw new n.MongoshInvalidInputError(`Missing required property: ${JSON.stringify(r)}`,n.CommonErrors.InvalidArgument)}function h(e){return"number"==typeof e?e:"toNumber"in e?e.toNumber():e.valueOf()}function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0}),e}function f(e){return null!==e&&"object"==typeof e&&d(e,o.shellApiType,"ExplainOutput"),e}function m(e){return"number"==typeof e&&Number.isInteger(e)||"Int32"===(null==e?void 0:e._bsontype)}function y(e){return Object.prototype.hasOwnProperty.call(e,"timestamp")?{uuid:e.uuid}:{ns:e._id}}t.adaptAggregateOptions=function(e={}){const t={...e},r={};let s;return"readConcern"in t&&(r.readConcern=e.readConcern,delete t.readConcern),"writeConcern"in t&&(Object.assign(r,e.writeConcern),delete t.writeConcern),"explain"in t&&(s=l(t.explain),delete t.explain),{aggOptions:t,dbOptions:r,explain:s}},t.validateExplainableVerbosity=l,t.assertArgsDefinedType=function(e,t,r){e.forEach(((e,s)=>{const i=t[s];if(void 0===e){if(!0!==i&&Array.isArray(i)&&i.includes(void 0))return;throw new n.MongoshInvalidInputError(`Missing required argument at position ${s}${c(r)}`,n.CommonErrors.InvalidArgument)}if(!0===i)return;const a="string"==typeof i?[i]:i,o=a.includes(typeof e),u=a.includes(`bson:${null==e?void 0:e._bsontype}`);if(!o&&!u){const t=a.filter((e=>void 0!==e)).map((e=>null==e?void 0:e.replace(/^bson:/,""))).join(" or ");throw new n.MongoshInvalidInputError(`Argument at position ${s} must be of type ${t}, got ${typeof e} instead${c(r)}`,n.CommonErrors.InvalidArgument)}}))},t.assertKeysDefined=p,t.adaptOptions=function(e,t,r){return Object.keys(r).reduce(((t,s)=>(null===e[s]||(t[e[s]||s]=r[s]),t)),t)},t.processDigestPassword=function(e,t,r){if(void 0===t)return{};if("server"!==t&&"client"!==t)throw new n.MongoshInvalidInputError(`Invalid field: passwordDigestor must be 'client' or 'server', got ${t}`,n.CommonErrors.InvalidArgument);if("client"===t){if("string"!=typeof r.pwd)throw new n.MongoshInvalidInputError("User passwords must be of type string. Was given password with type "+typeof r.pwd,n.CommonErrors.InvalidArgument);const t=i.default.createHash("md5");return t.update(`${e}:mongo:${r.pwd}`),{digestPassword:!1,pwd:t.digest("hex")}}return{digestPassword:!0}},t.getPrintableShardStatus=async function(e,t){const r={},s=e.getCollection("mongos"),i=e.getCollection("version"),o=e.getCollection("shards"),l=e.getCollection("chunks"),c=e.getCollection("settings"),p=e.getCollection("changelog"),[h,d,f]=await Promise.all([i.findOne({},{minCompatibleVersion:0,excluding:0,upgradeId:0,upgradeState:0}),o.find().then((e=>e.sort({_id:1}).toArray())),s.find().then((e=>e.sort({ping:-1}).limit(1).tryNext()))]);if(null===h)throw new n.MongoshInvalidInputError("This db does not have sharding enabled. Be sure you are connecting to a mongos from the shell and not to a mongod.",a.ShellApiErrors.NotConnectedToMongos);r.shardingVersion=h,r.shards=d;let m=null,g="most recently active";if(null!==f&&(m=f.ping,m.getTime()>=Date.now()-6e4&&(g="active")),g=`${g} mongoses`,null===m)r[g]="none";else{const e={ping:{$gt:(()=>{const e=m;return e.setTime(e.getTime()-6e4),e})()}};r[g]=t?await(await s.find(e)).sort({ping:-1}).toArray():(await(await s.aggregate([{$match:e},{$group:{_id:"$mongoVersion",num:{$sum:1}}},{$sort:{num:-1}}])).toArray()).map((e=>({[e._id]:e.num})))}const b={};await Promise.all([(async()=>{const e=await c.findOne({_id:"autosplit"});r.autosplit={"Currently enabled":null===e||e.enabled?"yes":"no"}})(),(async()=>{const e=await c.findOne({_id:"balancer"});b["Currently enabled"]=null!==e&&e.stopped?"no":"yes"})(),(async()=>{let t="unknown";try{t=(await e.adminCommand({balancerStatus:1})).inBalancerRound?"yes":"no"}catch(e){}b["Currently running"]=t})(),(async()=>{const e=await c.findOne({_id:"balancer"});if(null!==e&&Object.prototype.hasOwnProperty.call(e,"activeWindow")){const t=e.activeWindow;b["Balancer active window is set between"]=`${t.start} and ${t.stop} server local time`}})(),(async()=>{const t=await(await e.getCollection("locks").find({state:{$eq:2}})).toArray();(null==t?void 0:t.length)>0&&(b["Collections with active migrations"]=t.map((e=>`${e._id} started at ${e.when}`)))})(),(async()=>{let t=!h.currentVersion;const r=h.currentVersion;if(r>5&&(t=!0),5===r){const r=(await e.serverBuildInfo()).versionArray;2===r[0]&&r[1]>6&&(t=!0)}if(t){const t=await(await e.getCollection("actionlog").find({what:"balancer.round"})).sort({time:-1}).limit(5).toArray(),r={count:0,lastErr:"",lastTime:" "};null!==t&&t.forEach((e=>{e.details.errorOccured&&(r.count+=1,1===r.count&&(r.lastErr=e.details.errmsg,r.lastTime=e.time))})),b["Failed balancer rounds in last 5 attempts"]=r.count,r.count>0&&(b["Last reported error"]=r.lastErr,b["Time of Reported error"]=r.lastTime);const s=new Date;s.setDate(s.getDate()-1);let n=await(await p.aggregate([{$match:{time:{$gt:s},what:"moveChunk.from","details.errmsg":{$exists:!1},"details.note":"success"}},{$group:{_id:{msg:"$details.errmsg"},count:{$sum:1}}},{$project:{_id:{$ifNull:["$_id.msg","Success"]},count:"$count"}}])).toArray();n=n.concat(await(await p.aggregate([{$match:{time:{$gt:s},what:"moveChunk.from",$or:[{"details.errmsg":{$exists:!0}},{"details.note":{$ne:"success"}}]}},{$group:{_id:{msg:"$details.errmsg",from:"$details.from",to:"$details.to"},count:{$sum:1}}},{$project:{_id:{$ifNull:["$_id.msg","aborted"]},from:"$_id.from",to:"$_id.to",count:"$count"}}])).toArray());const i={};n.forEach((e=>{"Success"===e._id?i[e.count]=e._id:i[e.count]=`Failed with error '${e._id}', from ${e.from} to ${e.to}`})),0===n.length?b["Migration Results for the last 24 hours"]="No recent migrations":b["Migration Results for the last 24 hours"]=i}})()]),r.balancer=b;const E=await(await e.getCollection("databases").find()).sort({name:1}).toArray();return E.push({_id:"config",primary:"config",partitioned:!0}),E.sort(((e,t)=>e._id.localeCompare(t._id))),r.databases=await Promise.all(E.map((async r=>{const s=await(await e.getCollection("collections").find({_id:new RegExp("^"+(n=r._id,n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")+"\\."))})).sort({_id:1}).toArray();var n;const i=await Promise.all(s.filter((e=>!e.dropped)).map((async r=>{const s={};s.shardKey=r.key,s.unique=!!r.unique,"boolean"!=typeof r.unique&&void 0!==r.unique&&(s.unique=[!!r.unique,{unique:r.unique}]),s.balancing=!r.noBalance,"boolean"!=typeof r.noBalance&&void 0!==r.noBalance&&(s.balancing=[!r.noBalance,{noBalance:r.noBalance}]);const n=[],i=y(r),a=await(await l.aggregate([{$match:i},{$group:{_id:"$shard",cnt:{$sum:1}}},{$project:{_id:0,shard:"$_id",nChunks:"$cnt"}},{$sort:{shard:1}}])).toArray();let o=0;if(s.chunkMetadata=[],a.forEach((e=>{o+=e.nChunks,s.chunkMetadata.push({shard:e.shard,nChunks:e.nChunks})})),o<20||t)for await(const e of(await l.find(i)).sort({min:1})){const t={min:e.min,max:e.max,"on shard":e.shard,"last modified":e.lastmod};Object.defineProperty(t,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t){return(0,u.inspect)({...this},{...t,breakLength:1/0})},writable:!0,configurable:!0}),e.jumbo&&(t.jumbo="yes"),n.push(t)}else n.push("too many chunks to print, use verbose if you want to force print");const c=[];for await(const t of(await e.getCollection("tags").find({ns:r._id})).sort({min:1}))c.push({tag:t.tag,min:t.min,max:t.max});return s.chunks=n,s.tags=c,[r._id,s]})));return{database:r,collections:Object.fromEntries(i)}}))),delete r.shardingVersion.currentVersion,r},t.getConfigDB=async function(e){return"isdbgrid"!==(await e._maybeCachedHello()).msg&&await e._instanceState.printWarning("MongoshWarning: [SHAPI-10003] You are not connected to a mongos. This command may not work as expected."),e.getSiblingDB("config")},t.coerceToJSNumber=h,t.dataFormat=function(e){return null==e?"0B":e<1024?Math.floor(e)+"B":e<1048576?Math.floor(e/1024)+"KiB":e<1073741824?Math.floor(Math.floor(e/1024)/1024*100)/100+"MiB":Math.floor(Math.floor(e/1048576)/1024*100)/100+"GiB"},t.scaleIndividualShardStatistics=function(e,t){const r={};for(const s of Object.keys(e))if(["size","maxSize","storageSize","totalIndexSize","totalSize"].includes(s))r[s]=h(e[s])/t;else if("scaleFactor"===s)r[s]=t;else if("indexSizes"===s){const n={};for(const r of Object.keys(e[s]))n[r]=h(e[s][r])/t;r[s]=n}else r[s]=e[s];return r},t.tsToSeconds=function(e){return"object"==typeof e&&e&&"getHighBits"in e&&"getLowBits"in e?e.getHighBits():Number(e)/4294967296},t.addHiddenDataProperty=d,t.iterate=async function(e,t,r){if(t.isClosed())return e;for(let s=0;s<r;s++){const r=await t.tryNext();if(null===r){e.cursorHasMore=!1;break}e.documents.push(r)}return e},t.processFindAndModifyOptions=function(e){if("returnDocument"in(e={...e})){if("before"!==e.returnDocument&&"after"!==e.returnDocument)throw new n.MongoshInvalidInputError("returnDocument needs to be either 'before' or 'after'",n.CommonErrors.InvalidArgument);return delete e.returnNewDocument,delete e.returnOriginal,e}return"returnOriginal"in e?(e.returnDocument=e.returnOriginal?"before":"after",delete e.returnOriginal,delete e.returnNewDocument,e):"returnNewDocument"in e?(e.returnDocument=e.returnNewDocument?"after":"before",delete e.returnOriginal,delete e.returnNewDocument,delete e.new,e):"new"in e?(e.returnDocument=e.new?"after":"before",delete e.returnOriginal,delete e.returnNewDocument,delete e.new,e):(e.returnDocument="before",e)},t.processRemoveOptions=function(e){return"boolean"==typeof e?{justOne:e}:{justOne:!1,...e}},t.processMapReduceOptions=function(e){if("string"==typeof e)return{out:e};if(void 0===e.out)throw new n.MongoshInvalidInputError("Missing 'out' option",n.CommonErrors.InvalidArgument);return e},t.setHideIndex=async function(e,t,r){const s="string"==typeof t?{name:t,hidden:r}:{keyPattern:t,hidden:r};return await e._database._runCommand({collMod:e._name,index:s})},t.assertCLI=function(e,t){if("CLI"!==e)throw new n.MongoshUnimplementedError(`${t} are not supported for current platform: ${e}`,n.CommonErrors.NotImplemented)},t.processFLEOptions=function(e){var t,r;p(e,["keyVaultNamespace","kmsProviders"]),Object.keys(e).forEach((e=>{if(-1===["keyVaultClient","keyVaultNamespace","kmsProviders","schemaMap","bypassAutoEncryption","tlsOptions","bypassQueryAnalysis","encryptedFieldsMap"].indexOf(e))throw new n.MongoshInvalidInputError(`Unrecognized FLE Client Option ${e}`)}));const s={keyVaultClient:null===(t=e.keyVaultClient)||void 0===t?void 0:t._serviceProvider.getRawClient(),keyVaultNamespace:e.keyVaultNamespace},i=null===(r=e.kmsProviders.local)||void 0===r?void 0:r.key;if(i&&"Binary"===i._bsontype){const t=i.value();if(!Buffer.isBuffer(t))throw new n.MongoshInvalidInputError("When specifying the key of a local KMS as BSON binary it must be constructed from a base64 encoded string");s.kmsProviders={...e.kmsProviders,local:{key:t}}}else s.kmsProviders={...e.kmsProviders};return e.schemaMap&&(s.schemaMap=e.schemaMap),void 0!==e.bypassAutoEncryption&&(s.bypassAutoEncryption=e.bypassAutoEncryption),e.encryptedFieldsMap&&(s.encryptedFieldsMap=e.encryptedFieldsMap),void 0!==e.bypassQueryAnalysis&&(s.bypassQueryAnalysis=e.bypassQueryAnalysis),void 0!==e.tlsOptions&&(s.tlsOptions=e.tlsOptions),s},t.maybeMarkAsExplainOutput=function(e,t){return"explain"in t?f(e):e},t.markAsExplainOutput=f,t.isValidDatabaseName=function(e){return!!e&&!/[/\\. "\0]/.test(e)},t.isValidCollectionName=function(e){return!!e&&!/[$\0]/.test(e)},t.shouldRunAggregationImmediately=function(e){return e.some((e=>Object.keys(e).some((e=>"$merge"===e||"$out"===e))))},t.adjustRunCommand=function e(t,r){if(void 0!==t.replSetResizeOplog){if("size"in t&&m(t.size))return e({...t,size:new r.Double(+t.size)},r);if("minRetentionHours"in t&&m(t.minRetentionHours))return e({...t,minRetentionHours:new r.Double(+t.minRetentionHours)},r)}return void 0!==t.profile&&"sampleRate"in t&&m(t.sampleRate)?e({...t,sampleRate:new r.Double(+t.sampleRate)},r):void 0!==t.setParameter&&void 0!==t.mirrorReads&&"samplingRate"in t.mirrorReads&&m(t.mirrorReads.samplingRate)?e({...t,mirrorReads:{...t.mirrorReads,samplingRate:new r.Double(+t.mirrorReads.samplingRate)}},r):"configureQueryAnalyzer"in t&&m(t.sampleRate)?e({...t,sampleRate:new r.Double(+t.sampleRate)},r):t},t.getBadge=function(e,t){return"timeseries"===e[t].type?"[time-series]":"view"===e[t].type?"[view]":((e,t)=>!e[t].name.startsWith("enxcol_.")&&e.some((r=>r.name===`enxcol_.${e[t].name}.esc`))&&e.some((r=>r.name===`enxcol_.${e[t].name}.ecc`))&&e.some((r=>r.name===`enxcol_.${e[t].name}.ecoc`)))(e,t)?"[queryable-encryption]":""},t.shallowClone=function(e){return e&&"object"==typeof e?Array.isArray(e)?[...e]:{...e}:e},t.functionCtorWithoutProps=function(e){function t(...t){return new.target?Reflect.construct(e,t,new.target):new e(...t)}Object.setPrototypeOf(t,Object.getPrototypeOf(e));const r=Object.getOwnPropertyDescriptor(e,"name");return r&&Object.defineProperty(t,"name",r),t},t.assignAll=function(e,...t){var r;const s=[];for(const e of t)s.push(...Object.entries(Object.getOwnPropertyDescriptors(e)));const n=Object.fromEntries(s);for(const t of Object.getOwnPropertyNames(n))!1===(null===(r=Object.getOwnPropertyDescriptor(e,t))||void 0===r?void 0:r.configurable)&&(e[t]=n[t].value,delete n[t]);return Object.defineProperties(e,n),e},t.pickWithExactKeyMatch=function(e,t){return Object.create(Object.getPrototypeOf(e),Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(e)).filter((([e])=>t.includes(e)))))},t.buildConfigChunksCollectionMatch=y},62294:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InterruptFlag=t.getShellApiType=t.toShellResult=t.Topologies=t.ServerVersions=t.ShellApi=t.signatures=t.UpdateResult=t.ReplicaSet=t.Shard=t.Mongo=t.InsertOneResult=t.InsertManyResult=t.DeleteResult=t.CommandResult=t.BulkWriteResult=t.ShellInstanceState=t.Help=t.ExplainableCursor=t.Explainable=t.Collection=t.Database=t.CursorIterationResult=t.Cursor=t.RunCommandCursor=t.AggregationCursor=void 0;const n=s(r(53891));t.AggregationCursor=n.default;const i=s(r(75161));t.RunCommandCursor=i.default;const a=s(r(78419));t.Collection=a.default;const o=s(r(25075));t.Cursor=o.default;const u=s(r(93500));t.Database=u.default;const l=s(r(99042));t.Explainable=l.default;const c=s(r(78332));t.ExplainableCursor=c.default;const p=s(r(91283));t.Help=p.default;const h=s(r(49040));t.ShellInstanceState=h.default;const d=s(r(13146));t.Shard=d.default;const f=s(r(97976));t.ReplicaSet=f.default;const m=s(r(59418));t.ShellApi=m.default;const y=r(95961);Object.defineProperty(t,"BulkWriteResult",{enumerable:!0,get:function(){return y.BulkWriteResult}}),Object.defineProperty(t,"CommandResult",{enumerable:!0,get:function(){return y.CommandResult}}),Object.defineProperty(t,"CursorIterationResult",{enumerable:!0,get:function(){return y.CursorIterationResult}}),Object.defineProperty(t,"DeleteResult",{enumerable:!0,get:function(){return y.DeleteResult}}),Object.defineProperty(t,"InsertManyResult",{enumerable:!0,get:function(){return y.InsertManyResult}}),Object.defineProperty(t,"InsertOneResult",{enumerable:!0,get:function(){return y.InsertOneResult}}),Object.defineProperty(t,"UpdateResult",{enumerable:!0,get:function(){return y.UpdateResult}});const g=s(r(13599));t.Mongo=g.default;const b=r(33335);Object.defineProperty(t,"signatures",{enumerable:!0,get:function(){return b.signatures}}),Object.defineProperty(t,"toShellResult",{enumerable:!0,get:function(){return b.toShellResult}}),Object.defineProperty(t,"getShellApiType",{enumerable:!0,get:function(){return b.getShellApiType}});const E=r(26591);Object.defineProperty(t,"Topologies",{enumerable:!0,get:function(){return E.Topologies}}),Object.defineProperty(t,"ServerVersions",{enumerable:!0,get:function(){return E.ServerVersions}});const A=r(7764);Object.defineProperty(t,"InterruptFlag",{enumerable:!0,get:function(){return A.InterruptFlag}})},7764:(e,t,r)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.InterruptFlag=t.MongoshInterruptedError=void 0;const n=r(1296),i=Symbol.for("@@mongosh.uncatchable");class a extends n.MongoshBaseError{constructor(){super("MongoshInterruptedError","execution was interrupted"),this[s]=!0}}t.MongoshInterruptedError=a,s=i,t.InterruptFlag=class{constructor(){this.interrupted=!1,this.onInterruptListeners=new Set}isSet(){return this.interrupted}checkpoint(){if(this.interrupted)throw new a}asPromise(){if(this.interrupted){const e=Promise.reject(new a);return e.catch((()=>{})),{destroy:()=>{},promise:e}}let e;const t=new Promise(((t,r)=>{e=()=>{this.onInterruptListeners.delete(r),r(null)},this.onInterruptListeners.add(r)}));return t.catch((()=>{})),{destroy:e,promise:t}}async set(){this.interrupted=!0;const e=new a;for(const t of[...this.onInterruptListeners])try{await t(e)}catch(e){}}reset(){this.interrupted=!1}async withOverrideInterruptBehavior(e,t){const r=this.asPromise();let s;const n=new Promise((e=>{s=async()=>{const r=t();return e(r),r}}));this.onInterruptListeners.add(s);try{this.checkpoint();const t=e(r);return t.catch((()=>{})),await Promise.race([t,r.promise])}catch(e){throw this.interrupted&&await n,e}finally{r.destroy(),this.onInterruptListeners.delete(s)}}}},41117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAnyLogEntry=void 0,t.parseAnyLogEntry=function(e){var t;try{const r=JSON.parse(e);return{id:r.id,timestamp:null===(t=r.t)||void 0===t?void 0:t.$date,severity:r.s,component:r.c,context:r.ctx,message:r.msg,attr:r.attr}}catch(t){return function(e){const t=/^(?<timestamp>\S*) *(?<severity>\S*) *(?<component>\S*) *\[(?<context>[^\]]+)\]\s*(?<message>.*)$/.exec(e.trim());if(!t)throw new Error(`Could not parse line ${JSON.stringify(e)}`);return t.groups}(e)}}},52277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransformMongoErrorPlugin=t.rephraseMongoError=void 0;const r=[{code:13435,replacement:"not primary and secondaryOk=false - consider using db.getMongo().setReadPref() or readPreference in the connection string"}];function s(e){if(!function(e){var t,r,s;return/^Mongo([A-Z].*)?Error$/.test(null!==(s=null===(r=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)||void 0===r?void 0:r.name)&&void 0!==s?s:"")}(e))return e;const t=e,s=t.message,n=r.find((e=>e.matchMessage?"string"==typeof e.matchMessage?s.includes(e.matchMessage):e.matchMessage.test(s):void 0!==e.code&&t.code===e.code));return n&&(t.message="function"==typeof n.replacement?n.replacement(s):n.replacement),t}t.rephraseMongoError=s,t.TransformMongoErrorPlugin=class{transformError(e){return s(e)}}},13599:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(1296),a=r(33335),o=r(88438),u=n(r(93500)),l=r(95961),c=r(59215),p=r(26591),h=n(r(80211)),d=r(75671),f=n(r(24423)),m=r(32589),y=r(36944),g=r(32589),b=r(41117);let E=class extends a.ShellApiClass{constructor(e,t,r,s,n){var a,u,l;if(super(),this.__serviceProvider=null,this._databases=Object.create(null),this._explicitEncryptionOnly=!1,this._readPreferenceWasExplicitlyRequested=!1,this._cachedDatabaseNames=[],this._instanceState=e,n&&(this.__serviceProvider=n),"object"==typeof t&&null!==t&&"string"==typeof t._uri?t=t._uri:"string"!=typeof t&&(t=null!==(u=null===(a=null==n?void 0:n.getURI)||void 0===a?void 0:a.call(n))&&void 0!==u?u:"mongodb://localhost/"),this._connectionInfo=(0,o.generateConnectionInfoFromCliArgs)({connectionSpecifier:t}),this._readPreferenceWasExplicitlyRequested=/\breadPreference=/i.test(this._uri),r){if(void 0!==r.explicitEncryptionOnly){if(void 0!==r.schemaMap)throw new i.MongoshInvalidInputError("explicitEncryptionOnly and schemaMap are mutually exclusive",i.CommonErrors.InvalidArgument);r={...r},this._explicitEncryptionOnly=!!r.explicitEncryptionOnly,delete r.explicitEncryptionOnly}this._connectionInfo.driverOptions.autoEncryption=(0,d.processFLEOptions)(r)}else{const e=null===(l=null==n?void 0:n.getFleOptions)||void 0===l?void 0:l.call(n);e&&(this._connectionInfo.driverOptions.autoEncryption=e)}(null==s?void 0:s.api)&&("string"==typeof s.api?this._connectionInfo.driverOptions.serverApi={version:s.api}:this._connectionInfo.driverOptions.serverApi=s.api)}get _uri(){return this._connectionInfo.connectionString}get _fleOptions(){return this._connectionInfo.driverOptions.autoEncryption}get _serviceProvider(){if(null===this.__serviceProvider)throw new i.MongoshInternalError("No ServiceProvider available for this mongo",g.ShellApiErrors.NotConnected);return this.__serviceProvider}set _serviceProvider(e){this.__serviceProvider=e}async _displayBatchSize(){var e;return null!==(e=this._instanceState.displayBatchSizeFromDBQuery)&&void 0!==e?e:await this._instanceState.shellApi.config.get("displayBatchSize")}[p.asPrintable](){return(0,c.redactURICredentials)(this._uri)}_emitMongoApiCall(e,t={}){this._instanceState.emitApiCallWithArgs({method:e,class:"Mongo",uri:this._uri,arguments:t})}async connect(e,t){var r,s,n,i;(e||t)&&(this._connectionInfo=(0,o.mapCliToDriver)({username:e,password:t},this._connectionInfo));const a={...this._connectionInfo.driverOptions};this._explicitEncryptionOnly?delete a.autoEncryption:a.autoEncryption&&(a.autoEncryption.extraOptions={...a.autoEncryption.extraOptions,...await(null===(s=null===(r=this._instanceState.evaluationListener)||void 0===r?void 0:r.getCryptLibraryOptions)||void 0===s?void 0:s.call(r))});const u=this._instanceState.initialServiceProvider;try{this.__serviceProvider=await u.getNewConnection(this._uri,a)}catch(e){throw"MongoServerSelectionError"===(null==e?void 0:e.name)&&(null===(i=null===(n=u.getRawClient())||void 0===n?void 0:n.options)||void 0===i?void 0:i.tls)&&!/\b(ssl|tls)=/.exec(this._uri)&&(e.message+=" (is ?tls=true missing from the connection string?)"),e}}_getDb(e){if((0,d.assertArgsDefinedType)([e],["string"]),!(0,d.isValidDatabaseName)(e))throw new i.MongoshInvalidInputError(`Invalid database name: ${e}`,i.CommonErrors.InvalidArgument);return e in this._databases||(this._databases[e]=new u.default(this,e)),this._databases[e]}getDB(e){return(0,d.assertArgsDefinedType)([e],["string"],"Mongo.getDB"),this._instanceState.messageBus.emit("mongosh:getDB",{db:e}),this._getDb(e)}getCollection(e){var t,r;(0,d.assertArgsDefinedType)([e],["string"]);const{db:s,coll:n}=null!==(r=null===(t=/^(?<db>[^.]+)\.(?<coll>.+)$/.exec(e))||void 0===t?void 0:t.groups)&&void 0!==r?r:{};if(!s||!n)throw new i.MongoshInvalidInputError("Collection must be of the format <db>.<collection>",i.CommonErrors.InvalidArgument);return this._getDb(s).getCollection(n)}getURI(){return this._uri}use(e){var t;let r,s;(0,d.assertArgsDefinedType)([e],["string"],"Mongo.use"),this._instanceState.messageBus.emit("mongosh:use",{db:e});try{const e=this._instanceState.context.db;r=null===(t=null==e?void 0:e.getName)||void 0===t?void 0:t.call(e),s=null==e?void 0:e._mongo}catch(e){if((null==e?void 0:e.code)!==g.ShellApiErrors.NotConnected)throw e}return this._instanceState.context.db=this._getDb(e),e===r&&s===this?`already on db ${e}`:`switched to db ${e}`}async _listDatabases(e={}){const t=await this._serviceProvider.listDatabases("admin",{...this._getExplicitlyRequestedReadPref(),...e});if(!("databases"in t)){const e=new i.MongoshRuntimeError('Got invalid result from "listDatabases"',i.CommonErrors.CommandFailed);throw this._instanceState.messageBus.emit("mongosh:error",e,"shell-api"),e}return this._cachedDatabaseNames=t.databases.map((e=>e.name)),t}async _getDatabaseNamesForCompletion(){return await Promise.race([(async()=>(await this._listDatabases({readPreference:"primaryPreferred"})).databases.map((e=>e.name)))(),(async()=>(await new Promise((e=>setTimeout(e,200).unref())),this._cachedDatabaseNames))()])}async getDBs(e={}){return this._emitMongoApiCall("getDBs",{options:e}),await this._listDatabases(e)}async getDBNames(e={}){return this._emitMongoApiCall("getDBNames",{options:e}),(await this._listDatabases(e)).databases.map((e=>e.name))}async show(e,t,r=!0){var s,n,a;const o=this._instanceState.currentDb;switch(r&&this._instanceState.messageBus.emit("mongosh:show",{method:`show ${e}`}),e){case"databases":case"dbs":const r=(await this._listDatabases({readPreference:"primaryPreferred",promoteLongs:!0})).databases;return new l.CommandResult("ShowDatabasesResult",r);case"collections":case"tables":const u=await o._getCollectionNamesWithTypes({readPreference:"primaryPreferred",promoteLongs:!0});return new l.CommandResult("ShowCollectionsResult",u);case"profile":const c=o.getCollection("system.profile"),p={count:await c.countDocuments({})};return 0!==p.count&&(p.result=await(await c.find({millis:{$gt:0}})).sort({$natural:-1}).limit(5).toArray()),new l.CommandResult("ShowProfileResult",p);case"users":const h=await o.getUsers();return new l.CommandResult("ShowResult",h.users);case"roles":const d=await o.getRoles({showBuiltinRoles:!0});return new l.CommandResult("ShowResult",d.roles);case"log":const f=await o.adminCommand({getLog:t||"global"});return new l.CommandResult("ShowResult",f.log);case"logs":const m=await o.adminCommand({getLog:"*"});return new l.CommandResult("ShowResult",m.names);case"startupWarnings":{let e;try{if(e=await o.adminCommand({getLog:"startupWarnings"}),!e)throw new i.MongoshCommandFailed("adminCommand getLog unexpectedly returned no result")}catch(e){return this._instanceState.messageBus.emit("mongosh:error",e,"shell-api"),new l.CommandResult("ShowBannerResult",null)}if(!e.log||!e.log.length)return new l.CommandResult("ShowBannerResult",null);const t=e.log.map((e=>{try{const t=(0,b.parseAnyLogEntry)(e);return`${t.timestamp}: ${t.message}`}catch(t){return`Unexpected log line format: ${e}`}}));return new l.CommandResult("ShowBannerResult",{header:"The server generated these startup warnings when booting",content:t.join("\n")})}case"automationNotices":{let e;try{e=await o.hello()}catch(e){return this._instanceState.messageBus.emit("mongosh:error",e,"shell-api"),new l.CommandResult("ShowBannerResult",null)}return e.automationServiceDescriptor?new l.CommandResult("ShowBannerResult",{content:`This server is managed by automation service '${e.automationServiceDescriptor}'.\nMany administrative actions are inappropriate, and may be automatically reverted.`}):new l.CommandResult("ShowBannerResult",null)}case"nonGenuineMongoDBCheck":return null===(a=null===(n=null===(s=this._instanceState.connectionInfo)||void 0===s?void 0:s.extraInfo)||void 0===n?void 0:n.is_genuine)||void 0===a||a?new l.CommandResult("ShowBannerResult",null):new l.CommandResult("ShowBannerResult",{header:"Warning: Non-Genuine MongoDB Detected",content:["This server or service appears to be an emulation of MongoDB rather than an official MongoDB product.","Some documented MongoDB features may work differently, be entirely missing or incomplete, or have unexpected performance characteristics.","To learn more please visit: https://dochub.mongodb.org/core/non-genuine-mongodb-server-warning."].join("\n")});default:const y=new i.MongoshInvalidInputError(`'${e}' is not a valid argument for "show".`,i.CommonErrors.InvalidArgument);throw this._instanceState.messageBus.emit("mongosh:error",y,"shell-api"),y}}async close(e){const t=this._instanceState.mongos.indexOf(this);-1===t?process.emitWarning(new i.MongoshInternalError(`Closing untracked Mongo instance ${this[p.asPrintable]()}`)):this._instanceState.mongos.splice(t,1),await this._serviceProvider.close(e)}async _suspend(){return await this._serviceProvider.suspend()}getReadPrefMode(){return this._serviceProvider.getReadPreference().mode}getReadPrefTagSet(){return this._serviceProvider.getReadPreference().tags}getReadPref(){return this._serviceProvider.getReadPreference()}_getExplicitlyRequestedReadPref(){return this._readPreferenceWasExplicitlyRequested?{readPreference:this.getReadPref()}:void 0}getReadConcern(){try{const e=this._serviceProvider.getReadConcern();return e?e.level:void 0}catch(e){throw new i.MongoshInternalError("Error retrieving ReadConcern.")}}getWriteConcern(){try{return this._serviceProvider.getWriteConcern()}catch(e){throw new i.MongoshInternalError("Error retrieving WriteConcern.")}}async setReadPref(e,t,r){await this._serviceProvider.resetConnectionOptions({readPreference:this._serviceProvider.readPreferenceFromOptions({readPreference:e,readPreferenceTags:t,hedge:r})}),this._readPreferenceWasExplicitlyRequested=!0}async setReadConcern(e){await this._serviceProvider.resetConnectionOptions({readConcern:{level:e}})}async setWriteConcern(e,t,r){const s={};let n;if("object"==typeof e){if(void 0!==t||void 0!==r)throw new i.MongoshInvalidInputError("If concern is given as an object no other arguments must be specified",i.CommonErrors.InvalidArgument);n=e}else{if(n={},"string"!=typeof e&&"number"!=typeof e)throw new i.MongoshInvalidInputError("w value must be a number or string, got: "+typeof e,i.CommonErrors.InvalidArgument);if("number"==typeof e&&e<0)throw new i.MongoshInvalidInputError(`w value must be equal to or greather than 0, got: ${e}`,i.CommonErrors.InvalidArgument);if(n.w=e,void 0!==t){if("number"!=typeof t)throw new i.MongoshInvalidInputError("wtimeoutMS value must be a number, got: "+typeof t,i.CommonErrors.InvalidArgument);if(t<0)throw new i.MongoshInvalidInputError(`wtimeoutMS must be equal to or greather than 0, got: ${t}`,i.CommonErrors.InvalidArgument);n.wtimeout=t}if(void 0!==r){if("boolean"!=typeof r)throw new i.MongoshInvalidInputError("j value must be a boolean, got: "+typeof r,i.CommonErrors.InvalidArgument);n.j=r}}void 0!==n.w&&(s.w=n.w),void 0!==n.wtimeout&&(s.wtimeoutMS=n.wtimeout),void 0!==n.j&&(s.journal=n.j),void 0!==n.fsync&&(s.journal=!!n.fsync),await this._serviceProvider.resetConnectionOptions(s)}startSession(e={}){const t=["readConcern","writeConcern","readPreference","maxCommitTimeMS"],r={};for(const s of t)void 0!==e[s]&&(r[s]=e[s]);const s=["causalConsistency","snapshot"],n={};Object.keys(r).length>0&&(n.defaultTransactionOptions=r);for(const t of s)void 0!==e[t]&&(n[t]=e[t]);return new h.default(this,n,this._serviceProvider.startSession(n))}setCausalConsistency(){throw new i.MongoshUnimplementedError("It is not possible to set causal consistency for an entire connection due to the driver, use startSession({causalConsistency: <>}) instead.",i.CommonErrors.NotImplemented,(0,m.blockedByDriverMetadata)("Mongo.setCausalConsistency"))}isCausalConsistency(){throw new i.MongoshUnimplementedError("Causal consistency for drivers is set via Mongo.startSession and can be checked via session.getOptions. The default value is true",i.CommonErrors.NotImplemented,(0,m.blockedByDriverMetadata)("Mongo.isCausalConsistency"))}setSlaveOk(){throw new i.MongoshDeprecatedError("Setting slaveOk is deprecated, use setReadPref instead.")}async setSecondaryOk(){await this._instanceState.printDeprecationWarning('.setSecondaryOk() is deprecated. Use .setReadPref("primaryPreferred") instead');const e=this.getReadPrefMode();"primary"===e?(await this._instanceState.shellApi.print('Setting read preference from "primary" to "primaryPreferred"'),await this.setReadPref("primaryPreferred")):await this._instanceState.shellApi.print(`Leaving read preference unchanged (is already "${e}")`)}async watch(e=[],t={}){Array.isArray(e)||(t=e,e=[]),this._emitMongoApiCall("watch",{pipeline:e,options:t});const r=new f.default(this._serviceProvider.watch(e,t),(0,c.redactURICredentials)(this._uri),this);return t.resumeAfter||t.startAfter||t.startAtOperationTime||await r.tryNext(),this._instanceState.currentCursor=r,r}getClientEncryption(){if(!this._fleOptions)throw new i.MongoshInvalidInputError("Cannot call getClientEncryption() without field-level encryption options",g.ShellApiErrors.NotUsingFLE);return this._clientEncryption||(this._clientEncryption=new y.ClientEncryption(this)),this._clientEncryption}async getKeyVault(){return this._keyVault||(this._keyVault=new y.KeyVault(this.getClientEncryption()),await this._keyVault._init()),this._keyVault}async convertShardKeyToHashed(e){const t=[{$limit:1},{$project:{_id:{$toHashedIndexKey:{$literal:e}}}}];let r;for(const e of[()=>this.getDB("_fakeDbForMongoshCSKTH").aggregate([{$documents:[{}]},...t]),()=>this.getDB("admin").aggregate([{$documents:[{}]},...t]),()=>this.getDB("admin").getCollection("system.version").aggregate(t),()=>this.getDB("local").getCollection("oplog.rs").aggregate([{$collStats:{}},...t])]){try{r=await(await e()).next()}catch(e){continue}if(r)break}if(!r)throw new i.MongoshRuntimeError("Could not find a suitable way to run convertShardKeyToHashed() -- tried $documents and aggregating on admin.system.version and local.oplog.rs",i.CommonErrors.CommandFailed);return r._id}};s([(0,a.returnType)("Database")],E.prototype,"getDB",null),s([(0,a.returnType)("Collection")],E.prototype,"getCollection",null),s([a.returnsPromise,(0,a.apiVersions)([1])],E.prototype,"getDBs",null),s([a.returnsPromise,(0,a.apiVersions)([1])],E.prototype,"getDBNames",null),s([a.returnsPromise,(0,a.apiVersions)([1])],E.prototype,"show",null),s([a.returnsPromise],E.prototype,"setReadPref",null),s([a.returnsPromise],E.prototype,"setReadConcern",null),s([a.returnsPromise],E.prototype,"setWriteConcern",null),s([(0,a.topologies)([p.Topologies.ReplSet])],E.prototype,"startSession",null),s([a.deprecated],E.prototype,"setSlaveOk",null),s([a.deprecated,a.returnsPromise],E.prototype,"setSecondaryOk",null),s([(0,a.serverVersions)(["3.1.0",p.ServerVersions.latest]),(0,a.topologies)([p.Topologies.ReplSet,p.Topologies.Sharded]),(0,a.apiVersions)([1]),a.returnsPromise],E.prototype,"watch",null),s([(0,a.platforms)(["CLI"]),(0,a.serverVersions)(["4.2.0",p.ServerVersions.latest]),(0,a.returnType)("ClientEncryption")],E.prototype,"getClientEncryption",null),s([(0,a.platforms)(["CLI"]),(0,a.serverVersions)(["4.2.0",p.ServerVersions.latest]),(0,a.returnType)("KeyVault"),a.returnsPromise],E.prototype,"getKeyVault",null),s([a.returnsPromise],E.prototype,"convertShardKeyToHashed",null),E=s([a.shellApiClassDefault,(0,a.classPlatforms)(["CLI"])],E),t.default=E},59449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=r(1296),n=r(32589);t.default=class{constructor(){return this._mongo=new i,new Proxy(this,{get:(e,t)=>{if("_mongo"===t)return this._mongo;throw new s.MongoshInvalidInputError("No connected database",n.ShellApiErrors.NotConnected)}})}};class i{constructor(){return new Proxy(this,{get:()=>{throw new s.MongoshInvalidInputError("No connected database",n.ShellApiErrors.NotConnected)}})}}},18421:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(33335),i=r(26591),a=r(1296);let o=class extends n.ShellApiWithMongoClass{constructor(e){super(),this._collection=e}get _mongo(){return this._collection._mongo}[i.asPrintable](){return`PlanCache for collection ${this._collection._name}.`}async clear(){return await this._collection.runCommand("planCacheClear")}async clearPlansByQuery(e,t,r){const s={query:e};return t&&(s.projection=t),r&&(s.sort=r),await this._collection.runCommand("planCacheClear",s)}async list(e){const t=e||[],r=await this._collection.aggregate([{$planCacheStats:{}},...t]);return await r.toArray()}listQueryShapes(){throw new a.MongoshDeprecatedError("PlanCache.listQueryShapes was deprecated, please use PlanCache.list instead")}getPlansByQuery(){throw new a.MongoshDeprecatedError("PlanCache.getPlansByQuery was deprecated, please use PlanCache.list instead")}};s([n.returnsPromise,(0,n.apiVersions)([])],o.prototype,"clear",null),s([n.returnsPromise,(0,n.apiVersions)([])],o.prototype,"clearPlansByQuery",null),s([(0,n.serverVersions)(["4.4.0",i.ServerVersions.latest]),n.returnsPromise,(0,n.apiVersions)([])],o.prototype,"list",null),s([n.deprecated],o.prototype,"listQueryShapes",null),s([n.deprecated],o.prototype,"getPlansByQuery",null),o=s([n.shellApiClassDefault],o),t.default=o},97976:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(1296),i=r(59215),a=r(33335),o=r(26591),u=r(75671);let l=class extends a.ShellApiWithMongoClass{constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}async initiate(e={}){return this._emitReplicaSetApiCall("initiate",{config:e}),this._database._runAdminCommand({replSetInitiate:e})}async _getConfig(){try{const e=await this._database._runAdminCommand({replSetGetConfig:1});if(void 0===e.config)throw new n.MongoshRuntimeError("Documented returned from command replSetGetConfig does not contain 'config'",n.CommonErrors.CommandFailed);return e.config}catch(e){if("CommandNotFound"===(null==e?void 0:e.codeName)||"APIStrictError"===(null==e?void 0:e.codeName)){const e=await this._database.getSiblingDB("local").getCollection("system.replset").findOne();if(null===e)throw new n.MongoshRuntimeError("No documents in local.system.replset",n.CommonErrors.CommandFailed);return e}throw e}}async config(){return this._emitReplicaSetApiCall("config",{}),this._getConfig()}async conf(){return this._emitReplicaSetApiCall("conf",{}),this._getConfig()}async reconfig(e,t={}){var r;(0,u.assertArgsDefinedType)([e,t],["object",[void 0,"object"]],"ReplicaSet.reconfig"),this._emitReplicaSetApiCall("reconfig",{config:e,options:t});const s=await this._getConfig();e.version=s.version?s.version+1:1,null!==(r=e.protocolVersion)&&void 0!==r||(e.protocolVersion=s.protocolVersion);const n={replSetReconfig:e,...t};return await this._database._runAdminCommand(n)}async reconfigForPSASet(e,t,r={}){var s;(0,u.assertArgsDefinedType)([e,t,r],["number","object",[void 0,"object"]],"ReplicaSet.reconfigForPSASet"),this._emitReplicaSetApiCall("reconfigForPSASet",{newMemberIndex:e,config:t,options:r});const i=e=>this._instanceState.shellApi.print(e),a=null===(s=t.members)||void 0===s?void 0:s[e];if(!a)throw new n.MongoshInvalidInputError(`Node at index ${e} does not exist in the new config`,n.CommonErrors.InvalidArgument);if(1!==a.votes)throw new n.MongoshInvalidInputError(`Node at index ${e} must have { votes: 1 } in the new config (actual: { votes: ${a.votes} })`,n.CommonErrors.InvalidArgument);const o=await this._getConfig(),l=o.members.find((e=>e._id===a._id));if(l){if(l.votes)throw new n.MongoshInvalidInputError(`Node at index ${e} must have { votes: 0 } in the old config (actual: { votes: ${l.votes} })`,n.CommonErrors.InvalidArgument)}else o.members.find((e=>e.host===a.host))&&await i(`Warning: Node at index ${e} has { host: "${a.host}" }, which is also present in the old config, but with a different _id field.`);const c=a.priority;await i(`Running first reconfig to give member at index ${e} { votes: 1, priority: 0 }`),a.votes=1,a.priority=0;const p=await this.reconfig(t,r);if(0===c)return await i("No second reconfig necessary because .priority = 0"),p;await i(`Running second reconfig to give member at index ${e} { priority: ${c} }`),a.priority=c;try{return await this.reconfig(t,r)}catch(e){throw await i("Second reconfig did not succeed, giving up"),await i(`Attempted command: rs.reconfig(${JSON.stringify(t,null," ")}, ${JSON.stringify(r)})`),e}}async status(){return this._emitReplicaSetApiCall("status",{}),this._database._runAdminCommand({replSetGetStatus:1})}async isMaster(){return this._emitReplicaSetApiCall("isMaster",{}),this._database.getSiblingDB("admin").isMaster()}async hello(){return this._emitReplicaSetApiCall("hello",{}),this._database.getSiblingDB("admin").hello()}async printSecondaryReplicationInfo(){return this._emitReplicaSetApiCall("printSecondaryReplicationInfo",{}),this._database.printSecondaryReplicationInfo()}printSlaveReplicationInfo(){throw new n.MongoshDeprecatedError("printSlaveReplicationInfo has been deprecated. Use printSecondaryReplicationInfo instead")}async printReplicationInfo(){return this._emitReplicaSetApiCall("printReplicationInfo",{}),this._database.printReplicationInfo()}async add(e,t){(0,u.assertArgsDefinedType)([e,t],[["string","object"],[void 0,"boolean"]],"ReplicaSet.add"),this._emitReplicaSetApiCall("add",{hostport:e,arb:t});const r=await this._getConfig();r.version++;const s=Math.max(...r.members.map((e=>e._id)));let i;if("string"==typeof e)i={_id:s+1,host:e},t&&(i.arbiterOnly=!0);else{if(!0===t)throw new n.MongoshInvalidInputError(`Expected first parameter to be a host-and-port string of arbiter, but got ${JSON.stringify(e)}`,n.CommonErrors.InvalidArgument);i=e,null!==i._id&&void 0!==i._id||(i._id=s+1)}return r.members.push(i),this._database._runAdminCommand({replSetReconfig:r})}async addArb(e){return this._emitReplicaSetApiCall("addArb",{hostname:e}),this.add(e,!0)}async remove(e){(0,u.assertArgsDefinedType)([e],["string"],"ReplicaSet.remove"),this._emitReplicaSetApiCall("remove",{hostname:e});const t=await this._getConfig();t.version++;for(let r=0;r<t.members.length;r++)if(t.members[r].host===e)return t.members.splice(r,1),this._database._runAdminCommand({replSetReconfig:t});throw new n.MongoshInvalidInputError(`Couldn't find ${e} in ${JSON.stringify(t.members)}. Is ${e} a member of this replset?`,n.CommonErrors.InvalidArgument)}async freeze(e){return(0,u.assertArgsDefinedType)([e],["number"],"ReplicaSet.freeze"),this._emitReplicaSetApiCall("freeze",{secs:e}),this._database._runAdminCommand({replSetFreeze:e})}async stepDown(e,t){(0,u.assertArgsDefinedType)([e,t],[[void 0,"number"],[void 0,"number"]],"ReplicaSet.stepDown"),this._emitReplicaSetApiCall("stepDown",{stepdownSecs:e,catchUpSecs:t});const r={replSetStepDown:void 0===e?60:e};return void 0!==t&&(r.secondaryCatchUpPeriodSecs=t),this._database._runAdminCommand(r)}async syncFrom(e){return(0,u.assertArgsDefinedType)([e],["string"],"ReplicaSet.syncFrom"),this._emitReplicaSetApiCall("syncFrom",{host:e}),this._database._runAdminCommand({replSetSyncFrom:e})}async secondaryOk(){await this._mongo.setSecondaryOk()}[o.asPrintable](){return`ReplicaSet class connected to ${(0,i.redactURICredentials)(this._database._mongo._uri)} via db ${this._database._name}`}_emitReplicaSetApiCall(e,t={}){this._database._mongo._instanceState.emitApiCallWithArgs({method:e,class:"ReplicaSet",arguments:t})}};s([a.returnsPromise],l.prototype,"initiate",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"config",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"conf",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"reconfig",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"reconfigForPSASet",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"status",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"isMaster",null),s([a.returnsPromise,(0,a.apiVersions)([1])],l.prototype,"hello",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"printSecondaryReplicationInfo",null),s([a.deprecated,(0,a.apiVersions)([])],l.prototype,"printSlaveReplicationInfo",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"printReplicationInfo",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"add",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"addArb",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"remove",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"freeze",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"stepDown",null),s([a.returnsPromise,(0,a.apiVersions)([])],l.prototype,"syncFrom",null),s([a.deprecated,a.returnsPromise],l.prototype,"secondaryOk",null),l=s([a.shellApiClassDefault],l),t.default=l},95961:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.CursorIterationResult=t.DeleteResult=t.UpdateResult=t.InsertOneResult=t.InsertManyResult=t.BulkWriteResult=t.CommandResult=void 0;const n=r(33335),i=r(26591);let a=t.CommandResult=class extends n.ShellApiValueClass{constructor(e,t){super(),this.type=e,this.value=t,this[i.shellApiType]=e}[i.asPrintable](){return this.value}toJSON(){return this.value}};t.CommandResult=a=s([n.shellApiClassDefault],a);let o=t.BulkWriteResult=class extends n.ShellApiValueClass{constructor(e,t,r,s,n,i,a,o){super(),this.acknowledged=e,this.insertedCount=t,this.insertedIds=r,this.matchedCount=s,this.modifiedCount=n,this.deletedCount=i,this.upsertedCount=a,this.upsertedIds=o}};t.BulkWriteResult=o=s([n.shellApiClassDefault],o);let u=t.InsertManyResult=class extends n.ShellApiValueClass{constructor(e,t){super(),this.acknowledged=e,this.insertedIds=t}};t.InsertManyResult=u=s([n.shellApiClassDefault],u);let l=t.InsertOneResult=class extends n.ShellApiValueClass{constructor(e,t){super(),this.acknowledged=e,this.insertedId=t}};t.InsertOneResult=l=s([n.shellApiClassDefault],l);let c=t.UpdateResult=class extends n.ShellApiValueClass{constructor(e,t,r,s,n){super(),this.acknowledged=e,this.insertedId=n,this.matchedCount=t,this.modifiedCount=r,this.upsertedCount=s}};t.UpdateResult=c=s([n.shellApiClassDefault],c);let p=t.DeleteResult=class extends n.ShellApiValueClass{constructor(e,t){super(),this.acknowledged=e,this.deletedCount=t}};t.DeleteResult=p=s([n.shellApiClassDefault],p);let h=t.CursorIterationResult=class extends n.ShellApiValueClass{constructor(){super(),this.cursorHasMore=!0,this.documents=[]}};t.CursorIterationResult=h=s([n.shellApiClassDefault],h)},75161:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(33335),i=r(389);let a=class extends i.AbstractCursor{constructor(e,t){super(e,t)}};a=s([n.shellApiClassDefault],a),t.default=a},80211:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=r(26591),o=n(r(93500)),u=r(1296),l=r(75671);let c=class extends i.ShellApiWithMongoClass{constructor(e,t,r){super(),this._session=r,this._options=t,this._mongo=e,this._databases={},this.id=r.id}[a.asPrintable](){return this._session.id}getDatabase(e){if((0,l.assertArgsDefinedType)([e],["string"],"Session.getDatabase"),!(0,l.isValidDatabaseName)(e))throw new u.MongoshInvalidInputError(`Invalid database name: ${e}`,u.CommonErrors.InvalidArgument);return e in this._databases||(this._databases[e]=new o.default(this._mongo,e,this)),this._databases[e]}advanceOperationTime(e){this._session.advanceOperationTime(e)}advanceClusterTime(e){this._session.advanceClusterTime(e)}async endSession(){return await this._session.endSession()}hasEnded(){return this._session.hasEnded}getClusterTime(){return this._session.clusterTime}getOperationTime(){return this._session.operationTime}getOptions(){return this._options}startTransaction(e={}){return this._session.startTransaction(e)}async commitTransaction(){await this._session.commitTransaction()}async abortTransaction(){await this._session.abortTransaction()}async withTransaction(e,t={}){return(0,l.assertArgsDefinedType)([e,t],["function",[void 0,"object"]]),await this._session.withTransaction((async()=>await e()),t)}};s([i.returnsPromise],c.prototype,"endSession",null),s([i.returnsPromise],c.prototype,"commitTransaction",null),s([i.returnsPromise],c.prototype,"abortTransaction",null),s([i.returnsPromise],c.prototype,"withTransaction",null),c=s([i.shellApiClassDefault,(0,i.classPlatforms)(["CLI"])],c),t.default=c},13146:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=r(75671),o=r(26591),u=r(95961),l=r(59215),c=n(r(82328));let p=class extends i.ShellApiWithMongoClass{constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}[o.asPrintable](){return`Shard class connected to ${(0,l.redactURICredentials)(this._database._mongo._uri)} via db ${this._database._name}`}_emitShardApiCall(e,t={}){this._database._mongo._instanceState.emitApiCallWithArgs({method:e,class:"Shard",arguments:t})}async enableSharding(e,t){(0,a.assertArgsDefinedType)([e,t],["string",[void 0,"string"]],"Shard.enableSharding"),this._emitShardApiCall("enableSharding",{database:e,primaryShard:t});const r={enableSharding:e};void 0!==t&&(r.primaryShard=t);try{return await this._database._runAdminCommand(r)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. Are you connected to mongos?`),e}}async commitReshardCollection(e){return(0,a.assertArgsDefinedType)([e],["string"],"Shard.commitReshardCollection"),this._emitShardApiCall("commitReshardCollection",{namespace:e}),await this._database._runAdminCommand({commitReshardCollection:e})}async abortReshardCollection(e){return(0,a.assertArgsDefinedType)([e],["string"],"Shard.abortReshardCollection"),this._emitShardApiCall("abortReshardCollection",{namespace:e}),await this._database._runAdminCommand({abortReshardCollection:e})}async shardCollection(e,t,r,s){return await this._runShardCollection("shardCollection",e,t,r,s)}async reshardCollection(e,t,r,s){return await this._runShardCollection("reshardCollection",e,t,r,s)}async _runShardCollection(e,t,r,s,n){(0,a.assertArgsDefinedType)([t,r,s,n],["string","object",[void 0,"boolean","object"],[void 0,"object"]],`Shard.${e}`),this._emitShardApiCall(e,{namespace:t,key:r,unique:s,options:n}),"object"==typeof s&&null!==s&&(n=s,s=void 0);const i={[e]:t,key:r};void 0!==s&&(i.unique=s);try{return await this._database._runAdminCommand({...i,...n})}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. Are you connected to mongos?`),e}}async status(e=!1,t){const r=await(0,a.getPrintableShardStatus)(null!=t?t:await(0,a.getConfigDB)(this._database),e);return new u.CommandResult("StatsResult",r)}async addShard(e){return(0,a.assertArgsDefinedType)([e],["string"],"Shard.addShard"),await(0,a.getConfigDB)(this._database),this._emitShardApiCall("addShard",{url:e}),this._database._runAdminCommand({addShard:e})}async addShardToZone(e,t){return(0,a.assertArgsDefinedType)([e,t],["string","string"],"Shard.addShardToZone"),this._emitShardApiCall("addShardToZone",{shard:e,zone:t}),await(0,a.getConfigDB)(this._database),this._database._runAdminCommand({addShardToZone:e,zone:t})}async addShardTag(e,t){(0,a.assertArgsDefinedType)([e,t],["string","string"],"Shard.addShardTag"),this._emitShardApiCall("addShardTag",{shard:e,tag:t});try{return await this.addShardToZone(e,t)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. This method aliases to addShardToZone which exists only for server versions > 3.4.`),e}}async updateZoneKeyRange(e,t,r,s){return(0,a.assertArgsDefinedType)([e,t,r,s],["string","object","object",!0],"Shard.updateZoneKeyRange"),this._emitShardApiCall("updateZoneKeyRange",{namespace:e,min:t,max:r,zone:s}),await(0,a.getConfigDB)(this._database),await this._database._runAdminCommand({updateZoneKeyRange:e,min:t,max:r,zone:s})}async addTagRange(e,t,r,s){(0,a.assertArgsDefinedType)([e,t,r,s],["string","object","object",!0],"Shard.addTagRange"),this._emitShardApiCall("addTagRange",{namespace:e,min:t,max:r,zone:s});try{return await this.updateZoneKeyRange(e,t,r,s)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. This method aliases to updateZoneKeyRange which exists only for server versions > 3.4.`),e}}async removeRangeFromZone(e,t,r){return(0,a.assertArgsDefinedType)([e,t,r],["string","object","object"],"Shard.removeRangeFromZone"),this._emitShardApiCall("removeRangeFromZone",{ns:e,min:t,max:r}),this.updateZoneKeyRange(e,t,r,null)}async removeTagRange(e,t,r){(0,a.assertArgsDefinedType)([e,t,r],["string","object","object"],"Shard.removeTagRange"),this._emitShardApiCall("removeTagRange",{ns:e,min:t,max:r});try{return await this.updateZoneKeyRange(e,t,r,null)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. This method aliases to updateZoneKeyRange which exists only for server versions > 3.4.`),e}}async removeShardFromZone(e,t){return(0,a.assertArgsDefinedType)([e,t],["string","string"],"Shard.removeShardFromZone"),this._emitShardApiCall("removeShardFromZone",{shard:e,zone:t}),await(0,a.getConfigDB)(this._database),await this._database._runAdminCommand({removeShardFromZone:e,zone:t})}async removeShardTag(e,t){(0,a.assertArgsDefinedType)([e,t],["string","string"],"Shard.removeShardTag"),this._emitShardApiCall("removeTagRange",{shard:e,tag:t});try{return await this.removeShardFromZone(e,t)}catch(e){throw"CommandNotFound"===(null==e?void 0:e.codeName)&&(e.message=`${e.message}. This method aliases to removeShardFromZone which exists only for server versions > 3.4.`),e}}async enableAutoSplit(){this._instanceState.connectionInfo.buildInfo.version&&c.default.gte(this._instanceState.connectionInfo.buildInfo.version,"6.0.3")&&await this._instanceState.printDeprecationWarning("Starting in MongoDB 6.0.3, automatic chunk splitting is not performed. This is because of balancing policy improvements. Auto-splitting commands still exist, but do not perform an operation. For details, see Balancing Policy Changes: https://www.mongodb.com/docs/manual/release-notes/6.0/#balancing-policy-changes\n"),this._emitShardApiCall("enableAutoSplit",{});const e=await(0,a.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"autosplit"},{$set:{enabled:!0}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async disableAutoSplit(){this._instanceState.connectionInfo.buildInfo.version&&c.default.gte(this._instanceState.connectionInfo.buildInfo.version,"6.0.3")&&await this._instanceState.printDeprecationWarning("Starting in MongoDB 6.0.3, automatic chunk splitting is not performed. This is because of balancing policy improvements. Auto-splitting commands still exist, but do not perform an operation. For details, see Balancing Policy Changes: https://www.mongodb.com/docs/manual/release-notes/6.0/#balancing-policy-changes\n"),this._emitShardApiCall("disableAutoSplit",{});const e=await(0,a.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"autosplit"},{$set:{enabled:!1}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async splitAt(e,t){return(0,a.assertArgsDefinedType)([e,t],["string","object"],"Shard.splitAt"),this._emitShardApiCall("splitAt",{ns:e,query:t}),this._database._runAdminCommand({split:e,middle:t})}async splitFind(e,t){return(0,a.assertArgsDefinedType)([e,t],["string","object"],"Shard.splitFind"),this._emitShardApiCall("splitFind",{ns:e,query:t}),this._database._runAdminCommand({split:e,find:t})}async moveChunk(e,t,r){return(0,a.assertArgsDefinedType)([e,t,r],["string","object","string"],"Shard.moveChunk"),this._emitShardApiCall("moveChunk",{ns:e,query:t,destination:r}),this._database._runAdminCommand({moveChunk:e,find:t,to:r})}async balancerCollectionStatus(e){return(0,a.assertArgsDefinedType)([e],["string"],"Shard.balancerCollectionStatus"),this._emitShardApiCall("balancerCollectionStatus",{ns:e}),this._database._runAdminCommand({balancerCollectionStatus:e})}async enableBalancing(e){(0,a.assertArgsDefinedType)([e],["string"],"Shard.enableBalancing"),this._emitShardApiCall("enableBalancing",{ns:e});const t=await(0,a.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{noBalance:!1}},{writeConcern:{w:"majority",wtimeout:6e4}})}async disableBalancing(e){(0,a.assertArgsDefinedType)([e],["string"],"Shard.disableBalancing"),this._emitShardApiCall("disableBalancing",{ns:e});const t=await(0,a.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{noBalance:!0}},{writeConcern:{w:"majority",wtimeout:6e4}})}async getBalancerState(){this._emitShardApiCall("getBalancerState",{});const e=await(0,a.getConfigDB)(this._database),t=await e.getCollection("settings").findOne({_id:"balancer"});return null==t||!t.stopped}async isBalancerRunning(){return this._emitShardApiCall("isBalancerRunning",{}),await(0,a.getConfigDB)(this._database),this._database._runAdminCommand({balancerStatus:1})}async startBalancer(e=6e4){return(0,a.assertArgsDefinedType)([e],["number"],"Shard.startBalancer"),this._emitShardApiCall("startBalancer",{timeout:e}),this._database._runAdminCommand({balancerStart:1,maxTimeMS:e})}async stopBalancer(e=6e4){return(0,a.assertArgsDefinedType)([e],["number"],"Shard.stopBalancer"),this._emitShardApiCall("stopBalancer",{timeout:e}),this._database._runAdminCommand({balancerStop:1,maxTimeMS:e})}async setBalancerState(e){return(0,a.assertArgsDefinedType)([e],["boolean"],"Shard.setBalancerState"),this._emitShardApiCall("setBalancerState",{state:e}),e?this.startBalancer():this.stopBalancer()}async getShardedDataDistribution(e={}){var t;this._emitShardApiCall("getShardedDataDistribution",{});const r=await this._database.getSiblingDB("admin").aggregate([{$shardedDataDistribution:e}]);try{await r.hasNext()}catch(e){throw 40324===(null===(t=e.code)||void 0===t?void 0:t.valueOf())&&(e.message=`sh.getShardedDataDistribution only works on mongos and MongoDB server versions greater than 6.0.3 [Original Error: ${e.message}]`),e}return r}async startAutoMerger(){this._emitShardApiCall("startAutoMerger",{});const e=await(0,a.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"automerge"},{$set:{enabled:!0}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async stopAutoMerger(){this._emitShardApiCall("stopAutoMerger",{});const e=await(0,a.getConfigDB)(this._database);return await e.getCollection("settings").updateOne({_id:"automerge"},{$set:{enabled:!1}},{upsert:!0,writeConcern:{w:"majority",wtimeout:3e4}})}async isAutoMergerEnabled(){this._emitShardApiCall("isAutoMergerEnabled",{});const e=await(0,a.getConfigDB)(this._database),t=await e.getCollection("settings").findOne({_id:"automerge"});return null==t||t.enabled}async disableAutoMerger(e){(0,a.assertArgsDefinedType)([e],["string"],"Shard.disableAutoMerger"),this._emitShardApiCall("disableAutoMerger",{ns:e});const t=await(0,a.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$set:{enableAutoMerge:!1}},{writeConcern:{w:"majority",wtimeout:6e4}})}async enableAutoMerger(e){(0,a.assertArgsDefinedType)([e],["string"],"Shard.enableAutoMerger"),this._emitShardApiCall("enableAutoMerger",{ns:e});const t=await(0,a.getConfigDB)(this._database);return await t.getCollection("collections").updateOne({_id:e},{$unset:{enableAutoMerge:1}},{writeConcern:{w:"majority",wtimeout:6e4}})}async checkMetadataConsistency(e={}){return this._emitShardApiCall("checkMetadataConsistency",{options:e}),this._database._runAdminCursorCommand({checkMetadataConsistency:1})}};s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"enableSharding",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],p.prototype,"commitReshardCollection",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],p.prototype,"abortReshardCollection",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"shardCollection",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["5.0.0",o.ServerVersions.latest])],p.prototype,"reshardCollection",null),s([i.returnsPromise,(0,i.apiVersions)([1])],p.prototype,"status",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"addShard",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"addShardToZone",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"addShardTag",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"updateZoneKeyRange",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"addTagRange",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"removeRangeFromZone",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"removeTagRange",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"removeShardFromZone",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["3.4.0",o.ServerVersions.latest])],p.prototype,"removeShardTag",null),s([i.returnsPromise,(0,i.apiVersions)([1]),(0,i.serverVersions)(["3.4.0","6.0.2"])],p.prototype,"enableAutoSplit",null),s([i.returnsPromise,(0,i.apiVersions)([1]),(0,i.serverVersions)(["3.4.0","6.0.2"])],p.prototype,"disableAutoSplit",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"splitAt",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"splitFind",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"moveChunk",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["4.4.0",o.ServerVersions.latest])],p.prototype,"balancerCollectionStatus",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"enableBalancing",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"disableBalancing",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"getBalancerState",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"isBalancerRunning",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"startBalancer",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"stopBalancer",null),s([i.returnsPromise,(0,i.apiVersions)([])],p.prototype,"setBalancerState",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["6.0.3",o.ServerVersions.latest]),(0,i.returnType)("AggregationCursor")],p.prototype,"getShardedDataDistribution",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"startAutoMerger",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"stopAutoMerger",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"isAutoMergerEnabled",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"disableAutoMerger",null),s([i.returnsPromise,(0,i.apiVersions)([]),(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"enableAutoMerger",null),s([i.returnsPromise,(0,i.serverVersions)(["7.0.0",o.ServerVersions.latest])],p.prototype,"checkMetadataConsistency",null),p=s([i.shellApiClassDefault],p),t.default=p},59418:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(33335),a=r(26591),o=n(r(13599)),u=r(95961),l=r(75671),c=r(63292),p=r(1296),h=r(65505),d=r(21764),f=r(55315),m=r(45347),y=n(r(30102)),g=Symbol.for("@@mongosh.instanceState"),b=Symbol.for("@@mongosh.loadCallNestingLevel");let E=class extends i.ShellApiClass{constructor(e){super(),this._instanceState=e,this.defaults=Object.freeze(new m.ShellUserConfig)}async set(e,t){var r,s;(0,l.assertArgsDefinedType)([e],["string"],"config.set");const{evaluationListener:n}=this._instanceState,i=(await this._allKeys()).includes(e);if(i){const s=await(null===(r=n.validateConfig)||void 0===r?void 0:r.call(n,e,t));if(s)return`Cannot set option "${e}": ${s}`}return"success"!==(i&&await(null===(s=n.setConfig)||void 0===s?void 0:s.call(n,e,t)))?`Option "${e}" is not available in this environment`:`Setting "${e}" has been changed`}async get(e){var t,r;(0,l.assertArgsDefinedType)([e],["string"],"config.get");const{evaluationListener:s}=this._instanceState;return null!==(r=await(null===(t=s.getConfig)||void 0===t?void 0:t.call(s,e)))&&void 0!==r?r:this.defaults[e]}async reset(e){var t;(0,l.assertArgsDefinedType)([e],["string"],"config.reset");const{evaluationListener:r}=this._instanceState;return"success"!==await(null===(t=r.resetConfig)||void 0===t?void 0:t.call(r,e))?`Option "${e}" cannot be changed in this environment`:`Setting "${e}" has been reset to its default value`}async _allKeys(){var e,t;const{evaluationListener:r}=this._instanceState;return null!==(t=await(null===(e=r.listConfigOptions)||void 0===e?void 0:e.call(r)))&&void 0!==t?t:Object.keys(this.defaults)}async[a.asPrintable](){return new Map(await Promise.all((await this._allKeys()).map((async e=>[e,await this.get(e)]))))}};async function A(e,t){if(!(t.length>2))return"d"===t[1]?["databases"]:["databases","dbs","collections","tables","profile","users","roles","log","logs","startupWarnings","automationNotices","nonGenuineMongoDBCheck"].filter((e=>{var r;return e.startsWith(null!==(r=t[1])&&void 0!==r?r:"")}))}s([i.returnsPromise],E.prototype,"set",null),s([i.returnsPromise],E.prototype,"get",null),s([i.returnsPromise],E.prototype,"reset",null),E=s([i.shellApiClassDefault],E);let x=class extends i.ShellApiClass{constructor(e){super(),this[g]=e,this[b]=0,this.DBQuery=new h.DBQuery(e),this.config=new E(e)}get _instanceState(){return this[g]}get loadCallNestingLevel(){return this[b]}set loadCallNestingLevel(e){this[b]=e}use(e){return this._instanceState.currentDb._mongo.use(e)}async show(e,t){return await this._instanceState.currentDb._mongo.show(e,t)}async _untrackedShow(e,t){return await this._instanceState.currentDb._mongo.show(e,t,!1)}async exit(e){var t,r;throw(0,l.assertArgsDefinedType)([e],[[void 0,"number"]],"exit"),(0,l.assertCLI)(this._instanceState.initialServiceProvider.platform,"the exit/quit commands"),await this._instanceState.close(!0),await(null===(r=(t=this._instanceState.evaluationListener).onExit)||void 0===r?void 0:r.call(t,e)),new p.MongoshInternalError(".onExit listener returned")}async quit(e){return await this.exit(e)}async Mongo(e,t,r){(0,l.assertCLI)(this._instanceState.initialServiceProvider.platform,"new Mongo connections");const s=new o.default(this._instanceState,e,t,r);return await s.connect(),this._instanceState.mongos.push(s),s}async connect(e,t,r){(0,l.assertArgsDefinedType)([e,t,r],["string",[void 0,"string"],[void 0,"string"]],"connect"),(0,l.assertCLI)(this._instanceState.initialServiceProvider.platform,"new Mongo connections");const s=new o.default(this._instanceState,e);await s.connect(t,r),this._instanceState.mongos.push(s);const n=s._serviceProvider.initialDb||c.DEFAULT_DB;return s.getDB(n)}async it(){return this._instanceState.currentCursor?await this._instanceState.currentCursor._it():new u.CursorIterationResult}version(){return r(57518).i8}async load(e){if((0,l.assertArgsDefinedType)([e],["string"],"load"),!this._instanceState.evaluationListener.onLoad)throw new p.MongoshUnimplementedError("load is not currently implemented for this platform",p.CommonErrors.NotImplemented);this._instanceState.messageBus.emit("mongosh:api-load-file",{nested:this.loadCallNestingLevel>0,filename:e});const{resolvedFilename:t,evaluate:r}=await this._instanceState.evaluationListener.onLoad(e),s=this._instanceState.context,n=s.__filename;s.__filename=t,s.__dirname=(0,f.dirname)(t),this.loadCallNestingLevel++;try{await r()}finally{this.loadCallNestingLevel--,n?(s.__filename=n,s.__dirname=(0,f.dirname)(n)):(delete s.__filename,delete s.__dirname)}return!0}async enableTelemetry(){var e,t;if("success"===await(null===(t=(e=this._instanceState.evaluationListener).setConfig)||void 0===t?void 0:t.call(e,"enableTelemetry",!0)))return y.default.__("cli-repl.cli-repl.enabledTelemetry")}async disableTelemetry(){var e,t;if("success"===await(null===(t=(e=this._instanceState.evaluationListener).setConfig)||void 0===t?void 0:t.call(e,"enableTelemetry",!1)))return y.default.__("cli-repl.cli-repl.disabledTelemetry")}async passwordPrompt(){const{evaluationListener:e}=this._instanceState;if(!e.onPrompt)throw new p.MongoshUnimplementedError("passwordPrompt() is not available in this shell",p.CommonErrors.NotImplemented);return await e.onPrompt("Enter password","password")}async sleep(e){return await(0,d.promisify)(setTimeout)(e)}async _print(e,t){var r;const{evaluationListener:s}=this._instanceState,n=await Promise.all(e.map((e=>(0,i.toShellResult)(e))));await(null===(r=s.onPrint)||void 0===r?void 0:r.call(s,n,t))}async print(...e){await this._print(e,"print")}async printjson(...e){await this._print(e,"printjson")}async convertShardKeyToHashed(e){return this._instanceState.currentDb._mongo.convertShardKeyToHashed(e)}async cls(){var e;const{evaluationListener:t}=this._instanceState;await(null===(e=t.onClearCommand)||void 0===e?void 0:e.call(t))}isInteractive(){return this._instanceState.isInteractive}};s([i.directShellCommand,(0,i.shellCommandCompleter)((async function(e,t){var r;if(!(t.length>2))return await e.getDatabaseCompletions(null!==(r=t[1])&&void 0!==r?r:"")}))],x.prototype,"use",null),s([i.directShellCommand,i.returnsPromise,(0,i.shellCommandCompleter)(A)],x.prototype,"show",null),s([i.directShellCommand,i.returnsPromise,(0,i.shellCommandCompleter)(A)],x.prototype,"_untrackedShow",null),s([i.directShellCommand,i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"exit",null),s([i.directShellCommand,i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"quit",null),s([i.returnsPromise,(0,i.returnType)("Mongo"),(0,i.platforms)(["CLI"])],x.prototype,"Mongo",null),s([i.returnsPromise,(0,i.returnType)("Database"),(0,i.platforms)(["CLI"])],x.prototype,"connect",null),s([i.directShellCommand,i.returnsPromise],x.prototype,"it",null),s([i.returnsPromise],x.prototype,"load",null),s([i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"enableTelemetry",null),s([i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"disableTelemetry",null),s([i.returnsPromise,(0,i.platforms)(["CLI"])],x.prototype,"passwordPrompt",null),s([i.returnsPromise],x.prototype,"sleep",null),s([i.returnsPromise],x.prototype,"print",null),s([i.returnsPromise],x.prototype,"printjson",null),s([i.returnsPromise],x.prototype,"convertShardKeyToHashed",null),s([i.directShellCommand,i.returnsPromise],x.prototype,"cls",null),x=s([i.shellApiClassDefault],x),t.default=x},24599:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(26591),i=s(r(91283)),a=r(63292),o=r(1296),u=r(75671),l=r(84770);function c(e){const t=`shell-api.classes.${e}.help`,r={help:`${t}.description`,example:`${t}.example`,docs:`${t}.link`,attr:[]};return new i.default(r)}t.default=function(e,t){void 0===e&&(e=a.bson);const r={};["Binary","Code","DBRef","Decimal128","Double","Int32","Long","MaxKey","MinKey","ObjectId","Timestamp","BSONSymbol","BSONRegExp"].forEach((t=>{if(!(t in e))throw new o.MongoshInternalError(`${t} does not exist in provided BSON package.`);const s=e[t].prototype;s.serverVersions=n.ALL_SERVER_VERSIONS,s.platforms=n.ALL_PLATFORMS,s.topologies=n.ALL_TOPOLOGIES;const i=c(t);r[t]=i,s.help=()=>i,Object.setPrototypeOf(s.help,i)})),e.BSONSymbol.prototype.serverVersions=[n.ServerVersions.earliest,"1.6.0"],e.BSONSymbol.prototype.deprecated=!0;const s={DBRef:(0,u.assignAll)((function(t,r,s,n){return(0,u.assertArgsDefinedType)([t,r,s],["string",!0,[void 0,"string"],[void 0,"object"]],"DBRef"),new e.DBRef(t,r,s,n)}),(0,u.pickWithExactKeyMatch)(e.DBRef,["prototype"])),bsonsize:function(t){return(0,u.assertArgsDefinedType)([t],["object"],"bsonsize"),e.calculateObjectSize(t)},MaxKey:(0,u.assignAll)((function(){return new e.MaxKey}),(0,u.pickWithExactKeyMatch)(e.MaxKey,["prototype"]),{toBSON:()=>new e.MaxKey}),MinKey:(0,u.assignAll)((function(){return new e.MinKey}),(0,u.pickWithExactKeyMatch)(e.MinKey,["prototype"]),{toBSON:()=>new e.MinKey}),ObjectId:(0,u.assignAll)((function(t){return(0,u.assertArgsDefinedType)([t],[[void 0,"string","number","object"]],"ObjectId"),new e.ObjectId(t)}),(0,u.pickWithExactKeyMatch)(e.ObjectId,["prototype","cacheHexString","generate","createFromTime","createFromHexString","createFromBase64","isValid"])),Timestamp:(0,u.assignAll)((function(t,r){return(0,u.assertArgsDefinedType)([t,r],[["number","object",void 0],[void 0,"number"]],"Timestamp"),"object"==typeof t&&null!==t&&"t"in t&&"i"in t?new e.Timestamp(t):void 0!==r||"number"==typeof t?new e.Timestamp({t,i:null!=r?r:0}):new e.Timestamp(t)}),(0,u.pickWithExactKeyMatch)(e.Timestamp,["prototype","fromInt","fromNumber","fromBits","fromString","MAX_VALUE"])),Code:(0,u.assignAll)((function(t="",r){return(0,u.assertArgsDefinedType)([t,r],[[void 0,"string","function"],[void 0,"object"]],"Code"),new e.Code(t,r)}),(0,u.pickWithExactKeyMatch)(e.Code,["prototype"])),NumberDecimal:(0,u.assignAll)((function(r="0"){return(0,u.assertArgsDefinedType)([r],[["string","number","bson:Long","bson:Int32","bson:Decimal128"]],"NumberDecimal"),"number"==typeof r&&t("NumberDecimal: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead"),e.Decimal128.fromString(`${r}`)}),{prototype:e.Decimal128.prototype}),NumberInt:(0,u.assignAll)((function(t="0"){return null!=t||(t="0"),(0,u.assertArgsDefinedType)([t],[["string","number","bson:Long","bson:Int32"]],"NumberInt"),new e.Int32(parseInt(`${t}`,10))}),{prototype:e.Int32.prototype}),NumberLong:(0,u.assignAll)((function(r="0"){return null!=r||(r="0"),(0,u.assertArgsDefinedType)([r],[["string","number","bson:Long","bson:Int32"]],"NumberLong"),"number"==typeof r?(t("NumberLong: specifying a number as argument is deprecated and may lead to loss of precision, pass a string instead"),e.Long.fromNumber(r)):e.Long.fromString(`${r}`)}),{prototype:e.Long.prototype}),ISODate:function(e){e||(e=(new Date).toISOString());const t=/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/.exec(e);if(null!==t&&void 0!==t.groups){const{Y:e,M:r,D:s,h:n,m:i,s:a,ms:o,tz:u}=t.groups,l=new Date(`${e}-${r}-${s}T${n||"00"}:${i||"00"}:${a||"00"}.${o||"000"}${u||"Z"}`);if(l.getTime()>=-621672192e5&&l.getTime()<=0xe677d21fdbff)return l}throw new o.MongoshInvalidInputError(`${JSON.stringify(e)} is not a valid ISODate`,o.CommonErrors.InvalidArgument)},BinData:(0,u.assignAll)((function(t,r){(0,u.assertArgsDefinedType)([t,r],["number","string"],"BinData");const s=Buffer.from(r,"base64");return new e.Binary(s,t)}),{prototype:e.Binary.prototype}),HexData:(0,u.assignAll)((function(t,r){(0,u.assertArgsDefinedType)([t,r],["number","string"],"HexData");const s=Buffer.from(r,"hex");return new e.Binary(s,t)}),{prototype:e.Binary.prototype}),UUID:(0,u.assignAll)((function(t){if(void 0===t){const e=(0,l.randomBytes)(16);e[6]=15&e[6]|64,e[8]=63&e[8]|128,t=e.toString("hex")}(0,u.assertArgsDefinedType)([t],["string"],"UUID");const r=Buffer.from(t.replace(/-/g,""),"hex");return new e.Binary(r,e.Binary.SUBTYPE_UUID)}),{prototype:e.Binary.prototype}),MD5:(0,u.assignAll)((function(t){(0,u.assertArgsDefinedType)([t],["string"],"MD5");const r=Buffer.from(t,"hex");return new e.Binary(r,e.Binary.SUBTYPE_MD5)}),{prototype:e.Binary.prototype}),Decimal128:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Decimal128),(0,u.pickWithExactKeyMatch)(e.Decimal128,["prototype","fromString","fromStringWithRounding"])),BSONSymbol:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.BSONSymbol),(0,u.pickWithExactKeyMatch)(e.BSONSymbol,["prototype"])),Int32:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Int32),(0,u.pickWithExactKeyMatch)(e.Int32,["prototype"])),Long:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Long),(0,u.pickWithExactKeyMatch)(e.Long,["prototype","fromValue","isLong","fromBytesBE","fromBytesLE","fromBytes","fromString","fromBigInt","fromNumber","fromInt","fromBits","MIN_VALUE","MAX_VALUE","NEG_ONE","UONE","ONE","UZERO","ZERO","MAX_UNSIGNED_VALUE","TWO_PWR_24"])),Binary:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Binary),(0,u.pickWithExactKeyMatch)(e.Binary,["prototype","createFromBase64","createFromHexString","BUFFER_SIZE","SUBTYPE_DEFAULT","SUBTYPE_FUNCTION","SUBTYPE_BYTE_ARRAY","SUBTYPE_UUID_OLD","SUBTYPE_UUID","SUBTYPE_MD5","SUBTYPE_ENCRYPTED","SUBTYPE_COLUMN","SUBTYPE_USER_DEFINED"])),Double:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.Double),(0,u.pickWithExactKeyMatch)(e.Double,["prototype"])),BSONRegExp:(0,u.assignAll)((0,u.functionCtorWithoutProps)(e.BSONRegExp),(0,u.pickWithExactKeyMatch)(e.BSONRegExp,["prototype","parseOptions"])),EJSON:(0,u.pickWithExactKeyMatch)(e.EJSON,["parse","serialize","stringify","deserialize"])};for(const e of Object.keys(s)){const t=r[e]||c(e);s[e].help=()=>t,Object.setPrototypeOf(s[e].help,t)}return s}},49040:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(1296),i=r(63292),a=r(17702),o=s(r(43808)),u=r(33335),l=r(26591),c=r(32589),p=r(62294),h=r(7764),d=r(52277),f=s(r(59449)),m=s(r(24599)),y=r(15200);t.default=class{constructor(e,t=new a.EventEmitter,r={}){if(this.displayBatchSizeFromDBQuery=void 0,this.isInteractive=!1,this.apiCallDepth=0,this.warningsShown=new Set,this.interrupted=new h.InterruptFlag,this.plugins=[new d.TransformMongoErrorPlugin],this.alreadyTransformedErrors=new WeakMap,this.initialServiceProvider=e,this.messageBus=t,this.shellApi=new p.ShellApi(this),this.shellBson=(0,m.default)(e.bsonLibrary,(e=>{this.shellApi.print(`Warning: ${e}`)})),this.mongos=[],this.connectionInfo={buildInfo:{}},r.nodb)this.currentDb=new f.default;else{const t=new p.Mongo(this,void 0,void 0,void 0,e);this.mongos.push(t),this.currentDb=t.getDB(e.initialDb||i.DEFAULT_DB)}this.currentCursor=null,this.context={},this.cliOptions=r,this.evaluationListener={}}async fetchConnectionInfo(){if(!this.cliOptions.nodb){this.connectionInfo=await this.currentServiceProvider.getConnectionInfo();const e=this.apiVersionInfo();this.messageBus.emit("mongosh:connect",{...this.connectionInfo.extraInfo,api_version:null==e?void 0:e.version,api_strict:null==e?void 0:e.strict,api_deprecation_errors:null==e?void 0:e.deprecationErrors,uri:(0,o.default)(this.connectionInfo.extraInfo.uri)})}}async close(e){for(const t of[...this.mongos])await t.close(e)}setDbFunc(e){return this.currentDb=e,this.context.rs=new p.ReplicaSet(this.currentDb),this.context.sh=new p.Shard(this.currentDb),this.context.sp=y.Streams.newInstance(this.currentDb),this.fetchConnectionInfo().catch((e=>this.messageBus.emit("mongosh:error",e,"shell-api"))),this.currentDb._getCollectionNamesForCompletion().catch((e=>this.messageBus.emit("mongosh:error",e,"shell-api"))),this.currentDb._mongo._getDatabaseNamesForCompletion().catch((e=>this.messageBus.emit("mongosh:error",e,"shell-api"))),this.currentCursor=null,e}setCtx(e){this.context=e,Object.assign(e,this.shellApi);for(const t of Object.getOwnPropertyNames(p.ShellApi.prototype)){const{shellApi:r}=this;u.toIgnore.concat(["help"]).includes(t)||"function"!=typeof r[t]||(e[t]=function(...e){return r[t](...e)},e[t].help=r[t].help)}e.help=this.shellApi.help,Object.assign(e,this.shellBson),void 0===e.console&&(e.console={});for(const t of["log","warn","info","error"])e.console[t]=(...t)=>e.print(...t);e.console.clear=e.cls,e.rs=new p.ReplicaSet(this.currentDb),e.sh=new p.Shard(this.currentDb),e.sp=y.Streams.newInstance(this.currentDb);"JavaShell"===this.initialServiceProvider.platform?e.db=this.setDbFunc(this.currentDb):Object.defineProperty(e,"db",{configurable:!0,set:e=>{if("Database"!==(0,p.getShellApiType)(e))throw new n.MongoshInvalidInputError("Cannot reassign 'db' to non-Database type",n.CommonErrors.InvalidOperation);return this.setDbFunc(e)},get:()=>this.currentDb}),this.messageBus.emit("mongosh:setCtx",{method:"setCtx",arguments:{}})}get currentServiceProvider(){try{return this.currentDb._mongo._serviceProvider}catch(e){if((null==e?void 0:e.code)===c.ShellApiErrors.NotConnected)return this.initialServiceProvider;throw e}}emitApiCallWithArgs(e){this.messageBus.emit("mongosh:api-call-with-arguments",e)}emitApiCall(e){this.messageBus.emit("mongosh:api-call",{...e,callDepth:this.apiCallDepth})}setEvaluationListener(e){this.evaluationListener=e}getAutocompleteParameters(){return{topology:()=>{var e;let t;const r=null===(e=this.currentServiceProvider.getTopology())||void 0===e?void 0:e.description;switch(null==r?void 0:r.type){case"ReplicaSetNoPrimary":case"ReplicaSetWithPrimary":t=l.Topologies.ReplSet;break;case"Sharded":t=l.Topologies.Sharded;break;case"LoadBalanced":t=l.Topologies.LoadBalanced;break;default:if(t=l.Topologies.Standalone,1===r.servers.size){const[e]=r.servers.values();switch(e.type){case"Mongos":t=l.Topologies.Sharded;break;case"PossiblePrimary":case"RSPrimary":case"RSSecondary":case"RSArbiter":case"RSOther":case"RSGhost":t=l.Topologies.ReplSet}}}return t},apiVersionInfo:()=>this.apiVersionInfo(),connectionInfo:()=>this.connectionInfo.extraInfo,getCollectionCompletionsForCurrentDb:async e=>{try{return(await this.currentDb._getCollectionNamesForCompletion()).filter((t=>t.toLowerCase().startsWith(e.toLowerCase())))}catch(e){if((null==e?void 0:e.code)===c.ShellApiErrors.NotConnected||"Unauthorized"===(null==e?void 0:e.codeName))return[];throw e}},getDatabaseCompletions:async e=>{try{return(await this.currentDb._mongo._getDatabaseNamesForCompletion()).filter((t=>t.toLowerCase().startsWith(e.toLowerCase())))}catch(e){if((null==e?void 0:e.code)===c.ShellApiErrors.NotConnected||"Unauthorized"===(null==e?void 0:e.codeName))return[];throw e}}}}apiVersionInfo(){var e,t;const{serverApi:r}=null!==(t=null===(e=this.currentServiceProvider.getRawClient())||void 0===e?void 0:e.options)&&void 0!==t?t:{};return(null==r?void 0:r.version)?{strict:!1,deprecationErrors:!1,...r}:void 0}async onInterruptExecution(){return await this.interrupted.set(),this.currentCursor=null,this.resumeMongosAfterInterrupt=await Promise.all(this.mongos.map((async e=>{try{return{mongo:e,resume:await e._suspend()}}catch(t){return{mongo:e,resume:null}}}))),!this.resumeMongosAfterInterrupt.find((e=>null===e.resume))}async onResumeExecution(){var e,t;const r=null!==(t=null===(e=this.resumeMongosAfterInterrupt)||void 0===e?void 0:e.map((async e=>{if(!this.mongos.find((t=>t===e.mongo)))return!0;if(null===e.resume)return!1;try{return await e.resume(),!0}catch(e){return!1}})))&&void 0!==t?t:[];this.resumeMongosAfterInterrupt=void 0;const s=await Promise.all(r);return this.interrupted.reset(),!s.find((e=>!1===e))}async getDefaultPrompt(){var e,t;if(null===(t=null===(e=this.connectionInfo)||void 0===e?void 0:e.extraInfo)||void 0===t?void 0:t.is_stream)return"AtlasStreamProcessing> ";const r=this.getDefaultPromptPrefix(),s=this.getTopologySpecificPrompt();let n="";try{n=this.currentDb.getName()}catch(e){}return`${[r,s,n].filter(Boolean).join(" ")}> `}getDefaultPromptPrefix(){var e,t,r,s;const n=null===(e=this.connectionInfo)||void 0===e?void 0:e.extraInfo;return(null==n?void 0:n.is_data_federation)?"AtlasDataFederation":(null==n?void 0:n.is_local_atlas)?"AtlasLocalDev":(null==n?void 0:n.is_atlas)?"Atlas":(null==n?void 0:n.is_enterprise)||(null===(s=null===(r=null===(t=this.connectionInfo)||void 0===t?void 0:t.buildInfo)||void 0===r?void 0:r.modules)||void 0===s?void 0:s.indexOf("enterprise"))>=0?"Enterprise":""}getTopologySpecificPrompt(){var e,t,r,s;const n=null===(e=this.currentServiceProvider.getTopology())||void 0===e?void 0:e.description;if(!n)return"";let i=n.setName,a="";switch(n.type){case"Single":const e=this.getTopologySinglePrompt(n);i=null!==(t=null==e?void 0:e.replicaSet)&&void 0!==t?t:i,a=(null==e?void 0:e.serverType)?`[direct: ${e.serverType}]`:"";break;case"ReplicaSetNoPrimary":a="[secondary]";break;case"ReplicaSetWithPrimary":a="[primary]";break;case"Sharded":a=(null===(s=null===(r=this.connectionInfo)||void 0===r?void 0:r.extraInfo)||void 0===s?void 0:s.atlas_version)?"":"[mongos]";break;default:return""}return`${i?`${i} `:""}${a}`}getTopologySinglePrompt(e){var t;if(1!==(null===(t=e.servers)||void 0===t?void 0:t.size))return;const[r]=e.servers.values();let s;switch(r.type){case"Mongos":s="mongos";break;case"RSPrimary":s="primary";break;case"RSSecondary":s="secondary";break;case"RSArbiter":s="arbiter";break;case"RSOther":s="other";break;default:s=""}return{replicaSet:r.setName,serverType:s}}registerPlugin(e){this.plugins.push(e)}transformError(e){if("[object Error]"===Object.prototype.toString.call(e)){if(this.alreadyTransformedErrors.has(e))return this.alreadyTransformedErrors.get(e);const t=e;for(const t of this.plugins)t.transformError&&(e=t.transformError(e));this.alreadyTransformedErrors.set(t,e)}return e}async printDeprecationWarning(e){this.warningsShown.has(e)||(this.warningsShown.add(e),this.context.print?await this.context.print.call(this.shellApi,`DeprecationWarning: ${e}`):await this.shellApi.print(`DeprecationWarning: ${e}`))}async printWarning(e){this.warningsShown.has(e)||(this.warningsShown.add(e),this.context.print?await this.context.print.call(this.shellApi,`Warning: ${e}`):await this.shellApi.print(`Warning: ${e}`))}}},34050:function(e,t,r){"use strict";var s=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0});const n=r(26591),i=r(33335);let a=class extends i.ShellApiWithMongoClass{constructor(e,t){super(),this._streams=e,this.name=t}get _mongo(){return this._streams._mongo}[n.asPrintable](){return`Atlas Stream Processor: ${this.name}`}async start(){return await this._streams._runStreamCommand({startStreamProcessor:this.name})}async stop(){return await this._streams._runStreamCommand({stopStreamProcessor:this.name})}async drop(){return this._drop()}async _drop(){return await this._streams._runStreamCommand({dropStreamProcessor:this.name})}async stats(e={}){return this._streams._runStreamCommand({getStreamProcessorStats:this.name,...e})}async sample(e={}){const t=await this._streams._runStreamCommand({startSampleStreamProcessor:this.name,...e});return 1!==t.ok?t:this._sampleFrom(t.cursorId)}async _sampleFrom(e){let t=e;for(;"0"!==String(t);){const e=await this._streams._runStreamCommand({getMoreSampleStreamProcessor:this.name,cursorId:t});if(1!==e.ok)return e;t=e.cursorId;for(const t of e.messages)await this._instanceState.shellApi.printjson(t);if(!e.messages.length){const e=this._instanceState.interrupted.asPromise();try{await Promise.race([this._instanceState.shellApi.sleep(1e3),e.promise])}finally{e.destroy()}}}}};s([i.returnsPromise],a.prototype,"start",null),s([i.returnsPromise],a.prototype,"stop",null),s([i.returnsPromise],a.prototype,"drop",null),s([i.returnsPromise],a.prototype,"stats",null),s([i.returnsPromise],a.prototype,"sample",null),a=s([i.shellApiClassDefault],a),t.default=a},15200:function(e,t,r){"use strict";var s,n=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,a=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Streams=void 0;const a=r(1296),o=r(33335),u=i(r(34050)),l=r(26591);let c=t.Streams=s=class extends o.ShellApiWithMongoClass{static newInstance(e){return new Proxy(new s(e),{get(e,t){const r=e[t];return void 0!==r?r:"string"!=typeof t||t.startsWith("_")?void 0:e.getProcessor(t)}})}constructor(e){super(),this._database=e}get _mongo(){return this._database._mongo}[l.asPrintable](){return"Atlas Stream Processing"}getProcessor(e){return new u.default(this,e)}async process(e,t){if(!Array.isArray(e)||!e.length)throw new a.MongoshInvalidInputError("Invalid pipeline",a.CommonErrors.InvalidArgument,e);const r=await this._runStreamCommand({processStreamProcessor:e,...t?{options:t}:{}});if(1!==r.ok)return r;const{name:s,cursorId:n}=r,i=this.getProcessor(s);async function o(){try{await i._drop()}catch(e){}}return await this._instanceState.interrupted.withOverrideInterruptBehavior((()=>i._sampleFrom(n)),o),o()}async createStreamProcessor(e,t,r){if("string"!=typeof e||""===e.trim())throw new a.MongoshInvalidInputError(`Invalid processor name: ${e}`,a.CommonErrors.InvalidArgument);if(!Array.isArray(t)||!t.length)throw new a.MongoshInvalidInputError("Invalid pipeline",a.CommonErrors.InvalidArgument,t);const s=await this._runStreamCommand({createStreamProcessor:e,pipeline:t,...r?{options:r}:{}});return 1!==s.ok?s:this.getProcessor(e)}async listStreamProcessors(e){const t=await this._runStreamCommand({listStreamProcessors:1,filter:e});if(1!==t.ok)return t;const r=t.streamProcessors,s=r.map((e=>this.getProcessor(e.name)));return Object.defineProperties(s,{[l.asPrintable]:{value:()=>r},[l.shellApiType]:{value:"StreamsListResult"}})}async listConnections(e){const t=await this._runStreamCommand({listStreamConnections:1,filter:e});return 1!==t.ok?t:Object.defineProperties(t.connections,{[l.shellApiType]:{value:"StreamsListResult"}})}async _runStreamCommand(e,t={}){return this._mongo._serviceProvider.runCommand(l.ADMIN_DB,e,t)}};n([o.returnsPromise],c.prototype,"process",null),n([o.returnsPromise],c.prototype,"createStreamProcessor",null),n([o.returnsPromise],c.prototype,"listStreamProcessors",null),n([o.returnsPromise],c.prototype,"listConnections",null),t.Streams=c=s=n([o.shellApiClassDefault],c)},31065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShellEvaluator=void 0;const s=r(76294);Object.defineProperty(t,"ShellEvaluator",{enumerable:!0,get:function(){return s.ShellEvaluator}}),t.default=s.ShellEvaluator},76294:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShellEvaluator=void 0;const shell_api_1=__webpack_require__(62294),async_rewriter2_1=__importDefault(__webpack_require__(38674)),history_1=__webpack_require__(59215),types_1=__webpack_require__(45347);let hasAlreadyRunGlobalRuntimeSupportEval=!1,v8;try{v8=__webpack_require__(99672)}catch(e){}(null===(_b=null===(_a=null==v8?void 0:v8.startupSnapshot)||void 0===_a?void 0:_a.isBuildingSnapshot)||void 0===_b?void 0:_b.call(_a))&&v8.startupSnapshot.addSerializeCallback((()=>{eval((new async_rewriter2_1.default).runtimeSupportCode()),hasAlreadyRunGlobalRuntimeSupportEval=!0}));class ShellEvaluator{constructor(e,t=shell_api_1.toShellResult,r){this.hasAppliedAsyncWriterRuntimeSupport=!0,this.instanceState=e,this.resultHandler=t,this.asyncWriter=new async_rewriter2_1.default,this.hasAppliedAsyncWriterRuntimeSupport=!1,this.markTime=r}async innerEval(originalEval,input,context,filename){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l;const{shellApi}=this.instanceState,trimmedInput=input.trim(),argv=trimmedInput.replace(/;$/,"").split(/\s+/g),cmd=argv.shift();if((null===(_a=shellApi[cmd])||void 0===_a?void 0:_a.isDirectShellCommand)&&(null===(_b=shellApi[cmd])||void 0===_b?void 0:_b.acceptsRawInput)&&!(null!==(_c=argv[0])&&void 0!==_c?_c:"").startsWith("(")){const e=trimmedInput.replace(/^\S+\s*/,"");return shellApi[cmd](e)}if((null===(_d=shellApi[cmd])||void 0===_d?void 0:_d.isDirectShellCommand)&&!(null!==(_e=argv[0])&&void 0!==_e?_e:"").startsWith("("))return shellApi[cmd](...argv);null===(_f=this.markTime)||void 0===_f||_f.call(this,types_1.TimingCategories.AsyncRewrite,"start async rewrite");let rewrittenInput=this.asyncWriter.process(input);null===(_g=this.markTime)||void 0===_g||_g.call(this,types_1.TimingCategories.AsyncRewrite,"done async rewrite");const hiddenCommands=RegExp(history_1.HIDDEN_COMMANDS,"g");if(hiddenCommands.test(input)||hiddenCommands.test(rewrittenInput)||this.instanceState.messageBus.emit("mongosh:evaluate-input",{input:(0,history_1.redactSensitiveData)(trimmedInput)}),!this.hasAppliedAsyncWriterRuntimeSupport){this.hasAppliedAsyncWriterRuntimeSupport=!0,null===(_h=this.markTime)||void 0===_h||_h.call(this,types_1.TimingCategories.AsyncRewrite,"start runtimeSupportCode processing");const supportCode=this.asyncWriter.runtimeSupportCode();hasAlreadyRunGlobalRuntimeSupportEval||eval(supportCode),null===(_j=this.markTime)||void 0===_j||_j.call(this,types_1.TimingCategories.AsyncRewrite,"done global runtimeSupportCode processing"),rewrittenInput=supportCode+";\n"+rewrittenInput}try{return null===(_k=this.markTime)||void 0===_k||_k.call(this,types_1.TimingCategories.Eval,"started evaluating processed code"),await originalEval(rewrittenInput,context,filename)}catch(e){throw this.instanceState.transformError(e)}finally{null===(_l=this.markTime)||void 0===_l||_l.call(this,types_1.TimingCategories.Eval,"finished evaluating processed code")}}async customEval(e,t,r,s){const n=await this.innerEval(e,t,r,s);return await this.resultHandler(n)}}exports.ShellEvaluator=ShellEvaluator},45347:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimingCategories=t.CliUserConfigValidator=t.CliUserConfig=t.SnippetShellUserConfigValidator=t.SnippetShellUserConfig=t.ShellUserConfigValidator=t.ShellUserConfig=void 0;class r{constructor(){this.displayBatchSize=20,this.maxTimeMS=null,this.enableTelemetry=!1,this.editor=null}}t.ShellUserConfig=r;class s{static async validate(e,t){switch(e){case"displayBatchSize":return"number"!=typeof t||t<=0?`${e} must be a positive integer`:null;case"maxTimeMS":return null!==t&&("number"!=typeof t||t<=0)?`${e} must be null or a positive integer`:null;case"enableTelemetry":return"boolean"!=typeof t?`${e} must be a boolean`:null;case"editor":return"string"!=typeof t&&null!==t?`${e} must be a string or null`:null;default:return`${e} is not a known config option`}}}t.ShellUserConfigValidator=s;class n extends r{constructor(){super(...arguments),this.snippetIndexSourceURLs="https://compass.mongodb.com/mongosh/snippets-index.bson.br",this.snippetRegistryURL="https://registry.npmjs.org",this.snippetAutoload=!0}}t.SnippetShellUserConfig=n;class i extends s{static async validate(e,t){switch(e){case"snippetIndexSourceURLs":return"string"!=typeof t||t.split(";").some((e=>e&&!a(e)))?`${e} must be a ;-separated list of valid URLs`:null;case"snippetRegistryURL":return"string"==typeof t&&a(t)?null:`${e} must be a valid URL`;case"snippetAutoload":return"boolean"!=typeof t?`${e} must be a boolean`:null;default:return super.validate(e,t)}}}function a(e){if("function"==typeof URL)try{return new URL(e),!0}catch(e){return!1}return!0}t.SnippetShellUserConfigValidator=i,t.CliUserConfig=class extends n{constructor(){super(...arguments),this.userId="",this.telemetryAnonymousId="",this.disableGreetingMessage=!1,this.forceDisableTelemetry=!1,this.inspectCompact=3,this.inspectDepth=6,this.historyLength=1e3,this.showStackTraces=!1,this.redactHistory="remove",this.oidcRedirectURI=void 0,this.oidcTrustedEndpoints=void 0,this.browser=void 0,this.updateURL="https://downloads.mongodb.com/compass/mongosh.json"}},t.CliUserConfigValidator=class extends i{static async validate(e,t){switch(e){case"userId":case"telemetryAnonymousId":case"disableGreetingMessage":return null;case"inspectCompact":return"boolean"!=typeof t&&("number"!=typeof t||t<0)?`${e} must be a boolean or a positive integer`:null;case"inspectDepth":case"historyLength":return"number"!=typeof t||t<0?`${e} must be a positive integer`:null;case"forceDisableTelemetry":case"showStackTraces":return"boolean"!=typeof t?`${e} must be a boolean`:null;case"redactHistory":return"keep"!==t&&"remove"!==t&&"remove-redact"!==t?`${e} must be one of 'keep', 'remove', or 'remove-redact'`:null;case"oidcRedirectURI":return void 0===t||"string"==typeof t&&a(t)?null:`${e} must be undefined or a valid URL`;case"oidcTrustedEndpoints":return void 0===t||Array.isArray(t)&&!t.some((e=>"string"!=typeof e))?null:`${e} must be undefined or an array of hostnames`;case"browser":return void 0!==t&&!1!==t&&"string"!=typeof t?`${e} must be undefined, false, or a command string`:null;case"updateURL":return"string"!=typeof t||t.trim()&&!a(t)?`${e} must be a valid URL or empty`:null;default:return super.validate(e,t)}}},t.TimingCategories={REPLInstantiation:"REPLInstantiation",UserConfigLoading:"UserConfigLoading",DriverSetup:"DriverSetup",Logging:"Logging",SnippetLoading:"SnippetLoading",Snapshot:"Snapshot",ResourceFileLoading:"ResourceFileLoading",AsyncRewrite:"AsyncRewrite",Eval:"Eval",EvalFile:"EvalFile",Telemetry:"Telemetry",Main:"Main"}},19562:(e,t,r)=>{"use strict";var s=r(92048),n=r(55315),i=r(60645);function a(e,r){var a;(r=r||{}).isFileComment&&(e=function(e,r){var i=t.mapFileCommentRegex.exec(e),a=i[1]||i[2],o=n.resolve(r,a);try{return s.readFileSync(o,"utf8")}catch(e){throw new Error("An error occurred while trying to read the map file at "+o+"\n"+e)}}(e,r.commentFileDir)),r.hasComment&&(e=function(e){return e.split(",").pop()}(e)),r.isEncoded&&(a=e,e=(i.Buffer.from(a,"base64")||"").toString()),(r.isJSON||r.isEncoded)&&(e=JSON.parse(e)),this.sourcemap=e}Object.defineProperty(t,"commentRegex",{get:function(){return/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/gm}}),Object.defineProperty(t,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm}}),a.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)},a.prototype.toBase64=function(){var e=this.toJSON();return(i.Buffer.from(e,"utf8")||"").toString("base64")},a.prototype.toComment=function(e){var t="sourceMappingURL=data:application/json;charset=utf-8;base64,"+this.toBase64();return e&&e.multiline?"/*# "+t+" */":"//# "+t},a.prototype.toObject=function(){return JSON.parse(this.toJSON())},a.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)},a.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this},a.prototype.getProperty=function(e){return this.sourcemap[e]},t.fromObject=function(e){return new a(e)},t.fromJSON=function(e){return new a(e,{isJSON:!0})},t.fromBase64=function(e){return new a(e,{isEncoded:!0})},t.fromComment=function(e){return new a(e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),{isEncoded:!0,hasComment:!0})},t.fromMapFileComment=function(e,t){return new a(e,{commentFileDir:t,isFileComment:!0,isJSON:!0})},t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null},t.fromMapFileSource=function(e,r){var s=e.match(t.mapFileCommentRegex);return s?t.fromMapFileComment(s.pop(),r):null},t.removeComments=function(e){return e.replace(t.commentRegex,"")},t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")},t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}},60645:(e,t,r)=>{var s=r(78893),n=s.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=s:(i(s,t),t.Buffer=a),i(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var s=n(e);return void 0!==t?"string"==typeof r?s.fill(t,r):s.fill(t):s.fill(0),s},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s.SlowBuffer(e)}},90095:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(n=s))})),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(19709)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},19709:(e,t,r)=>{e.exports=function(e){function t(e){let r,n=null;function i(...e){if(!i.enabled)return;const s=i,n=Number(new Date),a=n-(r||n);s.diff=a,s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,n)=>{if("%%"===r)return"%";o++;const i=t.formatters[n];if("function"==typeof i){const t=e[o];r=i.call(s,t),e.splice(o,1),o--}return r})),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=s,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===n?t.enabled(e):n,set:e=>{n=e}}),"function"==typeof t.init&&t.init(i),i}function s(e,r){const s=t(this.namespace+(void 0===r?":":r)+e);return s.log=this.log,s}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),n=s.length;for(r=0;r<n;r++)s[r]&&("-"===(e=s[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,s;for(r=0,s=t.skips.length;r<s;r++)if(t.skips[r].test(e))return!1;for(r=0,s=t.names.length;r<s;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(8112),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},80164:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},79413:e=>{"use strict";const t=Symbol.for("gensync:v1:start"),r=Symbol.for("gensync:v1:suspend"),s="GENSYNC_EXPECTED_START",n="GENSYNC_EXPECTED_SUSPEND",i="GENSYNC_OPTIONS_ERROR",a="GENSYNC_RACE_NONEMPTY";function o(e,t,r,s){if(typeof r===e||s&&void 0===r)return;let n;throw n=s?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,u(n,i)}function u(e,t){return Object.assign(new Error(e),{code:t})}function l({name:e,arity:s,sync:n,async:i}){return m(e,s,(function*(...e){const s=yield t;if(!s)return n.call(this,e);let a;try{i.call(this,e,(e=>{a||(a={value:e},s())}),(e=>{a||(a={err:e},s())}))}catch(e){a={err:e},s()}if(yield r,a.hasOwnProperty("err"))throw a.err;return a.value}))}function c(e){let t;for(;!({value:t}=e.next()).done;)h(t,e);return t}function p(e,t,r){!function s(){try{let r;for(;!({value:r}=e.next()).done;){h(r,e);let t=!0,n=!1;const i=e.next((()=>{t?n=!0:s()}));if(t=!1,d(i,e),!n)return}return t(r)}catch(e){return r(e)}}()}function h(e,r){e!==t&&f(r,u(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,s))}function d({value:e,done:t},s){(t||e!==r)&&f(s,u(t?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(e)}. If you get this, it is probably a gensync bug.`,n))}function f(e,t){throw e.throw&&e.throw(t),t}function m(e,t,r){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(r,"name");t&&!t.configurable||Object.defineProperty(r,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(r,"length");e&&!e.configurable||Object.defineProperty(r,"length",Object.assign(e||{},{configurable:!0,value:t}))}return r}e.exports=Object.assign((function(e){let t=e;return t="function"!=typeof e?function({name:e,arity:t,sync:r,async:s,errback:n}){if(o("string","name",e,!0),o("number","arity",t,!0),o("function","sync",r),o("function","async",s,!0),o("function","errback",n,!0),s&&n)throw u("Expected one of either opts.async or opts.errback, but got _both_.",i);if("string"!=typeof e){let t;n&&n.name&&"errback"!==n.name&&(t=n.name),s&&s.name&&"async"!==s.name&&(t=s.name.replace(/Async$/,"")),r&&r.name&&"sync"!==r.name&&(t=r.name.replace(/Sync$/,"")),"string"==typeof t&&(e=t)}return"number"!=typeof t&&(t=r.length),l({name:e,arity:t,sync:function(e){return r.apply(this,e)},async:function(e,t,i){s?s.apply(this,e).then(t,i):n?n.call(this,...e,((e,r)=>{null==e?t(r):i(e)})):t(r.apply(this,e))}})}(e):function(e){return m(e.name,e.length,(function(...t){return e.apply(this,t)}))}(e),Object.assign(t,function(e){return{sync:function(...t){return c(e.apply(this,t))},async:function(...t){return new Promise(((r,s)=>{p(e.apply(this,t),r,s)}))},errback:function(...t){const r=t.pop();if("function"!=typeof r)throw u("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let s;try{s=e.apply(this,t)}catch(e){return void r(e)}p(s,(e=>r(void 0,e)),(e=>r(e)))}}}(t))}),{all:l({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map((e=>c(e)))},async:function(e,t,r){const s=Array.from(e[0]);if(0===s.length)return void Promise.resolve().then((()=>t([])));let n=0;const i=s.map((()=>{}));s.forEach(((e,s)=>{p(e,(e=>{i[s]=e,n+=1,n===i.length&&t(i)}),r)}))}}),race:l({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(0===t.length)throw u("Must race at least 1 item",a);return c(t[0])},async:function(e,t,r){const s=Array.from(e[0]);if(0===s.length)throw u("Must race at least 1 item",a);for(const e of s)p(e,t,r)}})})},65513:(e,t,r)=>{"use strict";e.exports=r(10964)},49384:(e,t,r)=>{"use strict";var s=r(89737),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function u(e){return s.isMemo(e)?a:o[e.$$typeof]||n}o[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[s.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,s){if("string"!=typeof r){if(f){var n=d(r);n&&n!==f&&e(t,n,s)}var a=c(r);p&&(a=a.concat(p(r)));for(var o=u(t),m=u(r),y=0;y<a.length;++y){var g=a[y];if(!(i[g]||s&&s[g]||m&&m[g]||o&&o[g])){var b=h(r,g);try{l(t,g,b)}catch(e){}}}}return t}},66226:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,s=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,E=r?Symbol.for("react.responder"):60118,A=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case c:case p:case i:case o:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case h:case y:case m:case u:return e;default:return t}}case n:return t}}}function v(e){return x(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=s,t.ForwardRef=h,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=n,t.Profiler=o,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return v(e)||x(e)===c},t.isConcurrentMode=v,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===y},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===n},t.isProfiler=function(e){return x(e)===o},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===o||e===a||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===b||e.$$typeof===E||e.$$typeof===A||e.$$typeof===g)},t.typeOf=x},89737:(e,t,r)=>{"use strict";e.exports=r(66226)},75592:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},65490:e=>{"use strict";const t={},r=t.hasOwnProperty,s=(e,t)=>{for(const s in e)r.call(e,s)&&t(s,e[s])},n=t.toString,i=Array.isArray,a=Buffer.isBuffer,o={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},u=/["'\\\b\f\n\r\t]/,l=/[0-9]/,c=/[ !#-&\(-\[\]-_a-~]/,p=(e,t)=>{const r=()=>{A=E,++t.indentLevel,E=t.indent.repeat(t.indentLevel)},h={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},d=t&&t.json;var f,m;d&&(h.quotes="double",h.wrap=!0),f=h,"single"!=(t=(m=t)?(s(m,((e,t)=>{f[e]=t})),f):f).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const y="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",g=t.compact,b=t.lowercaseHex;let E=t.indent.repeat(t.indentLevel),A="";const x=t.__inline1__,v=t.__inline2__,C=g?"":"\n";let P,S=!0;const w="binary"==t.numbers,T="octal"==t.numbers,F="decimal"==t.numbers,D="hexadecimal"==t.numbers;if(d&&e&&(e=>"function"==typeof e)(e.toJSON)&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==n.call(e))(e)){if((e=>"[object Map]"==n.call(e))(e))return 0==e.size?"new Map()":(g||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+p(Array.from(e),t)+")");if((e=>"[object Set]"==n.call(e))(e))return 0==e.size?"new Set()":"new Set("+p(Array.from(e),t)+")";if(a(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+p(Array.from(e),t)+")";if(i(e))return P=[],t.wrap=!0,x&&(t.__inline1__=!1,t.__inline2__=!0),v||r(),((e,t)=>{const r=e.length;let s=-1;for(;++s<r;)t(e[s])})(e,(e=>{S=!1,v&&(t.__inline2__=!1),P.push((g||v?"":E)+p(e,t))})),S?"[]":v?"["+P.join(", ")+"]":"["+C+P.join(","+C)+C+(g?"":A)+"]";if(!(e=>"number"==typeof e||"[object Number]"==n.call(e))(e))return(e=>"[object Object]"==n.call(e))(e)?(P=[],t.wrap=!0,r(),s(e,((e,r)=>{S=!1,P.push((g?"":E)+p(e,t)+":"+(g?"":" ")+p(r,t))})),S?"{}":"{"+C+P.join(","+C)+C+(g?"":A)+"}"):d?JSON.stringify(e)||"null":String(e);if(d)return JSON.stringify(e);if(F)return String(e);if(D){let t=e.toString(16);return b||(t=t.toUpperCase()),"0x"+t}if(w)return"0b"+e.toString(2);if(T)return"0o"+e.toString(8)}const I=e;let _=-1;const k=I.length;for(P="";++_<k;){const e=I.charAt(_);if(t.es6){const e=I.charCodeAt(_);if(e>=55296&&e<=56319&&k>_+1){const t=I.charCodeAt(_+1);if(t>=56320&&t<=57343){let r=(1024*(e-55296)+t-56320+65536).toString(16);b||(r=r.toUpperCase()),P+="\\u{"+r+"}",++_;continue}}}if(!t.escapeEverything){if(c.test(e)){P+=e;continue}if('"'==e){P+=y==e?'\\"':e;continue}if("`"==e){P+=y==e?"\\`":e;continue}if("'"==e){P+=y==e?"\\'":e;continue}}if("\0"==e&&!d&&!l.test(I.charAt(_+1))){P+="\\0";continue}if(u.test(e)){P+=o[e];continue}const r=e.charCodeAt(0);if(t.minimal&&8232!=r&&8233!=r){P+=e;continue}let s=r.toString(16);b||(s=s.toUpperCase());const n=s.length>2||d,i="\\"+(n?"u":"x")+("0000"+s).slice(n?-4:-2);P+=i}return t.wrap&&(P=y+P+y),"`"==y&&(P=P.replace(/\$\{/g,"\\${")),t.isScriptContext?P.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,d?"\\u003C!--":"\\x3C!--"):P};p.version="2.5.2",e.exports=p},20964:(e,t,r)=>{const{default:s}=r(68370),n=/\.mongodb(-dev|-qa|-stage)?\.net$/i,i=/^atlas-stream-.+/i,a=/^(localhost|127\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])|0\.0\.0\.0|(?:0*\:)*?:?0*1)$/i,o=/\.mongo\.ondigitalocean\.com$/i,u=/\.cosmos\.azure\.com$/i,l=/docdb(-elastic)?\.amazonaws\.com$/i;function c(e){return e.startsWith("[")?e.substring(1).split("]")[0]:e.split(":")[0]}function p(e){if("string"!=typeof e)return"";try{return c(new s(e).hosts[0])}catch(t){return c(e)}}e.exports={getDataLake:function(e){const t={isDataLake:!1,dlVersion:null};return e.dataLake&&(t.isDataLake=!0,t.dlVersion=e.dataLake.version),t},isEnterprise:function(e){return!(!e.gitVersion||!e.gitVersion.match(/enterprise/))||!(!e.modules||-1===e.modules.indexOf("enterprise"))},isAtlas:function(e){return!!p(e).match(n)},isLocalAtlas:function(e){return e("admin","atlascli",{managedClusterType:"atlasCliLocalDevCluster"}).then((e=>e>0)).catch((()=>!1))},isAtlasStream:function(e){const t=p(e);return!(!t.match(n)||!t.match(i))},isLocalhost:function(e){return!!p(e).match(a)},isDigitalOcean:function(e){return!!p(e).match(o)},getGenuineMongoDB:function(e){const t=p(e);return t.match(u)?{isGenuine:!1,serverName:"cosmosdb"}:t.match(l)?{isGenuine:!1,serverName:"documentdb"}:{isGenuine:!0,serverName:"mongodb"}},getBuildEnv:function(e){return{serverOs:e.buildEnvironment?e.buildEnvironment.target_os:null,serverArch:e.buildEnvironment?e.buildEnvironment.target_arch:null}}}},68370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const s=r(77596),n=r(2298);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return n.redactConnectionString}});const i="__this_is_a_placeholder__",a=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class o extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class u extends s.URL{}class l extends Error{get name(){return"MongoParseError"}}class c extends u{constructor(e,t={}){var r;const{looseValidation:s}=t;if(!s&&!(n=e).startsWith("mongodb://")&&!n.startsWith("mongodb+srv://"))throw new l('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var n;const u=e.match(a);if(!u)throw new l(`Invalid connection string "${e}"`);const{protocol:p,username:h,password:d,hosts:f,rest:m}=null!==(r=u.groups)&&void 0!==r?r:{};if(!s){if(!p||!f)throw new l(`Protocol and host list are required in "${e}"`);try{decodeURIComponent(null!=h?h:""),decodeURIComponent(null!=d?d:"")}catch(e){throw new l(e.message)}const t=/[:/?#[\]@]/gi;if(null==h?void 0:h.match(t))throw new l(`Username contains unescaped characters ${h}`);if(!h||!d){const t=e.replace(`${p}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new l("URI contained empty userinfo section")}if(null==d?void 0:d.match(t))throw new l("Password contains unescaped characters")}let y="";"string"==typeof h&&(y+=h),"string"==typeof d&&(y+=`:${d}`),y&&(y+="@");try{super(`${p.toLowerCase()}://${y}${i}${m}`)}catch(r){throw s&&new c(e,{...t,looseValidation:!1}),"string"==typeof r.message&&(r.message=r.message.replace(i,f)),r}if(this._hosts=f.split(","),!s){if(this.isSRV&&1!==this.hosts.length)throw new l("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new l("mongodb+srv URI cannot have port number")}var g;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(g=this.searchParams.constructor,class extends g{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return o.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return i}set host(e){throw new Error("No single host for connection string")}get hostname(){return i}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(i,this.hosts.join(","))}clone(){return new c(this.toString(),{looseValidation:!0})}redact(e){return(0,n.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:r,username:s,password:n,hosts:i,pathname:a,search:o,searchParams:u,hash:l}=this;return{href:e,origin:t,protocol:r,username:s,password:n,hosts:i,pathname:a,search:o,searchParams:u,hash:l}}}t.ConnectionString=c,t.CommaAndColonSeparatedRecord=class extends o{constructor(e){super();for(const t of(null!=e?e:"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=c},2298:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.redactConnectionString=t.redactValidConnectionString=void 0;const a=i(r(68370));t.redactValidConnectionString=function(e,t){var r,s;const n=e.clone(),i=null!==(r=null==t?void 0:t.replacementString)&&void 0!==r?r:"_credentials_",o=null===(s=null==t?void 0:t.redactUsernames)||void 0===s||s;if((n.username||n.password)&&o?(n.username=i,n.password=""):n.password&&(n.password=i),n.searchParams.has("authMechanismProperties")){const e=new a.CommaAndColonSeparatedRecord(n.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",i),n.searchParams.set("authMechanismProperties",e.toString()))}return n.searchParams.has("tlsCertificateKeyFilePassword")&&n.searchParams.set("tlsCertificateKeyFilePassword",i),n.searchParams.has("proxyUsername")&&o&&n.searchParams.set("proxyUsername",i),n.searchParams.has("proxyPassword")&&n.searchParams.set("proxyPassword",i),n},t.redactConnectionString=function(e,t){var r,s;const n=null!==(r=null==t?void 0:t.replacementString)&&void 0!==r?r:"<credentials>",i=null===(s=null==t?void 0:t.redactUsernames)||void 0===s||s;let o;try{o=new a.default(e)}catch(e){}if(o)return t={...t,replacementString:"___credentials___"},o.redact(t).toString().replace(/___credentials___/g,n);const u=n,l=[e=>e.replace(i?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`$1${u}$3`),e=>e.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`$1${u}`),e=>e.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`$1${u}`),e=>i?e.replace(/(proxyUsername=)([^&]+)/gi,`$1${u}`):e,e=>e.replace(/(proxyPassword=)([^&]+)/gi,`$1${u}`)];for(const t of l)e=t(e);return e}},7346:(e,t,r)=>{"use strict";const s=r(75540),n=r(87987),i=r(86306),{STATUS_MAPPING:a}=r(84513);function o(e,{useSTD3ASCIIRules:t}){let r=0,s=i.length-1;for(;r<=s;){const n=Math.floor((r+s)/2),o=i[n],u=Array.isArray(o[0])?o[0][0]:o[0],l=Array.isArray(o[0])?o[0][1]:o[0];if(u<=e&&l>=e)return!t||o[1]!==a.disallowed_STD3_valid&&o[1]!==a.disallowed_STD3_mapped?o[1]===a.disallowed_STD3_valid?[a.valid,...o.slice(2)]:o[1]===a.disallowed_STD3_mapped?[a.mapped,...o.slice(2)]:o.slice(1):[a.disallowed,...o.slice(2)];u>e?s=n-1:r=n+1}return null}function u(e,{checkHyphens:t,checkBidi:r,checkJoiners:s,processingOption:i,useSTD3ASCIIRules:u}){if(e.normalize("NFC")!==e)return!1;const l=Array.from(e);if(t&&("-"===l[2]&&"-"===l[3]||e.startsWith("-")||e.endsWith("-")))return!1;if(e.includes(".")||l.length>0&&n.combiningMarks.test(l[0]))return!1;for(const e of l){const[t]=o(e.codePointAt(0),{useSTD3ASCIIRules:u});if("transitional"===i&&t!==a.valid||"nontransitional"===i&&t!==a.valid&&t!==a.deviation)return!1}if(s){let e=0;for(const[t,r]of l.entries())if(""===r||""===r){if(t>0){if(n.combiningClassVirama.test(l[t-1]))continue;if(""===r){const r=l.indexOf("",t+1),s=r<0?l.slice(e):l.slice(e,r);if(n.validZWNJ.test(s.join(""))){e=t+1;continue}}}return!1}}if(r&&l.length>0){let t;if(n.bidiS1LTR.test(l[0]))t=!1;else{if(!n.bidiS1RTL.test(l[0]))return!1;t=!0}if(t){if(!n.bidiS2.test(e)||!n.bidiS3.test(e)||n.bidiS4EN.test(e)&&n.bidiS4AN.test(e))return!1}else if(!n.bidiS5.test(e)||!n.bidiS6.test(e))return!1}return!0}function l(e,t){const{processingOption:r}=t;let{string:i,error:l}=function(e,{useSTD3ASCIIRules:t,processingOption:r}){let s=!1,n="";for(const i of e){const[e,u]=o(i.codePointAt(0),{useSTD3ASCIIRules:t});switch(e){case a.disallowed:s=!0,n+=i;break;case a.ignored:break;case a.mapped:n+=u;break;case a.deviation:n+="transitional"===r?u:i;break;case a.valid:n+=i}}return{string:n,error:s}}(e,t);i=i.normalize("NFC");const c=i.split("."),p=function(e){const t=e.map((e=>{if(e.startsWith("xn--"))try{return s.decode(e.substring(4))}catch(e){return""}return e})).join(".");return n.bidiDomain.test(t)}(c);for(const[e,n]of c.entries()){let i=n,a=r;if(i.startsWith("xn--")){try{i=s.decode(i.substring(4)),c[e]=i}catch(e){l=!0;continue}a="nontransitional"}l||(u(i,{...t,processingOption:a,checkBidi:t.checkBidi&&p})||(l=!0))}return{string:c.join("."),error:l}}e.exports={toASCII:function(e,{checkHyphens:t=!1,checkBidi:r=!1,checkJoiners:n=!1,useSTD3ASCIIRules:i=!1,processingOption:a="nontransitional",verifyDNSLength:o=!1}={}){if("transitional"!==a&&"nontransitional"!==a)throw new RangeError("processingOption must be either transitional or nontransitional");const u=l(e,{processingOption:a,checkHyphens:t,checkBidi:r,checkJoiners:n,useSTD3ASCIIRules:i});let c=u.string.split(".");if(c=c.map((e=>{if(/[^\x00-\x7F]/u.test(e))try{return`xn--${s.encode(e)}`}catch(e){u.error=!0}return e})),o){const e=c.join(".").length;(e>253||0===e)&&(u.error=!0);for(let e=0;e<c.length;++e)if(c[e].length>63||0===c[e].length){u.error=!0;break}}return u.error?null:c.join(".")},toUnicode:function(e,{checkHyphens:t=!1,checkBidi:r=!1,checkJoiners:s=!1,useSTD3ASCIIRules:n=!1,processingOption:i="nontransitional"}={}){const a=l(e,{processingOption:i,checkHyphens:t,checkBidi:r,checkJoiners:s,useSTD3ASCIIRules:n});return{domain:a.string,error:a.error}}}},87987:e=>{"use strict";e.exports={combiningMarks:/[\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,combiningClassVirama:/[\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,validZWNJ:/[\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,bidiDomain:/[\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,bidiS1LTR:/[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,bidiS1RTL:/[\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,bidiS2:/^[\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,bidiS3:/[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,bidiS4EN:/[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,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\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,bidiS6:/[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}},84513:e=>{"use strict";e.exports.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}},93094:(e,t)=>{"use strict";function r(e,t,r){return r.globals&&(e=r.globals[e.name]),new e(`${r.context?r.context:"Value"} ${t}.`)}function s(e,t){if("bigint"==typeof e)throw r(TypeError,"is a BigInt which cannot be converted to a number",t);return t.globals?t.globals.Number(e):Number(e)}function n(e){return o(e>0&&e%1==.5&&0==(1&e)||e<0&&e%1==-.5&&1==(1&e)?Math.floor(e):Math.round(e))}function i(e){return o(Math.trunc(e))}function a(e){return e<0?-1:1}function o(e){return 0===e?0:e}function u(e,{unsigned:t}){let u,l;t?(u=0,l=2**e-1):(u=-(2**(e-1)),l=2**(e-1)-1);const c=2**e,p=2**(e-1);return(e,h={})=>{let d=s(e,h);if(d=o(d),h.enforceRange){if(!Number.isFinite(d))throw r(TypeError,"is not a finite number",h);if(d=i(d),d<u||d>l)throw r(TypeError,`is outside the accepted range of ${u} to ${l}, inclusive`,h);return d}return!Number.isNaN(d)&&h.clamp?(d=Math.min(Math.max(d,u),l),d=n(d),d):Number.isFinite(d)&&0!==d?(d=i(d),d>=u&&d<=l?d:(d=function(e,t){const r=e%t;return a(t)!==a(r)?r+t:r}(d,c),!t&&d>=p?d-c:d)):0}}function l(e,{unsigned:t}){const a=Number.MAX_SAFE_INTEGER,u=t?0:Number.MIN_SAFE_INTEGER,l=t?BigInt.asUintN:BigInt.asIntN;return(t,c={})=>{let p=s(t,c);if(p=o(p),c.enforceRange){if(!Number.isFinite(p))throw r(TypeError,"is not a finite number",c);if(p=i(p),p<u||p>a)throw r(TypeError,`is outside the accepted range of ${u} to ${a}, inclusive`,c);return p}if(!Number.isNaN(p)&&c.clamp)return p=Math.min(Math.max(p,u),a),p=n(p),p;if(!Number.isFinite(p)||0===p)return 0;let h=BigInt(i(p));return h=l(e,h),Number(h)}}t.any=e=>e,t.undefined=()=>{},t.boolean=e=>Boolean(e),t.byte=u(8,{unsigned:!1}),t.octet=u(8,{unsigned:!0}),t.short=u(16,{unsigned:!1}),t["unsigned short"]=u(16,{unsigned:!0}),t.long=u(32,{unsigned:!1}),t["unsigned long"]=u(32,{unsigned:!0}),t["long long"]=l(64,{unsigned:!1}),t["unsigned long long"]=l(64,{unsigned:!0}),t.double=(e,t={})=>{const n=s(e,t);if(!Number.isFinite(n))throw r(TypeError,"is not a finite floating-point value",t);return n},t["unrestricted double"]=(e,t={})=>s(e,t),t.float=(e,t={})=>{const n=s(e,t);if(!Number.isFinite(n))throw r(TypeError,"is not a finite floating-point value",t);if(Object.is(n,-0))return n;const i=Math.fround(n);if(!Number.isFinite(i))throw r(TypeError,"is outside the range of a single-precision floating-point value",t);return i},t["unrestricted float"]=(e,t={})=>{const r=s(e,t);return isNaN(r)||Object.is(r,-0)?r:Math.fround(r)},t.DOMString=(e,t={})=>{if(t.treatNullAsEmptyString&&null===e)return"";if("symbol"==typeof e)throw r(TypeError,"is a symbol, which cannot be converted to a string",t);return(t.globals?t.globals.String:String)(e)},t.ByteString=(e,s={})=>{const n=t.DOMString(e,s);let i;for(let e=0;void 0!==(i=n.codePointAt(e));++e)if(i>255)throw r(TypeError,"is not a valid ByteString",s);return n},t.USVString=(e,r={})=>{const s=t.DOMString(e,r),n=s.length,i=[];for(let e=0;e<n;++e){const t=s.charCodeAt(e);if(t<55296||t>57343)i.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)i.push(String.fromCodePoint(65533));else if(e===n-1)i.push(String.fromCodePoint(65533));else{const r=s.charCodeAt(e+1);if(56320<=r&&r<=57343){const s=1023&t,n=1023&r;i.push(String.fromCodePoint(65536+1024*s+n)),++e}else i.push(String.fromCodePoint(65533))}}return i.join("")},t.object=(e,t={})=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)throw r(TypeError,"is not an object",t);return e};const c=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,p="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(e){try{return c.call(e),!0}catch{return!1}}function d(e){try{return p.call(e),!0}catch{return!1}}function f(e){try{return new Uint8Array(e),!1}catch{return!0}}t.ArrayBuffer=(e,t={})=>{if(!h(e)){if(t.allowShared&&!d(e))throw r(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t);throw r(TypeError,"is not an ArrayBuffer",t)}if(f(e))throw r(TypeError,"is a detached ArrayBuffer",t);return e};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=(e,t={})=>{try{m.call(e)}catch(e){throw r(TypeError,"is not a DataView",t)}if(!t.allowShared&&d(e.buffer))throw r(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is backed by a detached ArrayBuffer",t);return e};const y=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((e=>{const{name:s}=e,n=/^[AEIOU]/u.test(s)?"an":"a";t[s]=(e,t={})=>{if(!ArrayBuffer.isView(e)||y.call(e)!==s)throw r(TypeError,`is not ${n} ${s} object`,t);if(!t.allowShared&&d(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e}})),t.ArrayBufferView=(e,t={})=>{if(!ArrayBuffer.isView(e))throw r(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t);if(!t.allowShared&&d(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e},t.BufferSource=(e,t={})=>{if(ArrayBuffer.isView(e)){if(!t.allowShared&&d(e.buffer))throw r(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw r(TypeError,"is a view on a detached ArrayBuffer",t);return e}if(!t.allowShared&&!h(e))throw r(TypeError,"is not an ArrayBuffer or a view on one",t);if(t.allowShared&&!d(e)&&!h(e))throw r(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t);if(f(e))throw r(TypeError,"is a detached ArrayBuffer",t);return e},t.DOMTimeStamp=t["unsigned long long"]},77596:(e,t,r)=>{"use strict";const{URL:s,URLSearchParams:n}=r(70483),i=r(39521),a=r(63820),o={Array,Object,Promise,String,TypeError};s.install(o,["Window"]),n.install(o,["Window"]),t.URL=o.URL,t.URLSearchParams=o.URLSearchParams,t.parseURL=i.parseURL,t.basicURLParse=i.basicURLParse,t.serializeURL=i.serializeURL,t.serializePath=i.serializePath,t.serializeHost=i.serializeHost,t.serializeInteger=i.serializeInteger,t.serializeURLOrigin=i.serializeURLOrigin,t.setTheUsername=i.setTheUsername,t.setThePassword=i.setThePassword,t.cannotHaveAUsernamePasswordPort=i.cannotHaveAUsernamePasswordPort,t.hasAnOpaquePath=i.hasAnOpaquePath,t.percentDecodeString=a.percentDecodeString,t.percentDecodeBytes=a.percentDecodeBytes},39985:(e,t,r)=>{"use strict";const s=r(93094),n=r(27514);t.convert=(e,t,{context:r="The provided value"}={})=>{if("function"!=typeof t)throw new e.TypeError(r+" is not a function");function i(...i){const a=n.tryWrapperForImpl(this);let o;for(let e=0;e<i.length;e++)i[e]=n.tryWrapperForImpl(i[e]);return o=Reflect.apply(t,a,i),o=s.any(o,{context:r,globals:e}),o}return i.construct=(...i)=>{for(let e=0;e<i.length;e++)i[e]=n.tryWrapperForImpl(i[e]);let a=Reflect.construct(t,i);return a=s.any(a,{context:r,globals:e}),a},i[n.wrapperSymbol]=t,i.objectReference=t,i}},8621:(e,t,r)=>{"use strict";const s=r(39521),n=r(55189),i=r(92084);t.implementation=class{constructor(e,t){const r=t[0],n=t[1];let a=null;if(void 0!==n&&(a=s.basicURLParse(n),null===a))throw new TypeError(`Invalid base URL: ${n}`);const o=s.basicURLParse(r,{baseURL:a});if(null===o)throw new TypeError(`Invalid URL: ${r}`);const u=null!==o.query?o.query:"";this._url=o,this._query=i.createImpl(e,[u],{doNotStripQMark:!0}),this._query._url=this}static canParse(e,t){let r=null;return(void 0===t||(r=s.basicURLParse(t),null!==r))&&null!==s.basicURLParse(e,{baseURL:r})}get href(){return s.serializeURL(this._url)}set href(e){const t=s.basicURLParse(e);if(null===t)throw new TypeError(`Invalid URL: ${e}`);this._url=t,this._query._list.splice(0);const{query:r}=t;null!==r&&(this._query._list=n.parseUrlencodedString(r))}get origin(){return s.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(e){s.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){s.cannotHaveAUsernamePasswordPort(this._url)||s.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){s.cannotHaveAUsernamePasswordPort(this._url)||s.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?s.serializeHost(e.host):`${s.serializeHost(e.host)}:${s.serializeInteger(e.port)}`}set host(e){s.hasAnOpaquePath(this._url)||s.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":s.serializeHost(this._url.host)}set hostname(e){s.hasAnOpaquePath(this._url)||s.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":s.serializeInteger(this._url.port)}set port(e){s.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:s.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return s.serializePath(this._url)}set pathname(e){s.hasAnOpaquePath(this._url)||(this._url.path=[],s.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(e){const t=this._url;if(""===e)return t.query=null,this._query._list=[],void this._potentiallyStripTrailingSpacesFromAnOpaquePath();const r="?"===e[0]?e.substring(1):e;t.query="",s.basicURLParse(r,{url:t,stateOverride:"query"}),this._query._list=n.parseUrlencodedString(r)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(e){if(""===e)return this._url.fragment=null,void this._potentiallyStripTrailingSpacesFromAnOpaquePath();const t="#"===e[0]?e.substring(1):e;this._url.fragment="",s.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}_potentiallyStripTrailingSpacesFromAnOpaquePath(){s.hasAnOpaquePath(this._url)&&null===this._url.fragment&&null===this._url.query&&(this._url.path=this._url.path.replace(/\u0020+$/u,""))}}},99970:(e,t,r)=>{"use strict";const s=r(93094),n=r(27514),i=n.implSymbol,a=n.ctorRegistrySymbol;function o(e,t){let r;return void 0!==t&&(r=t.prototype),n.isObject(r)||(r=e[a].URL.prototype),Object.create(r)}t.is=e=>n.isObject(e)&&n.hasOwn(e,i)&&e[i]instanceof l.implementation,t.isImpl=e=>n.isObject(e)&&e instanceof l.implementation,t.convert=(e,r,{context:s="The provided value"}={})=>{if(t.is(r))return n.implForWrapper(r);throw new e.TypeError(`${s} is not of type 'URL'.`)},t.create=(e,r,s)=>{const n=o(e);return t.setup(n,e,r,s)},t.createImpl=(e,r,s)=>{const i=t.create(e,r,s);return n.implForWrapper(i)},t._internalSetup=(e,t)=>{},t.setup=(e,r,s=[],a={})=>(a.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,i,{value:new l.implementation(r,s,a),configurable:!0}),e[i][n.wrapperSymbol]=e,l.init&&l.init(e[i]),e),t.new=(e,r)=>{const s=o(e,r);return t._internalSetup(s,e),Object.defineProperty(s,i,{value:Object.create(l.implementation.prototype),configurable:!0}),s[i][n.wrapperSymbol]=s,l.init&&l.init(s[i]),s[i]};const u=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>u.has(e))))return;const a=n.initCtorRegistry(e);class o{constructor(r){if(arguments.length<1)throw new e.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const n=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to construct 'URL': parameter 1",globals:e}),n.push(t)}{let t=arguments[1];void 0!==t&&(t=s.USVString(t,{context:"Failed to construct 'URL': parameter 2",globals:e})),n.push(t)}return t.setup(Object.create(new.target.prototype),e,n)}toJSON(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return r[i].toJSON()}get href(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.");return r[i].href}set href(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e}),n[i].href=r}toString(){if(!t.is(this))throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[i].href}get origin(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.");return r[i].origin}get protocol(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return r[i].protocol}set protocol(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e}),n[i].protocol=r}get username(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.");return r[i].username}set username(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e}),n[i].username=r}get password(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.");return r[i].password}set password(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e}),n[i].password=r}get host(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.");return r[i].host}set host(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e}),n[i].host=r}get hostname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return r[i].hostname}set hostname(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e}),n[i].hostname=r}get port(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.");return r[i].port}set port(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e}),n[i].port=r}get pathname(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return r[i].pathname}set pathname(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e}),n[i].pathname=r}get search(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.");return r[i].search}set search(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e}),n[i].search=r}get searchParams(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return n.getSameObject(this,"searchParams",(()=>n.tryWrapperForImpl(r[i].searchParams)))}get hash(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.");return r[i].hash}set hash(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.");r=s.USVString(r,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e}),n[i].hash=r}static canParse(t){if(arguments.length<1)throw new e.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const r=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:e}),r.push(t)}{let t=arguments[1];void 0!==t&&(t=s.USVString(t,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:e})),r.push(t)}return l.implementation.canParse(...r)}}Object.defineProperties(o.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(o,{canParse:{enumerable:!0}}),a.URL=o,Object.defineProperty(e,"URL",{configurable:!0,writable:!0,value:o}),r.includes("Window")&&Object.defineProperty(e,"webkitURL",{configurable:!0,writable:!0,value:o})};const l=r(8621)},73065:(e,t,r)=>{"use strict";const s=r(55189);t.implementation=class{constructor(e,t,{doNotStripQMark:r=!1}){let n=t[0];if(this._list=[],this._url=null,r||"string"!=typeof n||"?"!==n[0]||(n=n.slice(1)),Array.isArray(n))for(const e of n){if(2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([e[0],e[1]])}else if("object"==typeof n&&null===Object.getPrototypeOf(n))for(const e of Object.keys(n)){const t=n[e];this._list.push([e,t])}else this._list=s.parseUrlencodedString(n)}_updateSteps(){if(null!==this._url){let e=s.serializeUrlencoded(this._list);""===e&&(e=null),this._url._url.query=e,null===e&&this._url._potentiallyStripTrailingSpacesFromAnOpaquePath()}}get size(){return this._list.length}append(e,t){this._list.push([e,t]),this._updateSteps()}delete(e,t){let r=0;for(;r<this._list.length;)this._list[r][0]!==e||void 0!==t&&this._list[r][1]!==t?r++:this._list.splice(r,1);this._updateSteps()}get(e){for(const t of this._list)if(t[0]===e)return t[1];return null}getAll(e){const t=[];for(const r of this._list)r[0]===e&&t.push(r[1]);return t}has(e,t){for(const r of this._list)if(r[0]===e&&(void 0===t||r[1]===t))return!0;return!1}set(e,t){let r=!1,s=0;for(;s<this._list.length;)this._list[s][0]===e?r?this._list.splice(s,1):(r=!0,this._list[s][1]=t,s++):s++;r||this._list.push([e,t]),this._updateSteps()}sort(){this._list.sort(((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0)),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return s.serializeUrlencoded(this._list)}}},92084:(e,t,r)=>{"use strict";const s=r(93094),n=r(27514),i=r(39985),a=n.newObjectInRealm,o=n.implSymbol,u=n.ctorRegistrySymbol,l="URLSearchParams";function c(e,t){let r;return void 0!==t&&(r=t.prototype),n.isObject(r)||(r=e[u].URLSearchParams.prototype),Object.create(r)}t.is=e=>n.isObject(e)&&n.hasOwn(e,o)&&e[o]instanceof h.implementation,t.isImpl=e=>n.isObject(e)&&e instanceof h.implementation,t.convert=(e,r,{context:s="The provided value"}={})=>{if(t.is(r))return n.implForWrapper(r);throw new e.TypeError(`${s} is not of type 'URLSearchParams'.`)},t.createDefaultIterator=(e,t,r)=>{const s=e[u]["URLSearchParams Iterator"],i=Object.create(s);return Object.defineProperty(i,n.iterInternalSymbol,{value:{target:t,kind:r,index:0},configurable:!0}),i},t.create=(e,r,s)=>{const n=c(e);return t.setup(n,e,r,s)},t.createImpl=(e,r,s)=>{const i=t.create(e,r,s);return n.implForWrapper(i)},t._internalSetup=(e,t)=>{},t.setup=(e,r,s=[],i={})=>(i.wrapper=e,t._internalSetup(e,r),Object.defineProperty(e,o,{value:new h.implementation(r,s,i),configurable:!0}),e[o][n.wrapperSymbol]=e,h.init&&h.init(e[o]),e),t.new=(e,r)=>{const s=c(e,r);return t._internalSetup(s,e),Object.defineProperty(s,o,{value:Object.create(h.implementation.prototype),configurable:!0}),s[o][n.wrapperSymbol]=s,h.init&&h.init(s[o]),s[o]};const p=new Set(["Window","Worker"]);t.install=(e,r)=>{if(!r.some((e=>p.has(e))))return;const u=n.initCtorRegistry(e);class c{constructor(){const r=[];{let t=arguments[0];if(void 0!==t)if(n.isObject(t))if(void 0!==t[Symbol.iterator]){if(!n.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const r=[],i=t;for(let t of i){if(!n.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const r=[],n=t;for(let t of n)t=s.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:e}),r.push(t);t=r}r.push(t)}t=r}}else{if(!n.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const r=Object.create(null);for(const n of Reflect.ownKeys(t)){const i=Object.getOwnPropertyDescriptor(t,n);if(i&&i.enumerable){let i=n;i=s.USVString(i,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:e});let a=t[n];a=s.USVString(a,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:e}),r[i]=a}}t=r}}else t=s.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e});else t="";r.push(t)}return t.setup(Object.create(new.target.prototype),e,r)}append(r,i){const a=null!=this?this:e;if(!t.is(a))throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=s.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return n.tryWrapperForImpl(a[o].append(...u))}delete(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const a=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e}),a.push(t)}{let t=arguments[1];void 0!==t&&(t=s.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:e})),a.push(t)}return n.tryWrapperForImpl(i[o].delete(...a))}get(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e}),i.push(t)}return n[o].get(...i)}getAll(r){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const a=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e}),a.push(t)}return n.tryWrapperForImpl(i[o].getAll(...a))}has(r){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e}),i.push(t)}{let t=arguments[1];void 0!==t&&(t=s.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:e})),i.push(t)}return n[o].has(...i)}set(r,i){const a=null!=this?this:e;if(!t.is(a))throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=s.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=s.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return n.tryWrapperForImpl(a[o].set(...u))}sort(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return n.tryWrapperForImpl(r[o].sort())}toString(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return r[o].toString()}keys(){if(!t.is(this))throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this))throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this))throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key+value")}forEach(r){if(!t.is(this))throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");r=i.convert(e,r,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const s=arguments[1];let a=Array.from(this[o]),u=0;for(;u<a.length;){const[e,t]=a[u].map(n.tryWrapperForImpl);r.call(s,t,e,this),a=Array.from(this[o]),u++}}get size(){const r=null!=this?this:e;if(!t.is(r))throw new e.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return r[o].size}}Object.defineProperties(c.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:c.prototype.entries,configurable:!0,writable:!0}}),u[l]=c,u["URLSearchParams Iterator"]=Object.create(u["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),n.define(u["URLSearchParams Iterator"],{next(){const t=this&&this[n.iterInternalSymbol];if(!t)throw new e.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:r,kind:s,index:i}=t,u=Array.from(r[o]);if(i>=u.length)return a(e,{value:void 0,done:!0});const l=u[i];return t.index=i+1,a(e,n.iteratorResult(l.map(n.tryWrapperForImpl),s))}}),Object.defineProperty(e,l,{configurable:!0,writable:!0,value:c})};const h=r(73065)},92611:e=>{"use strict";const t=new TextEncoder,r=new TextDecoder("utf-8",{ignoreBOM:!0});e.exports={utf8Encode:function(e){return t.encode(e)},utf8DecodeWithoutBOM:function(e){return r.decode(e)}}},80171:e=>{"use strict";function t(e){return e>=48&&e<=57}function r(e){return e>=65&&e<=90||e>=97&&e<=122}e.exports={isASCIIDigit:t,isASCIIAlpha:r,isASCIIAlphanumeric:function(e){return r(e)||t(e)},isASCIIHex:function(e){return t(e)||e>=65&&e<=70||e>=97&&e<=102}}},63820:(e,t,r)=>{"use strict";const{isASCIIHex:s}=r(80171),{utf8Encode:n}=r(92611);function i(e){return e.codePointAt(0)}function a(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t=`0${t}`),`%${t}`}function o(e){const t=new Uint8Array(e.byteLength);let r=0;for(let n=0;n<e.byteLength;++n){const i=e[n];if(37!==i)t[r++]=i;else if(37!==i||s(e[n+1])&&s(e[n+2])){const s=parseInt(String.fromCodePoint(e[n+1],e[n+2]),16);t[r++]=s,n+=2}else t[r++]=i}return t.slice(0,r)}function u(e){return e<=31||e>126}const l=new Set([i(" "),i('"'),i("<"),i(">"),i("`")]),c=new Set([i(" "),i('"'),i("#"),i("<"),i(">")]);function p(e){return u(e)||c.has(e)}const h=new Set([i("?"),i("`"),i("{"),i("}")]);function d(e){return p(e)||h.has(e)}const f=new Set([i("/"),i(":"),i(";"),i("="),i("@"),i("["),i("\\"),i("]"),i("^"),i("|")]);function m(e){return d(e)||f.has(e)}const y=new Set([i("$"),i("%"),i("&"),i("+"),i(",")]),g=new Set([i("!"),i("'"),i("("),i(")"),i("~")]);function b(e,t){const r=n(e);let s="";for(const e of r)t(e)?s+=a(e):s+=String.fromCharCode(e);return s}e.exports={isC0ControlPercentEncode:u,isFragmentPercentEncode:function(e){return u(e)||l.has(e)},isQueryPercentEncode:p,isSpecialQueryPercentEncode:function(e){return p(e)||e===i("'")},isPathPercentEncode:d,isUserinfoPercentEncode:m,isURLEncodedPercentEncode:function(e){return function(e){return m(e)||y.has(e)}(e)||g.has(e)},percentDecodeString:function(e){return o(n(e))},percentDecodeBytes:o,utf8PercentEncodeString:function(e,t,r=!1){let s="";for(const n of e)s+=r&&" "===n?"+":b(n,t);return s},utf8PercentEncodeCodePoint:function(e,t){return b(String.fromCodePoint(e),t)}}},39521:(e,t,r)=>{"use strict";const s=r(7346),n=r(80171),{utf8DecodeWithoutBOM:i}=r(92611),{percentDecodeString:a,utf8PercentEncodeCodePoint:o,utf8PercentEncodeString:u,isC0ControlPercentEncode:l,isFragmentPercentEncode:c,isQueryPercentEncode:p,isSpecialQueryPercentEncode:h,isPathPercentEncode:d,isUserinfoPercentEncode:f}=r(63820);function m(e){return e.codePointAt(0)}const y={ftp:21,file:null,http:80,https:443,ws:80,wss:443},g=Symbol("failure");function b(e){return[...e].length}function E(e,t){const r=e[t];return isNaN(r)?void 0:String.fromCodePoint(r)}function A(e){return"."===e||"%2e"===e.toLowerCase()}function x(e){return 2===e.length&&n.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function v(e){return-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)}function C(e){return void 0!==y[e]}function P(e){return C(e.scheme)}function S(e){return!C(e.scheme)}function w(e){return y[e]}function T(e){if(""===e)return g;let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;let r=/[^0-7]/u;return 10===t&&(r=/[^0-9]/u),16===t&&(r=/[^0-9A-Fa-f]/u),r.test(e)?g:parseInt(e,t)}function F(e,t=!1){if("["===e[0])return"]"!==e[e.length-1]?g:function(e){const t=[0,0,0,0,0,0,0,0];let r=0,s=null,i=0;if((e=Array.from(e,(e=>e.codePointAt(0))))[i]===m(":")){if(e[i+1]!==m(":"))return g;i+=2,++r,s=r}for(;i<e.length;){if(8===r)return g;if(e[i]===m(":")){if(null!==s)return g;++i,++r,s=r;continue}let a=0,o=0;for(;o<4&&n.isASCIIHex(e[i]);)a=16*a+parseInt(E(e,i),16),++i,++o;if(e[i]===m(".")){if(0===o)return g;if(i-=o,r>6)return g;let s=0;for(;void 0!==e[i];){let a=null;if(s>0){if(!(e[i]===m(".")&&s<4))return g;++i}if(!n.isASCIIDigit(e[i]))return g;for(;n.isASCIIDigit(e[i]);){const t=parseInt(E(e,i));if(null===a)a=t;else{if(0===a)return g;a=10*a+t}if(a>255)return g;++i}t[r]=256*t[r]+a,++s,2!==s&&4!==s||++r}if(4!==s)return g;break}if(e[i]===m(":")){if(++i,void 0===e[i])return g}else if(void 0!==e[i])return g;t[r]=a,++r}if(null!==s){let e=r-s;for(r=7;0!==r&&e>0;){const n=t[s+e-1];t[s+e-1]=t[r],t[r]=n,--r,--e}}else if(null===s&&8!==r)return g;return t}(e.substring(1,e.length-1));if(t)return function(e){return v(e)?g:u(e,l)}(e);const r=function(e,t=!1){const r=s.toASCII(e,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:t,verifyDNSLength:t});return null===r||""===r?g:r}(i(a(e)));return r===g||v(o=r)||-1!==o.search(/[\u0000-\u001F]|%|\u007F/u)?g:function(e){const t=e.split(".");if(""===t[t.length-1]){if(1===t.length)return!1;t.pop()}const r=t[t.length-1];return T(r)!==g||!!/^[0-9]+$/u.test(r)}(r)?function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return g;const r=[];for(const e of t){const t=T(e);if(t===g)return g;r.push(t)}for(let e=0;e<r.length-1;++e)if(r[e]>255)return g;if(r[r.length-1]>=256**(5-r.length))return g;let s=r.pop(),n=0;for(const e of r)s+=e*256**(3-n),++n;return s}(r):r;var o}function D(e){return"number"==typeof e?function(e){let t="",r=e;for(let e=1;e<=4;++e)t=String(r%256)+t,4!==e&&(t=`.${t}`),r=Math.floor(r/256);return t}(e):e instanceof Array?`[${function(e){let t="";const r=function(e){let t=null,r=1,s=null,n=0;for(let i=0;i<e.length;++i)0!==e[i]?(n>r&&(t=s,r=n),s=null,n=0):(null===s&&(s=i),++n);return n>r?s:t}(e);let s=!1;for(let n=0;n<=7;++n)s&&0===e[n]||(s&&(s=!1),r!==n?(t+=e[n].toString(16),7!==n&&(t+=":")):(t+=0===n?"::":":",s=!0));return t}(e)}]`:e}function I(e){const{path:t}=e;var r;0!==t.length&&("file"===e.scheme&&1===t.length&&(r=t[0],/^[A-Za-z]:$/u.test(r))||t.pop())}function _(e){return""!==e.username||""!==e.password}function k(e){return"string"==typeof e.path}function B(e,t,r,s,n){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=r||"utf-8",this.stateOverride=n,this.url=s,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/gu,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const i=function(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(i!==this.input&&(this.parseError=!0),this.input=i,this.state=n||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(e=>e.codePointAt(0)));this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),r=this[`parse ${this.state}`](e,t);if(!r)break;if(r===g){this.failure=!0;break}}}B.prototype["parse scheme start"]=function(e,t){if(n.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,g;this.state="no scheme",--this.pointer}return!0},B.prototype["parse scheme"]=function(e,t){if(n.isASCIIAlphanumeric(e)||e===m("+")||e===m("-")||e===m("."))this.buffer+=t.toLowerCase();else if(e===m(":")){if(this.stateOverride){if(P(this.url)&&!C(this.buffer))return!1;if(!P(this.url)&&C(this.buffer))return!1;if((_(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===w(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===m("/")&&this.input[this.pointer+2]===m("/")||(this.parseError=!0),this.state="file"):P(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":P(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===m("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,g;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},B.prototype["parse no scheme"]=function(e){return null===this.base||k(this.base)&&e!==m("#")?g:(k(this.base)&&e===m("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},B.prototype["parse special relative or authority"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},B.prototype["parse path or authority"]=function(e){return e===m("/")?this.state="authority":(this.state="path",--this.pointer),!0},B.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===m("/")?this.state="relative slash":P(this.url)&&e===m("\\")?(this.parseError=!0,this.state="relative slash"):(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,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},B.prototype["parse relative slash"]=function(e){return!P(this.url)||e!==m("/")&&e!==m("\\")?e===m("/")?this.state="authority":(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):(e===m("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},B.prototype["parse special authority slashes"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},B.prototype["parse special authority ignore slashes"]=function(e){return e!==m("/")&&e!==m("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},B.prototype["parse authority"]=function(e,t){if(e===m("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const e=b(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===m(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const r=o(e,f);this.passwordTokenSeenFlag?this.url.password+=r:this.url.username+=r}this.buffer=""}else if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||P(this.url)&&e===m("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,g;this.pointer-=b(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},B.prototype["parse hostname"]=B.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(e!==m(":")||this.arrFlag)if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||P(this.url)&&e===m("\\")){if(--this.pointer,P(this.url)&&""===this.buffer)return this.parseError=!0,g;if(this.stateOverride&&""===this.buffer&&(_(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=F(this.buffer,S(this.url));if(e===g)return g;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===m("[")?this.arrFlag=!0:e===m("]")&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,g;if("hostname"===this.stateOverride)return!1;const e=F(this.buffer,S(this.url));if(e===g)return g;this.url.host=e,this.buffer="",this.state="port"}return!0},B.prototype["parse port"]=function(e,t){if(n.isASCIIDigit(e))this.buffer+=t;else{if(!(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||P(this.url)&&e===m("\\")||this.stateOverride))return this.parseError=!0,g;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,g;this.url.port=e===w(this.url.scheme)?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const O=new Set([m("/"),m("\\"),m("?"),m("#")]);function N(e,t){const r=e.length-t;return r>=2&&(s=e[t],i=e[t+1],n.isASCIIAlpha(s)&&(i===m(":")||i===m("|")))&&(2===r||O.has(e[t+2]));var s,i}function M(e){if(k(e))return e.path;let t="";for(const r of e.path)t+=`/${r}`;return t}B.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,N(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):I(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},B.prototype["parse file slash"]=function(e){var t;return e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!N(this.input,this.pointer)&&2===(t=this.base.path[0]).length&&n.isASCIIAlpha(t.codePointAt(0))&&":"===t[1]&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},B.prototype["parse file host"]=function(e,t){if(isNaN(e)||e===m("/")||e===m("\\")||e===m("?")||e===m("#"))if(--this.pointer,!this.stateOverride&&x(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 e=F(this.buffer,S(this.url));if(e===g)return g;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},B.prototype["parse path start"]=function(e){return P(this.url)?(e===m("\\")&&(this.parseError=!0),this.state="path",e!==m("/")&&e!==m("\\")&&--this.pointer):this.stateOverride||e!==m("?")?this.stateOverride||e!==m("#")?void 0!==e?(this.state="path",e!==m("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},B.prototype["parse path"]=function(e){var t;return isNaN(e)||e===m("/")||P(this.url)&&e===m("\\")||!this.stateOverride&&(e===m("?")||e===m("#"))?(P(this.url)&&e===m("\\")&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(I(this.url),e===m("/")||P(this.url)&&e===m("\\")||this.url.path.push("")):!A(this.buffer)||e===m("/")||P(this.url)&&e===m("\\")?A(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&x(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="",e===m("?")&&(this.url.query="",this.state="query"),e===m("#")&&(this.url.fragment="",this.state="fragment")):(e!==m("%")||n.isASCIIHex(this.input[this.pointer+1])&&n.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=o(e,d)),!0},B.prototype["parse opaque path"]=function(e){return e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):(isNaN(e)||e===m("%")||(this.parseError=!0),e!==m("%")||n.isASCIIHex(this.input[this.pointer+1])&&n.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path+=o(e,l))),!0},B.prototype["parse query"]=function(e,t){if(P(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&e===m("#")||isNaN(e)){const t=P(this.url)?h:p;this.url.query+=u(this.buffer,t),this.buffer="",e===m("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(e)||(e!==m("%")||n.isASCIIHex(this.input[this.pointer+1])&&n.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t);return!0},B.prototype["parse fragment"]=function(e){return isNaN(e)||(e!==m("%")||n.isASCIIHex(this.input[this.pointer+1])&&n.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=o(e,c)),!0},e.exports.serializeURL=function(e,t){let r=`${e.scheme}:`;return null!==e.host&&(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=`:${e.password}`),r+="@"),r+=D(e.host),null!==e.port&&(r+=`:${e.port}`)),null===e.host&&!k(e)&&e.path.length>1&&""===e.path[0]&&(r+="/."),r+=M(e),null!==e.query&&(r+=`?${e.query}`),t||null===e.fragment||(r+=`#${e.fragment}`),r},e.exports.serializePath=M,e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":{const r=e.exports.parseURL(M(t));return null===r||"http"!==r.scheme&&"https"!==r.scheme?"null":e.exports.serializeURLOrigin(r)}case"ftp":case"http":case"https":case"ws":case"wss":return function(e){let t=`${e.scheme}://`;return t+=D(e.host),null!==e.port&&(t+=`:${e.port}`),t}({scheme:t.scheme,host:t.host,port:t.port});default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const r=new B(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?null:r.url},e.exports.setTheUsername=function(e,t){e.username=u(t,f)},e.exports.setThePassword=function(e,t){e.password=u(t,f)},e.exports.serializeHost=D,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||"file"===e.scheme},e.exports.hasAnOpaquePath=k,e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,r){return void 0===r&&(r={}),e.exports.basicURLParse(t,{baseURL:r.baseURL,encodingOverride:r.encodingOverride})}},55189:(e,t,r)=>{"use strict";const{utf8Encode:s,utf8DecodeWithoutBOM:n}=r(92611),{percentDecodeBytes:i,utf8PercentEncodeString:a,isURLEncodedPercentEncode:o}=r(63820);function u(e){return e.codePointAt(0)}function l(e,t,r){let s=e.indexOf(t);for(;s>=0;)e[s]=r,s=e.indexOf(t,s+1);return e}e.exports={parseUrlencodedString:function(e){return function(e){const t=function(e,t){const r=[];let s=0,n=e.indexOf(t);for(;n>=0;)r.push(e.slice(s,n)),s=n+1,n=e.indexOf(t,s);return s!==e.length&&r.push(e.slice(s)),r}(e,u("&")),r=[];for(const e of t){if(0===e.length)continue;let t,s;const a=e.indexOf(u("="));a>=0?(t=e.slice(0,a),s=e.slice(a+1)):(t=e,s=new Uint8Array(0)),t=l(t,43,32),s=l(s,43,32);const o=n(i(t)),c=n(i(s));r.push([o,c])}return r}(s(e))},serializeUrlencoded:function(e,t=void 0){let r="utf-8";void 0!==t&&(r=t);let s="";for(const[t,n]of e.entries()){const e=a(n[0],o,!0);let i=n[1];n.length>2&&void 0!==n[2]&&("hidden"===n[2]&&"_charset_"===e?i=r:"file"===n[2]&&(i=i.name)),i=a(i,o,!0),0!==t&&(s+="&"),s+=`${e}=${i}`}return s}}},27514:(e,t)=>{"use strict";const r=Function.prototype.call.bind(Object.prototype.hasOwnProperty),s=Symbol("wrapper"),n=Symbol("impl"),i=Symbol("SameObject caches"),a=Symbol.for("[webidl2js] constructor registry"),o=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);function u(e){if(r(e,a))return e[a];const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype,t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=o}return e[a]=t,t}function l(e){return e?e[s]:null}function c(e){return e?e[n]:null}const p=Symbol("internal"),h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,d=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),y=Symbol("supported property names"),g=Symbol("indexed property get"),b=Symbol("indexed property set new"),E=Symbol("indexed property set existing"),A=Symbol("named property get"),x=Symbol("named property set new"),v=Symbol("named property set existing"),C=Symbol("named property delete"),P=Symbol("async iterator get the next iteration result"),S=Symbol("async iterator return steps"),w=Symbol("async iterator initialization steps"),T=Symbol("async iterator end of iteration");e.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:r,define:function(e,t){for(const r of Reflect.ownKeys(t)){const s=Reflect.getOwnPropertyDescriptor(t,r);if(s&&!Reflect.defineProperty(e,r,s))throw new TypeError(`Cannot redefine property: ${String(r)}`)}},newObjectInRealm:function(e,t){const r=u(e);return Object.defineProperties(Object.create(r["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))},wrapperSymbol:s,implSymbol:n,getSameObject:function(e,t,r){return e[i]||(e[i]=Object.create(null)),t in e[i]||(e[i][t]=r()),e[i][t]},ctorRegistrySymbol:a,initCtorRegistry:u,wrapperForImpl:l,implForWrapper:c,tryWrapperForImpl:function(e){return l(e)||e},tryImplForWrapper:function(e){return c(e)||e},iterInternalSymbol:p,isArrayBuffer:function(e){try{return h.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;const t=e>>>0;return t!==2**32-1&&e===`${t}`},supportsPropertyIndex:d,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:y,indexedGet:g,indexedSetNew:b,indexedSetExisting:E,namedGet:A,namedSetNew:x,namedSetExisting:v,namedDelete:C,asyncIteratorNext:P,asyncIteratorReturn:S,asyncIteratorInit:w,asyncIteratorEOI:T,iteratorResult:function([e,t],r){let s;switch(r){case"key":s=e;break;case"value":s=t;break;case"key+value":s=[e,t]}return{value:s,done:!1}}}},70483:(e,t,r)=>{"use strict";const s=r(99970),n=r(92084);t.URL=s,t.URLSearchParams=n},8112:e=>{var t=1e3,r=60*t,s=60*r,n=24*s;function i(e,t,r,s){var n=t>=1.5*r;return Math.round(e/r)+" "+s+(n?"s":"")}e.exports=function(e,a){a=a||{};var o,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*n;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===l&&isFinite(e))return a.long?(o=e,(u=Math.abs(o))>=n?i(o,u,n,"day"):u>=s?i(o,u,s,"hour"):u>=r?i(o,u,r,"minute"):u>=t?i(o,u,t,"second"):o+" ms"):function(e){var i=Math.abs(e);return i>=n?Math.round(e/n)+"d":i>=s?Math.round(e/s)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},75962:function(e){e.exports=function(){"use strict";var e=Object.prototype.toString,t=Array.isArray||function(t){return"[object Array]"===e.call(t)};function r(e){return"function"==typeof e}function s(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function n(e,t){return null!=e&&"object"==typeof e&&t in e}var i=RegExp.prototype.test;var a=/\S/;function o(e){return!function(e,t){return i.call(e,t)}(a,e)}var u={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var l=/\s*/,c=/\s+/,p=/\s*=/,h=/\s*\}/,d=/#|\^|\/|>|\{|&|=|!/;function f(e){this.string=e,this.tail=e,this.pos=0}function m(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}f.prototype.eos=function(){return""===this.tail},f.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var r=t[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r},f.prototype.scanUntil=function(e){var t,r=this.tail.search(e);switch(r){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=t.length,t},m.prototype.push=function(e){return new m(e,this)},m.prototype.lookup=function(e){var t,s,i,a=this.cache;if(a.hasOwnProperty(e))t=a[e];else{for(var o,u,l,c=this,p=!1;c;){if(e.indexOf(".")>0)for(o=c.view,u=e.split("."),l=0;null!=o&&l<u.length;)l===u.length-1&&(p=n(o,u[l])||(s=o,i=u[l],null!=s&&"object"!=typeof s&&s.hasOwnProperty&&s.hasOwnProperty(i))),o=o[u[l++]];else o=c.view[e],p=n(c.view,e);if(p){t=o;break}c=c.parent}a[e]=t}return r(t)&&(t=t.call(this.view)),t},y.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},y.prototype.parse=function(e,r){var n=this.templateCache,i=e+":"+(r||g.tags).join(":"),a=void 0!==n,u=a?n.get(i):void 0;return null==u&&(u=function(e,r){if(!e)return[];var n,i,a,u=!1,m=[],y=[],b=[],E=!1,A=!1,x="",v=0;function C(){if(E&&!A)for(;b.length;)delete y[b.pop()];else b=[];E=!1,A=!1}function P(e){if("string"==typeof e&&(e=e.split(c,2)),!t(e)||2!==e.length)throw new Error("Invalid tags: "+e);n=new RegExp(s(e[0])+"\\s*"),i=new RegExp("\\s*"+s(e[1])),a=new RegExp("\\s*"+s("}"+e[1]))}P(r||g.tags);for(var S,w,T,F,D,I,_=new f(e);!_.eos();){if(S=_.pos,T=_.scanUntil(n))for(var k=0,B=T.length;k<B;++k)o(F=T.charAt(k))?(b.push(y.length),x+=F):(A=!0,u=!0,x+=" "),y.push(["text",F,S,S+1]),S+=1,"\n"===F&&(C(),x="",v=0,u=!1);if(!_.scan(n))break;if(E=!0,w=_.scan(d)||"name",_.scan(l),"="===w?(T=_.scanUntil(p),_.scan(p),_.scanUntil(i)):"{"===w?(T=_.scanUntil(a),_.scan(h),_.scanUntil(i),w="&"):T=_.scanUntil(i),!_.scan(i))throw new Error("Unclosed tag at "+_.pos);if(D=">"==w?[w,T,S,_.pos,x,v,u]:[w,T,S,_.pos],v++,y.push(D),"#"===w||"^"===w)m.push(D);else if("/"===w){if(!(I=m.pop()))throw new Error('Unopened section "'+T+'" at '+S);if(I[1]!==T)throw new Error('Unclosed section "'+I[1]+'" at '+S)}else"name"===w||"{"===w||"&"===w?A=!0:"="===w&&P(T)}if(C(),I=m.pop())throw new Error('Unclosed section "'+I[1]+'" at '+_.pos);return function(e){for(var t,r=[],s=r,n=[],i=0,a=e.length;i<a;++i)switch((t=e[i])[0]){case"#":case"^":s.push(t),n.push(t),s=t[4]=[];break;case"/":n.pop()[5]=t[2],s=n.length>0?n[n.length-1][4]:r;break;default:s.push(t)}return r}(function(e){for(var t,r,s=[],n=0,i=e.length;n<i;++n)(t=e[n])&&("text"===t[0]&&r&&"text"===r[0]?(r[1]+=t[1],r[3]=t[3]):(s.push(t),r=t));return s}(y))}(e,r),a&&n.set(i,u)),u},y.prototype.render=function(e,t,r,s){var n=this.getConfigTags(s),i=this.parse(e,n),a=t instanceof m?t:new m(t,void 0);return this.renderTokens(i,a,r,e,s)},y.prototype.renderTokens=function(e,t,r,s,n){for(var i,a,o,u="",l=0,c=e.length;l<c;++l)o=void 0,"#"===(a=(i=e[l])[0])?o=this.renderSection(i,t,r,s,n):"^"===a?o=this.renderInverted(i,t,r,s,n):">"===a?o=this.renderPartial(i,t,r,n):"&"===a?o=this.unescapedValue(i,t):"name"===a?o=this.escapedValue(i,t,n):"text"===a&&(o=this.rawValue(i)),void 0!==o&&(u+=o);return u},y.prototype.renderSection=function(e,s,n,i,a){var o=this,u="",l=s.lookup(e[1]);if(l){if(t(l))for(var c=0,p=l.length;c<p;++c)u+=this.renderTokens(e[4],s.push(l[c]),n,i,a);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)u+=this.renderTokens(e[4],s.push(l),n,i,a);else if(r(l)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(s.view,i.slice(e[3],e[5]),(function(e){return o.render(e,s,n,a)})))&&(u+=l)}else u+=this.renderTokens(e[4],s,n,i,a);return u}},y.prototype.renderInverted=function(e,r,s,n,i){var a=r.lookup(e[1]);if(!a||t(a)&&0===a.length)return this.renderTokens(e[4],r,s,n,i)},y.prototype.indentPartial=function(e,t,r){for(var s=t.replace(/[^ \t]/g,""),n=e.split("\n"),i=0;i<n.length;i++)n[i].length&&(i>0||!r)&&(n[i]=s+n[i]);return n.join("\n")},y.prototype.renderPartial=function(e,t,s,n){if(s){var i=this.getConfigTags(n),a=r(s)?s(e[1]):s[e[1]];if(null!=a){var o=e[6],u=e[5],l=e[4],c=a;0==u&&l&&(c=this.indentPartial(a,l,o));var p=this.parse(c,i);return this.renderTokens(p,t,s,c,n)}}},y.prototype.unescapedValue=function(e,t){var r=t.lookup(e[1]);if(null!=r)return r},y.prototype.escapedValue=function(e,t,r){var s=this.getConfigEscape(r)||g.escape,n=t.lookup(e[1]);if(null!=n)return"number"==typeof n&&s===g.escape?String(n):s(n)},y.prototype.rawValue=function(e){return e[1]},y.prototype.getConfigTags=function(e){return t(e)?e:e&&"object"==typeof e?e.tags:void 0},y.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!t(e)?e.escape:void 0};var g={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){b.templateCache=e},get templateCache(){return b.templateCache}},b=new y;return g.clearCache=function(){return b.clearCache()},g.parse=function(e,t){return b.parse(e,t)},g.render=function(e,r,s,n){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((t(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)'));var i;return b.render(e,r,s,n)},g.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return u[e]}))},g.Scanner=f,g.Context=m,g.Writer=y,g}()},38690:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach((function(e){s[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},s)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,a,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))r.call(i,l)&&(o[l]=i[l]);if(t){a=t(i);for(var c=0;c<a.length;c++)s.call(i,a[c])&&(o[a[c]]=i[a[c]])}}return o}},51482:(e,t,r)=>{"use strict";var s=r(21161);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,i,a){if(a!==s){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return r.PropTypes=r,r}},91998:(e,t,r)=>{e.exports=r(51482)()},21161:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},77116:(e,t,r)=>{"use strict";var s=r(99497),n=r(38690),i=r(95695);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!s)throw Error(a(227));var o=new Set,u={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)o.add(t[e])}var p=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,f={},m={};function y(e,t,r,s,n,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=s,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function E(e){return e[1].toUpperCase()}function A(e,t,r,s){var n=g.hasOwnProperty(t)?g[t]:null;(null!==n?0===n.type:!s&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,r,s){if(null==t||function(e,t,r,s){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!s&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,s))return!0;if(s)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,n,s)&&(r=null),s||null===n?function(e){return!!d.call(m,e)||!d.call(f,e)&&(h.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=null===r?3!==n.type&&"":r:(t=n.attributeName,s=n.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(n=n.type)||4===n&&!0===r?"":""+r,s?e.setAttributeNS(s,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,E);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,E);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,E);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=60103,C=60106,P=60107,S=60108,w=60114,T=60109,F=60110,D=60112,I=60113,_=60120,k=60115,B=60116,O=60121,N=60128,M=60129,L=60130,R=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;v=j("react.element"),C=j("react.portal"),P=j("react.fragment"),S=j("react.strict_mode"),w=j("react.profiler"),T=j("react.provider"),F=j("react.context"),D=j("react.forward_ref"),I=j("react.suspense"),_=j("react.suspense_list"),k=j("react.memo"),B=j("react.lazy"),O=j("react.block"),j("react.scope"),N=j("react.opaque.id"),M=j("react.debug_trace_mode"),L=j("react.offscreen"),R=j("react.legacy_hidden")}var U,V="function"==typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function z(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var q=!1;function W(e,t){if(!e||q)return"";q=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var s=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){s=e}e.call(t.prototype)}else{try{throw Error()}catch(e){s=e}e()}}catch(e){if(e&&s&&"string"==typeof e.stack){for(var n=e.stack.split("\n"),i=s.stack.split("\n"),a=n.length-1,o=i.length-1;1<=a&&0<=o&&n[a]!==i[o];)o--;for(;1<=a&&0<=o;a--,o--)if(n[a]!==i[o]){if(1!==a||1!==o)do{if(a--,0>--o||n[a]!==i[o])return"\n"+n[a].replace(" at new "," at ")}while(1<=a&&0<=o);break}}}finally{q=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function K(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 22:return W(e.type._render,!1);case 1:return W(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P:return"Fragment";case C:return"Portal";case w:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case _:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case F:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case k:return H(e.type);case O:return H(e._render);case B:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function J(e){e._valueTracker||(e._valueTracker=function(e){var t=X(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(e){s=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(e){s=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=X(e)?e.checked?"true":"false":e.value),(e=s)!==r&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var r=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,s=null!=t.checked?t.checked:t.defaultChecked;r=G(null!=t.value?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&A(e,"checked",t,!1)}function re(e,t){te(e,t);var r=G(t.value),s=t.type;if(null!=r)"number"===s?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===s||"reset"===s)return void e.removeAttribute("value");t.hasOwnProperty("value")?ne(e,t.type,r):t.hasOwnProperty("defaultValue")&&ne(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function se(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!("submit"!==s&&"reset"!==s||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ne(e,t,r){"number"===t&&Q(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function ie(e,t){return e=n({children:void 0},t),(t=function(e){var t="";return s.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,r,s){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&s&&(e[r].defaultSelected=!0)}else{for(r=""+G(r),t=null,n=0;n<e.length;n++){if(e[n].value===r)return e[n].selected=!0,void(s&&(e[n].defaultSelected=!0));null!==t||e[n].disabled||(t=e[n])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return n({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:G(r)}}function le(e,t){var r=G(t.value),s=G(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=s&&(e.defaultValue=""+s)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var pe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function de(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var fe,me,ye=(me=function(e,t){if(e.namespaceURI!==pe.svg||"innerHTML"in e)e.innerHTML=t;else{for((fe=fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,s){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ge(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ee=["Webkit","ms","Moz","O"];function Ae(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function xe(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var s=0===r.indexOf("--"),n=Ae(r,t[r],s);"float"===r&&(r="cssFloat"),s?e.setProperty(r,n):e[r]=n}}Object.keys(be).forEach((function(e){Ee.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var ve=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ce(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Pe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Te=null,Fe=null;function De(e){if(e=en(e)){if("function"!=typeof we)throw Error(a(280));var t=e.stateNode;t&&(t=rn(t),we(e.stateNode,e.type,t))}}function Ie(e){Te?Fe?Fe.push(e):Fe=[e]:Te=e}function _e(){if(Te){var e=Te,t=Fe;if(Fe=Te=null,De(e),t)for(e=0;e<t.length;e++)De(t[e])}}function ke(e,t){return e(t)}function Be(e,t,r,s,n){return e(t,r,s,n)}function Oe(){}var Ne=ke,Me=!1,Le=!1;function Re(){null===Te&&null===Fe||(Oe(),_e())}function je(e,t){var r=e.stateNode;if(null===r)return null;var s=rn(r);if(null===s)return null;r=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(s=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!s;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(a(231,t,typeof r));return r}var Ue=!1;if(p)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(me){Ue=!1}function $e(e,t,r,s,n,i,a,o,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(e){this.onError(e)}}var ze=!1,qe=null,We=!1,Ke=null,He={onError:function(e){ze=!0,qe=e}};function Ge(e,t,r,s,n,i,a,o,u){ze=!1,qe=null,$e.apply(He,arguments)}function Xe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ye(e){if(Xe(e)!==e)throw Error(a(188))}function Qe(e,t){for(var r=e.alternate;null!==t;){if(t===e||t===r)return!0;t=t.return}return!1}var Ze,et,tt,rt,st=!1,nt=[],it=null,at=null,ot=null,ut=new Map,lt=new Map,ct=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,r,s,n){return{blockedOn:e,domEventName:t,eventSystemFlags:16|r,nativeEvent:n,targetContainers:[s]}}function dt(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":ot=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lt.delete(t.pointerId)}}function ft(e,t,r,s,n,i){return null===e||e.nativeEvent!==i?(e=ht(t,r,s,n,i),null!==t&&null!==(t=en(t))&&et(t),e):(e.eventSystemFlags|=s,t=e.targetContainers,null!==n&&-1===t.indexOf(n)&&t.push(n),e)}function mt(e){var t=Zs(e.target);if(null!==t){var r=Xe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Je(r)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){tt(r)}))}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=en(r))&&et(t),e.blockedOn=r,!1;t.shift()}return!0}function gt(e,t,r){yt(e)&&r.delete(t)}function bt(){for(st=!1;0<nt.length;){var e=nt[0];if(null!==e.blockedOn){null!==(e=en(e.blockedOn))&&Ze(e);break}for(var t=e.targetContainers;0<t.length;){var r=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r){e.blockedOn=r;break}t.shift()}null===e.blockedOn&&nt.shift()}null!==it&&yt(it)&&(it=null),null!==at&&yt(at)&&(at=null),null!==ot&&yt(ot)&&(ot=null),ut.forEach(gt),lt.forEach(gt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,st||(st=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function At(e){function t(t){return Et(t,e)}if(0<nt.length){Et(nt[0],e);for(var r=1;r<nt.length;r++){var s=nt[r];s.blockedOn===e&&(s.blockedOn=null)}}for(null!==it&&Et(it,e),null!==at&&Et(at,e),null!==ot&&Et(ot,e),ut.forEach(t),lt.forEach(t),r=0;r<ct.length;r++)(s=ct[r]).blockedOn===e&&(s.blockedOn=null);for(;0<ct.length&&null===(r=ct[0]).blockedOn;)mt(r),null===r.blockedOn&&ct.shift()}function xt(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vt={animationend:xt("Animation","AnimationEnd"),animationiteration:xt("Animation","AnimationIteration"),animationstart:xt("Animation","AnimationStart"),transitionend:xt("Transition","TransitionEnd")},Ct={},Pt={};function St(e){if(Ct[e])return Ct[e];if(!vt[e])return e;var t,r=vt[e];for(t in r)if(r.hasOwnProperty(t)&&t in Pt)return Ct[e]=r[t];return e}p&&(Pt=document.createElement("div").style,"AnimationEvent"in window||(delete vt.animationend.animation,delete vt.animationiteration.animation,delete vt.animationstart.animation),"TransitionEvent"in window||delete vt.transitionend.transition);var wt=St("animationend"),Tt=St("animationiteration"),Ft=St("animationstart"),Dt=St("transitionend"),It=new Map,_t=new Map,kt=["abort","abort",wt,"animationEnd",Tt,"animationIteration",Ft,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dt,"transitionEnd","waiting","waiting"];function Bt(e,t){for(var r=0;r<e.length;r+=2){var s=e[r],n=e[r+1];n="on"+(n[0].toUpperCase()+n.slice(1)),_t.set(s,t),It.set(s,n),l(n,[s])}}(0,i.unstable_now)();var Ot=8;function Nt(e){if(0!=(1&e))return Ot=15,1;if(0!=(2&e))return Ot=14,2;if(0!=(4&e))return Ot=13,4;var t=24&e;return 0!==t?(Ot=12,t):0!=(32&e)?(Ot=11,32):0!=(t=192&e)?(Ot=10,t):0!=(256&e)?(Ot=9,256):0!=(t=3584&e)?(Ot=8,t):0!=(4096&e)?(Ot=7,4096):0!=(t=4186112&e)?(Ot=6,t):0!=(t=62914560&e)?(Ot=5,t):67108864&e?(Ot=4,67108864):0!=(134217728&e)?(Ot=3,134217728):0!=(t=805306368&e)?(Ot=2,t):0!=(1073741824&e)?(Ot=1,1073741824):(Ot=8,e)}function Mt(e,t){var r=e.pendingLanes;if(0===r)return Ot=0;var s=0,n=0,i=e.expiredLanes,a=e.suspendedLanes,o=e.pingedLanes;if(0!==i)s=i,n=Ot=15;else if(0!=(i=134217727&r)){var u=i&~a;0!==u?(s=Nt(u),n=Ot):0!=(o&=i)&&(s=Nt(o),n=Ot)}else 0!=(i=r&~a)?(s=Nt(i),n=Ot):0!==o&&(s=Nt(o),n=Ot);if(0===s)return 0;if(s=r&((0>(s=31-$t(s))?0:1<<s)<<1)-1,0!==t&&t!==s&&0==(t&a)){if(Nt(t),n<=Ot)return t;Ot=n}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=s;0<t;)n=1<<(r=31-$t(t)),s|=e[r],t&=~n;return s}function Lt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Rt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?Rt(10,t):e;case 10:return 0===(e=jt(192&~t))?Rt(8,t):e;case 8:return 0===(e=jt(3584&~t))&&0===(e=jt(4186112&~t))&&(e=512),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function jt(e){return e&-e}function Ut(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Vt(e,t,r){e.pendingLanes|=t;var s=t-1;e.suspendedLanes&=s,e.pingedLanes&=s,(e=e.eventTimes)[t=31-$t(t)]=r}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(zt(e)/qt|0)|0},zt=Math.log,qt=Math.LN2,Wt=i.unstable_UserBlockingPriority,Kt=i.unstable_runWithPriority,Ht=!0;function Gt(e,t,r,s){Me||Oe();var n=Jt,i=Me;Me=!0;try{Be(n,e,t,r,s)}finally{(Me=i)||Re()}}function Xt(e,t,r,s){Kt(Wt,Jt.bind(null,e,t,r,s))}function Jt(e,t,r,s){var n;if(Ht)if((n=0==(4&t))&&0<nt.length&&-1<pt.indexOf(e))e=ht(null,e,t,r,s),nt.push(e);else{var i=Yt(e,t,r,s);if(null===i)n&&dt(e,s);else{if(n){if(-1<pt.indexOf(e))return e=ht(i,e,t,r,s),void nt.push(e);if(function(e,t,r,s,n){switch(t){case"focusin":return it=ft(it,e,t,r,s,n),!0;case"dragenter":return at=ft(at,e,t,r,s,n),!0;case"mouseover":return ot=ft(ot,e,t,r,s,n),!0;case"pointerover":var i=n.pointerId;return ut.set(i,ft(ut.get(i)||null,e,t,r,s,n)),!0;case"gotpointercapture":return i=n.pointerId,lt.set(i,ft(lt.get(i)||null,e,t,r,s,n)),!0}return!1}(i,e,t,r,s))return;dt(e,s)}ks(e,t,s,null,r)}}}function Yt(e,t,r,s){var n=Se(s);if(null!==(n=Zs(n))){var i=Xe(n);if(null===i)n=null;else{var a=i.tag;if(13===a){if(null!==(n=Je(i)))return n;n=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return ks(e,t,s,n,r),null}var Qt=null,Zt=null,er=null;function tr(){if(er)return er;var e,t,r=Zt,s=r.length,n="value"in Qt?Qt.value:Qt.textContent,i=n.length;for(e=0;e<s&&r[e]===n[e];e++);var a=s-e;for(t=1;t<=a&&r[s-t]===n[i-t];t++);return er=n.slice(e,1<t?1-t:void 0)}function rr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sr(){return!0}function nr(){return!1}function ir(e){function t(t,r,s,n,i){for(var a in this._reactName=t,this._targetInst=s,this.type=r,this.nativeEvent=n,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(n):n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?sr:nr,this.isPropagationStopped=nr,this}return n(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sr)},persist:function(){},isPersistent:sr}),t}var ar,or,ur,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=ir(lr),pr=n({},lr,{view:0,detail:0}),hr=ir(pr),dr=n({},pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ur&&(ur&&"mousemove"===e.type?(ar=e.screenX-ur.screenX,or=e.screenY-ur.screenY):or=ar=0,ur=e),ar)},movementY:function(e){return"movementY"in e?e.movementY:or}}),fr=ir(dr),mr=ir(n({},dr,{dataTransfer:0})),yr=ir(n({},pr,{relatedTarget:0})),gr=ir(n({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),br=n({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Er=ir(br),Ar=ir(n({},lr,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function Sr(){return Pr}var wr=n({},pr,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?vr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sr,charCode:function(e){return"keypress"===e.type?rr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tr=ir(wr),Fr=ir(n({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dr=ir(n({},pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sr})),Ir=ir(n({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),_r=n({},dr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kr=ir(_r),Br=[9,13,27,32],Or=p&&"CompositionEvent"in window,Nr=null;p&&"documentMode"in document&&(Nr=document.documentMode);var Mr=p&&"TextEvent"in window&&!Nr,Lr=p&&(!Or||Nr&&8<Nr&&11>=Nr),Rr=String.fromCharCode(32),jr=!1;function Ur(e,t){switch(e){case"keyup":return-1!==Br.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $r=!1,zr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Wr(e,t,r,s){Ie(s),0<(t=Os(t,"onChange")).length&&(r=new cr("onChange","change",null,r,s),e.push({event:r,listeners:t}))}var Kr=null,Hr=null;function Gr(e){ws(e,0)}function Xr(e){if(Y(tn(e)))return e}function Jr(e,t){if("change"===e)return t}var Yr=!1;if(p){var Qr;if(p){var Zr="oninput"in document;if(!Zr){var es=document.createElement("div");es.setAttribute("oninput","return;"),Zr="function"==typeof es.oninput}Qr=Zr}else Qr=!1;Yr=Qr&&(!document.documentMode||9<document.documentMode)}function ts(){Kr&&(Kr.detachEvent("onpropertychange",rs),Hr=Kr=null)}function rs(e){if("value"===e.propertyName&&Xr(Hr)){var t=[];if(Wr(t,Hr,e,Se(e)),e=Gr,Me)e(t);else{Me=!0;try{ke(e,t)}finally{Me=!1,Re()}}}}function ss(e,t,r){"focusin"===e?(ts(),Hr=r,(Kr=t).attachEvent("onpropertychange",rs)):"focusout"===e&&ts()}function ns(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xr(Hr)}function is(e,t){if("click"===e)return Xr(t)}function as(e,t){if("input"===e||"change"===e)return Xr(t)}var os="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},us=Object.prototype.hasOwnProperty;function ls(e,t){if(os(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++)if(!us.call(t,r[s])||!os(e[r[s]],t[r[s]]))return!1;return!0}function cs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ps(e,t){var r,s=cs(e);for(e=0;s;){if(3===s.nodeType){if(r=e+s.textContent.length,e<=t&&r>=t)return{node:s,offset:t-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=cs(s)}}function hs(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hs(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ds(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Q((e=t.contentWindow).document)}return t}function fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ms=p&&"documentMode"in document&&11>=document.documentMode,ys=null,gs=null,bs=null,Es=!1;function As(e,t,r){var s=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;Es||null==ys||ys!==Q(s)||(s="selectionStart"in(s=ys)&&fs(s)?{start:s.selectionStart,end:s.selectionEnd}:{anchorNode:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset},bs&&ls(bs,s)||(bs=s,0<(s=Os(gs,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:s}),t.target=ys)))}Bt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Bt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Bt(kt,2);for(var xs="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),vs=0;vs<xs.length;vs++)_t.set(xs[vs],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ps=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cs));function Ss(e,t,r){var s=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,s,n,i,o,u,l){if(Ge.apply(this,arguments),ze){if(!ze)throw Error(a(198));var c=qe;ze=!1,qe=null,We||(We=!0,Ke=c)}}(s,t,void 0,e),e.currentTarget=null}function ws(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var s=e[r],n=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var a=s.length-1;0<=a;a--){var o=s[a],u=o.instance,l=o.currentTarget;if(o=o.listener,u!==i&&n.isPropagationStopped())break e;Ss(n,o,l),i=u}else for(a=0;a<s.length;a++){if(u=(o=s[a]).instance,l=o.currentTarget,o=o.listener,u!==i&&n.isPropagationStopped())break e;Ss(n,o,l),i=u}}}if(We)throw e=Ke,We=!1,Ke=null,e}function Ts(e,t){var r=sn(t),s=e+"__bubble";r.has(s)||(_s(t,e,2,!1),r.add(s))}var Fs="_reactListening"+Math.random().toString(36).slice(2);function Ds(e){e[Fs]||(e[Fs]=!0,o.forEach((function(t){Ps.has(t)||Is(t,!1,e,null),Is(t,!0,e,null)})))}function Is(e,t,r,s){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=r;if("selectionchange"===e&&9!==r.nodeType&&(i=r.ownerDocument),null!==s&&!t&&Ps.has(e)){if("scroll"!==e)return;n|=2,i=s}var a=sn(i),o=e+"__"+(t?"capture":"bubble");a.has(o)||(t&&(n|=4),_s(i,e,n,t),a.add(o))}function _s(e,t,r,s){var n=_t.get(t);switch(void 0===n?2:n){case 0:n=Gt;break;case 1:n=Xt;break;default:n=Jt}r=n.bind(null,t,r,e),n=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(n=!0),s?void 0!==n?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):void 0!==n?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function ks(e,t,r,s,n){var i=s;if(0==(1&t)&&0==(2&t)&&null!==s)e:for(;;){if(null===s)return;var a=s.tag;if(3===a||4===a){var o=s.stateNode.containerInfo;if(o===n||8===o.nodeType&&o.parentNode===n)break;if(4===a)for(a=s.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===n||8===u.nodeType&&u.parentNode===n))return;a=a.return}for(;null!==o;){if(null===(a=Zs(o)))return;if(5===(u=a.tag)||6===u){s=i=a;continue e}o=o.parentNode}}s=s.return}!function(e,t,r){if(Le)return e();Le=!0;try{return Ne(e,t,r)}finally{Le=!1,Re()}}((function(){var s=i,n=Se(r),a=[];e:{var o=It.get(e);if(void 0!==o){var u=cr,l=e;switch(e){case"keypress":if(0===rr(r))break e;case"keydown":case"keyup":u=Tr;break;case"focusin":l="focus",u=yr;break;case"focusout":l="blur",u=yr;break;case"beforeblur":case"afterblur":u=yr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Dr;break;case wt:case Tt:case Ft:u=gr;break;case Dt:u=Ir;break;case"scroll":u=hr;break;case"wheel":u=kr;break;case"copy":case"cut":case"paste":u=Er;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Fr}var c=0!=(4&t),p=!c&&"scroll"===e,h=c?null!==o?o+"Capture":null:o;c=[];for(var d,f=s;null!==f;){var m=(d=f).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==h&&null!=(m=je(f,h))&&c.push(Bs(f,m,d))),p)break;f=f.return}0<c.length&&(o=new u(o,l,null,r,n),a.push({event:o,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(l=r.relatedTarget||r.fromElement)||!Zs(l)&&!l[Ys])&&(u||o)&&(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,u?(u=s,null!==(l=(l=r.relatedTarget||r.toElement)?Zs(l):null)&&(l!==(p=Xe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=s),u!==l)){if(c=fr,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Fr,m="onPointerLeave",h="onPointerEnter",f="pointer"),p=null==u?o:tn(u),d=null==l?o:tn(l),(o=new c(m,f+"leave",u,r,n)).target=p,o.relatedTarget=d,m=null,Zs(n)===s&&((c=new c(h,f+"enter",l,r,n)).target=d,c.relatedTarget=p,m=c),p=m,u&&l)e:{for(h=l,f=0,d=c=u;d;d=Ns(d))f++;for(d=0,m=h;m;m=Ns(m))d++;for(;0<f-d;)c=Ns(c),f--;for(;0<d-f;)h=Ns(h),d--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=Ns(c),h=Ns(h)}c=null}else c=null;null!==u&&Ms(a,o,u,c,!1),null!==l&&null!==p&&Ms(a,p,l,c,!0)}if("select"===(u=(o=s?tn(s):window).nodeName&&o.nodeName.toLowerCase())||"input"===u&&"file"===o.type)var y=Jr;else if(qr(o))if(Yr)y=as;else{y=ns;var g=ss}else(u=o.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(y=is);switch(y&&(y=y(e,s))?Wr(a,y,r,n):(g&&g(e,o,s),"focusout"===e&&(g=o._wrapperState)&&g.controlled&&"number"===o.type&&ne(o,"number",o.value)),g=s?tn(s):window,e){case"focusin":(qr(g)||"true"===g.contentEditable)&&(ys=g,gs=s,bs=null);break;case"focusout":bs=gs=ys=null;break;case"mousedown":Es=!0;break;case"contextmenu":case"mouseup":case"dragend":Es=!1,As(a,r,n);break;case"selectionchange":if(ms)break;case"keydown":case"keyup":As(a,r,n)}var b;if(Or)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else $r?Ur(e,r)&&(E="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(E="onCompositionStart");E&&(Lr&&"ko"!==r.locale&&($r||"onCompositionStart"!==E?"onCompositionEnd"===E&&$r&&(b=tr()):(Zt="value"in(Qt=n)?Qt.value:Qt.textContent,$r=!0)),0<(g=Os(s,E)).length&&(E=new Ar(E,e,null,r,n),a.push({event:E,listeners:g}),(b||null!==(b=Vr(r)))&&(E.data=b))),(b=Mr?function(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return 32!==t.which?null:(jr=!0,Rr);case"textInput":return(e=t.data)===Rr&&jr?null:e;default:return null}}(e,r):function(e,t){if($r)return"compositionend"===e||!Or&&Ur(e,t)?(e=tr(),er=Zt=Qt=null,$r=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(s=Os(s,"onBeforeInput")).length&&(n=new Ar("onBeforeInput","beforeinput",null,r,n),a.push({event:n,listeners:s}),n.data=b)}ws(a,t)}))}function Bs(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Os(e,t){for(var r=t+"Capture",s=[];null!==e;){var n=e,i=n.stateNode;5===n.tag&&null!==i&&(n=i,null!=(i=je(e,r))&&s.unshift(Bs(e,i,n)),null!=(i=je(e,t))&&s.push(Bs(e,i,n))),e=e.return}return s}function Ns(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ms(e,t,r,s,n){for(var i=t._reactName,a=[];null!==r&&r!==s;){var o=r,u=o.alternate,l=o.stateNode;if(null!==u&&u===s)break;5===o.tag&&null!==l&&(o=l,n?null!=(u=je(r,i))&&a.unshift(Bs(r,u,o)):n||null!=(u=je(r,i))&&a.push(Bs(r,u,o))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}function Ls(){}var Rs=null,js=null;function Us(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vs(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var $s="function"==typeof setTimeout?setTimeout:void 0,zs="function"==typeof clearTimeout?clearTimeout:void 0;function qs(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Ws(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ks(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Hs=0,Gs=Math.random().toString(36).slice(2),Xs="__reactFiber$"+Gs,Js="__reactProps$"+Gs,Ys="__reactContainer$"+Gs,Qs="__reactEvents$"+Gs;function Zs(e){var t=e[Xs];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ys]||r[Xs]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Ks(e);null!==e;){if(r=e[Xs])return r;e=Ks(e)}return t}r=(e=r).parentNode}return null}function en(e){return!(e=e[Xs]||e[Ys])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function tn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function rn(e){return e[Js]||null}function sn(e){var t=e[Qs];return void 0===t&&(t=e[Qs]=new Set),t}var nn=[],an=-1;function on(e){return{current:e}}function un(e){0>an||(e.current=nn[an],nn[an]=null,an--)}function ln(e,t){an++,nn[an]=e.current,e.current=t}var cn={},pn=on(cn),hn=on(!1),dn=cn;function fn(e,t){var r=e.type.contextTypes;if(!r)return cn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var n,i={};for(n in r)i[n]=t[n];return s&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mn(e){return null!=e.childContextTypes}function yn(){un(hn),un(pn)}function gn(e,t,r){if(pn.current!==cn)throw Error(a(168));ln(pn,t),ln(hn,r)}function bn(e,t,r){var s=e.stateNode;if(e=t.childContextTypes,"function"!=typeof s.getChildContext)return r;for(var i in s=s.getChildContext())if(!(i in e))throw Error(a(108,H(t)||"Unknown",i));return n({},r,s)}function En(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,dn=pn.current,ln(pn,e),ln(hn,hn.current),!0}function An(e,t,r){var s=e.stateNode;if(!s)throw Error(a(169));r?(e=bn(e,t,dn),s.__reactInternalMemoizedMergedChildContext=e,un(hn),un(pn),ln(pn,e)):un(hn),ln(hn,r)}var xn=null,vn=null,Cn=i.unstable_runWithPriority,Pn=i.unstable_scheduleCallback,Sn=i.unstable_cancelCallback,wn=i.unstable_shouldYield,Tn=i.unstable_requestPaint,Fn=i.unstable_now,Dn=i.unstable_getCurrentPriorityLevel,In=i.unstable_ImmediatePriority,_n=i.unstable_UserBlockingPriority,kn=i.unstable_NormalPriority,Bn=i.unstable_LowPriority,On=i.unstable_IdlePriority,Nn={},Mn=void 0!==Tn?Tn:function(){},Ln=null,Rn=null,jn=!1,Un=Fn(),Vn=1e4>Un?Fn:function(){return Fn()-Un};function $n(){switch(Dn()){case In:return 99;case _n:return 98;case kn:return 97;case Bn:return 96;case On:return 95;default:throw Error(a(332))}}function zn(e){switch(e){case 99:return In;case 98:return _n;case 97:return kn;case 96:return Bn;case 95:return On;default:throw Error(a(332))}}function qn(e,t){return e=zn(e),Cn(e,t)}function Wn(e,t,r){return e=zn(e),Pn(e,t,r)}function Kn(){if(null!==Rn){var e=Rn;Rn=null,Sn(e)}Hn()}function Hn(){if(!jn&&null!==Ln){jn=!0;var e=0;try{var t=Ln;qn(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Ln=null}catch(t){throw null!==Ln&&(Ln=Ln.slice(e+1)),Pn(In,Kn),t}finally{jn=!1}}}var Gn=x.ReactCurrentBatchConfig;function Xn(e,t){if(e&&e.defaultProps){for(var r in t=n({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var Jn=on(null),Yn=null,Qn=null,Zn=null;function ei(){Zn=Qn=Yn=null}function ti(e){var t=Jn.current;un(Jn),e.type._context._currentValue=t}function ri(e,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)===t){if(null===r||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,null!==r&&(r.childLanes|=t);e=e.return}}function si(e,t){Yn=e,Zn=Qn=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Oa=!0),e.firstContext=null)}function ni(e,t){if(Zn!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zn=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qn){if(null===Yn)throw Error(a(308));Qn=t,Yn.dependencies={lanes:0,firstContext:t,responders:null}}else Qn=Qn.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function li(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function ci(e,t){var r=e.updateQueue,s=e.alternate;if(null!==s&&r===(s=s.updateQueue)){var n=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?n=i=a:i=i.next=a,r=r.next}while(null!==r);null===i?n=i=t:i=i.next=t}else n=i=t;return r={baseState:s.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:s.shared,effects:s.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function pi(e,t,r,s){var i=e.updateQueue;ii=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var l=u,c=l.next;l.next=null,null===o?a=c:o.next=c,o=l;var p=e.alternate;if(null!==p){var h=(p=p.updateQueue).lastBaseUpdate;h!==o&&(null===h?p.firstBaseUpdate=c:h.next=c,p.lastBaseUpdate=l)}}if(null!==a){for(h=i.baseState,o=0,p=c=l=null;;){u=a.lane;var d=a.eventTime;if((s&u)===u){null!==p&&(p=p.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,m=a;switch(u=t,d=r,m.tag){case 1:if("function"==typeof(f=m.payload)){h=f.call(d,h,u);break e}h=f;break e;case 3:f.flags=-4097&f.flags|64;case 0:if(null==(u="function"==typeof(f=m.payload)?f.call(d,h,u):f))break e;h=n({},h,u);break e;case 2:ii=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else d={eventTime:d,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===p?(c=p=d,l=h):p=p.next=d,o|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===p&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=p,Ro|=o,e.lanes=o,e.memoizedState=h}}function hi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var s=e[t],n=s.callback;if(null!==n){if(s.callback=null,s=r,"function"!=typeof n)throw Error(a(191,n));n.call(s)}}}var di=(new s.Component).refs;function fi(e,t,r,s){r=null==(r=r(s,t=e.memoizedState))?t:n({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var mi={isMounted:function(e){return!!(e=e._reactInternals)&&Xe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var s=lu(),n=cu(e),i=ui(s,n);i.payload=t,null!=r&&(i.callback=r),li(e,i),pu(e,n,s)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var s=lu(),n=cu(e),i=ui(s,n);i.tag=1,i.payload=t,null!=r&&(i.callback=r),li(e,i),pu(e,n,s)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=lu(),s=cu(e),n=ui(r,s);n.tag=2,null!=t&&(n.callback=t),li(e,n),pu(e,s,r)}};function yi(e,t,r,s,n,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(s,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ls(r,s)&&ls(n,i))}function gi(e,t,r){var s=!1,n=cn,i=t.contextType;return"object"==typeof i&&null!==i?i=ni(i):(n=mn(t)?dn:pn.current,i=(s=null!=(s=t.contextTypes))?fn(e,n):cn),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,s&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function bi(e,t,r,s){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,s),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,s),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function Ei(e,t,r,s){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs=di,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?n.context=ni(i):(i=mn(t)?dn:pn.current,n.context=fn(e,i)),pi(e,r,n,s),n.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(fi(e,t,i,r),n.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof n.getSnapshotBeforeUpdate||"function"!=typeof n.UNSAFE_componentWillMount&&"function"!=typeof n.componentWillMount||(t=n.state,"function"==typeof n.componentWillMount&&n.componentWillMount(),"function"==typeof n.UNSAFE_componentWillMount&&n.UNSAFE_componentWillMount(),t!==n.state&&mi.enqueueReplaceState(n,n.state,null),pi(e,r,n,s),n.state=e.memoizedState),"function"==typeof n.componentDidMount&&(e.flags|=4)}var Ai=Array.isArray;function xi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var s=r.stateNode}if(!s)throw Error(a(147,e));var n=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===n?t.ref:(t=function(e){var t=s.refs;t===di&&(t=s.refs={}),null===e?delete t[n]:t[n]=e},t._stringRef=n,t)}if("string"!=typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function vi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ci(e){function t(t,r){if(e){var s=t.lastEffect;null!==s?(s.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,s){if(!e)return null;for(;null!==s;)t(r,s),s=s.sibling;return null}function s(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function n(e,t){return(e=$u(e,t)).index=0,e.sibling=null,e}function i(t,r,s){return t.index=s,e?null!==(s=t.alternate)?(s=s.index)<r?(t.flags=2,r):s:(t.flags=2,r):r}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,r,s){return null===t||6!==t.tag?((t=Ku(r,e.mode,s)).return=e,t):((t=n(t,r)).return=e,t)}function l(e,t,r,s){return null!==t&&t.elementType===r.type?((s=n(t,r.props)).ref=xi(e,t,r),s.return=e,s):((s=zu(r.type,r.key,r.props,null,e.mode,s)).ref=xi(e,t,r),s.return=e,s)}function c(e,t,r,s){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Hu(r,e.mode,s)).return=e,t):((t=n(t,r.children||[])).return=e,t)}function p(e,t,r,s,i){return null===t||7!==t.tag?((t=qu(r,e.mode,s,i)).return=e,t):((t=n(t,r)).return=e,t)}function h(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=Ku(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case v:return(r=zu(t.type,t.key,t.props,null,e.mode,r)).ref=xi(e,null,t),r.return=e,r;case C:return(t=Hu(t,e.mode,r)).return=e,t}if(Ai(t)||$(t))return(t=qu(t,e.mode,r,null)).return=e,t;vi(e,t)}return null}function d(e,t,r,s){var n=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==n?null:u(e,t,""+r,s);if("object"==typeof r&&null!==r){switch(r.$$typeof){case v:return r.key===n?r.type===P?p(e,t,r.props.children,s,n):l(e,t,r,s):null;case C:return r.key===n?c(e,t,r,s):null}if(Ai(r)||$(r))return null!==n?null:p(e,t,r,s,null);vi(e,r)}return null}function f(e,t,r,s,n){if("string"==typeof s||"number"==typeof s)return u(t,e=e.get(r)||null,""+s,n);if("object"==typeof s&&null!==s){switch(s.$$typeof){case v:return e=e.get(null===s.key?r:s.key)||null,s.type===P?p(t,e,s.props.children,n,s.key):l(t,e,s,n);case C:return c(t,e=e.get(null===s.key?r:s.key)||null,s,n)}if(Ai(s)||$(s))return p(t,e=e.get(r)||null,s,n,null);vi(t,s)}return null}function m(n,a,o,u){for(var l=null,c=null,p=a,m=a=0,y=null;null!==p&&m<o.length;m++){p.index>m?(y=p,p=null):y=p.sibling;var g=d(n,p,o[m],u);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&t(n,p),a=i(g,a,m),null===c?l=g:c.sibling=g,c=g,p=y}if(m===o.length)return r(n,p),l;if(null===p){for(;m<o.length;m++)null!==(p=h(n,o[m],u))&&(a=i(p,a,m),null===c?l=p:c.sibling=p,c=p);return l}for(p=s(n,p);m<o.length;m++)null!==(y=f(p,n,m,o[m],u))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=i(y,a,m),null===c?l=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(n,e)})),l}function y(n,o,u,l){var c=$(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var p=c=null,m=o,y=o=0,g=null,b=u.next();null!==m&&!b.done;y++,b=u.next()){m.index>y?(g=m,m=null):g=m.sibling;var E=d(n,m,b.value,l);if(null===E){null===m&&(m=g);break}e&&m&&null===E.alternate&&t(n,m),o=i(E,o,y),null===p?c=E:p.sibling=E,p=E,m=g}if(b.done)return r(n,m),c;if(null===m){for(;!b.done;y++,b=u.next())null!==(b=h(n,b.value,l))&&(o=i(b,o,y),null===p?c=b:p.sibling=b,p=b);return c}for(m=s(n,m);!b.done;y++,b=u.next())null!==(b=f(m,n,y,b.value,l))&&(e&&null!==b.alternate&&m.delete(null===b.key?y:b.key),o=i(b,o,y),null===p?c=b:p.sibling=b,p=b);return e&&m.forEach((function(e){return t(n,e)})),c}return function(e,s,i,u){var l="object"==typeof i&&null!==i&&i.type===P&&null===i.key;l&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case v:e:{for(c=i.key,l=s;null!==l;){if(l.key===c){if(7===l.tag){if(i.type===P){r(e,l.sibling),(s=n(l,i.props.children)).return=e,e=s;break e}}else if(l.elementType===i.type){r(e,l.sibling),(s=n(l,i.props)).ref=xi(e,l,i),s.return=e,e=s;break e}r(e,l);break}t(e,l),l=l.sibling}i.type===P?((s=qu(i.props.children,e.mode,u,i.key)).return=e,e=s):((u=zu(i.type,i.key,i.props,null,e.mode,u)).ref=xi(e,s,i),u.return=e,e=u)}return o(e);case C:e:{for(l=i.key;null!==s;){if(s.key===l){if(4===s.tag&&s.stateNode.containerInfo===i.containerInfo&&s.stateNode.implementation===i.implementation){r(e,s.sibling),(s=n(s,i.children||[])).return=e,e=s;break e}r(e,s);break}t(e,s),s=s.sibling}(s=Hu(i,e.mode,u)).return=e,e=s}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==s&&6===s.tag?(r(e,s.sibling),(s=n(s,i)).return=e,e=s):(r(e,s),(s=Ku(i,e.mode,u)).return=e,e=s),o(e);if(Ai(i))return m(e,s,i,u);if($(i))return y(e,s,i,u);if(c&&vi(e,i),void 0===i&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,H(e.type)||"Component"))}return r(e,s)}}var Pi=Ci(!0),Si=Ci(!1),wi={},Ti=on(wi),Fi=on(wi),Di=on(wi);function Ii(e){if(e===wi)throw Error(a(174));return e}function _i(e,t){switch(ln(Di,t),ln(Fi,e),ln(Ti,wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:de(null,"");break;default:t=de(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}un(Ti),ln(Ti,t)}function ki(){un(Ti),un(Fi),un(Di)}function Bi(e){Ii(Di.current);var t=Ii(Ti.current),r=de(t,e.type);t!==r&&(ln(Fi,e),ln(Ti,r))}function Oi(e){Fi.current===e&&(un(Ti),un(Fi))}var Ni=on(0);function Mi(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Li=null,Ri=null,ji=!1;function Ui(e,t){var r=Uu(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Vi(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function $i(e){if(ji){var t=Ri;if(t){var r=t;if(!Vi(e,t)){if(!(t=Ws(r.nextSibling))||!Vi(e,t))return e.flags=-1025&e.flags|2,ji=!1,void(Li=e);Ui(Li,r)}Li=e,Ri=Ws(t.firstChild)}else e.flags=-1025&e.flags|2,ji=!1,Li=e}}function zi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Li=e}function qi(e){if(e!==Li)return!1;if(!ji)return zi(e),ji=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vs(t,e.memoizedProps))for(t=Ri;t;)Ui(e,t),t=Ws(t.nextSibling);if(zi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ri=Ws(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ri=null}}else Ri=Li?Ws(e.stateNode.nextSibling):null;return!0}function Wi(){Ri=Li=null,ji=!1}var Ki=[];function Hi(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var Gi=x.ReactCurrentDispatcher,Xi=x.ReactCurrentBatchConfig,Ji=0,Yi=null,Qi=null,Zi=null,ea=!1,ta=!1;function ra(){throw Error(a(321))}function sa(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!os(e[r],t[r]))return!1;return!0}function na(e,t,r,s,n,i){if(Ji=i,Yi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=null===e||null===e.memoizedState?Ia:_a,e=r(s,n),ta){i=0;do{if(ta=!1,!(25>i))throw Error(a(301));i+=1,Zi=Qi=null,t.updateQueue=null,Gi.current=ka,e=r(s,n)}while(ta)}if(Gi.current=Da,t=null!==Qi&&null!==Qi.next,Ji=0,Zi=Qi=Yi=null,ea=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e,Zi}function aa(){if(null===Qi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Zi?Yi.memoizedState:Zi.next;if(null!==t)Zi=t,Qi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e}return Zi}function oa(e,t){return"function"==typeof t?t(e):t}function ua(e){var t=aa(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var s=Qi,n=s.baseQueue,i=r.pending;if(null!==i){if(null!==n){var o=n.next;n.next=i.next,i.next=o}s.baseQueue=n=i,r.pending=null}if(null!==n){n=n.next,s=s.baseState;var u=o=i=null,l=n;do{var c=l.lane;if((Ji&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),s=l.eagerReducer===e?l.eagerState:e(s,l.action);else{var p={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(o=u=p,i=s):u=u.next=p,Yi.lanes|=c,Ro|=c}l=l.next}while(null!==l&&l!==n);null===u?i=s:u.next=o,os(s,t.memoizedState)||(Oa=!0),t.memoizedState=s,t.baseState=i,t.baseQueue=u,r.lastRenderedState=s}return[t.memoizedState,r.dispatch]}function la(e){var t=aa(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var s=r.dispatch,n=r.pending,i=t.memoizedState;if(null!==n){r.pending=null;var o=n=n.next;do{i=e(i,o.action),o=o.next}while(o!==n);os(i,t.memoizedState)||(Oa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,s]}function ca(e,t,r){var s=t._getVersion;s=s(t._source);var n=t._workInProgressVersionPrimary;if(null!==n?e=n===s:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=s,Ki.push(t))),e)return r(t._source);throw Ki.push(t),Error(a(350))}function pa(e,t,r,s){var n=Io;if(null===n)throw Error(a(349));var i=t._getVersion,o=i(t._source),u=Gi.current,l=u.useState((function(){return ca(n,t,r)})),c=l[1],p=l[0];l=Zi;var h=e.memoizedState,d=h.refs,f=d.getSnapshot,m=h.source;h=h.subscribe;var y=Yi;return e.memoizedState={refs:d,source:t,subscribe:s},u.useEffect((function(){d.getSnapshot=r,d.setSnapshot=c;var e=i(t._source);if(!os(o,e)){e=r(t._source),os(p,e)||(c(e),e=cu(y),n.mutableReadLanes|=e&n.pendingLanes),e=n.mutableReadLanes,n.entangledLanes|=e;for(var s=n.entanglements,a=e;0<a;){var u=31-$t(a),l=1<<u;s[u]|=e,a&=~l}}}),[r,t,s]),u.useEffect((function(){return s(t._source,(function(){var e=d.getSnapshot,r=d.setSnapshot;try{r(e(t._source));var s=cu(y);n.mutableReadLanes|=s&n.pendingLanes}catch(e){r((function(){throw e}))}}))}),[t,s]),os(f,r)&&os(m,t)&&os(h,s)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:p}).dispatch=c=Fa.bind(null,Yi,e),l.queue=e,l.baseQueue=null,p=ca(n,t,r),l.memoizedState=l.baseState=p),p}function ha(e,t,r){return pa(aa(),e,t,r)}function da(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Fa.bind(null,Yi,e),[t.memoizedState,e]}function fa(e,t,r,s){return e={tag:e,create:t,destroy:r,deps:s,next:null},null===(t=Yi.updateQueue)?(t={lastEffect:null},Yi.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,t.lastEffect=e),e}function ma(e){return e={current:e},ia().memoizedState=e}function ya(){return aa().memoizedState}function ga(e,t,r,s){var n=ia();Yi.flags|=e,n.memoizedState=fa(1|t,r,void 0,void 0===s?null:s)}function ba(e,t,r,s){var n=aa();s=void 0===s?null:s;var i=void 0;if(null!==Qi){var a=Qi.memoizedState;if(i=a.destroy,null!==s&&sa(s,a.deps))return void fa(t,r,i,s)}Yi.flags|=e,n.memoizedState=fa(1|t,r,i,s)}function Ea(e,t){return ga(516,4,e,t)}function Aa(e,t){return ba(516,4,e,t)}function xa(e,t){return ba(4,2,e,t)}function va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ca(e,t,r){return r=null!=r?r.concat([e]):null,ba(4,2,va.bind(null,t,e),r)}function Pa(){}function Sa(e,t){var r=aa();t=void 0===t?null:t;var s=r.memoizedState;return null!==s&&null!==t&&sa(t,s[1])?s[0]:(r.memoizedState=[e,t],e)}function wa(e,t){var r=aa();t=void 0===t?null:t;var s=r.memoizedState;return null!==s&&null!==t&&sa(t,s[1])?s[0]:(e=e(),r.memoizedState=[e,t],e)}function Ta(e,t){var r=$n();qn(98>r?98:r,(function(){e(!0)})),qn(97<r?97:r,(function(){var r=Xi.transition;Xi.transition=1;try{e(!1),t()}finally{Xi.transition=r}}))}function Fa(e,t,r){var s=lu(),n=cu(e),i={lane:n,action:r,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Yi||null!==a&&a===Yi)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,u=a(o,r);if(i.eagerReducer=a,i.eagerState=u,os(u,o))return}catch(e){}pu(e,n,s)}}var Da={readContext:ni,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useLayoutEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useDeferredValue:ra,useTransition:ra,useMutableSource:ra,useOpaqueIdentifier:ra,unstable_isNewReconciler:!1},Ia={readContext:ni,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:ni,useEffect:Ea,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,ga(4,2,va.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var r=ia();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=ia();return t=void 0!==r?r(t):t,s.memoizedState=s.baseState=t,e=(e=s.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Fa.bind(null,Yi,e),[s.memoizedState,e]},useRef:ma,useState:da,useDebugValue:Pa,useDeferredValue:function(e){var t=da(e),r=t[0],s=t[1];return Ea((function(){var t=Xi.transition;Xi.transition=1;try{s(e)}finally{Xi.transition=t}}),[e]),r},useTransition:function(){var e=da(!1),t=e[0];return ma(e=Ta.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,r){var s=ia();return s.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},pa(s,e,t,r)},useOpaqueIdentifier:function(){if(ji){var e=!1,t=function(e){return{$$typeof:N,toString:e,valueOf:e}}((function(){throw e||(e=!0,r("r:"+(Hs++).toString(36))),Error(a(355))})),r=da(t)[1];return 0==(2&Yi.mode)&&(Yi.flags|=516,fa(5,(function(){r("r:"+(Hs++).toString(36))}),void 0,null)),t}return da(t="r:"+(Hs++).toString(36)),t},unstable_isNewReconciler:!1},_a={readContext:ni,useCallback:Sa,useContext:ni,useEffect:Aa,useImperativeHandle:Ca,useLayoutEffect:xa,useMemo:wa,useReducer:ua,useRef:ya,useState:function(){return ua(oa)},useDebugValue:Pa,useDeferredValue:function(e){var t=ua(oa),r=t[0],s=t[1];return Aa((function(){var t=Xi.transition;Xi.transition=1;try{s(e)}finally{Xi.transition=t}}),[e]),r},useTransition:function(){var e=ua(oa)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return ua(oa)[0]},unstable_isNewReconciler:!1},ka={readContext:ni,useCallback:Sa,useContext:ni,useEffect:Aa,useImperativeHandle:Ca,useLayoutEffect:xa,useMemo:wa,useReducer:la,useRef:ya,useState:function(){return la(oa)},useDebugValue:Pa,useDeferredValue:function(e){var t=la(oa),r=t[0],s=t[1];return Aa((function(){var t=Xi.transition;Xi.transition=1;try{s(e)}finally{Xi.transition=t}}),[e]),r},useTransition:function(){var e=la(oa)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return la(oa)[0]},unstable_isNewReconciler:!1},Ba=x.ReactCurrentOwner,Oa=!1;function Na(e,t,r,s){t.child=null===e?Si(t,null,r,s):Pi(t,e.child,r,s)}function Ma(e,t,r,s,n){r=r.render;var i=t.ref;return si(t,n),s=na(e,t,r,s,i,n),null===e||Oa?(t.flags|=1,Na(e,t,s,n),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n,to(e,t,n))}function La(e,t,r,s,n,i){if(null===e){var a=r.type;return"function"!=typeof a||Vu(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=zu(r.type,null,s,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ra(e,t,a,s,n,i))}return a=e.child,0==(n&i)&&(n=a.memoizedProps,(r=null!==(r=r.compare)?r:ls)(n,s)&&e.ref===t.ref)?to(e,t,i):(t.flags|=1,(e=$u(a,s)).ref=t.ref,e.return=t,t.child=e)}function Ra(e,t,r,s,n,i){if(null!==e&&ls(e.memoizedProps,s)&&e.ref===t.ref){if(Oa=!1,0==(i&n))return t.lanes=e.lanes,to(e,t,i);0!=(16384&e.flags)&&(Oa=!0)}return Va(e,t,r,s,i)}function ja(e,t,r){var s=t.pendingProps,n=s.children,i=null!==e?e.memoizedState:null;if("hidden"===s.mode||"unstable-defer-without-hiding"===s.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bu(0,r);else{if(0==(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bu(0,e),null;t.memoizedState={baseLanes:0},bu(0,null!==i?i.baseLanes:r)}else null!==i?(s=i.baseLanes|r,t.memoizedState=null):s=r,bu(0,s);return Na(e,t,n,r),t.child}function Ua(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=128)}function Va(e,t,r,s,n){var i=mn(r)?dn:pn.current;return i=fn(t,i),si(t,n),r=na(e,t,r,s,i,n),null===e||Oa?(t.flags|=1,Na(e,t,r,n),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n,to(e,t,n))}function $a(e,t,r,s,n){if(mn(r)){var i=!0;En(t)}else i=!1;if(si(t,n),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),gi(t,r,s),Ei(t,r,s,n),s=!0;else if(null===e){var a=t.stateNode,o=t.memoizedProps;a.props=o;var u=a.context,l=r.contextType;l="object"==typeof l&&null!==l?ni(l):fn(t,l=mn(r)?dn:pn.current);var c=r.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==s||u!==l)&&bi(t,a,s,l),ii=!1;var h=t.memoizedState;a.state=h,pi(t,s,a,n),u=t.memoizedState,o!==s||h!==u||hn.current||ii?("function"==typeof c&&(fi(t,r,c,s),u=t.memoizedState),(o=ii||yi(t,r,o,s,h,u,l))?(p||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=s,t.memoizedState=u),a.props=s,a.state=u,a.context=l,s=o):("function"==typeof a.componentDidMount&&(t.flags|=4),s=!1)}else{a=t.stateNode,oi(e,t),o=t.memoizedProps,l=t.type===t.elementType?o:Xn(t.type,o),a.props=l,p=t.pendingProps,h=a.context,u="object"==typeof(u=r.contextType)&&null!==u?ni(u):fn(t,u=mn(r)?dn:pn.current);var d=r.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==p||h!==u)&&bi(t,a,s,u),ii=!1,h=t.memoizedState,a.state=h,pi(t,s,a,n);var f=t.memoizedState;o!==p||h!==f||hn.current||ii?("function"==typeof d&&(fi(t,r,d,s),f=t.memoizedState),(l=ii||yi(t,r,l,s,h,f,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(s,f,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(s,f,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=s,t.memoizedState=f),a.props=s,a.state=f,a.context=u,s=l):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),s=!1)}return za(e,t,r,s,i,n)}function za(e,t,r,s,n,i){Ua(e,t);var a=0!=(64&t.flags);if(!s&&!a)return n&&An(t,r,!1),to(e,t,i);s=t.stateNode,Ba.current=t;var o=a&&"function"!=typeof r.getDerivedStateFromError?null:s.render();return t.flags|=1,null!==e&&a?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,o,i)):Na(e,t,o,i),t.memoizedState=s.state,n&&An(t,r,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?gn(0,t.pendingContext,t.pendingContext!==t.context):t.context&&gn(0,t.context,!1),_i(e,t.containerInfo)}var Wa,Ka,Ha,Ga,Xa={dehydrated:null,retryLane:0};function Ja(e,t,r){var s,n=t.pendingProps,i=Ni.current,a=!1;return(s=0!=(64&t.flags))||(s=(null===e||null!==e.memoizedState)&&0!=(2&i)),s?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===n.fallback||!0===n.unstable_avoidThisFallback||(i|=1),ln(Ni,1&i),null===e?(void 0!==n.fallback&&$i(t),e=n.children,i=n.fallback,a?(e=Ya(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Xa,e):"number"==typeof n.unstable_expectedLoadTime?(e=Ya(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Xa,t.lanes=33554432,e):((r=Wu({mode:"visible",children:e},t.mode,r,null)).return=t,t.child=r)):(e.memoizedState,a?(n=function(e,t,r,s,n){var i=t.mode,a=e.child;e=a.sibling;var o={mode:"hidden",children:r};return 0==(2&i)&&t.child!==a?((r=t.child).childLanes=0,r.pendingProps=o,null!==(a=r.lastEffect)?(t.firstEffect=r.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):r=$u(a,o),null!==e?s=$u(e,s):(s=qu(s,i,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,s}(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=Xa,n):(r=function(e,t,r,s){var n=e.child;return e=n.sibling,r=$u(n,{mode:"visible",children:r}),0==(2&t.mode)&&(r.lanes=s),r.return=t,r.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}(e,t,n.children,r),t.memoizedState=null,r))}function Ya(e,t,r,s){var n=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&n)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Wu(t,n,0,null),r=qu(r,n,s,null),i.return=e,r.return=e,i.sibling=r,e.child=i,r}function Qa(e,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ri(e.return,t)}function Za(e,t,r,s,n,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:n,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=s,a.tail=r,a.tailMode=n,a.lastEffect=i)}function eo(e,t,r){var s=t.pendingProps,n=s.revealOrder,i=s.tail;if(Na(e,t,s.children,r),0!=(2&(s=Ni.current)))s=1&s|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qa(e,r);else if(19===e.tag)Qa(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(ln(Ni,s),0==(2&t.mode))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;null!==r;)null!==(e=r.alternate)&&null===Mi(e)&&(n=r),r=r.sibling;null===(r=n)?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),Za(t,!1,n,r,i,t.lastEffect);break;case"backwards":for(r=null,n=t.child,t.child=null;null!==n;){if(null!==(e=n.alternate)&&null===Mi(e)){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}Za(t,!0,r,null,i,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function to(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ro|=t.lanes,0!=(r&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=$u(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=$u(e,e.pendingProps)).return=t;r.sibling=null}return t.child}return null}function ro(e,t){if(!ji)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;null!==r;)null!==r.alternate&&(s=r),r=r.sibling;null===s?t||null===e.tail?e.tail=null:e.tail.sibling=null:s.sibling=null}}function so(e,t,r){var s=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mn(t.type)&&yn(),null;case 3:return ki(),un(hn),un(pn),Hi(),(s=t.stateNode).pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:s.hydrate||(t.flags|=256)),Ka(t),null;case 5:Oi(t);var i=Ii(Di.current);if(r=t.type,null!==e&&null!=t.stateNode)Ha(e,t,r,s,i),e.ref!==t.ref&&(t.flags|=128);else{if(!s){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ii(Ti.current),qi(t)){s=t.stateNode,r=t.type;var o=t.memoizedProps;switch(s[Xs]=t,s[Js]=o,r){case"dialog":Ts("cancel",s),Ts("close",s);break;case"iframe":case"object":case"embed":Ts("load",s);break;case"video":case"audio":for(e=0;e<Cs.length;e++)Ts(Cs[e],s);break;case"source":Ts("error",s);break;case"img":case"image":case"link":Ts("error",s),Ts("load",s);break;case"details":Ts("toggle",s);break;case"input":ee(s,o),Ts("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!o.multiple},Ts("invalid",s);break;case"textarea":ue(s,o),Ts("invalid",s)}for(var l in Ce(r,o),e=null,o)o.hasOwnProperty(l)&&(i=o[l],"children"===l?"string"==typeof i?s.textContent!==i&&(e=["children",i]):"number"==typeof i&&s.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&Ts("scroll",s));switch(r){case"input":J(s),se(s,o,!0);break;case"textarea":J(s),ce(s);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(s.onclick=Ls)}s=e,t.updateQueue=s,null!==s&&(t.flags|=4)}else{switch(l=9===i.nodeType?i:i.ownerDocument,e===pe.html&&(e=he(r)),e===pe.html?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof s.is?e=l.createElement(r,{is:s.is}):(e=l.createElement(r),"select"===r&&(l=e,s.multiple?l.multiple=!0:s.size&&(l.size=s.size))):e=l.createElementNS(e,r),e[Xs]=t,e[Js]=s,Wa(e,t,!1,!1),t.stateNode=e,l=Pe(r,s),r){case"dialog":Ts("cancel",e),Ts("close",e),i=s;break;case"iframe":case"object":case"embed":Ts("load",e),i=s;break;case"video":case"audio":for(i=0;i<Cs.length;i++)Ts(Cs[i],e);i=s;break;case"source":Ts("error",e),i=s;break;case"img":case"image":case"link":Ts("error",e),Ts("load",e),i=s;break;case"details":Ts("toggle",e),i=s;break;case"input":ee(e,s),i=Z(e,s),Ts("invalid",e);break;case"option":i=ie(e,s);break;case"select":e._wrapperState={wasMultiple:!!s.multiple},i=n({},s,{value:void 0}),Ts("invalid",e);break;case"textarea":ue(e,s),i=oe(e,s),Ts("invalid",e);break;default:i=s}Ce(r,i);var c=i;for(o in c)if(c.hasOwnProperty(o)){var p=c[o];"style"===o?xe(e,p):"dangerouslySetInnerHTML"===o?null!=(p=p?p.__html:void 0)&&ye(e,p):"children"===o?"string"==typeof p?("textarea"!==r||""!==p)&&ge(e,p):"number"==typeof p&&ge(e,""+p):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(u.hasOwnProperty(o)?null!=p&&"onScroll"===o&&Ts("scroll",e):null!=p&&A(e,o,p,l))}switch(r){case"input":J(e),se(e,s,!1);break;case"textarea":J(e),ce(e);break;case"option":null!=s.value&&e.setAttribute("value",""+G(s.value));break;case"select":e.multiple=!!s.multiple,null!=(o=s.value)?ae(e,!!s.multiple,o,!1):null!=s.defaultValue&&ae(e,!!s.multiple,s.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Ls)}Us(r,s)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(e,t,e.memoizedProps,s);else{if("string"!=typeof s&&null===t.stateNode)throw Error(a(166));r=Ii(Di.current),Ii(Ti.current),qi(t)?(s=t.stateNode,r=t.memoizedProps,s[Xs]=t,s.nodeValue!==r&&(t.flags|=4)):((s=(9===r.nodeType?r:r.ownerDocument).createTextNode(s))[Xs]=t,t.stateNode=s)}return null;case 13:return un(Ni),s=t.memoizedState,0!=(64&t.flags)?(t.lanes=r,t):(s=null!==s,r=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):r=null!==e.memoizedState,s&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ni.current)?0===No&&(No=3):(0!==No&&3!==No||(No=4),null===Io||0==(134217727&Ro)&&0==(134217727&jo)||mu(Io,ko))),(s||r)&&(t.flags|=4),null);case 4:return ki(),Ka(t),null===e&&Ds(t.stateNode.containerInfo),null;case 10:return ti(t),null;case 19:if(un(Ni),null===(s=t.memoizedState))return null;if(o=0!=(64&t.flags),null===(l=s.rendering))if(o)ro(s,!1);else{if(0!==No||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Mi(e))){for(t.flags|=64,ro(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),null===s.lastEffect&&(t.firstEffect=null),t.lastEffect=s.lastEffect,s=r,r=t.child;null!==r;)e=s,(o=r).flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ln(Ni,1&Ni.current|2),t.child}e=e.sibling}null!==s.tail&&Vn()>zo&&(t.flags|=64,o=!0,ro(s,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=Mi(l))){if(t.flags|=64,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),ro(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ji)return null!==(t=t.lastEffect=s.lastEffect)&&(t.nextEffect=null),null}else 2*Vn()-s.renderingStartTime>zo&&1073741824!==r&&(t.flags|=64,o=!0,ro(s,!1),t.lanes=33554432);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(r=s.tail,s.rendering=r,s.tail=r.sibling,s.lastEffect=t.lastEffect,s.renderingStartTime=Vn(),r.sibling=null,t=Ni.current,ln(Ni,o?1&t|2:1&t),r):null;case 23:case 24:return Eu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==s.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function no(e){switch(e.tag){case 1:mn(e.type)&&yn();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ki(),un(hn),un(pn),Hi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Oi(e),null;case 13:return un(Ni),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return un(Ni),null;case 4:return ki(),null;case 10:return ti(e),null;case 23:case 24:return Eu(),null;default:return null}}function io(e,t){try{var r="",s=t;do{r+=K(s),s=s.return}while(s);var n=r}catch(e){n="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:n}}function ao(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wa=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ka=function(){},Ha=function(e,t,r,s){var i=e.memoizedProps;if(i!==s){e=t.stateNode,Ii(Ti.current);var a,o=null;switch(r){case"input":i=Z(e,i),s=Z(e,s),o=[];break;case"option":i=ie(e,i),s=ie(e,s),o=[];break;case"select":i=n({},i,{value:void 0}),s=n({},s,{value:void 0}),o=[];break;case"textarea":i=oe(e,i),s=oe(e,s),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof s.onClick&&(e.onclick=Ls)}for(p in Ce(r,s),r=null,i)if(!s.hasOwnProperty(p)&&i.hasOwnProperty(p)&&null!=i[p])if("style"===p){var l=i[p];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==p&&"children"!==p&&"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(u.hasOwnProperty(p)?o||(o=[]):(o=o||[]).push(p,null));for(p in s){var c=s[p];if(l=null!=i?i[p]:void 0,s.hasOwnProperty(p)&&c!==l&&(null!=c||null!=l))if("style"===p)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(o||(o=[]),o.push(p,r)),r=c;else"dangerouslySetInnerHTML"===p?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(p,c)):"children"===p?"string"!=typeof c&&"number"!=typeof c||(o=o||[]).push(p,""+c):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&(u.hasOwnProperty(p)?(null!=c&&"onScroll"===p&&Ts("scroll",e),o||l===c||(o=[])):"object"==typeof c&&null!==c&&c.$$typeof===N?c.toString():(o=o||[]).push(p,c))}r&&(o=o||[]).push("style",r);var p=o;(t.updateQueue=p)&&(t.flags|=4)}},Ga=function(e,t,r,s){r!==s&&(t.flags|=4)};var oo="function"==typeof WeakMap?WeakMap:Map;function uo(e,t,r){(r=ui(-1,r)).tag=3,r.payload={element:null};var s=t.value;return r.callback=function(){Ho||(Ho=!0,Go=s),ao(0,t)},r}function lo(e,t,r){(r=ui(-1,r)).tag=3;var s=e.type.getDerivedStateFromError;if("function"==typeof s){var n=t.value;r.payload=function(){return ao(0,t),s(n)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){"function"!=typeof s&&(null===Xo?Xo=new Set([this]):Xo.add(this),ao(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}var co="function"==typeof WeakSet?WeakSet:Set;function po(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Mu(e,t)}else t.current=null}function ho(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var r=e.memoizedProps,s=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Xn(t.type,r),s),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qs(t.stateNode.containerInfo))}throw Error(a(163))}function fo(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var s=e.create;e.destroy=s()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var n=e;s=n.next,0!=(4&(n=n.tag))&&0!=(1&n)&&(Bu(r,e),ku(r,e)),e=s}while(e!==t)}return;case 1:return e=r.stateNode,4&r.flags&&(null===t?e.componentDidMount():(s=r.elementType===r.type?t.memoizedProps:Xn(r.type,t.memoizedProps),e.componentDidUpdate(s,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=r.updateQueue)&&hi(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}hi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.flags&&Us(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&At(r)))))}throw Error(a(163))}function mo(e,t){for(var r=e;;){if(5===r.tag){var s=r.stateNode;if(t)"function"==typeof(s=s.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{s=r.stateNode;var n=r.memoizedProps.style;n=null!=n&&n.hasOwnProperty("display")?n.display:null,s.style.display=Ae("display",n)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function yo(e,t){if(vn&&"function"==typeof vn.onCommitFiberUnmount)try{vn.onCommitFiberUnmount(xn,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var s=r,n=s.destroy;if(s=s.tag,void 0!==n)if(0!=(4&s))Bu(t,r);else{s=t;try{n()}catch(e){Mu(s,e)}}r=r.next}while(r!==e)}break;case 1:if(po(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Mu(t,e)}break;case 5:po(t);break;case 4:vo(e,t)}}function go(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bo(e){return 5===e.tag||3===e.tag||4===e.tag}function Eo(e){e:{for(var t=e.return;null!==t;){if(bo(t))break e;t=t.return}throw Error(a(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var s=!1;break;case 3:case 4:t=t.containerInfo,s=!0;break;default:throw Error(a(161))}16&r.flags&&(ge(t,""),r.flags&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||bo(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break e}}s?Ao(e,r,t):xo(e,r,t)}function Ao(e,t,r){var s=e.tag,n=5===s||6===s;if(n)e=n?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ls));else if(4!==s&&null!==(e=e.child))for(Ao(e,t,r),e=e.sibling;null!==e;)Ao(e,t,r),e=e.sibling}function xo(e,t,r){var s=e.tag,n=5===s||6===s;if(n)e=n?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==s&&null!==(e=e.child))for(xo(e,t,r),e=e.sibling;null!==e;)xo(e,t,r),e=e.sibling}function vo(e,t){for(var r,s,n=t,i=!1;;){if(!i){i=n.return;e:for(;;){if(null===i)throw Error(a(160));switch(r=i.stateNode,i.tag){case 5:s=!1;break e;case 3:case 4:r=r.containerInfo,s=!0;break e}i=i.return}i=!0}if(5===n.tag||6===n.tag){e:for(var o=e,u=n,l=u;;)if(yo(o,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}s?(o=r,u=n.stateNode,8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)):r.removeChild(n.stateNode)}else if(4===n.tag){if(null!==n.child){r=n.stateNode.containerInfo,s=!0,n.child.return=n,n=n.child;continue}}else if(yo(e,n),null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;4===(n=n.return).tag&&(i=!1)}n.sibling.return=n.return,n=n.sibling}}function Co(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var s=r=r.next;do{3==(3&s.tag)&&(e=s.destroy,s.destroy=void 0,void 0!==e&&e()),s=s.next}while(s!==r)}return;case 1:case 12:case 17:return;case 5:if(null!=(r=t.stateNode)){s=t.memoizedProps;var n=null!==e?e.memoizedProps:s;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[Js]=s,"input"===e&&"radio"===s.type&&null!=s.name&&te(r,s),Pe(e,n),t=Pe(e,s),n=0;n<i.length;n+=2){var o=i[n],u=i[n+1];"style"===o?xe(r,u):"dangerouslySetInnerHTML"===o?ye(r,u):"children"===o?ge(r,u):A(r,o,u,t)}switch(e){case"input":re(r,s);break;case"textarea":le(r,s);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!s.multiple,null!=(i=s.value)?ae(r,!!s.multiple,i,!1):e!==!!s.multiple&&(null!=s.defaultValue?ae(r,!!s.multiple,s.defaultValue,!0):ae(r,!!s.multiple,s.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((r=t.stateNode).hydrate&&(r.hydrate=!1,At(r.containerInfo)));case 13:return null!==t.memoizedState&&($o=Vn(),mo(t.child,!0)),void Po(t);case 19:return void Po(t);case 23:case 24:return void mo(t,null!==t.memoizedState)}throw Error(a(163))}function Po(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new co),t.forEach((function(t){var s=Ru.bind(null,e,t);r.has(t)||(r.add(t),t.then(s,s))}))}}function So(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var wo=Math.ceil,To=x.ReactCurrentDispatcher,Fo=x.ReactCurrentOwner,Do=0,Io=null,_o=null,ko=0,Bo=0,Oo=on(0),No=0,Mo=null,Lo=0,Ro=0,jo=0,Uo=0,Vo=null,$o=0,zo=1/0;function qo(){zo=Vn()+500}var Wo,Ko=null,Ho=!1,Go=null,Xo=null,Jo=!1,Yo=null,Qo=90,Zo=[],eu=[],tu=null,ru=0,su=null,nu=-1,iu=0,au=0,ou=null,uu=!1;function lu(){return 0!=(48&Do)?Vn():-1!==nu?nu:nu=Vn()}function cu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===$n()?1:2;if(0===iu&&(iu=Lo),0!==Gn.transition){0!==au&&(au=null!==Vo?Vo.pendingLanes:0),e=iu;var t=4186112&~au;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=$n(),e=Rt(0!=(4&Do)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),iu)}function pu(e,t,r){if(50<ru)throw ru=0,su=null,Error(a(185));if(null===(e=hu(e,t)))return null;Vt(e,t,r),e===Io&&(jo|=t,4===No&&mu(e,ko));var s=$n();1===t?0!=(8&Do)&&0==(48&Do)?yu(e):(du(e,r),0===Do&&(qo(),Kn())):(0==(4&Do)||98!==s&&99!==s||(null===tu?tu=new Set([e]):tu.add(e)),du(e,r)),Vo=e}function hu(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function du(e,t){for(var r=e.callbackNode,s=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-$t(o),l=1<<u,c=i[u];if(-1===c){if(0==(l&s)||0!=(l&n)){c=t,Nt(l);var p=Ot;i[u]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);o&=~l}if(s=Mt(e,e===Io?ko:0),t=Ot,0===s)null!==r&&(r!==Nn&&Sn(r),e.callbackNode=null,e.callbackPriority=0);else{if(null!==r){if(e.callbackPriority===t)return;r!==Nn&&Sn(r)}15===t?(r=yu.bind(null,e),null===Ln?(Ln=[r],Rn=Pn(In,Hn)):Ln.push(r),r=Nn):14===t?r=Wn(99,yu.bind(null,e)):(r=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),r=Wn(r,fu.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function fu(e){if(nu=-1,au=iu=0,0!=(48&Do))throw Error(a(327));var t=e.callbackNode;if(_u()&&e.callbackNode!==t)return null;var r=Mt(e,e===Io?ko:0);if(0===r)return null;var s=r,n=Do;Do|=16;var i=vu();for(Io===e&&ko===s||(qo(),Au(e,s));;)try{Su();break}catch(t){xu(e,t)}if(ei(),To.current=i,Do=n,null!==_o?s=0:(Io=null,ko=0,s=No),0!=(Lo&jo))Au(e,0);else if(0!==s){if(2===s&&(Do|=64,e.hydrate&&(e.hydrate=!1,qs(e.containerInfo)),0!==(r=Lt(e))&&(s=Cu(e,r))),1===s)throw t=Mo,Au(e,0),mu(e,r),du(e,Vn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,s){case 0:case 1:throw Error(a(345));case 2:case 5:Fu(e);break;case 3:if(mu(e,r),(62914560&r)===r&&10<(s=$o+500-Vn())){if(0!==Mt(e,0))break;if(((n=e.suspendedLanes)&r)!==r){lu(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=$s(Fu.bind(null,e),s);break}Fu(e);break;case 4:if(mu(e,r),(4186112&r)===r)break;for(s=e.eventTimes,n=-1;0<r;){var o=31-$t(r);i=1<<o,(o=s[o])>n&&(n=o),r&=~i}if(r=n,10<(r=(120>(r=Vn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wo(r/1960))-r)){e.timeoutHandle=$s(Fu.bind(null,e),r);break}Fu(e);break;default:throw Error(a(329))}}return du(e,Vn()),e.callbackNode===t?fu.bind(null,e):null}function mu(e,t){for(t&=~Uo,t&=~jo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-$t(t),s=1<<r;e[r]=-1,t&=~s}}function yu(e){if(0!=(48&Do))throw Error(a(327));if(_u(),e===Io&&0!=(e.expiredLanes&ko)){var t=ko,r=Cu(e,t);0!=(Lo&jo)&&(r=Cu(e,t=Mt(e,t)))}else r=Cu(e,t=Mt(e,0));if(0!==e.tag&&2===r&&(Do|=64,e.hydrate&&(e.hydrate=!1,qs(e.containerInfo)),0!==(t=Lt(e))&&(r=Cu(e,t))),1===r)throw r=Mo,Au(e,0),mu(e,t),du(e,Vn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fu(e),du(e,Vn()),null}function gu(e,t){var r=Do;Do|=1;try{return e(t)}finally{0===(Do=r)&&(qo(),Kn())}}function bu(e,t){ln(Oo,Bo),Bo|=t,Lo|=t}function Eu(){Bo=Oo.current,un(Oo)}function Au(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,zs(r)),null!==_o)for(r=_o.return;null!==r;){var s=r;switch(s.tag){case 1:null!=(s=s.type.childContextTypes)&&yn();break;case 3:ki(),un(hn),un(pn),Hi();break;case 5:Oi(s);break;case 4:ki();break;case 13:case 19:un(Ni);break;case 10:ti(s);break;case 23:case 24:Eu()}r=r.return}Io=e,_o=$u(e.current,null),ko=Bo=Lo=t,No=0,Mo=null,Uo=jo=Ro=0}function xu(e,t){for(;;){var r=_o;try{if(ei(),Gi.current=Da,ea){for(var s=Yi.memoizedState;null!==s;){var n=s.queue;null!==n&&(n.pending=null),s=s.next}ea=!1}if(Ji=0,Zi=Qi=Yi=null,ta=!1,Fo.current=null,null===r||null===r.return){No=1,Mo=t,_o=null;break}e:{var i=e,a=r.return,o=r,u=t;if(t=ko,o.flags|=2048,o.firstEffect=o.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&o.mode)){var c=o.alternate;c?(o.updateQueue=c.updateQueue,o.memoizedState=c.memoizedState,o.lanes=c.lanes):(o.updateQueue=null,o.memoizedState=null)}var p=0!=(1&Ni.current),h=a;do{var d;if(d=13===h.tag){var f=h.memoizedState;if(null!==f)d=null!==f.dehydrated;else{var m=h.memoizedProps;d=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!p)}}if(d){var y=h.updateQueue;if(null===y){var g=new Set;g.add(l),h.updateQueue=g}else y.add(l);if(0==(2&h.mode)){if(h.flags|=64,o.flags|=16384,o.flags&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var b=ui(-1,1);b.tag=2,li(o,b)}o.lanes|=1;break e}u=void 0,o=t;var E=i.pingCache;if(null===E?(E=i.pingCache=new oo,u=new Set,E.set(l,u)):void 0===(u=E.get(l))&&(u=new Set,E.set(l,u)),!u.has(o)){u.add(o);var A=Lu.bind(null,i,l,o);l.then(A,A)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);u=Error((H(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==No&&(No=2),u=io(u,o),h=a;do{switch(h.tag){case 3:i=u,h.flags|=4096,t&=-t,h.lanes|=t,ci(h,uo(0,i,t));break e;case 1:i=u;var x=h.type,v=h.stateNode;if(0==(64&h.flags)&&("function"==typeof x.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===Xo||!Xo.has(v)))){h.flags|=4096,t&=-t,h.lanes|=t,ci(h,lo(h,i,t));break e}}h=h.return}while(null!==h)}Tu(r)}catch(e){t=e,_o===r&&null!==r&&(_o=r=r.return);continue}break}}function vu(){var e=To.current;return To.current=Da,null===e?Da:e}function Cu(e,t){var r=Do;Do|=16;var s=vu();for(Io===e&&ko===t||Au(e,t);;)try{Pu();break}catch(t){xu(e,t)}if(ei(),Do=r,To.current=s,null!==_o)throw Error(a(261));return Io=null,ko=0,No}function Pu(){for(;null!==_o;)wu(_o)}function Su(){for(;null!==_o&&!wn();)wu(_o)}function wu(e){var t=Wo(e.alternate,e,Bo);e.memoizedProps=e.pendingProps,null===t?Tu(e):_o=t,Fo.current=null}function Tu(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(r=so(r,t,Bo)))return void(_o=r);if(24!==(r=t).tag&&23!==r.tag||null===r.memoizedState||0!=(1073741824&Bo)||0==(4&r.mode)){for(var s=0,n=r.child;null!==n;)s|=n.lanes|n.childLanes,n=n.sibling;r.childLanes=s}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(r=no(t)))return r.flags&=2047,void(_o=r);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(_o=t);_o=t=e}while(null!==t);0===No&&(No=5)}function Fu(e){var t=$n();return qn(99,Du.bind(null,e,t)),null}function Du(e,t){do{_u()}while(null!==Yo);if(0!=(48&Do))throw Error(a(327));var r=e.finishedWork;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null;var s=r.lanes|r.childLanes,n=s,i=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;for(var o=e.eventTimes,u=e.expirationTimes;0<i;){var l=31-$t(i),c=1<<l;n[l]=0,o[l]=-1,u[l]=-1,i&=~c}if(null!==tu&&0==(24&s)&&tu.has(e)&&tu.delete(e),e===Io&&(_o=Io=null,ko=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,s=r.firstEffect):s=r:s=r.firstEffect,null!==s){if(n=Do,Do|=32,Fo.current=null,Rs=Ht,fs(o=ds())){if("selectionStart"in o)u={start:o.selectionStart,end:o.selectionEnd};else e:if(u=(u=o.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(e){u=null;break e}var p=0,h=-1,d=-1,f=0,m=0,y=o,g=null;t:for(;;){for(var b;y!==u||0!==i&&3!==y.nodeType||(h=p+i),y!==l||0!==c&&3!==y.nodeType||(d=p+c),3===y.nodeType&&(p+=y.nodeValue.length),null!==(b=y.firstChild);)g=y,y=b;for(;;){if(y===o)break t;if(g===u&&++f===i&&(h=p),g===l&&++m===c&&(d=p),null!==(b=y.nextSibling))break;g=(y=g).parentNode}y=b}u=-1===h||-1===d?null:{start:h,end:d}}else u=null;u=u||{start:0,end:0}}else u=null;js={focusedElem:o,selectionRange:u},Ht=!1,ou=null,uu=!1,Ko=s;do{try{Iu()}catch(e){if(null===Ko)throw Error(a(330));Mu(Ko,e),Ko=Ko.nextEffect}}while(null!==Ko);ou=null,Ko=s;do{try{for(o=e;null!==Ko;){var E=Ko.flags;if(16&E&&ge(Ko.stateNode,""),128&E){var A=Ko.alternate;if(null!==A){var x=A.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&E){case 2:Eo(Ko),Ko.flags&=-3;break;case 6:Eo(Ko),Ko.flags&=-3,Co(Ko.alternate,Ko);break;case 1024:Ko.flags&=-1025;break;case 1028:Ko.flags&=-1025,Co(Ko.alternate,Ko);break;case 4:Co(Ko.alternate,Ko);break;case 8:vo(o,u=Ko);var v=u.alternate;go(u),null!==v&&go(v)}Ko=Ko.nextEffect}}catch(e){if(null===Ko)throw Error(a(330));Mu(Ko,e),Ko=Ko.nextEffect}}while(null!==Ko);if(x=js,A=ds(),E=x.focusedElem,o=x.selectionRange,A!==E&&E&&E.ownerDocument&&hs(E.ownerDocument.documentElement,E)){null!==o&&fs(E)&&(A=o.start,void 0===(x=o.end)&&(x=A),"selectionStart"in E?(E.selectionStart=A,E.selectionEnd=Math.min(x,E.value.length)):(x=(A=E.ownerDocument||document)&&A.defaultView||window).getSelection&&(x=x.getSelection(),u=E.textContent.length,v=Math.min(o.start,u),o=void 0===o.end?v:Math.min(o.end,u),!x.extend&&v>o&&(u=o,o=v,v=u),u=ps(E,v),i=ps(E,o),u&&i&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((A=A.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),v>o?(x.addRange(A),x.extend(i.node,i.offset)):(A.setEnd(i.node,i.offset),x.addRange(A))))),A=[];for(x=E;x=x.parentNode;)1===x.nodeType&&A.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<A.length;E++)(x=A[E]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Ht=!!Rs,js=Rs=null,e.current=r,Ko=s;do{try{for(E=e;null!==Ko;){var C=Ko.flags;if(36&C&&fo(E,Ko.alternate,Ko),128&C){A=void 0;var P=Ko.ref;if(null!==P){var S=Ko.stateNode;Ko.tag,A=S,"function"==typeof P?P(A):P.current=A}}Ko=Ko.nextEffect}}catch(e){if(null===Ko)throw Error(a(330));Mu(Ko,e),Ko=Ko.nextEffect}}while(null!==Ko);Ko=null,Mn(),Do=n}else e.current=r;if(Jo)Jo=!1,Yo=e,Qo=t;else for(Ko=s;null!==Ko;)t=Ko.nextEffect,Ko.nextEffect=null,8&Ko.flags&&((C=Ko).sibling=null,C.stateNode=null),Ko=t;if(0===(s=e.pendingLanes)&&(Xo=null),1===s?e===su?ru++:(ru=0,su=e):ru=0,r=r.stateNode,vn&&"function"==typeof vn.onCommitFiberRoot)try{vn.onCommitFiberRoot(xn,r,void 0,64==(64&r.current.flags))}catch(e){}if(du(e,Vn()),Ho)throw Ho=!1,e=Go,Go=null,e;return 0!=(8&Do)||Kn(),null}function Iu(){for(;null!==Ko;){var e=Ko.alternate;uu||null===ou||(0!=(8&Ko.flags)?Qe(Ko,ou)&&(uu=!0):13===Ko.tag&&So(e,Ko)&&Qe(Ko,ou)&&(uu=!0));var t=Ko.flags;0!=(256&t)&&ho(e,Ko),0==(512&t)||Jo||(Jo=!0,Wn(97,(function(){return _u(),null}))),Ko=Ko.nextEffect}}function _u(){if(90!==Qo){var e=97<Qo?97:Qo;return Qo=90,qn(e,Ou)}return!1}function ku(e,t){Zo.push(t,e),Jo||(Jo=!0,Wn(97,(function(){return _u(),null})))}function Bu(e,t){eu.push(t,e),Jo||(Jo=!0,Wn(97,(function(){return _u(),null})))}function Ou(){if(null===Yo)return!1;var e=Yo;if(Yo=null,0!=(48&Do))throw Error(a(331));var t=Do;Do|=32;var r=eu;eu=[];for(var s=0;s<r.length;s+=2){var n=r[s],i=r[s+1],o=n.destroy;if(n.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===i)throw Error(a(330));Mu(i,e)}}for(r=Zo,Zo=[],s=0;s<r.length;s+=2){n=r[s],i=r[s+1];try{var u=n.create;n.destroy=u()}catch(e){if(null===i)throw Error(a(330));Mu(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Do=t,Kn(),!0}function Nu(e,t,r){li(e,t=uo(0,t=io(r,t),1)),t=lu(),null!==(e=hu(e,1))&&(Vt(e,1,t),du(e,t))}function Mu(e,t){if(3===e.tag)Nu(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Nu(r,e,t);break}if(1===r.tag){var s=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof s.componentDidCatch&&(null===Xo||!Xo.has(s))){var n=lo(r,e=io(t,e),1);if(li(r,n),n=lu(),null!==(r=hu(r,1)))Vt(r,1,n),du(r,n);else if("function"==typeof s.componentDidCatch&&(null===Xo||!Xo.has(s)))try{s.componentDidCatch(t,e)}catch(e){}break}}r=r.return}}function Lu(e,t,r){var s=e.pingCache;null!==s&&s.delete(t),t=lu(),e.pingedLanes|=e.suspendedLanes&r,Io===e&&(ko&r)===r&&(4===No||3===No&&(62914560&ko)===ko&&500>Vn()-$o?Au(e,0):Uo|=r),du(e,t)}function Ru(e,t){var r=e.stateNode;null!==r&&r.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===$n()?1:2:(0===iu&&(iu=Lo),0===(t=jt(62914560&~iu))&&(t=4194304))),r=lu(),null!==(e=hu(e,t))&&(Vt(e,t,r),du(e,r))}function ju(e,t,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Uu(e,t,r,s){return new ju(e,t,r,s)}function Vu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $u(e,t){var r=e.alternate;return null===r?((r=Uu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function zu(e,t,r,s,n,i){var o=2;if(s=e,"function"==typeof e)Vu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case P:return qu(r.children,n,i,t);case M:o=8,n|=16;break;case S:o=8,n|=1;break;case w:return(e=Uu(12,r,t,8|n)).elementType=w,e.type=w,e.lanes=i,e;case I:return(e=Uu(13,r,t,n)).type=I,e.elementType=I,e.lanes=i,e;case _:return(e=Uu(19,r,t,n)).elementType=_,e.lanes=i,e;case L:return Wu(r,n,i,t);case R:return(e=Uu(24,r,t,n)).elementType=R,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:o=10;break e;case F:o=9;break e;case D:o=11;break e;case k:o=14;break e;case B:o=16,s=null;break e;case O:o=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Uu(o,r,t,n)).elementType=e,t.type=s,t.lanes=i,t}function qu(e,t,r,s){return(e=Uu(7,e,s,t)).lanes=r,e}function Wu(e,t,r,s){return(e=Uu(23,e,s,t)).elementType=L,e.lanes=r,e}function Ku(e,t,r){return(e=Uu(6,e,null,t)).lanes=r,e}function Hu(e,t,r){return(t=Uu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gu(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Xu(e,t,r,s){var n=t.current,i=lu(),o=cu(n);e:if(r){t:{if(Xe(r=r._reactInternals)!==r||1!==r.tag)throw Error(a(170));var u=r;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(mn(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===r.tag){var l=r.type;if(mn(l)){r=bn(r,l,u);break e}}r=u}else r=cn;return null===t.context?t.context=r:t.pendingContext=r,(t=ui(i,o)).payload={element:e},null!==(s=void 0===s?null:s)&&(t.callback=s),li(n,t),pu(n,o,i),o}function Ju(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Yu(e,t){Ju(e,t),(e=e.alternate)&&Ju(e,t)}function Qu(e,t,r){var s=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Gu(e,t,null!=r&&!0===r.hydrate),t=Uu(3,null,null,2===t?7:1===t?3:0),r.current=t,t.stateNode=r,ai(t),e[Ys]=r.current,Ds(8===e.nodeType?e.parentNode:e),s)for(e=0;e<s.length;e++){var n=(t=s[e])._getVersion;n=n(t._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[t,n]:r.mutableSourceEagerHydrationData.push(t,n)}this._internalRoot=r}Wo=function(e,t,r){var s=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hn.current)Oa=!0;else{if(0==(r&s)){switch(Oa=!1,t.tag){case 3:qa(t),Wi();break;case 5:Bi(t);break;case 1:mn(t.type)&&En(t);break;case 4:_i(t,t.stateNode.containerInfo);break;case 10:s=t.memoizedProps.value;var n=t.type._context;ln(Jn,n._currentValue),n._currentValue=s;break;case 13:if(null!==t.memoizedState)return 0!=(r&t.child.childLanes)?Ja(e,t,r):(ln(Ni,1&Ni.current),null!==(t=to(e,t,r))?t.sibling:null);ln(Ni,1&Ni.current);break;case 19:if(s=0!=(r&t.childLanes),0!=(64&e.flags)){if(s)return eo(e,t,r);t.flags|=64}if(null!==(n=t.memoizedState)&&(n.rendering=null,n.tail=null,n.lastEffect=null),ln(Ni,Ni.current),s)break;return null;case 23:case 24:return t.lanes=0,ja(e,t,r)}return to(e,t,r)}Oa=0!=(16384&e.flags)}else Oa=!1;switch(t.lanes=0,t.tag){case 2:if(s=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,n=fn(t,pn.current),si(t,r),n=na(null,t,s,e,n,r),t.flags|=1,"object"==typeof n&&null!==n&&"function"==typeof n.render&&void 0===n.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mn(s)){var i=!0;En(t)}else i=!1;t.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,ai(t);var o=s.getDerivedStateFromProps;"function"==typeof o&&fi(t,s,o,e),n.updater=mi,t.stateNode=n,n._reactInternals=t,Ei(t,s,e,r),t=za(null,t,s,!0,i,r)}else t.tag=0,Na(null,t,n,r),t=t.child;return t;case 16:n=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return Vu(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===k)return 14}return 2}(n),e=Xn(n,e),i){case 0:t=Va(null,t,n,e,r);break e;case 1:t=$a(null,t,n,e,r);break e;case 11:t=Ma(null,t,n,e,r);break e;case 14:t=La(null,t,n,Xn(n.type,e),s,r);break e}throw Error(a(306,n,""))}return t;case 0:return s=t.type,n=t.pendingProps,Va(e,t,s,n=t.elementType===s?n:Xn(s,n),r);case 1:return s=t.type,n=t.pendingProps,$a(e,t,s,n=t.elementType===s?n:Xn(s,n),r);case 3:if(qa(t),s=t.updateQueue,null===e||null===s)throw Error(a(282));if(s=t.pendingProps,n=null!==(n=t.memoizedState)?n.element:null,oi(e,t),pi(t,s,null,r),(s=t.memoizedState.element)===n)Wi(),t=to(e,t,r);else{if((i=(n=t.stateNode).hydrate)&&(Ri=Ws(t.stateNode.containerInfo.firstChild),Li=t,i=ji=!0),i){if(null!=(e=n.mutableSourceEagerHydrationData))for(n=0;n<e.length;n+=2)(i=e[n])._workInProgressVersionPrimary=e[n+1],Ki.push(i);for(r=Si(t,null,s,r),t.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else Na(e,t,s,r),Wi();t=t.child}return t;case 5:return Bi(t),null===e&&$i(t),s=t.type,n=t.pendingProps,i=null!==e?e.memoizedProps:null,o=n.children,Vs(s,n)?o=null:null!==i&&Vs(s,i)&&(t.flags|=16),Ua(e,t),Na(e,t,o,r),t.child;case 6:return null===e&&$i(t),null;case 13:return Ja(e,t,r);case 4:return _i(t,t.stateNode.containerInfo),s=t.pendingProps,null===e?t.child=Pi(t,null,s,r):Na(e,t,s,r),t.child;case 11:return s=t.type,n=t.pendingProps,Ma(e,t,s,n=t.elementType===s?n:Xn(s,n),r);case 7:return Na(e,t,t.pendingProps,r),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,r),t.child;case 10:e:{s=t.type._context,n=t.pendingProps,o=t.memoizedProps,i=n.value;var u=t.type._context;if(ln(Jn,u._currentValue),u._currentValue=i,null!==o)if(u=o.value,0==(i=os(u,i)?0:0|("function"==typeof s._calculateChangedBits?s._calculateChangedBits(u,i):1073741823))){if(o.children===n.children&&!hn.current){t=to(e,t,r);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){o=u.child;for(var c=l.firstContext;null!==c;){if(c.context===s&&0!=(c.observedBits&i)){1===u.tag&&((c=ui(-1,r&-r)).tag=2,li(u,c)),u.lanes|=r,null!==(c=u.alternate)&&(c.lanes|=r),ri(u.return,r),l.lanes|=r;break}c=c.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}Na(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,s=(i=t.pendingProps).children,si(t,r),s=s(n=ni(n,i.unstable_observedBits)),t.flags|=1,Na(e,t,s,r),t.child;case 14:return i=Xn(n=t.type,t.pendingProps),La(e,t,n,i=Xn(n.type,i),s,r);case 15:return Ra(e,t,t.type,t.pendingProps,s,r);case 17:return s=t.type,n=t.pendingProps,n=t.elementType===s?n:Xn(s,n),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mn(s)?(e=!0,En(t)):e=!1,si(t,r),gi(t,s,n),Ei(t,s,n,r),za(null,t,s,!0,e,r);case 19:return eo(e,t,r);case 23:case 24:return ja(e,t,r)}throw Error(a(156,t.tag))},Qu.prototype.render=function(e){Xu(e,this._internalRoot,null,null)},Qu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xu(null,e,null,(function(){t[Ys]=null}))},Ze=function(e){13===e.tag&&(pu(e,4,lu()),Yu(e,4))},et=function(e){13===e.tag&&(pu(e,67108864,lu()),Yu(e,67108864))},tt=function(e){if(13===e.tag){var t=lu(),r=cu(e);pu(e,r,t),Yu(e,r)}},rt=function(e,t){return t()},we=function(e,t,r){switch(t){case"input":if(re(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var s=r[t];if(s!==e&&s.form===e.form){var n=rn(s);if(!n)throw Error(a(90));Y(s),re(s,n)}}}break;case"textarea":le(e,r);break;case"select":null!=(t=r.value)&&ae(e,!!r.multiple,t,!1)}},ke=gu,Be=function(e,t,r,s,n){var i=Do;Do|=4;try{return qn(98,e.bind(null,t,r,s,n))}finally{0===(Do=i)&&(qo(),Kn())}},Oe=function(){0==(49&Do)&&(function(){if(null!==tu){var e=tu;tu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,du(e,Vn())}))}Kn()}(),_u())},Ne=function(e,t){var r=Do;Do|=2;try{return e(t)}finally{0===(Do=r)&&(qo(),Kn())}};var Zu={findFiberByHostInstance:Zs,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},el={bundleType:Zu.bundleType,version:Zu.version,rendererPackageName:Zu.rendererPackageName,rendererConfig:Zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=function(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,s=t;;){var n=r.return;if(null===n)break;var i=n.alternate;if(null===i){if(null!==(s=n.return)){r=s;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return Ye(n),e;if(i===s)return Ye(n),t;i=i.sibling}throw Error(a(188))}if(r.return!==s.return)r=n,s=i;else{for(var o=!1,u=n.child;u;){if(u===r){o=!0,r=n,s=i;break}if(u===s){o=!0,s=n,r=i;break}u=u.sibling}if(!o){for(u=i.child;u;){if(u===r){o=!0,r=i,s=n;break}if(u===s){o=!0,s=i,r=n;break}u=u.sibling}if(!o)throw Error(a(189))}}if(r.alternate!==s)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:e.stateNode},findFiberByHostInstance:Zu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tl.isDisabled&&tl.supportsFiber)try{xn=tl.inject(el),vn=tl}catch(me){}}t.unstable_batchedUpdates=gu},39558:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(77116)},92622:(e,t)=>{"use strict";var r,s,n,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,u=o.now();t.unstable_now=function(){return o.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,p=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(p,0))},s=function(e,t){c=setTimeout(e,t)},n=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,g=-1,b=5,E=0;t.unstable_shouldYield=function(){return t.unstable_now()>=E},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var A=new MessageChannel,x=A.port2;A.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();E=e+b;try{y(!0,e)?x.postMessage(null):(m=!1,y=null)}catch(e){throw x.postMessage(null),e}}else m=!1},r=function(e){y=e,m||(m=!0,x.postMessage(null))},s=function(e,r){g=h((function(){e(t.unstable_now())}),r)},n=function(){d(g),g=-1}}function v(e,t){var r=e.length;e.push(t);e:for(;;){var s=r-1>>>1,n=e[s];if(!(void 0!==n&&0<S(n,t)))break e;e[s]=t,e[r]=n,r=s}}function C(e){return void 0===(e=e[0])?null:e}function P(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var s=0,n=e.length;s<n;){var i=2*(s+1)-1,a=e[i],o=i+1,u=e[o];if(void 0!==a&&0>S(a,r))void 0!==u&&0>S(u,a)?(e[s]=u,e[o]=r,s=o):(e[s]=a,e[i]=r,s=i);else{if(!(void 0!==u&&0>S(u,r)))break e;e[s]=u,e[o]=r,s=o}}}return t}return null}function S(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var w=[],T=[],F=1,D=null,I=3,_=!1,k=!1,B=!1;function O(e){for(var t=C(T);null!==t;){if(null===t.callback)P(T);else{if(!(t.startTime<=e))break;P(T),t.sortIndex=t.expirationTime,v(w,t)}t=C(T)}}function N(e){if(B=!1,O(e),!k)if(null!==C(w))k=!0,r(M);else{var t=C(T);null!==t&&s(N,t.startTime-e)}}function M(e,r){k=!1,B&&(B=!1,n()),_=!0;var i=I;try{for(O(r),D=C(w);null!==D&&(!(D.expirationTime>r)||e&&!t.unstable_shouldYield());){var a=D.callback;if("function"==typeof a){D.callback=null,I=D.priorityLevel;var o=a(D.expirationTime<=r);r=t.unstable_now(),"function"==typeof o?D.callback=o:D===C(w)&&P(w),O(r)}else P(w);D=C(w)}if(null!==D)var u=!0;else{var l=C(T);null!==l&&s(N,l.startTime-r),u=!1}return u}finally{D=null,I=i,_=!1}}var L=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){k||_||(k=!0,r(M))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return C(w)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var r=I;I=t;try{return e()}finally{I=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=I;I=e;try{return t()}finally{I=r}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:F++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>o?(e.sortIndex=a,v(T,e),null===C(w)&&e===C(T)&&(B?n():B=!0,s(N,a-o))):(e.sortIndex=u,v(w,e),k||_||(k=!0,r(M))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var r=I;I=t;try{return e.apply(this,arguments)}finally{I=r}}}},95695:(e,t,r)=>{"use strict";e.exports=r(92622)},50447:(e,t,r)=>{"use strict";r.d(t,{$j:()=>N});var s=r(84245),n=r(14812),i=r(39558);let a=function(e){e()};const o=()=>a;var u=r(99497);const l=Symbol.for("react-redux-context"),c="undefined"!=typeof globalThis?globalThis:{};function p(){var e;if(!u.createContext)return{};const t=null!=(e=c[l])?e:c[l]=new Map;let r=t.get(u.createContext);return r||(r=u.createContext(null),t.set(u.createContext,r)),r}const h=p();let d=null;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},f.apply(this,arguments)}function m(e,t){if(null==e)return{};var r,s,n={},i=Object.keys(e);for(s=0;s<i.length;s++)r=i[s],t.indexOf(r)>=0||(n[r]=e[r]);return n}var y=r(49384),g=r.n(y),b=r(24097);const E=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function A(e,t,r,s,{areStatesEqual:n,areOwnPropsEqual:i,areStatePropsEqual:a}){let o,u,l,c,p,h=!1;return function(d,f){return h?function(h,d){const f=!i(d,u),m=!n(h,o,d,u);return o=h,u=d,f&&m?(l=e(o,u),t.dependsOnOwnProps&&(c=t(s,u)),p=r(l,c,u),p):f?(e.dependsOnOwnProps&&(l=e(o,u)),t.dependsOnOwnProps&&(c=t(s,u)),p=r(l,c,u),p):m?function(){const t=e(o,u),s=!a(t,l);return l=t,s&&(p=r(l,c,u)),p}():p}(d,f):(o=d,u=f,l=e(o,u),c=t(s,u),p=r(l,c,u),h=!0,p)}}function x(e){return function(t){const r=e(t);function s(){return r}return s.dependsOnOwnProps=!1,s}}function v(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function C(e,t){return function(t,{displayName:r}){const s=function(e,t){return s.dependsOnOwnProps?s.mapToProps(e,t):s.mapToProps(e,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(t,r){s.mapToProps=e,s.dependsOnOwnProps=v(e);let n=s(t,r);return"function"==typeof n&&(s.mapToProps=n,s.dependsOnOwnProps=v(n),n=s(t,r)),n},s}}function P(e,t){return(r,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function S(e,t,r){return f({},r,e,t)}const w={notify(){},get:()=>[]};const T="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function F(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function D(e,t){if(F(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let s=0;s<r.length;s++)if(!Object.prototype.hasOwnProperty.call(t,r[s])||!F(e[r[s]],t[r[s]]))return!1;return!0}const I=["reactReduxForwardedRef"];let _=()=>{throw new Error("uSES not initialized!")};const k=[null,null];function B(e,t,r,s,n,i){e.current=s,r.current=!1,n.current&&(n.current=null,i())}function O(e,t){return e===t}const N=function(e,t,r,{pure:s,areStatesEqual:n=O,areOwnPropsEqual:i=D,areStatePropsEqual:a=D,areMergedPropsEqual:l=D,forwardRef:c=!1,context:p=h}={}){const d=p,y=function(e){return e?"function"==typeof e?C(e):P(e,"mapStateToProps"):x((()=>({})))}(e),v=function(e){return e&&"object"==typeof e?x((t=>function(e,t){const r={};for(const s in e){const n=e[s];"function"==typeof n&&(r[s]=(...e)=>t(n(...e)))}return r}(e,t))):e?"function"==typeof e?C(e):P(e,"mapDispatchToProps"):x((e=>({dispatch:e})))}(t),F=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:s}){let n,i=!1;return function(t,r,a){const o=e(t,r,a);return i?s(o,n)||(n=o):(i=!0,n=o),n}}}(e):P(e,"mergeProps"):()=>S}(r),N=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,s={shouldHandleStateChanges:N,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:y,initMapDispatchToProps:v,initMergeProps:F,areStatesEqual:n,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:l};function p(t){const[r,n,i]=u.useMemo((()=>{const{reactReduxForwardedRef:e}=t,r=m(t,I);return[t.context,e,r]}),[t]),a=u.useMemo((()=>r&&r.Consumer&&(0,b.isContextConsumer)(u.createElement(r.Consumer,null))?r:d),[r,d]),l=u.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),p=Boolean(l)&&Boolean(l.store),h=c?t.store:l.store,y=p?l.getServerState:h.getState,g=u.useMemo((()=>function(e,t){let{initMapStateToProps:r,initMapDispatchToProps:s,initMergeProps:n}=t,i=m(t,E);return A(r(e,i),s(e,i),n(e,i),e,i)}(h.dispatch,s)),[h]),[x,v]=u.useMemo((()=>{if(!N)return k;const e=function(e,t){let r,s=w,n=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function u(){n++,r||(r=t?t.addNestedSub(a):e.subscribe(a),s=function(){const e=o();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let s=!0,n=r={callback:e,next:null,prev:r};return n.prev?n.prev.next=n:t=n,function(){s&&null!==t&&(s=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}())}function l(){n--,r&&0===n&&(r(),r=void 0,s.clear(),s=w)}const c={addNestedSub:function(e){u();const t=s.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){s.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,u())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>s};return c}(h,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,c,l]),C=u.useMemo((()=>c?l:f({},l,{subscription:x})),[c,l,x]),P=u.useRef(),S=u.useRef(i),F=u.useRef(),D=u.useRef(!1),O=(u.useRef(!1),u.useRef(!1)),M=u.useRef();T((()=>(O.current=!0,()=>{O.current=!1})),[]);const L=u.useMemo((()=>()=>F.current&&i===S.current?F.current:g(h.getState(),i)),[h,i]),R=u.useMemo((()=>e=>x?function(e,t,r,s,n,i,a,o,u,l,c){if(!e)return()=>{};let p=!1,h=null;const d=()=>{if(p||!o.current)return;const e=t.getState();let r,d;try{r=s(e,n.current)}catch(e){d=e,h=e}d||(h=null),r===i.current?a.current||l():(i.current=r,u.current=r,a.current=!0,c())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}(N,h,x,g,S,P,D,O,F,v,e):()=>{}),[x]);var j,U;let V;j=B,U=[S,P,D,i,F,v],T((()=>j(...U)),undefined);try{V=_(R,L,y?()=>g(y(),i):L)}catch(e){throw M.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${M.current.stack}\n\n`),e}T((()=>{M.current=void 0,F.current=void 0,P.current=V}));const $=u.useMemo((()=>u.createElement(e,f({},V,{ref:n}))),[n,e,V]);return u.useMemo((()=>N?u.createElement(a.Provider,{value:C},$):$),[a,$,C])}const h=u.memo(p);if(h.WrappedComponent=e,h.displayName=p.displayName=r,c){const t=u.forwardRef((function(e,t){return u.createElement(h,f({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,g()(t,e)}return g()(h,e)}};var M;d=n.useSyncExternalStoreWithSelector,(e=>{_=e})(s.useSyncExternalStore),M=i.unstable_batchedUpdates,a=M},20163:(e,t)=>{"use strict";var r=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case n:case a:case i:case p:case h:return e;default:switch(e=e&&e.$$typeof){case l:case u:case c:case f:case d:case o:return e;default:return t}}case s:return t}}}(e)===u}},24097:(e,t,r)=>{"use strict";e.exports=r(20163)},55615:(e,t,r)=>{const s=Symbol("SemVer ANY");class n{static get ANY(){return s}constructor(e,t){if(t=i(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=n;const i=r(90779),{safeRe:a,t:o}=r(37642),u=r(97326),l=r(87626),c=r(24248),p=r(84597)},84597:(e,t,r)=>{class s{constructor(e,t){if(t=i(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&m))+":"+e,r=n.get(t);if(r)return r;const s=this.options.loose,i=s?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];e=e.replace(i,D(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(l[c.COMPARATORTRIM],p),o("comparator trim",e),e=e.replace(l[c.TILDETRIM],h),o("tilde trim",e),e=e.replace(l[c.CARETTRIM],d),o("caret trim",e);let u=e.split(" ").map((e=>E(e,this.options))).join(" ").split(/\s+/).map((e=>F(e,this.options)));s&&(u=u.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(l[c.COMPARATORLOOSE]))))),o("range list",u);const g=new Map,b=u.map((e=>new a(e,this.options)));for(const e of b){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const A=[...g.values()];return n.set(t,A),A}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>b(r,t)&&e.set.some((e=>b(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1}}e.exports=s;const n=new(r(54280))({max:1e3}),i=r(90779),a=r(55615),o=r(87626),u=r(24248),{safeRe:l,t:c,comparatorTrimReplace:p,tildeTrimReplace:h,caretTrimReplace:d}=r(37642),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:m}=r(76758),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,b=(e,t)=>{let r=!0;const s=e.slice();let n=s.pop();for(;r&&s.length;)r=s.every((e=>n.intersects(e,t))),n=s.pop();return r},E=(e,t)=>(o("comp",e,t),e=C(e,t),o("caret",e),e=x(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=T(e,t),o("stars",e),e),A=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const r=t.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(r,((t,r,s,n,i)=>{let a;return o("tilde",e,t,r,s,n,i),A(r)?a="":A(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:A(n)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:i?(o("replaceTilde pr",i),a=`>=${r}.${s}.${n}-${i} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`,o("tilde return",a),a}))},C=(e,t)=>e.trim().split(/\s+/).map((e=>P(e,t))).join(" "),P=(e,t)=>{o("caret",e,t);const r=t.loose?l[c.CARETLOOSE]:l[c.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,i,a)=>{let u;return o("caret",e,t,r,n,i,a),A(r)?u="":A(n)?u=`>=${r}.0.0${s} <${+r+1}.0.0-0`:A(i)?u="0"===r?`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${s} <${+r+1}.0.0-0`:a?(o("replaceCaret pr",a),u="0"===r?"0"===n?`>=${r}.${n}.${i}-${a} <${r}.${n}.${+i+1}-0`:`>=${r}.${n}.${i}-${a} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${i}-${a} <${+r+1}.0.0-0`):(o("no pr"),u="0"===r?"0"===n?`>=${r}.${n}.${i}${s} <${r}.${n}.${+i+1}-0`:`>=${r}.${n}.${i}${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${i} <${+r+1}.0.0-0`),o("caret return",u),u}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>w(e,t))).join(" ")),w=(e,t)=>{e=e.trim();const r=t.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(r,((r,s,n,i,a,u)=>{o("xRange",e,r,s,n,i,a,u);const l=A(n),c=l||A(i),p=c||A(a),h=p;return"="===s&&h&&(s=""),u=t.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&h?(c&&(i=0),a=0,">"===s?(s=">=",c?(n=+n+1,i=0,a=0):(i=+i+1,a=0)):"<="===s&&(s="<",c?n=+n+1:i=+i+1),"<"===s&&(u="-0"),r=`${s+n}.${i}.${a}${u}`):c?r=`>=${n}.0.0${u} <${+n+1}.0.0-0`:p&&(r=`>=${n}.${i}.0${u} <${n}.${+i+1}.0-0`),o("xRange return",r),r}))},T=(e,t)=>(o("replaceStars",e,t),e.trim().replace(l[c.STAR],"")),F=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),D=e=>(t,r,s,n,i,a,o,u,l,c,p,h,d)=>`${r=A(s)?"":A(n)?`>=${s}.0.0${e?"-0":""}`:A(i)?`>=${s}.${n}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=A(l)?"":A(c)?`<${+l+1}.0.0-0`:A(p)?`<${l}.${+c+1}.0-0`:h?`<=${l}.${c}.${p}-${h}`:e?`<${l}.${c}.${+p+1}-0`:`<=${u}`}`.trim(),I=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(o(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},24248:(e,t,r)=>{const s=r(87626),{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=r(76758),{safeRe:a,t:o}=r(37642),u=r(90779),{compareIdentifiers:l}=r(83266);class c{constructor(e,t){if(t=u(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[o.LOOSE]:a[o.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(s("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(s("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let s=[t,e];!1===r&&(s=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},72411:(e,t,r)=>{const s=r(82680);e.exports=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},97326:(e,t,r)=>{const s=r(43229),n=r(54636),i=r(97152),a=r(12045),o=r(5978),u=r(94237);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return s(e,r,l);case"!=":return n(e,r,l);case">":return i(e,r,l);case">=":return a(e,r,l);case"<":return o(e,r,l);case"<=":return u(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},44086:(e,t,r)=>{const s=r(24248),n=r(82680),{safeRe:i,t:a}=r(37642);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=i[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),i[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[a.COERCERTL].lastIndex=-1}else r=e.match(i[a.COERCE]);return null===r?null:n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},60770:(e,t,r)=>{const s=r(24248);e.exports=(e,t,r)=>{const n=new s(e,r),i=new s(t,r);return n.compare(i)||n.compareBuild(i)}},12371:(e,t,r)=>{const s=r(94482);e.exports=(e,t)=>s(e,t,!0)},94482:(e,t,r)=>{const s=r(24248);e.exports=(e,t,r)=>new s(e,r).compare(new s(t,r))},70738:(e,t,r)=>{const s=r(82680);e.exports=(e,t)=>{const r=s(e,null,!0),n=s(t,null,!0),i=r.compare(n);if(0===i)return null;const a=i>0,o=a?r:n,u=a?n:r,l=!!o.prerelease.length;if(u.prerelease.length&&!l)return u.patch||u.minor?o.patch?"patch":o.minor?"minor":"major":"major";const c=l?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"}},43229:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>0===s(e,t,r)},97152:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(e,t,r)>0},12045:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(e,t,r)>=0},64752:(e,t,r)=>{const s=r(24248);e.exports=(e,t,r,n,i)=>{"string"==typeof r&&(i=n,n=r,r=void 0);try{return new s(e instanceof s?e.version:e,r).inc(t,n,i).version}catch(e){return null}}},5978:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(e,t,r)<0},94237:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(e,t,r)<=0},76555:(e,t,r)=>{const s=r(24248);e.exports=(e,t)=>new s(e,t).major},47526:(e,t,r)=>{const s=r(24248);e.exports=(e,t)=>new s(e,t).minor},54636:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>0!==s(e,t,r)},82680:(e,t,r)=>{const s=r(24248);e.exports=(e,t,r=!1)=>{if(e instanceof s)return e;try{return new s(e,t)}catch(e){if(!r)return null;throw e}}},79377:(e,t,r)=>{const s=r(24248);e.exports=(e,t)=>new s(e,t).patch},38471:(e,t,r)=>{const s=r(82680);e.exports=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null}},25578:(e,t,r)=>{const s=r(94482);e.exports=(e,t,r)=>s(t,e,r)},36942:(e,t,r)=>{const s=r(60770);e.exports=(e,t)=>e.sort(((e,r)=>s(r,e,t)))},31915:(e,t,r)=>{const s=r(84597);e.exports=(e,t,r)=>{try{t=new s(t,r)}catch(e){return!1}return t.test(e)}},89619:(e,t,r)=>{const s=r(60770);e.exports=(e,t)=>e.sort(((e,r)=>s(e,r,t)))},77906:(e,t,r)=>{const s=r(82680);e.exports=(e,t)=>{const r=s(e,t);return r?r.version:null}},82328:(e,t,r)=>{const s=r(37642),n=r(76758),i=r(24248),a=r(83266),o=r(82680),u=r(77906),l=r(72411),c=r(64752),p=r(70738),h=r(76555),d=r(47526),f=r(79377),m=r(38471),y=r(94482),g=r(25578),b=r(12371),E=r(60770),A=r(89619),x=r(36942),v=r(97152),C=r(5978),P=r(43229),S=r(54636),w=r(12045),T=r(94237),F=r(97326),D=r(44086),I=r(55615),_=r(84597),k=r(31915),B=r(80799),O=r(66276),N=r(80705),M=r(37773),L=r(4926),R=r(3782),j=r(88028),U=r(90077),V=r(27636),$=r(14412),z=r(28326);e.exports={parse:o,valid:u,clean:l,inc:c,diff:p,major:h,minor:d,patch:f,prerelease:m,compare:y,rcompare:g,compareLoose:b,compareBuild:E,sort:A,rsort:x,gt:v,lt:C,eq:P,neq:S,gte:w,lte:T,cmp:F,coerce:D,Comparator:I,Range:_,satisfies:k,toComparators:B,maxSatisfying:O,minSatisfying:N,minVersion:M,validRange:L,outside:R,gtr:j,ltr:U,intersects:V,simplifyRange:$,subset:z,SemVer:i,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},76758:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},87626:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},83266:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const s=t.test(e),n=t.test(r);return s&&n&&(e=+e,r=+r),e===r?0:s&&!n?-1:n&&!s?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},90779:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},37642:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=r(76758),a=r(87626),o=(t=e.exports={}).re=[],u=t.safeRe=[],l=t.src=[],c=t.t={};let p=0;const h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[h,n]],f=(e,t,r)=>{const s=(e=>{for(const[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),n=p++;a(e,n,t),c[e]=n,l[n]=t,o[n]=new RegExp(t,r?"g":void 0),u[n]=new RegExp(s,r?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),f("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${h}+`),f("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),f("FULL",`^${l[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),f("LOOSE",`^${l[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),f("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?(?:$|[^\\d])`),f("COERCERTL",l[c.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},88028:(e,t,r)=>{const s=r(3782);e.exports=(e,t,r)=>s(e,t,">",r)},27636:(e,t,r)=>{const s=r(84597);e.exports=(e,t,r)=>(e=new s(e,r),t=new s(t,r),e.intersects(t,r))},90077:(e,t,r)=>{const s=r(3782);e.exports=(e,t,r)=>s(e,t,"<",r)},66276:(e,t,r)=>{const s=r(24248),n=r(84597);e.exports=(e,t,r)=>{let i=null,a=null,o=null;try{o=new n(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(i&&-1!==a.compare(e)||(i=e,a=new s(i,r)))})),i}},80705:(e,t,r)=>{const s=r(24248),n=r(84597);e.exports=(e,t,r)=>{let i=null,a=null,o=null;try{o=new n(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(i&&1!==a.compare(e)||(i=e,a=new s(i,r)))})),i}},37773:(e,t,r)=>{const s=r(24248),n=r(84597),i=r(97152);e.exports=(e,t)=>{e=new n(e,t);let r=new s("0.0.0");if(e.test(r))return r;if(r=new s("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let a=null;n.forEach((e=>{const t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!i(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!i(r,a)||(r=a)}return r&&e.test(r)?r:null}},3782:(e,t,r)=>{const s=r(24248),n=r(55615),{ANY:i}=n,a=r(84597),o=r(31915),u=r(97152),l=r(5978),c=r(94237),p=r(12045);e.exports=(e,t,r,h)=>{let d,f,m,y,g;switch(e=new s(e,h),t=new a(t,h),r){case">":d=u,f=c,m=l,y=">",g=">=";break;case"<":d=l,f=p,m=u,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,h))return!1;for(let r=0;r<t.set.length;++r){const s=t.set[r];let a=null,o=null;if(s.forEach((e=>{e.semver===i&&(e=new n(">=0.0.0")),a=a||e,o=o||e,d(e.semver,a.semver,h)?a=e:m(e.semver,o.semver,h)&&(o=e)})),a.operator===y||a.operator===g)return!1;if((!o.operator||o.operator===y)&&f(e,o.semver))return!1;if(o.operator===g&&m(e,o.semver))return!1}return!0}},14412:(e,t,r)=>{const s=r(31915),n=r(94482);e.exports=(e,t,r)=>{const i=[];let a=null,o=null;const u=e.sort(((e,t)=>n(e,t,r)));for(const e of u)s(e,t,r)?(o=e,a||(a=e)):(o&&i.push([a,o]),o=null,a=null);a&&i.push([a,null]);const l=[];for(const[e,t]of i)e===t?l.push(e):t||e!==u[0]?t?e===u[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const c=l.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return c.length<p.length?c:t}},28326:(e,t,r)=>{const s=r(84597),n=r(55615),{ANY:i}=n,a=r(31915),o=r(94482),u=[new n(">=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?u:l}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l}const s=new Set;let n,c,d,f,m,y,g;for(const t of e)">"===t.operator||">="===t.operator?n=p(n,t,r):"<"===t.operator||"<="===t.operator?c=h(c,t,r):s.add(t.semver);if(s.size>1)return null;if(n&&c){if(d=o(n.semver,c.semver,r),d>0)return null;if(0===d&&(">="!==n.operator||"<="!==c.operator))return null}for(const e of s){if(n&&!a(e,String(n),r))return null;if(c&&!a(e,String(c),r))return null;for(const s of t)if(!a(e,String(s),r))return!1;return!0}let b=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver,E=!(!n||r.includePrerelease||!n.semver.prerelease.length)&&n.semver;b&&1===b.prerelease.length&&"<"===c.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,y=y||"<"===e.operator||"<="===e.operator,n)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if(f=p(n,e,r),f===e&&f!==n)return!1}else if(">="===n.operator&&!a(n.semver,String(e),r))return!1;if(c)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(m=h(c,e,r),m===e&&m!==c)return!1}else if("<="===c.operator&&!a(c.semver,String(e),r))return!1;if(!e.operator&&(c||n)&&0!==d)return!1}return!(n&&y&&!c&&0!==d||c&&g&&!n&&0!==d||E||b)},p=(e,t,r)=>{if(!e)return t;const s=o(e.semver,t.semver,r);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,r)=>{if(!e)return t;const s=o(e.semver,t.semver,r);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new s(e,r),t=new s(t,r);let n=!1;e:for(const s of e.set){for(const e of t.set){const t=c(s,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}},80799:(e,t,r)=>{const s=r(84597);e.exports=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},4926:(e,t,r)=>{const s=r(84597);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},32333:e=>{function t(e){var t=/\.[^.]*$/.exec(e);return t?t.index+1:e.length}function r(e,t,r){if(e.reduce)return e.reduce(t,r);for(var s=0,n=arguments.length>=3?r:e[s++];s<e.length;s++)t(n,e[s],s);return n}function s(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t.call(e,e[r],r)}function n(e,t){if(e.map)return e.map(t);for(var r=[],s=0;s<e.length;s++)r.push(t.call(e,e[s],s));return r}e.exports=function(e,i){i||(i={});var a=void 0===i.hsep?" ":i.hsep,o=i.align||[],u=i.stringLength||function(e){return String(e).length},l=r(e,(function(e,r){return s(r,(function(r,s){var n=t(r);(!e[s]||n>e[s])&&(e[s]=n)})),e}),[]),c=n(e,(function(e){return n(e,(function(e,r){var s=String(e);if("."===o[r]){var n=t(s),i=l[r]+(/\./.test(s)?1:2)-(u(s)-n);return s+Array(i).join(" ")}return s}))})),p=r(c,(function(e,t){return s(t,(function(t,r){var s=u(t);(!e[r]||s>e[r])&&(e[r]=s)})),e}),[]);return n(c,(function(e){return n(e,(function(e,t){var r=p[t]-u(e)||0,s=Array(Math.max(r+1,1)).join(" ");return"r"===o[t]||"."===o[t]?s+e:"c"===o[t]?Array(Math.ceil(r/2+1)).join(" ")+e+Array(Math.floor(r/2+1)).join(" "):e+s})).join(a).replace(/\s+$/,"")})).join("\n")}},96832:e=>{"use strict";let t=null;function r(e){if(null!==t&&(t.property,1)){const e=t;return t=r.prototype=null,e}return t=r.prototype=null==e?Object.create(null):e,new r}r(),e.exports=function(e){return r(e)}},15229:(e,t,r)=>{"use strict";var s=r(99497),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useState,a=s.useEffect,o=s.useLayoutEffect,u=s.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),s=i({inst:{value:r,getSnapshot:t}}),n=s[0].inst,c=s[1];return o((function(){n.value=r,n.getSnapshot=t,l(n)&&c({inst:n})}),[e,r,t]),a((function(){return l(n)&&c({inst:n}),e((function(){l(n)&&c({inst:n})}))}),[e]),u(r),r};t.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},92047:(e,t,r)=>{"use strict";var s=r(99497),n=r(84245),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,o=s.useRef,u=s.useEffect,l=s.useMemo,c=s.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,s,n){var p=o(null);if(null===p.current){var h={hasValue:!1,value:null};p.current=h}else h=p.current;p=l((function(){function e(e){if(!u){if(u=!0,a=e,e=s(e),void 0!==n&&h.hasValue){var t=h.value;if(n(t,e))return o=t}return o=e}if(t=o,i(a,e))return t;var r=s(e);return void 0!==n&&n(t,r)?t:(a=e,o=r)}var a,o,u=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,r,s,n]);var d=a(e,p[0],p[1]);return u((function(){h.hasValue=!0,h.value=d}),[d]),c(d),d}},84245:(e,t,r)=>{"use strict";e.exports=r(15229)},14812:(e,t,r)=>{"use strict";e.exports=r(92047)},11999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=l,t.default=function(e,t,r,s={}){if(!o){o=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";process.emitWarning?process.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return l(e,{start:{column:r=Math.max(r,0),line:t}},s)};var s=r(4608),n=function(e,t){if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(true);if(r&&r.has(e))return r.get(e);var s={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(s,a,o):s[a]=e[a]}return s.default=e,r&&r.set(e,s),s}(r(70463));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}let a,o=!1;const u=/\r\n|[\n\r\u2028\u2029]/;function l(e,t,r={}){const i=(r.highlightCode||r.forceColor)&&(0,s.shouldHighlight)(r),o=r.forceColor?(null!=a||(a=new n.default.constructor({enabled:!0,level:1})),a):n.default,l=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(o),c=(e,t)=>i?e(t):t,p=e.split(u),{start:h,end:d,markerLines:f}=function(e,t,r){const s=Object.assign({column:0,line:-1},e.start),n=Object.assign({},s,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},o=s.line,u=s.column,l=n.line,c=n.column;let p=Math.max(o-(i+1),0),h=Math.min(t.length,l+a);-1===o&&(p=0),-1===l&&(h=t.length);const d=l-o,f={};if(d)for(let e=0;e<=d;e++){const r=e+o;if(u)if(0===e){const e=t[r-1].length;f[r]=[u,e-u+1]}else if(e===d)f[r]=[0,c];else{const s=t[r-e].length;f[r]=[0,s]}else f[r]=!0}else f[o]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:h,markerLines:f}}(t,p,r),m=t.start&&"number"==typeof t.start.column,y=String(d).length;let g=(i?(0,s.default)(e,r):e).split(u,d).slice(h,d).map(((e,t)=>{const s=h+1+t,n=` ${` ${s}`.slice(-y)} |`,i=f[s],a=!f[s+1];if(i){let t="";if(Array.isArray(i)){const s=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," "),o=i[1]||1;t=["\n ",c(l.gutter,n.replace(/\d/g," "))," ",s,c(l.marker,"^").repeat(o)].join(""),a&&r.message&&(t+=" "+c(l.message,r.message))}return[c(l.marker,">"),c(l.gutter,n),e.length>0?` ${e}`:"",t].join("")}return` ${c(l.gutter,n)}${e.length>0?` ${e}`:""}`})).join("\n");return r.message&&!m&&(g=`${" ".repeat(y+1)}${r.message}\n${g}`),i?o.reset(g):g}},9737:(e,t,r)=>{e.exports=r(95619)},27343:(e,t,r)=>{e.exports=r(7286)},30977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,r,s,n){const i=this._queueCursor;i===this._queue.length&&this._allocQueue();const a=this._queue[i];a.char=e,a.repeat=t,a.line=r,a.column=s,a.filename=n,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const r=e?e.get():null;return t.map=r,r},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const r=null==e?void 0:e.getRawMappings();return t.rawMappings=r,r},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let r=0;r<e;r++){const e=t[r];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,r){if(this._last=e,-1===e){const e=this._fastIndentations[t];this._str+=void 0!==e?e:t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)}_append(e,t,r){const s=e.length,n=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!r&&!this._map)return void(n.column+=s);const{column:i,identifierName:a,identifierNamePos:o,filename:u}=t;let l=t.line;null==a&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let c=e.indexOf("\n"),p=0;for(0!==c&&this._mark(l,i,a,o,u);-1!==c;)n.line++,n.column=0,p=c+1,p<s&&void 0!==l&&this._mark(++l,0,null,null,u),c=e.indexOf("\n",p);n.column+=s-p}_mark(e,t,r,s,n){var i;null==(i=this._map)||i.mark(this._position,e,t,r,s,n)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let r=e-1;r>=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const r=e.identifierName,s=this._sourcePosition;r&&(this._canMarkIdName=!1,s.identifierName=r),t(),r&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){this._map&&this._normalizePosition(e,t,r)}withSource(e,t,r){this._map&&this.source(e,t),r()}_normalizePosition(e,t,r){const s=t[e],n=this._sourcePosition;s&&(n.line=s.line,n.column=Math.max(s.column+r,0),n.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let r=-1,s=0;for(let n=0;n<t;n++){const t=e[n];10===t.char&&(r=s),s+=t.repeat}return-1===r?this._position.column+s:s-1-r}getCurrentLine(){let e=0;const t=this._queue;for(let r=0;r<this._queueCursor;r++)10===t[r].char&&e++;return this._position.line+e}}},95690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const r=null==(t=e.directives)?void 0:t.length;if(r){var s;const t=e.body.length?2:1;this.printSequence(e.directives,e,{indent:!0,trailingCommentsLineOffset:t}),null!=(s=e.directives[r-1].trailingComments)&&s.length||this.newline(t)}this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e)},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const{value:n}=e;if(s.test(n)){if(r.test(n))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${n}'`)}else this.token(`"${n}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter,e),this.print(e.program,e)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const r=null==(t=e.directives)?void 0:t.length;if(r){var s;const t=e.body.length?2:1;this.printSequence(e.directives,e,{trailingCommentsLineOffset:t}),null!=(s=e.directives[r-1].trailingComments)&&s.length||this.newline(t)}this.printSequence(e.body,e)};const r=/(?:^|[^\\])(?:\\\\)*'/,s=/(?:^|[^\\])(?:\\\\)*"/},62881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators,e);const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.ClassBody=function(e){this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.endsWith(10)||this.newline(),this.rightBrace(e))},t.ClassExpression=t.ClassDeclaration=function(e,t){(n(t)||i(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.ClassProperty=function(e){var t;this.printJoin(e.decorators,e);const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e))},t._classMethodHead=function(e){var t;this.printJoin(e.decorators,e);const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var s=r(10147);const{isExportDefaultDeclaration:n,isExportNamedDeclaration:i}=s},54428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e,t){const r=this.inForStatementInitCounter&&"in"===e.operator&&!n.needsParens(e,t);r&&this.tokenChar(40),this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator),this.space(),this.print(e.right,e),r&&this.tokenChar(41)},t.AssignmentPattern=function(e){this.print(e.left,e),e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e)},t.AwaitExpression=function(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))},t.BindExpression=function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},t.CallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent,e),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate,e)},t.Decorator=function(e){this.tokenChar(64);const{expression:t}=e;!function(e){return"ParenthesizedExpression"!==e.type&&!l("CallExpression"===e.type?e.callee:e)}(t)?this.print(t,e):(this.tokenChar(40),this.print(t,e),this.tokenChar(41)),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body,e)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&o(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;a(e.property)&&"number"==typeof e.property.value&&(t=!0),t?(this.tokenChar(91),this.print(e.property,e),this.tokenChar(93)):(this.tokenChar(46),this.print(e.property,e))},t.MetaProperty=function(e){this.print(e.meta,e),this.tokenChar(46),this.print(e.property,e)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t,e),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){this.word("new"),this.space(),this.print(e.callee,e),(!this.format.minified||0!==e.arguments.length||e.optional||i(t,{callee:e})||o(t)||u(t))&&(this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e))},t.OptionalCallExpression=function(e){this.print(e.callee,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.print(e.typeArguments,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:r,property:s}=e;if(this.print(e.object,e),!t&&o(s))throw new TypeError("Got a MemberExpression for MemberExpression property");a(s)&&"number"==typeof s.value&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(s,e),this.tokenChar(93)):(r||this.tokenChar(46),this.print(s,e))},t.ParenthesizedExpression=function(e){this.tokenChar(40),this.print(e.expression,e),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id,e)},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){const{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument,e)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.printTerminatorless(e.argument,e,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument,e))):e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var s=r(10147),n=r(22603);const{isCallExpression:i,isLiteral:a,isMemberExpression:o,isNewExpression:u}=s;function l(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&l(e.object);default:return!1}}},41956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),n.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),p.call(this,e)},t.DeclareFunction=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation,e)},t.DeclareOpaqueType=function(e,t){a(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value,e),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;u(this,"boolean",t),l(this,e)},t.EnumBooleanMember=function(e){c(this,e)},t.EnumDeclaration=function(e){const{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t,e),this.print(r,e)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t,e),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;u(this,"number",t),l(this,e)},t.EnumNumberMember=function(e){c(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;u(this,"string",t),l(this,e)},t.EnumStringMember=function(e){c(this,e)},t.EnumSymbolBody=function(e){u(this,"symbol",!0),l(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation,e),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params,e),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest,e)),this.tokenChar(41);const r=null==t?void 0:t.type;null!=r&&("ObjectTypeCallProperty"===r||"ObjectTypeInternalSlot"===r||"DeclareFunction"===r||"ObjectTypeProperty"===r&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation,e)},t.IndexedAccessType=function(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id,e),this.print(e.typeParameters,e,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),this.space(),this.print(e.body,e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:h})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation,e)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())}}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id,e),this.tokenChar(58),this.space()),this.print(e.key,e),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value,e)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id,e),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space()),this._variance(e),this.print(e.key,e),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype,e)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype,e)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType,e),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.tokenChar(46),this.print(e.id,e)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types,e),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params,e,{}),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:d})},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,r,s;(this.print(e.id,e),this.print(e.typeParameters,e),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),"DeclareClass"===e.type)&&(null!=(r=e.mixins)&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e)),null!=(s=e.implements)&&s.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)));this.space(),this.print(e.body,e)},t._variance=function(e){var t;const r=null==(t=e.variance)?void 0:t.kind;null!=r&&("plus"===r?this.tokenChar(43):"minus"===r&&this.tokenChar(45))};var s=r(10147),n=r(55894),i=r(74693);const{isDeclareExportDeclaration:a,isStatement:o}=s;function u(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function l(e,t){const{members:r}=t;e.token("{"),e.indent(),e.newline();for(const s of r)e.print(s,t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function c(e,t){const{id:r,init:s}=t;e.print(r,t),e.space(),e.token("="),e.space(),e.print(s,t),e.token(",")}function p(e){if(e.declaration){const t=e.declaration;this.print(t,e),o(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function h(){this.space(),this.tokenChar(38),this.space()}function d(){this.space(),this.tokenChar(124),this.space()}},2806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(79357);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var n=r(54428);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r(99170);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=r(62881);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var o=r(99130);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var u=r(55894);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=r(74693);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(41956);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var p=r(95690);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=r(69924);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var d=r(71410);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}))},69924:(e,t)=>{"use strict";function r(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.tokenChar(61),this.print(e.value,e))},t.JSXClosingElement=function(e){this.token("</"),this.print(e.name,e),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingElement,e)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression,e),this.tokenChar(125)},t.JSXFragment=function(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.tokenChar(46),this.print(e.property,e)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.tokenChar(58),this.print(e.name,e)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:r})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument,e),this.tokenChar(125)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression,e),this.tokenChar(125)},t.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)}},99130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){let r;e.async&&(this.word("async",!0),this.space()),this.format.retainLines||1!==e.params.length||!n(r=e.params[0])||function(e,t){var r,s;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||null!=(r=t.leadingComments)&&r.length||null!=(s=t.trailingComments)&&s.length)}(e,r)?this._params(e,void 0,t):this.print(r,e,!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.print(e.body,e)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body,e)},t._functionHead=function(e,t){e.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),e.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),e.id&&this.print(e.id,e),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){const t=e.kind,r=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r,e),this.tokenChar(93)):this.print(r,e),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},t._param=function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t._parameters=function(e,t){const r=e.length;for(let s=0;s<r;s++)this._param(e[s],t),s<e.length-1&&(this.tokenChar(44),this.space())},t._params=function(e,t,r){this.print(e.typeParameters,e);const s=i.call(this,t,r);s&&this.sourceIdentifierName(s.name,s.pos),this.tokenChar(40),this._parameters(e.params,e),this.tokenChar(41);const n="ArrowFunctionExpression"===e.type;this.print(e.returnType,e,n),this._noLineTerminator=n},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,e,t))};var s=r(10147);const{isIdentifier:n}=s;function i(e,t){let r,s=e;if(!s&&t){const e=t.type;"VariableDeclarator"===e?s=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?s=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(s=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(s=t.key)}if(s){var n,i;if("Identifier"===s.type)r={pos:null==(n=s.loc)?void 0:n.start,name:(null==(i=s.loc)?void 0:i.identifierName)||s.name};else if("PrivateName"===s.type){var a;r={pos:null==(a=s.loc)?void 0:a.start,name:"#"+s.id.name}}else if("StringLiteral"===s.type){var o;r={pos:null==(o=s.loc)?void 0:o.start,name:s.value}}return r}}},55894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()},t.ExportDefaultDeclaration=function(e){p(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space();const t=e.declaration;this.print(t,e),l(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported,e)},t.ExportNamedDeclaration=function(e){if(p(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t,e),l(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const s=e.specifiers.slice(0);let n=!1;for(;;){const t=s[0];if(!i(t)&&!a(t))break;n=!0,this.print(s.shift(),e),s.length&&(this.tokenChar(44),this.space())}var t,r;(s.length||!s.length&&!n)&&(this.tokenChar(123),s.length&&(this.space(),this.printList(s,e),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e)),this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported,e)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,r;this.word("import"),this.space();const s="type"===e.importKind||"typeof"===e.importKind;s?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const n=e.specifiers.slice(0),i=!!n.length;for(;i;){const t=n[0];if(!o(t)&&!u(t))break;this.print(n.shift(),e),n.length&&(this.tokenChar(44),this.space())}n.length?(this.tokenChar(123),this.space(),this.printList(n,e),this.space(),this.tokenChar(125)):s&&!i&&(this.tokenChar(123),this.tokenChar(125)),(i||s)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local,e)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source,e),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options,e)),this.tokenChar(41)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local,e)},t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))},t._printAttributes=function(e){const{importAttributesKeyword:t}=this.format,{attributes:r,assertions:s}=e;!r||t||c||(c=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const n="assert"===t||!t&&s;this.word(n?"assert":"with"),this.space(),n||"with"===t?(this.tokenChar(123),this.space(),this.printList(r||s,e),this.space(),this.tokenChar(125)):this.printList(r||s,e)};var s=r(10147);const{isClassDeclaration:n,isExportDefaultSpecifier:i,isExportNamespaceSpecifier:a,isImportDefaultSpecifier:o,isImportNamespaceSpecifier:u,isStatement:l}=s;let c=!1;function p(e,t){n(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t)}},99170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),c(this,e.label,e,!0)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.tokenChar(41),this.space()),this.print(e.body,e)},t.ContinueStatement=function(e){this.word("continue"),c(this,e.label,e,!0)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.tokenChar(59),e.test&&(this.space(),this.print(e.test,e)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update,e)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.space();const t=e.alternate&&a(u(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.LabeledStatement=function(e){this.print(e.label,e),this.tokenChar(58),this.space(),this.print(e.body,e)},t.ReturnStatement=function(e){this.word("return"),c(this,e.argument,e,!1)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant,e),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),c(this,e.argument,e,!1)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:r}=e;this.word(r,"using"===r||"await using"===r),this.space();let s=!1;if(!n(t))for(const t of e.declarations)t.init&&(s=!0);if(this.printList(e.declarations,e,{separator:s?function(){this.tokenChar(44),this.newline()}:void 0,indent:e.declarations.length>1}),n(t))if(i(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init,e))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object,e),this.tokenChar(41),this.printBlock(e)};var s=r(10147);const{isFor:n,isForStatement:i,isIfStatement:a,isStatement:o}=s;function u(e){const{body:t}=e;return!1===o(t)?e:u(t)}function l(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.print(e.left,e),this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right,e),this.tokenChar(41),this.printBlock(e)}function c(e,t,r,s){t&&(e.space(),e.printTerminatorless(t,r,s)),e.semicolon()}t.ForInStatement=l,t.ForOfStatement=l},79357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){const r=t.quasis[0]===e,s=t.quasis[t.quasis.length-1]===e,n=(r?"`":"}")+e.value.raw+(s?"`":"${");this.token(n,!0)},t.TemplateLiteral=function(e){const t=e.quasis;for(let r=0;r<t.length;r++)this.print(t[r],e),r+1<t.length&&this.print(e.expressions[r],e)}},74693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,r=t.length;this.tokenChar(91);for(let s=0;s<t.length;s++){const n=t[s];n?(s>0&&this.space(),this.print(n,e),s<r-1&&this.tokenChar(44)):this.tokenChar(44)}this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.DecimalLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),r=this.format.jsescOption,s=e.value,i=s+"";r.numbers?this.number(n(s,r),s):null==t?this.number(i,s):this.format.minified?this.number(t.length<i.length?t:i,s):this.number(t,s)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;this.tokenChar(123),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e),e.computed)this.tokenChar(91),this.print(e.key,e),this.tokenChar(93);else{if(i(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value,e)},t.PipelineBareFunction=function(e){this.print(e.callee,e)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression,e)},t.RecordExpression=function(e){const t=e.properties;let r,s;if("bar"===this.format.recordAndTupleSyntaxType)r="{|",s="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",s="}"}this.token(r),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.token(s)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument,e)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const r=n(e.value,this.format.jsescOption);this.token(r)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!o.has(e)){const t=JSON.stringify(e),r=Array.from(o,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,r=t.length;let s,n;if("bar"===this.format.recordAndTupleSyntaxType)s="[|",n="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);s="#[",n="]"}this.token(s);for(let s=0;s<t.length;s++){const n=t[s];n&&(s>0&&this.space(),this.print(n,e),s<r-1&&this.tokenChar(44))}this.token(n)};var s=r(10147),n=r(65490);const{isAssignmentPattern:i,isIdentifier:a}=s,o=new Set(["^^","@@","^","%","#"])},71410:(e,t)=>{"use strict";function r(e,t,r){if(e.token("{"),t.length){e.indent(),e.newline();for(const s of t)e.print(s,r),e.newline();e.dedent()}e.rightBrace(r)}function s(e,t,r){e.printJoin(t.types,t,{separator(){this.space(),this.token(r),this.space()}})}function n(e,t){!0!==t&&e.token(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,e,!0),this.token("[]")},t.TSSatisfiesExpression=t.TSAsExpression=function(e){var t;const{type:r,expression:s,typeAnnotation:n}=e,i=!(null==(t=s.trailingComments)||!t.length);this.print(s,e,!0,void 0,i),this.space(),this.word("TSAsExpression"===r?"as":"satisfies"),this.space(),this.print(n,e)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.tokenChar(59)},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.tokenChar(59)},t.TSEnumDeclaration=function(e){const{declare:t,const:s,id:n,members:i}=e;t&&(this.word("declare"),this.space()),s&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n,e),this.space(),r(this,i,e)},t.TSEnumMember=function(e){const{id:t,initializer:r}=e;this.print(t,e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,e)),this.tokenChar(44)},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression,e),this.tokenChar(59)},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression,e),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{isExport:t,id:r,moduleReference:s}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r,e),this.space(),this.tokenChar(61),this.space(),this.print(s,e),this.tokenChar(59)},t.TSImportType=function(e){const{argument:t,qualifier:r,typeParameters:s}=e;this.word("import"),this.tokenChar(40),this.print(t,e),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r,e)),s&&this.print(s,e)},t.TSIndexSignature=function(e){const{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,e),this.tokenChar(93),this.print(e.typeAnnotation,e),this.tokenChar(59)},t.TSIndexedAccessType=function(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.TSInferType=function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSInterfaceBody=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},t.TSInterfaceDeclaration=function(e){const{declare:t,id:r,typeParameters:s,extends:n,body:i}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r,e),this.print(s,e),null!=n&&n.length&&(this.space(),this.word("extends"),this.space(),this.printList(n,e)),this.space(),this.print(i,e)},t.TSIntersectionType=function(e){s(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal,e)},t.TSMappedType=function(e){const{nameType:t,optional:r,readonly:s,typeParameter:i}=e;this.tokenChar(123),this.space(),s&&(n(this,s),this.word("readonly"),this.space()),this.tokenChar(91),this.word(i.name),this.space(),this.word("in"),this.space(),this.print(i.constraint,i),t&&(this.space(),this.word("as"),this.space(),this.print(t,e)),this.tokenChar(93),r&&(n(this,r),this.tokenChar(63)),this.tokenChar(58),this.space(),this.print(e.typeAnnotation,e),this.space(),this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSModuleBlock=function(e){r(this,e.body,e)},t.TSModuleDeclaration=function(e){const{declare:t,id:r}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word("Identifier"===r.type?"namespace":"module"),this.space()),this.print(r,e),!e.body)return void this.tokenChar(59);let s=e.body;for(;"TSModuleDeclaration"===s.type;)this.tokenChar(46),this.print(s.id,s),s=s.body;this.space(),this.print(s,e)},t.TSNamedTupleMember=function(e){this.print(e.label,e),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType,e)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression,e),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation,e),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation,e),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t,initializer:r}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,e)),this.tokenChar(59)},t.TSQualifiedName=function(e){this.print(e.left,e),this.tokenChar(46),this.print(e.right,e)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation,e)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,e),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:r,typeParameters:s,typeAnnotation:n}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r,e),this.print(s,e),this.space(),this.tokenChar(61),this.space(),this.print(n,e),this.tokenChar(59)},t.TSTypeAnnotation=function(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t,e),this.tokenChar(62),this.space(),this.print(r,e)},t.TSTypeLiteral=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)},t.TSTypeParameter=function(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60),this.printList(e.params,e,{}),"ArrowFunctionExpression"===t.type&&1===e.params.length&&this.tokenChar(44),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters,e)},t.TSTypeReference=function(e){this.print(e.typeName,e,!0),this.print(e.typeParameters,e,!0)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){s(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){const t="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space())},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41),this.space(),this.token("=>"),this.space();const s=e.typeAnnotation;this.print(s.typeAnnotation,e)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key,e),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41);const s=e.typeAnnotation;this.print(s,e)},t.tsPrintTypeLiteralOrInterfaceBody=function(e,t){r(this,e,t)}},12927:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGenerator=void 0,t.default=function(e,t,r){return new i(e,t,r).generate()};var s=r(17271),n=r(77314);class i extends n.default{constructor(e,t={},r){const n=function(e,t){var r;const s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),recordAndTupleSyntaxType:null!=(r=t.recordAndTupleSyntaxType)?r:"hash",topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(e=>s.comments||e.includes("@license")||e.includes("@preserve")),"auto"===s.compact&&(s.compact="string"==typeof e&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),s.compact&&(s.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:n,auxiliaryCommentAfter:i,shouldPrintComment:a}=s;return n&&!a(n)&&(s.auxiliaryCommentBefore=void 0),i&&!a(i)&&(s.auxiliaryCommentAfter=void 0),s}(r,t);super(n,t.sourceMaps?new s.default(t,r):null),this.ast=void 0,this.ast=e}generate(){return super.generate(this.ast)}}t.CodeGenerator=class{constructor(e,t,r){this._generator=void 0,this._generator=new i(e,t,r)}generate(){return this._generator.generate()}}},22603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.needsParens=function(e,t,r){var s;return!!t&&(!(!c(t)||t.callee!==e||!f(e))||(null==(s=h.get(e.type))?void 0:s(e,t,r)))},t.needsWhitespace=m,t.needsWhitespaceAfter=function(e,t){return m(e,t,2)},t.needsWhitespaceBefore=function(e,t){return m(e,t,1)};var s=r(83815),n=r(88043),i=r(10147);const{FLIPPED_ALIAS_KEYS:a,isCallExpression:o,isExpressionStatement:u,isMemberExpression:l,isNewExpression:c}=i;function p(e){const t=new Map;function r(e,r){const s=t.get(e);t.set(e,s?function(e,t,n){var i;return null!=(i=s(e,t,n))?i:r(e,t,n)}:r)}for(const t of Object.keys(e)){const s=a[t];if(s)for(const n of s)r(n,e[t]);else r(t,e[t])}return t}const h=p(n),d=p(s.nodes);function f(e){return!!o(e)||l(e)&&f(e.object)}function m(e,t,r){var s;if(!e)return!1;u(e)&&(e=e.expression);const n=null==(s=d.get(e.type))?void 0:s(e,t);return"number"==typeof n&&0!=(n&r)}},88043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){return u(t)||A(e,t)},t.AssignmentExpression=function(e,t){return!!h(e.left)||A(e,t)},t.Binary=function(e,t){const r=t.type;if("**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(g(e,t))return!0;if(b(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;if("BinaryExpression"===r||"LogicalExpression"===r){const s=m.get(t.operator),n=m.get(e.operator);if(s===n&&t.right===e&&"LogicalExpression"!==r||s>n)return!0}},t.BinaryExpression=function(e,t){if("in"===e.operator){const e=t.type;return"VariableDeclarator"===e||"ForStatement"===e||"ForInStatement"===e||"ForOfStatement"===e}return!1},t.ClassExpression=function(e,t,r){return x(r,5)},t.ConditionalExpression=A,t.DoExpression=function(e,t,r){return!e.async&&x(r,1)},t.FunctionExpression=function(e,t,r){return x(r,5)},t.FunctionTypeAnnotation=function(e,t,r){if(r.length<3)return;const s=t.type;return"UnionTypeAnnotation"===s||"IntersectionTypeAnnotation"===s||"ArrayTypeAnnotation"===s||"TypeAnnotation"===s&&i(r[r.length-3])},t.Identifier=function(e,t,r){var s;const n=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===n&&t.left===e){const e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return"let"===e.name?x(r,p(t,{object:e,computed:!0})||d(t,{object:e,computed:!0,optional:!1})?57:32):"async"===e.name&&l(t)&&e===t.left},t.LogicalExpression=function(e,t){const r=t.type;if(y(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return n(t)},t.ObjectExpression=function(e,t,r){return x(r,3)},t.OptionalIndexedAccessType=function(e,t){return c(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return o(t)&&t.callee===e||p(t)&&t.object===e},t.SequenceExpression=function(e,t){const r=t.type;return!("ForStatement"===r||"ThrowStatement"===r||"ReturnStatement"===r||"IfStatement"===r&&t.test===e||"WhileStatement"===r&&t.test===e||"ForInStatement"===r&&t.right===e||"SwitchStatement"===r&&t.discriminant===e||"ExpressionStatement"===r&&t.expression===e)},t.TSTypeAssertion=t.TSSatisfiesExpression=t.TSAsExpression=function(){return!0},t.TSInferType=function(e,t){const r=t.type;return"TSArrayType"===r||"TSOptionalType"===r},t.TSInstantiationExpression=function(e,t){const r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters},t.TSIntersectionType=t.TSUnionType=function(e,t){const r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSUnionType"===r||"TSRestType"===r},t.UnaryLike=E,t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){const r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r},t.UpdateExpression=function(e,t){return b(e,t)||g(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){const r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||b(e,t)||"AwaitExpression"===r&&f(e)||"ConditionalExpression"===r&&e===t.test||g(e,t)};var s=r(10147);const{isArrayTypeAnnotation:n,isArrowFunctionExpression:i,isBinaryExpression:a,isCallExpression:o,isExportDeclaration:u,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:p,isObjectPattern:h,isOptionalMemberExpression:d,isYieldExpression:f}=s,m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function y(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const g=(e,t)=>{const r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},b=(e,t)=>{const r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function E(e,t){return b(e,t)||a(t)&&"**"===t.operator&&t.left===e||g(e,t)}function A(e,t){const r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||y(r))||E(e,t)}function x(e,t){const r=1&t,s=2&t,n=4&t,i=8&t,a=16&t,o=32&t;let u=e.length-1;if(u<=0)return;let l=e[u];u--;let c=e[u];for(;u>=0;){const t=c.type;if(r&&"ExpressionStatement"===t&&c.expression===l||n&&"ExportDefaultDeclaration"===t&&l===c.declaration||s&&"ArrowFunctionExpression"===t&&c.body===l||i&&"ForStatement"===t&&c.init===l||a&&"ForInStatement"===t&&c.left===l||o&&"ForOfStatement"===t&&c.left===l)return!0;if(!(u>0&&(b(l,c)&&"NewExpression"!==t||"SequenceExpression"===t&&c.expressions[0]===l||"UpdateExpression"===t&&!c.prefix||"ConditionalExpression"===t&&c.test===l||("BinaryExpression"===t||"LogicalExpression"===t)&&c.left===l||"AssignmentExpression"===t&&c.left===l)))return!1;l=c,u--,c=e[u]}return!1}},83815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;var s=r(10147);const{FLIPPED_ALIAS_KEYS:n,isArrayExpression:i,isAssignmentExpression:a,isBinary:o,isBlockStatement:u,isCallExpression:l,isFunction:c,isIdentifier:p,isLiteral:h,isMemberExpression:d,isObjectExpression:f,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:g}=s;function b(e,t){return e?(d(e)||y(e)?(b(e.object,t),e.computed&&b(e.property,t)):o(e)||a(e)?(b(e.left,t),b(e.right,t)):l(e)||m(e)?(t.hasCall=!0,b(e.callee,t)):c(e)?t.hasFunction=!0:p(e)&&(t.hasHelper=t.hasHelper||e.callee&&A(e.callee)),t):t}function E(e){return b(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function A(e){return!!e&&(d(e)?A(e.object)||A(e.property):p(e)?"require"===e.name||95===e.name.charCodeAt(0):l(e)?A(e.callee):!(!o(e)&&!a(e))&&(p(e.left)&&A(e.left)||A(e.right)))}function x(e){return h(e)||f(e)||i(e)||p(e)||d(e)}const v=t.nodes={AssignmentExpression(e){const t=E(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2),LogicalExpression(e){if(c(e.left)||c(e.right))return 2},Literal(e){if(g(e)&&"use strict"===e.value)return 2},CallExpression(e){if(c(e.callee)||A(e))return 3},OptionalCallExpression(e){if(c(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let s=A(r.id)&&!x(r.init);if(!s&&r.init){const e=E(r.init);s=A(r.init)&&e.hasCall||e.hasFunction}if(s)return 3}},IfStatement(e){if(u(e.consequent))return 3}};v.ObjectProperty=v.ObjectTypeProperty=v.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1},v.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&(null==(r=t.properties)||!r.length))return 1},v.ObjectTypeIndexer=function(e,t){var r,s;if(!(t.indexers[0]!==e||null!=(r=t.properties)&&r.length||null!=(s=t.callProperties)&&s.length))return 1},v.ObjectTypeInternalSlot=function(e,t){var r,s,n;if(!(t.internalSlots[0]!==e||null!=(r=t.properties)&&r.length||null!=(s=t.callProperties)&&s.length||null!=(n=t.indexers)&&n.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){[e].concat(n[e]||[]).forEach((function(e){const r=t?3:0;v[e]=()=>r}))}))},77314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(30977),n=r(22603),i=r(10147),a=r(2806);const{isFunction:o,isStatement:u,isClassBody:l,isTSInterfaceBody:c,isTSEnumDeclaration:p}=i,h=/e/i,d=/\.0+$/,f=/[\n\r\u2028\u2029]/,m=/[\n\r\u2028\u2029]|\*\//,{needsParens:y}=n;class g{constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=e,this._indentRepeat=e.indent.style.length,this._inputMap=null==t?void 0:t._inputMap,this._buf=new s.default(t,e.indent.style[0])}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47===e.charCodeAt(0)&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!h.test(e)&&!d.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1){this._maybePrintInnerComments();const r=this.getLastChar(),s=e.charCodeAt(0);(33===r&&("--"===e||61===s)||43===s&&43===r||45===s&&45===r||46===s&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar();(43===e&&43===t||45===e&&45===t||46===e&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,r){t&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r))}withSource(e,t,r){t?(this._catchUp(e,t),this._buf.withSource(e,t,r)):r()}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1}_appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1}_queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}_maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(10===e?(this.tokenChar(40),this.indent(),t.printed=!0):this._parenPushNewlineState=null)}_maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;const r=e.length;let s;for(s=0;s<r&&32===e.charCodeAt(s);s++)continue;if(s===r)return;const n=e.charCodeAt(s);if(10!==n){if(47!==n||s+1===r)return void(this._parenPushNewlineState=null);const t=e.charCodeAt(s+1);if(42===t)return;if(47!==t)return void(this._parenPushNewlineState=null)}this.tokenChar(40),this.indent(),t.printed=!0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){var r;if(!this.format.retainLines)return;const s=null==t||null==(r=t[e])?void 0:r.line;if(null!=s){const e=s-this._buf.getCurrentLine();for(let t=0;t<e;t++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e,t,r){if(r)this._noLineTerminator=!0,this.print(e,t);else{const r={printed:!1};this._parenPushNewlineState=r,this.print(e,t),r.printed&&(this.dedent(),this.newline(),this.tokenChar(41))}}print(e,t,r,s,n){var i,a;if(!e)return;this._endsWithInnerRaw=!1;const o=e.type,u=this.format,l=u.concise;e._compact&&(u.concise=!0);const c=this[o];if(void 0===c)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(e.constructor.name)}`);this._printStack.push(e);const p=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!p);const h=null==(i=e.extra)?void 0:i.parenthesized;let d=n||h&&u.retainFunctionParens&&"FunctionExpression"===o||y(e,t,this._printStack);if(!d&&h&&null!=(a=e.leadingComments)&&a.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==t?void 0:t.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(t.callee!==e)break;default:d=!0}d&&(this.tokenChar(40),this._endsWithInnerRaw=!1),this._lastCommentLine=0,this._printLeadingComments(e,t);const f="Program"===o||"File"===o?null:e.loc;this.exactSource(f,c.bind(this,e,t)),d?(this._printTrailingComments(e,t),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,t)):this._printTrailingComments(e,t,s),this._printStack.pop(),u.concise=l,this._insideAux=p,this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,r={}){if(null==e||!e.length)return;let{indent:s}=r;if(null==s&&this.format.retainLines){var n;const t=null==(n=e[0].loc)?void 0:n.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(s=!0)}s&&this.indent();const i={addNewlines:r.addNewlines,nextNodeStartLine:0},a=r.separator?r.separator.bind(this):null,o=e.length;for(let s=0;s<o;s++){const n=e[s];var u;if(n&&(r.statement&&this._printNewline(0===s,i),this.print(n,t,void 0,r.trailingCommentsLineOffset||0),null==r.iterator||r.iterator(n,s),s<o-1&&(null==a||a()),r.statement))if(null!=(u=n.trailingComments)&&u.length||(this._lastCommentLine=0),s+1===o)this.newline(1);else{var l;const t=e[s+1];i.nextNodeStartLine=(null==(l=t.loc)?void 0:l.start.line)||0,this._printNewline(!0,i)}}s&&this.dedent()}printAndIndentOnComments(e,t){const r=e.leadingComments&&e.leadingComments.length>0;r&&this.indent(),this.print(e,t),r&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t,e)}_printTrailingComments(e,t,r){const{innerComments:s,trailingComments:n}=e;null!=s&&s.length&&this._printComments(2,s,e,t,r),null!=n&&n.length&&this._printComments(2,n,e,t,r)}_printLeadingComments(e,t){const r=e.leadingComments;null!=r&&r.length&&this._printComments(0,r,e,t)}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){const e=this._printStack[this._printStack.length-1],t=e.innerComments;if(null==t||!t.length)return;const r=this.endsWith(32),s=this._indentInnerComments,n=this._printedComments.size;s&&this.indent(),this._printComments(1,t,e),r&&n!==this._printedComments.size&&this.space(),s&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,r={}){r.statement=!0,null!=r.indent||(r.indent=!1),this.printJoin(e,t,r)}printList(e,t,r={}){null==r.separator&&(r.separator=b),this.printJoin(e,t,r)}_printNewline(e,t){const r=this.format;if(r.retainLines||r.compact)return;if(r.concise)return void this.space();if(!e)return;const s=t.nextNodeStartLine,n=this._lastCommentLine;if(s>0&&n>0){const e=s-n;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0:this._noLineTerminator&&m.test(e.value)?2:(this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0)}_printComment(e,t){const r=this._noLineTerminator,s="CommentBlock"===e.type,n=s&&1!==t&&!this._noLineTerminator;n&&this._buf.hasContent()&&2!==t&&this.newline(1);const i=this.getLastChar();let a;if(91!==i&&123!==i&&this.space(),s){const{_parenPushNewlineState:t}=this;if(!1===(null==t?void 0:t.printed)&&f.test(e.value)&&(this.tokenChar(40),t.printed=!0),a=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}if(this.format.concise)a=a.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else a=r?`/*${e.value}*/`:`//${e.value}`;this.endsWith(47)&&this._space(),this.source("start",e.loc),this._append(a,s),s||r||this.newline(1,!0),n&&3!==t&&this.newline(1)}_printComments(e,t,r,s,n=0){const i=r.loc,a=t.length;let h=!!i;const d=h?i.start.line:0,m=h?i.end.line:0;let y=0,g=0;const b=this._noLineTerminator?function(){}:this.newline.bind(this);for(let i=0;i<a;i++){const E=t[i],A=this._shouldPrintComment(E);if(2===A){h=!1;break}if(h&&E.loc&&1===A){const t=E.loc.start.line,r=E.loc.end.line;if(0===e){let e=0;0===i?!this._buf.hasContent()||"CommentLine"!==E.type&&t==r||(e=g=1):e=t-y,y=r,b(e),this._printComment(E,1),i+1===a&&(b(Math.max(d-y,g)),y=d)}else if(1===e){const e=t-(0===i?d:y);y=r,b(e),this._printComment(E,1),i+1===a&&(b(Math.min(1,m-y)),y=m)}else{const e=t-(0===i?m-n:y);y=r,b(e),this._printComment(E,1)}}else{if(h=!1,1!==A)continue;if(1===a){const t=E.loc?E.loc.start.line===E.loc.end.line:!f.test(E.value),n=t&&!u(r)&&!l(s)&&!c(s)&&!p(s);0===e?this._printComment(E,n&&"ObjectExpression"!==r.type||t&&o(s,{body:r})?1:0):n&&2===e?this._printComment(E,1):this._printComment(E,0)}else 1!==e||"ObjectExpression"===r.type&&r.properties.length>1||"ClassBody"===r.type||"TSInterfaceBody"===r.type?this._printComment(E,0):this._printComment(E,0===i?2:i===a-1?3:0)}}2===e&&h&&y&&(this._lastCommentLine=y)}}function b(){this.tokenChar(44),this.space()}Object.assign(g.prototype,a),g.prototype.Noop=function(){},t.default=g},17271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(50620),n=r(73244);t.default=class{constructor(e,t){var r;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const i=this._map=new s.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(r=e.sourceFileName)?void 0:r.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new n.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var a;(0,s.setSourceContent)(i,t[e],null==(a=this._inputMap.sourcesContent)?void 0:a[e])}}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(const e of Object.keys(t))(0,s.setSourceContent)(i,e.replace(/\\/g,"/"),t[e])}else(0,s.setSourceContent)(i,this._sourceFileName,t)}get(){return(0,s.toEncodedMap)(this._map)}getDecoded(){return(0,s.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,s.allMappings)(this._map))}mark(e,t,r,i,a,o){var u;let l;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(l=(0,n.originalPositionFor)(this._inputMap,{line:t,column:r}),!l.name&&a){const e=(0,n.originalPositionFor)(this._inputMap,a);e.name&&(i=e.name)}}else l={source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r};(0,s.maybeAddMapping)(this._map,{name:i,generated:e,source:null==(u=l)?void 0:u.source,original:l})}}},6488:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInclusionReasons=function(e,t,r){const a=r[e]||{};return Object.keys(t).reduce(((e,r)=>{const o=(0,i.getLowestImplementedVersion)(a,r),u=t[r];if(o){const t=(0,i.isUnreleasedVersion)(o,r);(0,i.isUnreleasedVersion)(u,r)||!t&&!s.lt(u.toString(),(0,i.semverify)(o))||(e[r]=(0,n.prettifyVersion)(u))}else e[r]=(0,n.prettifyVersion)(u);return e}),{})};var s=r(10638),n=r(35671),i=r(77407)},40114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,s,n,i,a){const u=new Set,l={compatData:e,includes:t,excludes:r};for(const t in e)if(o(t,s,l))u.add(t);else if(a){const e=a.get(t);e&&u.add(e)}return null==n||n.forEach((e=>!r.has(e)&&u.add(e))),null==i||i.forEach((e=>!t.has(e)&&u.delete(e))),u},t.isRequired=o,t.targetsSupported=a;var s=r(10638),n=r(27343),i=r(77407);function a(e,t){const r=Object.keys(e);return 0!==r.length&&0===r.filter((r=>{const n=(0,i.getLowestImplementedVersion)(t,r);if(!n)return!0;const a=e[r];if((0,i.isUnreleasedVersion)(a,r))return!1;if((0,i.isUnreleasedVersion)(n,r))return!0;if(!s.valid(a.toString()))throw new Error(`Invalid version passed for target "${r}": "${a}". Versions must be in semver format (major.minor.patch)`);return s.gt((0,i.semverify)(n),a.toString())})).length}function o(e,t,{compatData:r=n,includes:s,excludes:i}={}){return!(null!=i&&i.has(e)||(null==s||!s.has(e))&&a(t,r[e]))}},63479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TargetNames",{enumerable:!0,get:function(){return l.TargetNames}}),t.default=function(e={},t={}){var r,i;let{browsers:a,esmodules:c}=e;const{configPath:p="."}=t;!function(e){f.invariant(void 0===e||m(e),`'${String(e)}' is not a valid browserslist query`)}(a);let h=function(e){const t=Object.keys(l.TargetNames);for(const r of Object.keys(e))if(!(r in l.TargetNames))throw new Error(f.formatMessage(`'${r}' is not a valid target\n- Did you mean '${(0,n.findSuggestion)(r,t)}'?`));return e}(function(e){const t=Object.assign({},e);return delete t.esmodules,delete t.browsers,t}(e));const y=!!a||Object.keys(h).length>0,A=!t.ignoreBrowserslistConfig&&!y;if(!a&&A&&(a=s.loadConfig({config:t.configFile,path:p,env:t.browserslistEnv}),null==a&&(a=[])),!c||"intersect"===c&&null!=(r=a)&&r.length||(a=Object.keys(d).map((e=>`${e} >= ${d[e]}`)).join(", "),c=!1),null!=(i=a)&&i.length){const e=function(e,t){const r="string"==typeof e?e:e.join()+t;let n=E.get(r);return n||(n=function(e,t){return function(e){return e.reduce(((e,t)=>{const[r,s]=t.split(" "),n=u.browserNameMap[r];if(!n)return e;try{const t=s.split("-")[0].toLowerCase(),r=(0,o.isUnreleasedVersion)(t,n);if(!e[n])return e[n]=r?t:(0,o.semverify)(t),e;const i=e[n],a=(0,o.isUnreleasedVersion)(i,n);if(a&&r)e[n]=(0,o.getLowestUnreleased)(i,t,n);else if(a)e[n]=(0,o.semverify)(t);else if(!a&&!r){const r=(0,o.semverify)(t);e[n]=(0,o.semverMin)(i,r)}}catch(e){}return e}),{})}(s(e,{mobileToDesktop:!0,env:t}))}(e,t),E.set(r,n)),Object.assign({},n)}(a,t.browserslistEnv);if("intersect"===c)for(const t of Object.keys(e))if("deno"!==t&&"ie"!==t){const r=d["opera_mobile"===t?"op_mob":t];if(r){const s=e[t];e[t]=(0,o.getHighestUnreleased)(s,(0,o.semverify)(r),t)}else delete e[t]}else delete e[t];h=Object.assign(e,h)}const x={},v=[];for(const e of Object.keys(h).sort()){const t=h[e];"number"==typeof t&&t%1!=0&&v.push({target:e,value:t});const[r,s]="node"===e?g(t):b(e,t);s&&(x[r]=s)}return(C=v).length&&(console.warn("Warning, the following targets are using a decimal version:\n"),C.forEach((({target:e,value:t})=>console.warn(` ${e}: ${t}`))),console.warn("\nWe recommend using a string for minor/patch versions to avoid numbers like 6.10\ngetting parsed as 6.1, which can lead to unexpected behavior.\n")),x;var C},Object.defineProperty(t,"filterItems",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"getInclusionReasons",{enumerable:!0,get:function(){return p.getInclusionReasons}}),t.isBrowsersQueryValid=m,Object.defineProperty(t,"isRequired",{enumerable:!0,get:function(){return h.isRequired}}),Object.defineProperty(t,"prettifyTargets",{enumerable:!0,get:function(){return c.prettifyTargets}}),Object.defineProperty(t,"unreleasedLabels",{enumerable:!0,get:function(){return u.unreleasedLabels}});var s=r(70648),n=r(39400),i=r(9737),a=r(66249),o=r(77407),u=r(86124),l=r(7900),c=r(35671),p=r(6488),h=r(40114);const d=i["es6.module"],f=new n.OptionValidator("@babel/helper-compilation-targets");function m(e){return"string"==typeof e||Array.isArray(e)&&e.every((e=>"string"==typeof e))}function y(e,t){try{return(0,o.semverify)(t)}catch(r){throw new Error(f.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function g(e){return["node",!0===e||"current"===e?process.versions.node:y("node",e)]}function b(e,t){return[e,(0,o.isUnreleasedVersion)(t,e)?t.toLowerCase():y(e,t)]}const E=new a({max:64})},7900:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TargetNames=void 0,t.TargetNames={node:"node",deno:"deno",chrome:"chrome",opera:"opera",edge:"edge",firefox:"firefox",safari:"safari",ie:"ie",ios:"ios",android:"android",electron:"electron",samsung:"samsung",rhino:"rhino",opera_mobile:"opera_mobile"}},35671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prettifyTargets=function(e){return Object.keys(e).reduce(((t,r)=>{let s=e[r];const a=n.unreleasedLabels[r];return"string"==typeof s&&a!==s&&(s=i(s)),t[r]=s,t}),{})},t.prettifyVersion=i;var s=r(10638),n=r(86124);function i(e){if("string"!=typeof e)return e;const{major:t,minor:r,patch:n}=s.parse(e),i=[t];return(r||n)&&i.push(r),n&&i.push(n),i.join(".")}},86124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unreleasedLabels=t.browserNameMap=void 0,t.unreleasedLabels={safari:"tp"},t.browserNameMap={and_chr:"chrome",and_ff:"firefox",android:"android",chrome:"chrome",edge:"edge",firefox:"firefox",ie:"ie",ie_mob:"ie",ios_saf:"ios",node:"node",deno:"deno",op_mob:"opera_mobile",opera:"opera",safari:"safari",samsung:"samsung"}},77407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHighestUnreleased=function(e,t,r){return l(e,t,r)===e?t:e},t.getLowestImplementedVersion=function(e,t){const r=e[t];return r||"android"!==t?r:e.chrome},t.getLowestUnreleased=l,t.isUnreleasedVersion=function(e,t){const r=i.unreleasedLabels[t];return!!r&&r===e.toString().toLowerCase()},t.semverMin=u,t.semverify=function(e){if("string"==typeof e&&s.valid(e))return e;o.invariant("number"==typeof e||"string"==typeof e&&a.test(e),`'${e}' is not a valid version`),e=e.toString();let t=0,r=0;for(;(t=e.indexOf(".",t+1))>0;)r++;return e+".0".repeat(2-r)};var s=r(10638),n=r(39400),i=r(86124);const a=/^(\d+|\d+.\d+)$/,o=new n.OptionValidator("@babel/helper-compilation-targets");function u(e,t){return e&&s.lt(e,t)?e:t}function l(e,t,r){const s=i.unreleasedLabels[r];return e===s?t:t===s?e:u(e,t)}},14743:(e,t)=>{"use strict";function r(e){const{context:t,node:r}=e;if(r.computed&&t.maybeQueue(e.get("key")),r.decorators)for(const r of e.get("decorators"))t.maybeQueue(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=r,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var s={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&r(e))},Property(e){e.isObjectProperty()||(e.skip(),r(e))}};t.default=s},33554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({node:e,parent:t,scope:r,id:s},n=!1,P=!1){if(e.id)return;if(!m(t)&&!f(t,{kind:"method"})||t.computed&&!h(t.key)){if(E(t)){if(s=t.id,p(s)&&!n){const t=r.parent.getBinding(s.name);if(t&&t.constant&&r.getBinding(s.name)===t)return e.id=a(s),void(e.id[i]=!0)}}else if(u(t,{operator:"="}))s=t.left;else if(!s)return}else s=t.key;let S;if(s&&h(s)?S=function(e){return d(e)?"null":y(e)?`_${e.pattern}_${e.flags}`:b(e)?e.quasis.map((e=>e.value.raw)).join(""):void 0!==e.value?e.value+"":""}(s):s&&p(s)&&(S=s.name),void 0===S)return;if(!P&&c(e)&&/[\uD800-\uDFFF]/.test(S))return;S=A(S);const w=o(S);return w[i]=!0,function(e,t,r,s){if(e.selfReference){if(!s.hasBinding(r.name)||s.hasGlobal(r.name)){if(!c(t))return;let e=x;t.generator&&(e=v);const n=e({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:s.generateUidIdentifier(r.name)}).expression,i=n.callee.body.body[0].params;for(let e=0,r=function(e){const t=e.params.findIndex((e=>l(e)||g(e)));return-1===t?e.params.length:t}(t);e<r;e++)i.push(s.generateUidIdentifier("x"));return n}s.rename(r.name)}t.id=r,s.getProgramParent().references[r.name]=!0}(function(e,t,r){const s={selfAssignment:!1,selfReference:!1,outerDeclar:r.getBindingIdentifier(t),name:t},n=r.getOwnBinding(t);return n?"param"===n.kind&&(s.selfReference=!0):(s.outerDeclar||r.hasGlobal(t))&&r.traverse(e,C,s),s}(e,S,r),e,w,r)||e};var s=r(67504),n=r(10147);const{NOT_LOCAL_BINDING:i,cloneNode:a,identifier:o,isAssignmentExpression:u,isAssignmentPattern:l,isFunction:c,isIdentifier:p,isLiteral:h,isNullLiteral:d,isObjectMethod:f,isObjectProperty:m,isRegExpLiteral:y,isRestElement:g,isTemplateLiteral:b,isVariableDeclarator:E,toBindingIdentifierName:A}=n,x=s.default.statement("\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),v=s.default.statement("\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),C={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop())}}},80917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r="var"){e.traverse(o,{kind:r,emit:t})};var s=r(10147);const{assignmentExpression:n,expressionStatement:i,identifier:a}=s,o={Scope(e,t){"let"===t.kind&&e.skip()},FunctionParent(e){e.skip()},VariableDeclaration(e,t){if(t.kind&&e.node.kind!==t.kind)return;const r=[],s=e.get("declarations");let o;for(const e of s){o=e.node.id,e.node.init&&r.push(i(n("=",e.node.id,e.node.init)));for(const r of Object.keys(e.getBindingIdentifiers()))t.emit(a(r),r,null!==e.node.init)}e.parentPath.isFor({left:e.node})?e.replaceWith(o):e.replaceWithMultiple(r)}}},2467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(27790),n=r(10147);const{callExpression:i,cloneNode:a,expressionStatement:o,identifier:u,importDeclaration:l,importDefaultSpecifier:c,importNamespaceSpecifier:p,importSpecifier:h,memberExpression:d,stringLiteral:f,variableDeclaration:m,variableDeclarator:y}=n;t.default=class{constructor(e,t,r){this._statements=[],this._resultName=null,this._importedSource=void 0,this._scope=t,this._hub=r,this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){return this._statements.push(l([],f(this._importedSource))),this}require(){return this._statements.push(o(i(u("require"),[f(this._importedSource)]))),this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e),r=this._statements[this._statements.length-1];return s("ImportDeclaration"===r.type),s(0===r.specifiers.length),r.specifiers=[p(t)],this._resultName=a(t),this}default(e){const t=this._scope.generateUidIdentifier(e),r=this._statements[this._statements.length-1];return s("ImportDeclaration"===r.type),s(0===r.specifiers.length),r.specifiers=[c(t)],this._resultName=a(t),this}named(e,t){if("default"===t)return this.default(e);const r=this._scope.generateUidIdentifier(e),n=this._statements[this._statements.length-1];return s("ImportDeclaration"===n.type),s(0===n.specifiers.length),n.specifiers=[h(r,u(t))],this._resultName=a(r),this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];return"ExpressionStatement"!==r.type&&(s(this._resultName),r=o(this._resultName),this._statements.push(r)),this._statements[this._statements.length-1]=m("var",[y(t,r.expression)]),this._resultName=a(t),this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];return"ExpressionStatement"===t.type?t.expression=i(e,[t.expression]):"VariableDeclaration"===t.type?(s(1===t.declarations.length),t.declarations[0].init=i(e,[t.declarations[0].init])):s.fail("Unexpected type."),this}prop(e){const t=this._statements[this._statements.length-1];return"ExpressionStatement"===t.type?t.expression=d(t.expression,u(e)):"VariableDeclaration"===t.type?(s(1===t.declarations.length),t.declarations[0].init=d(t.declarations[0].init,u(e))):s.fail("Unexpected type:"+t.type),this}read(e){this._resultName=d(this._resultName,u(e))}}},244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(27790),n=r(10147),i=r(2467),a=r(50555);const{numericLiteral:o,sequenceExpression:u}=n;t.default=class{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:!1,ensureNoContext:!1,importPosition:"before"};const s=e.find((e=>e.isProgram()));this._programPath=s,this._programScope=s.scope,this._hub=s.hub,this._defaultOpts=this._applyDefaults(t,r,!0)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){return s("string"==typeof e),this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=!1){let n;return"string"==typeof e?n=Object.assign({},this._defaultOpts,{importedSource:e},t):(s(!t,"Unexpected secondary arguments."),n=Object.assign({},this._defaultOpts,e)),!r&&t&&(void 0!==t.nameHint&&(n.nameHint=t.nameHint),void 0!==t.blockHoist&&(n.blockHoist=t.blockHoist)),n}_generateImport(e,t){const r="default"===t,s=!!t&&!r,n=null===t,{importedSource:l,importedType:c,importedInterop:p,importingInterop:h,ensureLiveReference:d,ensureNoContext:f,nameHint:m,importPosition:y,blockHoist:g}=e;let b=m||t;const E=(0,a.default)(this._programPath),A=E&&"node"===h,x=E&&"babel"===h;if("after"===y&&!E)throw new Error('"importPosition": "after" is only supported in modules');const v=new i.default(l,this._programScope,this._hub);if("es6"===c){if(!A&&!x)throw new Error("Cannot import an ES6 module from CommonJS");v.import(),n?v.namespace(m||l):(r||s)&&v.named(b,t)}else{if("commonjs"!==c)throw new Error(`Unexpected interopType "${c}"`);if("babel"===p)if(A){b="default"!==b?b:l;const e=`${l}$es6Default`;v.import(),n?v.default(e).var(b||l).wildcardInterop():r?d?v.default(e).var(b||l).defaultInterop().read("default"):v.default(e).var(b).defaultInterop().prop(t):s&&v.default(e).read(t)}else x?(v.import(),n?v.namespace(b||l):(r||s)&&v.named(b,t)):(v.require(),n?v.var(b||l).wildcardInterop():(r||s)&&d?r?(b="default"!==b?b:l,v.var(b).read(t),v.defaultInterop()):v.var(l).read(t):r?v.var(b).defaultInterop().prop(t):s&&v.var(b).prop(t));else if("compiled"===p)A?(v.import(),n?v.default(b||l):(r||s)&&v.default(l).read(b)):x?(v.import(),n?v.namespace(b||l):(r||s)&&v.named(b,t)):(v.require(),n?v.var(b||l):(r||s)&&(d?v.var(l).read(b):v.prop(t).var(b)));else{if("uncompiled"!==p)throw new Error(`Unknown importedInterop "${p}".`);if(r&&d)throw new Error("No live reference for commonjs default");A?(v.import(),n?v.default(b||l):r?v.default(b):s&&v.default(l).read(b)):x?(v.import(),n?v.default(b||l):r?v.default(b):s&&v.named(b,t)):(v.require(),n?v.var(b||l):r?v.var(b):s&&(d?v.var(l).read(b):v.var(b).prop(t)))}}const{statements:C,resultName:P}=v.done();return this._insertStatements(C,y,g),(r||s)&&f&&"Identifier"!==P.type?u([o(0),P]):P}_insertStatements(e,t="before",r=3){const s=this._programPath.get("body");if("after"===t){for(let t=s.length-1;t>=0;t--)if(s[t].isImportDeclaration())return void s[t].insertAfter(e)}else{e.forEach((e=>{e._blockHoist=r}));const t=s.find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(t)return void t.insertBefore(e)}this._programPath.unshiftContainer("body",e)}}},89196:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImportInjector",{enumerable:!0,get:function(){return s.default}}),t.addDefault=function(e,t,r){return new s.default(e).addDefault(t,r)},t.addNamed=function(e,t,r,n){return new s.default(e).addNamed(t,r,n)},t.addNamespace=function(e,t,r){return new s.default(e).addNamespace(t,r)},t.addSideEffect=function(e,t,r){return new s.default(e).addSideEffect(t,r)},Object.defineProperty(t,"isModule",{enumerable:!0,get:function(){return n.default}});var s=r(244),n=r(50555)},50555:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"module"===e.node.sourceType}},42833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildDynamicImport=function(e,t,r,n){const i=s.types.isCallExpression(e)?e.arguments[0]:e.source;if(s.types.isStringLiteral(i)||s.types.isTemplateLiteral(i)&&0===i.quasis.length)return t?s.template.expression.ast`
|
|
23
23
|
Promise.resolve().then(() => ${n(i)})
|
|
24
24
|
`:n(i);const a=s.types.isTemplateLiteral(i)?s.types.identifier("specifier"):s.types.templateLiteral([s.types.templateElement({raw:""}),s.types.templateElement({raw:""})],[s.types.identifier("specifier")]);return t?s.template.expression.ast`
|
|
25
25
|
(specifier =>
|