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,GACAC,qBAAA,CACD,EACKlpD,EAAA,CACR,CAAC","names":["arraysIntersect","subject","arr","e","checkForEmptiness","property","propName","what","deepClone","obj","deepMerge","left","right","options","result","arrays","key","leftVal","rightVal","res","isEither","value","isError","Result","Result2","isCondition","equalOrContains","term1","term2","evaluateExpression","expression","operator","expression2","evaluateCondition","condition","freshProperty","freshItem","description","item","getMissingProperties","schema","required","missingProps","requiredProp","getReferenceProperty","reference","_","getValueFromPath","object","path","a","fragment","defaultRequestTransformer","url","payload","params","request2","defaultResponseTransformer","response","request","config","requestTransformer","responseTransformer","transformedRequest","isReference","isRequired","__viteBrowserExternal","TypedArrayPrototypeGetSymbolToStringTag","g","isUint8Array","isAnyArrayBuffer","isRegExp","regexp","isMap","isDate","date","defaultInspect","x","_options","k","v","getStylizeFunction","BSON_MAJOR_VERSION","BSON_VERSION_SYMBOL","BSON_INT32_MAX","BSON_INT32_MIN","BSON_INT64_MAX","BSON_INT64_MIN","JS_INT_MAX","JS_INT_MIN","BSON_DATA_NUMBER","BSON_DATA_STRING","BSON_DATA_OBJECT","BSON_DATA_ARRAY","BSON_DATA_BINARY","BSON_DATA_UNDEFINED","BSON_DATA_OID","BSON_DATA_BOOLEAN","BSON_DATA_DATE","BSON_DATA_NULL","BSON_DATA_REGEXP","BSON_DATA_DBPOINTER","BSON_DATA_CODE","BSON_DATA_SYMBOL","BSON_DATA_CODE_W_SCOPE","BSON_DATA_INT","BSON_DATA_TIMESTAMP","BSON_DATA_LONG","BSON_DATA_DECIMAL128","BSON_DATA_MIN_KEY","BSON_DATA_MAX_KEY","BSON_BINARY_SUBTYPE_UUID_NEW","BSONError","message","BSONVersionError","BSONRuntimeError","BSONOffsetError","offset","TextDecoderFatal","TextDecoderNonFatal","parseUtf8","buffer","start","end","fatal","cause","tryReadBasicLatin","uint8array","stringByteLength","latinBytes","i","byte","tryWriteBasicLatin","destination","source","charOffset","destinationOffset","char","nodejsMathRandomBytes","byteLength","nodeJsByteUtils","nodejsRandomBytes","require$$0","potentialBuffer","stringTag","size","b","array","base64","codePoints","hex","basicLatin","string","input","byteOffset","latinBytesWritten","isReactNative","navigator","webMathRandomBytes","webByteUtils","webRandomBytes","crypto","console","HEX_DIGIT","potentialUint8array","c","evenLengthHex","firstDigit","secondDigit","hexDigit","bytes","byte0","byte1","byte2","byte3","hasGlobalBuffer","ByteUtils","BSONValue","depth","inspect","FLOAT","FLOAT_BYTES","isBigEndian","NumberUtils","hi","lo","mask32bits","Binary","subType","byteValue","decodedByte","newSpace","sequence","position","length","encoding","validateBinaryVector","base64String","UUID","doc","data","type","base64Arg","subTypeArg","floatBytes","bitCount","bits","bitOffset","shift","bit","intBytes","binaryBytes","padding","remainder","vector","datatype","UUID_BYTE_LENGTH","UUID_WITHOUT_DASHES","UUID_WITH_DASHES","includeDashes","otherId","hexString","representation","Code","code","scope","parametersString","multiLineFn","endingNewline","isDBRefLike","DBRef","collection","oid","db","fields","parts","o","copy","args","removeLeadingZerosAndExplicitPlus","str","startIndex","isNegative","isExplicitlyPositive","foundInsignificantZero","validateStringCharacters","radix","validCharacters","wasm","TWO_PWR_16_DBL","TWO_PWR_24_DBL","TWO_PWR_32_DBL","TWO_PWR_64_DBL","TWO_PWR_63_DBL","INT_CACHE","UINT_CACHE","MAX_INT64_STRING_LENGTH","DECIMAL_REG_EX","Long","lowOrValue","highOrUnsigned","unsigned","unsignedBool","high","lowBits","highBits","cachedObj","cache","FROM_BIGINT_BIT_MASK","FROM_BIGINT_BIT_SHIFT","p","radixToPower","power","unsignedOrRadix","cleanedStr","le","val","addend","a48","a32","a16","a00","b48","b32","b16","b00","c48","c32","c16","c00","other","thisNeg","otherNeg","divisor","low","approx","rem","log2","delta","approxRes","approxRem","multiplier","numBits","subtrahend","radixLong","div","rem1","remDiv","digits","useBigInt64","relaxed","bigIntResult","longResult","longVal","unsignedVal","PARSE_STRING_REGEXP","PARSE_INF_REGEXP","PARSE_NAN_REGEXP","EXPONENT_MAX","EXPONENT_MIN","EXPONENT_BIAS","MAX_DIGITS","NAN_BUFFER","INF_NEGATIVE_BUFFER","INF_POSITIVE_BUFFER","EXPONENT_REGEX","COMBINATION_MASK","EXPONENT_MASK","COMBINATION_INFINITY","COMBINATION_NAN","isDigit","divideu128","DIVISOR","_rem","multiply64x2","leftHigh","leftLow","rightHigh","rightLow","productHigh","productMid","productMid2","productLow","lessThan","uhleft","uhright","ulleft","ulright","invalidErr","Decimal128","sawSign","sawRadix","foundNonZero","significantDigits","nDigitsRead","nDigits","radixPosition","firstNonZero","nDigitsStored","digitsInsert","lastDigit","exponent","significandHigh","significandLow","biasedExponent","index","stringMatch","infMatch","nanMatch","unsignedNumber","expSign","expNumber","match","endOfString","roundDigit","roundBit","dIdx","significand","dec","biased_exponent","significand_digits","is_zero","significand_msb","significand128","j","midl","midh","combination","least_digits","scientific_exponent","radix_position","Double","coercedValue","doubleValue","Int32","cleanedValue","MaxKey","MinKey","PROCESS_UNIQUE","__idCache","ObjectId","inputId","workingId","__id","time","inc","variable","otherIdString","thisIdString","timestamp","id","alphabetize","BSONRegExp","pattern","stylize","flags","BSONSymbol","LongWithoutOverridesClass","Timestamp","t","optRadix","JS_INT_MAX_LONG","JS_INT_MIN_LONG","internalDeserialize","isArray","deserializeObject","allowedDBRefKeys","fieldsAsRaw","raw","bsonRegExp","promoteBuffers","promoteLongs","promoteValues","validation","globalUTFValidation","validationSetting","utf8KeysSet","utf8ValidatedKeys","utf8ValidationValues","arrayIndex","isPossibleDBRef","elementType","name","shouldValidateKey","stringSize","_index","objectSize","objectOptions","arrayOptions","stopIndex","long","binarySize","totalBinarySize","regExpOptions","optionsArray","symbol","functionString","totalSize","scopeObject","namespace","oidBuffer","isBSONType","keysToCodecs","deserializeValue","in32BitRange","in64BitRange","keys","d","dollarKeys","valid","serializeArray","serializeValue","getISOString","isoStr","entry","props","leadingPart","prop","alreadySeen","circularPart","current","leadingSpace","dashes","dateNum","inRange","serializeDocument","BSON_TYPE_MAPPINGS","bsontype","_doc","outDoc","mapper","parse","text","ejsonOptions","stringify","replacer","space","serializeOptions","EJSONserialize","EJSONdeserialize","ejson","EJSON","getSize","findNull","nullTerminatorOffset","parseToElements","startOffset","documentSize","elements","nameOffset","nameLength","onDemand","MAXSIZE","deserialize","ObjectId_1","deserialize_1","BSON.deserialize","makeMap","map","EMPTY_OBJ","EMPTY_ARR","NOOP","NO","isOn","isModelListener","extend","remove","el","hasOwnProperty","hasOwn","toTypeString","isSet","isFunction","isString","isSymbol","isObject","isPromise","objectToString","toRawType","isPlainObject","isIntegerKey","isReservedProp","cacheStringFunction","fn","camelizeRE","camelize","hyphenateRE","hyphenate","capitalize","toHandlerKey","hasChanged","oldValue","invokeArrayFns","fns","arg","def","writable","looseToNumber","n","toNumber","_globalThis","getGlobalThis","normalizeStyle","normalized","parseStringStyle","listDelimiterRE","propertyDelimiterRE","styleCommentRE","cssText","ret","tmp","normalizeClass","normalizeProps","klass","style","specialBooleanAttrs","isSpecialBooleanAttr","includeBooleanAttr","looseCompareArrays","equal","looseEqual","aValidType","bValidType","aKeysCount","bKeysCount","aHasKey","bHasKey","looseIndexOf","isRef","toDisplayString","_key","entries","val2","stringifySymbol","_a","activeEffectScope","EffectScope","detached","l","currentEffectScope","fromParent","last","getCurrentScope","activeSub","pausedQueueEffects","ReactiveEffect","batch","cleanupEffect","prepareDeps","prevEffect","prevShouldTrack","shouldTrack","cleanupDeps","link","removeSub","isDirty","batchDepth","batchedSub","batchedComputed","sub","isComputed","startBatch","endBatch","next","error","err","head","tail","prev","removeDep","refreshComputed","computed","globalVersion","dep","prevSub","soft","nextSub","prevDep","nextDep","trackStack","pauseTracking","resetTracking","cleanup","Link","Dep","debugInfo","addSub","currentTail","targetMap","ITERATE_KEY","MAP_KEY_ITERATE_KEY","ARRAY_ITERATE_KEY","track","target","depsMap","trigger","newValue","oldTarget","run","targetIsArray","isArrayIndex","newLength","key2","getDepFromReactive","depMap","reactiveReadArray","toRaw","isShallow","toReactive","shallowReadArray","arrayInstrumentations","iterator","thisArg","apply","searchProxy","separator","noTracking","reduce","comparer","self","method","wrapValue","iter","arrayProto","wrappedRetFn","needsWrap","methodFn","result2","wrappedFn","acc","isProxy","isNonTrackableKeys","builtInSymbols","BaseReactiveHandler","_isReadonly","_isShallow","receiver","isReadonly2","isShallow2","shallowReadonlyMap","readonlyMap","shallowReactiveMap","reactiveMap","readonly","reactive","MutableReactiveHandler","isOldValueReadonly","isReadonly","hadKey","ReadonlyReactiveHandler","mutableHandlers","readonlyHandlers","shallowReactiveHandlers","toShallow","getProto","createIterableMethod","rawTarget","targetIsMap","isPair","isKeyOnly","innerIterator","wrap","toReadonly","done","createReadonlyMethod","createInstrumentations","shallow","instrumentations","rawKey","has","callback","observed","get","hadItems","createInstrumentationGetter","mutableCollectionHandlers","shallowCollectionHandlers","readonlyCollectionHandlers","targetTypeMap","rawType","getTargetType","createReactiveObject","shallowReactive","baseHandlers","collectionHandlers","proxyMap","existingProxy","targetType","proxy","isReactive","markRaw","r","ref","createRef","shallowRef","rawValue","RefImpl","useDirectValue","unref","ref2","shallowUnwrapHandlers","proxyRefs","objectWithRefs","toRefs","propertyToRef","ObjectRefImpl","_object","_defaultValue","newVal","defaultValue","ComputedRefImpl","setter","isSSR","getterOrOptions","debugOptions","getter","INITIAL_WATCHER_VALUE","cleanupMap","activeWatcher","onWatcherCleanup","cleanupFn","failSilently","owner","cleanups","watch","cb","immediate","deep","once","scheduler","augmentJob","call","reactiveGetter","source2","traverse","effect","boundCleanup","forceTrigger","isMultiSource","s","currentEffect","baseGetter","watchHandle","_cb","job","immediateFirstRun","currentWatcher","cleanup2","seen","callWithErrorHandling","instance","handleError","callWithAsyncErrorHandling","values","throwInDev","contextVNode","errorHandler","throwUnhandledErrorInProduction","cur","exposedInstance","errorInfo","errorCapturedHooks","logError","throwInProd","queue","flushIndex","pendingPostFlushCbs","activePostFlushCbs","postFlushIndex","resolvedPromise","currentFlushPromise","nextTick","findInsertionIndex","middle","middleJob","middleJobId","getId","queueJob","jobId","lastJob","queueFlush","flushJobs","queuePostFlushCb","flushPreFlushCbs","flushPostFlushCbs","deduped","currentRenderingInstance","currentScopeId","setCurrentRenderingInstance","withCtx","ctx","isNonScopedSlot","renderFnWithContext","setBlockTracking","prevInstance","withDirectives","vnode","directives","getComponentPublicInstance","bindings","dir","modifiers","invokeDirectiveHook","prevVNode","oldBindings","binding","hook","TeleportEndKey","isTeleport","isTeleportDisabled","isTeleportDeferred","isTargetSVG","isTargetMathML","resolveTarget","select","targetSelector","TeleportImpl","n1","n2","container","anchor","parentComponent","parentSuspense","slotScopeIds","optimized","internals","mountChildren","patchChildren","patchBlockChildren","insert","querySelector","createText","createComment","disabled","shapeFlag","children","dynamicChildren","placeholder","mainAnchor","mount","container2","anchor2","mountToTarget","targetAnchor","prepareAnchor","updateCssVars","queuePostRenderEffect","wasDisabled","currentContainer","currentAnchor","traverseStaticChildren","moveTeleport","nextTarget","unmount","hostRemove","doRemove","targetStart","shouldRemove","child","hydrateTeleport","parentAnchor","move","moveType","isReorder","node","nextSibling","parentNode","hydrateChildren","targetNode","Teleport","isDisabled","setTransitionHooks","hooks","defineComponent","extraOptions","markAsyncBoundary","setRef","rawRef","oldRawRef","isUnmount","isAsyncWrapper","refValue","oldRef","refs","setupState","rawSetupState","canSetSetupRef","_isString","_isRef","doSet","existing","isKeepAlive","onActivated","registerKeepAliveHook","onDeactivated","currentInstance","wrappedHook","injectHook","injectToKeepAliveRoot","keepAliveRoot","injected","onUnmounted","prepend","reset","setCurrentInstance","createHook","lifecycle","isInSSRComponentSetup","onBeforeMount","onMounted","onBeforeUpdate","onUpdated","onBeforeUnmount","onServerPrefetch","onRenderTriggered","onRenderTracked","onErrorCaptured","COMPONENTS","DIRECTIVES","resolveComponent","maybeSelfReference","resolveAsset","NULL_DYNAMIC_COMPONENT","resolveDynamicComponent","component","resolveDirective","warnMissing","Component","selfName","getComponentName","resolve","registry","renderList","renderItem","cached","sourceIsArray","sourceIsReactiveArray","createSlots","slots","dynamicSlots","slot","renderSlot","fallback","noSlotted","openBlock","createBlock","Fragment","createVNode","validSlotContent","ensureValidVNode","slotKey","rendered","vnodes","isVNode","Comment","getPublicInstance","isStatefulComponent","publicPropertiesMap","resolveMergedOptions","instanceWatch","hasSetupBinding","state","PublicInstanceProxyHandlers","accessCache","appContext","normalizedProps","shouldCacheAccess","publicGetter","cssModule","globalProperties","propsOptions","descriptor","useSlots","getContext","useAttrs","getCurrentInstance","createSetupContext","normalizePropsOrEmits","withAsyncContext","getAwaitable","awaitable","unsetCurrentInstance","applyOptions","publicThis","callHook","dataOptions","computedOptions","methods","watchOptions","provideOptions","injectOptions","created","beforeMount","mounted","beforeUpdate","updated","activated","deactivated","beforeDestroy","beforeUnmount","destroyed","unmounted","render","renderTracked","renderTriggered","errorCaptured","serverPrefetch","expose","inheritAttrs","components","filters","resolveInjections","methodHandler","opt","set","createWatcher","provides","provide","registerLifecycleHook","register","_hook","exposed","checkDuplicateProperties","normalizeInject","inject","h","createPathGetter","handler","base","mixins","extendsOptions","globalMixins","optionMergeStrategies","resolved","m","mergeOptions","to","from","strats","asMixin","strat","internalOptionMergeStrats","mergeDataFn","mergeEmitsOrPropsOptions","mergeObjectOptions","mergeAsArray","mergeWatchOptions","mergeInject","merged","createAppContext","uid$1","createAppAPI","hydrate","rootComponent","rootProps","context","installedPlugins","pluginCleanupFns","isMounted","app","version","plugin","mixin","directive","rootContainer","isHydrate","lastApp","currentApp","parentProvides","treatDefaultAsFactory","internalObjectProto","createInternalObject","isInternalObject","initProps","rawProps","isStateful","attrs","setFullProps","updateProps","rawPrevProps","patchFlag","rawCurrentProps","hasAttrsChanged","propsToUpdate","isEmitListener","camelizedKey","resolvePropValue","kebabKey","needCastKeys","rawCastValues","camelKey","castValues","isAbsent","hasDefault","propsDefaults","mixinPropsCache","normalizePropsOptions","comp","hasExtends","extendProps","raw2","normalizedKey","validatePropName","propType","shouldCast","shouldCastTrue","typeName","isInternalKey","normalizeSlotValue","normalizeVNode","normalizeSlot","rawSlot","normalizeObjectSlots","rawSlots","normalizeVNodeSlots","assignSlots","initSlots","updateSlots","needDeletionCheck","deletionComparisonTarget","queueEffectWithSuspense","createRenderer","baseCreateRenderer","createHydrationFns","hostInsert","hostPatchProp","hostCreateElement","hostCreateText","hostCreateComment","hostSetText","hostSetElementText","hostParentNode","hostNextSibling","hostSetScopeId","hostInsertStaticContent","patch","isSameVNodeType","getNextHostNode","Text","processText","processCommentNode","Static","mountStaticNode","processFragment","processElement","processComponent","moveStaticNode","removeStaticNode","mountElement","patchElement","vnodeHook","transition","dirs","resolveChildrenNamespace","setScopeId","invokeVNodeHook","needCallTransitionHooks","needTransition","scopeId","subTree","isSuspense","parentVNode","cloneIfMounted","oldProps","newProps","toggleRecurse","patchProps","oldChildren","newChildren","fallbackContainer","oldVNode","newVNode","fragmentStartAnchor","fragmentEndAnchor","fragmentSlotScopeIds","mountComponent","updateComponent","initialVNode","createComponentInstance","setupComponent","setupRenderEffect","shouldUpdateComponent","updateComponentPreRender","componentUpdateFn","bu","u","parent","nonHydratedAsyncRoot","locateNonHydratedAsyncRoot","originNext","nextTree","renderComponentRoot","prevTree","updateHOCHostEl","bm","root","isAsyncWrapperVNode","scopedInitialVNode","update","nextVNode","prevProps","c1","prevShapeFlag","c2","patchKeyedChildren","patchUnkeyedChildren","unmountChildren","oldLength","commonLength","nextChild","l2","e1","e2","nextPos","s1","s2","keyToNewIndexMap","patched","toBePatched","moved","maxNewIndexSoFar","newIndexToOldIndexMap","prevChild","newIndex","increasingNewIndexSequence","getSequence","nextIndex","leave","delayLeave","afterLeave","remove2","performLeave","cacheIndex","shouldInvokeDirs","shouldInvokeVnodeHook","unmountComponent","removeFragment","performRemove","bum","um","invalidateMount","teleportEnd","isFlushing","currentNamespace","allowed","ch1","ch2","len","arrI","subComponent","ssrContextKey","useSSRContext","watchEffect","doWatch","flush","baseWatchOptions","runsImmediately","ssrCleanup","watchStopHandle","isPre","isFirstRun","watch$1","segments","getModelModifiers","modelName","emit","event","rawArgs","handlerName","onceHandler","normalizeEmitsOptions","extendEmits","normalizedFromExtend","withProxy","renderCache","fallthroughAttrs","proxyToUse","thisProxy","render2","getFunctionalFallthrough","blockStack","filterModelListeners","cloneVNode","filterSingleRoot","recurse","singleRoot","prevChildren","nextProps","nextChildren","emits","hasPropsChanged","dynamicProps","emitsOptions","nextKeys","suspenseId","SuspenseImpl","rendererInternals","mountSuspense","patchSuspense","hydrateSuspense","normalizeSuspenseChildren","Suspense","triggerEvent","eventListener","createElement","hiddenContainer","suspense","createSuspenseBoundary","setActiveBranch","newBranch","newFallback","activeBranch","pendingBranch","isInFallback","isHydrating","timeout","pendingId","parentSuspenseId","isSuspensible","isVNodeSuspensible","initialAnchor","resume","sync","vnode2","effects","parentComponent2","delayEnter","hasUnresolvedAncestor","fallbackVNode","namespace2","mountFallback","optimized2","isInPendingSuspense","hydratedEl","asyncSetupResult","handleSetupResult","parentSuspense2","hydrateNode","isSlotChildren","normalizeSuspenseSlot","block","trackBlock","isBlockTreeEnabled","currentBlock","closeBlock","branch","suspensible","disableTracking","inVOnce","setupBlock","createElementBlock","createBaseVNode","normalizeKey","normalizeRef","ref_key","ref_for","isBlockNode","needFullChildrenNormalization","normalizeChildren","_createVNode","cloned","isClassComponent","guardReactiveProps","extraProps","mergeRef","cloneTransition","mergedProps","mergeProps","createTextVNode","flag","createCommentVNode","asBlock","slotFlag","toMerge","incoming","emptyAppContext","uid","internalSetCurrentInstance","setInSSRSetupState","registerGlobalSetter","setters","setupResult","setupStatefulComponent","setup","setupContext","isAsyncSetup","resolvedResult","finishComponentSetup","skipOptions","attrsProxyHandlers","includeInferred","computed$1","propsOrChildren","policy","tt","unsafeToTrustedHTML","svgNS","mathmlNS","templateContainer","nodeOps","tag","is","selector","content","before","template","wrapper","vtcKey","patchClass","isSVG","transitionClasses","vShowOriginalDisplay","vShowHidden","vShow","setDisplay","CSS_VAR_TEXT","useCssVars","updateTeleports","vars","setVarsOnNode","setVars","setVarsOnVNode","ob","displayRE","patchStyle","isCssString","hasControlledDisplay","prevStyle","setStyle","cssVarText","importantRE","prefixed","autoPrefix","prefixes","prefixCache","rawName","xlinkNS","patchAttr","isBoolean","patchDOMProp","attrName","needRemove","addEventListener","removeEventListener","veiKey","patchEvent","prevValue","nextValue","invokers","existingInvoker","parseName","invoker","createInvoker","optionsModifierRE","cachedNow","getNow","initialValue","patchStopImmediatePropagation","originalStop","isNativeOn","patchProp","shouldSetAsProp","camelize$1","getModelAssigner","onCompositionStart","onCompositionEnd","assignKey","vModelText","lazy","trim","number","castToNumber","domValue","elValue","vModelCheckbox","modelValue","elementValue","getValue","checked","assign","found","filtered","getCheckboxValue","setChecked","vModelRadio","vModelSelect","isSetModel","selectedVal","setSelected","_binding","isMultiple","isArrayValue","option","optionValue","optionType","vModelDynamic","callModelHook","resolveDynamicModel","tagName","systemModifiers","modifierGuards","withModifiers","cacheKey","guard","rendererOptions","renderer","ensureRenderer","createApp","containerOrSelector","normalizeContainer","resolveRootNamespace","defineLocale","locale","I18N_KEY","createI18n","i18n","useI18n","getI18nConfig","internalTranslate","originalText","localeMemo","camelCased","fullPath","matchedLocale","candidate","resultText","part","translated","isBrowser","isRouteComponent","isESModule","applyToParams","newParams","noop","HASH_RE","AMPERSAND_RE","SLASH_RE","EQUAL_RE","IM_RE","PLUS_RE","ENC_BRACKET_OPEN_RE","ENC_BRACKET_CLOSE_RE","ENC_CARET_RE","ENC_BACKTICK_RE","ENC_CURLY_OPEN_RE","ENC_PIPE_RE","ENC_CURLY_CLOSE_RE","ENC_SPACE_RE","commonEncode","encodeHash","encodeQueryValue","encodeQueryKey","encodePath","encodeParam","decode","TRAILING_SLASH_RE","removeTrailingSlash","parseURL","parseQuery","location","currentLocation","query","searchString","hash","hashPos","searchPos","resolveRelativePath","stringifyURL","stringifyQuery","stripBase","pathname","isSameRouteLocation","aLastIndex","bLastIndex","isSameRouteRecord","isSameRouteLocationParams","isSameRouteLocationParamsValue","isEquivalentArray","fromSegments","toSegments","lastToSegment","toPosition","segment","START_LOCATION_NORMALIZED","NavigationType","NavigationDirection","normalizeBase","baseEl","BEFORE_HASH_RE","createHref","getElementPosition","docRect","elRect","computeScrollPosition","scrollToPosition","scrollToOptions","positionEl","isIdSelector","getScrollKey","scrollPositions","saveScrollPosition","scrollPosition","getSavedScrollPosition","scroll","createBaseLocation","createCurrentLocation","search","slicePos","pathFromHash","useHistoryListeners","historyState","replace","listeners","teardowns","pauseState","popStateHandler","fromState","listener","pauseListeners","listen","teardown","beforeUnloadListener","history","destroy","buildState","back","forward","replaced","computeScroll","useHistoryStateNavigation","changeLocation","hashIndex","push","currentState","createWebHistory","historyNavigation","historyListeners","go","triggerListeners","routerHistory","isRouteLocation","route","isRouteName","NavigationFailureSymbol","NavigationFailureType","createRouterError","isNavigationFailure","BASE_PARAM_PATTERN","BASE_PATH_PARSER_OPTIONS","REGEX_CHARS_RE","tokensToParser","score","segmentScores","tokenIndex","token","subSegmentScore","repeatable","optional","re","subPattern","avoidDuplicatedSlash","param","compareScoreArray","diff","comparePathParserScore","aScore","bScore","isLastScoreNegative","ROOT_TOKEN","VALID_PARAM_RE","tokenizePath","crash","previousState","tokens","finalizeSegment","customRe","consumeBuffer","addCharToBuffer","createRouteRecordMatcher","record","parser","matcher","createRouterMatcher","routes","globalOptions","matchers","matcherMap","getRecordMatcher","addRoute","originalRecord","isRootAdd","mainNormalizedRecord","normalizeRouteRecord","normalizedRecords","aliases","alias","originalMatcher","normalizedRecord","parentPath","connectingSlash","isAliasRecord","removeRoute","isMatchable","insertMatcher","matcherRef","getRoutes","paramsFromLocation","matched","parentMatcher","mergeMetaFields","clearRoutes","normalizeRecordProps","propsObject","meta","defaults","partialOptions","lower","upper","mid","insertionAncestor","getInsertionAncestor","ancestor","searchParams","searchParam","eqPos","currentValue","normalizeQuery","normalizedQuery","matchedRouteKey","viewDepthKey","routerKey","routeLocationKey","routerViewLocationKey","useCallbacks","handlers","add","guardToPromiseFn","runWithContext","enterCallbackArray","reject","guardReturn","guardCall","extractComponentsGuards","guardType","guards","rawComponent","componentPromise","resolvedComponent","useLink","router","currentRoute","activeRecordIndex","routeMatched","currentMatched","parentRecordPath","getOriginalPath","isActive","includesParams","isExactActive","navigate","guardEvent","preferSingleVNode","RouterLinkImpl","elClass","getLinkClass","RouterLink","outer","inner","innerValue","outerValue","propClass","globalClass","defaultClass","RouterViewImpl","injectedRoute","routeToDisplay","injectedDepth","initialDepth","matchedRoute","matchedRouteRef","viewRef","oldInstance","oldName","currentName","ViewComponent","routePropsOption","routeProps","slotContent","RouterView","createRouter","parseQuery$1","stringifyQuery$1","beforeGuards","beforeResolveGuards","afterGuards","pendingLocation","normalizeParams","paramValue","encodeParams","decodeParams","parentOrRoute","recordMatcher","routeMatcher","hasRoute","rawLocation","locationNormalized","href","matcherLocation","targetParams","locationAsObject","checkCanceledNavigation","pushWithRedirect","handleRedirectRecord","lastMatched","redirect","newTargetLocation","redirectedFrom","targetLocation","force","shouldRedirect","toLocation","failure","handleScroll","markAsReady","triggerError","finalizeNavigation","triggerAfterEach","checkCanceledNavigationAndReject","installedApps","leavingRecords","updatingRecords","enteringRecords","extractChangingRecords","canceledNavigationCheck","runGuardQueue","beforeEnter","isPush","isFirstNavigation","removeHistoryListener","setupListeners","_from","info","readyHandlers","errorListeners","ready","list","isReady","scrollBehavior","started","reactiveRoute","unmountApp","promise","recordFrom","recordTo","useRouter","useRoute","_name","GLOBAL_STATE_KEY","STORE_ID","createGlobalStateManager","globalState","getGlobalStateManager","getGlobalState","manager","getStoreId","useStore","storeId","useParentStore","parentStoreId","hasStore","internalRegisterStore","$id","getters","actions","reactiveState","store","functions","_target","verb","proxiedActions","createStore","registerStores","stores","condenseItem","elem","convertExpression","convertConditionToQuery","rtf","units","formatDateTime","hours","hoursOnly","getRelativeTimeFromNow","elapsed","extractId","deepDiff","origin","preserveIds","equals","toStr","changes","formatValue","firstProperty","firstIndex","getObjectKey","isDocumentComplete","properties","formIncludes","form","requiredKeys","PAGINATION_PER_PAGE_DEFAULTS","PAGINATION_PER_PAGE_DEFAULT","API_URL","__vite_import_meta_env__","STORAGE_NAMESPACE","DEFAULT_STORAGE_NAMESPACE","storageMemo","storageKey","getStorage","strategy","serialized","_requestConfig","requestConfig","url2","payload2","_params","auth","originalRequest","recurseInsertCandidate","helperStore","useCollectionStore","useStoreActions","items","_item","old","_id","payloadSource","_payload","newItem","refVal","isEmpty","normalizeActions","normalizedActions","actionName","action","normalizeFilters","normalizedFilters","filter","_freshItem","freshFilters","internalCreateCollectionStore","storeActions","userStore","role","$filters","expr","sanitizedFilters","newFilter","diffedItem","referenceItem","grandParent","isComplete","preferredProperties","createCollectionStore","newer","initial","useParentCollectionStore","freshUser","user","setCurrentUser","signout","metaStore","userRole","hierarchy","authResult","errorMessage","DEFAULT_THEME","freshState","deserialized","globalDescriptions","collectionName","rawDescription","detail","answer","itr","toast","theme","routerInstance","hasRoles","roles","templateFunctions","overlay","layer","overlayElem","visible","innerElem","loading","clickable","focus","registerDirectives","Overlay","Loading","Clickable","Focus","Theme","INSTANCE_VARS_SYMBOL","MENU_SCHEMA_SYMBOL","bootstrapRoutes","descriptions","routeName","bootstrapApp","globalStateManager","useApp","optionsFn","menuSchema","reactiveMenuSchema","titleConfig","_i18n","hasError","STORE_EFFECTS","getEffect","effectName","useAction","eventBus","actionProps","_filters","prepareFilters","storeAction","functionName","widthMatches","listenerAttached","useBreakpoints","viewport","breakpoints","useDebounce","timer","firstCall","cancel","findRoute","getSchema","useNavbar","isCurrent","subroute","usePasswordPolicy","password","confirmation","useScrollObserver","element","antecipate","reachedEnd","updateScroll","targetEl","windowScroll","MaskType","getMaskIndexes","mask","useMask","maskInfos","defaultMask","enmask","newMask","currentMask","unmask","maskCharIndex","textIndex","matchingMask","maskType","matchingMaskResult","defineOptions","isDateTuple","dateTupleToString","tuple","extractValue","buildValue","d1","d2","convertToSearchQuery","queryValue","convertFromSearchQuery","prefix","Dt","Qt","Gt","Wt","F","ee","ne","W","P","D","Z","C","G","q","I","Q","Ol","Yt","Ve","Kt","Re","ye","Xt","Jt","Zt","fe","St","X","B","z","Y","Pt","Nt","xt","V","pe","en","tn","nn","on","an","ln","sn","rn","un","cn","dn","Ke","y","$","f","A","be","Se","pn","_n","mn","gt","ie","Ge","Ae","de","Ce","We","L","Ie","vn","yn","Le","hn","bn","gn","$n","kn","Vn","Cn","On","K","Ye","M","U","wt","ue","E","oe","w","te","Oe","An","In","Bn","Je","Sn","wn","Tn","jn","Rn","Tt","qn","Ln","Mn","zn","Fn","En","Un","$t","Hn","Dn","Qn","vt","$e","Gn","Wn","Yn","Kn","Xn","Jn","Zn","Pn","Nn","xn","eo","no","yt","Ue","oo","ao","so","io","ro","uo","co","po","_o","me","Me","He","jt","mo","fo","vo","yo","pt","ho","bo","Be","Qe","$o","ko","Vo","Co","Oo","Ao","Fe","Io","ge","ze","N","Et","ht","ke","ce","ae","O","T","H","J","_e","Bo","_t","De","So","Ft","wo","To","jo","Ro","qo","Lo","Mo","zo","Fo","Eo","Uo","Ho","Do","Qo","Go","Wo","Yo","Xe","R","se","ve","Ee","S","Ut","he","Ze","Pe","Ne","xe","et","nt","ot","at","dt","we","lt","st","it","rt","ut","ct","Ht","Te","Ko","qe","Rt","Xo","Bt","bt","Jo","Zo","Po","No","xo","ea","ta","na","oa","aa","la","sa","ia","ra","ua","ca","da","pa","ma","fa","va","ya","ha","ba","ga","$a","ka","Va","Ca","Oa","Aa","Ia","Ba","kt","Sa","wa","je","Ta","ja","Ra","qa","La","mt","Ma","za","Fa","Ea","Ua","Ha","Da","ft","Qa","qt","Lt","Mt","Vt","Al","Ga","Wa","Ya","Ka","Xa","Ja","Za","Pa","Na","xa","Ct","Ot","Il","tl","nl","ol","Bl","al","ll","sl","il","rl","ul","cl","At","dl","pl","It","_l","ml","fl","vl","yl","Sl","zt","wl","__vitePreload","Tl","badgeMemo","navbarRefs","_args","memoizeBadge","navbarEntryOpen","isCollapsibleRouteOpen","pushRoute","routeClick","initTheme","navbar","_definePage_default_0","_mergeRouteRecord","main","routeRecords","routeRecord","_definePage_default_2","_definePage_default_3","_definePage_default_4","_definePage_default_5","_definePage_default_8","_definePage_default_10","_definePage_default_12","_definePage_default_14","_definePage_default_16","_definePage_default_17","_definePage_default_19","_definePage_default_21","_definePage_default_22","_definePage_default_23","_definePage_default_24","_definePage_default_25","_definePage_default_26","_definePage_default_27","_definePage_sidepanel_6","_definePage_topbar_7","_definePage_topbar_9","_definePage_topbar_11","_definePage_topbar_13","_definePage_topbar_15","_definePage_topbar_18","_definePage_topbar_20","publicUrl","proxify","bearerToken","topLevel","aeria","userToken","isLoading","disableLoadNotification","notifications","notificationsCount","notificationPanel","formatDateWithHours","originalDate","day","month","year","minutes","removeNotification","notificaiton","getUserNotifications","countUserNotification","authString","autoRoutes","userRoutes","AuthWall","dashboardRoutes","DashboardLayout","reasonsLocalization","ptBr","restrictedStatus","createOrderStructure","currentUser","stat","stored","orderHistory","generation","now","daysDiff","_d1","_d2","order","state2","either","insertEither","orderStore","order2","queryFields","__v","created_at","updated_at","events","sent_for_revision","description2","status","customer","product","_state","_actions","shipment","metaStore2","shippingTable","integration","orderReview","reshipment","_imports_0","_hoisted_1","_sfc_render","_ctx","_cache","_createElementVNode","_hoisted_2","paths","integrationStore","__props","platforms","__emit","keyLabels","model","onInput","Main","aeriaPtbr","EmptyComponent","PlatformSelect","AuthorizationLabel"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,87,88,89],"sources":["../../node_modules/@aeriajs/common/dist/arraysIntersect.mjs","../../node_modules/@aeriajs/common/dist/checkForEmptiness.mjs","../../node_modules/@aeriajs/common/dist/deepClone.mjs","../../node_modules/@aeriajs/common/dist/deepMerge.mjs","../../node_modules/@aeriajs/common/dist/result.mjs","../../node_modules/@aeriajs/types/dist/result.mjs","../../node_modules/@aeriajs/common/dist/evaluateCondition.mjs","../../node_modules/@aeriajs/common/dist/freshItem.mjs","../../node_modules/@aeriajs/common/dist/getMissingProperties.mjs","../../node_modules/@aeriajs/common/dist/getReferenceProperty.mjs","../../node_modules/@aeriajs/common/dist/getValueFromPath.mjs","../../node_modules/@aeriajs/common/dist/http.mjs","../../node_modules/@aeriajs/common/dist/isReference.mjs","../../node_modules/@aeriajs/common/dist/isRequired.mjs","../../__vite-browser-external","../../node_modules/bson/lib/bson.cjs","../../node_modules/@aeriajs/common/dist/serialize.mjs","../../node_modules/@vue/shared/dist/shared.esm-bundler.js","../../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","../../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","../../node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","../../node_modules/@aeria-ui/i18n/dist/define.js","../../node_modules/@aeria-ui/i18n/dist/locale.js","../../node_modules/vue-router/dist/vue-router.mjs","../../node_modules/@aeria-ui/state-management/dist/index.js","../../node_modules/@aeria-ui/utils/dist/condenseItem.js","../../node_modules/@aeria-ui/utils/dist/convertConditionToQuery.js","../../node_modules/@aeria-ui/utils/dist/date.js","../../node_modules/@aeria-ui/utils/dist/deepDiff.js","../../node_modules/@aeria-ui/utils/dist/formatValue.js","../../node_modules/@aeria-ui/utils/dist/getObjectKey.js","../../node_modules/@aeria-ui/utils/dist/isDocumentComplete.js","../../node_modules/@aeria-ui/core/dist/constants.js","../../node_modules/aeria-sdk/dist/constants.mjs","../../node_modules/aeria-sdk/dist/storage.mjs","../../node_modules/aeria-sdk/dist/http.mjs","../../node_modules/@aeria-ui/core/dist/http.js","../../node_modules/@aeria-ui/core/dist/state/recurseInsertCandidate.js","../../node_modules/@aeria-ui/core/dist/state/actions.js","../../node_modules/@aeria-ui/core/dist/state/helpers.js","../../node_modules/@aeria-ui/core/dist/state/collection.js","../../node_modules/@aeria-ui/core/dist/stores/user.js","../../node_modules/@aeria-ui/core/dist/stores/meta.js","../../node_modules/@aeria-ui/core/dist/router.js","../../node_modules/@aeria-ui/core/dist/templateFunctions.js","../../node_modules/@aeria-ui/core/dist/directives/v-overlay.js","../../node_modules/@aeria-ui/core/dist/directives/v-loading.js","../../node_modules/@aeria-ui/core/dist/directives/v-clickable.js","../../node_modules/@aeria-ui/core/dist/directives/v-focus.js","../../node_modules/@aeria-ui/core/dist/directives/v-theme.js","../../node_modules/@aeria-ui/core/dist/directives/index.js","../../node_modules/@aeria-ui/core/dist/types.js","../../node_modules/@aeria-ui/core/dist/bootstrap.js","../../node_modules/@aeria-ui/core/dist/app.js","../../node_modules/@aeria-ui/core/dist/composables/use-action.js","../../node_modules/@aeria-ui/core/dist/composables/use-breakpoints.js","../../node_modules/@aeria-ui/core/dist/composables/use-debounce.js","../../node_modules/@aeria-ui/core/dist/composables/use-navbar.js","../../node_modules/@aeria-ui/core/dist/composables/use-password-policy.js","../../node_modules/@aeria-ui/core/dist/composables/use-scroll-observer.js","../../node_modules/@aeria-ui/core/dist/composables/use-mask.js","../../node_modules/@aeria-ui/core/dist/options.js","../../node_modules/@aeria-ui/core/dist/state/searchQuery.js","../../node_modules/@aeria-ui/ui/dist/index-88c0cb72.js","../../node_modules/@aeria-ui/theme/dist/index.js","../../node_modules/aeria-app-layout/dist/aeria-app-layout.js","../../src/pages/index.vue?definePage&vue&lang.tsx","../../node_modules/unplugin-vue-router/dist/runtime.js","../../src/pages/dashboard/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/documentation/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/geolocation/view/[id].vue?definePage&vue&lang.tsx","../../src/pages/dashboard/integration/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/manual-posting/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/my-organization/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/order/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/order/view/[id].vue?definePage&vue&lang.tsx","../../src/pages/dashboard/orderHistory.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/product/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/shipment/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/shippingProfile.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/shippingTable/index.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/statement.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/stats.vue?definePage&vue&lang.tsx","../../src/pages/dashboard/support.vue?definePage&vue&lang.tsx","../../src/pages/track-by-id/[id].vue?definePage&vue&lang.tsx","../../src/pages/tracking.vue?definePage&vue&lang.tsx","../../../../../__vue-router/auto-routes","../../node_modules/aeria-sdk/dist/utils.mjs","../../node_modules/aeria-sdk/dist/topLevel.mjs","../../node_modules/aeria-sdk/dist/runtime.mjs","../../src/pages/dashboard.vue","../../src/routes.ts","../../i18n/pt_BR.ts","../../src/stores/order.ts","../../src/stores/customer.ts","../../src/stores/product.ts","../../src/stores/shipment.ts","../../src/stores/shippingTable.ts","../../src/stores/integration.ts","../../src/stores/index.ts","../../../../../empty.svg","../../src/components/empty-component.vue","../../src/components/extra-icon.vue","../../src/components/platform-select.vue","../../src/components/authorization-label.vue","../../src/index.ts"],"sourcesContent":["\"use strict\";\nexport const arraysIntersect = (subject, arr) => {\n if (!arr) {\n return false;\n }\n return Array.isArray(subject) ? subject.some((e) => arr.includes(e)) : arr.includes(subject);\n};\n","\"use strict\";\nexport const checkForEmptiness = (property, propName, what) => {\n if (property.readOnly || property.isTimestamp) {\n return false;\n }\n return what[propName] === null || what[propName] === void 0 || what[propName] === \"\";\n};\n","\"use strict\";\nexport const deepClone = (obj) => {\n return typeof structuredClone === \"function\" && typeof window === \"undefined\" ? structuredClone(obj) : JSON.parse(JSON.stringify(obj));\n};\n","\"use strict\";\nexport const deepMerge = (left, right, options) => {\n const result = Object.assign({}, left);\n const { arrays = true } = options || {};\n for (const key in right) {\n const leftVal = result[key];\n const rightVal = right[key];\n if (options?.callback) {\n const res = options.callback(key, leftVal, rightVal);\n if (res !== void 0) {\n result[key] = res;\n continue;\n }\n }\n if (Array.isArray(result[key]) && Array.isArray(rightVal)) {\n result[key] = arrays ? result[key].concat(...rightVal) : rightVal;\n continue;\n }\n if (rightVal instanceof Function) {\n result[key] = rightVal;\n continue;\n }\n if (leftVal instanceof Object && rightVal instanceof Object) {\n if (rightVal.constructor !== Object) {\n result[key] = rightVal;\n continue;\n }\n result[key] = deepMerge(leftVal, rightVal, options);\n continue;\n }\n result[key] = rightVal;\n }\n return result;\n};\n","\"use strict\";\nexport const isEither = (value) => {\n return !!(value && typeof value === \"object\" && \"_tag\" in value && (value._tag === \"Error\" || value._tag === \"Result\"));\n};\nexport const isResult = (value) => {\n return !!(isEither(value) && value.result);\n};\nexport const isError = (value) => {\n return !!(isEither(value) && value.error);\n};\nexport const throwIfError = (either, message) => {\n if (either.error) {\n if (true) {\n console.trace(JSON.stringify(either.error, null, 2));\n }\n throw new Error(`throwIfError threw: ${either.error} ${message ? `(${message})` : \"\"}`);\n }\n return either.result;\n};\n","\"use strict\";\nexport var Result;\n((Result2) => {\n Result2.error = (value) => ({\n _tag: \"Error\",\n error: value,\n result: void 0\n });\n Result2.result = (value) => ({\n _tag: \"Result\",\n error: void 0,\n result: value\n });\n})(Result || (Result = {}));\n","\"use strict\";\nimport { arraysIntersect } from \"./arraysIntersect.mjs\";\nconst isCondition = (subject) => {\n if (!subject || typeof subject !== \"object\") {\n return false;\n }\n return \"and\" in subject || \"or\" in subject || \"not\" in subject || \"operator\" in subject && \"term1\" in subject;\n};\nconst equalOrContains = (term1, term2) => {\n if (Array.isArray(term1) && Array.isArray(term2)) {\n return arraysIntersect(term1, term2);\n }\n if (Array.isArray(term1)) {\n return term1.includes(term2);\n }\n if (Array.isArray(term2)) {\n return term2.includes(term1);\n }\n};\nconst evaluateExpression = (subject, expression) => {\n if (!isCondition(expression)) {\n return expression;\n }\n if (\"term1\" in expression) {\n if (!subject || typeof subject !== \"object\") {\n return false;\n }\n const term1 = subject[expression.term1];\n if (expression.operator === \"truthy\") {\n return !!term1;\n }\n const { operator, term2 } = expression;\n const right = evaluateExpression(subject, term2);\n switch (operator) {\n case \"equal\":\n return term1 === right;\n case \"in\":\n return !!equalOrContains(term1, right);\n case \"gt\":\n return term1 > Number(right);\n case \"lt\":\n return term1 < Number(right);\n case \"gte\":\n return term1 >= Number(right);\n case \"lte\":\n return term1 <= Number(right);\n case \"regex\":\n return new RegExp(right).test(term1);\n }\n }\n if (\"and\" in expression) {\n return expression.and.every((expression2) => evaluateExpression(subject, expression2));\n }\n if (\"or\" in expression) {\n return expression.or.some((expression2) => evaluateExpression(subject, expression2));\n }\n if (\"not\" in expression) {\n return !evaluateExpression(subject, expression.not);\n }\n return false;\n};\nexport const evaluateCondition = (subject, condition) => {\n const result = {\n satisfied: false,\n else: null\n };\n const satisfied = result.satisfied = !!evaluateExpression(subject, condition);\n if (!satisfied && \"else\" in condition) {\n result.else = condition.else;\n }\n return result;\n};\n","\"use strict\";\nexport const freshProperty = (property) => {\n const value = (() => {\n if (\"$ref\" in property && property.inline) {\n return {};\n }\n if (\"properties\" in property) {\n const obj = {};\n for (const propName in property.properties) {\n obj[propName] = freshProperty(property.properties[propName]);\n }\n return obj;\n }\n if (\"type\" in property) {\n switch (property.type) {\n case \"boolean\":\n return false;\n case \"array\":\n return [];\n case \"object\":\n return {};\n }\n }\n return null;\n })();\n return value;\n};\nexport const freshItem = (description) => {\n const item = {};\n for (const propName in description.properties) {\n const value = freshProperty(description.properties[propName]);\n if (value !== null) {\n item[propName] = value;\n }\n }\n if (description.freshItem) {\n Object.assign(item, description.freshItem);\n }\n return item;\n};\n","\"use strict\";\nimport { checkForEmptiness } from \"./checkForEmptiness.mjs\";\nimport { evaluateCondition } from \"./evaluateCondition.mjs\";\nexport const getMissingProperties = (what, schema, required) => {\n const missingProps = [];\n if (Array.isArray(required)) {\n for (const propName of required) {\n const isMissing = checkForEmptiness(schema.properties[propName], propName, what);\n if (isMissing) {\n missingProps.push(propName);\n }\n }\n } else {\n for (const propName in required) {\n const requiredProp = required[propName];\n if (typeof requiredProp === \"boolean\") {\n if (!requiredProp) {\n continue;\n }\n }\n if (typeof requiredProp === \"object\") {\n const result = evaluateCondition(what, requiredProp);\n if (!result.satisfied) {\n continue;\n }\n }\n const isMissing = checkForEmptiness(\n schema.properties[propName],\n propName,\n what\n );\n if (isMissing) {\n missingProps.push(propName);\n }\n }\n }\n return missingProps;\n};\n","\"use strict\";\nexport const getReferenceProperty = (property) => {\n const search = [\n \"items\" in property ? property.items : null,\n \"additionalProperties\" in property && typeof property.additionalProperties === \"object\" ? property.additionalProperties : null,\n property\n ];\n const reference = search.find((_) => !!_);\n return reference && \"$ref\" in reference ? reference : null;\n};\n","\"use strict\";\nexport const getValueFromPath = (object, path) => {\n const fragments = path.split(\".\");\n return fragments.reduce((a, fragment) => {\n return a && a[fragment];\n }, object);\n};\n","\"use strict\";\nexport const defaultRequestTransformer = async (url, payload, params) => {\n const request2 = {\n url,\n params\n };\n if (payload) {\n if (params.method === \"GET\" || params.method === \"HEAD\") {\n request2.url += `?${new URLSearchParams(payload)}`;\n } else {\n request2.params.body = params.headers?.[\"content-type\"]?.startsWith(\"application/json\") ? JSON.stringify(payload) : payload;\n }\n }\n return request2;\n};\nexport const defaultResponseTransformer = async (response) => {\n const result = response;\n result.data = await response.text();\n if (response.headers.get(\"content-type\")?.startsWith(\"application/json\")) {\n result.data = JSON.parse(String(result.data));\n }\n return result;\n};\nexport const request = async (url, payload, config = {}) => {\n const {\n requestTransformer = defaultRequestTransformer,\n responseTransformer = defaultResponseTransformer,\n params = {\n method: payload ? \"POST\" : \"GET\",\n headers: payload ? {\n \"content-type\": \"application/json\"\n } : {}\n }\n } = config;\n const transformedRequest = await requestTransformer(url, payload, params);\n const response = await fetch(transformedRequest.url, transformedRequest.params);\n const transformedResponse = await responseTransformer(response);\n return transformedResponse;\n};\n","\"use strict\";\nexport const isReference = (property) => {\n return \"items\" in property ? \"$ref\" in property.items : \"$ref\" in property;\n};\n","\"use strict\";\nimport { evaluateCondition } from \"./evaluateCondition.mjs\";\nexport const isRequired = (propName, required, subject) => {\n if (Array.isArray(required)) {\n return required.includes(propName);\n }\n if (!(propName in required)) {\n return false;\n }\n const requiredProp = required[propName];\n if (typeof requiredProp !== \"object\") {\n return requiredProp;\n }\n return evaluateCondition(subject, requiredProp).satisfied;\n};\n","export default {}","'use strict';\n\nconst TypedArrayPrototypeGetSymbolToStringTag = (() => {\n const g = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype), Symbol.toStringTag).get;\n return (value) => g.call(value);\n})();\nfunction isUint8Array(value) {\n return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Uint8Array';\n}\nfunction isAnyArrayBuffer(value) {\n return (typeof value === 'object' &&\n value != null &&\n Symbol.toStringTag in value &&\n (value[Symbol.toStringTag] === 'ArrayBuffer' ||\n value[Symbol.toStringTag] === 'SharedArrayBuffer'));\n}\nfunction isRegExp(regexp) {\n return regexp instanceof RegExp || Object.prototype.toString.call(regexp) === '[object RegExp]';\n}\nfunction isMap(value) {\n return (typeof value === 'object' &&\n value != null &&\n Symbol.toStringTag in value &&\n value[Symbol.toStringTag] === 'Map');\n}\nfunction isDate(date) {\n return date instanceof Date || Object.prototype.toString.call(date) === '[object Date]';\n}\nfunction defaultInspect(x, _options) {\n return JSON.stringify(x, (k, v) => {\n if (typeof v === 'bigint') {\n return { $numberLong: `${v}` };\n }\n else if (isMap(v)) {\n return Object.fromEntries(v);\n }\n return v;\n });\n}\nfunction getStylizeFunction(options) {\n const stylizeExists = options != null &&\n typeof options === 'object' &&\n 'stylize' in options &&\n typeof options.stylize === 'function';\n if (stylizeExists) {\n return options.stylize;\n }\n}\n\nconst BSON_MAJOR_VERSION = 6;\nconst BSON_VERSION_SYMBOL = Symbol.for('@@mdb.bson.version');\nconst BSON_INT32_MAX = 0x7fffffff;\nconst BSON_INT32_MIN = -2147483648;\nconst BSON_INT64_MAX = Math.pow(2, 63) - 1;\nconst BSON_INT64_MIN = -Math.pow(2, 63);\nconst JS_INT_MAX = Math.pow(2, 53);\nconst JS_INT_MIN = -Math.pow(2, 53);\nconst BSON_DATA_NUMBER = 1;\nconst BSON_DATA_STRING = 2;\nconst BSON_DATA_OBJECT = 3;\nconst BSON_DATA_ARRAY = 4;\nconst BSON_DATA_BINARY = 5;\nconst BSON_DATA_UNDEFINED = 6;\nconst BSON_DATA_OID = 7;\nconst BSON_DATA_BOOLEAN = 8;\nconst BSON_DATA_DATE = 9;\nconst BSON_DATA_NULL = 10;\nconst BSON_DATA_REGEXP = 11;\nconst BSON_DATA_DBPOINTER = 12;\nconst BSON_DATA_CODE = 13;\nconst BSON_DATA_SYMBOL = 14;\nconst BSON_DATA_CODE_W_SCOPE = 15;\nconst BSON_DATA_INT = 16;\nconst BSON_DATA_TIMESTAMP = 17;\nconst BSON_DATA_LONG = 18;\nconst BSON_DATA_DECIMAL128 = 19;\nconst BSON_DATA_MIN_KEY = 0xff;\nconst BSON_DATA_MAX_KEY = 0x7f;\nconst BSON_BINARY_SUBTYPE_DEFAULT = 0;\nconst BSON_BINARY_SUBTYPE_UUID_NEW = 4;\nconst BSONType = Object.freeze({\n double: 1,\n string: 2,\n object: 3,\n array: 4,\n binData: 5,\n undefined: 6,\n objectId: 7,\n bool: 8,\n date: 9,\n null: 10,\n regex: 11,\n dbPointer: 12,\n javascript: 13,\n symbol: 14,\n javascriptWithScope: 15,\n int: 16,\n timestamp: 17,\n long: 18,\n decimal: 19,\n minKey: -1,\n maxKey: 127\n});\n\nclass BSONError extends Error {\n get bsonError() {\n return true;\n }\n get name() {\n return 'BSONError';\n }\n constructor(message, options) {\n super(message, options);\n }\n static isBSONError(value) {\n return (value != null &&\n typeof value === 'object' &&\n 'bsonError' in value &&\n value.bsonError === true &&\n 'name' in value &&\n 'message' in value &&\n 'stack' in value);\n }\n}\nclass BSONVersionError extends BSONError {\n get name() {\n return 'BSONVersionError';\n }\n constructor() {\n super(`Unsupported BSON version, bson types must be from bson ${BSON_MAJOR_VERSION}.x.x`);\n }\n}\nclass BSONRuntimeError extends BSONError {\n get name() {\n return 'BSONRuntimeError';\n }\n constructor(message) {\n super(message);\n }\n}\nclass BSONOffsetError extends BSONError {\n get name() {\n return 'BSONOffsetError';\n }\n constructor(message, offset, options) {\n super(`${message}. offset: ${offset}`, options);\n this.offset = offset;\n }\n}\n\nlet TextDecoderFatal;\nlet TextDecoderNonFatal;\nfunction parseUtf8(buffer, start, end, fatal) {\n if (fatal) {\n TextDecoderFatal ??= new TextDecoder('utf8', { fatal: true });\n try {\n return TextDecoderFatal.decode(buffer.subarray(start, end));\n }\n catch (cause) {\n throw new BSONError('Invalid UTF-8 string in BSON document', { cause });\n }\n }\n TextDecoderNonFatal ??= new TextDecoder('utf8', { fatal: false });\n return TextDecoderNonFatal.decode(buffer.subarray(start, end));\n}\n\nfunction tryReadBasicLatin(uint8array, start, end) {\n if (uint8array.length === 0) {\n return '';\n }\n const stringByteLength = end - start;\n if (stringByteLength === 0) {\n return '';\n }\n if (stringByteLength > 20) {\n return null;\n }\n if (stringByteLength === 1 && uint8array[start] < 128) {\n return String.fromCharCode(uint8array[start]);\n }\n if (stringByteLength === 2 && uint8array[start] < 128 && uint8array[start + 1] < 128) {\n return String.fromCharCode(uint8array[start]) + String.fromCharCode(uint8array[start + 1]);\n }\n if (stringByteLength === 3 &&\n uint8array[start] < 128 &&\n uint8array[start + 1] < 128 &&\n uint8array[start + 2] < 128) {\n return (String.fromCharCode(uint8array[start]) +\n String.fromCharCode(uint8array[start + 1]) +\n String.fromCharCode(uint8array[start + 2]));\n }\n const latinBytes = [];\n for (let i = start; i < end; i++) {\n const byte = uint8array[i];\n if (byte > 127) {\n return null;\n }\n latinBytes.push(byte);\n }\n return String.fromCharCode(...latinBytes);\n}\nfunction tryWriteBasicLatin(destination, source, offset) {\n if (source.length === 0)\n return 0;\n if (source.length > 25)\n return null;\n if (destination.length - offset < source.length)\n return null;\n for (let charOffset = 0, destinationOffset = offset; charOffset < source.length; charOffset++, destinationOffset++) {\n const char = source.charCodeAt(charOffset);\n if (char > 127)\n return null;\n destination[destinationOffset] = char;\n }\n return source.length;\n}\n\nfunction nodejsMathRandomBytes(byteLength) {\n return nodeJsByteUtils.fromNumberArray(Array.from({ length: byteLength }, () => Math.floor(Math.random() * 256)));\n}\nconst nodejsRandomBytes = (() => {\n try {\n return require('crypto').randomBytes;\n }\n catch {\n return nodejsMathRandomBytes;\n }\n})();\nconst nodeJsByteUtils = {\n toLocalBufferType(potentialBuffer) {\n if (Buffer.isBuffer(potentialBuffer)) {\n return potentialBuffer;\n }\n if (ArrayBuffer.isView(potentialBuffer)) {\n return Buffer.from(potentialBuffer.buffer, potentialBuffer.byteOffset, potentialBuffer.byteLength);\n }\n const stringTag = potentialBuffer?.[Symbol.toStringTag] ?? Object.prototype.toString.call(potentialBuffer);\n if (stringTag === 'ArrayBuffer' ||\n stringTag === 'SharedArrayBuffer' ||\n stringTag === '[object ArrayBuffer]' ||\n stringTag === '[object SharedArrayBuffer]') {\n return Buffer.from(potentialBuffer);\n }\n throw new BSONError(`Cannot create Buffer from the passed potentialBuffer.`);\n },\n allocate(size) {\n return Buffer.alloc(size);\n },\n allocateUnsafe(size) {\n return Buffer.allocUnsafe(size);\n },\n equals(a, b) {\n return nodeJsByteUtils.toLocalBufferType(a).equals(b);\n },\n fromNumberArray(array) {\n return Buffer.from(array);\n },\n fromBase64(base64) {\n return Buffer.from(base64, 'base64');\n },\n toBase64(buffer) {\n return nodeJsByteUtils.toLocalBufferType(buffer).toString('base64');\n },\n fromISO88591(codePoints) {\n return Buffer.from(codePoints, 'binary');\n },\n toISO88591(buffer) {\n return nodeJsByteUtils.toLocalBufferType(buffer).toString('binary');\n },\n fromHex(hex) {\n return Buffer.from(hex, 'hex');\n },\n toHex(buffer) {\n return nodeJsByteUtils.toLocalBufferType(buffer).toString('hex');\n },\n toUTF8(buffer, start, end, fatal) {\n const basicLatin = end - start <= 20 ? tryReadBasicLatin(buffer, start, end) : null;\n if (basicLatin != null) {\n return basicLatin;\n }\n const string = nodeJsByteUtils.toLocalBufferType(buffer).toString('utf8', start, end);\n if (fatal) {\n for (let i = 0; i < string.length; i++) {\n if (string.charCodeAt(i) === 0xfffd) {\n parseUtf8(buffer, start, end, true);\n break;\n }\n }\n }\n return string;\n },\n utf8ByteLength(input) {\n return Buffer.byteLength(input, 'utf8');\n },\n encodeUTF8Into(buffer, source, byteOffset) {\n const latinBytesWritten = tryWriteBasicLatin(buffer, source, byteOffset);\n if (latinBytesWritten != null) {\n return latinBytesWritten;\n }\n return nodeJsByteUtils.toLocalBufferType(buffer).write(source, byteOffset, undefined, 'utf8');\n },\n randomBytes: nodejsRandomBytes,\n swap32(buffer) {\n return nodeJsByteUtils.toLocalBufferType(buffer).swap32();\n }\n};\n\nfunction isReactNative() {\n const { navigator } = globalThis;\n return typeof navigator === 'object' && navigator.product === 'ReactNative';\n}\nfunction webMathRandomBytes(byteLength) {\n if (byteLength < 0) {\n throw new RangeError(`The argument 'byteLength' is invalid. Received ${byteLength}`);\n }\n return webByteUtils.fromNumberArray(Array.from({ length: byteLength }, () => Math.floor(Math.random() * 256)));\n}\nconst webRandomBytes = (() => {\n const { crypto } = globalThis;\n if (crypto != null && typeof crypto.getRandomValues === 'function') {\n return (byteLength) => {\n return crypto.getRandomValues(webByteUtils.allocate(byteLength));\n };\n }\n else {\n if (isReactNative()) {\n const { console } = globalThis;\n console?.warn?.('BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.');\n }\n return webMathRandomBytes;\n }\n})();\nconst HEX_DIGIT = /(\\d|[a-f])/i;\nconst webByteUtils = {\n toLocalBufferType(potentialUint8array) {\n const stringTag = potentialUint8array?.[Symbol.toStringTag] ??\n Object.prototype.toString.call(potentialUint8array);\n if (stringTag === 'Uint8Array') {\n return potentialUint8array;\n }\n if (ArrayBuffer.isView(potentialUint8array)) {\n return new Uint8Array(potentialUint8array.buffer.slice(potentialUint8array.byteOffset, potentialUint8array.byteOffset + potentialUint8array.byteLength));\n }\n if (stringTag === 'ArrayBuffer' ||\n stringTag === 'SharedArrayBuffer' ||\n stringTag === '[object ArrayBuffer]' ||\n stringTag === '[object SharedArrayBuffer]') {\n return new Uint8Array(potentialUint8array);\n }\n throw new BSONError(`Cannot make a Uint8Array from passed potentialBuffer.`);\n },\n allocate(size) {\n if (typeof size !== 'number') {\n throw new TypeError(`The \"size\" argument must be of type number. Received ${String(size)}`);\n }\n return new Uint8Array(size);\n },\n allocateUnsafe(size) {\n return webByteUtils.allocate(size);\n },\n equals(a, b) {\n if (a.byteLength !== b.byteLength) {\n return false;\n }\n for (let i = 0; i < a.byteLength; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n return true;\n },\n fromNumberArray(array) {\n return Uint8Array.from(array);\n },\n fromBase64(base64) {\n return Uint8Array.from(atob(base64), c => c.charCodeAt(0));\n },\n toBase64(uint8array) {\n return btoa(webByteUtils.toISO88591(uint8array));\n },\n fromISO88591(codePoints) {\n return Uint8Array.from(codePoints, c => c.charCodeAt(0) & 0xff);\n },\n toISO88591(uint8array) {\n return Array.from(Uint16Array.from(uint8array), b => String.fromCharCode(b)).join('');\n },\n fromHex(hex) {\n const evenLengthHex = hex.length % 2 === 0 ? hex : hex.slice(0, hex.length - 1);\n const buffer = [];\n for (let i = 0; i < evenLengthHex.length; i += 2) {\n const firstDigit = evenLengthHex[i];\n const secondDigit = evenLengthHex[i + 1];\n if (!HEX_DIGIT.test(firstDigit)) {\n break;\n }\n if (!HEX_DIGIT.test(secondDigit)) {\n break;\n }\n const hexDigit = Number.parseInt(`${firstDigit}${secondDigit}`, 16);\n buffer.push(hexDigit);\n }\n return Uint8Array.from(buffer);\n },\n toHex(uint8array) {\n return Array.from(uint8array, byte => byte.toString(16).padStart(2, '0')).join('');\n },\n toUTF8(uint8array, start, end, fatal) {\n const basicLatin = end - start <= 20 ? tryReadBasicLatin(uint8array, start, end) : null;\n if (basicLatin != null) {\n return basicLatin;\n }\n return parseUtf8(uint8array, start, end, fatal);\n },\n utf8ByteLength(input) {\n return new TextEncoder().encode(input).byteLength;\n },\n encodeUTF8Into(uint8array, source, byteOffset) {\n const bytes = new TextEncoder().encode(source);\n uint8array.set(bytes, byteOffset);\n return bytes.byteLength;\n },\n randomBytes: webRandomBytes,\n swap32(buffer) {\n if (buffer.length % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits');\n }\n for (let i = 0; i < buffer.length; i += 4) {\n const byte0 = buffer[i];\n const byte1 = buffer[i + 1];\n const byte2 = buffer[i + 2];\n const byte3 = buffer[i + 3];\n buffer[i] = byte3;\n buffer[i + 1] = byte2;\n buffer[i + 2] = byte1;\n buffer[i + 3] = byte0;\n }\n return buffer;\n }\n};\n\nconst hasGlobalBuffer = typeof Buffer === 'function' && Buffer.prototype?._isBuffer !== true;\nconst ByteUtils = hasGlobalBuffer ? nodeJsByteUtils : webByteUtils;\n\nclass BSONValue {\n get [BSON_VERSION_SYMBOL]() {\n return BSON_MAJOR_VERSION;\n }\n [Symbol.for('nodejs.util.inspect.custom')](depth, options, inspect) {\n return this.inspect(depth, options, inspect);\n }\n}\n\nconst FLOAT = new Float64Array(1);\nconst FLOAT_BYTES = new Uint8Array(FLOAT.buffer, 0, 8);\nFLOAT[0] = -1;\nconst isBigEndian = FLOAT_BYTES[7] === 0;\nconst NumberUtils = {\n isBigEndian,\n getNonnegativeInt32LE(source, offset) {\n if (source[offset + 3] > 127) {\n throw new RangeError(`Size cannot be negative at offset: ${offset}`);\n }\n return (source[offset] |\n (source[offset + 1] << 8) |\n (source[offset + 2] << 16) |\n (source[offset + 3] << 24));\n },\n getInt32LE(source, offset) {\n return (source[offset] |\n (source[offset + 1] << 8) |\n (source[offset + 2] << 16) |\n (source[offset + 3] << 24));\n },\n getUint32LE(source, offset) {\n return (source[offset] +\n source[offset + 1] * 256 +\n source[offset + 2] * 65536 +\n source[offset + 3] * 16777216);\n },\n getUint32BE(source, offset) {\n return (source[offset + 3] +\n source[offset + 2] * 256 +\n source[offset + 1] * 65536 +\n source[offset] * 16777216);\n },\n getBigInt64LE(source, offset) {\n const hi = BigInt(source[offset + 4] +\n source[offset + 5] * 256 +\n source[offset + 6] * 65536 +\n (source[offset + 7] << 24));\n const lo = BigInt(source[offset] +\n source[offset + 1] * 256 +\n source[offset + 2] * 65536 +\n source[offset + 3] * 16777216);\n return (hi << BigInt(32)) + lo;\n },\n getFloat64LE: isBigEndian\n ? (source, offset) => {\n FLOAT_BYTES[7] = source[offset];\n FLOAT_BYTES[6] = source[offset + 1];\n FLOAT_BYTES[5] = source[offset + 2];\n FLOAT_BYTES[4] = source[offset + 3];\n FLOAT_BYTES[3] = source[offset + 4];\n FLOAT_BYTES[2] = source[offset + 5];\n FLOAT_BYTES[1] = source[offset + 6];\n FLOAT_BYTES[0] = source[offset + 7];\n return FLOAT[0];\n }\n : (source, offset) => {\n FLOAT_BYTES[0] = source[offset];\n FLOAT_BYTES[1] = source[offset + 1];\n FLOAT_BYTES[2] = source[offset + 2];\n FLOAT_BYTES[3] = source[offset + 3];\n FLOAT_BYTES[4] = source[offset + 4];\n FLOAT_BYTES[5] = source[offset + 5];\n FLOAT_BYTES[6] = source[offset + 6];\n FLOAT_BYTES[7] = source[offset + 7];\n return FLOAT[0];\n },\n setInt32BE(destination, offset, value) {\n destination[offset + 3] = value;\n value >>>= 8;\n destination[offset + 2] = value;\n value >>>= 8;\n destination[offset + 1] = value;\n value >>>= 8;\n destination[offset] = value;\n return 4;\n },\n setInt32LE(destination, offset, value) {\n destination[offset] = value;\n value >>>= 8;\n destination[offset + 1] = value;\n value >>>= 8;\n destination[offset + 2] = value;\n value >>>= 8;\n destination[offset + 3] = value;\n return 4;\n },\n setBigInt64LE(destination, offset, value) {\n const mask32bits = BigInt(0xffff_ffff);\n let lo = Number(value & mask32bits);\n destination[offset] = lo;\n lo >>= 8;\n destination[offset + 1] = lo;\n lo >>= 8;\n destination[offset + 2] = lo;\n lo >>= 8;\n destination[offset + 3] = lo;\n let hi = Number((value >> BigInt(32)) & mask32bits);\n destination[offset + 4] = hi;\n hi >>= 8;\n destination[offset + 5] = hi;\n hi >>= 8;\n destination[offset + 6] = hi;\n hi >>= 8;\n destination[offset + 7] = hi;\n return 8;\n },\n setFloat64LE: isBigEndian\n ? (destination, offset, value) => {\n FLOAT[0] = value;\n destination[offset] = FLOAT_BYTES[7];\n destination[offset + 1] = FLOAT_BYTES[6];\n destination[offset + 2] = FLOAT_BYTES[5];\n destination[offset + 3] = FLOAT_BYTES[4];\n destination[offset + 4] = FLOAT_BYTES[3];\n destination[offset + 5] = FLOAT_BYTES[2];\n destination[offset + 6] = FLOAT_BYTES[1];\n destination[offset + 7] = FLOAT_BYTES[0];\n return 8;\n }\n : (destination, offset, value) => {\n FLOAT[0] = value;\n destination[offset] = FLOAT_BYTES[0];\n destination[offset + 1] = FLOAT_BYTES[1];\n destination[offset + 2] = FLOAT_BYTES[2];\n destination[offset + 3] = FLOAT_BYTES[3];\n destination[offset + 4] = FLOAT_BYTES[4];\n destination[offset + 5] = FLOAT_BYTES[5];\n destination[offset + 6] = FLOAT_BYTES[6];\n destination[offset + 7] = FLOAT_BYTES[7];\n return 8;\n }\n};\n\nclass Binary extends BSONValue {\n get _bsontype() {\n return 'Binary';\n }\n constructor(buffer, subType) {\n super();\n if (!(buffer == null) &&\n typeof buffer === 'string' &&\n !ArrayBuffer.isView(buffer) &&\n !isAnyArrayBuffer(buffer) &&\n !Array.isArray(buffer)) {\n throw new BSONError('Binary can only be constructed from Uint8Array or number[]');\n }\n this.sub_type = subType ?? Binary.BSON_BINARY_SUBTYPE_DEFAULT;\n if (buffer == null) {\n this.buffer = ByteUtils.allocate(Binary.BUFFER_SIZE);\n this.position = 0;\n }\n else {\n this.buffer = Array.isArray(buffer)\n ? ByteUtils.fromNumberArray(buffer)\n : ByteUtils.toLocalBufferType(buffer);\n this.position = this.buffer.byteLength;\n }\n }\n put(byteValue) {\n if (typeof byteValue === 'string' && byteValue.length !== 1) {\n throw new BSONError('only accepts single character String');\n }\n else if (typeof byteValue !== 'number' && byteValue.length !== 1)\n throw new BSONError('only accepts single character Uint8Array or Array');\n let decodedByte;\n if (typeof byteValue === 'string') {\n decodedByte = byteValue.charCodeAt(0);\n }\n else if (typeof byteValue === 'number') {\n decodedByte = byteValue;\n }\n else {\n decodedByte = byteValue[0];\n }\n if (decodedByte < 0 || decodedByte > 255) {\n throw new BSONError('only accepts number in a valid unsigned byte range 0-255');\n }\n if (this.buffer.byteLength > this.position) {\n this.buffer[this.position++] = decodedByte;\n }\n else {\n const newSpace = ByteUtils.allocate(Binary.BUFFER_SIZE + this.buffer.length);\n newSpace.set(this.buffer, 0);\n this.buffer = newSpace;\n this.buffer[this.position++] = decodedByte;\n }\n }\n write(sequence, offset) {\n offset = typeof offset === 'number' ? offset : this.position;\n if (this.buffer.byteLength < offset + sequence.length) {\n const newSpace = ByteUtils.allocate(this.buffer.byteLength + sequence.length);\n newSpace.set(this.buffer, 0);\n this.buffer = newSpace;\n }\n if (ArrayBuffer.isView(sequence)) {\n this.buffer.set(ByteUtils.toLocalBufferType(sequence), offset);\n this.position =\n offset + sequence.byteLength > this.position ? offset + sequence.length : this.position;\n }\n else if (typeof sequence === 'string') {\n throw new BSONError('input cannot be string');\n }\n }\n read(position, length) {\n length = length && length > 0 ? length : this.position;\n const end = position + length;\n return this.buffer.subarray(position, end > this.position ? this.position : end);\n }\n value() {\n return this.buffer.length === this.position\n ? this.buffer\n : this.buffer.subarray(0, this.position);\n }\n length() {\n return this.position;\n }\n toJSON() {\n return ByteUtils.toBase64(this.buffer.subarray(0, this.position));\n }\n toString(encoding) {\n if (encoding === 'hex')\n return ByteUtils.toHex(this.buffer.subarray(0, this.position));\n if (encoding === 'base64')\n return ByteUtils.toBase64(this.buffer.subarray(0, this.position));\n if (encoding === 'utf8' || encoding === 'utf-8')\n return ByteUtils.toUTF8(this.buffer, 0, this.position, false);\n return ByteUtils.toUTF8(this.buffer, 0, this.position, false);\n }\n toExtendedJSON(options) {\n options = options || {};\n if (this.sub_type === Binary.SUBTYPE_VECTOR) {\n validateBinaryVector(this);\n }\n const base64String = ByteUtils.toBase64(this.buffer);\n const subType = Number(this.sub_type).toString(16);\n if (options.legacy) {\n return {\n $binary: base64String,\n $type: subType.length === 1 ? '0' + subType : subType\n };\n }\n return {\n $binary: {\n base64: base64String,\n subType: subType.length === 1 ? '0' + subType : subType\n }\n };\n }\n toUUID() {\n if (this.sub_type === Binary.SUBTYPE_UUID) {\n return new UUID(this.buffer.subarray(0, this.position));\n }\n throw new BSONError(`Binary sub_type \"${this.sub_type}\" is not supported for converting to UUID. Only \"${Binary.SUBTYPE_UUID}\" is currently supported.`);\n }\n static createFromHexString(hex, subType) {\n return new Binary(ByteUtils.fromHex(hex), subType);\n }\n static createFromBase64(base64, subType) {\n return new Binary(ByteUtils.fromBase64(base64), subType);\n }\n static fromExtendedJSON(doc, options) {\n options = options || {};\n let data;\n let type;\n if ('$binary' in doc) {\n if (options.legacy && typeof doc.$binary === 'string' && '$type' in doc) {\n type = doc.$type ? parseInt(doc.$type, 16) : 0;\n data = ByteUtils.fromBase64(doc.$binary);\n }\n else {\n if (typeof doc.$binary !== 'string') {\n type = doc.$binary.subType ? parseInt(doc.$binary.subType, 16) : 0;\n data = ByteUtils.fromBase64(doc.$binary.base64);\n }\n }\n }\n else if ('$uuid' in doc) {\n type = 4;\n data = UUID.bytesFromString(doc.$uuid);\n }\n if (!data) {\n throw new BSONError(`Unexpected Binary Extended JSON format ${JSON.stringify(doc)}`);\n }\n return type === BSON_BINARY_SUBTYPE_UUID_NEW ? new UUID(data) : new Binary(data, type);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n const base64 = ByteUtils.toBase64(this.buffer.subarray(0, this.position));\n const base64Arg = inspect(base64, options);\n const subTypeArg = inspect(this.sub_type, options);\n return `Binary.createFromBase64(${base64Arg}, ${subTypeArg})`;\n }\n toInt8Array() {\n if (this.sub_type !== Binary.SUBTYPE_VECTOR) {\n throw new BSONError('Binary sub_type is not Vector');\n }\n if (this.buffer[0] !== Binary.VECTOR_TYPE.Int8) {\n throw new BSONError('Binary datatype field is not Int8');\n }\n return new Int8Array(this.buffer.buffer.slice(this.buffer.byteOffset + 2, this.buffer.byteOffset + this.position));\n }\n toFloat32Array() {\n if (this.sub_type !== Binary.SUBTYPE_VECTOR) {\n throw new BSONError('Binary sub_type is not Vector');\n }\n if (this.buffer[0] !== Binary.VECTOR_TYPE.Float32) {\n throw new BSONError('Binary datatype field is not Float32');\n }\n const floatBytes = new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset + 2, this.buffer.byteOffset + this.position));\n if (NumberUtils.isBigEndian)\n ByteUtils.swap32(floatBytes);\n return new Float32Array(floatBytes.buffer);\n }\n toPackedBits() {\n if (this.sub_type !== Binary.SUBTYPE_VECTOR) {\n throw new BSONError('Binary sub_type is not Vector');\n }\n if (this.buffer[0] !== Binary.VECTOR_TYPE.PackedBit) {\n throw new BSONError('Binary datatype field is not packed bit');\n }\n return new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset + 2, this.buffer.byteOffset + this.position));\n }\n toBits() {\n if (this.sub_type !== Binary.SUBTYPE_VECTOR) {\n throw new BSONError('Binary sub_type is not Vector');\n }\n if (this.buffer[0] !== Binary.VECTOR_TYPE.PackedBit) {\n throw new BSONError('Binary datatype field is not packed bit');\n }\n const byteCount = this.length() - 2;\n const bitCount = byteCount * 8 - this.buffer[1];\n const bits = new Int8Array(bitCount);\n for (let bitOffset = 0; bitOffset < bits.length; bitOffset++) {\n const byteOffset = (bitOffset / 8) | 0;\n const byte = this.buffer[byteOffset + 2];\n const shift = 7 - (bitOffset % 8);\n const bit = (byte >> shift) & 1;\n bits[bitOffset] = bit;\n }\n return bits;\n }\n static fromInt8Array(array) {\n const buffer = ByteUtils.allocate(array.byteLength + 2);\n buffer[0] = Binary.VECTOR_TYPE.Int8;\n buffer[1] = 0;\n const intBytes = new Uint8Array(array.buffer, array.byteOffset, array.byteLength);\n buffer.set(intBytes, 2);\n return new this(buffer, this.SUBTYPE_VECTOR);\n }\n static fromFloat32Array(array) {\n const binaryBytes = ByteUtils.allocate(array.byteLength + 2);\n binaryBytes[0] = Binary.VECTOR_TYPE.Float32;\n binaryBytes[1] = 0;\n const floatBytes = new Uint8Array(array.buffer, array.byteOffset, array.byteLength);\n binaryBytes.set(floatBytes, 2);\n if (NumberUtils.isBigEndian)\n ByteUtils.swap32(new Uint8Array(binaryBytes.buffer, 2));\n return new this(binaryBytes, this.SUBTYPE_VECTOR);\n }\n static fromPackedBits(array, padding = 0) {\n const buffer = ByteUtils.allocate(array.byteLength + 2);\n buffer[0] = Binary.VECTOR_TYPE.PackedBit;\n buffer[1] = padding;\n buffer.set(array, 2);\n return new this(buffer, this.SUBTYPE_VECTOR);\n }\n static fromBits(bits) {\n const byteLength = (bits.length + 7) >>> 3;\n const bytes = new Uint8Array(byteLength + 2);\n bytes[0] = Binary.VECTOR_TYPE.PackedBit;\n const remainder = bits.length % 8;\n bytes[1] = remainder === 0 ? 0 : 8 - remainder;\n for (let bitOffset = 0; bitOffset < bits.length; bitOffset++) {\n const byteOffset = bitOffset >>> 3;\n const bit = bits[bitOffset];\n if (bit !== 0 && bit !== 1) {\n throw new BSONError(`Invalid bit value at ${bitOffset}: must be 0 or 1, found ${bits[bitOffset]}`);\n }\n if (bit === 0)\n continue;\n const shift = 7 - (bitOffset % 8);\n bytes[byteOffset + 2] |= bit << shift;\n }\n return new this(bytes, Binary.SUBTYPE_VECTOR);\n }\n}\nBinary.BSON_BINARY_SUBTYPE_DEFAULT = 0;\nBinary.BUFFER_SIZE = 256;\nBinary.SUBTYPE_DEFAULT = 0;\nBinary.SUBTYPE_FUNCTION = 1;\nBinary.SUBTYPE_BYTE_ARRAY = 2;\nBinary.SUBTYPE_UUID_OLD = 3;\nBinary.SUBTYPE_UUID = 4;\nBinary.SUBTYPE_MD5 = 5;\nBinary.SUBTYPE_ENCRYPTED = 6;\nBinary.SUBTYPE_COLUMN = 7;\nBinary.SUBTYPE_SENSITIVE = 8;\nBinary.SUBTYPE_VECTOR = 9;\nBinary.SUBTYPE_USER_DEFINED = 128;\nBinary.VECTOR_TYPE = Object.freeze({\n Int8: 0x03,\n Float32: 0x27,\n PackedBit: 0x10\n});\nfunction validateBinaryVector(vector) {\n if (vector.sub_type !== Binary.SUBTYPE_VECTOR)\n return;\n const size = vector.position;\n const datatype = vector.buffer[0];\n const padding = vector.buffer[1];\n if ((datatype === Binary.VECTOR_TYPE.Float32 || datatype === Binary.VECTOR_TYPE.Int8) &&\n padding !== 0) {\n throw new BSONError('Invalid Vector: padding must be zero for int8 and float32 vectors');\n }\n if (datatype === Binary.VECTOR_TYPE.PackedBit && padding !== 0 && size === 2) {\n throw new BSONError('Invalid Vector: padding must be zero for packed bit vectors that are empty');\n }\n if (datatype === Binary.VECTOR_TYPE.PackedBit && padding > 7) {\n throw new BSONError(`Invalid Vector: padding must be a value between 0 and 7. found: ${padding}`);\n }\n}\nconst UUID_BYTE_LENGTH = 16;\nconst UUID_WITHOUT_DASHES = /^[0-9A-F]{32}$/i;\nconst UUID_WITH_DASHES = /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;\nclass UUID extends Binary {\n constructor(input) {\n let bytes;\n if (input == null) {\n bytes = UUID.generate();\n }\n else if (input instanceof UUID) {\n bytes = ByteUtils.toLocalBufferType(new Uint8Array(input.buffer));\n }\n else if (ArrayBuffer.isView(input) && input.byteLength === UUID_BYTE_LENGTH) {\n bytes = ByteUtils.toLocalBufferType(input);\n }\n else if (typeof input === 'string') {\n bytes = UUID.bytesFromString(input);\n }\n else {\n throw new BSONError('Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).');\n }\n super(bytes, BSON_BINARY_SUBTYPE_UUID_NEW);\n }\n get id() {\n return this.buffer;\n }\n set id(value) {\n this.buffer = value;\n }\n toHexString(includeDashes = true) {\n if (includeDashes) {\n return [\n ByteUtils.toHex(this.buffer.subarray(0, 4)),\n ByteUtils.toHex(this.buffer.subarray(4, 6)),\n ByteUtils.toHex(this.buffer.subarray(6, 8)),\n ByteUtils.toHex(this.buffer.subarray(8, 10)),\n ByteUtils.toHex(this.buffer.subarray(10, 16))\n ].join('-');\n }\n return ByteUtils.toHex(this.buffer);\n }\n toString(encoding) {\n if (encoding === 'hex')\n return ByteUtils.toHex(this.id);\n if (encoding === 'base64')\n return ByteUtils.toBase64(this.id);\n return this.toHexString();\n }\n toJSON() {\n return this.toHexString();\n }\n equals(otherId) {\n if (!otherId) {\n return false;\n }\n if (otherId instanceof UUID) {\n return ByteUtils.equals(otherId.id, this.id);\n }\n try {\n return ByteUtils.equals(new UUID(otherId).id, this.id);\n }\n catch {\n return false;\n }\n }\n toBinary() {\n return new Binary(this.id, Binary.SUBTYPE_UUID);\n }\n static generate() {\n const bytes = ByteUtils.randomBytes(UUID_BYTE_LENGTH);\n bytes[6] = (bytes[6] & 0x0f) | 0x40;\n bytes[8] = (bytes[8] & 0x3f) | 0x80;\n return bytes;\n }\n static isValid(input) {\n if (!input) {\n return false;\n }\n if (typeof input === 'string') {\n return UUID.isValidUUIDString(input);\n }\n if (isUint8Array(input)) {\n return input.byteLength === UUID_BYTE_LENGTH;\n }\n return (input._bsontype === 'Binary' &&\n input.sub_type === this.SUBTYPE_UUID &&\n input.buffer.byteLength === 16);\n }\n static createFromHexString(hexString) {\n const buffer = UUID.bytesFromString(hexString);\n return new UUID(buffer);\n }\n static createFromBase64(base64) {\n return new UUID(ByteUtils.fromBase64(base64));\n }\n static bytesFromString(representation) {\n if (!UUID.isValidUUIDString(representation)) {\n throw new BSONError('UUID string representation must be 32 hex digits or canonical hyphenated representation');\n }\n return ByteUtils.fromHex(representation.replace(/-/g, ''));\n }\n static isValidUUIDString(representation) {\n return UUID_WITHOUT_DASHES.test(representation) || UUID_WITH_DASHES.test(representation);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n return `new UUID(${inspect(this.toHexString(), options)})`;\n }\n}\n\nclass Code extends BSONValue {\n get _bsontype() {\n return 'Code';\n }\n constructor(code, scope) {\n super();\n this.code = code.toString();\n this.scope = scope ?? null;\n }\n toJSON() {\n if (this.scope != null) {\n return { code: this.code, scope: this.scope };\n }\n return { code: this.code };\n }\n toExtendedJSON() {\n if (this.scope) {\n return { $code: this.code, $scope: this.scope };\n }\n return { $code: this.code };\n }\n static fromExtendedJSON(doc) {\n return new Code(doc.$code, doc.$scope);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n let parametersString = inspect(this.code, options);\n const multiLineFn = parametersString.includes('\\n');\n if (this.scope != null) {\n parametersString += `,${multiLineFn ? '\\n' : ' '}${inspect(this.scope, options)}`;\n }\n const endingNewline = multiLineFn && this.scope === null;\n return `new Code(${multiLineFn ? '\\n' : ''}${parametersString}${endingNewline ? '\\n' : ''})`;\n }\n}\n\nfunction isDBRefLike(value) {\n return (value != null &&\n typeof value === 'object' &&\n '$id' in value &&\n value.$id != null &&\n '$ref' in value &&\n typeof value.$ref === 'string' &&\n (!('$db' in value) || ('$db' in value && typeof value.$db === 'string')));\n}\nclass DBRef extends BSONValue {\n get _bsontype() {\n return 'DBRef';\n }\n constructor(collection, oid, db, fields) {\n super();\n const parts = collection.split('.');\n if (parts.length === 2) {\n db = parts.shift();\n collection = parts.shift();\n }\n this.collection = collection;\n this.oid = oid;\n this.db = db;\n this.fields = fields || {};\n }\n get namespace() {\n return this.collection;\n }\n set namespace(value) {\n this.collection = value;\n }\n toJSON() {\n const o = Object.assign({\n $ref: this.collection,\n $id: this.oid\n }, this.fields);\n if (this.db != null)\n o.$db = this.db;\n return o;\n }\n toExtendedJSON(options) {\n options = options || {};\n let o = {\n $ref: this.collection,\n $id: this.oid\n };\n if (options.legacy) {\n return o;\n }\n if (this.db)\n o.$db = this.db;\n o = Object.assign(o, this.fields);\n return o;\n }\n static fromExtendedJSON(doc) {\n const copy = Object.assign({}, doc);\n delete copy.$ref;\n delete copy.$id;\n delete copy.$db;\n return new DBRef(doc.$ref, doc.$id, doc.$db, copy);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n const args = [\n inspect(this.namespace, options),\n inspect(this.oid, options),\n ...(this.db ? [inspect(this.db, options)] : []),\n ...(Object.keys(this.fields).length > 0 ? [inspect(this.fields, options)] : [])\n ];\n args[1] = inspect === defaultInspect ? `new ObjectId(${args[1]})` : args[1];\n return `new DBRef(${args.join(', ')})`;\n }\n}\n\nfunction removeLeadingZerosAndExplicitPlus(str) {\n if (str === '') {\n return str;\n }\n let startIndex = 0;\n const isNegative = str[startIndex] === '-';\n const isExplicitlyPositive = str[startIndex] === '+';\n if (isExplicitlyPositive || isNegative) {\n startIndex += 1;\n }\n let foundInsignificantZero = false;\n for (; startIndex < str.length && str[startIndex] === '0'; ++startIndex) {\n foundInsignificantZero = true;\n }\n if (!foundInsignificantZero) {\n return isExplicitlyPositive ? str.slice(1) : str;\n }\n return `${isNegative ? '-' : ''}${str.length === startIndex ? '0' : str.slice(startIndex)}`;\n}\nfunction validateStringCharacters(str, radix) {\n radix = radix ?? 10;\n const validCharacters = '0123456789abcdefghijklmnopqrstuvwxyz'.slice(0, radix);\n const regex = new RegExp(`[^-+${validCharacters}]`, 'i');\n return regex.test(str) ? false : str;\n}\n\nlet wasm = undefined;\ntry {\n wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11])), {}).exports;\n}\ncatch {\n}\nconst TWO_PWR_16_DBL = 1 << 16;\nconst TWO_PWR_24_DBL = 1 << 24;\nconst TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;\nconst TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;\nconst TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;\nconst INT_CACHE = {};\nconst UINT_CACHE = {};\nconst MAX_INT64_STRING_LENGTH = 20;\nconst DECIMAL_REG_EX = /^(\\+?0|(\\+|-)?[1-9][0-9]*)$/;\nclass Long extends BSONValue {\n get _bsontype() {\n return 'Long';\n }\n get __isLong__() {\n return true;\n }\n constructor(lowOrValue = 0, highOrUnsigned, unsigned) {\n super();\n const unsignedBool = typeof highOrUnsigned === 'boolean' ? highOrUnsigned : Boolean(unsigned);\n const high = typeof highOrUnsigned === 'number' ? highOrUnsigned : 0;\n const res = typeof lowOrValue === 'string'\n ? Long.fromString(lowOrValue, unsignedBool)\n : typeof lowOrValue === 'bigint'\n ? Long.fromBigInt(lowOrValue, unsignedBool)\n : { low: lowOrValue | 0, high: high | 0, unsigned: unsignedBool };\n this.low = res.low;\n this.high = res.high;\n this.unsigned = res.unsigned;\n }\n static fromBits(lowBits, highBits, unsigned) {\n return new Long(lowBits, highBits, unsigned);\n }\n static fromInt(value, unsigned) {\n let obj, cachedObj, cache;\n if (unsigned) {\n value >>>= 0;\n if ((cache = 0 <= value && value < 256)) {\n cachedObj = UINT_CACHE[value];\n if (cachedObj)\n return cachedObj;\n }\n obj = Long.fromBits(value, (value | 0) < 0 ? -1 : 0, true);\n if (cache)\n UINT_CACHE[value] = obj;\n return obj;\n }\n else {\n value |= 0;\n if ((cache = -128 <= value && value < 128)) {\n cachedObj = INT_CACHE[value];\n if (cachedObj)\n return cachedObj;\n }\n obj = Long.fromBits(value, value < 0 ? -1 : 0, false);\n if (cache)\n INT_CACHE[value] = obj;\n return obj;\n }\n }\n static fromNumber(value, unsigned) {\n if (isNaN(value))\n return unsigned ? Long.UZERO : Long.ZERO;\n if (unsigned) {\n if (value < 0)\n return Long.UZERO;\n if (value >= TWO_PWR_64_DBL)\n return Long.MAX_UNSIGNED_VALUE;\n }\n else {\n if (value <= -9223372036854776e3)\n return Long.MIN_VALUE;\n if (value + 1 >= TWO_PWR_63_DBL)\n return Long.MAX_VALUE;\n }\n if (value < 0)\n return Long.fromNumber(-value, unsigned).neg();\n return Long.fromBits(value % TWO_PWR_32_DBL | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);\n }\n static fromBigInt(value, unsigned) {\n const FROM_BIGINT_BIT_MASK = BigInt(0xffffffff);\n const FROM_BIGINT_BIT_SHIFT = BigInt(32);\n return new Long(Number(value & FROM_BIGINT_BIT_MASK), Number((value >> FROM_BIGINT_BIT_SHIFT) & FROM_BIGINT_BIT_MASK), unsigned);\n }\n static _fromString(str, unsigned, radix) {\n if (str.length === 0)\n throw new BSONError('empty string');\n if (radix < 2 || 36 < radix)\n throw new BSONError('radix');\n let p;\n if ((p = str.indexOf('-')) > 0)\n throw new BSONError('interior hyphen');\n else if (p === 0) {\n return Long._fromString(str.substring(1), unsigned, radix).neg();\n }\n const radixToPower = Long.fromNumber(Math.pow(radix, 8));\n let result = Long.ZERO;\n for (let i = 0; i < str.length; i += 8) {\n const size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);\n if (size < 8) {\n const power = Long.fromNumber(Math.pow(radix, size));\n result = result.mul(power).add(Long.fromNumber(value));\n }\n else {\n result = result.mul(radixToPower);\n result = result.add(Long.fromNumber(value));\n }\n }\n result.unsigned = unsigned;\n return result;\n }\n static fromStringStrict(str, unsignedOrRadix, radix) {\n let unsigned = false;\n if (typeof unsignedOrRadix === 'number') {\n (radix = unsignedOrRadix), (unsignedOrRadix = false);\n }\n else {\n unsigned = !!unsignedOrRadix;\n }\n radix ??= 10;\n if (str.trim() !== str) {\n throw new BSONError(`Input: '${str}' contains leading and/or trailing whitespace`);\n }\n if (!validateStringCharacters(str, radix)) {\n throw new BSONError(`Input: '${str}' contains invalid characters for radix: ${radix}`);\n }\n const cleanedStr = removeLeadingZerosAndExplicitPlus(str);\n const result = Long._fromString(cleanedStr, unsigned, radix);\n if (result.toString(radix).toLowerCase() !== cleanedStr.toLowerCase()) {\n throw new BSONError(`Input: ${str} is not representable as ${result.unsigned ? 'an unsigned' : 'a signed'} 64-bit Long ${radix != null ? `with radix: ${radix}` : ''}`);\n }\n return result;\n }\n static fromString(str, unsignedOrRadix, radix) {\n let unsigned = false;\n if (typeof unsignedOrRadix === 'number') {\n (radix = unsignedOrRadix), (unsignedOrRadix = false);\n }\n else {\n unsigned = !!unsignedOrRadix;\n }\n radix ??= 10;\n if (str === 'NaN' && radix < 24) {\n return Long.ZERO;\n }\n else if ((str === 'Infinity' || str === '+Infinity' || str === '-Infinity') && radix < 35) {\n return Long.ZERO;\n }\n return Long._fromString(str, unsigned, radix);\n }\n static fromBytes(bytes, unsigned, le) {\n return le ? Long.fromBytesLE(bytes, unsigned) : Long.fromBytesBE(bytes, unsigned);\n }\n static fromBytesLE(bytes, unsigned) {\n return new Long(bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[3] << 24), bytes[4] | (bytes[5] << 8) | (bytes[6] << 16) | (bytes[7] << 24), unsigned);\n }\n static fromBytesBE(bytes, unsigned) {\n return new Long((bytes[4] << 24) | (bytes[5] << 16) | (bytes[6] << 8) | bytes[7], (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3], unsigned);\n }\n static isLong(value) {\n return (value != null &&\n typeof value === 'object' &&\n '__isLong__' in value &&\n value.__isLong__ === true);\n }\n static fromValue(val, unsigned) {\n if (typeof val === 'number')\n return Long.fromNumber(val, unsigned);\n if (typeof val === 'string')\n return Long.fromString(val, unsigned);\n return Long.fromBits(val.low, val.high, typeof unsigned === 'boolean' ? unsigned : val.unsigned);\n }\n add(addend) {\n if (!Long.isLong(addend))\n addend = Long.fromValue(addend);\n const a48 = this.high >>> 16;\n const a32 = this.high & 0xffff;\n const a16 = this.low >>> 16;\n const a00 = this.low & 0xffff;\n const b48 = addend.high >>> 16;\n const b32 = addend.high & 0xffff;\n const b16 = addend.low >>> 16;\n const b00 = addend.low & 0xffff;\n let c48 = 0, c32 = 0, c16 = 0, c00 = 0;\n c00 += a00 + b00;\n c16 += c00 >>> 16;\n c00 &= 0xffff;\n c16 += a16 + b16;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c32 += a32 + b32;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c48 += a48 + b48;\n c48 &= 0xffff;\n return Long.fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);\n }\n and(other) {\n if (!Long.isLong(other))\n other = Long.fromValue(other);\n return Long.fromBits(this.low & other.low, this.high & other.high, this.unsigned);\n }\n compare(other) {\n if (!Long.isLong(other))\n other = Long.fromValue(other);\n if (this.eq(other))\n return 0;\n const thisNeg = this.isNegative(), otherNeg = other.isNegative();\n if (thisNeg && !otherNeg)\n return -1;\n if (!thisNeg && otherNeg)\n return 1;\n if (!this.unsigned)\n return this.sub(other).isNegative() ? -1 : 1;\n return other.high >>> 0 > this.high >>> 0 ||\n (other.high === this.high && other.low >>> 0 > this.low >>> 0)\n ? -1\n : 1;\n }\n comp(other) {\n return this.compare(other);\n }\n divide(divisor) {\n if (!Long.isLong(divisor))\n divisor = Long.fromValue(divisor);\n if (divisor.isZero())\n throw new BSONError('division by zero');\n if (wasm) {\n if (!this.unsigned &&\n this.high === -2147483648 &&\n divisor.low === -1 &&\n divisor.high === -1) {\n return this;\n }\n const low = (this.unsigned ? wasm.div_u : wasm.div_s)(this.low, this.high, divisor.low, divisor.high);\n return Long.fromBits(low, wasm.get_high(), this.unsigned);\n }\n if (this.isZero())\n return this.unsigned ? Long.UZERO : Long.ZERO;\n let approx, rem, res;\n if (!this.unsigned) {\n if (this.eq(Long.MIN_VALUE)) {\n if (divisor.eq(Long.ONE) || divisor.eq(Long.NEG_ONE))\n return Long.MIN_VALUE;\n else if (divisor.eq(Long.MIN_VALUE))\n return Long.ONE;\n else {\n const halfThis = this.shr(1);\n approx = halfThis.div(divisor).shl(1);\n if (approx.eq(Long.ZERO)) {\n return divisor.isNegative() ? Long.ONE : Long.NEG_ONE;\n }\n else {\n rem = this.sub(divisor.mul(approx));\n res = approx.add(rem.div(divisor));\n return res;\n }\n }\n }\n else if (divisor.eq(Long.MIN_VALUE))\n return this.unsigned ? Long.UZERO : Long.ZERO;\n if (this.isNegative()) {\n if (divisor.isNegative())\n return this.neg().div(divisor.neg());\n return this.neg().div(divisor).neg();\n }\n else if (divisor.isNegative())\n return this.div(divisor.neg()).neg();\n res = Long.ZERO;\n }\n else {\n if (!divisor.unsigned)\n divisor = divisor.toUnsigned();\n if (divisor.gt(this))\n return Long.UZERO;\n if (divisor.gt(this.shru(1)))\n return Long.UONE;\n res = Long.UZERO;\n }\n rem = this;\n while (rem.gte(divisor)) {\n approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));\n const log2 = Math.ceil(Math.log(approx) / Math.LN2);\n const delta = log2 <= 48 ? 1 : Math.pow(2, log2 - 48);\n let approxRes = Long.fromNumber(approx);\n let approxRem = approxRes.mul(divisor);\n while (approxRem.isNegative() || approxRem.gt(rem)) {\n approx -= delta;\n approxRes = Long.fromNumber(approx, this.unsigned);\n approxRem = approxRes.mul(divisor);\n }\n if (approxRes.isZero())\n approxRes = Long.ONE;\n res = res.add(approxRes);\n rem = rem.sub(approxRem);\n }\n return res;\n }\n div(divisor) {\n return this.divide(divisor);\n }\n equals(other) {\n if (!Long.isLong(other))\n other = Long.fromValue(other);\n if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)\n return false;\n return this.high === other.high && this.low === other.low;\n }\n eq(other) {\n return this.equals(other);\n }\n getHighBits() {\n return this.high;\n }\n getHighBitsUnsigned() {\n return this.high >>> 0;\n }\n getLowBits() {\n return this.low;\n }\n getLowBitsUnsigned() {\n return this.low >>> 0;\n }\n getNumBitsAbs() {\n if (this.isNegative()) {\n return this.eq(Long.MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();\n }\n const val = this.high !== 0 ? this.high : this.low;\n let bit;\n for (bit = 31; bit > 0; bit--)\n if ((val & (1 << bit)) !== 0)\n break;\n return this.high !== 0 ? bit + 33 : bit + 1;\n }\n greaterThan(other) {\n return this.comp(other) > 0;\n }\n gt(other) {\n return this.greaterThan(other);\n }\n greaterThanOrEqual(other) {\n return this.comp(other) >= 0;\n }\n gte(other) {\n return this.greaterThanOrEqual(other);\n }\n ge(other) {\n return this.greaterThanOrEqual(other);\n }\n isEven() {\n return (this.low & 1) === 0;\n }\n isNegative() {\n return !this.unsigned && this.high < 0;\n }\n isOdd() {\n return (this.low & 1) === 1;\n }\n isPositive() {\n return this.unsigned || this.high >= 0;\n }\n isZero() {\n return this.high === 0 && this.low === 0;\n }\n lessThan(other) {\n return this.comp(other) < 0;\n }\n lt(other) {\n return this.lessThan(other);\n }\n lessThanOrEqual(other) {\n return this.comp(other) <= 0;\n }\n lte(other) {\n return this.lessThanOrEqual(other);\n }\n modulo(divisor) {\n if (!Long.isLong(divisor))\n divisor = Long.fromValue(divisor);\n if (wasm) {\n const low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(this.low, this.high, divisor.low, divisor.high);\n return Long.fromBits(low, wasm.get_high(), this.unsigned);\n }\n return this.sub(this.div(divisor).mul(divisor));\n }\n mod(divisor) {\n return this.modulo(divisor);\n }\n rem(divisor) {\n return this.modulo(divisor);\n }\n multiply(multiplier) {\n if (this.isZero())\n return Long.ZERO;\n if (!Long.isLong(multiplier))\n multiplier = Long.fromValue(multiplier);\n if (wasm) {\n const low = wasm.mul(this.low, this.high, multiplier.low, multiplier.high);\n return Long.fromBits(low, wasm.get_high(), this.unsigned);\n }\n if (multiplier.isZero())\n return Long.ZERO;\n if (this.eq(Long.MIN_VALUE))\n return multiplier.isOdd() ? Long.MIN_VALUE : Long.ZERO;\n if (multiplier.eq(Long.MIN_VALUE))\n return this.isOdd() ? Long.MIN_VALUE : Long.ZERO;\n if (this.isNegative()) {\n if (multiplier.isNegative())\n return this.neg().mul(multiplier.neg());\n else\n return this.neg().mul(multiplier).neg();\n }\n else if (multiplier.isNegative())\n return this.mul(multiplier.neg()).neg();\n if (this.lt(Long.TWO_PWR_24) && multiplier.lt(Long.TWO_PWR_24))\n return Long.fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);\n const a48 = this.high >>> 16;\n const a32 = this.high & 0xffff;\n const a16 = this.low >>> 16;\n const a00 = this.low & 0xffff;\n const b48 = multiplier.high >>> 16;\n const b32 = multiplier.high & 0xffff;\n const b16 = multiplier.low >>> 16;\n const b00 = multiplier.low & 0xffff;\n let c48 = 0, c32 = 0, c16 = 0, c00 = 0;\n c00 += a00 * b00;\n c16 += c00 >>> 16;\n c00 &= 0xffff;\n c16 += a16 * b00;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c16 += a00 * b16;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c32 += a32 * b00;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c32 += a16 * b16;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c32 += a00 * b32;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;\n c48 &= 0xffff;\n return Long.fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);\n }\n mul(multiplier) {\n return this.multiply(multiplier);\n }\n negate() {\n if (!this.unsigned && this.eq(Long.MIN_VALUE))\n return Long.MIN_VALUE;\n return this.not().add(Long.ONE);\n }\n neg() {\n return this.negate();\n }\n not() {\n return Long.fromBits(~this.low, ~this.high, this.unsigned);\n }\n notEquals(other) {\n return !this.equals(other);\n }\n neq(other) {\n return this.notEquals(other);\n }\n ne(other) {\n return this.notEquals(other);\n }\n or(other) {\n if (!Long.isLong(other))\n other = Long.fromValue(other);\n return Long.fromBits(this.low | other.low, this.high | other.high, this.unsigned);\n }\n shiftLeft(numBits) {\n if (Long.isLong(numBits))\n numBits = numBits.toInt();\n if ((numBits &= 63) === 0)\n return this;\n else if (numBits < 32)\n return Long.fromBits(this.low << numBits, (this.high << numBits) | (this.low >>> (32 - numBits)), this.unsigned);\n else\n return Long.fromBits(0, this.low << (numBits - 32), this.unsigned);\n }\n shl(numBits) {\n return this.shiftLeft(numBits);\n }\n shiftRight(numBits) {\n if (Long.isLong(numBits))\n numBits = numBits.toInt();\n if ((numBits &= 63) === 0)\n return this;\n else if (numBits < 32)\n return Long.fromBits((this.low >>> numBits) | (this.high << (32 - numBits)), this.high >> numBits, this.unsigned);\n else\n return Long.fromBits(this.high >> (numBits - 32), this.high >= 0 ? 0 : -1, this.unsigned);\n }\n shr(numBits) {\n return this.shiftRight(numBits);\n }\n shiftRightUnsigned(numBits) {\n if (Long.isLong(numBits))\n numBits = numBits.toInt();\n numBits &= 63;\n if (numBits === 0)\n return this;\n else {\n const high = this.high;\n if (numBits < 32) {\n const low = this.low;\n return Long.fromBits((low >>> numBits) | (high << (32 - numBits)), high >>> numBits, this.unsigned);\n }\n else if (numBits === 32)\n return Long.fromBits(high, 0, this.unsigned);\n else\n return Long.fromBits(high >>> (numBits - 32), 0, this.unsigned);\n }\n }\n shr_u(numBits) {\n return this.shiftRightUnsigned(numBits);\n }\n shru(numBits) {\n return this.shiftRightUnsigned(numBits);\n }\n subtract(subtrahend) {\n if (!Long.isLong(subtrahend))\n subtrahend = Long.fromValue(subtrahend);\n return this.add(subtrahend.neg());\n }\n sub(subtrahend) {\n return this.subtract(subtrahend);\n }\n toInt() {\n return this.unsigned ? this.low >>> 0 : this.low;\n }\n toNumber() {\n if (this.unsigned)\n return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);\n return this.high * TWO_PWR_32_DBL + (this.low >>> 0);\n }\n toBigInt() {\n return BigInt(this.toString());\n }\n toBytes(le) {\n return le ? this.toBytesLE() : this.toBytesBE();\n }\n toBytesLE() {\n const hi = this.high, lo = this.low;\n return [\n lo & 0xff,\n (lo >>> 8) & 0xff,\n (lo >>> 16) & 0xff,\n lo >>> 24,\n hi & 0xff,\n (hi >>> 8) & 0xff,\n (hi >>> 16) & 0xff,\n hi >>> 24\n ];\n }\n toBytesBE() {\n const hi = this.high, lo = this.low;\n return [\n hi >>> 24,\n (hi >>> 16) & 0xff,\n (hi >>> 8) & 0xff,\n hi & 0xff,\n lo >>> 24,\n (lo >>> 16) & 0xff,\n (lo >>> 8) & 0xff,\n lo & 0xff\n ];\n }\n toSigned() {\n if (!this.unsigned)\n return this;\n return Long.fromBits(this.low, this.high, false);\n }\n toString(radix) {\n radix = radix || 10;\n if (radix < 2 || 36 < radix)\n throw new BSONError('radix');\n if (this.isZero())\n return '0';\n if (this.isNegative()) {\n if (this.eq(Long.MIN_VALUE)) {\n const radixLong = Long.fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);\n return div.toString(radix) + rem1.toInt().toString(radix);\n }\n else\n return '-' + this.neg().toString(radix);\n }\n const radixToPower = Long.fromNumber(Math.pow(radix, 6), this.unsigned);\n let rem = this;\n let result = '';\n while (true) {\n const remDiv = rem.div(radixToPower);\n const intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0;\n let digits = intval.toString(radix);\n rem = remDiv;\n if (rem.isZero()) {\n return digits + result;\n }\n else {\n while (digits.length < 6)\n digits = '0' + digits;\n result = '' + digits + result;\n }\n }\n }\n toUnsigned() {\n if (this.unsigned)\n return this;\n return Long.fromBits(this.low, this.high, true);\n }\n xor(other) {\n if (!Long.isLong(other))\n other = Long.fromValue(other);\n return Long.fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);\n }\n eqz() {\n return this.isZero();\n }\n le(other) {\n return this.lessThanOrEqual(other);\n }\n toExtendedJSON(options) {\n if (options && options.relaxed)\n return this.toNumber();\n return { $numberLong: this.toString() };\n }\n static fromExtendedJSON(doc, options) {\n const { useBigInt64 = false, relaxed = true } = { ...options };\n if (doc.$numberLong.length > MAX_INT64_STRING_LENGTH) {\n throw new BSONError('$numberLong string is too long');\n }\n if (!DECIMAL_REG_EX.test(doc.$numberLong)) {\n throw new BSONError(`$numberLong string \"${doc.$numberLong}\" is in an invalid format`);\n }\n if (useBigInt64) {\n const bigIntResult = BigInt(doc.$numberLong);\n return BigInt.asIntN(64, bigIntResult);\n }\n const longResult = Long.fromString(doc.$numberLong);\n if (relaxed) {\n return longResult.toNumber();\n }\n return longResult;\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n const longVal = inspect(this.toString(), options);\n const unsignedVal = this.unsigned ? `, ${inspect(this.unsigned, options)}` : '';\n return `new Long(${longVal}${unsignedVal})`;\n }\n}\nLong.TWO_PWR_24 = Long.fromInt(TWO_PWR_24_DBL);\nLong.MAX_UNSIGNED_VALUE = Long.fromBits(0xffffffff | 0, 0xffffffff | 0, true);\nLong.ZERO = Long.fromInt(0);\nLong.UZERO = Long.fromInt(0, true);\nLong.ONE = Long.fromInt(1);\nLong.UONE = Long.fromInt(1, true);\nLong.NEG_ONE = Long.fromInt(-1);\nLong.MAX_VALUE = Long.fromBits(0xffffffff | 0, 0x7fffffff | 0, false);\nLong.MIN_VALUE = Long.fromBits(0, 0x80000000 | 0, false);\n\nconst PARSE_STRING_REGEXP = /^(\\+|-)?(\\d+|(\\d*\\.\\d*))?(E|e)?([-+])?(\\d+)?$/;\nconst PARSE_INF_REGEXP = /^(\\+|-)?(Infinity|inf)$/i;\nconst PARSE_NAN_REGEXP = /^(\\+|-)?NaN$/i;\nconst EXPONENT_MAX = 6111;\nconst EXPONENT_MIN = -6176;\nconst EXPONENT_BIAS = 6176;\nconst MAX_DIGITS = 34;\nconst NAN_BUFFER = ByteUtils.fromNumberArray([\n 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\n].reverse());\nconst INF_NEGATIVE_BUFFER = ByteUtils.fromNumberArray([\n 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\n].reverse());\nconst INF_POSITIVE_BUFFER = ByteUtils.fromNumberArray([\n 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\n].reverse());\nconst EXPONENT_REGEX = /^([-+])?(\\d+)?$/;\nconst COMBINATION_MASK = 0x1f;\nconst EXPONENT_MASK = 0x3fff;\nconst COMBINATION_INFINITY = 30;\nconst COMBINATION_NAN = 31;\nfunction isDigit(value) {\n return !isNaN(parseInt(value, 10));\n}\nfunction divideu128(value) {\n const DIVISOR = Long.fromNumber(1000 * 1000 * 1000);\n let _rem = Long.fromNumber(0);\n if (!value.parts[0] && !value.parts[1] && !value.parts[2] && !value.parts[3]) {\n return { quotient: value, rem: _rem };\n }\n for (let i = 0; i <= 3; i++) {\n _rem = _rem.shiftLeft(32);\n _rem = _rem.add(new Long(value.parts[i], 0));\n value.parts[i] = _rem.div(DIVISOR).low;\n _rem = _rem.modulo(DIVISOR);\n }\n return { quotient: value, rem: _rem };\n}\nfunction multiply64x2(left, right) {\n if (!left && !right) {\n return { high: Long.fromNumber(0), low: Long.fromNumber(0) };\n }\n const leftHigh = left.shiftRightUnsigned(32);\n const leftLow = new Long(left.getLowBits(), 0);\n const rightHigh = right.shiftRightUnsigned(32);\n const rightLow = new Long(right.getLowBits(), 0);\n let productHigh = leftHigh.multiply(rightHigh);\n let productMid = leftHigh.multiply(rightLow);\n const productMid2 = leftLow.multiply(rightHigh);\n let productLow = leftLow.multiply(rightLow);\n productHigh = productHigh.add(productMid.shiftRightUnsigned(32));\n productMid = new Long(productMid.getLowBits(), 0)\n .add(productMid2)\n .add(productLow.shiftRightUnsigned(32));\n productHigh = productHigh.add(productMid.shiftRightUnsigned(32));\n productLow = productMid.shiftLeft(32).add(new Long(productLow.getLowBits(), 0));\n return { high: productHigh, low: productLow };\n}\nfunction lessThan(left, right) {\n const uhleft = left.high >>> 0;\n const uhright = right.high >>> 0;\n if (uhleft < uhright) {\n return true;\n }\n else if (uhleft === uhright) {\n const ulleft = left.low >>> 0;\n const ulright = right.low >>> 0;\n if (ulleft < ulright)\n return true;\n }\n return false;\n}\nfunction invalidErr(string, message) {\n throw new BSONError(`\"${string}\" is not a valid Decimal128 string - ${message}`);\n}\nclass Decimal128 extends BSONValue {\n get _bsontype() {\n return 'Decimal128';\n }\n constructor(bytes) {\n super();\n if (typeof bytes === 'string') {\n this.bytes = Decimal128.fromString(bytes).bytes;\n }\n else if (bytes instanceof Uint8Array || isUint8Array(bytes)) {\n if (bytes.byteLength !== 16) {\n throw new BSONError('Decimal128 must take a Buffer of 16 bytes');\n }\n this.bytes = bytes;\n }\n else {\n throw new BSONError('Decimal128 must take a Buffer or string');\n }\n }\n static fromString(representation) {\n return Decimal128._fromString(representation, { allowRounding: false });\n }\n static fromStringWithRounding(representation) {\n return Decimal128._fromString(representation, { allowRounding: true });\n }\n static _fromString(representation, options) {\n let isNegative = false;\n let sawSign = false;\n let sawRadix = false;\n let foundNonZero = false;\n let significantDigits = 0;\n let nDigitsRead = 0;\n let nDigits = 0;\n let radixPosition = 0;\n let firstNonZero = 0;\n const digits = [0];\n let nDigitsStored = 0;\n let digitsInsert = 0;\n let lastDigit = 0;\n let exponent = 0;\n let significandHigh = new Long(0, 0);\n let significandLow = new Long(0, 0);\n let biasedExponent = 0;\n let index = 0;\n if (representation.length >= 7000) {\n throw new BSONError('' + representation + ' not a valid Decimal128 string');\n }\n const stringMatch = representation.match(PARSE_STRING_REGEXP);\n const infMatch = representation.match(PARSE_INF_REGEXP);\n const nanMatch = representation.match(PARSE_NAN_REGEXP);\n if ((!stringMatch && !infMatch && !nanMatch) || representation.length === 0) {\n throw new BSONError('' + representation + ' not a valid Decimal128 string');\n }\n if (stringMatch) {\n const unsignedNumber = stringMatch[2];\n const e = stringMatch[4];\n const expSign = stringMatch[5];\n const expNumber = stringMatch[6];\n if (e && expNumber === undefined)\n invalidErr(representation, 'missing exponent power');\n if (e && unsignedNumber === undefined)\n invalidErr(representation, 'missing exponent base');\n if (e === undefined && (expSign || expNumber)) {\n invalidErr(representation, 'missing e before exponent');\n }\n }\n if (representation[index] === '+' || representation[index] === '-') {\n sawSign = true;\n isNegative = representation[index++] === '-';\n }\n if (!isDigit(representation[index]) && representation[index] !== '.') {\n if (representation[index] === 'i' || representation[index] === 'I') {\n return new Decimal128(isNegative ? INF_NEGATIVE_BUFFER : INF_POSITIVE_BUFFER);\n }\n else if (representation[index] === 'N') {\n return new Decimal128(NAN_BUFFER);\n }\n }\n while (isDigit(representation[index]) || representation[index] === '.') {\n if (representation[index] === '.') {\n if (sawRadix)\n invalidErr(representation, 'contains multiple periods');\n sawRadix = true;\n index = index + 1;\n continue;\n }\n if (nDigitsStored < MAX_DIGITS) {\n if (representation[index] !== '0' || foundNonZero) {\n if (!foundNonZero) {\n firstNonZero = nDigitsRead;\n }\n foundNonZero = true;\n digits[digitsInsert++] = parseInt(representation[index], 10);\n nDigitsStored = nDigitsStored + 1;\n }\n }\n if (foundNonZero)\n nDigits = nDigits + 1;\n if (sawRadix)\n radixPosition = radixPosition + 1;\n nDigitsRead = nDigitsRead + 1;\n index = index + 1;\n }\n if (sawRadix && !nDigitsRead)\n throw new BSONError('' + representation + ' not a valid Decimal128 string');\n if (representation[index] === 'e' || representation[index] === 'E') {\n const match = representation.substr(++index).match(EXPONENT_REGEX);\n if (!match || !match[2])\n return new Decimal128(NAN_BUFFER);\n exponent = parseInt(match[0], 10);\n index = index + match[0].length;\n }\n if (representation[index])\n return new Decimal128(NAN_BUFFER);\n if (!nDigitsStored) {\n digits[0] = 0;\n nDigits = 1;\n nDigitsStored = 1;\n significantDigits = 0;\n }\n else {\n lastDigit = nDigitsStored - 1;\n significantDigits = nDigits;\n if (significantDigits !== 1) {\n while (representation[firstNonZero + significantDigits - 1 + Number(sawSign) + Number(sawRadix)] === '0') {\n significantDigits = significantDigits - 1;\n }\n }\n }\n if (exponent <= radixPosition && radixPosition > exponent + (1 << 14)) {\n exponent = EXPONENT_MIN;\n }\n else {\n exponent = exponent - radixPosition;\n }\n while (exponent > EXPONENT_MAX) {\n lastDigit = lastDigit + 1;\n if (lastDigit >= MAX_DIGITS) {\n if (significantDigits === 0) {\n exponent = EXPONENT_MAX;\n break;\n }\n invalidErr(representation, 'overflow');\n }\n exponent = exponent - 1;\n }\n if (options.allowRounding) {\n while (exponent < EXPONENT_MIN || nDigitsStored < nDigits) {\n if (lastDigit === 0 && significantDigits < nDigitsStored) {\n exponent = EXPONENT_MIN;\n significantDigits = 0;\n break;\n }\n if (nDigitsStored < nDigits) {\n nDigits = nDigits - 1;\n }\n else {\n lastDigit = lastDigit - 1;\n }\n if (exponent < EXPONENT_MAX) {\n exponent = exponent + 1;\n }\n else {\n const digitsString = digits.join('');\n if (digitsString.match(/^0+$/)) {\n exponent = EXPONENT_MAX;\n break;\n }\n invalidErr(representation, 'overflow');\n }\n }\n if (lastDigit + 1 < significantDigits) {\n let endOfString = nDigitsRead;\n if (sawRadix) {\n firstNonZero = firstNonZero + 1;\n endOfString = endOfString + 1;\n }\n if (sawSign) {\n firstNonZero = firstNonZero + 1;\n endOfString = endOfString + 1;\n }\n const roundDigit = parseInt(representation[firstNonZero + lastDigit + 1], 10);\n let roundBit = 0;\n if (roundDigit >= 5) {\n roundBit = 1;\n if (roundDigit === 5) {\n roundBit = digits[lastDigit] % 2 === 1 ? 1 : 0;\n for (let i = firstNonZero + lastDigit + 2; i < endOfString; i++) {\n if (parseInt(representation[i], 10)) {\n roundBit = 1;\n break;\n }\n }\n }\n }\n if (roundBit) {\n let dIdx = lastDigit;\n for (; dIdx >= 0; dIdx--) {\n if (++digits[dIdx] > 9) {\n digits[dIdx] = 0;\n if (dIdx === 0) {\n if (exponent < EXPONENT_MAX) {\n exponent = exponent + 1;\n digits[dIdx] = 1;\n }\n else {\n return new Decimal128(isNegative ? INF_NEGATIVE_BUFFER : INF_POSITIVE_BUFFER);\n }\n }\n }\n else {\n break;\n }\n }\n }\n }\n }\n else {\n while (exponent < EXPONENT_MIN || nDigitsStored < nDigits) {\n if (lastDigit === 0) {\n if (significantDigits === 0) {\n exponent = EXPONENT_MIN;\n break;\n }\n invalidErr(representation, 'exponent underflow');\n }\n if (nDigitsStored < nDigits) {\n if (representation[nDigits - 1 + Number(sawSign) + Number(sawRadix)] !== '0' &&\n significantDigits !== 0) {\n invalidErr(representation, 'inexact rounding');\n }\n nDigits = nDigits - 1;\n }\n else {\n if (digits[lastDigit] !== 0) {\n invalidErr(representation, 'inexact rounding');\n }\n lastDigit = lastDigit - 1;\n }\n if (exponent < EXPONENT_MAX) {\n exponent = exponent + 1;\n }\n else {\n invalidErr(representation, 'overflow');\n }\n }\n if (lastDigit + 1 < significantDigits) {\n if (sawRadix) {\n firstNonZero = firstNonZero + 1;\n }\n if (sawSign) {\n firstNonZero = firstNonZero + 1;\n }\n const roundDigit = parseInt(representation[firstNonZero + lastDigit + 1], 10);\n if (roundDigit !== 0) {\n invalidErr(representation, 'inexact rounding');\n }\n }\n }\n significandHigh = Long.fromNumber(0);\n significandLow = Long.fromNumber(0);\n if (significantDigits === 0) {\n significandHigh = Long.fromNumber(0);\n significandLow = Long.fromNumber(0);\n }\n else if (lastDigit < 17) {\n let dIdx = 0;\n significandLow = Long.fromNumber(digits[dIdx++]);\n significandHigh = new Long(0, 0);\n for (; dIdx <= lastDigit; dIdx++) {\n significandLow = significandLow.multiply(Long.fromNumber(10));\n significandLow = significandLow.add(Long.fromNumber(digits[dIdx]));\n }\n }\n else {\n let dIdx = 0;\n significandHigh = Long.fromNumber(digits[dIdx++]);\n for (; dIdx <= lastDigit - 17; dIdx++) {\n significandHigh = significandHigh.multiply(Long.fromNumber(10));\n significandHigh = significandHigh.add(Long.fromNumber(digits[dIdx]));\n }\n significandLow = Long.fromNumber(digits[dIdx++]);\n for (; dIdx <= lastDigit; dIdx++) {\n significandLow = significandLow.multiply(Long.fromNumber(10));\n significandLow = significandLow.add(Long.fromNumber(digits[dIdx]));\n }\n }\n const significand = multiply64x2(significandHigh, Long.fromString('100000000000000000'));\n significand.low = significand.low.add(significandLow);\n if (lessThan(significand.low, significandLow)) {\n significand.high = significand.high.add(Long.fromNumber(1));\n }\n biasedExponent = exponent + EXPONENT_BIAS;\n const dec = { low: Long.fromNumber(0), high: Long.fromNumber(0) };\n if (significand.high.shiftRightUnsigned(49).and(Long.fromNumber(1)).equals(Long.fromNumber(1))) {\n dec.high = dec.high.or(Long.fromNumber(0x3).shiftLeft(61));\n dec.high = dec.high.or(Long.fromNumber(biasedExponent).and(Long.fromNumber(0x3fff).shiftLeft(47)));\n dec.high = dec.high.or(significand.high.and(Long.fromNumber(0x7fffffffffff)));\n }\n else {\n dec.high = dec.high.or(Long.fromNumber(biasedExponent & 0x3fff).shiftLeft(49));\n dec.high = dec.high.or(significand.high.and(Long.fromNumber(0x1ffffffffffff)));\n }\n dec.low = significand.low;\n if (isNegative) {\n dec.high = dec.high.or(Long.fromString('9223372036854775808'));\n }\n const buffer = ByteUtils.allocateUnsafe(16);\n index = 0;\n buffer[index++] = dec.low.low & 0xff;\n buffer[index++] = (dec.low.low >> 8) & 0xff;\n buffer[index++] = (dec.low.low >> 16) & 0xff;\n buffer[index++] = (dec.low.low >> 24) & 0xff;\n buffer[index++] = dec.low.high & 0xff;\n buffer[index++] = (dec.low.high >> 8) & 0xff;\n buffer[index++] = (dec.low.high >> 16) & 0xff;\n buffer[index++] = (dec.low.high >> 24) & 0xff;\n buffer[index++] = dec.high.low & 0xff;\n buffer[index++] = (dec.high.low >> 8) & 0xff;\n buffer[index++] = (dec.high.low >> 16) & 0xff;\n buffer[index++] = (dec.high.low >> 24) & 0xff;\n buffer[index++] = dec.high.high & 0xff;\n buffer[index++] = (dec.high.high >> 8) & 0xff;\n buffer[index++] = (dec.high.high >> 16) & 0xff;\n buffer[index++] = (dec.high.high >> 24) & 0xff;\n return new Decimal128(buffer);\n }\n toString() {\n let biased_exponent;\n let significand_digits = 0;\n const significand = new Array(36);\n for (let i = 0; i < significand.length; i++)\n significand[i] = 0;\n let index = 0;\n let is_zero = false;\n let significand_msb;\n let significand128 = { parts: [0, 0, 0, 0] };\n let j, k;\n const string = [];\n index = 0;\n const buffer = this.bytes;\n const low = buffer[index++] | (buffer[index++] << 8) | (buffer[index++] << 16) | (buffer[index++] << 24);\n const midl = buffer[index++] | (buffer[index++] << 8) | (buffer[index++] << 16) | (buffer[index++] << 24);\n const midh = buffer[index++] | (buffer[index++] << 8) | (buffer[index++] << 16) | (buffer[index++] << 24);\n const high = buffer[index++] | (buffer[index++] << 8) | (buffer[index++] << 16) | (buffer[index++] << 24);\n index = 0;\n const dec = {\n low: new Long(low, midl),\n high: new Long(midh, high)\n };\n if (dec.high.lessThan(Long.ZERO)) {\n string.push('-');\n }\n const combination = (high >> 26) & COMBINATION_MASK;\n if (combination >> 3 === 3) {\n if (combination === COMBINATION_INFINITY) {\n return string.join('') + 'Infinity';\n }\n else if (combination === COMBINATION_NAN) {\n return 'NaN';\n }\n else {\n biased_exponent = (high >> 15) & EXPONENT_MASK;\n significand_msb = 0x08 + ((high >> 14) & 0x01);\n }\n }\n else {\n significand_msb = (high >> 14) & 0x07;\n biased_exponent = (high >> 17) & EXPONENT_MASK;\n }\n const exponent = biased_exponent - EXPONENT_BIAS;\n significand128.parts[0] = (high & 0x3fff) + ((significand_msb & 0xf) << 14);\n significand128.parts[1] = midh;\n significand128.parts[2] = midl;\n significand128.parts[3] = low;\n if (significand128.parts[0] === 0 &&\n significand128.parts[1] === 0 &&\n significand128.parts[2] === 0 &&\n significand128.parts[3] === 0) {\n is_zero = true;\n }\n else {\n for (k = 3; k >= 0; k--) {\n let least_digits = 0;\n const result = divideu128(significand128);\n significand128 = result.quotient;\n least_digits = result.rem.low;\n if (!least_digits)\n continue;\n for (j = 8; j >= 0; j--) {\n significand[k * 9 + j] = least_digits % 10;\n least_digits = Math.floor(least_digits / 10);\n }\n }\n }\n if (is_zero) {\n significand_digits = 1;\n significand[index] = 0;\n }\n else {\n significand_digits = 36;\n while (!significand[index]) {\n significand_digits = significand_digits - 1;\n index = index + 1;\n }\n }\n const scientific_exponent = significand_digits - 1 + exponent;\n if (scientific_exponent >= 34 || scientific_exponent <= -7 || exponent > 0) {\n if (significand_digits > 34) {\n string.push(`${0}`);\n if (exponent > 0)\n string.push(`E+${exponent}`);\n else if (exponent < 0)\n string.push(`E${exponent}`);\n return string.join('');\n }\n string.push(`${significand[index++]}`);\n significand_digits = significand_digits - 1;\n if (significand_digits) {\n string.push('.');\n }\n for (let i = 0; i < significand_digits; i++) {\n string.push(`${significand[index++]}`);\n }\n string.push('E');\n if (scientific_exponent > 0) {\n string.push(`+${scientific_exponent}`);\n }\n else {\n string.push(`${scientific_exponent}`);\n }\n }\n else {\n if (exponent >= 0) {\n for (let i = 0; i < significand_digits; i++) {\n string.push(`${significand[index++]}`);\n }\n }\n else {\n let radix_position = significand_digits + exponent;\n if (radix_position > 0) {\n for (let i = 0; i < radix_position; i++) {\n string.push(`${significand[index++]}`);\n }\n }\n else {\n string.push('0');\n }\n string.push('.');\n while (radix_position++ < 0) {\n string.push('0');\n }\n for (let i = 0; i < significand_digits - Math.max(radix_position - 1, 0); i++) {\n string.push(`${significand[index++]}`);\n }\n }\n }\n return string.join('');\n }\n toJSON() {\n return { $numberDecimal: this.toString() };\n }\n toExtendedJSON() {\n return { $numberDecimal: this.toString() };\n }\n static fromExtendedJSON(doc) {\n return Decimal128.fromString(doc.$numberDecimal);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n const d128string = inspect(this.toString(), options);\n return `new Decimal128(${d128string})`;\n }\n}\n\nclass Double extends BSONValue {\n get _bsontype() {\n return 'Double';\n }\n constructor(value) {\n super();\n if (value instanceof Number) {\n value = value.valueOf();\n }\n this.value = +value;\n }\n static fromString(value) {\n const coercedValue = Number(value);\n if (value === 'NaN')\n return new Double(NaN);\n if (value === 'Infinity')\n return new Double(Infinity);\n if (value === '-Infinity')\n return new Double(-Infinity);\n if (!Number.isFinite(coercedValue)) {\n throw new BSONError(`Input: ${value} is not representable as a Double`);\n }\n if (value.trim() !== value) {\n throw new BSONError(`Input: '${value}' contains whitespace`);\n }\n if (value === '') {\n throw new BSONError(`Input is an empty string`);\n }\n if (/[^-0-9.+eE]/.test(value)) {\n throw new BSONError(`Input: '${value}' is not in decimal or exponential notation`);\n }\n return new Double(coercedValue);\n }\n valueOf() {\n return this.value;\n }\n toJSON() {\n return this.value;\n }\n toString(radix) {\n return this.value.toString(radix);\n }\n toExtendedJSON(options) {\n if (options && (options.legacy || (options.relaxed && isFinite(this.value)))) {\n return this.value;\n }\n if (Object.is(Math.sign(this.value), -0)) {\n return { $numberDouble: '-0.0' };\n }\n return {\n $numberDouble: Number.isInteger(this.value) ? this.value.toFixed(1) : this.value.toString()\n };\n }\n static fromExtendedJSON(doc, options) {\n const doubleValue = parseFloat(doc.$numberDouble);\n return options && options.relaxed ? doubleValue : new Double(doubleValue);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n return `new Double(${inspect(this.value, options)})`;\n }\n}\n\nclass Int32 extends BSONValue {\n get _bsontype() {\n return 'Int32';\n }\n constructor(value) {\n super();\n if (value instanceof Number) {\n value = value.valueOf();\n }\n this.value = +value | 0;\n }\n static fromString(value) {\n const cleanedValue = removeLeadingZerosAndExplicitPlus(value);\n const coercedValue = Number(value);\n if (BSON_INT32_MAX < coercedValue) {\n throw new BSONError(`Input: '${value}' is larger than the maximum value for Int32`);\n }\n else if (BSON_INT32_MIN > coercedValue) {\n throw new BSONError(`Input: '${value}' is smaller than the minimum value for Int32`);\n }\n else if (!Number.isSafeInteger(coercedValue)) {\n throw new BSONError(`Input: '${value}' is not a safe integer`);\n }\n else if (coercedValue.toString() !== cleanedValue) {\n throw new BSONError(`Input: '${value}' is not a valid Int32 string`);\n }\n return new Int32(coercedValue);\n }\n valueOf() {\n return this.value;\n }\n toString(radix) {\n return this.value.toString(radix);\n }\n toJSON() {\n return this.value;\n }\n toExtendedJSON(options) {\n if (options && (options.relaxed || options.legacy))\n return this.value;\n return { $numberInt: this.value.toString() };\n }\n static fromExtendedJSON(doc, options) {\n return options && options.relaxed ? parseInt(doc.$numberInt, 10) : new Int32(doc.$numberInt);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n return `new Int32(${inspect(this.value, options)})`;\n }\n}\n\nclass MaxKey extends BSONValue {\n get _bsontype() {\n return 'MaxKey';\n }\n toExtendedJSON() {\n return { $maxKey: 1 };\n }\n static fromExtendedJSON() {\n return new MaxKey();\n }\n inspect() {\n return 'new MaxKey()';\n }\n}\n\nclass MinKey extends BSONValue {\n get _bsontype() {\n return 'MinKey';\n }\n toExtendedJSON() {\n return { $minKey: 1 };\n }\n static fromExtendedJSON() {\n return new MinKey();\n }\n inspect() {\n return 'new MinKey()';\n }\n}\n\nlet PROCESS_UNIQUE = null;\nconst __idCache = new WeakMap();\nclass ObjectId extends BSONValue {\n get _bsontype() {\n return 'ObjectId';\n }\n constructor(inputId) {\n super();\n let workingId;\n if (typeof inputId === 'object' && inputId && 'id' in inputId) {\n if (typeof inputId.id !== 'string' && !ArrayBuffer.isView(inputId.id)) {\n throw new BSONError('Argument passed in must have an id that is of type string or Buffer');\n }\n if ('toHexString' in inputId && typeof inputId.toHexString === 'function') {\n workingId = ByteUtils.fromHex(inputId.toHexString());\n }\n else {\n workingId = inputId.id;\n }\n }\n else {\n workingId = inputId;\n }\n if (workingId == null || typeof workingId === 'number') {\n this.buffer = ObjectId.generate(typeof workingId === 'number' ? workingId : undefined);\n }\n else if (ArrayBuffer.isView(workingId) && workingId.byteLength === 12) {\n this.buffer = ByteUtils.toLocalBufferType(workingId);\n }\n else if (typeof workingId === 'string') {\n if (ObjectId.validateHexString(workingId)) {\n this.buffer = ByteUtils.fromHex(workingId);\n if (ObjectId.cacheHexString) {\n __idCache.set(this, workingId);\n }\n }\n else {\n throw new BSONError('input must be a 24 character hex string, 12 byte Uint8Array, or an integer');\n }\n }\n else {\n throw new BSONError('Argument passed in does not match the accepted types');\n }\n }\n get id() {\n return this.buffer;\n }\n set id(value) {\n this.buffer = value;\n if (ObjectId.cacheHexString) {\n __idCache.set(this, ByteUtils.toHex(value));\n }\n }\n static validateHexString(string) {\n if (string?.length !== 24)\n return false;\n for (let i = 0; i < 24; i++) {\n const char = string.charCodeAt(i);\n if ((char >= 48 && char <= 57) ||\n (char >= 97 && char <= 102) ||\n (char >= 65 && char <= 70)) {\n continue;\n }\n return false;\n }\n return true;\n }\n toHexString() {\n if (ObjectId.cacheHexString) {\n const __id = __idCache.get(this);\n if (__id)\n return __id;\n }\n const hexString = ByteUtils.toHex(this.id);\n if (ObjectId.cacheHexString) {\n __idCache.set(this, hexString);\n }\n return hexString;\n }\n static getInc() {\n return (ObjectId.index = (ObjectId.index + 1) % 0xffffff);\n }\n static generate(time) {\n if ('number' !== typeof time) {\n time = Math.floor(Date.now() / 1000);\n }\n const inc = ObjectId.getInc();\n const buffer = ByteUtils.allocateUnsafe(12);\n NumberUtils.setInt32BE(buffer, 0, time);\n if (PROCESS_UNIQUE === null) {\n PROCESS_UNIQUE = ByteUtils.randomBytes(5);\n }\n buffer[4] = PROCESS_UNIQUE[0];\n buffer[5] = PROCESS_UNIQUE[1];\n buffer[6] = PROCESS_UNIQUE[2];\n buffer[7] = PROCESS_UNIQUE[3];\n buffer[8] = PROCESS_UNIQUE[4];\n buffer[11] = inc & 0xff;\n buffer[10] = (inc >> 8) & 0xff;\n buffer[9] = (inc >> 16) & 0xff;\n return buffer;\n }\n toString(encoding) {\n if (encoding === 'base64')\n return ByteUtils.toBase64(this.id);\n if (encoding === 'hex')\n return this.toHexString();\n return this.toHexString();\n }\n toJSON() {\n return this.toHexString();\n }\n static is(variable) {\n return (variable != null &&\n typeof variable === 'object' &&\n '_bsontype' in variable &&\n variable._bsontype === 'ObjectId');\n }\n equals(otherId) {\n if (otherId === undefined || otherId === null) {\n return false;\n }\n if (ObjectId.is(otherId)) {\n return (this.buffer[11] === otherId.buffer[11] && ByteUtils.equals(this.buffer, otherId.buffer));\n }\n if (typeof otherId === 'string') {\n return otherId.toLowerCase() === this.toHexString();\n }\n if (typeof otherId === 'object' && typeof otherId.toHexString === 'function') {\n const otherIdString = otherId.toHexString();\n const thisIdString = this.toHexString();\n return typeof otherIdString === 'string' && otherIdString.toLowerCase() === thisIdString;\n }\n return false;\n }\n getTimestamp() {\n const timestamp = new Date();\n const time = NumberUtils.getUint32BE(this.buffer, 0);\n timestamp.setTime(Math.floor(time) * 1000);\n return timestamp;\n }\n static createPk() {\n return new ObjectId();\n }\n serializeInto(uint8array, index) {\n uint8array[index] = this.buffer[0];\n uint8array[index + 1] = this.buffer[1];\n uint8array[index + 2] = this.buffer[2];\n uint8array[index + 3] = this.buffer[3];\n uint8array[index + 4] = this.buffer[4];\n uint8array[index + 5] = this.buffer[5];\n uint8array[index + 6] = this.buffer[6];\n uint8array[index + 7] = this.buffer[7];\n uint8array[index + 8] = this.buffer[8];\n uint8array[index + 9] = this.buffer[9];\n uint8array[index + 10] = this.buffer[10];\n uint8array[index + 11] = this.buffer[11];\n return 12;\n }\n static createFromTime(time) {\n const buffer = ByteUtils.allocate(12);\n for (let i = 11; i >= 4; i--)\n buffer[i] = 0;\n NumberUtils.setInt32BE(buffer, 0, time);\n return new ObjectId(buffer);\n }\n static createFromHexString(hexString) {\n if (hexString?.length !== 24) {\n throw new BSONError('hex string must be 24 characters');\n }\n return new ObjectId(ByteUtils.fromHex(hexString));\n }\n static createFromBase64(base64) {\n if (base64?.length !== 16) {\n throw new BSONError('base64 string must be 16 characters');\n }\n return new ObjectId(ByteUtils.fromBase64(base64));\n }\n static isValid(id) {\n if (id == null)\n return false;\n if (typeof id === 'string')\n return ObjectId.validateHexString(id);\n try {\n new ObjectId(id);\n return true;\n }\n catch {\n return false;\n }\n }\n toExtendedJSON() {\n if (this.toHexString)\n return { $oid: this.toHexString() };\n return { $oid: this.toString('hex') };\n }\n static fromExtendedJSON(doc) {\n return new ObjectId(doc.$oid);\n }\n isCached() {\n return ObjectId.cacheHexString && __idCache.has(this);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n return `new ObjectId(${inspect(this.toHexString(), options)})`;\n }\n}\nObjectId.index = Math.floor(Math.random() * 0xffffff);\n\nfunction internalCalculateObjectSize(object, serializeFunctions, ignoreUndefined) {\n let totalLength = 4 + 1;\n if (Array.isArray(object)) {\n for (let i = 0; i < object.length; i++) {\n totalLength += calculateElement(i.toString(), object[i], serializeFunctions, true, ignoreUndefined);\n }\n }\n else {\n if (typeof object?.toBSON === 'function') {\n object = object.toBSON();\n }\n for (const key of Object.keys(object)) {\n totalLength += calculateElement(key, object[key], serializeFunctions, false, ignoreUndefined);\n }\n }\n return totalLength;\n}\nfunction calculateElement(name, value, serializeFunctions = false, isArray = false, ignoreUndefined = false) {\n if (typeof value?.toBSON === 'function') {\n value = value.toBSON();\n }\n switch (typeof value) {\n case 'string':\n return 1 + ByteUtils.utf8ByteLength(name) + 1 + 4 + ByteUtils.utf8ByteLength(value) + 1;\n case 'number':\n if (Math.floor(value) === value &&\n value >= JS_INT_MIN &&\n value <= JS_INT_MAX) {\n if (value >= BSON_INT32_MIN && value <= BSON_INT32_MAX) {\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (4 + 1);\n }\n else {\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (8 + 1);\n }\n }\n else {\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (8 + 1);\n }\n case 'undefined':\n if (isArray || !ignoreUndefined)\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + 1;\n return 0;\n case 'boolean':\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (1 + 1);\n case 'object':\n if (value != null &&\n typeof value._bsontype === 'string' &&\n value[BSON_VERSION_SYMBOL] !== BSON_MAJOR_VERSION) {\n throw new BSONVersionError();\n }\n else if (value == null || value._bsontype === 'MinKey' || value._bsontype === 'MaxKey') {\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + 1;\n }\n else if (value._bsontype === 'ObjectId') {\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (12 + 1);\n }\n else if (value instanceof Date || isDate(value)) {\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (8 + 1);\n }\n else if (ArrayBuffer.isView(value) ||\n value instanceof ArrayBuffer ||\n isAnyArrayBuffer(value)) {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (1 + 4 + 1) + value.byteLength);\n }\n else if (value._bsontype === 'Long' ||\n value._bsontype === 'Double' ||\n value._bsontype === 'Timestamp') {\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (8 + 1);\n }\n else if (value._bsontype === 'Decimal128') {\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (16 + 1);\n }\n else if (value._bsontype === 'Code') {\n if (value.scope != null && Object.keys(value.scope).length > 0) {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n 1 +\n 4 +\n 4 +\n ByteUtils.utf8ByteLength(value.code.toString()) +\n 1 +\n internalCalculateObjectSize(value.scope, serializeFunctions, ignoreUndefined));\n }\n else {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n 1 +\n 4 +\n ByteUtils.utf8ByteLength(value.code.toString()) +\n 1);\n }\n }\n else if (value._bsontype === 'Binary') {\n const binary = value;\n if (binary.sub_type === Binary.SUBTYPE_BYTE_ARRAY) {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n (binary.position + 1 + 4 + 1 + 4));\n }\n else {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (binary.position + 1 + 4 + 1));\n }\n }\n else if (value._bsontype === 'Symbol') {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n ByteUtils.utf8ByteLength(value.value) +\n 4 +\n 1 +\n 1);\n }\n else if (value._bsontype === 'DBRef') {\n const ordered_values = Object.assign({\n $ref: value.collection,\n $id: value.oid\n }, value.fields);\n if (value.db != null) {\n ordered_values['$db'] = value.db;\n }\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n 1 +\n internalCalculateObjectSize(ordered_values, serializeFunctions, ignoreUndefined));\n }\n else if (value instanceof RegExp || isRegExp(value)) {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n 1 +\n ByteUtils.utf8ByteLength(value.source) +\n 1 +\n (value.global ? 1 : 0) +\n (value.ignoreCase ? 1 : 0) +\n (value.multiline ? 1 : 0) +\n 1);\n }\n else if (value._bsontype === 'BSONRegExp') {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n 1 +\n ByteUtils.utf8ByteLength(value.pattern) +\n 1 +\n ByteUtils.utf8ByteLength(value.options) +\n 1);\n }\n else {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n internalCalculateObjectSize(value, serializeFunctions, ignoreUndefined) +\n 1);\n }\n case 'function':\n if (serializeFunctions) {\n return ((name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) +\n 1 +\n 4 +\n ByteUtils.utf8ByteLength(value.toString()) +\n 1);\n }\n return 0;\n case 'bigint':\n return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (8 + 1);\n case 'symbol':\n return 0;\n default:\n throw new BSONError(`Unrecognized JS type: ${typeof value}`);\n }\n}\n\nfunction alphabetize(str) {\n return str.split('').sort().join('');\n}\nclass BSONRegExp extends BSONValue {\n get _bsontype() {\n return 'BSONRegExp';\n }\n constructor(pattern, options) {\n super();\n this.pattern = pattern;\n this.options = alphabetize(options ?? '');\n if (this.pattern.indexOf('\\x00') !== -1) {\n throw new BSONError(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);\n }\n if (this.options.indexOf('\\x00') !== -1) {\n throw new BSONError(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);\n }\n for (let i = 0; i < this.options.length; i++) {\n if (!(this.options[i] === 'i' ||\n this.options[i] === 'm' ||\n this.options[i] === 'x' ||\n this.options[i] === 'l' ||\n this.options[i] === 's' ||\n this.options[i] === 'u')) {\n throw new BSONError(`The regular expression option [${this.options[i]}] is not supported`);\n }\n }\n }\n static parseOptions(options) {\n return options ? options.split('').sort().join('') : '';\n }\n toExtendedJSON(options) {\n options = options || {};\n if (options.legacy) {\n return { $regex: this.pattern, $options: this.options };\n }\n return { $regularExpression: { pattern: this.pattern, options: this.options } };\n }\n static fromExtendedJSON(doc) {\n if ('$regex' in doc) {\n if (typeof doc.$regex !== 'string') {\n if (doc.$regex._bsontype === 'BSONRegExp') {\n return doc;\n }\n }\n else {\n return new BSONRegExp(doc.$regex, BSONRegExp.parseOptions(doc.$options));\n }\n }\n if ('$regularExpression' in doc) {\n return new BSONRegExp(doc.$regularExpression.pattern, BSONRegExp.parseOptions(doc.$regularExpression.options));\n }\n throw new BSONError(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(doc)}`);\n }\n inspect(depth, options, inspect) {\n const stylize = getStylizeFunction(options) ?? (v => v);\n inspect ??= defaultInspect;\n const pattern = stylize(inspect(this.pattern), 'regexp');\n const flags = stylize(inspect(this.options), 'regexp');\n return `new BSONRegExp(${pattern}, ${flags})`;\n }\n}\n\nclass BSONSymbol extends BSONValue {\n get _bsontype() {\n return 'BSONSymbol';\n }\n constructor(value) {\n super();\n this.value = value;\n }\n valueOf() {\n return this.value;\n }\n toString() {\n return this.value;\n }\n toJSON() {\n return this.value;\n }\n toExtendedJSON() {\n return { $symbol: this.value };\n }\n static fromExtendedJSON(doc) {\n return new BSONSymbol(doc.$symbol);\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n return `new BSONSymbol(${inspect(this.value, options)})`;\n }\n}\n\nconst LongWithoutOverridesClass = Long;\nclass Timestamp extends LongWithoutOverridesClass {\n get _bsontype() {\n return 'Timestamp';\n }\n get i() {\n return this.low >>> 0;\n }\n get t() {\n return this.high >>> 0;\n }\n constructor(low) {\n if (low == null) {\n super(0, 0, true);\n }\n else if (typeof low === 'bigint') {\n super(low, true);\n }\n else if (Long.isLong(low)) {\n super(low.low, low.high, true);\n }\n else if (typeof low === 'object' && 't' in low && 'i' in low) {\n if (typeof low.t !== 'number' && (typeof low.t !== 'object' || low.t._bsontype !== 'Int32')) {\n throw new BSONError('Timestamp constructed from { t, i } must provide t as a number');\n }\n if (typeof low.i !== 'number' && (typeof low.i !== 'object' || low.i._bsontype !== 'Int32')) {\n throw new BSONError('Timestamp constructed from { t, i } must provide i as a number');\n }\n const t = Number(low.t);\n const i = Number(low.i);\n if (t < 0 || Number.isNaN(t)) {\n throw new BSONError('Timestamp constructed from { t, i } must provide a positive t');\n }\n if (i < 0 || Number.isNaN(i)) {\n throw new BSONError('Timestamp constructed from { t, i } must provide a positive i');\n }\n if (t > 0xffff_ffff) {\n throw new BSONError('Timestamp constructed from { t, i } must provide t equal or less than uint32 max');\n }\n if (i > 0xffff_ffff) {\n throw new BSONError('Timestamp constructed from { t, i } must provide i equal or less than uint32 max');\n }\n super(i, t, true);\n }\n else {\n throw new BSONError('A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }');\n }\n }\n toJSON() {\n return {\n $timestamp: this.toString()\n };\n }\n static fromInt(value) {\n return new Timestamp(Long.fromInt(value, true));\n }\n static fromNumber(value) {\n return new Timestamp(Long.fromNumber(value, true));\n }\n static fromBits(lowBits, highBits) {\n return new Timestamp({ i: lowBits, t: highBits });\n }\n static fromString(str, optRadix) {\n return new Timestamp(Long.fromString(str, true, optRadix));\n }\n toExtendedJSON() {\n return { $timestamp: { t: this.t, i: this.i } };\n }\n static fromExtendedJSON(doc) {\n const i = Long.isLong(doc.$timestamp.i)\n ? doc.$timestamp.i.getLowBitsUnsigned()\n : doc.$timestamp.i;\n const t = Long.isLong(doc.$timestamp.t)\n ? doc.$timestamp.t.getLowBitsUnsigned()\n : doc.$timestamp.t;\n return new Timestamp({ t, i });\n }\n inspect(depth, options, inspect) {\n inspect ??= defaultInspect;\n const t = inspect(this.t, options);\n const i = inspect(this.i, options);\n return `new Timestamp({ t: ${t}, i: ${i} })`;\n }\n}\nTimestamp.MAX_VALUE = Long.MAX_UNSIGNED_VALUE;\n\nconst JS_INT_MAX_LONG = Long.fromNumber(JS_INT_MAX);\nconst JS_INT_MIN_LONG = Long.fromNumber(JS_INT_MIN);\nfunction internalDeserialize(buffer, options, isArray) {\n options = options == null ? {} : options;\n const index = options && options.index ? options.index : 0;\n const size = NumberUtils.getInt32LE(buffer, index);\n if (size < 5) {\n throw new BSONError(`bson size must be >= 5, is ${size}`);\n }\n if (options.allowObjectSmallerThanBufferSize && buffer.length < size) {\n throw new BSONError(`buffer length ${buffer.length} must be >= bson size ${size}`);\n }\n if (!options.allowObjectSmallerThanBufferSize && buffer.length !== size) {\n throw new BSONError(`buffer length ${buffer.length} must === bson size ${size}`);\n }\n if (size + index > buffer.byteLength) {\n throw new BSONError(`(bson size ${size} + options.index ${index} must be <= buffer length ${buffer.byteLength})`);\n }\n if (buffer[index + size - 1] !== 0) {\n throw new BSONError(\"One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00\");\n }\n return deserializeObject(buffer, index, options, isArray);\n}\nconst allowedDBRefKeys = /^\\$ref$|^\\$id$|^\\$db$/;\nfunction deserializeObject(buffer, index, options, isArray = false) {\n const fieldsAsRaw = options['fieldsAsRaw'] == null ? null : options['fieldsAsRaw'];\n const raw = options['raw'] == null ? false : options['raw'];\n const bsonRegExp = typeof options['bsonRegExp'] === 'boolean' ? options['bsonRegExp'] : false;\n const promoteBuffers = options.promoteBuffers ?? false;\n const promoteLongs = options.promoteLongs ?? true;\n const promoteValues = options.promoteValues ?? true;\n const useBigInt64 = options.useBigInt64 ?? false;\n if (useBigInt64 && !promoteValues) {\n throw new BSONError('Must either request bigint or Long for int64 deserialization');\n }\n if (useBigInt64 && !promoteLongs) {\n throw new BSONError('Must either request bigint or Long for int64 deserialization');\n }\n const validation = options.validation == null ? { utf8: true } : options.validation;\n let globalUTFValidation = true;\n let validationSetting;\n let utf8KeysSet;\n const utf8ValidatedKeys = validation.utf8;\n if (typeof utf8ValidatedKeys === 'boolean') {\n validationSetting = utf8ValidatedKeys;\n }\n else {\n globalUTFValidation = false;\n const utf8ValidationValues = Object.keys(utf8ValidatedKeys).map(function (key) {\n return utf8ValidatedKeys[key];\n });\n if (utf8ValidationValues.length === 0) {\n throw new BSONError('UTF-8 validation setting cannot be empty');\n }\n if (typeof utf8ValidationValues[0] !== 'boolean') {\n throw new BSONError('Invalid UTF-8 validation option, must specify boolean values');\n }\n validationSetting = utf8ValidationValues[0];\n if (!utf8ValidationValues.every(item => item === validationSetting)) {\n throw new BSONError('Invalid UTF-8 validation option - keys must be all true or all false');\n }\n }\n if (!globalUTFValidation) {\n utf8KeysSet = new Set();\n for (const key of Object.keys(utf8ValidatedKeys)) {\n utf8KeysSet.add(key);\n }\n }\n const startIndex = index;\n if (buffer.length < 5)\n throw new BSONError('corrupt bson message < 5 bytes long');\n const size = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n if (size < 5 || size > buffer.length)\n throw new BSONError('corrupt bson message');\n const object = isArray ? [] : {};\n let arrayIndex = 0;\n let isPossibleDBRef = isArray ? false : null;\n while (true) {\n const elementType = buffer[index++];\n if (elementType === 0)\n break;\n let i = index;\n while (buffer[i] !== 0x00 && i < buffer.length) {\n i++;\n }\n if (i >= buffer.byteLength)\n throw new BSONError('Bad BSON Document: illegal CString');\n const name = isArray ? arrayIndex++ : ByteUtils.toUTF8(buffer, index, i, false);\n let shouldValidateKey = true;\n if (globalUTFValidation || utf8KeysSet?.has(name)) {\n shouldValidateKey = validationSetting;\n }\n else {\n shouldValidateKey = !validationSetting;\n }\n if (isPossibleDBRef !== false && name[0] === '$') {\n isPossibleDBRef = allowedDBRefKeys.test(name);\n }\n let value;\n index = i + 1;\n if (elementType === BSON_DATA_STRING) {\n const stringSize = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n if (stringSize <= 0 ||\n stringSize > buffer.length - index ||\n buffer[index + stringSize - 1] !== 0) {\n throw new BSONError('bad string length in bson');\n }\n value = ByteUtils.toUTF8(buffer, index, index + stringSize - 1, shouldValidateKey);\n index = index + stringSize;\n }\n else if (elementType === BSON_DATA_OID) {\n const oid = ByteUtils.allocateUnsafe(12);\n for (let i = 0; i < 12; i++)\n oid[i] = buffer[index + i];\n value = new ObjectId(oid);\n index = index + 12;\n }\n else if (elementType === BSON_DATA_INT && promoteValues === false) {\n value = new Int32(NumberUtils.getInt32LE(buffer, index));\n index += 4;\n }\n else if (elementType === BSON_DATA_INT) {\n value = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n }\n else if (elementType === BSON_DATA_NUMBER) {\n value = NumberUtils.getFloat64LE(buffer, index);\n index += 8;\n if (promoteValues === false)\n value = new Double(value);\n }\n else if (elementType === BSON_DATA_DATE) {\n const lowBits = NumberUtils.getInt32LE(buffer, index);\n const highBits = NumberUtils.getInt32LE(buffer, index + 4);\n index += 8;\n value = new Date(new Long(lowBits, highBits).toNumber());\n }\n else if (elementType === BSON_DATA_BOOLEAN) {\n if (buffer[index] !== 0 && buffer[index] !== 1)\n throw new BSONError('illegal boolean type value');\n value = buffer[index++] === 1;\n }\n else if (elementType === BSON_DATA_OBJECT) {\n const _index = index;\n const objectSize = NumberUtils.getInt32LE(buffer, index);\n if (objectSize <= 0 || objectSize > buffer.length - index)\n throw new BSONError('bad embedded document length in bson');\n if (raw) {\n value = buffer.subarray(index, index + objectSize);\n }\n else {\n let objectOptions = options;\n if (!globalUTFValidation) {\n objectOptions = { ...options, validation: { utf8: shouldValidateKey } };\n }\n value = deserializeObject(buffer, _index, objectOptions, false);\n }\n index = index + objectSize;\n }\n else if (elementType === BSON_DATA_ARRAY) {\n const _index = index;\n const objectSize = NumberUtils.getInt32LE(buffer, index);\n let arrayOptions = options;\n const stopIndex = index + objectSize;\n if (fieldsAsRaw && fieldsAsRaw[name]) {\n arrayOptions = { ...options, raw: true };\n }\n if (!globalUTFValidation) {\n arrayOptions = { ...arrayOptions, validation: { utf8: shouldValidateKey } };\n }\n value = deserializeObject(buffer, _index, arrayOptions, true);\n index = index + objectSize;\n if (buffer[index - 1] !== 0)\n throw new BSONError('invalid array terminator byte');\n if (index !== stopIndex)\n throw new BSONError('corrupted array bson');\n }\n else if (elementType === BSON_DATA_UNDEFINED) {\n value = undefined;\n }\n else if (elementType === BSON_DATA_NULL) {\n value = null;\n }\n else if (elementType === BSON_DATA_LONG) {\n if (useBigInt64) {\n value = NumberUtils.getBigInt64LE(buffer, index);\n index += 8;\n }\n else {\n const lowBits = NumberUtils.getInt32LE(buffer, index);\n const highBits = NumberUtils.getInt32LE(buffer, index + 4);\n index += 8;\n const long = new Long(lowBits, highBits);\n if (promoteLongs && promoteValues === true) {\n value =\n long.lessThanOrEqual(JS_INT_MAX_LONG) && long.greaterThanOrEqual(JS_INT_MIN_LONG)\n ? long.toNumber()\n : long;\n }\n else {\n value = long;\n }\n }\n }\n else if (elementType === BSON_DATA_DECIMAL128) {\n const bytes = ByteUtils.allocateUnsafe(16);\n for (let i = 0; i < 16; i++)\n bytes[i] = buffer[index + i];\n index = index + 16;\n value = new Decimal128(bytes);\n }\n else if (elementType === BSON_DATA_BINARY) {\n let binarySize = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n const totalBinarySize = binarySize;\n const subType = buffer[index++];\n if (binarySize < 0)\n throw new BSONError('Negative binary type element size found');\n if (binarySize > buffer.byteLength)\n throw new BSONError('Binary type size larger than document size');\n if (subType === Binary.SUBTYPE_BYTE_ARRAY) {\n binarySize = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n if (binarySize < 0)\n throw new BSONError('Negative binary type element size found for subtype 0x02');\n if (binarySize > totalBinarySize - 4)\n throw new BSONError('Binary type with subtype 0x02 contains too long binary size');\n if (binarySize < totalBinarySize - 4)\n throw new BSONError('Binary type with subtype 0x02 contains too short binary size');\n }\n if (promoteBuffers && promoteValues) {\n value = ByteUtils.toLocalBufferType(buffer.subarray(index, index + binarySize));\n }\n else {\n value = new Binary(buffer.subarray(index, index + binarySize), subType);\n if (subType === BSON_BINARY_SUBTYPE_UUID_NEW && UUID.isValid(value)) {\n value = value.toUUID();\n }\n }\n index = index + binarySize;\n }\n else if (elementType === BSON_DATA_REGEXP && bsonRegExp === false) {\n i = index;\n while (buffer[i] !== 0x00 && i < buffer.length) {\n i++;\n }\n if (i >= buffer.length)\n throw new BSONError('Bad BSON Document: illegal CString');\n const source = ByteUtils.toUTF8(buffer, index, i, false);\n index = i + 1;\n i = index;\n while (buffer[i] !== 0x00 && i < buffer.length) {\n i++;\n }\n if (i >= buffer.length)\n throw new BSONError('Bad BSON Document: illegal CString');\n const regExpOptions = ByteUtils.toUTF8(buffer, index, i, false);\n index = i + 1;\n const optionsArray = new Array(regExpOptions.length);\n for (i = 0; i < regExpOptions.length; i++) {\n switch (regExpOptions[i]) {\n case 'm':\n optionsArray[i] = 'm';\n break;\n case 's':\n optionsArray[i] = 'g';\n break;\n case 'i':\n optionsArray[i] = 'i';\n break;\n }\n }\n value = new RegExp(source, optionsArray.join(''));\n }\n else if (elementType === BSON_DATA_REGEXP && bsonRegExp === true) {\n i = index;\n while (buffer[i] !== 0x00 && i < buffer.length) {\n i++;\n }\n if (i >= buffer.length)\n throw new BSONError('Bad BSON Document: illegal CString');\n const source = ByteUtils.toUTF8(buffer, index, i, false);\n index = i + 1;\n i = index;\n while (buffer[i] !== 0x00 && i < buffer.length) {\n i++;\n }\n if (i >= buffer.length)\n throw new BSONError('Bad BSON Document: illegal CString');\n const regExpOptions = ByteUtils.toUTF8(buffer, index, i, false);\n index = i + 1;\n value = new BSONRegExp(source, regExpOptions);\n }\n else if (elementType === BSON_DATA_SYMBOL) {\n const stringSize = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n if (stringSize <= 0 ||\n stringSize > buffer.length - index ||\n buffer[index + stringSize - 1] !== 0) {\n throw new BSONError('bad string length in bson');\n }\n const symbol = ByteUtils.toUTF8(buffer, index, index + stringSize - 1, shouldValidateKey);\n value = promoteValues ? symbol : new BSONSymbol(symbol);\n index = index + stringSize;\n }\n else if (elementType === BSON_DATA_TIMESTAMP) {\n value = new Timestamp({\n i: NumberUtils.getUint32LE(buffer, index),\n t: NumberUtils.getUint32LE(buffer, index + 4)\n });\n index += 8;\n }\n else if (elementType === BSON_DATA_MIN_KEY) {\n value = new MinKey();\n }\n else if (elementType === BSON_DATA_MAX_KEY) {\n value = new MaxKey();\n }\n else if (elementType === BSON_DATA_CODE) {\n const stringSize = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n if (stringSize <= 0 ||\n stringSize > buffer.length - index ||\n buffer[index + stringSize - 1] !== 0) {\n throw new BSONError('bad string length in bson');\n }\n const functionString = ByteUtils.toUTF8(buffer, index, index + stringSize - 1, shouldValidateKey);\n value = new Code(functionString);\n index = index + stringSize;\n }\n else if (elementType === BSON_DATA_CODE_W_SCOPE) {\n const totalSize = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n if (totalSize < 4 + 4 + 4 + 1) {\n throw new BSONError('code_w_scope total size shorter minimum expected length');\n }\n const stringSize = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n if (stringSize <= 0 ||\n stringSize > buffer.length - index ||\n buffer[index + stringSize - 1] !== 0) {\n throw new BSONError('bad string length in bson');\n }\n const functionString = ByteUtils.toUTF8(buffer, index, index + stringSize - 1, shouldValidateKey);\n index = index + stringSize;\n const _index = index;\n const objectSize = NumberUtils.getInt32LE(buffer, index);\n const scopeObject = deserializeObject(buffer, _index, options, false);\n index = index + objectSize;\n if (totalSize < 4 + 4 + objectSize + stringSize) {\n throw new BSONError('code_w_scope total size is too short, truncating scope');\n }\n if (totalSize > 4 + 4 + objectSize + stringSize) {\n throw new BSONError('code_w_scope total size is too long, clips outer document');\n }\n value = new Code(functionString, scopeObject);\n }\n else if (elementType === BSON_DATA_DBPOINTER) {\n const stringSize = NumberUtils.getInt32LE(buffer, index);\n index += 4;\n if (stringSize <= 0 ||\n stringSize > buffer.length - index ||\n buffer[index + stringSize - 1] !== 0)\n throw new BSONError('bad string length in bson');\n const namespace = ByteUtils.toUTF8(buffer, index, index + stringSize - 1, shouldValidateKey);\n index = index + stringSize;\n const oidBuffer = ByteUtils.allocateUnsafe(12);\n for (let i = 0; i < 12; i++)\n oidBuffer[i] = buffer[index + i];\n const oid = new ObjectId(oidBuffer);\n index = index + 12;\n value = new DBRef(namespace, oid);\n }\n else {\n throw new BSONError(`Detected unknown BSON type ${elementType.toString(16)} for fieldname \"${name}\"`);\n }\n if (name === '__proto__') {\n Object.defineProperty(object, name, {\n value,\n writable: true,\n enumerable: true,\n configurable: true\n });\n }\n else {\n object[name] = value;\n }\n }\n if (size !== index - startIndex) {\n if (isArray)\n throw new BSONError('corrupt array bson');\n throw new BSONError('corrupt object bson');\n }\n if (!isPossibleDBRef)\n return object;\n if (isDBRefLike(object)) {\n const copy = Object.assign({}, object);\n delete copy.$ref;\n delete copy.$id;\n delete copy.$db;\n return new DBRef(object.$ref, object.$id, object.$db, copy);\n }\n return object;\n}\n\nconst regexp = /\\x00/;\nconst ignoreKeys = new Set(['$db', '$ref', '$id', '$clusterTime']);\nfunction serializeString(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_STRING;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes + 1;\n buffer[index - 1] = 0;\n const size = ByteUtils.encodeUTF8Into(buffer, value, index + 4);\n NumberUtils.setInt32LE(buffer, index, size + 1);\n index = index + 4 + size;\n buffer[index++] = 0;\n return index;\n}\nfunction serializeNumber(buffer, key, value, index) {\n const isNegativeZero = Object.is(value, -0);\n const type = !isNegativeZero &&\n Number.isSafeInteger(value) &&\n value <= BSON_INT32_MAX &&\n value >= BSON_INT32_MIN\n ? BSON_DATA_INT\n : BSON_DATA_NUMBER;\n buffer[index++] = type;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0x00;\n if (type === BSON_DATA_INT) {\n index += NumberUtils.setInt32LE(buffer, index, value);\n }\n else {\n index += NumberUtils.setFloat64LE(buffer, index, value);\n }\n return index;\n}\nfunction serializeBigInt(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_LONG;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index += numberOfWrittenBytes;\n buffer[index++] = 0;\n index += NumberUtils.setBigInt64LE(buffer, index, value);\n return index;\n}\nfunction serializeNull(buffer, key, _, index) {\n buffer[index++] = BSON_DATA_NULL;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n return index;\n}\nfunction serializeBoolean(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_BOOLEAN;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n buffer[index++] = value ? 1 : 0;\n return index;\n}\nfunction serializeDate(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_DATE;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n const dateInMilis = Long.fromNumber(value.getTime());\n const lowBits = dateInMilis.getLowBits();\n const highBits = dateInMilis.getHighBits();\n index += NumberUtils.setInt32LE(buffer, index, lowBits);\n index += NumberUtils.setInt32LE(buffer, index, highBits);\n return index;\n}\nfunction serializeRegExp(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_REGEXP;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n if (value.source && value.source.match(regexp) != null) {\n throw new BSONError('value ' + value.source + ' must not contain null bytes');\n }\n index = index + ByteUtils.encodeUTF8Into(buffer, value.source, index);\n buffer[index++] = 0x00;\n if (value.ignoreCase)\n buffer[index++] = 0x69;\n if (value.global)\n buffer[index++] = 0x73;\n if (value.multiline)\n buffer[index++] = 0x6d;\n buffer[index++] = 0x00;\n return index;\n}\nfunction serializeBSONRegExp(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_REGEXP;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n if (value.pattern.match(regexp) != null) {\n throw new BSONError('pattern ' + value.pattern + ' must not contain null bytes');\n }\n index = index + ByteUtils.encodeUTF8Into(buffer, value.pattern, index);\n buffer[index++] = 0x00;\n const sortedOptions = value.options.split('').sort().join('');\n index = index + ByteUtils.encodeUTF8Into(buffer, sortedOptions, index);\n buffer[index++] = 0x00;\n return index;\n}\nfunction serializeMinMax(buffer, key, value, index) {\n if (value === null) {\n buffer[index++] = BSON_DATA_NULL;\n }\n else if (value._bsontype === 'MinKey') {\n buffer[index++] = BSON_DATA_MIN_KEY;\n }\n else {\n buffer[index++] = BSON_DATA_MAX_KEY;\n }\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n return index;\n}\nfunction serializeObjectId(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_OID;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n index += value.serializeInto(buffer, index);\n return index;\n}\nfunction serializeBuffer(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_BINARY;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n const size = value.length;\n index += NumberUtils.setInt32LE(buffer, index, size);\n buffer[index++] = BSON_BINARY_SUBTYPE_DEFAULT;\n if (size <= 16) {\n for (let i = 0; i < size; i++)\n buffer[index + i] = value[i];\n }\n else {\n buffer.set(value, index);\n }\n index = index + size;\n return index;\n}\nfunction serializeObject(buffer, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, path) {\n if (path.has(value)) {\n throw new BSONError('Cannot convert circular structure to BSON');\n }\n path.add(value);\n buffer[index++] = Array.isArray(value) ? BSON_DATA_ARRAY : BSON_DATA_OBJECT;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n const endIndex = serializeInto(buffer, value, checkKeys, index, depth + 1, serializeFunctions, ignoreUndefined, path);\n path.delete(value);\n return endIndex;\n}\nfunction serializeDecimal128(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_DECIMAL128;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n for (let i = 0; i < 16; i++)\n buffer[index + i] = value.bytes[i];\n return index + 16;\n}\nfunction serializeLong(buffer, key, value, index) {\n buffer[index++] =\n value._bsontype === 'Long' ? BSON_DATA_LONG : BSON_DATA_TIMESTAMP;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n const lowBits = value.getLowBits();\n const highBits = value.getHighBits();\n index += NumberUtils.setInt32LE(buffer, index, lowBits);\n index += NumberUtils.setInt32LE(buffer, index, highBits);\n return index;\n}\nfunction serializeInt32(buffer, key, value, index) {\n value = value.valueOf();\n buffer[index++] = BSON_DATA_INT;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n index += NumberUtils.setInt32LE(buffer, index, value);\n return index;\n}\nfunction serializeDouble(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_NUMBER;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n index += NumberUtils.setFloat64LE(buffer, index, value.value);\n return index;\n}\nfunction serializeFunction(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_CODE;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n const functionString = value.toString();\n const size = ByteUtils.encodeUTF8Into(buffer, functionString, index + 4) + 1;\n NumberUtils.setInt32LE(buffer, index, size);\n index = index + 4 + size - 1;\n buffer[index++] = 0;\n return index;\n}\nfunction serializeCode(buffer, key, value, index, checkKeys = false, depth = 0, serializeFunctions = false, ignoreUndefined = true, path) {\n if (value.scope && typeof value.scope === 'object') {\n buffer[index++] = BSON_DATA_CODE_W_SCOPE;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n let startIndex = index;\n const functionString = value.code;\n index = index + 4;\n const codeSize = ByteUtils.encodeUTF8Into(buffer, functionString, index + 4) + 1;\n NumberUtils.setInt32LE(buffer, index, codeSize);\n buffer[index + 4 + codeSize - 1] = 0;\n index = index + codeSize + 4;\n const endIndex = serializeInto(buffer, value.scope, checkKeys, index, depth + 1, serializeFunctions, ignoreUndefined, path);\n index = endIndex - 1;\n const totalSize = endIndex - startIndex;\n startIndex += NumberUtils.setInt32LE(buffer, startIndex, totalSize);\n buffer[index++] = 0;\n }\n else {\n buffer[index++] = BSON_DATA_CODE;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n const functionString = value.code.toString();\n const size = ByteUtils.encodeUTF8Into(buffer, functionString, index + 4) + 1;\n NumberUtils.setInt32LE(buffer, index, size);\n index = index + 4 + size - 1;\n buffer[index++] = 0;\n }\n return index;\n}\nfunction serializeBinary(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_BINARY;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n const data = value.buffer;\n let size = value.position;\n if (value.sub_type === Binary.SUBTYPE_BYTE_ARRAY)\n size = size + 4;\n index += NumberUtils.setInt32LE(buffer, index, size);\n buffer[index++] = value.sub_type;\n if (value.sub_type === Binary.SUBTYPE_BYTE_ARRAY) {\n size = size - 4;\n index += NumberUtils.setInt32LE(buffer, index, size);\n }\n if (value.sub_type === Binary.SUBTYPE_VECTOR) {\n validateBinaryVector(value);\n }\n if (size <= 16) {\n for (let i = 0; i < size; i++)\n buffer[index + i] = data[i];\n }\n else {\n buffer.set(data, index);\n }\n index = index + value.position;\n return index;\n}\nfunction serializeSymbol(buffer, key, value, index) {\n buffer[index++] = BSON_DATA_SYMBOL;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n const size = ByteUtils.encodeUTF8Into(buffer, value.value, index + 4) + 1;\n NumberUtils.setInt32LE(buffer, index, size);\n index = index + 4 + size - 1;\n buffer[index++] = 0;\n return index;\n}\nfunction serializeDBRef(buffer, key, value, index, depth, serializeFunctions, path) {\n buffer[index++] = BSON_DATA_OBJECT;\n const numberOfWrittenBytes = ByteUtils.encodeUTF8Into(buffer, key, index);\n index = index + numberOfWrittenBytes;\n buffer[index++] = 0;\n let startIndex = index;\n let output = {\n $ref: value.collection || value.namespace,\n $id: value.oid\n };\n if (value.db != null) {\n output.$db = value.db;\n }\n output = Object.assign(output, value.fields);\n const endIndex = serializeInto(buffer, output, false, index, depth + 1, serializeFunctions, true, path);\n const size = endIndex - startIndex;\n startIndex += NumberUtils.setInt32LE(buffer, index, size);\n return endIndex;\n}\nfunction serializeInto(buffer, object, checkKeys, startingIndex, depth, serializeFunctions, ignoreUndefined, path) {\n if (path == null) {\n if (object == null) {\n buffer[0] = 0x05;\n buffer[1] = 0x00;\n buffer[2] = 0x00;\n buffer[3] = 0x00;\n buffer[4] = 0x00;\n return 5;\n }\n if (Array.isArray(object)) {\n throw new BSONError('serialize does not support an array as the root input');\n }\n if (typeof object !== 'object') {\n throw new BSONError('serialize does not support non-object as the root input');\n }\n else if ('_bsontype' in object && typeof object._bsontype === 'string') {\n throw new BSONError(`BSON types cannot be serialized as a document`);\n }\n else if (isDate(object) ||\n isRegExp(object) ||\n isUint8Array(object) ||\n isAnyArrayBuffer(object)) {\n throw new BSONError(`date, regexp, typedarray, and arraybuffer cannot be BSON documents`);\n }\n path = new Set();\n }\n path.add(object);\n let index = startingIndex + 4;\n if (Array.isArray(object)) {\n for (let i = 0; i < object.length; i++) {\n const key = `${i}`;\n let value = object[i];\n if (typeof value?.toBSON === 'function') {\n value = value.toBSON();\n }\n const type = typeof value;\n if (value === undefined) {\n index = serializeNull(buffer, key, value, index);\n }\n else if (value === null) {\n index = serializeNull(buffer, key, value, index);\n }\n else if (type === 'string') {\n index = serializeString(buffer, key, value, index);\n }\n else if (type === 'number') {\n index = serializeNumber(buffer, key, value, index);\n }\n else if (type === 'bigint') {\n index = serializeBigInt(buffer, key, value, index);\n }\n else if (type === 'boolean') {\n index = serializeBoolean(buffer, key, value, index);\n }\n else if (type === 'object' && value._bsontype == null) {\n if (value instanceof Date || isDate(value)) {\n index = serializeDate(buffer, key, value, index);\n }\n else if (value instanceof Uint8Array || isUint8Array(value)) {\n index = serializeBuffer(buffer, key, value, index);\n }\n else if (value instanceof RegExp || isRegExp(value)) {\n index = serializeRegExp(buffer, key, value, index);\n }\n else {\n index = serializeObject(buffer, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, path);\n }\n }\n else if (type === 'object') {\n if (value[BSON_VERSION_SYMBOL] !== BSON_MAJOR_VERSION) {\n throw new BSONVersionError();\n }\n else if (value._bsontype === 'ObjectId') {\n index = serializeObjectId(buffer, key, value, index);\n }\n else if (value._bsontype === 'Decimal128') {\n index = serializeDecimal128(buffer, key, value, index);\n }\n else if (value._bsontype === 'Long' || value._bsontype === 'Timestamp') {\n index = serializeLong(buffer, key, value, index);\n }\n else if (value._bsontype === 'Double') {\n index = serializeDouble(buffer, key, value, index);\n }\n else if (value._bsontype === 'Code') {\n index = serializeCode(buffer, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, path);\n }\n else if (value._bsontype === 'Binary') {\n index = serializeBinary(buffer, key, value, index);\n }\n else if (value._bsontype === 'BSONSymbol') {\n index = serializeSymbol(buffer, key, value, index);\n }\n else if (value._bsontype === 'DBRef') {\n index = serializeDBRef(buffer, key, value, index, depth, serializeFunctions, path);\n }\n else if (value._bsontype === 'BSONRegExp') {\n index = serializeBSONRegExp(buffer, key, value, index);\n }\n else if (value._bsontype === 'Int32') {\n index = serializeInt32(buffer, key, value, index);\n }\n else if (value._bsontype === 'MinKey' || value._bsontype === 'MaxKey') {\n index = serializeMinMax(buffer, key, value, index);\n }\n else if (typeof value._bsontype !== 'undefined') {\n throw new BSONError(`Unrecognized or invalid _bsontype: ${String(value._bsontype)}`);\n }\n }\n else if (type === 'function' && serializeFunctions) {\n index = serializeFunction(buffer, key, value, index);\n }\n }\n }\n else if (object instanceof Map || isMap(object)) {\n const iterator = object.entries();\n let done = false;\n while (!done) {\n const entry = iterator.next();\n done = !!entry.done;\n if (done)\n continue;\n const key = entry.value ? entry.value[0] : undefined;\n let value = entry.value ? entry.value[1] : undefined;\n if (typeof value?.toBSON === 'function') {\n value = value.toBSON();\n }\n const type = typeof value;\n if (typeof key === 'string' && !ignoreKeys.has(key)) {\n if (key.match(regexp) != null) {\n throw new BSONError('key ' + key + ' must not contain null bytes');\n }\n if (checkKeys) {\n if ('$' === key[0]) {\n throw new BSONError('key ' + key + \" must not start with '$'\");\n }\n else if (key.includes('.')) {\n throw new BSONError('key ' + key + \" must not contain '.'\");\n }\n }\n }\n if (value === undefined) {\n if (ignoreUndefined === false)\n index = serializeNull(buffer, key, value, index);\n }\n else if (value === null) {\n index = serializeNull(buffer, key, value, index);\n }\n else if (type === 'string') {\n index = serializeString(buffer, key, value, index);\n }\n else if (type === 'number') {\n index = serializeNumber(buffer, key, value, index);\n }\n else if (type === 'bigint') {\n index = serializeBigInt(buffer, key, value, index);\n }\n else if (type === 'boolean') {\n index = serializeBoolean(buffer, key, value, index);\n }\n else if (type === 'object' && value._bsontype == null) {\n if (value instanceof Date || isDate(value)) {\n index = serializeDate(buffer, key, value, index);\n }\n else if (value instanceof Uint8Array || isUint8Array(value)) {\n index = serializeBuffer(buffer, key, value, index);\n }\n else if (value instanceof RegExp || isRegExp(value)) {\n index = serializeRegExp(buffer, key, value, index);\n }\n else {\n index = serializeObject(buffer, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, path);\n }\n }\n else if (type === 'object') {\n if (value[BSON_VERSION_SYMBOL] !== BSON_MAJOR_VERSION) {\n throw new BSONVersionError();\n }\n else if (value._bsontype === 'ObjectId') {\n index = serializeObjectId(buffer, key, value, index);\n }\n else if (value._bsontype === 'Decimal128') {\n index = serializeDecimal128(buffer, key, value, index);\n }\n else if (value._bsontype === 'Long' || value._bsontype === 'Timestamp') {\n index = serializeLong(buffer, key, value, index);\n }\n else if (value._bsontype === 'Double') {\n index = serializeDouble(buffer, key, value, index);\n }\n else if (value._bsontype === 'Code') {\n index = serializeCode(buffer, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, path);\n }\n else if (value._bsontype === 'Binary') {\n index = serializeBinary(buffer, key, value, index);\n }\n else if (value._bsontype === 'BSONSymbol') {\n index = serializeSymbol(buffer, key, value, index);\n }\n else if (value._bsontype === 'DBRef') {\n index = serializeDBRef(buffer, key, value, index, depth, serializeFunctions, path);\n }\n else if (value._bsontype === 'BSONRegExp') {\n index = serializeBSONRegExp(buffer, key, value, index);\n }\n else if (value._bsontype === 'Int32') {\n index = serializeInt32(buffer, key, value, index);\n }\n else if (value._bsontype === 'MinKey' || value._bsontype === 'MaxKey') {\n index = serializeMinMax(buffer, key, value, index);\n }\n else if (typeof value._bsontype !== 'undefined') {\n throw new BSONError(`Unrecognized or invalid _bsontype: ${String(value._bsontype)}`);\n }\n }\n else if (type === 'function' && serializeFunctions) {\n index = serializeFunction(buffer, key, value, index);\n }\n }\n }\n else {\n if (typeof object?.toBSON === 'function') {\n object = object.toBSON();\n if (object != null && typeof object !== 'object') {\n throw new BSONError('toBSON function did not return an object');\n }\n }\n for (const key of Object.keys(object)) {\n let value = object[key];\n if (typeof value?.toBSON === 'function') {\n value = value.toBSON();\n }\n const type = typeof value;\n if (typeof key === 'string' && !ignoreKeys.has(key)) {\n if (key.match(regexp) != null) {\n throw new BSONError('key ' + key + ' must not contain null bytes');\n }\n if (checkKeys) {\n if ('$' === key[0]) {\n throw new BSONError('key ' + key + \" must not start with '$'\");\n }\n else if (key.includes('.')) {\n throw new BSONError('key ' + key + \" must not contain '.'\");\n }\n }\n }\n if (value === undefined) {\n if (ignoreUndefined === false)\n index = serializeNull(buffer, key, value, index);\n }\n else if (value === null) {\n index = serializeNull(buffer, key, value, index);\n }\n else if (type === 'string') {\n index = serializeString(buffer, key, value, index);\n }\n else if (type === 'number') {\n index = serializeNumber(buffer, key, value, index);\n }\n else if (type === 'bigint') {\n index = serializeBigInt(buffer, key, value, index);\n }\n else if (type === 'boolean') {\n index = serializeBoolean(buffer, key, value, index);\n }\n else if (type === 'object' && value._bsontype == null) {\n if (value instanceof Date || isDate(value)) {\n index = serializeDate(buffer, key, value, index);\n }\n else if (value instanceof Uint8Array || isUint8Array(value)) {\n index = serializeBuffer(buffer, key, value, index);\n }\n else if (value instanceof RegExp || isRegExp(value)) {\n index = serializeRegExp(buffer, key, value, index);\n }\n else {\n index = serializeObject(buffer, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, path);\n }\n }\n else if (type === 'object') {\n if (value[BSON_VERSION_SYMBOL] !== BSON_MAJOR_VERSION) {\n throw new BSONVersionError();\n }\n else if (value._bsontype === 'ObjectId') {\n index = serializeObjectId(buffer, key, value, index);\n }\n else if (value._bsontype === 'Decimal128') {\n index = serializeDecimal128(buffer, key, value, index);\n }\n else if (value._bsontype === 'Long' || value._bsontype === 'Timestamp') {\n index = serializeLong(buffer, key, value, index);\n }\n else if (value._bsontype === 'Double') {\n index = serializeDouble(buffer, key, value, index);\n }\n else if (value._bsontype === 'Code') {\n index = serializeCode(buffer, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, path);\n }\n else if (value._bsontype === 'Binary') {\n index = serializeBinary(buffer, key, value, index);\n }\n else if (value._bsontype === 'BSONSymbol') {\n index = serializeSymbol(buffer, key, value, index);\n }\n else if (value._bsontype === 'DBRef') {\n index = serializeDBRef(buffer, key, value, index, depth, serializeFunctions, path);\n }\n else if (value._bsontype === 'BSONRegExp') {\n index = serializeBSONRegExp(buffer, key, value, index);\n }\n else if (value._bsontype === 'Int32') {\n index = serializeInt32(buffer, key, value, index);\n }\n else if (value._bsontype === 'MinKey' || value._bsontype === 'MaxKey') {\n index = serializeMinMax(buffer, key, value, index);\n }\n else if (typeof value._bsontype !== 'undefined') {\n throw new BSONError(`Unrecognized or invalid _bsontype: ${String(value._bsontype)}`);\n }\n }\n else if (type === 'function' && serializeFunctions) {\n index = serializeFunction(buffer, key, value, index);\n }\n }\n }\n path.delete(object);\n buffer[index++] = 0x00;\n const size = index - startingIndex;\n startingIndex += NumberUtils.setInt32LE(buffer, startingIndex, size);\n return index;\n}\n\nfunction isBSONType(value) {\n return (value != null &&\n typeof value === 'object' &&\n '_bsontype' in value &&\n typeof value._bsontype === 'string');\n}\nconst keysToCodecs = {\n $oid: ObjectId,\n $binary: Binary,\n $uuid: Binary,\n $symbol: BSONSymbol,\n $numberInt: Int32,\n $numberDecimal: Decimal128,\n $numberDouble: Double,\n $numberLong: Long,\n $minKey: MinKey,\n $maxKey: MaxKey,\n $regex: BSONRegExp,\n $regularExpression: BSONRegExp,\n $timestamp: Timestamp\n};\nfunction deserializeValue(value, options = {}) {\n if (typeof value === 'number') {\n const in32BitRange = value <= BSON_INT32_MAX && value >= BSON_INT32_MIN;\n const in64BitRange = value <= BSON_INT64_MAX && value >= BSON_INT64_MIN;\n if (options.relaxed || options.legacy) {\n return value;\n }\n if (Number.isInteger(value) && !Object.is(value, -0)) {\n if (in32BitRange) {\n return new Int32(value);\n }\n if (in64BitRange) {\n if (options.useBigInt64) {\n return BigInt(value);\n }\n return Long.fromNumber(value);\n }\n }\n return new Double(value);\n }\n if (value == null || typeof value !== 'object')\n return value;\n if (value.$undefined)\n return null;\n const keys = Object.keys(value).filter(k => k.startsWith('$') && value[k] != null);\n for (let i = 0; i < keys.length; i++) {\n const c = keysToCodecs[keys[i]];\n if (c)\n return c.fromExtendedJSON(value, options);\n }\n if (value.$date != null) {\n const d = value.$date;\n const date = new Date();\n if (options.legacy) {\n if (typeof d === 'number')\n date.setTime(d);\n else if (typeof d === 'string')\n date.setTime(Date.parse(d));\n else if (typeof d === 'bigint')\n date.setTime(Number(d));\n else\n throw new BSONRuntimeError(`Unrecognized type for EJSON date: ${typeof d}`);\n }\n else {\n if (typeof d === 'string')\n date.setTime(Date.parse(d));\n else if (Long.isLong(d))\n date.setTime(d.toNumber());\n else if (typeof d === 'number' && options.relaxed)\n date.setTime(d);\n else if (typeof d === 'bigint')\n date.setTime(Number(d));\n else\n throw new BSONRuntimeError(`Unrecognized type for EJSON date: ${typeof d}`);\n }\n return date;\n }\n if (value.$code != null) {\n const copy = Object.assign({}, value);\n if (value.$scope) {\n copy.$scope = deserializeValue(value.$scope);\n }\n return Code.fromExtendedJSON(value);\n }\n if (isDBRefLike(value) || value.$dbPointer) {\n const v = value.$ref ? value : value.$dbPointer;\n if (v instanceof DBRef)\n return v;\n const dollarKeys = Object.keys(v).filter(k => k.startsWith('$'));\n let valid = true;\n dollarKeys.forEach(k => {\n if (['$ref', '$id', '$db'].indexOf(k) === -1)\n valid = false;\n });\n if (valid)\n return DBRef.fromExtendedJSON(v);\n }\n return value;\n}\nfunction serializeArray(array, options) {\n return array.map((v, index) => {\n options.seenObjects.push({ propertyName: `index ${index}`, obj: null });\n try {\n return serializeValue(v, options);\n }\n finally {\n options.seenObjects.pop();\n }\n });\n}\nfunction getISOString(date) {\n const isoStr = date.toISOString();\n return date.getUTCMilliseconds() !== 0 ? isoStr : isoStr.slice(0, -5) + 'Z';\n}\nfunction serializeValue(value, options) {\n if (value instanceof Map || isMap(value)) {\n const obj = Object.create(null);\n for (const [k, v] of value) {\n if (typeof k !== 'string') {\n throw new BSONError('Can only serialize maps with string keys');\n }\n obj[k] = v;\n }\n return serializeValue(obj, options);\n }\n if ((typeof value === 'object' || typeof value === 'function') && value !== null) {\n const index = options.seenObjects.findIndex(entry => entry.obj === value);\n if (index !== -1) {\n const props = options.seenObjects.map(entry => entry.propertyName);\n const leadingPart = props\n .slice(0, index)\n .map(prop => `${prop} -> `)\n .join('');\n const alreadySeen = props[index];\n const circularPart = ' -> ' +\n props\n .slice(index + 1, props.length - 1)\n .map(prop => `${prop} -> `)\n .join('');\n const current = props[props.length - 1];\n const leadingSpace = ' '.repeat(leadingPart.length + alreadySeen.length / 2);\n const dashes = '-'.repeat(circularPart.length + (alreadySeen.length + current.length) / 2 - 1);\n throw new BSONError('Converting circular structure to EJSON:\\n' +\n ` ${leadingPart}${alreadySeen}${circularPart}${current}\\n` +\n ` ${leadingSpace}\\\\${dashes}/`);\n }\n options.seenObjects[options.seenObjects.length - 1].obj = value;\n }\n if (Array.isArray(value))\n return serializeArray(value, options);\n if (value === undefined)\n return null;\n if (value instanceof Date || isDate(value)) {\n const dateNum = value.getTime(), inRange = dateNum > -1 && dateNum < 253402318800000;\n if (options.legacy) {\n return options.relaxed && inRange\n ? { $date: value.getTime() }\n : { $date: getISOString(value) };\n }\n return options.relaxed && inRange\n ? { $date: getISOString(value) }\n : { $date: { $numberLong: value.getTime().toString() } };\n }\n if (typeof value === 'number' && (!options.relaxed || !isFinite(value))) {\n if (Number.isInteger(value) && !Object.is(value, -0)) {\n if (value >= BSON_INT32_MIN && value <= BSON_INT32_MAX) {\n return { $numberInt: value.toString() };\n }\n if (value >= BSON_INT64_MIN && value <= BSON_INT64_MAX) {\n return { $numberLong: value.toString() };\n }\n }\n return { $numberDouble: Object.is(value, -0) ? '-0.0' : value.toString() };\n }\n if (typeof value === 'bigint') {\n if (!options.relaxed) {\n return { $numberLong: BigInt.asIntN(64, value).toString() };\n }\n return Number(BigInt.asIntN(64, value));\n }\n if (value instanceof RegExp || isRegExp(value)) {\n let flags = value.flags;\n if (flags === undefined) {\n const match = value.toString().match(/[gimuy]*$/);\n if (match) {\n flags = match[0];\n }\n }\n const rx = new BSONRegExp(value.source, flags);\n return rx.toExtendedJSON(options);\n }\n if (value != null && typeof value === 'object')\n return serializeDocument(value, options);\n return value;\n}\nconst BSON_TYPE_MAPPINGS = {\n Binary: (o) => new Binary(o.value(), o.sub_type),\n Code: (o) => new Code(o.code, o.scope),\n DBRef: (o) => new DBRef(o.collection || o.namespace, o.oid, o.db, o.fields),\n Decimal128: (o) => new Decimal128(o.bytes),\n Double: (o) => new Double(o.value),\n Int32: (o) => new Int32(o.value),\n Long: (o) => Long.fromBits(o.low != null ? o.low : o.low_, o.low != null ? o.high : o.high_, o.low != null ? o.unsigned : o.unsigned_),\n MaxKey: () => new MaxKey(),\n MinKey: () => new MinKey(),\n ObjectId: (o) => new ObjectId(o),\n BSONRegExp: (o) => new BSONRegExp(o.pattern, o.options),\n BSONSymbol: (o) => new BSONSymbol(o.value),\n Timestamp: (o) => Timestamp.fromBits(o.low, o.high)\n};\nfunction serializeDocument(doc, options) {\n if (doc == null || typeof doc !== 'object')\n throw new BSONError('not an object instance');\n const bsontype = doc._bsontype;\n if (typeof bsontype === 'undefined') {\n const _doc = {};\n for (const name of Object.keys(doc)) {\n options.seenObjects.push({ propertyName: name, obj: null });\n try {\n const value = serializeValue(doc[name], options);\n if (name === '__proto__') {\n Object.defineProperty(_doc, name, {\n value,\n writable: true,\n enumerable: true,\n configurable: true\n });\n }\n else {\n _doc[name] = value;\n }\n }\n finally {\n options.seenObjects.pop();\n }\n }\n return _doc;\n }\n else if (doc != null &&\n typeof doc === 'object' &&\n typeof doc._bsontype === 'string' &&\n doc[BSON_VERSION_SYMBOL] !== BSON_MAJOR_VERSION) {\n throw new BSONVersionError();\n }\n else if (isBSONType(doc)) {\n let outDoc = doc;\n if (typeof outDoc.toExtendedJSON !== 'function') {\n const mapper = BSON_TYPE_MAPPINGS[doc._bsontype];\n if (!mapper) {\n throw new BSONError('Unrecognized or invalid _bsontype: ' + doc._bsontype);\n }\n outDoc = mapper(outDoc);\n }\n if (bsontype === 'Code' && outDoc.scope) {\n outDoc = new Code(outDoc.code, serializeValue(outDoc.scope, options));\n }\n else if (bsontype === 'DBRef' && outDoc.oid) {\n outDoc = new DBRef(serializeValue(outDoc.collection, options), serializeValue(outDoc.oid, options), serializeValue(outDoc.db, options), serializeValue(outDoc.fields, options));\n }\n return outDoc.toExtendedJSON(options);\n }\n else {\n throw new BSONError('_bsontype must be a string, but was: ' + typeof bsontype);\n }\n}\nfunction parse(text, options) {\n const ejsonOptions = {\n useBigInt64: options?.useBigInt64 ?? false,\n relaxed: options?.relaxed ?? true,\n legacy: options?.legacy ?? false\n };\n return JSON.parse(text, (key, value) => {\n if (key.indexOf('\\x00') !== -1) {\n throw new BSONError(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(key)}`);\n }\n return deserializeValue(value, ejsonOptions);\n });\n}\nfunction stringify(value, replacer, space, options) {\n if (space != null && typeof space === 'object') {\n options = space;\n space = 0;\n }\n if (replacer != null && typeof replacer === 'object' && !Array.isArray(replacer)) {\n options = replacer;\n replacer = undefined;\n space = 0;\n }\n const serializeOptions = Object.assign({ relaxed: true, legacy: false }, options, {\n seenObjects: [{ propertyName: '(root)', obj: null }]\n });\n const doc = serializeValue(value, serializeOptions);\n return JSON.stringify(doc, replacer, space);\n}\nfunction EJSONserialize(value, options) {\n options = options || {};\n return JSON.parse(stringify(value, options));\n}\nfunction EJSONdeserialize(ejson, options) {\n options = options || {};\n return parse(JSON.stringify(ejson), options);\n}\nconst EJSON = Object.create(null);\nEJSON.parse = parse;\nEJSON.stringify = stringify;\nEJSON.serialize = EJSONserialize;\nEJSON.deserialize = EJSONdeserialize;\nObject.freeze(EJSON);\n\nfunction getSize(source, offset) {\n try {\n return NumberUtils.getNonnegativeInt32LE(source, offset);\n }\n catch (cause) {\n throw new BSONOffsetError('BSON size cannot be negative', offset, { cause });\n }\n}\nfunction findNull(bytes, offset) {\n let nullTerminatorOffset = offset;\n for (; bytes[nullTerminatorOffset] !== 0x00; nullTerminatorOffset++)\n ;\n if (nullTerminatorOffset === bytes.length - 1) {\n throw new BSONOffsetError('Null terminator not found', offset);\n }\n return nullTerminatorOffset;\n}\nfunction parseToElements(bytes, startOffset = 0) {\n startOffset ??= 0;\n if (bytes.length < 5) {\n throw new BSONOffsetError(`Input must be at least 5 bytes, got ${bytes.length} bytes`, startOffset);\n }\n const documentSize = getSize(bytes, startOffset);\n if (documentSize > bytes.length - startOffset) {\n throw new BSONOffsetError(`Parsed documentSize (${documentSize} bytes) does not match input length (${bytes.length} bytes)`, startOffset);\n }\n if (bytes[startOffset + documentSize - 1] !== 0x00) {\n throw new BSONOffsetError('BSON documents must end in 0x00', startOffset + documentSize);\n }\n const elements = [];\n let offset = startOffset + 4;\n while (offset <= documentSize + startOffset) {\n const type = bytes[offset];\n offset += 1;\n if (type === 0) {\n if (offset - startOffset !== documentSize) {\n throw new BSONOffsetError(`Invalid 0x00 type byte`, offset);\n }\n break;\n }\n const nameOffset = offset;\n const nameLength = findNull(bytes, offset) - nameOffset;\n offset += nameLength + 1;\n let length;\n if (type === 1 ||\n type === 18 ||\n type === 9 ||\n type === 17) {\n length = 8;\n }\n else if (type === 16) {\n length = 4;\n }\n else if (type === 7) {\n length = 12;\n }\n else if (type === 19) {\n length = 16;\n }\n else if (type === 8) {\n length = 1;\n }\n else if (type === 10 ||\n type === 6 ||\n type === 127 ||\n type === 255) {\n length = 0;\n }\n else if (type === 11) {\n length = findNull(bytes, findNull(bytes, offset) + 1) + 1 - offset;\n }\n else if (type === 3 ||\n type === 4 ||\n type === 15) {\n length = getSize(bytes, offset);\n }\n else if (type === 2 ||\n type === 5 ||\n type === 12 ||\n type === 13 ||\n type === 14) {\n length = getSize(bytes, offset) + 4;\n if (type === 5) {\n length += 1;\n }\n if (type === 12) {\n length += 12;\n }\n }\n else {\n throw new BSONOffsetError(`Invalid 0x${type.toString(16).padStart(2, '0')} type byte`, offset);\n }\n if (length > documentSize) {\n throw new BSONOffsetError('value reports length larger than document', offset);\n }\n elements.push([type, nameOffset, nameLength, offset, length]);\n offset += length;\n }\n return elements;\n}\n\nconst onDemand = Object.create(null);\nonDemand.parseToElements = parseToElements;\nonDemand.ByteUtils = ByteUtils;\nonDemand.NumberUtils = NumberUtils;\nObject.freeze(onDemand);\n\nconst MAXSIZE = 1024 * 1024 * 17;\nlet buffer = ByteUtils.allocate(MAXSIZE);\nfunction setInternalBufferSize(size) {\n if (buffer.length < size) {\n buffer = ByteUtils.allocate(size);\n }\n}\nfunction serialize(object, options = {}) {\n const checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;\n const serializeFunctions = typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n const ignoreUndefined = typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : true;\n const minInternalBufferSize = typeof options.minInternalBufferSize === 'number' ? options.minInternalBufferSize : MAXSIZE;\n if (buffer.length < minInternalBufferSize) {\n buffer = ByteUtils.allocate(minInternalBufferSize);\n }\n const serializationIndex = serializeInto(buffer, object, checkKeys, 0, 0, serializeFunctions, ignoreUndefined, null);\n const finishedBuffer = ByteUtils.allocateUnsafe(serializationIndex);\n finishedBuffer.set(buffer.subarray(0, serializationIndex), 0);\n return finishedBuffer;\n}\nfunction serializeWithBufferAndIndex(object, finalBuffer, options = {}) {\n const checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;\n const serializeFunctions = typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n const ignoreUndefined = typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : true;\n const startIndex = typeof options.index === 'number' ? options.index : 0;\n const serializationIndex = serializeInto(buffer, object, checkKeys, 0, 0, serializeFunctions, ignoreUndefined, null);\n finalBuffer.set(buffer.subarray(0, serializationIndex), startIndex);\n return startIndex + serializationIndex - 1;\n}\nfunction deserialize(buffer, options = {}) {\n return internalDeserialize(ByteUtils.toLocalBufferType(buffer), options);\n}\nfunction calculateObjectSize(object, options = {}) {\n options = options || {};\n const serializeFunctions = typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n const ignoreUndefined = typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : true;\n return internalCalculateObjectSize(object, serializeFunctions, ignoreUndefined);\n}\nfunction deserializeStream(data, startIndex, numberOfDocuments, documents, docStartIndex, options) {\n const internalOptions = Object.assign({ allowObjectSmallerThanBufferSize: true, index: 0 }, options);\n const bufferData = ByteUtils.toLocalBufferType(data);\n let index = startIndex;\n for (let i = 0; i < numberOfDocuments; i++) {\n const size = NumberUtils.getInt32LE(bufferData, index);\n internalOptions.index = index;\n documents[docStartIndex + i] = internalDeserialize(bufferData, internalOptions);\n index = index + size;\n }\n return index;\n}\n\nvar bson = /*#__PURE__*/Object.freeze({\n __proto__: null,\n BSONError: BSONError,\n BSONOffsetError: BSONOffsetError,\n BSONRegExp: BSONRegExp,\n BSONRuntimeError: BSONRuntimeError,\n BSONSymbol: BSONSymbol,\n BSONType: BSONType,\n BSONValue: BSONValue,\n BSONVersionError: BSONVersionError,\n Binary: Binary,\n Code: Code,\n DBRef: DBRef,\n Decimal128: Decimal128,\n Double: Double,\n EJSON: EJSON,\n Int32: Int32,\n Long: Long,\n MaxKey: MaxKey,\n MinKey: MinKey,\n ObjectId: ObjectId,\n Timestamp: Timestamp,\n UUID: UUID,\n calculateObjectSize: calculateObjectSize,\n deserialize: deserialize,\n deserializeStream: deserializeStream,\n onDemand: onDemand,\n serialize: serialize,\n serializeWithBufferAndIndex: serializeWithBufferAndIndex,\n setInternalBufferSize: setInternalBufferSize\n});\n\nexports.BSON = bson;\nexports.BSONError = BSONError;\nexports.BSONOffsetError = BSONOffsetError;\nexports.BSONRegExp = BSONRegExp;\nexports.BSONRuntimeError = BSONRuntimeError;\nexports.BSONSymbol = BSONSymbol;\nexports.BSONType = BSONType;\nexports.BSONValue = BSONValue;\nexports.BSONVersionError = BSONVersionError;\nexports.Binary = Binary;\nexports.Code = Code;\nexports.DBRef = DBRef;\nexports.Decimal128 = Decimal128;\nexports.Double = Double;\nexports.EJSON = EJSON;\nexports.Int32 = Int32;\nexports.Long = Long;\nexports.MaxKey = MaxKey;\nexports.MinKey = MinKey;\nexports.ObjectId = ObjectId;\nexports.Timestamp = Timestamp;\nexports.UUID = UUID;\nexports.calculateObjectSize = calculateObjectSize;\nexports.deserialize = deserialize;\nexports.deserializeStream = deserializeStream;\nexports.onDemand = onDemand;\nexports.serialize = serialize;\nexports.serializeWithBufferAndIndex = serializeWithBufferAndIndex;\nexports.setInternalBufferSize = setInternalBufferSize;\n//# sourceMappingURL=bson.cjs.map\n","\"use strict\";\nimport * as BSON from \"bson\";\nexport const serialize = (...args) => Buffer.from(BSON.serialize(...args)).toString(\"latin1\");\nexport const deserialize = (buffer) => {\n return BSON.deserialize(new Uint8Array(Array.from(buffer).map((c) => c.charCodeAt(0))));\n};\n","/**\n* @vue/shared v3.5.13\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\n/*! #__NO_SIDE_EFFECTS__ */\n// @__NO_SIDE_EFFECTS__\nfunction makeMap(str) {\n const map = /* @__PURE__ */ Object.create(null);\n for (const key of str.split(\",\")) map[key] = 1;\n return (val) => val in map;\n}\n\nconst EMPTY_OBJ = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze({}) : {};\nconst EMPTY_ARR = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze([]) : [];\nconst NOOP = () => {\n};\nconst NO = () => false;\nconst isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter\n(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);\nconst isModelListener = (key) => key.startsWith(\"onUpdate:\");\nconst extend = Object.assign;\nconst remove = (arr, el) => {\n const i = arr.indexOf(el);\n if (i > -1) {\n arr.splice(i, 1);\n }\n};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\nconst isArray = Array.isArray;\nconst isMap = (val) => toTypeString(val) === \"[object Map]\";\nconst isSet = (val) => toTypeString(val) === \"[object Set]\";\nconst isDate = (val) => toTypeString(val) === \"[object Date]\";\nconst isRegExp = (val) => toTypeString(val) === \"[object RegExp]\";\nconst isFunction = (val) => typeof val === \"function\";\nconst isString = (val) => typeof val === \"string\";\nconst isSymbol = (val) => typeof val === \"symbol\";\nconst isObject = (val) => val !== null && typeof val === \"object\";\nconst isPromise = (val) => {\n return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);\n};\nconst objectToString = Object.prototype.toString;\nconst toTypeString = (value) => objectToString.call(value);\nconst toRawType = (value) => {\n return toTypeString(value).slice(8, -1);\n};\nconst isPlainObject = (val) => toTypeString(val) === \"[object Object]\";\nconst isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nconst isReservedProp = /* @__PURE__ */ makeMap(\n // the leading comma is intentional so empty string \"\" is also included\n \",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted\"\n);\nconst isBuiltInDirective = /* @__PURE__ */ makeMap(\n \"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo\"\n);\nconst cacheStringFunction = (fn) => {\n const cache = /* @__PURE__ */ Object.create(null);\n return (str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n};\nconst camelizeRE = /-(\\w)/g;\nconst camelize = cacheStringFunction(\n (str) => {\n return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n }\n);\nconst hyphenateRE = /\\B([A-Z])/g;\nconst hyphenate = cacheStringFunction(\n (str) => str.replace(hyphenateRE, \"-$1\").toLowerCase()\n);\nconst capitalize = cacheStringFunction((str) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n});\nconst toHandlerKey = cacheStringFunction(\n (str) => {\n const s = str ? `on${capitalize(str)}` : ``;\n return s;\n }\n);\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\nconst invokeArrayFns = (fns, ...arg) => {\n for (let i = 0; i < fns.length; i++) {\n fns[i](...arg);\n }\n};\nconst def = (obj, key, value, writable = false) => {\n Object.defineProperty(obj, key, {\n configurable: true,\n enumerable: false,\n writable,\n value\n });\n};\nconst looseToNumber = (val) => {\n const n = parseFloat(val);\n return isNaN(n) ? val : n;\n};\nconst toNumber = (val) => {\n const n = isString(val) ? Number(val) : NaN;\n return isNaN(n) ? val : n;\n};\nlet _globalThis;\nconst getGlobalThis = () => {\n return _globalThis || (_globalThis = typeof globalThis !== \"undefined\" ? globalThis : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : {});\n};\nconst identRE = /^[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*$/;\nfunction genPropsAccessExp(name) {\n return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`;\n}\nfunction genCacheKey(source, options) {\n return source + JSON.stringify(\n options,\n (_, val) => typeof val === \"function\" ? val.toString() : val\n );\n}\n\nconst PatchFlags = {\n \"TEXT\": 1,\n \"1\": \"TEXT\",\n \"CLASS\": 2,\n \"2\": \"CLASS\",\n \"STYLE\": 4,\n \"4\": \"STYLE\",\n \"PROPS\": 8,\n \"8\": \"PROPS\",\n \"FULL_PROPS\": 16,\n \"16\": \"FULL_PROPS\",\n \"NEED_HYDRATION\": 32,\n \"32\": \"NEED_HYDRATION\",\n \"STABLE_FRAGMENT\": 64,\n \"64\": \"STABLE_FRAGMENT\",\n \"KEYED_FRAGMENT\": 128,\n \"128\": \"KEYED_FRAGMENT\",\n \"UNKEYED_FRAGMENT\": 256,\n \"256\": \"UNKEYED_FRAGMENT\",\n \"NEED_PATCH\": 512,\n \"512\": \"NEED_PATCH\",\n \"DYNAMIC_SLOTS\": 1024,\n \"1024\": \"DYNAMIC_SLOTS\",\n \"DEV_ROOT_FRAGMENT\": 2048,\n \"2048\": \"DEV_ROOT_FRAGMENT\",\n \"CACHED\": -1,\n \"-1\": \"CACHED\",\n \"BAIL\": -2,\n \"-2\": \"BAIL\"\n};\nconst PatchFlagNames = {\n [1]: `TEXT`,\n [2]: `CLASS`,\n [4]: `STYLE`,\n [8]: `PROPS`,\n [16]: `FULL_PROPS`,\n [32]: `NEED_HYDRATION`,\n [64]: `STABLE_FRAGMENT`,\n [128]: `KEYED_FRAGMENT`,\n [256]: `UNKEYED_FRAGMENT`,\n [512]: `NEED_PATCH`,\n [1024]: `DYNAMIC_SLOTS`,\n [2048]: `DEV_ROOT_FRAGMENT`,\n [-1]: `HOISTED`,\n [-2]: `BAIL`\n};\n\nconst ShapeFlags = {\n \"ELEMENT\": 1,\n \"1\": \"ELEMENT\",\n \"FUNCTIONAL_COMPONENT\": 2,\n \"2\": \"FUNCTIONAL_COMPONENT\",\n \"STATEFUL_COMPONENT\": 4,\n \"4\": \"STATEFUL_COMPONENT\",\n \"TEXT_CHILDREN\": 8,\n \"8\": \"TEXT_CHILDREN\",\n \"ARRAY_CHILDREN\": 16,\n \"16\": \"ARRAY_CHILDREN\",\n \"SLOTS_CHILDREN\": 32,\n \"32\": \"SLOTS_CHILDREN\",\n \"TELEPORT\": 64,\n \"64\": \"TELEPORT\",\n \"SUSPENSE\": 128,\n \"128\": \"SUSPENSE\",\n \"COMPONENT_SHOULD_KEEP_ALIVE\": 256,\n \"256\": \"COMPONENT_SHOULD_KEEP_ALIVE\",\n \"COMPONENT_KEPT_ALIVE\": 512,\n \"512\": \"COMPONENT_KEPT_ALIVE\",\n \"COMPONENT\": 6,\n \"6\": \"COMPONENT\"\n};\n\nconst SlotFlags = {\n \"STABLE\": 1,\n \"1\": \"STABLE\",\n \"DYNAMIC\": 2,\n \"2\": \"DYNAMIC\",\n \"FORWARDED\": 3,\n \"3\": \"FORWARDED\"\n};\nconst slotFlagsText = {\n [1]: \"STABLE\",\n [2]: \"DYNAMIC\",\n [3]: \"FORWARDED\"\n};\n\nconst GLOBALS_ALLOWED = \"Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol\";\nconst isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);\nconst isGloballyWhitelisted = isGloballyAllowed;\n\nconst range = 2;\nfunction generateCodeFrame(source, start = 0, end = source.length) {\n start = Math.max(0, Math.min(start, source.length));\n end = Math.max(0, Math.min(end, source.length));\n if (start > end) return \"\";\n let lines = source.split(/(\\r?\\n)/);\n const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);\n lines = lines.filter((_, idx) => idx % 2 === 0);\n let count = 0;\n const res = [];\n for (let i = 0; i < lines.length; i++) {\n count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0);\n if (count >= start) {\n for (let j = i - range; j <= i + range || end > count; j++) {\n if (j < 0 || j >= lines.length) continue;\n const line = j + 1;\n res.push(\n `${line}${\" \".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`\n );\n const lineLength = lines[j].length;\n const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0;\n if (j === i) {\n const pad = start - (count - (lineLength + newLineSeqLength));\n const length = Math.max(\n 1,\n end > count ? lineLength - pad : end - start\n );\n res.push(` | ` + \" \".repeat(pad) + \"^\".repeat(length));\n } else if (j > i) {\n if (end > count) {\n const length = Math.max(Math.min(end - count, lineLength), 1);\n res.push(` | ` + \"^\".repeat(length));\n }\n count += lineLength + newLineSeqLength;\n }\n }\n break;\n }\n }\n return res.join(\"\\n\");\n}\n\nfunction normalizeStyle(value) {\n if (isArray(value)) {\n const res = {};\n for (let i = 0; i < value.length; i++) {\n const item = value[i];\n const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);\n if (normalized) {\n for (const key in normalized) {\n res[key] = normalized[key];\n }\n }\n }\n return res;\n } else if (isString(value) || isObject(value)) {\n return value;\n }\n}\nconst listDelimiterRE = /;(?![^(]*\\))/g;\nconst propertyDelimiterRE = /:([^]+)/;\nconst styleCommentRE = /\\/\\*[^]*?\\*\\//g;\nfunction parseStringStyle(cssText) {\n const ret = {};\n cssText.replace(styleCommentRE, \"\").split(listDelimiterRE).forEach((item) => {\n if (item) {\n const tmp = item.split(propertyDelimiterRE);\n tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());\n }\n });\n return ret;\n}\nfunction stringifyStyle(styles) {\n if (!styles) return \"\";\n if (isString(styles)) return styles;\n let ret = \"\";\n for (const key in styles) {\n const value = styles[key];\n if (isString(value) || typeof value === \"number\") {\n const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);\n ret += `${normalizedKey}:${value};`;\n }\n }\n return ret;\n}\nfunction normalizeClass(value) {\n let res = \"\";\n if (isString(value)) {\n res = value;\n } else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n const normalized = normalizeClass(value[i]);\n if (normalized) {\n res += normalized + \" \";\n }\n }\n } else if (isObject(value)) {\n for (const name in value) {\n if (value[name]) {\n res += name + \" \";\n }\n }\n }\n return res.trim();\n}\nfunction normalizeProps(props) {\n if (!props) return null;\n let { class: klass, style } = props;\n if (klass && !isString(klass)) {\n props.class = normalizeClass(klass);\n }\n if (style) {\n props.style = normalizeStyle(style);\n }\n return props;\n}\n\nconst HTML_TAGS = \"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot\";\nconst SVG_TAGS = \"svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view\";\nconst MATH_TAGS = \"annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics\";\nconst VOID_TAGS = \"area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr\";\nconst isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);\nconst isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);\nconst isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);\nconst isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);\n\nconst specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nconst isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);\nconst isBooleanAttr = /* @__PURE__ */ makeMap(\n specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`\n);\nfunction includeBooleanAttr(value) {\n return !!value || value === \"\";\n}\nconst unsafeAttrCharRE = /[>/=\"'\\u0009\\u000a\\u000c\\u0020]/;\nconst attrValidationCache = {};\nfunction isSSRSafeAttrName(name) {\n if (attrValidationCache.hasOwnProperty(name)) {\n return attrValidationCache[name];\n }\n const isUnsafe = unsafeAttrCharRE.test(name);\n if (isUnsafe) {\n console.error(`unsafe attribute name: ${name}`);\n }\n return attrValidationCache[name] = !isUnsafe;\n}\nconst propsToAttrMap = {\n acceptCharset: \"accept-charset\",\n className: \"class\",\n htmlFor: \"for\",\n httpEquiv: \"http-equiv\"\n};\nconst isKnownHtmlAttr = /* @__PURE__ */ makeMap(\n `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`\n);\nconst isKnownSvgAttr = /* @__PURE__ */ makeMap(\n `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`\n);\nconst isKnownMathMLAttr = /* @__PURE__ */ makeMap(\n `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`\n);\nfunction isRenderableAttrValue(value) {\n if (value == null) {\n return false;\n }\n const type = typeof value;\n return type === \"string\" || type === \"number\" || type === \"boolean\";\n}\n\nconst escapeRE = /[\"'&<>]/;\nfunction escapeHtml(string) {\n const str = \"\" + string;\n const match = escapeRE.exec(str);\n if (!match) {\n return str;\n }\n let html = \"\";\n let escaped;\n let index;\n let lastIndex = 0;\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34:\n escaped = \""\";\n break;\n case 38:\n escaped = \"&\";\n break;\n case 39:\n escaped = \"'\";\n break;\n case 60:\n escaped = \"<\";\n break;\n case 62:\n escaped = \">\";\n break;\n default:\n continue;\n }\n if (lastIndex !== index) {\n html += str.slice(lastIndex, index);\n }\n lastIndex = index + 1;\n html += escaped;\n }\n return lastIndex !== index ? html + str.slice(lastIndex, index) : html;\n}\nconst commentStripRE = /^-?>||--!>|?@[\\\\\\]^`{|}~]/g;\nfunction getEscapedCssVarName(key, doubleEscape) {\n return key.replace(\n cssVarNameEscapeSymbolsRE,\n (s) => doubleEscape ? s === '\"' ? '\\\\\\\\\\\\\"' : `\\\\\\\\${s}` : `\\\\${s}`\n );\n}\n\nfunction looseCompareArrays(a, b) {\n if (a.length !== b.length) return false;\n let equal = true;\n for (let i = 0; equal && i < a.length; i++) {\n equal = looseEqual(a[i], b[i]);\n }\n return equal;\n}\nfunction looseEqual(a, b) {\n if (a === b) return true;\n let aValidType = isDate(a);\n let bValidType = isDate(b);\n if (aValidType || bValidType) {\n return aValidType && bValidType ? a.getTime() === b.getTime() : false;\n }\n aValidType = isSymbol(a);\n bValidType = isSymbol(b);\n if (aValidType || bValidType) {\n return a === b;\n }\n aValidType = isArray(a);\n bValidType = isArray(b);\n if (aValidType || bValidType) {\n return aValidType && bValidType ? looseCompareArrays(a, b) : false;\n }\n aValidType = isObject(a);\n bValidType = isObject(b);\n if (aValidType || bValidType) {\n if (!aValidType || !bValidType) {\n return false;\n }\n const aKeysCount = Object.keys(a).length;\n const bKeysCount = Object.keys(b).length;\n if (aKeysCount !== bKeysCount) {\n return false;\n }\n for (const key in a) {\n const aHasKey = a.hasOwnProperty(key);\n const bHasKey = b.hasOwnProperty(key);\n if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {\n return false;\n }\n }\n }\n return String(a) === String(b);\n}\nfunction looseIndexOf(arr, val) {\n return arr.findIndex((item) => looseEqual(item, val));\n}\n\nconst isRef = (val) => {\n return !!(val && val[\"__v_isRef\"] === true);\n};\nconst toDisplayString = (val) => {\n return isString(val) ? val : val == null ? \"\" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);\n};\nconst replacer = (_key, val) => {\n if (isRef(val)) {\n return replacer(_key, val.value);\n } else if (isMap(val)) {\n return {\n [`Map(${val.size})`]: [...val.entries()].reduce(\n (entries, [key, val2], i) => {\n entries[stringifySymbol(key, i) + \" =>\"] = val2;\n return entries;\n },\n {}\n )\n };\n } else if (isSet(val)) {\n return {\n [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))\n };\n } else if (isSymbol(val)) {\n return stringifySymbol(val);\n } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {\n return String(val);\n }\n return val;\n};\nconst stringifySymbol = (v, i = \"\") => {\n var _a;\n return (\n // Symbol.description in es2019+ so we need to cast here to pass\n // the lib: es2016 check\n isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v\n );\n};\n\nexport { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, camelize, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };\n","/**\n* @vue/reactivity v3.5.13\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nimport { hasChanged, extend, isArray, isIntegerKey, isSymbol, isMap, hasOwn, isObject, makeMap, toRawType, capitalize, def, isFunction, EMPTY_OBJ, isSet, isPlainObject, NOOP, remove } from '@vue/shared';\n\nfunction warn(msg, ...args) {\n console.warn(`[Vue warn] ${msg}`, ...args);\n}\n\nlet activeEffectScope;\nclass EffectScope {\n constructor(detached = false) {\n this.detached = detached;\n /**\n * @internal\n */\n this._active = true;\n /**\n * @internal\n */\n this.effects = [];\n /**\n * @internal\n */\n this.cleanups = [];\n this._isPaused = false;\n this.parent = activeEffectScope;\n if (!detached && activeEffectScope) {\n this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(\n this\n ) - 1;\n }\n }\n get active() {\n return this._active;\n }\n pause() {\n if (this._active) {\n this._isPaused = true;\n let i, l;\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].pause();\n }\n }\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].pause();\n }\n }\n }\n /**\n * Resumes the effect scope, including all child scopes and effects.\n */\n resume() {\n if (this._active) {\n if (this._isPaused) {\n this._isPaused = false;\n let i, l;\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].resume();\n }\n }\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].resume();\n }\n }\n }\n }\n run(fn) {\n if (this._active) {\n const currentEffectScope = activeEffectScope;\n try {\n activeEffectScope = this;\n return fn();\n } finally {\n activeEffectScope = currentEffectScope;\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(`cannot run an inactive effect scope.`);\n }\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n on() {\n activeEffectScope = this;\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n off() {\n activeEffectScope = this.parent;\n }\n stop(fromParent) {\n if (this._active) {\n this._active = false;\n let i, l;\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].stop();\n }\n this.effects.length = 0;\n for (i = 0, l = this.cleanups.length; i < l; i++) {\n this.cleanups[i]();\n }\n this.cleanups.length = 0;\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].stop(true);\n }\n this.scopes.length = 0;\n }\n if (!this.detached && this.parent && !fromParent) {\n const last = this.parent.scopes.pop();\n if (last && last !== this) {\n this.parent.scopes[this.index] = last;\n last.index = this.index;\n }\n }\n this.parent = void 0;\n }\n }\n}\nfunction effectScope(detached) {\n return new EffectScope(detached);\n}\nfunction getCurrentScope() {\n return activeEffectScope;\n}\nfunction onScopeDispose(fn, failSilently = false) {\n if (activeEffectScope) {\n activeEffectScope.cleanups.push(fn);\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onScopeDispose() is called when there is no active effect scope to be associated with.`\n );\n }\n}\n\nlet activeSub;\nconst EffectFlags = {\n \"ACTIVE\": 1,\n \"1\": \"ACTIVE\",\n \"RUNNING\": 2,\n \"2\": \"RUNNING\",\n \"TRACKING\": 4,\n \"4\": \"TRACKING\",\n \"NOTIFIED\": 8,\n \"8\": \"NOTIFIED\",\n \"DIRTY\": 16,\n \"16\": \"DIRTY\",\n \"ALLOW_RECURSE\": 32,\n \"32\": \"ALLOW_RECURSE\",\n \"PAUSED\": 64,\n \"64\": \"PAUSED\"\n};\nconst pausedQueueEffects = /* @__PURE__ */ new WeakSet();\nclass ReactiveEffect {\n constructor(fn) {\n this.fn = fn;\n /**\n * @internal\n */\n this.deps = void 0;\n /**\n * @internal\n */\n this.depsTail = void 0;\n /**\n * @internal\n */\n this.flags = 1 | 4;\n /**\n * @internal\n */\n this.next = void 0;\n /**\n * @internal\n */\n this.cleanup = void 0;\n this.scheduler = void 0;\n if (activeEffectScope && activeEffectScope.active) {\n activeEffectScope.effects.push(this);\n }\n }\n pause() {\n this.flags |= 64;\n }\n resume() {\n if (this.flags & 64) {\n this.flags &= ~64;\n if (pausedQueueEffects.has(this)) {\n pausedQueueEffects.delete(this);\n this.trigger();\n }\n }\n }\n /**\n * @internal\n */\n notify() {\n if (this.flags & 2 && !(this.flags & 32)) {\n return;\n }\n if (!(this.flags & 8)) {\n batch(this);\n }\n }\n run() {\n if (!(this.flags & 1)) {\n return this.fn();\n }\n this.flags |= 2;\n cleanupEffect(this);\n prepareDeps(this);\n const prevEffect = activeSub;\n const prevShouldTrack = shouldTrack;\n activeSub = this;\n shouldTrack = true;\n try {\n return this.fn();\n } finally {\n if (!!(process.env.NODE_ENV !== \"production\") && activeSub !== this) {\n warn(\n \"Active effect was not restored correctly - this is likely a Vue internal bug.\"\n );\n }\n cleanupDeps(this);\n activeSub = prevEffect;\n shouldTrack = prevShouldTrack;\n this.flags &= ~2;\n }\n }\n stop() {\n if (this.flags & 1) {\n for (let link = this.deps; link; link = link.nextDep) {\n removeSub(link);\n }\n this.deps = this.depsTail = void 0;\n cleanupEffect(this);\n this.onStop && this.onStop();\n this.flags &= ~1;\n }\n }\n trigger() {\n if (this.flags & 64) {\n pausedQueueEffects.add(this);\n } else if (this.scheduler) {\n this.scheduler();\n } else {\n this.runIfDirty();\n }\n }\n /**\n * @internal\n */\n runIfDirty() {\n if (isDirty(this)) {\n this.run();\n }\n }\n get dirty() {\n return isDirty(this);\n }\n}\nlet batchDepth = 0;\nlet batchedSub;\nlet batchedComputed;\nfunction batch(sub, isComputed = false) {\n sub.flags |= 8;\n if (isComputed) {\n sub.next = batchedComputed;\n batchedComputed = sub;\n return;\n }\n sub.next = batchedSub;\n batchedSub = sub;\n}\nfunction startBatch() {\n batchDepth++;\n}\nfunction endBatch() {\n if (--batchDepth > 0) {\n return;\n }\n if (batchedComputed) {\n let e = batchedComputed;\n batchedComputed = void 0;\n while (e) {\n const next = e.next;\n e.next = void 0;\n e.flags &= ~8;\n e = next;\n }\n }\n let error;\n while (batchedSub) {\n let e = batchedSub;\n batchedSub = void 0;\n while (e) {\n const next = e.next;\n e.next = void 0;\n e.flags &= ~8;\n if (e.flags & 1) {\n try {\n ;\n e.trigger();\n } catch (err) {\n if (!error) error = err;\n }\n }\n e = next;\n }\n }\n if (error) throw error;\n}\nfunction prepareDeps(sub) {\n for (let link = sub.deps; link; link = link.nextDep) {\n link.version = -1;\n link.prevActiveLink = link.dep.activeLink;\n link.dep.activeLink = link;\n }\n}\nfunction cleanupDeps(sub) {\n let head;\n let tail = sub.depsTail;\n let link = tail;\n while (link) {\n const prev = link.prevDep;\n if (link.version === -1) {\n if (link === tail) tail = prev;\n removeSub(link);\n removeDep(link);\n } else {\n head = link;\n }\n link.dep.activeLink = link.prevActiveLink;\n link.prevActiveLink = void 0;\n link = prev;\n }\n sub.deps = head;\n sub.depsTail = tail;\n}\nfunction isDirty(sub) {\n for (let link = sub.deps; link; link = link.nextDep) {\n if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {\n return true;\n }\n }\n if (sub._dirty) {\n return true;\n }\n return false;\n}\nfunction refreshComputed(computed) {\n if (computed.flags & 4 && !(computed.flags & 16)) {\n return;\n }\n computed.flags &= ~16;\n if (computed.globalVersion === globalVersion) {\n return;\n }\n computed.globalVersion = globalVersion;\n const dep = computed.dep;\n computed.flags |= 2;\n if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {\n computed.flags &= ~2;\n return;\n }\n const prevSub = activeSub;\n const prevShouldTrack = shouldTrack;\n activeSub = computed;\n shouldTrack = true;\n try {\n prepareDeps(computed);\n const value = computed.fn(computed._value);\n if (dep.version === 0 || hasChanged(value, computed._value)) {\n computed._value = value;\n dep.version++;\n }\n } catch (err) {\n dep.version++;\n throw err;\n } finally {\n activeSub = prevSub;\n shouldTrack = prevShouldTrack;\n cleanupDeps(computed);\n computed.flags &= ~2;\n }\n}\nfunction removeSub(link, soft = false) {\n const { dep, prevSub, nextSub } = link;\n if (prevSub) {\n prevSub.nextSub = nextSub;\n link.prevSub = void 0;\n }\n if (nextSub) {\n nextSub.prevSub = prevSub;\n link.nextSub = void 0;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && dep.subsHead === link) {\n dep.subsHead = nextSub;\n }\n if (dep.subs === link) {\n dep.subs = prevSub;\n if (!prevSub && dep.computed) {\n dep.computed.flags &= ~4;\n for (let l = dep.computed.deps; l; l = l.nextDep) {\n removeSub(l, true);\n }\n }\n }\n if (!soft && !--dep.sc && dep.map) {\n dep.map.delete(dep.key);\n }\n}\nfunction removeDep(link) {\n const { prevDep, nextDep } = link;\n if (prevDep) {\n prevDep.nextDep = nextDep;\n link.prevDep = void 0;\n }\n if (nextDep) {\n nextDep.prevDep = prevDep;\n link.nextDep = void 0;\n }\n}\nfunction effect(fn, options) {\n if (fn.effect instanceof ReactiveEffect) {\n fn = fn.effect.fn;\n }\n const e = new ReactiveEffect(fn);\n if (options) {\n extend(e, options);\n }\n try {\n e.run();\n } catch (err) {\n e.stop();\n throw err;\n }\n const runner = e.run.bind(e);\n runner.effect = e;\n return runner;\n}\nfunction stop(runner) {\n runner.effect.stop();\n}\nlet shouldTrack = true;\nconst trackStack = [];\nfunction pauseTracking() {\n trackStack.push(shouldTrack);\n shouldTrack = false;\n}\nfunction enableTracking() {\n trackStack.push(shouldTrack);\n shouldTrack = true;\n}\nfunction resetTracking() {\n const last = trackStack.pop();\n shouldTrack = last === void 0 ? true : last;\n}\nfunction onEffectCleanup(fn, failSilently = false) {\n if (activeSub instanceof ReactiveEffect) {\n activeSub.cleanup = fn;\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onEffectCleanup() was called when there was no active effect to associate with.`\n );\n }\n}\nfunction cleanupEffect(e) {\n const { cleanup } = e;\n e.cleanup = void 0;\n if (cleanup) {\n const prevSub = activeSub;\n activeSub = void 0;\n try {\n cleanup();\n } finally {\n activeSub = prevSub;\n }\n }\n}\n\nlet globalVersion = 0;\nclass Link {\n constructor(sub, dep) {\n this.sub = sub;\n this.dep = dep;\n this.version = dep.version;\n this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;\n }\n}\nclass Dep {\n constructor(computed) {\n this.computed = computed;\n this.version = 0;\n /**\n * Link between this dep and the current active effect\n */\n this.activeLink = void 0;\n /**\n * Doubly linked list representing the subscribing effects (tail)\n */\n this.subs = void 0;\n /**\n * For object property deps cleanup\n */\n this.map = void 0;\n this.key = void 0;\n /**\n * Subscriber counter\n */\n this.sc = 0;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.subsHead = void 0;\n }\n }\n track(debugInfo) {\n if (!activeSub || !shouldTrack || activeSub === this.computed) {\n return;\n }\n let link = this.activeLink;\n if (link === void 0 || link.sub !== activeSub) {\n link = this.activeLink = new Link(activeSub, this);\n if (!activeSub.deps) {\n activeSub.deps = activeSub.depsTail = link;\n } else {\n link.prevDep = activeSub.depsTail;\n activeSub.depsTail.nextDep = link;\n activeSub.depsTail = link;\n }\n addSub(link);\n } else if (link.version === -1) {\n link.version = this.version;\n if (link.nextDep) {\n const next = link.nextDep;\n next.prevDep = link.prevDep;\n if (link.prevDep) {\n link.prevDep.nextDep = next;\n }\n link.prevDep = activeSub.depsTail;\n link.nextDep = void 0;\n activeSub.depsTail.nextDep = link;\n activeSub.depsTail = link;\n if (activeSub.deps === link) {\n activeSub.deps = next;\n }\n }\n }\n if (!!(process.env.NODE_ENV !== \"production\") && activeSub.onTrack) {\n activeSub.onTrack(\n extend(\n {\n effect: activeSub\n },\n debugInfo\n )\n );\n }\n return link;\n }\n trigger(debugInfo) {\n this.version++;\n globalVersion++;\n this.notify(debugInfo);\n }\n notify(debugInfo) {\n startBatch();\n try {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n for (let head = this.subsHead; head; head = head.nextSub) {\n if (head.sub.onTrigger && !(head.sub.flags & 8)) {\n head.sub.onTrigger(\n extend(\n {\n effect: head.sub\n },\n debugInfo\n )\n );\n }\n }\n }\n for (let link = this.subs; link; link = link.prevSub) {\n if (link.sub.notify()) {\n ;\n link.sub.dep.notify();\n }\n }\n } finally {\n endBatch();\n }\n }\n}\nfunction addSub(link) {\n link.dep.sc++;\n if (link.sub.flags & 4) {\n const computed = link.dep.computed;\n if (computed && !link.dep.subs) {\n computed.flags |= 4 | 16;\n for (let l = computed.deps; l; l = l.nextDep) {\n addSub(l);\n }\n }\n const currentTail = link.dep.subs;\n if (currentTail !== link) {\n link.prevSub = currentTail;\n if (currentTail) currentTail.nextSub = link;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && link.dep.subsHead === void 0) {\n link.dep.subsHead = link;\n }\n link.dep.subs = link;\n }\n}\nconst targetMap = /* @__PURE__ */ new WeakMap();\nconst ITERATE_KEY = Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Object iterate\" : \"\"\n);\nconst MAP_KEY_ITERATE_KEY = Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Map keys iterate\" : \"\"\n);\nconst ARRAY_ITERATE_KEY = Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Array iterate\" : \"\"\n);\nfunction track(target, type, key) {\n if (shouldTrack && activeSub) {\n let depsMap = targetMap.get(target);\n if (!depsMap) {\n targetMap.set(target, depsMap = /* @__PURE__ */ new Map());\n }\n let dep = depsMap.get(key);\n if (!dep) {\n depsMap.set(key, dep = new Dep());\n dep.map = depsMap;\n dep.key = key;\n }\n if (!!(process.env.NODE_ENV !== \"production\")) {\n dep.track({\n target,\n type,\n key\n });\n } else {\n dep.track();\n }\n }\n}\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\n const depsMap = targetMap.get(target);\n if (!depsMap) {\n globalVersion++;\n return;\n }\n const run = (dep) => {\n if (dep) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n dep.trigger({\n target,\n type,\n key,\n newValue,\n oldValue,\n oldTarget\n });\n } else {\n dep.trigger();\n }\n }\n };\n startBatch();\n if (type === \"clear\") {\n depsMap.forEach(run);\n } else {\n const targetIsArray = isArray(target);\n const isArrayIndex = targetIsArray && isIntegerKey(key);\n if (targetIsArray && key === \"length\") {\n const newLength = Number(newValue);\n depsMap.forEach((dep, key2) => {\n if (key2 === \"length\" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {\n run(dep);\n }\n });\n } else {\n if (key !== void 0 || depsMap.has(void 0)) {\n run(depsMap.get(key));\n }\n if (isArrayIndex) {\n run(depsMap.get(ARRAY_ITERATE_KEY));\n }\n switch (type) {\n case \"add\":\n if (!targetIsArray) {\n run(depsMap.get(ITERATE_KEY));\n if (isMap(target)) {\n run(depsMap.get(MAP_KEY_ITERATE_KEY));\n }\n } else if (isArrayIndex) {\n run(depsMap.get(\"length\"));\n }\n break;\n case \"delete\":\n if (!targetIsArray) {\n run(depsMap.get(ITERATE_KEY));\n if (isMap(target)) {\n run(depsMap.get(MAP_KEY_ITERATE_KEY));\n }\n }\n break;\n case \"set\":\n if (isMap(target)) {\n run(depsMap.get(ITERATE_KEY));\n }\n break;\n }\n }\n }\n endBatch();\n}\nfunction getDepFromReactive(object, key) {\n const depMap = targetMap.get(object);\n return depMap && depMap.get(key);\n}\n\nfunction reactiveReadArray(array) {\n const raw = toRaw(array);\n if (raw === array) return raw;\n track(raw, \"iterate\", ARRAY_ITERATE_KEY);\n return isShallow(array) ? raw : raw.map(toReactive);\n}\nfunction shallowReadArray(arr) {\n track(arr = toRaw(arr), \"iterate\", ARRAY_ITERATE_KEY);\n return arr;\n}\nconst arrayInstrumentations = {\n __proto__: null,\n [Symbol.iterator]() {\n return iterator(this, Symbol.iterator, toReactive);\n },\n concat(...args) {\n return reactiveReadArray(this).concat(\n ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)\n );\n },\n entries() {\n return iterator(this, \"entries\", (value) => {\n value[1] = toReactive(value[1]);\n return value;\n });\n },\n every(fn, thisArg) {\n return apply(this, \"every\", fn, thisArg, void 0, arguments);\n },\n filter(fn, thisArg) {\n return apply(this, \"filter\", fn, thisArg, (v) => v.map(toReactive), arguments);\n },\n find(fn, thisArg) {\n return apply(this, \"find\", fn, thisArg, toReactive, arguments);\n },\n findIndex(fn, thisArg) {\n return apply(this, \"findIndex\", fn, thisArg, void 0, arguments);\n },\n findLast(fn, thisArg) {\n return apply(this, \"findLast\", fn, thisArg, toReactive, arguments);\n },\n findLastIndex(fn, thisArg) {\n return apply(this, \"findLastIndex\", fn, thisArg, void 0, arguments);\n },\n // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement\n forEach(fn, thisArg) {\n return apply(this, \"forEach\", fn, thisArg, void 0, arguments);\n },\n includes(...args) {\n return searchProxy(this, \"includes\", args);\n },\n indexOf(...args) {\n return searchProxy(this, \"indexOf\", args);\n },\n join(separator) {\n return reactiveReadArray(this).join(separator);\n },\n // keys() iterator only reads `length`, no optimisation required\n lastIndexOf(...args) {\n return searchProxy(this, \"lastIndexOf\", args);\n },\n map(fn, thisArg) {\n return apply(this, \"map\", fn, thisArg, void 0, arguments);\n },\n pop() {\n return noTracking(this, \"pop\");\n },\n push(...args) {\n return noTracking(this, \"push\", args);\n },\n reduce(fn, ...args) {\n return reduce(this, \"reduce\", fn, args);\n },\n reduceRight(fn, ...args) {\n return reduce(this, \"reduceRight\", fn, args);\n },\n shift() {\n return noTracking(this, \"shift\");\n },\n // slice could use ARRAY_ITERATE but also seems to beg for range tracking\n some(fn, thisArg) {\n return apply(this, \"some\", fn, thisArg, void 0, arguments);\n },\n splice(...args) {\n return noTracking(this, \"splice\", args);\n },\n toReversed() {\n return reactiveReadArray(this).toReversed();\n },\n toSorted(comparer) {\n return reactiveReadArray(this).toSorted(comparer);\n },\n toSpliced(...args) {\n return reactiveReadArray(this).toSpliced(...args);\n },\n unshift(...args) {\n return noTracking(this, \"unshift\", args);\n },\n values() {\n return iterator(this, \"values\", toReactive);\n }\n};\nfunction iterator(self, method, wrapValue) {\n const arr = shallowReadArray(self);\n const iter = arr[method]();\n if (arr !== self && !isShallow(self)) {\n iter._next = iter.next;\n iter.next = () => {\n const result = iter._next();\n if (result.value) {\n result.value = wrapValue(result.value);\n }\n return result;\n };\n }\n return iter;\n}\nconst arrayProto = Array.prototype;\nfunction apply(self, method, fn, thisArg, wrappedRetFn, args) {\n const arr = shallowReadArray(self);\n const needsWrap = arr !== self && !isShallow(self);\n const methodFn = arr[method];\n if (methodFn !== arrayProto[method]) {\n const result2 = methodFn.apply(self, args);\n return needsWrap ? toReactive(result2) : result2;\n }\n let wrappedFn = fn;\n if (arr !== self) {\n if (needsWrap) {\n wrappedFn = function(item, index) {\n return fn.call(this, toReactive(item), index, self);\n };\n } else if (fn.length > 2) {\n wrappedFn = function(item, index) {\n return fn.call(this, item, index, self);\n };\n }\n }\n const result = methodFn.call(arr, wrappedFn, thisArg);\n return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;\n}\nfunction reduce(self, method, fn, args) {\n const arr = shallowReadArray(self);\n let wrappedFn = fn;\n if (arr !== self) {\n if (!isShallow(self)) {\n wrappedFn = function(acc, item, index) {\n return fn.call(this, acc, toReactive(item), index, self);\n };\n } else if (fn.length > 3) {\n wrappedFn = function(acc, item, index) {\n return fn.call(this, acc, item, index, self);\n };\n }\n }\n return arr[method](wrappedFn, ...args);\n}\nfunction searchProxy(self, method, args) {\n const arr = toRaw(self);\n track(arr, \"iterate\", ARRAY_ITERATE_KEY);\n const res = arr[method](...args);\n if ((res === -1 || res === false) && isProxy(args[0])) {\n args[0] = toRaw(args[0]);\n return arr[method](...args);\n }\n return res;\n}\nfunction noTracking(self, method, args = []) {\n pauseTracking();\n startBatch();\n const res = toRaw(self)[method].apply(self, args);\n endBatch();\n resetTracking();\n return res;\n}\n\nconst isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);\nconst builtInSymbols = new Set(\n /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== \"arguments\" && key !== \"caller\").map((key) => Symbol[key]).filter(isSymbol)\n);\nfunction hasOwnProperty(key) {\n if (!isSymbol(key)) key = String(key);\n const obj = toRaw(this);\n track(obj, \"has\", key);\n return obj.hasOwnProperty(key);\n}\nclass BaseReactiveHandler {\n constructor(_isReadonly = false, _isShallow = false) {\n this._isReadonly = _isReadonly;\n this._isShallow = _isShallow;\n }\n get(target, key, receiver) {\n if (key === \"__v_skip\") return target[\"__v_skip\"];\n const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;\n if (key === \"__v_isReactive\") {\n return !isReadonly2;\n } else if (key === \"__v_isReadonly\") {\n return isReadonly2;\n } else if (key === \"__v_isShallow\") {\n return isShallow2;\n } else if (key === \"__v_raw\") {\n if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype\n // this means the receiver is a user proxy of the reactive proxy\n Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {\n return target;\n }\n return;\n }\n const targetIsArray = isArray(target);\n if (!isReadonly2) {\n let fn;\n if (targetIsArray && (fn = arrayInstrumentations[key])) {\n return fn;\n }\n if (key === \"hasOwnProperty\") {\n return hasOwnProperty;\n }\n }\n const res = Reflect.get(\n target,\n key,\n // if this is a proxy wrapping a ref, return methods using the raw ref\n // as receiver so that we don't have to call `toRaw` on the ref in all\n // its class methods\n isRef(target) ? target : receiver\n );\n if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n return res;\n }\n if (!isReadonly2) {\n track(target, \"get\", key);\n }\n if (isShallow2) {\n return res;\n }\n if (isRef(res)) {\n return targetIsArray && isIntegerKey(key) ? res : res.value;\n }\n if (isObject(res)) {\n return isReadonly2 ? readonly(res) : reactive(res);\n }\n return res;\n }\n}\nclass MutableReactiveHandler extends BaseReactiveHandler {\n constructor(isShallow2 = false) {\n super(false, isShallow2);\n }\n set(target, key, value, receiver) {\n let oldValue = target[key];\n if (!this._isShallow) {\n const isOldValueReadonly = isReadonly(oldValue);\n if (!isShallow(value) && !isReadonly(value)) {\n oldValue = toRaw(oldValue);\n value = toRaw(value);\n }\n if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\n if (isOldValueReadonly) {\n return false;\n } else {\n oldValue.value = value;\n return true;\n }\n }\n }\n const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);\n const result = Reflect.set(\n target,\n key,\n value,\n isRef(target) ? target : receiver\n );\n if (target === toRaw(receiver)) {\n if (!hadKey) {\n trigger(target, \"add\", key, value);\n } else if (hasChanged(value, oldValue)) {\n trigger(target, \"set\", key, value, oldValue);\n }\n }\n return result;\n }\n deleteProperty(target, key) {\n const hadKey = hasOwn(target, key);\n const oldValue = target[key];\n const result = Reflect.deleteProperty(target, key);\n if (result && hadKey) {\n trigger(target, \"delete\", key, void 0, oldValue);\n }\n return result;\n }\n has(target, key) {\n const result = Reflect.has(target, key);\n if (!isSymbol(key) || !builtInSymbols.has(key)) {\n track(target, \"has\", key);\n }\n return result;\n }\n ownKeys(target) {\n track(\n target,\n \"iterate\",\n isArray(target) ? \"length\" : ITERATE_KEY\n );\n return Reflect.ownKeys(target);\n }\n}\nclass ReadonlyReactiveHandler extends BaseReactiveHandler {\n constructor(isShallow2 = false) {\n super(true, isShallow2);\n }\n set(target, key) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Set operation on key \"${String(key)}\" failed: target is readonly.`,\n target\n );\n }\n return true;\n }\n deleteProperty(target, key) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Delete operation on key \"${String(key)}\" failed: target is readonly.`,\n target\n );\n }\n return true;\n }\n}\nconst mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();\nconst readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();\nconst shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);\nconst shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);\n\nconst toShallow = (value) => value;\nconst getProto = (v) => Reflect.getPrototypeOf(v);\nfunction createIterableMethod(method, isReadonly2, isShallow2) {\n return function(...args) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const targetIsMap = isMap(rawTarget);\n const isPair = method === \"entries\" || method === Symbol.iterator && targetIsMap;\n const isKeyOnly = method === \"keys\" && targetIsMap;\n const innerIterator = target[method](...args);\n const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;\n !isReadonly2 && track(\n rawTarget,\n \"iterate\",\n isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY\n );\n return {\n // iterator protocol\n next() {\n const { value, done } = innerIterator.next();\n return done ? { value, done } : {\n value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\n done\n };\n },\n // iterable protocol\n [Symbol.iterator]() {\n return this;\n }\n };\n };\n}\nfunction createReadonlyMethod(type) {\n return function(...args) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n warn(\n `${capitalize(type)} operation ${key}failed: target is readonly.`,\n toRaw(this)\n );\n }\n return type === \"delete\" ? false : type === \"clear\" ? void 0 : this;\n };\n}\nfunction createInstrumentations(readonly, shallow) {\n const instrumentations = {\n get(key) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const rawKey = toRaw(key);\n if (!readonly) {\n if (hasChanged(key, rawKey)) {\n track(rawTarget, \"get\", key);\n }\n track(rawTarget, \"get\", rawKey);\n }\n const { has } = getProto(rawTarget);\n const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;\n if (has.call(rawTarget, key)) {\n return wrap(target.get(key));\n } else if (has.call(rawTarget, rawKey)) {\n return wrap(target.get(rawKey));\n } else if (target !== rawTarget) {\n target.get(key);\n }\n },\n get size() {\n const target = this[\"__v_raw\"];\n !readonly && track(toRaw(target), \"iterate\", ITERATE_KEY);\n return Reflect.get(target, \"size\", target);\n },\n has(key) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const rawKey = toRaw(key);\n if (!readonly) {\n if (hasChanged(key, rawKey)) {\n track(rawTarget, \"has\", key);\n }\n track(rawTarget, \"has\", rawKey);\n }\n return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);\n },\n forEach(callback, thisArg) {\n const observed = this;\n const target = observed[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;\n !readonly && track(rawTarget, \"iterate\", ITERATE_KEY);\n return target.forEach((value, key) => {\n return callback.call(thisArg, wrap(value), wrap(key), observed);\n });\n }\n };\n extend(\n instrumentations,\n readonly ? {\n add: createReadonlyMethod(\"add\"),\n set: createReadonlyMethod(\"set\"),\n delete: createReadonlyMethod(\"delete\"),\n clear: createReadonlyMethod(\"clear\")\n } : {\n add(value) {\n if (!shallow && !isShallow(value) && !isReadonly(value)) {\n value = toRaw(value);\n }\n const target = toRaw(this);\n const proto = getProto(target);\n const hadKey = proto.has.call(target, value);\n if (!hadKey) {\n target.add(value);\n trigger(target, \"add\", value, value);\n }\n return this;\n },\n set(key, value) {\n if (!shallow && !isShallow(value) && !isReadonly(value)) {\n value = toRaw(value);\n }\n const target = toRaw(this);\n const { has, get } = getProto(target);\n let hadKey = has.call(target, key);\n if (!hadKey) {\n key = toRaw(key);\n hadKey = has.call(target, key);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n checkIdentityKeys(target, has, key);\n }\n const oldValue = get.call(target, key);\n target.set(key, value);\n if (!hadKey) {\n trigger(target, \"add\", key, value);\n } else if (hasChanged(value, oldValue)) {\n trigger(target, \"set\", key, value, oldValue);\n }\n return this;\n },\n delete(key) {\n const target = toRaw(this);\n const { has, get } = getProto(target);\n let hadKey = has.call(target, key);\n if (!hadKey) {\n key = toRaw(key);\n hadKey = has.call(target, key);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n checkIdentityKeys(target, has, key);\n }\n const oldValue = get ? get.call(target, key) : void 0;\n const result = target.delete(key);\n if (hadKey) {\n trigger(target, \"delete\", key, void 0, oldValue);\n }\n return result;\n },\n clear() {\n const target = toRaw(this);\n const hadItems = target.size !== 0;\n const oldTarget = !!(process.env.NODE_ENV !== \"production\") ? isMap(target) ? new Map(target) : new Set(target) : void 0;\n const result = target.clear();\n if (hadItems) {\n trigger(\n target,\n \"clear\",\n void 0,\n void 0,\n oldTarget\n );\n }\n return result;\n }\n }\n );\n const iteratorMethods = [\n \"keys\",\n \"values\",\n \"entries\",\n Symbol.iterator\n ];\n iteratorMethods.forEach((method) => {\n instrumentations[method] = createIterableMethod(method, readonly, shallow);\n });\n return instrumentations;\n}\nfunction createInstrumentationGetter(isReadonly2, shallow) {\n const instrumentations = createInstrumentations(isReadonly2, shallow);\n return (target, key, receiver) => {\n if (key === \"__v_isReactive\") {\n return !isReadonly2;\n } else if (key === \"__v_isReadonly\") {\n return isReadonly2;\n } else if (key === \"__v_raw\") {\n return target;\n }\n return Reflect.get(\n hasOwn(instrumentations, key) && key in target ? instrumentations : target,\n key,\n receiver\n );\n };\n}\nconst mutableCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(false, false)\n};\nconst shallowCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(false, true)\n};\nconst readonlyCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(true, false)\n};\nconst shallowReadonlyCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(true, true)\n};\nfunction checkIdentityKeys(target, has, key) {\n const rawKey = toRaw(key);\n if (rawKey !== key && has.call(target, rawKey)) {\n const type = toRawType(target);\n warn(\n `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`\n );\n }\n}\n\nconst reactiveMap = /* @__PURE__ */ new WeakMap();\nconst shallowReactiveMap = /* @__PURE__ */ new WeakMap();\nconst readonlyMap = /* @__PURE__ */ new WeakMap();\nconst shallowReadonlyMap = /* @__PURE__ */ new WeakMap();\nfunction targetTypeMap(rawType) {\n switch (rawType) {\n case \"Object\":\n case \"Array\":\n return 1 /* COMMON */;\n case \"Map\":\n case \"Set\":\n case \"WeakMap\":\n case \"WeakSet\":\n return 2 /* COLLECTION */;\n default:\n return 0 /* INVALID */;\n }\n}\nfunction getTargetType(value) {\n return value[\"__v_skip\"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));\n}\nfunction reactive(target) {\n if (isReadonly(target)) {\n return target;\n }\n return createReactiveObject(\n target,\n false,\n mutableHandlers,\n mutableCollectionHandlers,\n reactiveMap\n );\n}\nfunction shallowReactive(target) {\n return createReactiveObject(\n target,\n false,\n shallowReactiveHandlers,\n shallowCollectionHandlers,\n shallowReactiveMap\n );\n}\nfunction readonly(target) {\n return createReactiveObject(\n target,\n true,\n readonlyHandlers,\n readonlyCollectionHandlers,\n readonlyMap\n );\n}\nfunction shallowReadonly(target) {\n return createReactiveObject(\n target,\n true,\n shallowReadonlyHandlers,\n shallowReadonlyCollectionHandlers,\n shallowReadonlyMap\n );\n}\nfunction createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {\n if (!isObject(target)) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `value cannot be made ${isReadonly2 ? \"readonly\" : \"reactive\"}: ${String(\n target\n )}`\n );\n }\n return target;\n }\n if (target[\"__v_raw\"] && !(isReadonly2 && target[\"__v_isReactive\"])) {\n return target;\n }\n const existingProxy = proxyMap.get(target);\n if (existingProxy) {\n return existingProxy;\n }\n const targetType = getTargetType(target);\n if (targetType === 0 /* INVALID */) {\n return target;\n }\n const proxy = new Proxy(\n target,\n targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers\n );\n proxyMap.set(target, proxy);\n return proxy;\n}\nfunction isReactive(value) {\n if (isReadonly(value)) {\n return isReactive(value[\"__v_raw\"]);\n }\n return !!(value && value[\"__v_isReactive\"]);\n}\nfunction isReadonly(value) {\n return !!(value && value[\"__v_isReadonly\"]);\n}\nfunction isShallow(value) {\n return !!(value && value[\"__v_isShallow\"]);\n}\nfunction isProxy(value) {\n return value ? !!value[\"__v_raw\"] : false;\n}\nfunction toRaw(observed) {\n const raw = observed && observed[\"__v_raw\"];\n return raw ? toRaw(raw) : observed;\n}\nfunction markRaw(value) {\n if (!hasOwn(value, \"__v_skip\") && Object.isExtensible(value)) {\n def(value, \"__v_skip\", true);\n }\n return value;\n}\nconst toReactive = (value) => isObject(value) ? reactive(value) : value;\nconst toReadonly = (value) => isObject(value) ? readonly(value) : value;\n\nfunction isRef(r) {\n return r ? r[\"__v_isRef\"] === true : false;\n}\nfunction ref(value) {\n return createRef(value, false);\n}\nfunction shallowRef(value) {\n return createRef(value, true);\n}\nfunction createRef(rawValue, shallow) {\n if (isRef(rawValue)) {\n return rawValue;\n }\n return new RefImpl(rawValue, shallow);\n}\nclass RefImpl {\n constructor(value, isShallow2) {\n this.dep = new Dep();\n this[\"__v_isRef\"] = true;\n this[\"__v_isShallow\"] = false;\n this._rawValue = isShallow2 ? value : toRaw(value);\n this._value = isShallow2 ? value : toReactive(value);\n this[\"__v_isShallow\"] = isShallow2;\n }\n get value() {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.dep.track({\n target: this,\n type: \"get\",\n key: \"value\"\n });\n } else {\n this.dep.track();\n }\n return this._value;\n }\n set value(newValue) {\n const oldValue = this._rawValue;\n const useDirectValue = this[\"__v_isShallow\"] || isShallow(newValue) || isReadonly(newValue);\n newValue = useDirectValue ? newValue : toRaw(newValue);\n if (hasChanged(newValue, oldValue)) {\n this._rawValue = newValue;\n this._value = useDirectValue ? newValue : toReactive(newValue);\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.dep.trigger({\n target: this,\n type: \"set\",\n key: \"value\",\n newValue,\n oldValue\n });\n } else {\n this.dep.trigger();\n }\n }\n }\n}\nfunction triggerRef(ref2) {\n if (ref2.dep) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n ref2.dep.trigger({\n target: ref2,\n type: \"set\",\n key: \"value\",\n newValue: ref2._value\n });\n } else {\n ref2.dep.trigger();\n }\n }\n}\nfunction unref(ref2) {\n return isRef(ref2) ? ref2.value : ref2;\n}\nfunction toValue(source) {\n return isFunction(source) ? source() : unref(source);\n}\nconst shallowUnwrapHandlers = {\n get: (target, key, receiver) => key === \"__v_raw\" ? target : unref(Reflect.get(target, key, receiver)),\n set: (target, key, value, receiver) => {\n const oldValue = target[key];\n if (isRef(oldValue) && !isRef(value)) {\n oldValue.value = value;\n return true;\n } else {\n return Reflect.set(target, key, value, receiver);\n }\n }\n};\nfunction proxyRefs(objectWithRefs) {\n return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);\n}\nclass CustomRefImpl {\n constructor(factory) {\n this[\"__v_isRef\"] = true;\n this._value = void 0;\n const dep = this.dep = new Dep();\n const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));\n this._get = get;\n this._set = set;\n }\n get value() {\n return this._value = this._get();\n }\n set value(newVal) {\n this._set(newVal);\n }\n}\nfunction customRef(factory) {\n return new CustomRefImpl(factory);\n}\nfunction toRefs(object) {\n if (!!(process.env.NODE_ENV !== \"production\") && !isProxy(object)) {\n warn(`toRefs() expects a reactive object but received a plain one.`);\n }\n const ret = isArray(object) ? new Array(object.length) : {};\n for (const key in object) {\n ret[key] = propertyToRef(object, key);\n }\n return ret;\n}\nclass ObjectRefImpl {\n constructor(_object, _key, _defaultValue) {\n this._object = _object;\n this._key = _key;\n this._defaultValue = _defaultValue;\n this[\"__v_isRef\"] = true;\n this._value = void 0;\n }\n get value() {\n const val = this._object[this._key];\n return this._value = val === void 0 ? this._defaultValue : val;\n }\n set value(newVal) {\n this._object[this._key] = newVal;\n }\n get dep() {\n return getDepFromReactive(toRaw(this._object), this._key);\n }\n}\nclass GetterRefImpl {\n constructor(_getter) {\n this._getter = _getter;\n this[\"__v_isRef\"] = true;\n this[\"__v_isReadonly\"] = true;\n this._value = void 0;\n }\n get value() {\n return this._value = this._getter();\n }\n}\nfunction toRef(source, key, defaultValue) {\n if (isRef(source)) {\n return source;\n } else if (isFunction(source)) {\n return new GetterRefImpl(source);\n } else if (isObject(source) && arguments.length > 1) {\n return propertyToRef(source, key, defaultValue);\n } else {\n return ref(source);\n }\n}\nfunction propertyToRef(source, key, defaultValue) {\n const val = source[key];\n return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue);\n}\n\nclass ComputedRefImpl {\n constructor(fn, setter, isSSR) {\n this.fn = fn;\n this.setter = setter;\n /**\n * @internal\n */\n this._value = void 0;\n /**\n * @internal\n */\n this.dep = new Dep(this);\n /**\n * @internal\n */\n this.__v_isRef = true;\n // TODO isolatedDeclarations \"__v_isReadonly\"\n // A computed is also a subscriber that tracks other deps\n /**\n * @internal\n */\n this.deps = void 0;\n /**\n * @internal\n */\n this.depsTail = void 0;\n /**\n * @internal\n */\n this.flags = 16;\n /**\n * @internal\n */\n this.globalVersion = globalVersion - 1;\n /**\n * @internal\n */\n this.next = void 0;\n // for backwards compat\n this.effect = this;\n this[\"__v_isReadonly\"] = !setter;\n this.isSSR = isSSR;\n }\n /**\n * @internal\n */\n notify() {\n this.flags |= 16;\n if (!(this.flags & 8) && // avoid infinite self recursion\n activeSub !== this) {\n batch(this, true);\n return true;\n } else if (!!(process.env.NODE_ENV !== \"production\")) ;\n }\n get value() {\n const link = !!(process.env.NODE_ENV !== \"production\") ? this.dep.track({\n target: this,\n type: \"get\",\n key: \"value\"\n }) : this.dep.track();\n refreshComputed(this);\n if (link) {\n link.version = this.dep.version;\n }\n return this._value;\n }\n set value(newValue) {\n if (this.setter) {\n this.setter(newValue);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\"Write operation failed: computed value is readonly\");\n }\n }\n}\nfunction computed(getterOrOptions, debugOptions, isSSR = false) {\n let getter;\n let setter;\n if (isFunction(getterOrOptions)) {\n getter = getterOrOptions;\n } else {\n getter = getterOrOptions.get;\n setter = getterOrOptions.set;\n }\n const cRef = new ComputedRefImpl(getter, setter, isSSR);\n if (!!(process.env.NODE_ENV !== \"production\") && debugOptions && !isSSR) {\n cRef.onTrack = debugOptions.onTrack;\n cRef.onTrigger = debugOptions.onTrigger;\n }\n return cRef;\n}\n\nconst TrackOpTypes = {\n \"GET\": \"get\",\n \"HAS\": \"has\",\n \"ITERATE\": \"iterate\"\n};\nconst TriggerOpTypes = {\n \"SET\": \"set\",\n \"ADD\": \"add\",\n \"DELETE\": \"delete\",\n \"CLEAR\": \"clear\"\n};\nconst ReactiveFlags = {\n \"SKIP\": \"__v_skip\",\n \"IS_REACTIVE\": \"__v_isReactive\",\n \"IS_READONLY\": \"__v_isReadonly\",\n \"IS_SHALLOW\": \"__v_isShallow\",\n \"RAW\": \"__v_raw\",\n \"IS_REF\": \"__v_isRef\"\n};\n\nconst WatchErrorCodes = {\n \"WATCH_GETTER\": 2,\n \"2\": \"WATCH_GETTER\",\n \"WATCH_CALLBACK\": 3,\n \"3\": \"WATCH_CALLBACK\",\n \"WATCH_CLEANUP\": 4,\n \"4\": \"WATCH_CLEANUP\"\n};\nconst INITIAL_WATCHER_VALUE = {};\nconst cleanupMap = /* @__PURE__ */ new WeakMap();\nlet activeWatcher = void 0;\nfunction getCurrentWatcher() {\n return activeWatcher;\n}\nfunction onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {\n if (owner) {\n let cleanups = cleanupMap.get(owner);\n if (!cleanups) cleanupMap.set(owner, cleanups = []);\n cleanups.push(cleanupFn);\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onWatcherCleanup() was called when there was no active watcher to associate with.`\n );\n }\n}\nfunction watch(source, cb, options = EMPTY_OBJ) {\n const { immediate, deep, once, scheduler, augmentJob, call } = options;\n const warnInvalidSource = (s) => {\n (options.onWarn || warn)(\n `Invalid watch source: `,\n s,\n `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`\n );\n };\n const reactiveGetter = (source2) => {\n if (deep) return source2;\n if (isShallow(source2) || deep === false || deep === 0)\n return traverse(source2, 1);\n return traverse(source2);\n };\n let effect;\n let getter;\n let cleanup;\n let boundCleanup;\n let forceTrigger = false;\n let isMultiSource = false;\n if (isRef(source)) {\n getter = () => source.value;\n forceTrigger = isShallow(source);\n } else if (isReactive(source)) {\n getter = () => reactiveGetter(source);\n forceTrigger = true;\n } else if (isArray(source)) {\n isMultiSource = true;\n forceTrigger = source.some((s) => isReactive(s) || isShallow(s));\n getter = () => source.map((s) => {\n if (isRef(s)) {\n return s.value;\n } else if (isReactive(s)) {\n return reactiveGetter(s);\n } else if (isFunction(s)) {\n return call ? call(s, 2) : s();\n } else {\n !!(process.env.NODE_ENV !== \"production\") && warnInvalidSource(s);\n }\n });\n } else if (isFunction(source)) {\n if (cb) {\n getter = call ? () => call(source, 2) : source;\n } else {\n getter = () => {\n if (cleanup) {\n pauseTracking();\n try {\n cleanup();\n } finally {\n resetTracking();\n }\n }\n const currentEffect = activeWatcher;\n activeWatcher = effect;\n try {\n return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);\n } finally {\n activeWatcher = currentEffect;\n }\n };\n }\n } else {\n getter = NOOP;\n !!(process.env.NODE_ENV !== \"production\") && warnInvalidSource(source);\n }\n if (cb && deep) {\n const baseGetter = getter;\n const depth = deep === true ? Infinity : deep;\n getter = () => traverse(baseGetter(), depth);\n }\n const scope = getCurrentScope();\n const watchHandle = () => {\n effect.stop();\n if (scope && scope.active) {\n remove(scope.effects, effect);\n }\n };\n if (once && cb) {\n const _cb = cb;\n cb = (...args) => {\n _cb(...args);\n watchHandle();\n };\n }\n let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;\n const job = (immediateFirstRun) => {\n if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) {\n return;\n }\n if (cb) {\n const newValue = effect.run();\n if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {\n if (cleanup) {\n cleanup();\n }\n const currentWatcher = activeWatcher;\n activeWatcher = effect;\n try {\n const args = [\n newValue,\n // pass undefined as the old value when it's changed for the first time\n oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,\n boundCleanup\n ];\n call ? call(cb, 3, args) : (\n // @ts-expect-error\n cb(...args)\n );\n oldValue = newValue;\n } finally {\n activeWatcher = currentWatcher;\n }\n }\n } else {\n effect.run();\n }\n };\n if (augmentJob) {\n augmentJob(job);\n }\n effect = new ReactiveEffect(getter);\n effect.scheduler = scheduler ? () => scheduler(job, false) : job;\n boundCleanup = (fn) => onWatcherCleanup(fn, false, effect);\n cleanup = effect.onStop = () => {\n const cleanups = cleanupMap.get(effect);\n if (cleanups) {\n if (call) {\n call(cleanups, 4);\n } else {\n for (const cleanup2 of cleanups) cleanup2();\n }\n cleanupMap.delete(effect);\n }\n };\n if (!!(process.env.NODE_ENV !== \"production\")) {\n effect.onTrack = options.onTrack;\n effect.onTrigger = options.onTrigger;\n }\n if (cb) {\n if (immediate) {\n job(true);\n } else {\n oldValue = effect.run();\n }\n } else if (scheduler) {\n scheduler(job.bind(null, true), true);\n } else {\n effect.run();\n }\n watchHandle.pause = effect.pause.bind(effect);\n watchHandle.resume = effect.resume.bind(effect);\n watchHandle.stop = watchHandle;\n return watchHandle;\n}\nfunction traverse(value, depth = Infinity, seen) {\n if (depth <= 0 || !isObject(value) || value[\"__v_skip\"]) {\n return value;\n }\n seen = seen || /* @__PURE__ */ new Set();\n if (seen.has(value)) {\n return value;\n }\n seen.add(value);\n depth--;\n if (isRef(value)) {\n traverse(value.value, depth, seen);\n } else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n traverse(value[i], depth, seen);\n }\n } else if (isSet(value) || isMap(value)) {\n value.forEach((v) => {\n traverse(v, depth, seen);\n });\n } else if (isPlainObject(value)) {\n for (const key in value) {\n traverse(value[key], depth, seen);\n }\n for (const key of Object.getOwnPropertySymbols(value)) {\n if (Object.prototype.propertyIsEnumerable.call(value, key)) {\n traverse(value[key], depth, seen);\n }\n }\n }\n return value;\n}\n\nexport { ARRAY_ITERATE_KEY, EffectFlags, EffectScope, ITERATE_KEY, MAP_KEY_ITERATE_KEY, ReactiveEffect, ReactiveFlags, TrackOpTypes, TriggerOpTypes, WatchErrorCodes, computed, customRef, effect, effectScope, enableTracking, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onEffectCleanup, onScopeDispose, onWatcherCleanup, pauseTracking, proxyRefs, reactive, reactiveReadArray, readonly, ref, resetTracking, shallowReactive, shallowReadArray, shallowReadonly, shallowRef, stop, toRaw, toReactive, toReadonly, toRef, toRefs, toValue, track, traverse, trigger, triggerRef, unref, watch };\n","/**\n* @vue/runtime-core v3.5.13\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nimport { pauseTracking, resetTracking, isRef, toRaw, traverse, shallowRef, readonly, isReactive, ref, isShallow, shallowReadArray, toReactive, shallowReadonly, track, reactive, shallowReactive, trigger, ReactiveEffect, watch as watch$1, customRef, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, isReadonly } from '@vue/reactivity';\nexport { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';\nimport { isString, isFunction, isPromise, isArray, EMPTY_OBJ, NOOP, getGlobalThis, extend, isBuiltInDirective, hasOwn, remove, def, isOn, isReservedProp, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr, isRenderableAttrValue, getEscapedCssVarName, isObject, isRegExp, invokeArrayFns, toHandlerKey, capitalize, camelize, isSymbol, isGloballyAllowed, NO, hyphenate, EMPTY_ARR, toRawType, makeMap, hasChanged, looseToNumber, isModelListener, toNumber } from '@vue/shared';\nexport { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';\n\nconst stack = [];\nfunction pushWarningContext(vnode) {\n stack.push(vnode);\n}\nfunction popWarningContext() {\n stack.pop();\n}\nlet isWarning = false;\nfunction warn$1(msg, ...args) {\n if (isWarning) return;\n isWarning = true;\n pauseTracking();\n const instance = stack.length ? stack[stack.length - 1].component : null;\n const appWarnHandler = instance && instance.appContext.config.warnHandler;\n const trace = getComponentTrace();\n if (appWarnHandler) {\n callWithErrorHandling(\n appWarnHandler,\n instance,\n 11,\n [\n // eslint-disable-next-line no-restricted-syntax\n msg + args.map((a) => {\n var _a, _b;\n return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);\n }).join(\"\"),\n instance && instance.proxy,\n trace.map(\n ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`\n ).join(\"\\n\"),\n trace\n ]\n );\n } else {\n const warnArgs = [`[Vue warn]: ${msg}`, ...args];\n if (trace.length && // avoid spamming console during tests\n true) {\n warnArgs.push(`\n`, ...formatTrace(trace));\n }\n console.warn(...warnArgs);\n }\n resetTracking();\n isWarning = false;\n}\nfunction getComponentTrace() {\n let currentVNode = stack[stack.length - 1];\n if (!currentVNode) {\n return [];\n }\n const normalizedStack = [];\n while (currentVNode) {\n const last = normalizedStack[0];\n if (last && last.vnode === currentVNode) {\n last.recurseCount++;\n } else {\n normalizedStack.push({\n vnode: currentVNode,\n recurseCount: 0\n });\n }\n const parentInstance = currentVNode.component && currentVNode.component.parent;\n currentVNode = parentInstance && parentInstance.vnode;\n }\n return normalizedStack;\n}\nfunction formatTrace(trace) {\n const logs = [];\n trace.forEach((entry, i) => {\n logs.push(...i === 0 ? [] : [`\n`], ...formatTraceEntry(entry));\n });\n return logs;\n}\nfunction formatTraceEntry({ vnode, recurseCount }) {\n const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;\n const isRoot = vnode.component ? vnode.component.parent == null : false;\n const open = ` at <${formatComponentName(\n vnode.component,\n vnode.type,\n isRoot\n )}`;\n const close = `>` + postfix;\n return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close];\n}\nfunction formatProps(props) {\n const res = [];\n const keys = Object.keys(props);\n keys.slice(0, 3).forEach((key) => {\n res.push(...formatProp(key, props[key]));\n });\n if (keys.length > 3) {\n res.push(` ...`);\n }\n return res;\n}\nfunction formatProp(key, value, raw) {\n if (isString(value)) {\n value = JSON.stringify(value);\n return raw ? value : [`${key}=${value}`];\n } else if (typeof value === \"number\" || typeof value === \"boolean\" || value == null) {\n return raw ? value : [`${key}=${value}`];\n } else if (isRef(value)) {\n value = formatProp(key, toRaw(value.value), true);\n return raw ? value : [`${key}=Ref<`, value, `>`];\n } else if (isFunction(value)) {\n return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];\n } else {\n value = toRaw(value);\n return raw ? value : [`${key}=`, value];\n }\n}\nfunction assertNumber(val, type) {\n if (!!!(process.env.NODE_ENV !== \"production\")) return;\n if (val === void 0) {\n return;\n } else if (typeof val !== \"number\") {\n warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);\n } else if (isNaN(val)) {\n warn$1(`${type} is NaN - the duration expression might be incorrect.`);\n }\n}\n\nconst ErrorCodes = {\n \"SETUP_FUNCTION\": 0,\n \"0\": \"SETUP_FUNCTION\",\n \"RENDER_FUNCTION\": 1,\n \"1\": \"RENDER_FUNCTION\",\n \"NATIVE_EVENT_HANDLER\": 5,\n \"5\": \"NATIVE_EVENT_HANDLER\",\n \"COMPONENT_EVENT_HANDLER\": 6,\n \"6\": \"COMPONENT_EVENT_HANDLER\",\n \"VNODE_HOOK\": 7,\n \"7\": \"VNODE_HOOK\",\n \"DIRECTIVE_HOOK\": 8,\n \"8\": \"DIRECTIVE_HOOK\",\n \"TRANSITION_HOOK\": 9,\n \"9\": \"TRANSITION_HOOK\",\n \"APP_ERROR_HANDLER\": 10,\n \"10\": \"APP_ERROR_HANDLER\",\n \"APP_WARN_HANDLER\": 11,\n \"11\": \"APP_WARN_HANDLER\",\n \"FUNCTION_REF\": 12,\n \"12\": \"FUNCTION_REF\",\n \"ASYNC_COMPONENT_LOADER\": 13,\n \"13\": \"ASYNC_COMPONENT_LOADER\",\n \"SCHEDULER\": 14,\n \"14\": \"SCHEDULER\",\n \"COMPONENT_UPDATE\": 15,\n \"15\": \"COMPONENT_UPDATE\",\n \"APP_UNMOUNT_CLEANUP\": 16,\n \"16\": \"APP_UNMOUNT_CLEANUP\"\n};\nconst ErrorTypeStrings$1 = {\n [\"sp\"]: \"serverPrefetch hook\",\n [\"bc\"]: \"beforeCreate hook\",\n [\"c\"]: \"created hook\",\n [\"bm\"]: \"beforeMount hook\",\n [\"m\"]: \"mounted hook\",\n [\"bu\"]: \"beforeUpdate hook\",\n [\"u\"]: \"updated\",\n [\"bum\"]: \"beforeUnmount hook\",\n [\"um\"]: \"unmounted hook\",\n [\"a\"]: \"activated hook\",\n [\"da\"]: \"deactivated hook\",\n [\"ec\"]: \"errorCaptured hook\",\n [\"rtc\"]: \"renderTracked hook\",\n [\"rtg\"]: \"renderTriggered hook\",\n [0]: \"setup function\",\n [1]: \"render function\",\n [2]: \"watcher getter\",\n [3]: \"watcher callback\",\n [4]: \"watcher cleanup function\",\n [5]: \"native event handler\",\n [6]: \"component event handler\",\n [7]: \"vnode hook\",\n [8]: \"directive hook\",\n [9]: \"transition hook\",\n [10]: \"app errorHandler\",\n [11]: \"app warnHandler\",\n [12]: \"ref function\",\n [13]: \"async component loader\",\n [14]: \"scheduler flush\",\n [15]: \"component update\",\n [16]: \"app unmount cleanup function\"\n};\nfunction callWithErrorHandling(fn, instance, type, args) {\n try {\n return args ? fn(...args) : fn();\n } catch (err) {\n handleError(err, instance, type);\n }\n}\nfunction callWithAsyncErrorHandling(fn, instance, type, args) {\n if (isFunction(fn)) {\n const res = callWithErrorHandling(fn, instance, type, args);\n if (res && isPromise(res)) {\n res.catch((err) => {\n handleError(err, instance, type);\n });\n }\n return res;\n }\n if (isArray(fn)) {\n const values = [];\n for (let i = 0; i < fn.length; i++) {\n values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));\n }\n return values;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}`\n );\n }\n}\nfunction handleError(err, instance, type, throwInDev = true) {\n const contextVNode = instance ? instance.vnode : null;\n const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ;\n if (instance) {\n let cur = instance.parent;\n const exposedInstance = instance.proxy;\n const errorInfo = !!(process.env.NODE_ENV !== \"production\") ? ErrorTypeStrings$1[type] : `https://vuejs.org/error-reference/#runtime-${type}`;\n while (cur) {\n const errorCapturedHooks = cur.ec;\n if (errorCapturedHooks) {\n for (let i = 0; i < errorCapturedHooks.length; i++) {\n if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {\n return;\n }\n }\n }\n cur = cur.parent;\n }\n if (errorHandler) {\n pauseTracking();\n callWithErrorHandling(errorHandler, null, 10, [\n err,\n exposedInstance,\n errorInfo\n ]);\n resetTracking();\n return;\n }\n }\n logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction);\n}\nfunction logError(err, type, contextVNode, throwInDev = true, throwInProd = false) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n const info = ErrorTypeStrings$1[type];\n if (contextVNode) {\n pushWarningContext(contextVNode);\n }\n warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);\n if (contextVNode) {\n popWarningContext();\n }\n if (throwInDev) {\n throw err;\n } else {\n console.error(err);\n }\n } else if (throwInProd) {\n throw err;\n } else {\n console.error(err);\n }\n}\n\nconst queue = [];\nlet flushIndex = -1;\nconst pendingPostFlushCbs = [];\nlet activePostFlushCbs = null;\nlet postFlushIndex = 0;\nconst resolvedPromise = /* @__PURE__ */ Promise.resolve();\nlet currentFlushPromise = null;\nconst RECURSION_LIMIT = 100;\nfunction nextTick(fn) {\n const p = currentFlushPromise || resolvedPromise;\n return fn ? p.then(this ? fn.bind(this) : fn) : p;\n}\nfunction findInsertionIndex(id) {\n let start = flushIndex + 1;\n let end = queue.length;\n while (start < end) {\n const middle = start + end >>> 1;\n const middleJob = queue[middle];\n const middleJobId = getId(middleJob);\n if (middleJobId < id || middleJobId === id && middleJob.flags & 2) {\n start = middle + 1;\n } else {\n end = middle;\n }\n }\n return start;\n}\nfunction queueJob(job) {\n if (!(job.flags & 1)) {\n const jobId = getId(job);\n const lastJob = queue[queue.length - 1];\n if (!lastJob || // fast path when the job id is larger than the tail\n !(job.flags & 2) && jobId >= getId(lastJob)) {\n queue.push(job);\n } else {\n queue.splice(findInsertionIndex(jobId), 0, job);\n }\n job.flags |= 1;\n queueFlush();\n }\n}\nfunction queueFlush() {\n if (!currentFlushPromise) {\n currentFlushPromise = resolvedPromise.then(flushJobs);\n }\n}\nfunction queuePostFlushCb(cb) {\n if (!isArray(cb)) {\n if (activePostFlushCbs && cb.id === -1) {\n activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);\n } else if (!(cb.flags & 1)) {\n pendingPostFlushCbs.push(cb);\n cb.flags |= 1;\n }\n } else {\n pendingPostFlushCbs.push(...cb);\n }\n queueFlush();\n}\nfunction flushPreFlushCbs(instance, seen, i = flushIndex + 1) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n for (; i < queue.length; i++) {\n const cb = queue[i];\n if (cb && cb.flags & 2) {\n if (instance && cb.id !== instance.uid) {\n continue;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && checkRecursiveUpdates(seen, cb)) {\n continue;\n }\n queue.splice(i, 1);\n i--;\n if (cb.flags & 4) {\n cb.flags &= ~1;\n }\n cb();\n if (!(cb.flags & 4)) {\n cb.flags &= ~1;\n }\n }\n }\n}\nfunction flushPostFlushCbs(seen) {\n if (pendingPostFlushCbs.length) {\n const deduped = [...new Set(pendingPostFlushCbs)].sort(\n (a, b) => getId(a) - getId(b)\n );\n pendingPostFlushCbs.length = 0;\n if (activePostFlushCbs) {\n activePostFlushCbs.push(...deduped);\n return;\n }\n activePostFlushCbs = deduped;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {\n const cb = activePostFlushCbs[postFlushIndex];\n if (!!(process.env.NODE_ENV !== \"production\") && checkRecursiveUpdates(seen, cb)) {\n continue;\n }\n if (cb.flags & 4) {\n cb.flags &= ~1;\n }\n if (!(cb.flags & 8)) cb();\n cb.flags &= ~1;\n }\n activePostFlushCbs = null;\n postFlushIndex = 0;\n }\n}\nconst getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;\nfunction flushJobs(seen) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n const check = !!(process.env.NODE_ENV !== \"production\") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;\n try {\n for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {\n const job = queue[flushIndex];\n if (job && !(job.flags & 8)) {\n if (!!(process.env.NODE_ENV !== \"production\") && check(job)) {\n continue;\n }\n if (job.flags & 4) {\n job.flags &= ~1;\n }\n callWithErrorHandling(\n job,\n job.i,\n job.i ? 15 : 14\n );\n if (!(job.flags & 4)) {\n job.flags &= ~1;\n }\n }\n }\n } finally {\n for (; flushIndex < queue.length; flushIndex++) {\n const job = queue[flushIndex];\n if (job) {\n job.flags &= ~1;\n }\n }\n flushIndex = -1;\n queue.length = 0;\n flushPostFlushCbs(seen);\n currentFlushPromise = null;\n if (queue.length || pendingPostFlushCbs.length) {\n flushJobs(seen);\n }\n }\n}\nfunction checkRecursiveUpdates(seen, fn) {\n const count = seen.get(fn) || 0;\n if (count > RECURSION_LIMIT) {\n const instance = fn.i;\n const componentName = instance && getComponentName(instance.type);\n handleError(\n `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,\n null,\n 10\n );\n return true;\n }\n seen.set(fn, count + 1);\n return false;\n}\n\nlet isHmrUpdating = false;\nconst hmrDirtyComponents = /* @__PURE__ */ new Map();\nif (!!(process.env.NODE_ENV !== \"production\")) {\n getGlobalThis().__VUE_HMR_RUNTIME__ = {\n createRecord: tryWrap(createRecord),\n rerender: tryWrap(rerender),\n reload: tryWrap(reload)\n };\n}\nconst map = /* @__PURE__ */ new Map();\nfunction registerHMR(instance) {\n const id = instance.type.__hmrId;\n let record = map.get(id);\n if (!record) {\n createRecord(id, instance.type);\n record = map.get(id);\n }\n record.instances.add(instance);\n}\nfunction unregisterHMR(instance) {\n map.get(instance.type.__hmrId).instances.delete(instance);\n}\nfunction createRecord(id, initialDef) {\n if (map.has(id)) {\n return false;\n }\n map.set(id, {\n initialDef: normalizeClassComponent(initialDef),\n instances: /* @__PURE__ */ new Set()\n });\n return true;\n}\nfunction normalizeClassComponent(component) {\n return isClassComponent(component) ? component.__vccOpts : component;\n}\nfunction rerender(id, newRender) {\n const record = map.get(id);\n if (!record) {\n return;\n }\n record.initialDef.render = newRender;\n [...record.instances].forEach((instance) => {\n if (newRender) {\n instance.render = newRender;\n normalizeClassComponent(instance.type).render = newRender;\n }\n instance.renderCache = [];\n isHmrUpdating = true;\n instance.update();\n isHmrUpdating = false;\n });\n}\nfunction reload(id, newComp) {\n const record = map.get(id);\n if (!record) return;\n newComp = normalizeClassComponent(newComp);\n updateComponentDef(record.initialDef, newComp);\n const instances = [...record.instances];\n for (let i = 0; i < instances.length; i++) {\n const instance = instances[i];\n const oldComp = normalizeClassComponent(instance.type);\n let dirtyInstances = hmrDirtyComponents.get(oldComp);\n if (!dirtyInstances) {\n if (oldComp !== record.initialDef) {\n updateComponentDef(oldComp, newComp);\n }\n hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());\n }\n dirtyInstances.add(instance);\n instance.appContext.propsCache.delete(instance.type);\n instance.appContext.emitsCache.delete(instance.type);\n instance.appContext.optionsCache.delete(instance.type);\n if (instance.ceReload) {\n dirtyInstances.add(instance);\n instance.ceReload(newComp.styles);\n dirtyInstances.delete(instance);\n } else if (instance.parent) {\n queueJob(() => {\n isHmrUpdating = true;\n instance.parent.update();\n isHmrUpdating = false;\n dirtyInstances.delete(instance);\n });\n } else if (instance.appContext.reload) {\n instance.appContext.reload();\n } else if (typeof window !== \"undefined\") {\n window.location.reload();\n } else {\n console.warn(\n \"[HMR] Root or manually mounted instance modified. Full reload required.\"\n );\n }\n if (instance.root.ce && instance !== instance.root) {\n instance.root.ce._removeChildStyle(oldComp);\n }\n }\n queuePostFlushCb(() => {\n hmrDirtyComponents.clear();\n });\n}\nfunction updateComponentDef(oldComp, newComp) {\n extend(oldComp, newComp);\n for (const key in oldComp) {\n if (key !== \"__file\" && !(key in newComp)) {\n delete oldComp[key];\n }\n }\n}\nfunction tryWrap(fn) {\n return (id, arg) => {\n try {\n return fn(id, arg);\n } catch (e) {\n console.error(e);\n console.warn(\n `[HMR] Something went wrong during Vue component hot-reload. Full reload required.`\n );\n }\n };\n}\n\nlet devtools$1;\nlet buffer = [];\nlet devtoolsNotInstalled = false;\nfunction emit$1(event, ...args) {\n if (devtools$1) {\n devtools$1.emit(event, ...args);\n } else if (!devtoolsNotInstalled) {\n buffer.push({ event, args });\n }\n}\nfunction setDevtoolsHook$1(hook, target) {\n var _a, _b;\n devtools$1 = hook;\n if (devtools$1) {\n devtools$1.enabled = true;\n buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));\n buffer = [];\n } else if (\n // handle late devtools injection - only do this if we are in an actual\n // browser environment to avoid the timer handle stalling test runner exit\n // (#4815)\n typeof window !== \"undefined\" && // some envs mock window but not fully\n window.HTMLElement && // also exclude jsdom\n // eslint-disable-next-line no-restricted-syntax\n !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes(\"jsdom\"))\n ) {\n const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];\n replay.push((newHook) => {\n setDevtoolsHook$1(newHook, target);\n });\n setTimeout(() => {\n if (!devtools$1) {\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;\n devtoolsNotInstalled = true;\n buffer = [];\n }\n }, 3e3);\n } else {\n devtoolsNotInstalled = true;\n buffer = [];\n }\n}\nfunction devtoolsInitApp(app, version) {\n emit$1(\"app:init\" /* APP_INIT */, app, version, {\n Fragment,\n Text,\n Comment,\n Static\n });\n}\nfunction devtoolsUnmountApp(app) {\n emit$1(\"app:unmount\" /* APP_UNMOUNT */, app);\n}\nconst devtoolsComponentAdded = /* @__PURE__ */ createDevtoolsComponentHook(\"component:added\" /* COMPONENT_ADDED */);\nconst devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook(\"component:updated\" /* COMPONENT_UPDATED */);\nconst _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook(\n \"component:removed\" /* COMPONENT_REMOVED */\n);\nconst devtoolsComponentRemoved = (component) => {\n if (devtools$1 && typeof devtools$1.cleanupBuffer === \"function\" && // remove the component if it wasn't buffered\n !devtools$1.cleanupBuffer(component)) {\n _devtoolsComponentRemoved(component);\n }\n};\n/*! #__NO_SIDE_EFFECTS__ */\n// @__NO_SIDE_EFFECTS__\nfunction createDevtoolsComponentHook(hook) {\n return (component) => {\n emit$1(\n hook,\n component.appContext.app,\n component.uid,\n component.parent ? component.parent.uid : void 0,\n component\n );\n };\n}\nconst devtoolsPerfStart = /* @__PURE__ */ createDevtoolsPerformanceHook(\"perf:start\" /* PERFORMANCE_START */);\nconst devtoolsPerfEnd = /* @__PURE__ */ createDevtoolsPerformanceHook(\"perf:end\" /* PERFORMANCE_END */);\nfunction createDevtoolsPerformanceHook(hook) {\n return (component, type, time) => {\n emit$1(hook, component.appContext.app, component.uid, component, type, time);\n };\n}\nfunction devtoolsComponentEmit(component, event, params) {\n emit$1(\n \"component:emit\" /* COMPONENT_EMIT */,\n component.appContext.app,\n component,\n event,\n params\n );\n}\n\nlet currentRenderingInstance = null;\nlet currentScopeId = null;\nfunction setCurrentRenderingInstance(instance) {\n const prev = currentRenderingInstance;\n currentRenderingInstance = instance;\n currentScopeId = instance && instance.type.__scopeId || null;\n return prev;\n}\nfunction pushScopeId(id) {\n currentScopeId = id;\n}\nfunction popScopeId() {\n currentScopeId = null;\n}\nconst withScopeId = (_id) => withCtx;\nfunction withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {\n if (!ctx) return fn;\n if (fn._n) {\n return fn;\n }\n const renderFnWithContext = (...args) => {\n if (renderFnWithContext._d) {\n setBlockTracking(-1);\n }\n const prevInstance = setCurrentRenderingInstance(ctx);\n let res;\n try {\n res = fn(...args);\n } finally {\n setCurrentRenderingInstance(prevInstance);\n if (renderFnWithContext._d) {\n setBlockTracking(1);\n }\n }\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentUpdated(ctx);\n }\n return res;\n };\n renderFnWithContext._n = true;\n renderFnWithContext._c = true;\n renderFnWithContext._d = true;\n return renderFnWithContext;\n}\n\nfunction validateDirectiveName(name) {\n if (isBuiltInDirective(name)) {\n warn$1(\"Do not use built-in directive ids as custom directive id: \" + name);\n }\n}\nfunction withDirectives(vnode, directives) {\n if (currentRenderingInstance === null) {\n !!(process.env.NODE_ENV !== \"production\") && warn$1(`withDirectives can only be used inside render functions.`);\n return vnode;\n }\n const instance = getComponentPublicInstance(currentRenderingInstance);\n const bindings = vnode.dirs || (vnode.dirs = []);\n for (let i = 0; i < directives.length; i++) {\n let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i];\n if (dir) {\n if (isFunction(dir)) {\n dir = {\n mounted: dir,\n updated: dir\n };\n }\n if (dir.deep) {\n traverse(value);\n }\n bindings.push({\n dir,\n instance,\n value,\n oldValue: void 0,\n arg,\n modifiers\n });\n }\n }\n return vnode;\n}\nfunction invokeDirectiveHook(vnode, prevVNode, instance, name) {\n const bindings = vnode.dirs;\n const oldBindings = prevVNode && prevVNode.dirs;\n for (let i = 0; i < bindings.length; i++) {\n const binding = bindings[i];\n if (oldBindings) {\n binding.oldValue = oldBindings[i].value;\n }\n let hook = binding.dir[name];\n if (hook) {\n pauseTracking();\n callWithAsyncErrorHandling(hook, instance, 8, [\n vnode.el,\n binding,\n vnode,\n prevVNode\n ]);\n resetTracking();\n }\n }\n}\n\nconst TeleportEndKey = Symbol(\"_vte\");\nconst isTeleport = (type) => type.__isTeleport;\nconst isTeleportDisabled = (props) => props && (props.disabled || props.disabled === \"\");\nconst isTeleportDeferred = (props) => props && (props.defer || props.defer === \"\");\nconst isTargetSVG = (target) => typeof SVGElement !== \"undefined\" && target instanceof SVGElement;\nconst isTargetMathML = (target) => typeof MathMLElement === \"function\" && target instanceof MathMLElement;\nconst resolveTarget = (props, select) => {\n const targetSelector = props && props.to;\n if (isString(targetSelector)) {\n if (!select) {\n !!(process.env.NODE_ENV !== \"production\") && warn$1(\n `Current renderer does not support string target for Teleports. (missing querySelector renderer option)`\n );\n return null;\n } else {\n const target = select(targetSelector);\n if (!!(process.env.NODE_ENV !== \"production\") && !target && !isTeleportDisabled(props)) {\n warn$1(\n `Failed to locate Teleport target with selector \"${targetSelector}\". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`\n );\n }\n return target;\n }\n } else {\n if (!!(process.env.NODE_ENV !== \"production\") && !targetSelector && !isTeleportDisabled(props)) {\n warn$1(`Invalid Teleport target: ${targetSelector}`);\n }\n return targetSelector;\n }\n};\nconst TeleportImpl = {\n name: \"Teleport\",\n __isTeleport: true,\n process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) {\n const {\n mc: mountChildren,\n pc: patchChildren,\n pbc: patchBlockChildren,\n o: { insert, querySelector, createText, createComment }\n } = internals;\n const disabled = isTeleportDisabled(n2.props);\n let { shapeFlag, children, dynamicChildren } = n2;\n if (!!(process.env.NODE_ENV !== \"production\") && isHmrUpdating) {\n optimized = false;\n dynamicChildren = null;\n }\n if (n1 == null) {\n const placeholder = n2.el = !!(process.env.NODE_ENV !== \"production\") ? createComment(\"teleport start\") : createText(\"\");\n const mainAnchor = n2.anchor = !!(process.env.NODE_ENV !== \"production\") ? createComment(\"teleport end\") : createText(\"\");\n insert(placeholder, container, anchor);\n insert(mainAnchor, container, anchor);\n const mount = (container2, anchor2) => {\n if (shapeFlag & 16) {\n if (parentComponent && parentComponent.isCE) {\n parentComponent.ce._teleportTarget = container2;\n }\n mountChildren(\n children,\n container2,\n anchor2,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds,\n optimized\n );\n }\n };\n const mountToTarget = () => {\n const target = n2.target = resolveTarget(n2.props, querySelector);\n const targetAnchor = prepareAnchor(target, n2, createText, insert);\n if (target) {\n if (namespace !== \"svg\" && isTargetSVG(target)) {\n namespace = \"svg\";\n } else if (namespace !== \"mathml\" && isTargetMathML(target)) {\n namespace = \"mathml\";\n }\n if (!disabled) {\n mount(target, targetAnchor);\n updateCssVars(n2, false);\n }\n } else if (!!(process.env.NODE_ENV !== \"production\") && !disabled) {\n warn$1(\n \"Invalid Teleport target on mount:\",\n target,\n `(${typeof target})`\n );\n }\n };\n if (disabled) {\n mount(container, mainAnchor);\n updateCssVars(n2, true);\n }\n if (isTeleportDeferred(n2.props)) {\n queuePostRenderEffect(() => {\n mountToTarget();\n n2.el.__isMounted = true;\n }, parentSuspense);\n } else {\n mountToTarget();\n }\n } else {\n if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) {\n queuePostRenderEffect(() => {\n TeleportImpl.process(\n n1,\n n2,\n container,\n anchor,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds,\n optimized,\n internals\n );\n delete n1.el.__isMounted;\n }, parentSuspense);\n return;\n }\n n2.el = n1.el;\n n2.targetStart = n1.targetStart;\n const mainAnchor = n2.anchor = n1.anchor;\n const target = n2.target = n1.target;\n const targetAnchor = n2.targetAnchor = n1.targetAnchor;\n const wasDisabled = isTeleportDisabled(n1.props);\n const currentContainer = wasDisabled ? container : target;\n const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;\n if (namespace === \"svg\" || isTargetSVG(target)) {\n namespace = \"svg\";\n } else if (namespace === \"mathml\" || isTargetMathML(target)) {\n namespace = \"mathml\";\n }\n if (dynamicChildren) {\n patchBlockChildren(\n n1.dynamicChildren,\n dynamicChildren,\n currentContainer,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds\n );\n traverseStaticChildren(n1, n2, true);\n } else if (!optimized) {\n patchChildren(\n n1,\n n2,\n currentContainer,\n currentAnchor,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds,\n false\n );\n }\n if (disabled) {\n if (!wasDisabled) {\n moveTeleport(\n n2,\n container,\n mainAnchor,\n internals,\n 1\n );\n } else {\n if (n2.props && n1.props && n2.props.to !== n1.props.to) {\n n2.props.to = n1.props.to;\n }\n }\n } else {\n if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {\n const nextTarget = n2.target = resolveTarget(\n n2.props,\n querySelector\n );\n if (nextTarget) {\n moveTeleport(\n n2,\n nextTarget,\n null,\n internals,\n 0\n );\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n \"Invalid Teleport target on update:\",\n target,\n `(${typeof target})`\n );\n }\n } else if (wasDisabled) {\n moveTeleport(\n n2,\n target,\n targetAnchor,\n internals,\n 1\n );\n }\n }\n updateCssVars(n2, disabled);\n }\n },\n remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {\n const {\n shapeFlag,\n children,\n anchor,\n targetStart,\n targetAnchor,\n target,\n props\n } = vnode;\n if (target) {\n hostRemove(targetStart);\n hostRemove(targetAnchor);\n }\n doRemove && hostRemove(anchor);\n if (shapeFlag & 16) {\n const shouldRemove = doRemove || !isTeleportDisabled(props);\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n unmount(\n child,\n parentComponent,\n parentSuspense,\n shouldRemove,\n !!child.dynamicChildren\n );\n }\n }\n },\n move: moveTeleport,\n hydrate: hydrateTeleport\n};\nfunction moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {\n if (moveType === 0) {\n insert(vnode.targetAnchor, container, parentAnchor);\n }\n const { el, anchor, shapeFlag, children, props } = vnode;\n const isReorder = moveType === 2;\n if (isReorder) {\n insert(el, container, parentAnchor);\n }\n if (!isReorder || isTeleportDisabled(props)) {\n if (shapeFlag & 16) {\n for (let i = 0; i < children.length; i++) {\n move(\n children[i],\n container,\n parentAnchor,\n 2\n );\n }\n }\n }\n if (isReorder) {\n insert(anchor, container, parentAnchor);\n }\n}\nfunction hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {\n o: { nextSibling, parentNode, querySelector, insert, createText }\n}, hydrateChildren) {\n const target = vnode.target = resolveTarget(\n vnode.props,\n querySelector\n );\n if (target) {\n const disabled = isTeleportDisabled(vnode.props);\n const targetNode = target._lpa || target.firstChild;\n if (vnode.shapeFlag & 16) {\n if (disabled) {\n vnode.anchor = hydrateChildren(\n nextSibling(node),\n vnode,\n parentNode(node),\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n vnode.targetStart = targetNode;\n vnode.targetAnchor = targetNode && nextSibling(targetNode);\n } else {\n vnode.anchor = nextSibling(node);\n let targetAnchor = targetNode;\n while (targetAnchor) {\n if (targetAnchor && targetAnchor.nodeType === 8) {\n if (targetAnchor.data === \"teleport start anchor\") {\n vnode.targetStart = targetAnchor;\n } else if (targetAnchor.data === \"teleport anchor\") {\n vnode.targetAnchor = targetAnchor;\n target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor);\n break;\n }\n }\n targetAnchor = nextSibling(targetAnchor);\n }\n if (!vnode.targetAnchor) {\n prepareAnchor(target, vnode, createText, insert);\n }\n hydrateChildren(\n targetNode && nextSibling(targetNode),\n vnode,\n target,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n }\n updateCssVars(vnode, disabled);\n }\n return vnode.anchor && nextSibling(vnode.anchor);\n}\nconst Teleport = TeleportImpl;\nfunction updateCssVars(vnode, isDisabled) {\n const ctx = vnode.ctx;\n if (ctx && ctx.ut) {\n let node, anchor;\n if (isDisabled) {\n node = vnode.el;\n anchor = vnode.anchor;\n } else {\n node = vnode.targetStart;\n anchor = vnode.targetAnchor;\n }\n while (node && node !== anchor) {\n if (node.nodeType === 1) node.setAttribute(\"data-v-owner\", ctx.uid);\n node = node.nextSibling;\n }\n ctx.ut();\n }\n}\nfunction prepareAnchor(target, vnode, createText, insert) {\n const targetStart = vnode.targetStart = createText(\"\");\n const targetAnchor = vnode.targetAnchor = createText(\"\");\n targetStart[TeleportEndKey] = targetAnchor;\n if (target) {\n insert(targetStart, target);\n insert(targetAnchor, target);\n }\n return targetAnchor;\n}\n\nconst leaveCbKey = Symbol(\"_leaveCb\");\nconst enterCbKey = Symbol(\"_enterCb\");\nfunction useTransitionState() {\n const state = {\n isMounted: false,\n isLeaving: false,\n isUnmounting: false,\n leavingVNodes: /* @__PURE__ */ new Map()\n };\n onMounted(() => {\n state.isMounted = true;\n });\n onBeforeUnmount(() => {\n state.isUnmounting = true;\n });\n return state;\n}\nconst TransitionHookValidator = [Function, Array];\nconst BaseTransitionPropsValidators = {\n mode: String,\n appear: Boolean,\n persisted: Boolean,\n // enter\n onBeforeEnter: TransitionHookValidator,\n onEnter: TransitionHookValidator,\n onAfterEnter: TransitionHookValidator,\n onEnterCancelled: TransitionHookValidator,\n // leave\n onBeforeLeave: TransitionHookValidator,\n onLeave: TransitionHookValidator,\n onAfterLeave: TransitionHookValidator,\n onLeaveCancelled: TransitionHookValidator,\n // appear\n onBeforeAppear: TransitionHookValidator,\n onAppear: TransitionHookValidator,\n onAfterAppear: TransitionHookValidator,\n onAppearCancelled: TransitionHookValidator\n};\nconst recursiveGetSubtree = (instance) => {\n const subTree = instance.subTree;\n return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;\n};\nconst BaseTransitionImpl = {\n name: `BaseTransition`,\n props: BaseTransitionPropsValidators,\n setup(props, { slots }) {\n const instance = getCurrentInstance();\n const state = useTransitionState();\n return () => {\n const children = slots.default && getTransitionRawChildren(slots.default(), true);\n if (!children || !children.length) {\n return;\n }\n const child = findNonCommentChild(children);\n const rawProps = toRaw(props);\n const { mode } = rawProps;\n if (!!(process.env.NODE_ENV !== \"production\") && mode && mode !== \"in-out\" && mode !== \"out-in\" && mode !== \"default\") {\n warn$1(`invalid mode: ${mode}`);\n }\n if (state.isLeaving) {\n return emptyPlaceholder(child);\n }\n const innerChild = getInnerChild$1(child);\n if (!innerChild) {\n return emptyPlaceholder(child);\n }\n let enterHooks = resolveTransitionHooks(\n innerChild,\n rawProps,\n state,\n instance,\n // #11061, ensure enterHooks is fresh after clone\n (hooks) => enterHooks = hooks\n );\n if (innerChild.type !== Comment) {\n setTransitionHooks(innerChild, enterHooks);\n }\n let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);\n if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {\n let leavingHooks = resolveTransitionHooks(\n oldInnerChild,\n rawProps,\n state,\n instance\n );\n setTransitionHooks(oldInnerChild, leavingHooks);\n if (mode === \"out-in\" && innerChild.type !== Comment) {\n state.isLeaving = true;\n leavingHooks.afterLeave = () => {\n state.isLeaving = false;\n if (!(instance.job.flags & 8)) {\n instance.update();\n }\n delete leavingHooks.afterLeave;\n oldInnerChild = void 0;\n };\n return emptyPlaceholder(child);\n } else if (mode === \"in-out\" && innerChild.type !== Comment) {\n leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {\n const leavingVNodesCache = getLeavingNodesForType(\n state,\n oldInnerChild\n );\n leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;\n el[leaveCbKey] = () => {\n earlyRemove();\n el[leaveCbKey] = void 0;\n delete enterHooks.delayedLeave;\n oldInnerChild = void 0;\n };\n enterHooks.delayedLeave = () => {\n delayedLeave();\n delete enterHooks.delayedLeave;\n oldInnerChild = void 0;\n };\n };\n } else {\n oldInnerChild = void 0;\n }\n } else if (oldInnerChild) {\n oldInnerChild = void 0;\n }\n return child;\n };\n }\n};\nfunction findNonCommentChild(children) {\n let child = children[0];\n if (children.length > 1) {\n let hasFound = false;\n for (const c of children) {\n if (c.type !== Comment) {\n if (!!(process.env.NODE_ENV !== \"production\") && hasFound) {\n warn$1(\n \" can only be used on a single element or component. Use for lists.\"\n );\n break;\n }\n child = c;\n hasFound = true;\n if (!!!(process.env.NODE_ENV !== \"production\")) break;\n }\n }\n }\n return child;\n}\nconst BaseTransition = BaseTransitionImpl;\nfunction getLeavingNodesForType(state, vnode) {\n const { leavingVNodes } = state;\n let leavingVNodesCache = leavingVNodes.get(vnode.type);\n if (!leavingVNodesCache) {\n leavingVNodesCache = /* @__PURE__ */ Object.create(null);\n leavingVNodes.set(vnode.type, leavingVNodesCache);\n }\n return leavingVNodesCache;\n}\nfunction resolveTransitionHooks(vnode, props, state, instance, postClone) {\n const {\n appear,\n mode,\n persisted = false,\n onBeforeEnter,\n onEnter,\n onAfterEnter,\n onEnterCancelled,\n onBeforeLeave,\n onLeave,\n onAfterLeave,\n onLeaveCancelled,\n onBeforeAppear,\n onAppear,\n onAfterAppear,\n onAppearCancelled\n } = props;\n const key = String(vnode.key);\n const leavingVNodesCache = getLeavingNodesForType(state, vnode);\n const callHook = (hook, args) => {\n hook && callWithAsyncErrorHandling(\n hook,\n instance,\n 9,\n args\n );\n };\n const callAsyncHook = (hook, args) => {\n const done = args[1];\n callHook(hook, args);\n if (isArray(hook)) {\n if (hook.every((hook2) => hook2.length <= 1)) done();\n } else if (hook.length <= 1) {\n done();\n }\n };\n const hooks = {\n mode,\n persisted,\n beforeEnter(el) {\n let hook = onBeforeEnter;\n if (!state.isMounted) {\n if (appear) {\n hook = onBeforeAppear || onBeforeEnter;\n } else {\n return;\n }\n }\n if (el[leaveCbKey]) {\n el[leaveCbKey](\n true\n /* cancelled */\n );\n }\n const leavingVNode = leavingVNodesCache[key];\n if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) {\n leavingVNode.el[leaveCbKey]();\n }\n callHook(hook, [el]);\n },\n enter(el) {\n let hook = onEnter;\n let afterHook = onAfterEnter;\n let cancelHook = onEnterCancelled;\n if (!state.isMounted) {\n if (appear) {\n hook = onAppear || onEnter;\n afterHook = onAfterAppear || onAfterEnter;\n cancelHook = onAppearCancelled || onEnterCancelled;\n } else {\n return;\n }\n }\n let called = false;\n const done = el[enterCbKey] = (cancelled) => {\n if (called) return;\n called = true;\n if (cancelled) {\n callHook(cancelHook, [el]);\n } else {\n callHook(afterHook, [el]);\n }\n if (hooks.delayedLeave) {\n hooks.delayedLeave();\n }\n el[enterCbKey] = void 0;\n };\n if (hook) {\n callAsyncHook(hook, [el, done]);\n } else {\n done();\n }\n },\n leave(el, remove) {\n const key2 = String(vnode.key);\n if (el[enterCbKey]) {\n el[enterCbKey](\n true\n /* cancelled */\n );\n }\n if (state.isUnmounting) {\n return remove();\n }\n callHook(onBeforeLeave, [el]);\n let called = false;\n const done = el[leaveCbKey] = (cancelled) => {\n if (called) return;\n called = true;\n remove();\n if (cancelled) {\n callHook(onLeaveCancelled, [el]);\n } else {\n callHook(onAfterLeave, [el]);\n }\n el[leaveCbKey] = void 0;\n if (leavingVNodesCache[key2] === vnode) {\n delete leavingVNodesCache[key2];\n }\n };\n leavingVNodesCache[key2] = vnode;\n if (onLeave) {\n callAsyncHook(onLeave, [el, done]);\n } else {\n done();\n }\n },\n clone(vnode2) {\n const hooks2 = resolveTransitionHooks(\n vnode2,\n props,\n state,\n instance,\n postClone\n );\n if (postClone) postClone(hooks2);\n return hooks2;\n }\n };\n return hooks;\n}\nfunction emptyPlaceholder(vnode) {\n if (isKeepAlive(vnode)) {\n vnode = cloneVNode(vnode);\n vnode.children = null;\n return vnode;\n }\n}\nfunction getInnerChild$1(vnode) {\n if (!isKeepAlive(vnode)) {\n if (isTeleport(vnode.type) && vnode.children) {\n return findNonCommentChild(vnode.children);\n }\n return vnode;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && vnode.component) {\n return vnode.component.subTree;\n }\n const { shapeFlag, children } = vnode;\n if (children) {\n if (shapeFlag & 16) {\n return children[0];\n }\n if (shapeFlag & 32 && isFunction(children.default)) {\n return children.default();\n }\n }\n}\nfunction setTransitionHooks(vnode, hooks) {\n if (vnode.shapeFlag & 6 && vnode.component) {\n vnode.transition = hooks;\n setTransitionHooks(vnode.component.subTree, hooks);\n } else if (vnode.shapeFlag & 128) {\n vnode.ssContent.transition = hooks.clone(vnode.ssContent);\n vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);\n } else {\n vnode.transition = hooks;\n }\n}\nfunction getTransitionRawChildren(children, keepComment = false, parentKey) {\n let ret = [];\n let keyedFragmentCount = 0;\n for (let i = 0; i < children.length; i++) {\n let child = children[i];\n const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i);\n if (child.type === Fragment) {\n if (child.patchFlag & 128) keyedFragmentCount++;\n ret = ret.concat(\n getTransitionRawChildren(child.children, keepComment, key)\n );\n } else if (keepComment || child.type !== Comment) {\n ret.push(key != null ? cloneVNode(child, { key }) : child);\n }\n }\n if (keyedFragmentCount > 1) {\n for (let i = 0; i < ret.length; i++) {\n ret[i].patchFlag = -2;\n }\n }\n return ret;\n}\n\n/*! #__NO_SIDE_EFFECTS__ */\n// @__NO_SIDE_EFFECTS__\nfunction defineComponent(options, extraOptions) {\n return isFunction(options) ? (\n // #8236: extend call and options.name access are considered side-effects\n // by Rollup, so we have to wrap it in a pure-annotated IIFE.\n /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()\n ) : options;\n}\n\nfunction useId() {\n const i = getCurrentInstance();\n if (i) {\n return (i.appContext.config.idPrefix || \"v\") + \"-\" + i.ids[0] + i.ids[1]++;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `useId() is called when there is no active component instance to be associated with.`\n );\n }\n return \"\";\n}\nfunction markAsyncBoundary(instance) {\n instance.ids = [instance.ids[0] + instance.ids[2]++ + \"-\", 0, 0];\n}\n\nconst knownTemplateRefs = /* @__PURE__ */ new WeakSet();\nfunction useTemplateRef(key) {\n const i = getCurrentInstance();\n const r = shallowRef(null);\n if (i) {\n const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;\n let desc;\n if (!!(process.env.NODE_ENV !== \"production\") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {\n warn$1(`useTemplateRef('${key}') already exists.`);\n } else {\n Object.defineProperty(refs, key, {\n enumerable: true,\n get: () => r.value,\n set: (val) => r.value = val\n });\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `useTemplateRef() is called when there is no active component instance to be associated with.`\n );\n }\n const ret = !!(process.env.NODE_ENV !== \"production\") ? readonly(r) : r;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n knownTemplateRefs.add(ret);\n }\n return ret;\n}\n\nfunction setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {\n if (isArray(rawRef)) {\n rawRef.forEach(\n (r, i) => setRef(\n r,\n oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef),\n parentSuspense,\n vnode,\n isUnmount\n )\n );\n return;\n }\n if (isAsyncWrapper(vnode) && !isUnmount) {\n if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) {\n setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree);\n }\n return;\n }\n const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;\n const value = isUnmount ? null : refValue;\n const { i: owner, r: ref } = rawRef;\n if (!!(process.env.NODE_ENV !== \"production\") && !owner) {\n warn$1(\n `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`\n );\n return;\n }\n const oldRef = oldRawRef && oldRawRef.r;\n const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;\n const setupState = owner.setupState;\n const rawSetupState = toRaw(setupState);\n const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {\n warn$1(\n `Template ref \"${key}\" used on a non-ref value. It will not work in the production build.`\n );\n }\n if (knownTemplateRefs.has(rawSetupState[key])) {\n return false;\n }\n }\n return hasOwn(rawSetupState, key);\n };\n if (oldRef != null && oldRef !== ref) {\n if (isString(oldRef)) {\n refs[oldRef] = null;\n if (canSetSetupRef(oldRef)) {\n setupState[oldRef] = null;\n }\n } else if (isRef(oldRef)) {\n oldRef.value = null;\n }\n }\n if (isFunction(ref)) {\n callWithErrorHandling(ref, owner, 12, [value, refs]);\n } else {\n const _isString = isString(ref);\n const _isRef = isRef(ref);\n if (_isString || _isRef) {\n const doSet = () => {\n if (rawRef.f) {\n const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;\n if (isUnmount) {\n isArray(existing) && remove(existing, refValue);\n } else {\n if (!isArray(existing)) {\n if (_isString) {\n refs[ref] = [refValue];\n if (canSetSetupRef(ref)) {\n setupState[ref] = refs[ref];\n }\n } else {\n ref.value = [refValue];\n if (rawRef.k) refs[rawRef.k] = ref.value;\n }\n } else if (!existing.includes(refValue)) {\n existing.push(refValue);\n }\n }\n } else if (_isString) {\n refs[ref] = value;\n if (canSetSetupRef(ref)) {\n setupState[ref] = value;\n }\n } else if (_isRef) {\n ref.value = value;\n if (rawRef.k) refs[rawRef.k] = value;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\"Invalid template ref type:\", ref, `(${typeof ref})`);\n }\n };\n if (value) {\n doSet.id = -1;\n queuePostRenderEffect(doSet, parentSuspense);\n } else {\n doSet();\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\"Invalid template ref type:\", ref, `(${typeof ref})`);\n }\n }\n}\n\nlet hasLoggedMismatchError = false;\nconst logMismatchError = () => {\n if (hasLoggedMismatchError) {\n return;\n }\n console.error(\"Hydration completed but contains mismatches.\");\n hasLoggedMismatchError = true;\n};\nconst isSVGContainer = (container) => container.namespaceURI.includes(\"svg\") && container.tagName !== \"foreignObject\";\nconst isMathMLContainer = (container) => container.namespaceURI.includes(\"MathML\");\nconst getContainerType = (container) => {\n if (container.nodeType !== 1) return void 0;\n if (isSVGContainer(container)) return \"svg\";\n if (isMathMLContainer(container)) return \"mathml\";\n return void 0;\n};\nconst isComment = (node) => node.nodeType === 8;\nfunction createHydrationFunctions(rendererInternals) {\n const {\n mt: mountComponent,\n p: patch,\n o: {\n patchProp,\n createText,\n nextSibling,\n parentNode,\n remove,\n insert,\n createComment\n }\n } = rendererInternals;\n const hydrate = (vnode, container) => {\n if (!container.hasChildNodes()) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Attempting to hydrate existing markup but container is empty. Performing full mount instead.`\n );\n patch(null, vnode, container);\n flushPostFlushCbs();\n container._vnode = vnode;\n return;\n }\n hydrateNode(container.firstChild, vnode, null, null, null);\n flushPostFlushCbs();\n container._vnode = vnode;\n };\n const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {\n optimized = optimized || !!vnode.dynamicChildren;\n const isFragmentStart = isComment(node) && node.data === \"[\";\n const onMismatch = () => handleMismatch(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n isFragmentStart\n );\n const { type, ref, shapeFlag, patchFlag } = vnode;\n let domType = node.nodeType;\n vnode.el = node;\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n def(node, \"__vnode\", vnode, true);\n def(node, \"__vueParentComponent\", parentComponent, true);\n }\n if (patchFlag === -2) {\n optimized = false;\n vnode.dynamicChildren = null;\n }\n let nextNode = null;\n switch (type) {\n case Text:\n if (domType !== 3) {\n if (vnode.children === \"\") {\n insert(vnode.el = createText(\"\"), parentNode(node), node);\n nextNode = node;\n } else {\n nextNode = onMismatch();\n }\n } else {\n if (node.data !== vnode.children) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration text mismatch in`,\n node.parentNode,\n `\n - rendered on server: ${JSON.stringify(\n node.data\n )}\n - expected on client: ${JSON.stringify(vnode.children)}`\n );\n logMismatchError();\n node.data = vnode.children;\n }\n nextNode = nextSibling(node);\n }\n break;\n case Comment:\n if (isTemplateNode(node)) {\n nextNode = nextSibling(node);\n replaceNode(\n vnode.el = node.content.firstChild,\n node,\n parentComponent\n );\n } else if (domType !== 8 || isFragmentStart) {\n nextNode = onMismatch();\n } else {\n nextNode = nextSibling(node);\n }\n break;\n case Static:\n if (isFragmentStart) {\n node = nextSibling(node);\n domType = node.nodeType;\n }\n if (domType === 1 || domType === 3) {\n nextNode = node;\n const needToAdoptContent = !vnode.children.length;\n for (let i = 0; i < vnode.staticCount; i++) {\n if (needToAdoptContent)\n vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data;\n if (i === vnode.staticCount - 1) {\n vnode.anchor = nextNode;\n }\n nextNode = nextSibling(nextNode);\n }\n return isFragmentStart ? nextSibling(nextNode) : nextNode;\n } else {\n onMismatch();\n }\n break;\n case Fragment:\n if (!isFragmentStart) {\n nextNode = onMismatch();\n } else {\n nextNode = hydrateFragment(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n break;\n default:\n if (shapeFlag & 1) {\n if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) {\n nextNode = onMismatch();\n } else {\n nextNode = hydrateElement(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n } else if (shapeFlag & 6) {\n vnode.slotScopeIds = slotScopeIds;\n const container = parentNode(node);\n if (isFragmentStart) {\n nextNode = locateClosingAnchor(node);\n } else if (isComment(node) && node.data === \"teleport start\") {\n nextNode = locateClosingAnchor(node, node.data, \"teleport end\");\n } else {\n nextNode = nextSibling(node);\n }\n mountComponent(\n vnode,\n container,\n null,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n optimized\n );\n if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) {\n let subTree;\n if (isFragmentStart) {\n subTree = createVNode(Fragment);\n subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;\n } else {\n subTree = node.nodeType === 3 ? createTextVNode(\"\") : createVNode(\"div\");\n }\n subTree.el = node;\n vnode.component.subTree = subTree;\n }\n } else if (shapeFlag & 64) {\n if (domType !== 8) {\n nextNode = onMismatch();\n } else {\n nextNode = vnode.type.hydrate(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized,\n rendererInternals,\n hydrateChildren\n );\n }\n } else if (shapeFlag & 128) {\n nextNode = vnode.type.hydrate(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n getContainerType(parentNode(node)),\n slotScopeIds,\n optimized,\n rendererInternals,\n hydrateNode\n );\n } else if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) {\n warn$1(\"Invalid HostVNode type:\", type, `(${typeof type})`);\n }\n }\n if (ref != null) {\n setRef(ref, null, parentSuspense, vnode);\n }\n return nextNode;\n };\n const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n optimized = optimized || !!vnode.dynamicChildren;\n const { type, props, patchFlag, shapeFlag, dirs, transition } = vnode;\n const forcePatch = type === \"input\" || type === \"option\";\n if (!!(process.env.NODE_ENV !== \"production\") || forcePatch || patchFlag !== -1) {\n if (dirs) {\n invokeDirectiveHook(vnode, null, parentComponent, \"created\");\n }\n let needCallTransitionHooks = false;\n if (isTemplateNode(el)) {\n needCallTransitionHooks = needTransition(\n null,\n // no need check parentSuspense in hydration\n transition\n ) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;\n const content = el.content.firstChild;\n if (needCallTransitionHooks) {\n transition.beforeEnter(content);\n }\n replaceNode(content, el, parentComponent);\n vnode.el = el = content;\n }\n if (shapeFlag & 16 && // skip if element has innerHTML / textContent\n !(props && (props.innerHTML || props.textContent))) {\n let next = hydrateChildren(\n el.firstChild,\n vnode,\n el,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n let hasWarned = false;\n while (next) {\n if (!isMismatchAllowed(el, 1 /* CHILDREN */)) {\n if ((!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && !hasWarned) {\n warn$1(\n `Hydration children mismatch on`,\n el,\n `\nServer rendered element contains more child nodes than client vdom.`\n );\n hasWarned = true;\n }\n logMismatchError();\n }\n const cur = next;\n next = next.nextSibling;\n remove(cur);\n }\n } else if (shapeFlag & 8) {\n let clientText = vnode.children;\n if (clientText[0] === \"\\n\" && (el.tagName === \"PRE\" || el.tagName === \"TEXTAREA\")) {\n clientText = clientText.slice(1);\n }\n if (el.textContent !== clientText) {\n if (!isMismatchAllowed(el, 0 /* TEXT */)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration text content mismatch on`,\n el,\n `\n - rendered on server: ${el.textContent}\n - expected on client: ${vnode.children}`\n );\n logMismatchError();\n }\n el.textContent = vnode.children;\n }\n }\n if (props) {\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || !optimized || patchFlag & (16 | 32)) {\n const isCustomElement = el.tagName.includes(\"-\");\n for (const key in props) {\n if ((!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && // #11189 skip if this node has directives that have created hooks\n // as it could have mutated the DOM in any possible way\n !(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {\n logMismatchError();\n }\n if (forcePatch && (key.endsWith(\"value\") || key === \"indeterminate\") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers\n key[0] === \".\" || isCustomElement) {\n patchProp(el, key, null, props[key], void 0, parentComponent);\n }\n }\n } else if (props.onClick) {\n patchProp(\n el,\n \"onClick\",\n null,\n props.onClick,\n void 0,\n parentComponent\n );\n } else if (patchFlag & 4 && isReactive(props.style)) {\n for (const key in props.style) props.style[key];\n }\n }\n let vnodeHooks;\n if (vnodeHooks = props && props.onVnodeBeforeMount) {\n invokeVNodeHook(vnodeHooks, parentComponent, vnode);\n }\n if (dirs) {\n invokeDirectiveHook(vnode, null, parentComponent, \"beforeMount\");\n }\n if ((vnodeHooks = props && props.onVnodeMounted) || dirs || needCallTransitionHooks) {\n queueEffectWithSuspense(() => {\n vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);\n needCallTransitionHooks && transition.enter(el);\n dirs && invokeDirectiveHook(vnode, null, parentComponent, \"mounted\");\n }, parentSuspense);\n }\n }\n return el.nextSibling;\n };\n const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n optimized = optimized || !!parentVNode.dynamicChildren;\n const children = parentVNode.children;\n const l = children.length;\n let hasWarned = false;\n for (let i = 0; i < l; i++) {\n const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);\n const isText = vnode.type === Text;\n if (node) {\n if (isText && !optimized) {\n if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {\n insert(\n createText(\n node.data.slice(vnode.children.length)\n ),\n container,\n nextSibling(node)\n );\n node.data = vnode.children;\n }\n }\n node = hydrateNode(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n } else if (isText && !vnode.children) {\n insert(vnode.el = createText(\"\"), container);\n } else {\n if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {\n if ((!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && !hasWarned) {\n warn$1(\n `Hydration children mismatch on`,\n container,\n `\nServer rendered element contains fewer child nodes than client vdom.`\n );\n hasWarned = true;\n }\n logMismatchError();\n }\n patch(\n null,\n vnode,\n container,\n null,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n slotScopeIds\n );\n }\n }\n return node;\n };\n const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n const { slotScopeIds: fragmentSlotScopeIds } = vnode;\n if (fragmentSlotScopeIds) {\n slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds;\n }\n const container = parentNode(node);\n const next = hydrateChildren(\n nextSibling(node),\n vnode,\n container,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n if (next && isComment(next) && next.data === \"]\") {\n return nextSibling(vnode.anchor = next);\n } else {\n logMismatchError();\n insert(vnode.anchor = createComment(`]`), container, next);\n return next;\n }\n };\n const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {\n if (!isMismatchAllowed(node.parentElement, 1 /* CHILDREN */)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration node mismatch:\n- rendered on server:`,\n node,\n node.nodeType === 3 ? `(text)` : isComment(node) && node.data === \"[\" ? `(start of fragment)` : ``,\n `\n- expected on client:`,\n vnode.type\n );\n logMismatchError();\n }\n vnode.el = null;\n if (isFragment) {\n const end = locateClosingAnchor(node);\n while (true) {\n const next2 = nextSibling(node);\n if (next2 && next2 !== end) {\n remove(next2);\n } else {\n break;\n }\n }\n }\n const next = nextSibling(node);\n const container = parentNode(node);\n remove(node);\n patch(\n null,\n vnode,\n container,\n next,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n slotScopeIds\n );\n if (parentComponent) {\n parentComponent.vnode.el = vnode.el;\n updateHOCHostEl(parentComponent, vnode.el);\n }\n return next;\n };\n const locateClosingAnchor = (node, open = \"[\", close = \"]\") => {\n let match = 0;\n while (node) {\n node = nextSibling(node);\n if (node && isComment(node)) {\n if (node.data === open) match++;\n if (node.data === close) {\n if (match === 0) {\n return nextSibling(node);\n } else {\n match--;\n }\n }\n }\n }\n return node;\n };\n const replaceNode = (newNode, oldNode, parentComponent) => {\n const parentNode2 = oldNode.parentNode;\n if (parentNode2) {\n parentNode2.replaceChild(newNode, oldNode);\n }\n let parent = parentComponent;\n while (parent) {\n if (parent.vnode.el === oldNode) {\n parent.vnode.el = parent.subTree.el = newNode;\n }\n parent = parent.parent;\n }\n };\n const isTemplateNode = (node) => {\n return node.nodeType === 1 && node.tagName === \"TEMPLATE\";\n };\n return [hydrate, hydrateNode];\n}\nfunction propHasMismatch(el, key, clientValue, vnode, instance) {\n let mismatchType;\n let mismatchKey;\n let actual;\n let expected;\n if (key === \"class\") {\n actual = el.getAttribute(\"class\");\n expected = normalizeClass(clientValue);\n if (!isSetEqual(toClassSet(actual || \"\"), toClassSet(expected))) {\n mismatchType = 2 /* CLASS */;\n mismatchKey = `class`;\n }\n } else if (key === \"style\") {\n actual = el.getAttribute(\"style\") || \"\";\n expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));\n const actualMap = toStyleMap(actual);\n const expectedMap = toStyleMap(expected);\n if (vnode.dirs) {\n for (const { dir, value } of vnode.dirs) {\n if (dir.name === \"show\" && !value) {\n expectedMap.set(\"display\", \"none\");\n }\n }\n }\n if (instance) {\n resolveCssVars(instance, vnode, expectedMap);\n }\n if (!isMapEqual(actualMap, expectedMap)) {\n mismatchType = 3 /* STYLE */;\n mismatchKey = \"style\";\n }\n } else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {\n if (isBooleanAttr(key)) {\n actual = el.hasAttribute(key);\n expected = includeBooleanAttr(clientValue);\n } else if (clientValue == null) {\n actual = el.hasAttribute(key);\n expected = false;\n } else {\n if (el.hasAttribute(key)) {\n actual = el.getAttribute(key);\n } else if (key === \"value\" && el.tagName === \"TEXTAREA\") {\n actual = el.value;\n } else {\n actual = false;\n }\n expected = isRenderableAttrValue(clientValue) ? String(clientValue) : false;\n }\n if (actual !== expected) {\n mismatchType = 4 /* ATTRIBUTE */;\n mismatchKey = key;\n }\n }\n if (mismatchType != null && !isMismatchAllowed(el, mismatchType)) {\n const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}=\"${v}\"`;\n const preSegment = `Hydration ${MismatchTypeString[mismatchType]} mismatch on`;\n const postSegment = `\n - rendered on server: ${format(actual)}\n - expected on client: ${format(expected)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`;\n {\n warn$1(preSegment, el, postSegment);\n }\n return true;\n }\n return false;\n}\nfunction toClassSet(str) {\n return new Set(str.trim().split(/\\s+/));\n}\nfunction isSetEqual(a, b) {\n if (a.size !== b.size) {\n return false;\n }\n for (const s of a) {\n if (!b.has(s)) {\n return false;\n }\n }\n return true;\n}\nfunction toStyleMap(str) {\n const styleMap = /* @__PURE__ */ new Map();\n for (const item of str.split(\";\")) {\n let [key, value] = item.split(\":\");\n key = key.trim();\n value = value && value.trim();\n if (key && value) {\n styleMap.set(key, value);\n }\n }\n return styleMap;\n}\nfunction isMapEqual(a, b) {\n if (a.size !== b.size) {\n return false;\n }\n for (const [key, value] of a) {\n if (value !== b.get(key)) {\n return false;\n }\n }\n return true;\n}\nfunction resolveCssVars(instance, vnode, expectedMap) {\n const root = instance.subTree;\n if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {\n const cssVars = instance.getCssVars();\n for (const key in cssVars) {\n expectedMap.set(\n `--${getEscapedCssVarName(key, false)}`,\n String(cssVars[key])\n );\n }\n }\n if (vnode === root && instance.parent) {\n resolveCssVars(instance.parent, instance.vnode, expectedMap);\n }\n}\nconst allowMismatchAttr = \"data-allow-mismatch\";\nconst MismatchTypeString = {\n [0 /* TEXT */]: \"text\",\n [1 /* CHILDREN */]: \"children\",\n [2 /* CLASS */]: \"class\",\n [3 /* STYLE */]: \"style\",\n [4 /* ATTRIBUTE */]: \"attribute\"\n};\nfunction isMismatchAllowed(el, allowedType) {\n if (allowedType === 0 /* TEXT */ || allowedType === 1 /* CHILDREN */) {\n while (el && !el.hasAttribute(allowMismatchAttr)) {\n el = el.parentElement;\n }\n }\n const allowedAttr = el && el.getAttribute(allowMismatchAttr);\n if (allowedAttr == null) {\n return false;\n } else if (allowedAttr === \"\") {\n return true;\n } else {\n const list = allowedAttr.split(\",\");\n if (allowedType === 0 /* TEXT */ && list.includes(\"children\")) {\n return true;\n }\n return allowedAttr.split(\",\").includes(MismatchTypeString[allowedType]);\n }\n}\n\nconst requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));\nconst cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));\nconst hydrateOnIdle = (timeout = 1e4) => (hydrate) => {\n const id = requestIdleCallback(hydrate, { timeout });\n return () => cancelIdleCallback(id);\n};\nfunction elementIsVisibleInViewport(el) {\n const { top, left, bottom, right } = el.getBoundingClientRect();\n const { innerHeight, innerWidth } = window;\n return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth);\n}\nconst hydrateOnVisible = (opts) => (hydrate, forEach) => {\n const ob = new IntersectionObserver((entries) => {\n for (const e of entries) {\n if (!e.isIntersecting) continue;\n ob.disconnect();\n hydrate();\n break;\n }\n }, opts);\n forEach((el) => {\n if (!(el instanceof Element)) return;\n if (elementIsVisibleInViewport(el)) {\n hydrate();\n ob.disconnect();\n return false;\n }\n ob.observe(el);\n });\n return () => ob.disconnect();\n};\nconst hydrateOnMediaQuery = (query) => (hydrate) => {\n if (query) {\n const mql = matchMedia(query);\n if (mql.matches) {\n hydrate();\n } else {\n mql.addEventListener(\"change\", hydrate, { once: true });\n return () => mql.removeEventListener(\"change\", hydrate);\n }\n }\n};\nconst hydrateOnInteraction = (interactions = []) => (hydrate, forEach) => {\n if (isString(interactions)) interactions = [interactions];\n let hasHydrated = false;\n const doHydrate = (e) => {\n if (!hasHydrated) {\n hasHydrated = true;\n teardown();\n hydrate();\n e.target.dispatchEvent(new e.constructor(e.type, e));\n }\n };\n const teardown = () => {\n forEach((el) => {\n for (const i of interactions) {\n el.removeEventListener(i, doHydrate);\n }\n });\n };\n forEach((el) => {\n for (const i of interactions) {\n el.addEventListener(i, doHydrate, { once: true });\n }\n });\n return teardown;\n};\nfunction forEachElement(node, cb) {\n if (isComment(node) && node.data === \"[\") {\n let depth = 1;\n let next = node.nextSibling;\n while (next) {\n if (next.nodeType === 1) {\n const result = cb(next);\n if (result === false) {\n break;\n }\n } else if (isComment(next)) {\n if (next.data === \"]\") {\n if (--depth === 0) break;\n } else if (next.data === \"[\") {\n depth++;\n }\n }\n next = next.nextSibling;\n }\n } else {\n cb(node);\n }\n}\n\nconst isAsyncWrapper = (i) => !!i.type.__asyncLoader;\n/*! #__NO_SIDE_EFFECTS__ */\n// @__NO_SIDE_EFFECTS__\nfunction defineAsyncComponent(source) {\n if (isFunction(source)) {\n source = { loader: source };\n }\n const {\n loader,\n loadingComponent,\n errorComponent,\n delay = 200,\n hydrate: hydrateStrategy,\n timeout,\n // undefined = never times out\n suspensible = true,\n onError: userOnError\n } = source;\n let pendingRequest = null;\n let resolvedComp;\n let retries = 0;\n const retry = () => {\n retries++;\n pendingRequest = null;\n return load();\n };\n const load = () => {\n let thisRequest;\n return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {\n err = err instanceof Error ? err : new Error(String(err));\n if (userOnError) {\n return new Promise((resolve, reject) => {\n const userRetry = () => resolve(retry());\n const userFail = () => reject(err);\n userOnError(err, userRetry, userFail, retries + 1);\n });\n } else {\n throw err;\n }\n }).then((comp) => {\n if (thisRequest !== pendingRequest && pendingRequest) {\n return pendingRequest;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && !comp) {\n warn$1(\n `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`\n );\n }\n if (comp && (comp.__esModule || comp[Symbol.toStringTag] === \"Module\")) {\n comp = comp.default;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && comp && !isObject(comp) && !isFunction(comp)) {\n throw new Error(`Invalid async component load result: ${comp}`);\n }\n resolvedComp = comp;\n return comp;\n }));\n };\n return defineComponent({\n name: \"AsyncComponentWrapper\",\n __asyncLoader: load,\n __asyncHydrate(el, instance, hydrate) {\n const doHydrate = hydrateStrategy ? () => {\n const teardown = hydrateStrategy(\n hydrate,\n (cb) => forEachElement(el, cb)\n );\n if (teardown) {\n (instance.bum || (instance.bum = [])).push(teardown);\n }\n } : hydrate;\n if (resolvedComp) {\n doHydrate();\n } else {\n load().then(() => !instance.isUnmounted && doHydrate());\n }\n },\n get __asyncResolved() {\n return resolvedComp;\n },\n setup() {\n const instance = currentInstance;\n markAsyncBoundary(instance);\n if (resolvedComp) {\n return () => createInnerComp(resolvedComp, instance);\n }\n const onError = (err) => {\n pendingRequest = null;\n handleError(\n err,\n instance,\n 13,\n !errorComponent\n );\n };\n if (suspensible && instance.suspense || isInSSRComponentSetup) {\n return load().then((comp) => {\n return () => createInnerComp(comp, instance);\n }).catch((err) => {\n onError(err);\n return () => errorComponent ? createVNode(errorComponent, {\n error: err\n }) : null;\n });\n }\n const loaded = ref(false);\n const error = ref();\n const delayed = ref(!!delay);\n if (delay) {\n setTimeout(() => {\n delayed.value = false;\n }, delay);\n }\n if (timeout != null) {\n setTimeout(() => {\n if (!loaded.value && !error.value) {\n const err = new Error(\n `Async component timed out after ${timeout}ms.`\n );\n onError(err);\n error.value = err;\n }\n }, timeout);\n }\n load().then(() => {\n loaded.value = true;\n if (instance.parent && isKeepAlive(instance.parent.vnode)) {\n instance.parent.update();\n }\n }).catch((err) => {\n onError(err);\n error.value = err;\n });\n return () => {\n if (loaded.value && resolvedComp) {\n return createInnerComp(resolvedComp, instance);\n } else if (error.value && errorComponent) {\n return createVNode(errorComponent, {\n error: error.value\n });\n } else if (loadingComponent && !delayed.value) {\n return createVNode(loadingComponent);\n }\n };\n }\n });\n}\nfunction createInnerComp(comp, parent) {\n const { ref: ref2, props, children, ce } = parent.vnode;\n const vnode = createVNode(comp, props, children);\n vnode.ref = ref2;\n vnode.ce = ce;\n delete parent.vnode.ce;\n return vnode;\n}\n\nconst isKeepAlive = (vnode) => vnode.type.__isKeepAlive;\nconst KeepAliveImpl = {\n name: `KeepAlive`,\n // Marker for special handling inside the renderer. We are not using a ===\n // check directly on KeepAlive in the renderer, because importing it directly\n // would prevent it from being tree-shaken.\n __isKeepAlive: true,\n props: {\n include: [String, RegExp, Array],\n exclude: [String, RegExp, Array],\n max: [String, Number]\n },\n setup(props, { slots }) {\n const instance = getCurrentInstance();\n const sharedContext = instance.ctx;\n if (!sharedContext.renderer) {\n return () => {\n const children = slots.default && slots.default();\n return children && children.length === 1 ? children[0] : children;\n };\n }\n const cache = /* @__PURE__ */ new Map();\n const keys = /* @__PURE__ */ new Set();\n let current = null;\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n instance.__v_cache = cache;\n }\n const parentSuspense = instance.suspense;\n const {\n renderer: {\n p: patch,\n m: move,\n um: _unmount,\n o: { createElement }\n }\n } = sharedContext;\n const storageContainer = createElement(\"div\");\n sharedContext.activate = (vnode, container, anchor, namespace, optimized) => {\n const instance2 = vnode.component;\n move(vnode, container, anchor, 0, parentSuspense);\n patch(\n instance2.vnode,\n vnode,\n container,\n anchor,\n instance2,\n parentSuspense,\n namespace,\n vnode.slotScopeIds,\n optimized\n );\n queuePostRenderEffect(() => {\n instance2.isDeactivated = false;\n if (instance2.a) {\n invokeArrayFns(instance2.a);\n }\n const vnodeHook = vnode.props && vnode.props.onVnodeMounted;\n if (vnodeHook) {\n invokeVNodeHook(vnodeHook, instance2.parent, vnode);\n }\n }, parentSuspense);\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentAdded(instance2);\n }\n };\n sharedContext.deactivate = (vnode) => {\n const instance2 = vnode.component;\n invalidateMount(instance2.m);\n invalidateMount(instance2.a);\n move(vnode, storageContainer, null, 1, parentSuspense);\n queuePostRenderEffect(() => {\n if (instance2.da) {\n invokeArrayFns(instance2.da);\n }\n const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;\n if (vnodeHook) {\n invokeVNodeHook(vnodeHook, instance2.parent, vnode);\n }\n instance2.isDeactivated = true;\n }, parentSuspense);\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentAdded(instance2);\n }\n };\n function unmount(vnode) {\n resetShapeFlag(vnode);\n _unmount(vnode, instance, parentSuspense, true);\n }\n function pruneCache(filter) {\n cache.forEach((vnode, key) => {\n const name = getComponentName(vnode.type);\n if (name && !filter(name)) {\n pruneCacheEntry(key);\n }\n });\n }\n function pruneCacheEntry(key) {\n const cached = cache.get(key);\n if (cached && (!current || !isSameVNodeType(cached, current))) {\n unmount(cached);\n } else if (current) {\n resetShapeFlag(current);\n }\n cache.delete(key);\n keys.delete(key);\n }\n watch(\n () => [props.include, props.exclude],\n ([include, exclude]) => {\n include && pruneCache((name) => matches(include, name));\n exclude && pruneCache((name) => !matches(exclude, name));\n },\n // prune post-render after `current` has been updated\n { flush: \"post\", deep: true }\n );\n let pendingCacheKey = null;\n const cacheSubtree = () => {\n if (pendingCacheKey != null) {\n if (isSuspense(instance.subTree.type)) {\n queuePostRenderEffect(() => {\n cache.set(pendingCacheKey, getInnerChild(instance.subTree));\n }, instance.subTree.suspense);\n } else {\n cache.set(pendingCacheKey, getInnerChild(instance.subTree));\n }\n }\n };\n onMounted(cacheSubtree);\n onUpdated(cacheSubtree);\n onBeforeUnmount(() => {\n cache.forEach((cached) => {\n const { subTree, suspense } = instance;\n const vnode = getInnerChild(subTree);\n if (cached.type === vnode.type && cached.key === vnode.key) {\n resetShapeFlag(vnode);\n const da = vnode.component.da;\n da && queuePostRenderEffect(da, suspense);\n return;\n }\n unmount(cached);\n });\n });\n return () => {\n pendingCacheKey = null;\n if (!slots.default) {\n return current = null;\n }\n const children = slots.default();\n const rawVNode = children[0];\n if (children.length > 1) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(`KeepAlive should contain exactly one component child.`);\n }\n current = null;\n return children;\n } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) {\n current = null;\n return rawVNode;\n }\n let vnode = getInnerChild(rawVNode);\n if (vnode.type === Comment) {\n current = null;\n return vnode;\n }\n const comp = vnode.type;\n const name = getComponentName(\n isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp\n );\n const { include, exclude, max } = props;\n if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {\n vnode.shapeFlag &= ~256;\n current = vnode;\n return rawVNode;\n }\n const key = vnode.key == null ? comp : vnode.key;\n const cachedVNode = cache.get(key);\n if (vnode.el) {\n vnode = cloneVNode(vnode);\n if (rawVNode.shapeFlag & 128) {\n rawVNode.ssContent = vnode;\n }\n }\n pendingCacheKey = key;\n if (cachedVNode) {\n vnode.el = cachedVNode.el;\n vnode.component = cachedVNode.component;\n if (vnode.transition) {\n setTransitionHooks(vnode, vnode.transition);\n }\n vnode.shapeFlag |= 512;\n keys.delete(key);\n keys.add(key);\n } else {\n keys.add(key);\n if (max && keys.size > parseInt(max, 10)) {\n pruneCacheEntry(keys.values().next().value);\n }\n }\n vnode.shapeFlag |= 256;\n current = vnode;\n return isSuspense(rawVNode.type) ? rawVNode : vnode;\n };\n }\n};\nconst KeepAlive = KeepAliveImpl;\nfunction matches(pattern, name) {\n if (isArray(pattern)) {\n return pattern.some((p) => matches(p, name));\n } else if (isString(pattern)) {\n return pattern.split(\",\").includes(name);\n } else if (isRegExp(pattern)) {\n pattern.lastIndex = 0;\n return pattern.test(name);\n }\n return false;\n}\nfunction onActivated(hook, target) {\n registerKeepAliveHook(hook, \"a\", target);\n}\nfunction onDeactivated(hook, target) {\n registerKeepAliveHook(hook, \"da\", target);\n}\nfunction registerKeepAliveHook(hook, type, target = currentInstance) {\n const wrappedHook = hook.__wdc || (hook.__wdc = () => {\n let current = target;\n while (current) {\n if (current.isDeactivated) {\n return;\n }\n current = current.parent;\n }\n return hook();\n });\n injectHook(type, wrappedHook, target);\n if (target) {\n let current = target.parent;\n while (current && current.parent) {\n if (isKeepAlive(current.parent.vnode)) {\n injectToKeepAliveRoot(wrappedHook, type, target, current);\n }\n current = current.parent;\n }\n }\n}\nfunction injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {\n const injected = injectHook(\n type,\n hook,\n keepAliveRoot,\n true\n /* prepend */\n );\n onUnmounted(() => {\n remove(keepAliveRoot[type], injected);\n }, target);\n}\nfunction resetShapeFlag(vnode) {\n vnode.shapeFlag &= ~256;\n vnode.shapeFlag &= ~512;\n}\nfunction getInnerChild(vnode) {\n return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;\n}\n\nfunction injectHook(type, hook, target = currentInstance, prepend = false) {\n if (target) {\n const hooks = target[type] || (target[type] = []);\n const wrappedHook = hook.__weh || (hook.__weh = (...args) => {\n pauseTracking();\n const reset = setCurrentInstance(target);\n const res = callWithAsyncErrorHandling(hook, target, type, args);\n reset();\n resetTracking();\n return res;\n });\n if (prepend) {\n hooks.unshift(wrappedHook);\n } else {\n hooks.push(wrappedHook);\n }\n return wrappedHook;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, \"\"));\n warn$1(\n `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` )\n );\n }\n}\nconst createHook = (lifecycle) => (hook, target = currentInstance) => {\n if (!isInSSRComponentSetup || lifecycle === \"sp\") {\n injectHook(lifecycle, (...args) => hook(...args), target);\n }\n};\nconst onBeforeMount = createHook(\"bm\");\nconst onMounted = createHook(\"m\");\nconst onBeforeUpdate = createHook(\n \"bu\"\n);\nconst onUpdated = createHook(\"u\");\nconst onBeforeUnmount = createHook(\n \"bum\"\n);\nconst onUnmounted = createHook(\"um\");\nconst onServerPrefetch = createHook(\n \"sp\"\n);\nconst onRenderTriggered = createHook(\"rtg\");\nconst onRenderTracked = createHook(\"rtc\");\nfunction onErrorCaptured(hook, target = currentInstance) {\n injectHook(\"ec\", hook, target);\n}\n\nconst COMPONENTS = \"components\";\nconst DIRECTIVES = \"directives\";\nfunction resolveComponent(name, maybeSelfReference) {\n return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;\n}\nconst NULL_DYNAMIC_COMPONENT = Symbol.for(\"v-ndc\");\nfunction resolveDynamicComponent(component) {\n if (isString(component)) {\n return resolveAsset(COMPONENTS, component, false) || component;\n } else {\n return component || NULL_DYNAMIC_COMPONENT;\n }\n}\nfunction resolveDirective(name) {\n return resolveAsset(DIRECTIVES, name);\n}\nfunction resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {\n const instance = currentRenderingInstance || currentInstance;\n if (instance) {\n const Component = instance.type;\n if (type === COMPONENTS) {\n const selfName = getComponentName(\n Component,\n false\n );\n if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {\n return Component;\n }\n }\n const res = (\n // local registration\n // check instance[type] first which is resolved for options API\n resolve(instance[type] || Component[type], name) || // global registration\n resolve(instance.appContext[type], name)\n );\n if (!res && maybeSelfReference) {\n return Component;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && warnMissing && !res) {\n const extra = type === COMPONENTS ? `\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;\n warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);\n }\n return res;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`\n );\n }\n}\nfunction resolve(registry, name) {\n return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);\n}\n\nfunction renderList(source, renderItem, cache, index) {\n let ret;\n const cached = cache && cache[index];\n const sourceIsArray = isArray(source);\n if (sourceIsArray || isString(source)) {\n const sourceIsReactiveArray = sourceIsArray && isReactive(source);\n let needsWrap = false;\n if (sourceIsReactiveArray) {\n needsWrap = !isShallow(source);\n source = shallowReadArray(source);\n }\n ret = new Array(source.length);\n for (let i = 0, l = source.length; i < l; i++) {\n ret[i] = renderItem(\n needsWrap ? toReactive(source[i]) : source[i],\n i,\n void 0,\n cached && cached[i]\n );\n }\n } else if (typeof source === \"number\") {\n if (!!(process.env.NODE_ENV !== \"production\") && !Number.isInteger(source)) {\n warn$1(`The v-for range expect an integer value but got ${source}.`);\n }\n ret = new Array(source);\n for (let i = 0; i < source; i++) {\n ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);\n }\n } else if (isObject(source)) {\n if (source[Symbol.iterator]) {\n ret = Array.from(\n source,\n (item, i) => renderItem(item, i, void 0, cached && cached[i])\n );\n } else {\n const keys = Object.keys(source);\n ret = new Array(keys.length);\n for (let i = 0, l = keys.length; i < l; i++) {\n const key = keys[i];\n ret[i] = renderItem(source[key], key, i, cached && cached[i]);\n }\n }\n } else {\n ret = [];\n }\n if (cache) {\n cache[index] = ret;\n }\n return ret;\n}\n\nfunction createSlots(slots, dynamicSlots) {\n for (let i = 0; i < dynamicSlots.length; i++) {\n const slot = dynamicSlots[i];\n if (isArray(slot)) {\n for (let j = 0; j < slot.length; j++) {\n slots[slot[j].name] = slot[j].fn;\n }\n } else if (slot) {\n slots[slot.name] = slot.key ? (...args) => {\n const res = slot.fn(...args);\n if (res) res.key = slot.key;\n return res;\n } : slot.fn;\n }\n }\n return slots;\n}\n\nfunction renderSlot(slots, name, props = {}, fallback, noSlotted) {\n if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {\n if (name !== \"default\") props.name = name;\n return openBlock(), createBlock(\n Fragment,\n null,\n [createVNode(\"slot\", props, fallback && fallback())],\n 64\n );\n }\n let slot = slots[name];\n if (!!(process.env.NODE_ENV !== \"production\") && slot && slot.length > 1) {\n warn$1(\n `SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`\n );\n slot = () => [];\n }\n if (slot && slot._c) {\n slot._d = false;\n }\n openBlock();\n const validSlotContent = slot && ensureValidVNode(slot(props));\n const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch\n // key attached in the `createSlots` helper, respect that\n validSlotContent && validSlotContent.key;\n const rendered = createBlock(\n Fragment,\n {\n key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content\n (!validSlotContent && fallback ? \"_fb\" : \"\")\n },\n validSlotContent || (fallback ? fallback() : []),\n validSlotContent && slots._ === 1 ? 64 : -2\n );\n if (!noSlotted && rendered.scopeId) {\n rendered.slotScopeIds = [rendered.scopeId + \"-s\"];\n }\n if (slot && slot._c) {\n slot._d = true;\n }\n return rendered;\n}\nfunction ensureValidVNode(vnodes) {\n return vnodes.some((child) => {\n if (!isVNode(child)) return true;\n if (child.type === Comment) return false;\n if (child.type === Fragment && !ensureValidVNode(child.children))\n return false;\n return true;\n }) ? vnodes : null;\n}\n\nfunction toHandlers(obj, preserveCaseIfNecessary) {\n const ret = {};\n if (!!(process.env.NODE_ENV !== \"production\") && !isObject(obj)) {\n warn$1(`v-on with no argument expects an object value.`);\n return ret;\n }\n for (const key in obj) {\n ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];\n }\n return ret;\n}\n\nconst getPublicInstance = (i) => {\n if (!i) return null;\n if (isStatefulComponent(i)) return getComponentPublicInstance(i);\n return getPublicInstance(i.parent);\n};\nconst publicPropertiesMap = (\n // Move PURE marker to new line to workaround compiler discarding it\n // due to type annotation\n /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {\n $: (i) => i,\n $el: (i) => i.vnode.el,\n $data: (i) => i.data,\n $props: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.props) : i.props,\n $attrs: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.attrs) : i.attrs,\n $slots: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.slots) : i.slots,\n $refs: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.refs) : i.refs,\n $parent: (i) => getPublicInstance(i.parent),\n $root: (i) => getPublicInstance(i.root),\n $host: (i) => i.ce,\n $emit: (i) => i.emit,\n $options: (i) => __VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type,\n $forceUpdate: (i) => i.f || (i.f = () => {\n queueJob(i.update);\n }),\n $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)),\n $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP\n })\n);\nconst isReservedPrefix = (key) => key === \"_\" || key === \"$\";\nconst hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);\nconst PublicInstanceProxyHandlers = {\n get({ _: instance }, key) {\n if (key === \"__v_skip\") {\n return true;\n }\n const { ctx, setupState, data, props, accessCache, type, appContext } = instance;\n if (!!(process.env.NODE_ENV !== \"production\") && key === \"__isVue\") {\n return true;\n }\n let normalizedProps;\n if (key[0] !== \"$\") {\n const n = accessCache[key];\n if (n !== void 0) {\n switch (n) {\n case 1 /* SETUP */:\n return setupState[key];\n case 2 /* DATA */:\n return data[key];\n case 4 /* CONTEXT */:\n return ctx[key];\n case 3 /* PROPS */:\n return props[key];\n }\n } else if (hasSetupBinding(setupState, key)) {\n accessCache[key] = 1 /* SETUP */;\n return setupState[key];\n } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {\n accessCache[key] = 2 /* DATA */;\n return data[key];\n } else if (\n // only cache other properties when instance has declared (thus stable)\n // props\n (normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key)\n ) {\n accessCache[key] = 3 /* PROPS */;\n return props[key];\n } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\n accessCache[key] = 4 /* CONTEXT */;\n return ctx[key];\n } else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) {\n accessCache[key] = 0 /* OTHER */;\n }\n }\n const publicGetter = publicPropertiesMap[key];\n let cssModule, globalProperties;\n if (publicGetter) {\n if (key === \"$attrs\") {\n track(instance.attrs, \"get\", \"\");\n !!(process.env.NODE_ENV !== \"production\") && markAttrsAccessed();\n } else if (!!(process.env.NODE_ENV !== \"production\") && key === \"$slots\") {\n track(instance, \"get\", key);\n }\n return publicGetter(instance);\n } else if (\n // css module (injected by vue-loader)\n (cssModule = type.__cssModules) && (cssModule = cssModule[key])\n ) {\n return cssModule;\n } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\n accessCache[key] = 4 /* CONTEXT */;\n return ctx[key];\n } else if (\n // global properties\n globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)\n ) {\n {\n return globalProperties[key];\n }\n } else if (!!(process.env.NODE_ENV !== \"production\") && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading\n // to infinite warning loop\n key.indexOf(\"__v\") !== 0)) {\n if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {\n warn$1(\n `Property ${JSON.stringify(\n key\n )} must be accessed via $data because it starts with a reserved character (\"$\" or \"_\") and is not proxied on the render context.`\n );\n } else if (instance === currentRenderingInstance) {\n warn$1(\n `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`\n );\n }\n }\n },\n set({ _: instance }, key, value) {\n const { data, setupState, ctx } = instance;\n if (hasSetupBinding(setupState, key)) {\n setupState[key] = value;\n return true;\n } else if (!!(process.env.NODE_ENV !== \"production\") && setupState.__isScriptSetup && hasOwn(setupState, key)) {\n warn$1(`Cannot mutate \n\n","// src/data-loaders/createDataLoader.ts\nvar toLazyValue = (lazy, to, from) => typeof lazy === \"function\" ? lazy(to, from) : lazy;\n\n// src/data-loaders/navigation-guard.ts\nimport { isNavigationFailure } from \"vue-router\";\nimport {\n effectScope,\n inject,\n shallowRef\n} from \"vue\";\n\n// src/data-loaders/symbols.ts\nvar LOADER_SET_KEY = Symbol(\"loaders\");\nvar LOADER_ENTRIES_KEY = Symbol(\"loaderEntries\");\nvar IS_USE_DATA_LOADER_KEY = Symbol();\nvar PENDING_LOCATION_KEY = Symbol();\nvar STAGED_NO_VALUE = Symbol();\nvar APP_KEY = Symbol();\nvar ABORT_CONTROLLER_KEY = Symbol();\nvar NAVIGATION_RESULTS_KEY = Symbol();\nvar IS_SSR_KEY = Symbol();\n\n// src/data-loaders/utils.ts\nfunction isDataLoader(loader) {\n return loader && loader[IS_USE_DATA_LOADER_KEY];\n}\nvar currentContext;\nfunction getCurrentContext() {\n return currentContext || [];\n}\nfunction setCurrentContext(context) {\n currentContext = context ? context.length ? context : null : null;\n}\nfunction withLoaderContext(promise) {\n const context = currentContext;\n return promise.finally(() => currentContext = context);\n}\nvar assign = Object.assign;\nfunction trackRoute(route) {\n const [params, paramReads] = trackObjectReads(route.params);\n const [query, queryReads] = trackObjectReads(route.query);\n let hash = { v: null };\n return [\n {\n ...route,\n // track the hash\n get hash() {\n return hash.v = route.hash;\n },\n params,\n query\n },\n paramReads,\n queryReads,\n hash\n ];\n}\nfunction trackObjectReads(obj) {\n const reads = {};\n return [\n new Proxy(obj, {\n get(target, p, receiver) {\n const value = Reflect.get(target, p, receiver);\n reads[p] = value;\n return value;\n }\n }),\n reads\n ];\n}\nfunction isSubsetOf(inner, outer) {\n for (const key in inner) {\n const innerValue = inner[key];\n const outerValue = outer[key];\n if (typeof innerValue === \"string\") {\n if (innerValue !== outerValue) return false;\n } else if (!innerValue || !outerValue) {\n if (innerValue !== outerValue) return false;\n } else {\n if (!Array.isArray(outerValue) || outerValue.length !== innerValue.length || innerValue.some((value, i) => value !== outerValue[i]))\n return false;\n }\n }\n return true;\n}\n\n// src/data-loaders/navigation-guard.ts\nvar IS_DATA_LOADING_KEY = Symbol();\nfunction setupLoaderGuard({\n router,\n app,\n effect: scope,\n isSSR,\n errors: globalErrors = [],\n selectNavigationResult = (results) => results[0].value\n}) {\n if (router[LOADER_ENTRIES_KEY] != null) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\n \"[vue-router]: Data Loader was setup twice. Make sure to setup only once.\"\n );\n }\n return () => {\n };\n }\n if (process.env.NODE_ENV === \"development\" && !isSSR) {\n console.warn(\n \"[vue-router]: Data Loader is experimental and subject to breaking changes in the future.\"\n );\n }\n router[LOADER_ENTRIES_KEY] = /* @__PURE__ */ new WeakMap();\n router[APP_KEY] = app;\n router[IS_SSR_KEY] = !!isSSR;\n const isDataLoading = scope.run(() => shallowRef(false));\n app.provide(IS_DATA_LOADING_KEY, isDataLoading);\n const removeLoaderGuard = router.beforeEach((to) => {\n if (router[PENDING_LOCATION_KEY]) {\n router[PENDING_LOCATION_KEY].meta[ABORT_CONTROLLER_KEY]?.abort();\n }\n router[PENDING_LOCATION_KEY] = to;\n to.meta[LOADER_SET_KEY] = /* @__PURE__ */ new Set();\n to.meta[ABORT_CONTROLLER_KEY] = new AbortController();\n to.meta[NAVIGATION_RESULTS_KEY] = [];\n const lazyLoadingPromises = [];\n for (const record of to.matched) {\n if (!record.meta[LOADER_SET_KEY]) {\n record.meta[LOADER_SET_KEY] = new Set(record.meta.loaders || []);\n for (const componentName in record.components) {\n const component = record.components[componentName];\n const promise = (isAsyncModule(component) ? component() : (\n // we also support __loaders exported as an option to get around some temporary limitations\n Promise.resolve(\n component\n )\n )).then((viewModule) => {\n if (typeof viewModule === \"function\") return;\n for (const exportName in viewModule) {\n const exportValue = viewModule[exportName];\n if (isDataLoader(exportValue)) {\n record.meta[LOADER_SET_KEY].add(exportValue);\n }\n }\n if (Array.isArray(viewModule.__loaders)) {\n for (const loader of viewModule.__loaders) {\n if (isDataLoader(loader)) {\n record.meta[LOADER_SET_KEY].add(loader);\n }\n }\n }\n });\n lazyLoadingPromises.push(promise);\n }\n }\n }\n return Promise.all(lazyLoadingPromises).then(() => {\n for (const record of to.matched) {\n for (const loader of record.meta[LOADER_SET_KEY]) {\n to.meta[LOADER_SET_KEY].add(loader);\n }\n }\n });\n });\n const removeDataLoaderGuard = router.beforeResolve((to, from) => {\n const loaders = Array.from(to.meta[LOADER_SET_KEY]);\n setCurrentContext([]);\n isDataLoading.value = true;\n return Promise.all(\n loaders.map((loader) => {\n const { server, lazy, errors } = loader._.options;\n if (!server && isSSR) {\n return;\n }\n const ret = scope.run(\n () => app.runWithContext(\n () => loader._.load(to, router, from)\n )\n );\n return !isSSR && toLazyValue(lazy, to, from) ? void 0 : (\n // return the non-lazy loader to commit changes after all loaders are done\n ret.catch((reason) => {\n if (!errors) throw reason;\n if (errors === true) {\n if (Array.isArray(globalErrors) ? globalErrors.some((Err) => reason instanceof Err) : globalErrors(reason))\n return;\n } else if (\n // use local error option if it exists first and then the global one\n Array.isArray(errors) ? errors.some((Err) => reason instanceof Err) : errors(reason)\n ) {\n return;\n }\n throw reason;\n })\n );\n })\n ).then(() => {\n if (to.meta[NAVIGATION_RESULTS_KEY].length) {\n return selectNavigationResult(to.meta[NAVIGATION_RESULTS_KEY]);\n }\n }).catch(\n (error) => error instanceof NavigationResult ? error.value : (\n // let the error propagate to router.onError()\n // we use never because the rejection means we never resolve a value and using anything else\n // will not be valid from the navigation guard's perspective\n Promise.reject(error)\n )\n ).finally(() => {\n setCurrentContext([]);\n isDataLoading.value = false;\n });\n });\n const removeAfterEach = router.afterEach((to, from, failure) => {\n if (failure) {\n to.meta[ABORT_CONTROLLER_KEY]?.abort(failure);\n if (\n // NOTE: using a smaller version to cutoff some bytes\n isNavigationFailure(\n failure,\n 16\n /* NavigationFailureType.duplicated */\n )\n ) {\n for (const loader of to.meta[LOADER_SET_KEY]) {\n const entry = loader._.getEntry(router);\n entry.resetPending();\n }\n }\n } else {\n for (const loader of to.meta[LOADER_SET_KEY]) {\n const { commit, lazy } = loader._.options;\n if (commit === \"after-load\") {\n const entry = loader._.getEntry(router);\n if (entry && (!toLazyValue(lazy, to, from) || !entry.isLoading.value)) {\n entry.commit(to);\n }\n }\n }\n }\n if (router[PENDING_LOCATION_KEY] === to) {\n router[PENDING_LOCATION_KEY] = null;\n }\n });\n const removeOnError = router.onError((error, to) => {\n to.meta[ABORT_CONTROLLER_KEY]?.abort(error);\n if (router[PENDING_LOCATION_KEY] === to) {\n router[PENDING_LOCATION_KEY] = null;\n }\n });\n return () => {\n delete router[LOADER_ENTRIES_KEY];\n delete router[APP_KEY];\n removeLoaderGuard();\n removeDataLoaderGuard();\n removeAfterEach();\n removeOnError();\n };\n}\nfunction isAsyncModule(asyncMod) {\n return typeof asyncMod === \"function\" && // vue functional components\n !(\"displayName\" in asyncMod) && !(\"props\" in asyncMod) && !(\"emits\" in asyncMod) && !(\"__vccOpts\" in asyncMod);\n}\nvar NavigationResult = class {\n constructor(value) {\n this.value = value;\n }\n};\nfunction DataLoaderPlugin(app, options) {\n const effect = effectScope(true);\n const removeGuards = setupLoaderGuard(assign({ app, effect }, options));\n const { unmount } = app;\n app.unmount = () => {\n effect.stop();\n removeGuards();\n unmount.call(app);\n };\n}\nfunction useIsDataLoading() {\n return inject(IS_DATA_LOADING_KEY);\n}\n\n// src/runtime.ts\nvar _definePage = (route) => route;\nvar definePage = (route) => route;\nfunction _mergeRouteRecord(main, ...routeRecords) {\n return routeRecords.reduce((acc, routeRecord) => {\n const meta = Object.assign({}, acc.meta, routeRecord.meta);\n const alias = [].concat(\n acc.alias || [],\n routeRecord.alias || []\n );\n Object.assign(acc, routeRecord);\n acc.meta = meta;\n acc.alias = alias;\n return acc;\n }, main);\n}\nexport {\n ABORT_CONTROLLER_KEY,\n APP_KEY,\n DataLoaderPlugin,\n IS_SSR_KEY,\n IS_USE_DATA_LOADER_KEY,\n LOADER_ENTRIES_KEY,\n LOADER_SET_KEY,\n NAVIGATION_RESULTS_KEY,\n NavigationResult,\n PENDING_LOCATION_KEY,\n STAGED_NO_VALUE,\n _definePage,\n _mergeRouteRecord,\n assign,\n currentContext,\n definePage,\n getCurrentContext,\n isSubsetOf,\n setCurrentContext,\n toLazyValue,\n trackRoute,\n useIsDataLoading,\n withLoaderContext\n};\n","\n\n\n","\n\n\n\n","\n\n\n","\n\n\n","\n\n \n \n ../../../helpers\n","\n\n\n","\n\n\n\n\n","\n\n\n","\n\n","\n\n\n\n","\n\n\n\n\n\n","\n\n\n","\n\n\n\n","\n\n\n","\n\n\n","\n\n\n","\n\n\n\n","\n\n\n","import _definePage_default_0 from '/opt/application/web/src/pages/index.vue?definePage&vue&lang.tsx'\nimport { _mergeRouteRecord } from 'unplugin-vue-router/runtime'\nimport _definePage_default_2 from '/opt/application/web/src/pages/dashboard/index.vue?definePage&vue&lang.tsx'\nimport _definePage_default_3 from '/opt/application/web/src/pages/dashboard/documentation/index.vue?definePage&vue&lang.tsx'\nimport _definePage_default_4 from '/opt/application/web/src/pages/dashboard/geolocation/view/[id].vue?definePage&vue&lang.tsx'\nimport _definePage_default_5 from '/opt/application/web/src/pages/dashboard/integration/index.vue?definePage&vue&lang.tsx'\nimport _definePage_sidepanel_6 from '/opt/application/web/src/pages/dashboard/integration/index@sidepanel.vue?definePage&vue&lang.tsx'\nimport _definePage_topbar_7 from '/opt/application/web/src/pages/dashboard/integration/index@topbar.vue?definePage&vue&lang.tsx'\nimport _definePage_default_8 from '/opt/application/web/src/pages/dashboard/manual-posting/index.vue?definePage&vue&lang.tsx'\nimport _definePage_topbar_9 from '/opt/application/web/src/pages/dashboard/manual-posting/index@topbar.vue?definePage&vue&lang.tsx'\nimport _definePage_default_10 from '/opt/application/web/src/pages/dashboard/my-organization/index.vue?definePage&vue&lang.tsx'\nimport _definePage_topbar_11 from '/opt/application/web/src/pages/dashboard/my-organization/index@topbar.vue?definePage&vue&lang.tsx'\nimport _definePage_default_12 from '/opt/application/web/src/pages/dashboard/order/index.vue?definePage&vue&lang.tsx'\nimport _definePage_topbar_13 from '/opt/application/web/src/pages/dashboard/order/index@topbar.vue?definePage&vue&lang.tsx'\nimport _definePage_default_14 from '/opt/application/web/src/pages/dashboard/order/view/[id].vue?definePage&vue&lang.tsx'\nimport _definePage_topbar_15 from '/opt/application/web/src/pages/dashboard/order/view/[id]@topbar.vue?definePage&vue&lang.tsx'\nimport _definePage_default_16 from '/opt/application/web/src/pages/dashboard/orderHistory.vue?definePage&vue&lang.tsx'\nimport _definePage_default_17 from '/opt/application/web/src/pages/dashboard/product/index.vue?definePage&vue&lang.tsx'\nimport _definePage_topbar_18 from '/opt/application/web/src/pages/dashboard/product/index@topbar.vue?definePage&vue&lang.tsx'\nimport _definePage_default_19 from '/opt/application/web/src/pages/dashboard/shipment/index.vue?definePage&vue&lang.tsx'\nimport _definePage_topbar_20 from '/opt/application/web/src/pages/dashboard/shipment/index@topbar.vue?definePage&vue&lang.tsx'\nimport _definePage_default_21 from '/opt/application/web/src/pages/dashboard/shippingProfile.vue?definePage&vue&lang.tsx'\nimport _definePage_default_22 from '/opt/application/web/src/pages/dashboard/shippingTable/index.vue?definePage&vue&lang.tsx'\nimport _definePage_default_23 from '/opt/application/web/src/pages/dashboard/statement.vue?definePage&vue&lang.tsx'\nimport _definePage_default_24 from '/opt/application/web/src/pages/dashboard/stats.vue?definePage&vue&lang.tsx'\nimport _definePage_default_25 from '/opt/application/web/src/pages/dashboard/support.vue?definePage&vue&lang.tsx'\nimport _definePage_default_26 from '/opt/application/web/src/pages/track-by-id/[id].vue?definePage&vue&lang.tsx'\nimport _definePage_default_27 from '/opt/application/web/src/pages/tracking.vue?definePage&vue&lang.tsx'\n\nexport const routes = [\n _mergeRouteRecord(\n {\n path: '/',\n name: '/',\n component: () => import('/opt/application/web/src/pages/index.vue'),\n /* no children */\n },\n _definePage_default_0\n ),\n {\n path: '/dashboard',\n name: '/dashboard',\n component: () => import('/opt/application/web/src/pages/dashboard.vue'),\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/',\n component: () => import('/opt/application/web/src/pages/dashboard/index.vue'),\n /* no children */\n },\n _definePage_default_2\n ),\n {\n path: 'documentation',\n /* internal name: '/dashboard/documentation' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/documentation/',\n component: () => import('/opt/application/web/src/pages/dashboard/documentation/index.vue'),\n /* no children */\n },\n _definePage_default_3\n ),\n {\n path: '_collapsible',\n name: '/dashboard/documentation/_collapsible',\n component: () => import('/opt/application/web/src/pages/dashboard/documentation/_collapsible.vue'),\n /* no children */\n }\n ],\n },\n {\n path: 'geolocation',\n /* internal name: '/dashboard/geolocation' */\n /* no component */\n children: [\n {\n path: 'view',\n /* internal name: '/dashboard/geolocation/view' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: ':id',\n name: '/dashboard/geolocation/view/[id]',\n component: () => import('/opt/application/web/src/pages/dashboard/geolocation/view/[id].vue'),\n /* no children */\n },\n _definePage_default_4\n )\n ],\n }\n ],\n },\n {\n path: 'integration',\n /* internal name: '/dashboard/integration' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/integration/',\n components: {\n 'default': () => import('/opt/application/web/src/pages/dashboard/integration/index.vue'),\n 'sidepanel': () => import('/opt/application/web/src/pages/dashboard/integration/index@sidepanel.vue'),\n 'topbar': () => import('/opt/application/web/src/pages/dashboard/integration/index@topbar.vue')\n },\n /* no children */\n },\n _definePage_default_5,\n _definePage_sidepanel_6,\n _definePage_topbar_7\n )\n ],\n },\n {\n path: 'manual-posting',\n /* internal name: '/dashboard/manual-posting' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/manual-posting/',\n components: {\n 'default': () => import('/opt/application/web/src/pages/dashboard/manual-posting/index.vue'),\n 'topbar': () => import('/opt/application/web/src/pages/dashboard/manual-posting/index@topbar.vue')\n },\n /* no children */\n },\n _definePage_default_8,\n _definePage_topbar_9\n )\n ],\n },\n {\n path: 'my-organization',\n /* internal name: '/dashboard/my-organization' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/my-organization/',\n components: {\n 'default': () => import('/opt/application/web/src/pages/dashboard/my-organization/index.vue'),\n 'topbar': () => import('/opt/application/web/src/pages/dashboard/my-organization/index@topbar.vue')\n },\n /* no children */\n },\n _definePage_default_10,\n _definePage_topbar_11\n ),\n {\n path: '_general',\n name: '/dashboard/my-organization/_general',\n component: () => import('/opt/application/web/src/pages/dashboard/my-organization/_general.vue'),\n /* no children */\n },\n {\n path: '_invitations',\n name: '/dashboard/my-organization/_invitations',\n component: () => import('/opt/application/web/src/pages/dashboard/my-organization/_invitations.vue'),\n /* no children */\n }\n ],\n },\n {\n path: 'order',\n /* internal name: '/dashboard/order' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/order/',\n components: {\n 'default': () => import('/opt/application/web/src/pages/dashboard/order/index.vue'),\n 'topbar': () => import('/opt/application/web/src/pages/dashboard/order/index@topbar.vue')\n },\n /* no children */\n },\n _definePage_default_12,\n _definePage_topbar_13\n ),\n {\n path: 'custom-headers',\n name: '/dashboard/order/custom-headers',\n component: () => import('/opt/application/web/src/pages/dashboard/order/custom-headers.vue'),\n /* no children */\n },\n {\n path: 'view',\n /* internal name: '/dashboard/order/view' */\n /* no component */\n children: [\n {\n path: '_commission-info',\n name: '/dashboard/order/view/_commission-info',\n component: () => import('/opt/application/web/src/pages/dashboard/order/view/_commission-info.vue'),\n /* no children */\n },\n {\n path: '_fragment-info',\n name: '/dashboard/order/view/_fragment-info',\n component: () => import('/opt/application/web/src/pages/dashboard/order/view/_fragment-info.vue'),\n /* no children */\n },\n {\n path: '_top-notice',\n name: '/dashboard/order/view/_top-notice',\n component: () => import('/opt/application/web/src/pages/dashboard/order/view/_top-notice.vue'),\n /* no children */\n },\n _mergeRouteRecord(\n {\n path: ':id',\n name: '/dashboard/order/view/[id]',\n components: {\n 'default': () => import('/opt/application/web/src/pages/dashboard/order/view/[id].vue'),\n 'topbar': () => import('/opt/application/web/src/pages/dashboard/order/view/[id]@topbar.vue')\n },\n /* no children */\n },\n _definePage_default_14,\n _definePage_topbar_15\n )\n ],\n }\n ],\n },\n _mergeRouteRecord(\n {\n path: 'orderHistory',\n name: '/dashboard/orderHistory',\n component: () => import('/opt/application/web/src/pages/dashboard/orderHistory.vue'),\n /* no children */\n },\n _definePage_default_16\n ),\n {\n path: 'product',\n /* internal name: '/dashboard/product' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/product/',\n components: {\n 'default': () => import('/opt/application/web/src/pages/dashboard/product/index.vue'),\n 'topbar': () => import('/opt/application/web/src/pages/dashboard/product/index@topbar.vue')\n },\n /* no children */\n },\n _definePage_default_17,\n _definePage_topbar_18\n ),\n {\n path: 'plan-section',\n name: '/dashboard/product/plan-section',\n component: () => import('/opt/application/web/src/pages/dashboard/product/plan-section.vue'),\n /* no children */\n }\n ],\n },\n {\n path: 'shipment',\n /* internal name: '/dashboard/shipment' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/shipment/',\n components: {\n 'default': () => import('/opt/application/web/src/pages/dashboard/shipment/index.vue'),\n 'topbar': () => import('/opt/application/web/src/pages/dashboard/shipment/index@topbar.vue')\n },\n /* no children */\n },\n _definePage_default_19,\n _definePage_topbar_20\n )\n ],\n },\n _mergeRouteRecord(\n {\n path: 'shippingProfile',\n name: '/dashboard/shippingProfile',\n component: () => import('/opt/application/web/src/pages/dashboard/shippingProfile.vue'),\n /* no children */\n },\n _definePage_default_21\n ),\n {\n path: 'shippingTable',\n /* internal name: '/dashboard/shippingTable' */\n /* no component */\n children: [\n _mergeRouteRecord(\n {\n path: '',\n name: '/dashboard/shippingTable/',\n component: () => import('/opt/application/web/src/pages/dashboard/shippingTable/index.vue'),\n /* no children */\n },\n _definePage_default_22\n )\n ],\n },\n _mergeRouteRecord(\n {\n path: 'statement',\n name: '/dashboard/statement',\n component: () => import('/opt/application/web/src/pages/dashboard/statement.vue'),\n /* no children */\n },\n _definePage_default_23\n ),\n _mergeRouteRecord(\n {\n path: 'stats',\n name: '/dashboard/stats',\n component: () => import('/opt/application/web/src/pages/dashboard/stats.vue'),\n /* no children */\n },\n _definePage_default_24\n ),\n _mergeRouteRecord(\n {\n path: 'support',\n name: '/dashboard/support',\n component: () => import('/opt/application/web/src/pages/dashboard/support.vue'),\n /* no children */\n },\n _definePage_default_25\n )\n ],\n },\n {\n path: '/track-by-id',\n /* internal name: '/track-by-id' */\n /* no component */\n children: [\n {\n path: '_order-box',\n name: '/track-by-id/_order-box',\n component: () => import('/opt/application/web/src/pages/track-by-id/_order-box.vue'),\n /* no children */\n },\n _mergeRouteRecord(\n {\n path: ':id',\n name: '/track-by-id/[id]',\n component: () => import('/opt/application/web/src/pages/track-by-id/[id].vue'),\n /* no children */\n },\n _definePage_default_26\n )\n ],\n },\n _mergeRouteRecord(\n {\n path: '/tracking',\n name: '/tracking',\n component: () => import('/opt/application/web/src/pages/tracking.vue'),\n /* no children */\n },\n _definePage_default_27\n )\n]\n\nexport function handleHotUpdate(_router, _hotUpdateCallback) {\n if (import.meta.hot) {\n import.meta.hot.data.router = _router\n import.meta.hot.data.router_hotUpdateCallback = _hotUpdateCallback\n }\n}\n\nif (import.meta.hot) {\n import.meta.hot.accept((mod) => {\n const router = import.meta.hot.data.router\n if (!router) {\n import.meta.hot.invalidate('[unplugin-vue-router:HMR] Cannot replace the routes because there is no active router. Reloading.')\n return\n }\n router.clearRoutes()\n for (const route of mod.routes) {\n router.addRoute(route)\n }\n // call the hotUpdateCallback for custom updates\n import.meta.hot.data.router_hotUpdateCallback?.(mod.routes)\n const route = router.currentRoute.value\n router.replace({\n ...route,\n // NOTE: we should be able to just do ...route but the router\n // currently skips resolving and can give errors with renamed routes\n // so we explicitly set remove matched and name\n name: undefined,\n matched: undefined,\n force: true\n })\n })\n}\n\n","\"use strict\";\nexport const publicUrl = (config) => {\n if (typeof config.publicUrl === \"string\") {\n return config.publicUrl;\n }\n return config.environment === \"development\" ? config.publicUrl.development : config.publicUrl.production;\n};\n","\"use strict\";\nimport { request } from \"./http.mjs\";\nimport { publicUrl } from \"./utils.mjs\";\nconst proxify = (config, _target, bearerToken, parent) => {\n return new Proxy(_target, {\n get: (target, key) => {\n if (typeof key === \"symbol\") {\n return target[key];\n }\n const fn = async (payload) => {\n const method = key;\n const requestConfig = {\n params: {\n method,\n headers: {}\n }\n };\n if (method !== \"GET\" && method !== \"HEAD\") {\n if (payload) {\n requestConfig.params.headers = {\n \"content-type\": \"application/json\"\n };\n }\n }\n if (bearerToken) {\n requestConfig.params.headers.authorization = `Bearer ${bearerToken}`;\n }\n const response = await request(\n config,\n `${publicUrl(config)}/${parent}`,\n payload,\n requestConfig\n );\n return response.data;\n };\n const path = parent ? `${parent}/${key}` : key;\n return proxify(config, fn, bearerToken, path);\n }\n });\n};\nexport const topLevel = (config) => {\n const fn = (bearerToken) => {\n return proxify(config, {}, bearerToken);\n };\n return proxify(config, fn);\n};\n","import { topLevel } from './topLevel.mjs'\nimport { getStorage } from './storage.mjs'\nimport { uploader } from './upload.mjs'\nexport const config = {\"publicUrl\":{\"development\":\"http://localhost:3000/api\",\"production\":\"https://pedidos.capsulbrasil.com.br/api\"},\"storage\":{\"strategy\":\"localStorage\",\"namespace\":\"aeria\"},\"mirrorPaths\":[\".aeria\",\"../web/.aeria-ui\",\"../pigeon/.aeria\"]}\nexport const url = 'https://pedidos.capsulbrasil.com.br/api'\nexport const aeria = topLevel(config)\nexport const storage = getStorage(config)\nexport const upload = uploader(config)\nexport default aeria\n\n","\n\n","import { userRoutes, dashboardRoutes } from 'aeria-ui'\nimport { AuthWall } from 'aeria-app-layout'\nimport { routes as autoRoutes } from 'vue-router/auto-routes'\nimport DashboardLayout from './pages/dashboard.vue'\n\nexport const routes = autoRoutes.concat([\n userRoutes(AuthWall),\n dashboardRoutes(DashboardLayout),\n])\n\n","import { defineLocale } from \"aeria-ui\";\nimport { Reasons } from \"../../api/src/utils/spreadsheetValidator\"\n\nconst reasonsLocalization: Record> = {\n empty: \"vazio\",\n invalid_date: \"data inválida\",\n invalid_document: \"documento inválido\",\n invalid_integer: \"número inteiro inválido\",\n invalid_number: \"número inválido\",\n not_text: \"não é um texto\",\n invalid_format: \"formato inválido\"\n}\n\nexport const ptBr = defineLocale({\n local_id: \"ID local\",\n tracking_code: \"Código de rastreio\",\n error_marked_by:\"Erro marcado por\",\n business: [\"empresa\", \"empresas\"],\n customer: [\"cliente\", \"clientes\"],\n failedorder: [\"pedido problemático\", \"pedidos problemáticos\"],\n geolocation: [\"endereço\", \"endereços\"],\n integration: [\"integração\", \"integrações\"],\n integrations: \"integrações\",\n lateorder: [\"pedido em atraso\", \"pedidos em atraso\"],\n order: [\"pedido\", \"pedidos\"],\n orderreview: [\"revisão de pedido\", \"revisões de pedido\"],\n platform: [\"plataforma\", \"plataformas\"],\n product: [\"produto\", \"produtos\"],\n products: \"produtos\",\n productplan: [\"plano\", \"planos\"],\n productPlan: [\"plano\", \"planos\"],\n reshipment: [\"reenvio\", \"reenvios\"],\n shipment: [\"remessa\", \"remessas\"],\n shippingprofile: [\"perfil de logística\", \"perfis de logística\"],\n shippingProfile: [\"perfil de logística\", \"perfis de logística\"],\n shippingprovider: [\"transportadora\", \"transportadoras\"],\n shippingService: [\"serviço de entrega\", \"serviços de entrega\"],\n shippingtable: [\"tabela de frete\", \"tabelas de frete\"],\n created: \"criado\",\n authorized: \"autorizado\",\n waiting_payment: \"pendente\",\n paid: \"pago\",\n handling_products: \"em preparação\",\n on_carriage: \"a caminho\",\n delivered: \"entregue\",\n cancelled: \"cancelado\",\n refused: \"recusado\",\n invoiced: \"nota fiscal emitida\",\n shipment_exception: \"exceção na entrega\",\n in_review: \"em revisão\",\n sent: \"enviado\",\n pending: \"pendente\",\n settled: \"resolvido\",\n unsettled: \"não resolvido\",\n shipping_cancel: \"Cancelamento de envio\",\n address_change: \"Alteração de envio\",\n quantity_change: \"Alteração de quantidade\",\n product_change: \"Alteração de produto\",\n modality_change: \"Alteração de modalidade\",\n not_rejected: \"Não foi rejeitado\",\n already_processed: \"Já havia sido aferido pelo sistema\",\n already_posted: \"Já havia sido postado\",\n already_shipping: \"Passou por troca e já está em transporte\",\n none: \"Nenhum\",\n problematic: \"problemático\",\n healthy: \"saudável\",\n name: \"nome\",\n document: \"documento\",\n content_description: \"Conteúdo\",\n height: \"Altura\",\n width: \"Largura\",\n weight: \"Peso\",\n declared_value: \"Valor declarado\",\n amount: \"Valor\",\n receiver_name: \"Nome do destinatário\",\n receiver_address: \"Endereço do destinatário\",\n receiver_district: \"Bairro do destinatário\",\n receiver_city: \"Cidade do destinatário\",\n receiver_document: \"CPF do destinatário\",\n receiver_number: \"Número do endereço destino\",\n receiver_complement: \"Complemento do destinatário\",\n receiver_state: \"Estado do destinatário (UF)\",\n receiver_email: \"Email de contato\",\n receiver_phone: \"Telefone\",\n address: \"Endereço\",\n district: \"Bairro\",\n city: \"Cidade\",\n number: \"Número\",\n complement: \"Complemento\",\n state: \"Estado\",\n debit: \"débito\",\n credit: \"crédito\",\n date_min: \"Data mínima\",\n date_max: \"Data máxima\",\n orderpaid: \"pago\",\n orderupdated: \"atualizado\",\n ordertoken: \"token\",\n mapping: \"mapeamento\",\n organization: \"organização\",\n profile: \"perfil\",\n signout: \"Sair\",\n \"action.signout\": \"Sair\",\n copy_activation_link: \"Copiar link de ativação\",\n token: [\"token\", 'tokens'],\n plans: \"planos\",\n quantity: \"quantidade\", \n customer_name: \"nome do cliente\",\n customer_document: \"documento do cliente\",\n customer_email: \"email do cliente\",\n customer_phone: \"número do cliente\",\n street: \"rua\",\n zipcode: \"CEP\",\n payment_type: \"forma de pagamento\",\n date_created: \"data de criação\",\n retained_value: \"valor retido\",\n plan: [\"plano\", \"planos\"],\n commission_value: \"valor da comissão\",\n commission_type: \"tipo da comissão\",\n fixed: \"fixo\",\n percentage: \"porcentagem\",\n product_name: \"nome do produto\",\n plan_name: \"nome do plano\",\n product_code: \"código do produto\",\n plan_code: \"código do plano\",\n product_type: \"Tipo de produto\",\n devolution: \"devolução\",\n created_at: \"Criado em\",\n updated_at: \"Atualizado em\",\n provider: \"Provedor\",\n picture: \"Imagem\",\n phone_number: \"número de telefone\",\n picture_file: \"arquivo de imagem\",\n details: \"detalhes\",\n message: \"mensagem\",\n owner: \"dono\",\n context: \"contexto\",\n locked: \"trancado\",\n code: \"código\",\n was_configured: \"foi configurado\",\n key: \"chave\",\n franchise: \"franquia\",\n identifier: \"identificador\",\n file: \"arquivo\",\n files: \"arquivos\",\n copy_redefine_password_link: \"Copiar link de redefinição de senha\",\n shippingTable: \"Tabela de envio\",\n producer: \"produtor\",\n producerSupport: \"produtor\", \n customerSupport: \"suporte ao cliente\", \n support: \"suporte\",\n logistic: \"logística\",\n guest: \"convidado\",\n manager: \"gerente\",\n root: \"superusuário\",\n roles: \"cargos\",\n active: \"ativo\",\n waiting_retrieval: \"disponível para retirada\",\n redefine_password: \"Redefinir senha\",\n platform_tracking_update: \"Envio de rastreio para plataforma\",\n status_updated: \"Status atualizado\",\n shipment_dispatched: \"Encomenda despachada\",\n copied_to_clipboard: \"Copiado pra área de transferência\",\n ...reasonsLocalization\n});","import type { CollectionItemWithId, Description, EnumProperty, Filters, JsonSchema, Property} from '@aeriajs/types'\nimport type { OrderInsertReturnType } from '../../../api/src/collections/order/insert'\nimport { createStore, useStore, createCollectionStore, t } from 'aeria-ui'\nimport { reactive } from 'vue'\nimport { Result } from '@aeriajs/types'\nimport { description } from '../../../api/src/collections/shippingProfile/description';\n\nconst restrictedStatus = [\n \"created\",\n \"authorized\",\n \"waiting_payment\",\n \"paid\",\n \"handling_products\",\n \"on_carriage\",\n \"delivered\",\n \"refused\",\n \"invoiced\",\n \"shipment_exception\",\n \"chargeback\",\n \"in_review\",\n \"available_for_pickup\",\n]\n\nexport const createOrderStructure = () => {\n const initialState = reactive({\n orderHistory: [] as Array> | Array,\n rawDescription: {} as Description,\n description: {} as JsonSchema,\n generation: {\n mapping: 'orderpaid',\n date_min: 0 as string | number,\n date_max: 0 as string | number,\n platforms: []\n },\n item:{} as CollectionItemWithId<\"order\">,\n failedOrdersCount: 0,\n notifyAboutOrder: {\n panel: false,\n panelLoading: false,\n form: {\n notify: 'producer',\n emailMessage: undefined,\n emailTitle: undefined,\n orderId: \"\"\n } as Parameters[0]\n }\n })\n\n const getters = (state: typeof initialState) => ({\n /* availableFilters: computed(() => {\n if (!(\"filters\" in state.description)) {\n return {}\n }\n\n const filters: Record = {}\n for( const key in normalizeFilters(state.description.filters as Array) ) {\n if( key in state.description.properties ) {\n filters[key] = state.description.properties[key]\n }\n }\n if(\"enum\" in filters.status){\n filters.status.enum = [ ...restrictedStatus, ...filters.status.enum]\n }\n return filters\n }), */\n properties: computed((): Description['properties'] => {\n const userStore = useStore('user')\n const currentUser = userStore.currentUser\n \n if(currentUser.roles.includes(\"support\") || currentUser.roles.includes(\"customerSupport\") || currentUser.roles.includes(\"logistic\")){\n (state.description.properties.status as EnumProperty & {enum:readonly string[]}).enum = (state.description.properties.status as EnumProperty & {enum:readonly string[]}).enum.filter(\n (stat: string )=> !restrictedStatus.includes(stat)\n );\n }\n return state.description.properties\n }),\n $history: computed(() => {\n if (state.orderHistory.length === 0) {\n const stored = localStorage.getItem('order:history')\n const orderHistory: Array> = stored\n ? JSON.parse(stored)\n : []\n\n state.orderHistory = orderHistory\n }\n return state.orderHistory\n }),\n $generation: computed(() => {\n const generation = Object.assign({}, state.generation)\n const now = new Date()\n\n const daysDiff = (_d1: string, _d2: string | Date) => {\n const d1 = new Date(_d1)\n const d2 = _d2 instanceof Date ? _d2 : new Date(_d2)\n return Math.floor((d1.getTime() - d2.getTime()) / (1000 * 3600 * 24))\n }\n\n generation.date_min = generation.date_min\n ? daysDiff(String(generation.date_min), now)\n : -1\n\n generation.date_max = generation.date_max\n ? daysDiff(String(generation.date_max), String(state.generation.date_min) || new Date)\n : generation.date_min * -1\n\n return generation\n\n })\n })\n\n return {\n state: initialState,\n getters,\n }\n}\n\nexport const order = createStore((context) => {\n const { state, getters } = createOrderStructure()\n const metaStore = useStore('meta', context.manager)\n\n return createCollectionStore({\n $id: 'order',\n state,\n getters,\n actions: (state, actions) => ({\n generate() {\n return actions.custom('generate', state.generation)\n },\n async countFailedOrders() {\n if (state.failedOrdersCount < 1) {\n const { result }: any = await actions.count({\n filters: {\n error: {\n $ne: null\n }\n }\n })\n\n state.failedOrdersCount = result\n }\n },\n async sendForReview(filters: Pick, '_id' | 'status'>) {\n return actions.insert({\n what: {\n _id: filters._id as unknown as string,\n status: 'in_review',\n sent_for_review: true,\n previous_status: filters.status\n }\n })\n },\n async unboundShipment(filters: Pick, '_id'>) {\n const either = await aeria.order.unboundShipment.POST({ filters })\n\n if (either.result) {\n actions.insertItem(either.result)\n }\n\n return either\n },\n async freeOrders(payload: { filters: Filters }) {\n const result = await aeria.order.freeOrders.POST(payload)\n ROUTER.go(0)\n return result\n },\n async updateTracking(payload: Parameters[0]) {\n const either = await aeria.order.updateTracking.POST(payload)\n\n if (either.error) {\n metaStore.$actions.spawnToast({\n text: either.error.message || \"Algum erro ocorreu ao atualizar o rastreio.\",\n icon: 'x-circle'\n })\n\n console.error(either.error)\n } else {\n metaStore.$actions.spawnToast({\n text: `Rastreio enviado para plataforma e notificação enviada para ${payload.customer.name}.`,\n icon: 'envelope'\n })\n }\n\n return either\n },\n async resetProblematic(payload: Pick, '_id'>) {\n await metaStore.$actions.spawnPrompt({\n title: \"Resolver pedido\",\n body: \"Essa ação só deve ser tomada caso o pedido já tenha seu problema resolvido, tem certeza que quer fazer isso ?\",\n options: {\n no: {\n title: \"Não\",\n variant: \"danger\"\n },\n yes: {\n title: \"Sim\",\n click: async () => {\n const either = await aeria.order.resetProblematic.POST({ order_id: payload._id })\n if (either.error) {\n metaStore.$actions.spawnModal({\n title: \"Erro. \",\n body: `Erro ao resolver o pedido: ${either.error.message || either.error.code}`\n })\n metaStore.prompt.visible = false\n\n return\n }\n \n ROUTER.go(0)\n return either\n }\n }\n }\n })\n },\n async insert(payload: { what: CollectionItemWithId<\"order\"> }) {\n // Responsible for notifying the user the tracking update status if he edited the tracking_code\n const insertEither: Awaited = await actions.custom('insert', payload)\n\n if (insertEither.error) {\n if (insertEither.error.code === \"MISSING_PROVIDER\") {\n metaStore.$actions.spawnModal({\n title: \"Ops...\",\n body: \"Ao editar o rastreio é necessário colocar a transportadora.\",\n })\n } else if (insertEither.error.code === \"STATUS_CHANGE_NOT_AUTHORIZED\") {\n metaStore.$actions.spawnModal({\n title: \"Ops...\",\n body: `Seus cargos atuais só permitem mudar pros seguintes status: ${(insertEither.error.details as string[]).join(\", \")}`,\n })\n }\n\n return insertEither\n }\n\n const { result } = insertEither\n if (result) {\n actions.insertItem(result)\n if ('tracking_updated' in result) {\n if (result.tracking_updated === true) {\n metaStore.$actions.spawnToast({\n text: `Rastreio enviado para plataforma e notificação enviada para ${result.customer.name}.`,\n icon: 'envelope'\n })\n } else {\n metaStore.$actions.spawnToast({\n text: `Algum erro ocorreu ao disparar o rastreio.`,\n icon: 'x-circle'\n })\n }\n }\n }\n\n return insertEither\n },\n async makeReshipment(filters: Pick, '_id'>) {\n /* const reshipmentStore = useStore('reshipment', context.manager) */\n const orderStore = useStore('order', context.manager)\n const { error, result: order } = await orderStore.$actions.get({\n filters: {\n _id: filters._id\n }\n })\n\n if (error) {\n console.trace(error)\n return\n }\n\n /* const item = {\n customer: order.customer,\n products: order.products,\n plans: order.plans,\n shipping_profile: order.shipping_profile,\n shipping_service: order.shipping_service,\n shipping_address: order.shipping_address,\n }\n\n reshipmentStore.$actions.setItem(item) */\n\n const params = {\n //weight: order.,\n declared_value: order.shipping_cost as unknown as string,\n //height: '0',\n //width: '0',\n content_description: order.content_description ?? '',\n receiver_name: order.customer?.name,\n receiver_email: order.customer?.email,\n receiver_phone: order.customer?.phone,\n receiver_document: order.customer?.document,\n receiver_country: order.shipping_address?.country,\n receiver_address: order.shipping_address?.address,\n receiver_number: order.shipping_address?.number,\n receiver_district: order.shipping_address?.district,\n receiver_state: order.shipping_address?.state,\n receiver_zipcode: order.shipping_address?.zipcode,\n receiver_city: order.shipping_address?.city,\n receiver_complement: order.shipping_address?.complement ?? '',\n products: order.products.map((p: any) => p._id),\n order_token: order.token,\n } as any\n if (order.integration?._id) {\n params.integration = order.integration._id.toString()\n }\n const queryFields = new URLSearchParams(params).toString()\n ROUTER.push(`/dashboard/manual-posting?${queryFields}&modality=${params.products?.length > 0 ? \"products\" : \"content\"}`)\n },\n\n async getTracking(payload: Parameters[0]) {\n const { error, result } = await aeria.order.getTracking.POST({ document: String(payload.document) })\n\n if (error) {\n localStorage.clear()\n return Result.error(error)\n }\n\n state.items = result\n return Result.result(\"found\")\n },\n async pushToHistory() {\n await aeria.order.pushToHistory.POST({\n order_id: state.item._id,\n })\n },\n clearHistory() {\n localStorage.removeItem('order:history')\n state.orderHistory = []\n },\n async copyToClipboard() {\n const {\n _id,\n __v,\n created_at,\n updated_at,\n events,\n sent_for_revision,\n ...order\n } = state.item\n\n const properties = Object.keys(state.description.properties)\n order.status = t(order.status)\n\n const result: string = Object.entries(order)\n .sort((a: any, b: any) => properties.indexOf(a[0]) > properties.indexOf(b[0]) ? 1 : - 1)\n .reduce((a: string, [key, v]: any) => {\n if (!(key in state.description.properties)) {\n return a\n }\n\n const description = state.description.properties[key].description || key\n const value = actions.formatValue({\n value: v,\n key,\n property: state.rawDescription.properties[key]\n })\n\n return a + `${description}: ${value}\\n`\n\n }, '')\n\n await navigator.clipboard.writeText(result)\n // this.store('meta').spawnToast({\n // text: 'Dados copiados!'\n // })\n },\n getComputedColor(status: CollectionItemWithId<\"order\">['status']) {\n switch (status) {\n case 'paid': return 'brand'\n // case 'cancelled':\n // case 'refused':\n // return 'red'\n // case 'waiting_payment': return 'yellow'\n default: return 'gray'\n }\n },\n viewProducts: async (filters: Pick, 'products'>) => {\n ROUTER.push({\n path: '/dashboard/product/',\n query: {\n 'product._id': filters.products.map(p => p._id)\n }\n })\n },\n notify: async (order: CollectionItemWithId<\"order\">) => {\n state.notifyAboutOrder.form.emailTitle = \"Capsul - Problemas com pedido\"\n state.notifyAboutOrder.form.emailMessage = `Olá ${order.customer.name}, seu pedido ${order.local_id} possui problemas que impossibilitam o envio, precisamos de sua colaboração para que possamos corrigi-lo o mais rápido possível. Contate-nos em (37) 99840-7066`\n state.notifyAboutOrder.form.orderId = order._id\n \n state.notifyAboutOrder.panel = true\n },\n notifyAboutOrder: async () => {\n state.notifyAboutOrder.panelLoading = true\n try {\n const either = await aeria.order.notifyAboutOrder.POST(state.notifyAboutOrder.form)\n if (either.error) {\n metaStore.$actions.spawnModal({\n title: \"Erro.\",\n body: either.error.message || either.error.code\n })\n } else {\n metaStore.$actions.spawnToast({\n text: `Notificação enviada para ${either.result.name}`,\n icon: \"envelope\"\n })\n }\n state.notifyAboutOrder.panel = state.notifyAboutOrder.panelLoading = false\n return either\n } catch (error) {\n console.error(error)\n metaStore.$actions.spawnModal({\n title: \"Erro.\",\n body: String(error)\n })\n }\n\n state.notifyAboutOrder.panel = state.notifyAboutOrder.panelLoading = false\n }\n }),\n }, context)\n})","import { createStore, useStore, createCollectionStore } from 'aeria-ui'\n\nexport const customer = createStore((context) => createCollectionStore({\n $id: 'customer',\n state: {},\n actions: () => ({\n viewOrders: async (filters: T) => {\n const orderStore = useStore('order', context.manager)\n orderStore.filters.customer = filters._id\n\n await orderStore.$actions.filter()\n ROUTER.push({\n name: '/dashboard/order/',\n query: {\n 'order.customer': filters._id\n }\n })\n }\n })\n}, context))\n\n","import { createStore, useStore, createCollectionStore } from 'aeria-ui'\n\nexport const product = createStore((context) => createCollectionStore({\n $id: 'product',\n actions: (_state, _actions) => ({\n async viewOrders(filters: T) {\n const orderStore = useStore('order', context.manager)\n orderStore.filters.products = filters\n\n await orderStore.$actions.filter()\n ROUTER.push({\n name: '/dashboard/order/',\n query: {\n 'order.products[]': filters._id\n }\n })\n }\n })\n}, context))\n\n","import type { Shipment } from '../../../api/src/collections/shipment/description'\nimport { createStore, useStore, createCollectionStore, API_URL } from 'aeria-ui'\n\nexport const shipment = createStore((context) => {\n const metaStore = useStore('meta', context.manager)\n return createCollectionStore({\n $id: 'shipment',\n state: {\n generation: {\n limit: 0,\n hoursAgo: 4,\n reshipmentOnly: false,\n groupOrders: true,\n },\n updateTracking: {\n date_min: new Date(),\n date_max: new Date(),\n pay_after_delivery: false\n }\n },\n actions: (state, actions) => ({\n viewContent(filters: Pick) {\n const orderStore = useStore('order', context.manager)\n orderStore.filters = {\n $or: [\n { shipment: filters._id },\n { shipment_older: filters._id }\n ],\n ...orderStore.freshFilters\n }\n \n orderStore.$actions.clearItems()\n ROUTER.push('/dashboard/order/')\n },\n downloadFiles(filters: Pick) {\n window.open(`${API_URL}/shipment/downloadFiles/${filters._id}`)\n },\n async downloadLabels(filters: Pick) {\n if( filters.status === 'pending' ) {\n const metaStore = useStore('meta', context.manager)\n const prompt = await metaStore.$actions.spawnPrompt({\n body: `\n Deseja aproveitar e marcar essa PLP como enviada?\n Após a PLP ser marcada como \"enviada\", o status não poderá ser revertido sem que todos os pedidos sejam desvinculados da mesma, o que fará com que esses pedidos caiam em outra PLP numa próxima geração de etiquetas.\n `,\n options: {\n no: {\n title: 'Não',\n variant: 'danger',\n },\n yes: {\n title: 'Sim',\n }\n }\n })\n \n if( prompt.name === 'yes' ) {\n await actions.insert({\n what: {\n _id: filters._id,\n status: 'sent',\n }\n })\n }\n }\n \n window.open(`${API_URL}/shipment/downloadLabels/${filters._id}`)\n },\n downloadShipment() {\n \n },\n // markAsSent(payload: any) {\n // return this.customEffect(\n // 'markAsSent', payload,\n // this.insertItem\n // )\n // },\n // markAsCancelled(payload: any) {\n // return this.customEffect(\n // 'markAsCancelled', payload,\n // this.insertItem\n // )\n // },\n async updateTracking(filters: Pick) {\n const either = await aeria.shipment.updateTracking.POST({\n _id: filters._id\n })\n \n const metaStore = useStore('meta', context.manager)\n if (either.error) {\n metaStore.$actions.spawnModal({\n title: 'Erro...',\n body: either.error.message || either.error.code\n })\n return\n }\n \n metaStore.$actions.spawnModal({\n title: 'Sucesso',\n body: 'Mensagem adicionada à fila'\n })\n return \n },\n async make() {\n const either = await aeria.shipment.make.POST(state.generation)\n if (either.error) {\n metaStore.$actions.spawnModal({\n title: \"Erro.\",\n body: `Erro ao gerar etiquetas: ${either.error.message || either.error.code}`\n })\n }\n return either\n },\n async updateSpanTracking() {\n const either = await aeria.shipment.updateSpanTracking.POST(state.updateTracking)\n if (either.error) {\n metaStore.$actions.spawnModal({\n title: \"Erro.\",\n body: `Erro ao atualizar rastreios: ${either.error.message || either.error.code}`\n })\n }\n return either\n },\n getComputedColor(status: string) {\n switch( status ) {\n case 'sent': return 'brand'\n case 'pending': return 'pending'\n default: return 'grey'\n }\n }\n // remake(payload: any) {\n // return this.custom('remake', payload)\n // }\n })\n }, context) \n})\n","import { createStore, createCollectionStore } from 'aeria-ui'\nimport { reactive } from 'vue'\n\nexport const shippingTable = createStore((context) => {\n const state = reactive({\n simulation: {\n zipcode: '',\n weight: 0\n }\n })\n\n return createCollectionStore({\n $id: 'shippingTable',\n state,\n actions: (_, actions) => ({\n simulate() {\n return actions.custom('simulate', state.simulation)\n },\n\n // load({ filters }: any) {\n // return this.customEffect(\n // 'load', { filters: { _id: filters._id } },\n // this.insertItem\n // )\n // },\n\n // unload({ filters }: any) {\n // return this.customEffect(\n // 'unload', { filters: { _id: filters._id } },\n // this.insertItem\n // )\n // },\n\n // async loadAll() {\n // this.custom('loadAll')\n // return this.filter()\n // },\n // async unloadAll() {\n // this.custom('unloadAll')\n // return this.filter()\n // }\n\n })\n }, context)\n})\n","import { createStore, createCollectionStore } from 'aeria-ui'\n\nexport const integration = createStore((context) => createCollectionStore({\n $id: 'integration',\n state: {\n getSpan: {\n date_min: new Date(),\n date_max: new Date(),\n mapping: \"orderpaid\"\n }\n }\n}, context))\n","import { createStore, createCollectionStore } from 'aeria-ui'\n\nimport { createOrderStructure } from './order'\nexport * from './order'\nexport * from './customer'\nexport * from './product'\nexport * from './shipment'\nexport * from './shippingTable'\nexport * from './integration'\n\nexport const orderReview = createStore((manager) => createCollectionStore({\n $id: 'order',\n ...createOrderStructure()\n}, manager))\n\nexport const reshipment = createStore((manager) => createCollectionStore({\n $id: 'order',\n ...createOrderStructure()\n}, manager))\n","export default \"__VITE_PUBLIC_ASSET__ba34bb99__\"","\n","\n\n\n\n\n","\n\n\n","\n\n\n","import { useApp, useStore, defineOptions, registerStores } from 'aeria-ui'\n\nexport const daysAgo = function(target: Date, days: number) {\n const d = new Date()\n d.setDate(target.getDate() - days)\n return d\n}\n\nimport '@aeria-ui/ui/style.css'\nimport 'aeria-app-layout/style.css'\nimport './style/main.css'\nimport './style/main.less'\n\nimport Main from './main.vue'\nimport aeriaPtbr from '@aeria-ui/i18n-pt'\nimport { routes } from './routes'\n\nimport { ptBr } from '../i18n/index.js'\nimport * as stores from './stores'\n\nimport EmptyComponent from './components/empty-component.vue'\nimport PlatformSelect from './components/platform-select.vue'\nimport AuthorizationLabel from './components/authorization-label.vue'\n\n\nconst options = defineOptions({\n routes,\n component: Main,\n setup: ({ context }) => {\n registerStores(stores, context)\n },\n i18n: {\n current: 'pt_BR',\n locales: {\n pt_BR: [\n aeriaPtbr,\n ptBr,\n ],\n }\n },\n menuSchema: [\n {\n children: [\n '/dashboard/',\n '/dashboard/order',\n '/dashboard/product',\n '/dashboard/orderHistory',\n {\n path: '/dashboard/customer',\n roles: [\n 'root',\n 'logistic',\n 'support',\n 'manager'\n ]\n }\n ]\n },\n {\n roles: [\n 'manager', \n 'root', \n 'customerSupport', \n 'support',\n 'logistic'\n ],\n children: [\n {\n path: '/dashboard/shipment/',\n badge: async () => {\n const { result } = await useStore('shipment').$functions.count({\n filters: {\n status: {\n $in: [\n 'pending',\n 'failed'\n ]\n }\n }\n })\n return result\n }\n },\n '/dashboard/manual-posting',\n ]\n },\n {\n roles: ['customerSupport', 'logistic', 'manager', 'root', 'support'],\n meta: {\n title: 'Configurações',\n icon: 'gear',\n },\n collapsed: true,\n children: [\n '/dashboard/business',\n '/dashboard/shippingTable/',\n '/dashboard/shippingService',\n '/dashboard/shippingProfile',\n {\n path: '/dashboard/integration/',\n badge: async () => {\n const { result } = await useStore('integration').$functions.count({\n filters: {\n fail_count: -1\n }\n })\n return result \n },\n },\n ]\n },\n {\n roles: [\n 'root',\n 'manager'\n ],\n children: [\n '/dashboard/user',\n '/dashboard/log',\n '/dashboard/organization'\n ]\n },\n {\n children: [\n '/dashboard/stats',\n ]\n },\n ],\n})\n\nuseApp(options).then(({ app, mount }) => {\n app.provide('emptyComponent', EmptyComponent)\n app.provide('propertyComponents', {\n PlatformSelect,\n AuthorizationLabel\n })\n mount()\n})\n\n"],"file":"assets/index-9ZTM1D6i.js"}