\ No newline at end of file
diff --git a/docs/_next/static/chunks/nextra-data-en-US.json b/docs/_next/static/chunks/nextra-data-en-US.json
index be48525..627e257 100644
--- a/docs/_next/static/chunks/nextra-data-en-US.json
+++ b/docs/_next/static/chunks/nextra-data-en-US.json
@@ -1 +1 @@
-{"/Alerts":{"title":"Alerts / 告警系统","data":{"overview--概述#Overview / 概述":"Available since v1.3.0v1.3.0 起可用\nThe alert system lets you define rules that proactively surface problems across network requests, logs, memory, and FPS — without manually scanning the panels.告警系统允许你定义规则,主动暴露网络请求、日志、内存、FPS 方面的问题,无需手动逐个面板排查。","how-it-works--工作原理#How It Works / 工作原理":"Rules are evaluated by AlertService whenever a relevant event occurs / 每当相关事件发生时,AlertService 会评估规则\nMatched rules produce alerts, and the unread count is exposed via a ValueNotifier
/ 命中的规则会生成告警,未读数通过 ValueNotifier 暴露\nThe floating button shows an unread-count badge; opening the panel clears it / 悬浮球显示未读数量角标,打开面板即清零\nAn Alerts tab in the inspector panel lists all triggered alerts / 检查器面板的 Alerts 标签页列出所有已触发的告警","rule-types--规则类型#Rule Types / 规则类型":"Type\tTrigger / 触发条件\tExample / 示例\tNetwork\tResponse status code / 响应状态码\tAlert when status ≥ 400 / 状态码 ≥ 400 时告警\tLog\tLog level or message / 日志级别或内容\tAlert on error logs / 出现 error 日志时告警\tMemory\tDart heap / Native memory threshold / 内存阈值\tAlert when Dart heap > 100 MB / Dart 堆 > 100 MB 时告警\tFPS\tFrame rate / 帧率\tAlert when FPS < 50 / FPS < 50 时告警","ui-features--ui-功能#UI Features / UI 功能":"","floating-button-badge--悬浮球角标#Floating Button Badge / 悬浮球角标":"A red badge shows the current unread alert count (clamped 0–99) / 红色角标显示当前未读告警数(0–99)\nThe number is drawn inside the button so it is never clipped at screen edges / 数字直接绘制在按钮内部,吸附屏幕边缘时不会被裁切\nOpening the inspector panel clears the unread count / 打开检查器面板即清零未读数","alerts-tab--alerts-标签页#Alerts Tab / Alerts 标签页":"Lists triggered alerts with type, condition, and timestamp / 列出已触发告警的类型、条件与时间\nTap an alert to jump to the related panel (network / log / memory / FPS) / 点击告警可跳转到相关面板(网络 / 日志 / 内存 / FPS)","notes--备注#Notes / 备注":"Alerts are evaluated in-process and shown in the developer console only; they do not send data off-device / 告警仅在本机开发者控制台内评估与展示,不会将数据发送到设备外\nThe alert system is tree-shaken out in release builds, like the rest of the inspector / 与检查器其余部分一样,告警系统在 release 构建中被 tree-shake 移除"}},"/Configuration":{"title":"Configuration / 配置说明","data":{"zeroinspectorkitinit-parameters--初始化参数#ZeroInspectorKit.init() Parameters / 初始化参数":"Parameter\tType\tDefault\tDescription\tenable\tbool\ttrue\tEnable inspector (auto false in release mode) / 启用检查器\tenableLogCapture\tbool\ttrue\tEnable log capture / 启用日志捕获\tenableNetworkCapture\tbool\ttrue\tEnable network interception / 启用网络拦截\tenableErrorCapture\tbool\ttrue\tEnable error aggregation (Errors tab) / 启用异常聚合(Errors 标签页)\tenablePersistence\tbool\ttrue\tPersist logs/network/errors to a SQLite ring buffer; logs & errors replay on launch / 将日志/网络/异常落盘到 SQLite 环形缓冲,启动时回放日志与异常\tenableFlutterLeakTracker\tbool\ttrue\tBridge Flutter's official MemoryAllocations as a second leak-detection source / 桥接 Flutter 官方 MemoryAllocations 作为泄漏检测第二来源\tenableDatabaseScan\tbool\ttrue\tEnable database scan / 启用数据库扫描\tenableRouteTracking\tbool\ttrue\tEnable route tracking / 启用路由追踪\tenableWidgetInspector\tbool\ttrue\tEnable Widget tree snapshot / 启用 Widget 树快照\tenableNetworkTimeline\tbool\ttrue\tPrefer the network timeline (waterfall) in request details / 网络详情页默认展示时间轴(瀑布图)\tcustomButton\tWidget?\tnull\tCustom floating button widget / 自定义悬浮按钮\tonLogCaptured\tvoid Function(LogEntry)?\tnull\tLog capture callback for third-party integration / 日志捕获回调\tmaxNetworkItems\tint?\t100\tNetwork request cache cap / 网络请求缓存上限\tmaxLogItems\tint?\t500\tLog entry cache cap / 日志条目缓存上限\tmaxRouteItems\tint?\t200\tRoute record cache cap / 路由记录缓存上限\tmaxBodyPreviewBytes\tint?\t32KB\tBody preview cap, longer bodies truncated / body 预览字节上限,超出截断\t\nenableWidgetInspector / enableNetworkTimeline are also exposed on runAppWithInspector(). (wrapApp() takes only enable.)enableWidgetInspector / enableNetworkTimeline 也可在 runAppWithInspector() 上设置(wrapApp() 仅接受 enable)。","usage-examples--使用示例#Usage Examples / 使用示例":"","disable-specific-features--禁用特定功能#Disable Specific Features / 禁用特定功能":"ZeroInspectorKit.init(\n enableLogCapture: true,\n enableNetworkCapture: false, // Disable network monitoring / 禁用网络监控\n enableDatabaseScan: true,\n enableRouteTracking: false, // Disable route tracking / 禁用路由追踪\n);","with-log-callback--带日志回调#With Log Callback / 带日志回调":"ZeroInspectorKit.init(\n onLogCaptured: (entry) {\n // Forward to your logging service / 转发到你的日志服务\n myLogger.log(entry.message);\n },\n);","conditionalinspector--条件检查器组件#ConditionalInspector / 条件检查器组件":"A convenience widget that automatically shows/hides the inspector based on build mode.根据构建模式自动显示/隐藏检查器的便利组件。\nConditionalInspector(\n child: YourAppWidget(),\n)\nParameter\tType\tDefault\tDescription\tchild\tWidget\trequired\tChild widget / 子组件\tenabled\tbool\ttrue\tEnable inspector / 启用检查器","floatinginspectorbutton--悬浮检查器按钮#FloatingInspectorButton / 悬浮检查器按钮":"Parameter\tType\tDefault\tDescription\tenabled\tbool\ttrue\tEnable button (auto false in release mode) / 启用按钮","inspectorloginterceptor--日志拦截器#InspectorLogInterceptor / 日志拦截器":"Method\tDescription\tstart()\tStart capturing logs / 开始捕获日志\tstop()\tStop capturing logs / 停止捕获日志\tlog(level, message, tag)\tAdd a log entry / 添加日志条目\tverbose(message, tag)\tAdd verbose log / 添加详细日志\tdebug(message, tag)\tAdd debug log / 添加调试日志\tinfo(message, tag)\tAdd info log / 添加信息日志\twarning(message, tag)\tAdd warning log / 添加警告日志\terror(message, tag)\tAdd error log / 添加错误日志\t\nProperty\tType\tDescription\tonLogCaptured\tvoid Function(LogEntry)?\tCallback when a log is captured / 日志捕获回调","inspectorrouteobserver--路由观察者#InspectorRouteObserver / 路由观察者":"Navigator observer for tracking route changes. Auto-injected when using runAppWithInspector() or wrapApp().用于追踪路由变化的 Navigator 观察者。使用 runAppWithInspector() 或 wrapApp() 时自动注入。\nMaterialApp(\n navigatorObservers: [InspectorRouteObserver()],\n home: MyHomePage(),\n)","databaseregistry--数据库注册表#DatabaseRegistry / 数据库注册表":"Register custom database providers:注册自定义数据库提供者:\nDatabaseRegistry.instance.registerProvider(SqliteDatabaseProvider());\nSee Custom Database Provider for more details.详见 自定义数据库提供者。","inspectorlog--简化日志-api#InspectorLog / 简化日志 API":"Available since v1.1.2 / v1.1.2 起可用\nA static wrapper around InspectorLogInterceptor.instance for shorter log calls.InspectorLogInterceptor.instance 的静态包装,用于更简短的日志调用。\nInspectorLog.v('Verbose log');\nInspectorLog.d('Debug log');\nInspectorLog.i('Info log', tag: 'Auth');\nInspectorLog.w('Warning log');\nInspectorLog.e('Error log');\nMethod\tDescription\tstart()\tStart capturing logs / 开始捕获日志\tstop()\tStop capturing logs / 停止捕获日志\tlog(level, message, {tag})\tAdd a log entry / 添加日志条目\tv(message, {tag})\tAdd verbose log / 添加详细日志\td(message, {tag})\tAdd debug log / 添加调试日志\ti(message, {tag})\tAdd info log / 添加信息日志\tw(message, {tag})\tAdd warning log / 添加警告日志\te(message, {tag})\tAdd error log / 添加错误日志\t\nProperty\tType\tDescription\tisRunning\tbool\tWhether log capture is currently active / 日志捕获是否正在运行","memoryinspectorservice--内存监控服务#MemoryInspectorService / 内存监控服务":"Available since v1.1.0 / v1.1.0 起可用\nSingleton service for memory monitoring and leak detection, extends ChangeNotifier.内存监控与泄漏检测单例服务,继承 ChangeNotifier。","full-api--完整接口#Full API / 完整接口":"// Leak tracking (full form) / 泄漏追踪(完整写法)\nMemoryInspectorService.instance.trackObject(\n myController,\n tag: 'HomeController_textController',\n expectedReleaseAfter: const Duration(seconds: 30),\n);\nMemoryInspectorService.instance.untrackObject(myController);\nMemoryInspectorService.instance.clearLeakRecords();","simplified-api--简化接口#Simplified API / 简化接口":"Available since v1.1.2 / v1.1.2 起可用\n// Extension method on Object / Object 上的扩展方法\nmyBloc.trackMemoryLeak(tag: 'HomePage_myBloc');\n// Top-level function / 顶层函数\ntrackMemoryLeak(myBloc, tag: 'HomePage_myBloc');\n// Cancel tracking / 取消追踪\nmyBloc.untrackMemoryLeak();\nSee Memory Viewer for full feature details.完整功能详情见 Memory Viewer。","flutter-memoryallocations-bridge--官方泄漏追踪桥接#Flutter MemoryAllocations Bridge / 官方泄漏追踪桥接":"Available since v1.9.0 / v1.9.0 起可用\nThe leak detector's own WeakReference state machine has a blind spot: an object whose dispose() ran but which has not been GC'd yet still resolves through the weak reference and is flagged as a suspected leak (false positive). LeakTrackerBridge subscribes to Flutter's official FlutterMemoryAllocations (the data source behind leak_tracker) as a second source: once the official stream reports disposed, the object is treated as released (awaiting GC) even if the weak reference still resolves — cutting false positives.自研泄漏检测的 WeakReference 状态机有一个盲点:对象已调用 dispose() 但尚未被 GC 时,弱引用仍存活,会被判定为\"疑似泄漏\"(误报)。LeakTrackerBridge 订阅 Flutter 官方的 FlutterMemoryAllocations(leak_tracker 背后的数据源)作为第二来源:只要官方上报了 disposed,即便弱引用仍存活也判定为已释放(等待 GC),从而显著降低误报。\nEnabled by default via ZeroInspectorKit.init()'s enableFlutterLeakTracker / 通过 init() 的 enableFlutterLeakTracker 默认启用\nOfficial events only cover framework types that report to FlutterMemoryAllocations (Image / Picture / Layer …) — it supplements, not replaces, the custom detector / 官方事件只覆盖会上报给 FlutterMemoryAllocations 的框架类型(如 Image / Picture / Layer),因此是补充而非替代自研方案","errorservice--异常聚合服务#ErrorService / 异常聚合服务":"Available since v1.9.0 / v1.9.0 起可用\nSingleton service for aggregated error capture, extends ChangeNotifier. Hooks FlutterError.onError (keeping the default red error behavior) and dedups each exception by type + stack signature. See Errors for full feature details.异常聚合单例服务,继承 ChangeNotifier。接管 FlutterError.onError(保留默认红色报错行为),按类型 + 堆栈签名去重聚合。完整功能见 Errors。\n// Report an exception manually (gRPC / custom protocols) / 手动上报异常\nErrorService.instance.report(error, stackTrace, 'myModule');\n// Read aggregated records (newest first) / 读取聚合记录(最新在前)\nfinal ErrorRecord r = ErrorService.instance.errors.first;\n// Toggle capture / 切换抓取开关\nErrorService.instance.isEnabled = false;\n// Clear all records / 清空全部记录\nErrorService.instance.clear();\nMember\tDescription\terrors\tList — aggregated records, newest first / 聚合记录,最新在前\terrorCount\tint — aggregated record count / 聚合记录条数\tisEnabled\tbool — capture toggle (programmatic) / 抓取开关(代码控制)\treport(exception, stack, [context])\tManually report an exception / 手动上报异常\trestore(records)\tRestore persisted records (replay on launch) / 恢复持久化记录(启动回放)\tclear()\tClear all aggregated records / 清空所有聚合记录\tinstall() / uninstall()\tHook / restore FlutterError.onError / 接管 / 还原 FlutterError.onError","persistenceservice--持久化服务#PersistenceService / 持久化服务":"Available since v1.9.0 / v1.9.0 起可用\nSingleton service that async-flushes logs, network requests, and aggregated errors to a local SQLite ring buffer (zero_inspector_kit.db) so data survives app restarts. On launch, logs and aggregated errors replay into their tabs; network requests stay archived on disk for later export. Everything is guarded and degrades gracefully: if the DB is unavailable (e.g. desktop without sqflite FFI) isEnabled is false and writes become no-ops, never affecting the host app.单例服务,将日志、网络请求与聚合异常异步落盘到本地 SQLite 环形缓冲(zero_inspector_kit.db),使数据跨重启不丢。启动时日志与聚合异常回放入各自标签页;网络请求保留在磁盘存档,供之后导出。所有操作都有保护并优雅降级:数据库不可用(如桌面端未配置 sqflite FFI)时 isEnabled 为 false,写入变为空操作,绝不影响宿主应用。","tuning--调参#Tuning / 调参":"await PersistenceService.instance.init(\n maxRowsPerTable: 5000, // rows kept per table / 每表保留行数\n retention: const Duration(days: 7), // retention window / 保留时长\n flushInterval: const Duration(seconds: 2), // disk flush interval / 刷盘间隔\n);\nEnabled by default via ZeroInspectorKit.init()'s enablePersistence — the ring buffer flushes automatically, so no manual init() call is needed in normal use.通过 init() 的 enablePersistence 默认启用——环形缓冲会自动刷盘,常规使用无需手动调用 init()。\nMember\tDescription\tisEnabled\tbool — whether the DB is available / 数据库是否可用\tmaxRowsPerTable\tint — row cap per table (ring-buffer trim line) / 每表行数上限\tenqueueLog(e) / enqueueNetwork(r) / enqueueError(e)\tEnqueue an item for async flush / 入队待异步落盘\tflush()\tFlush the buffer to disk and trim / 刷盘并按环形缓冲裁剪\tloadLogs() / loadErrors() / loadNetworkJson()\tLoad persisted data, newest first / 读取已持久化数据(最新在前)\tbuildSessionArchiveJson()\tBuild the full-session archive JSON (logs + errors + network) / 构建完整会话存档 JSON\texportSessionArchiveAndShare()\tExport & share the full-session archive via the system share sheet / 导出并分享完整会话存档\tclearAll()\tClear persisted data on disk / 清空磁盘上的持久化数据\tdispose()\tFlush then close / 先刷盘再关闭","persisted-data-manager--持久化数据管理#Persisted Data Manager / 持久化数据管理":"Tap the storage icon in the panel header to open the Persisted data sheet: it shows the current row counts per category (logs / network / errors), the per-table cap, and whether the data will be replayed on the next launch. Actions:点击面板头部的存储图标打开 Persisted data 管理弹层:展示各类别当前行数(logs / network / errors)、每表上限,以及下次启动是否会回放。支持的操作:\nExport & share session archive — share a JSON snapshot of the whole session / 导出并分享会话存档——分享本次会话完整 JSON 快照\nClear disk — wipe persisted rows so the next launch replays nothing / 清空磁盘——清空持久化数据,下次启动干净\nClear disk & lists — wipe disk and the in-memory lists together / 同时清空磁盘与列表——连同内存列表一并清空","fpsservice--fps-监控服务#FpsService / FPS 监控服务":"Available since v1.2.0 / v1.2.0 起可用\nSingleton service for FPS monitoring, extends ChangeNotifier.FPS 监控单例服务,继承 ChangeNotifier。\nFpsService.instance.start();\nFpsService.instance.stop();\nFpsService.instance.clear();\nfinal fps = FpsService.instance.currentFps;\nfinal jankRate = FpsService.instance.jankRate;\nMethod\tDescription\tstart()\tStart FPS monitoring / 开始 FPS 监控\tstop()\tStop FPS monitoring / 停止 FPS 监控\tclear()\tClear all historical data and counters / 清空所有历史数据和计数器\t\nProperty\tType\tDescription\tisRunning\tbool\tWhether monitoring is currently active / 是否正在监控\tcurrentFps\tdouble\tCurrent FPS (updated every 500ms) / 当前 FPS(每 500ms 更新)\tjankRate\tdouble\tJank rate as percentage / 卡顿率(百分比)\ttotalFrameCount\tint\tTotal frames captured / 总帧数\ttotalJankyCount\tint\tTotal janky frames (>16ms) / 总卡顿帧数(>16ms)\tlastFrameJanky\tbool\tWhether the most recent frame was janky / 最近一帧是否卡顿\tfpsHistory\tList\tRecent 60 FPS values (unmodifiable) / 最近 60 个 FPS 值(不可变)\tframeRecords\tList\tRecent frame records (unmodifiable, up to 3600) / 最近帧记录(不可变,最多 3600 条)\t\nSee FPS Viewer for full feature details.完整功能详情见 FPS Viewer。"}},"/Custom-Database-Provider":{"title":"Custom Database Provider / 自定义数据库提供者","data":{"overview--概述#Overview / 概述":"Zero Inspector Kit supports extending database inspection beyond SQLite through the DatabaseProvider interface.Zero Inspector Kit 通过 DatabaseProvider 接口支持扩展数据库检查功能到 SQLite 以外的数据库。","databaseprovider-interface--接口定义#DatabaseProvider Interface / 接口定义":"abstract class DatabaseProvider {\n /// Provider name / 提供者名称\n String get name;\n /// Get list of databases / 获取数据库列表\n Future> getDatabases();\n /// Query table data / 查询表数据\n Future queryTable(String dbPath, String tableName, {int limit = 50});\n}","data-models--数据模型#Data Models / 数据模型":"","databaseinfo#DatabaseInfo":"Field\tType\tDescription\tname\tString\tDatabase name / 数据库名称\tpath\tString\tDatabase file path / 数据库文件路径\ttables\tList\tList of tables / 表列表","tableinfo#TableInfo":"Field\tType\tDescription\tname\tString\tTable name / 表名\trowCount\tint\tRow count / 行数","queryresult#QueryResult":"Field\tType\tDescription\tcolumns\tList\tColumn names / 列名\trows\tList>\tRow data / 行数据","example-custom-provider--示例自定义提供者#Example: Custom Provider / 示例:自定义提供者":"class MyCustomDatabaseProvider implements DatabaseProvider {\n @override\n String get name => 'CustomDB';\n @override\n Future> getDatabases() async {\n // Return your custom databases / 返回你的自定义数据库列表\n return [\n DatabaseInfo(\n name: 'my_database',\n path: '/path/to/my_database',\n tables: [\n TableInfo(name: 'users', rowCount: 100),\n TableInfo(name: 'orders', rowCount: 500),\n ],\n ),\n ];\n }\n @override\n Future queryTable(\n String dbPath,\n String tableName, {\n int limit = 50,\n }) async {\n // Execute query and return results / 执行查询并返回结果\n return QueryResult(\n columns: ['id', 'name', 'value'],\n rows: [\n {'id': 1, 'name': 'item1', 'value': '100'},\n {'id': 2, 'name': 'item2', 'value': '200'},\n ],\n );\n }\n}","register-provider--注册提供者#Register Provider / 注册提供者":"// Register your custom provider / 注册自定义提供者\nDatabaseRegistry.instance.registerProvider(MyCustomDatabaseProvider());","built-in-provider--内置提供者#Built-in Provider / 内置提供者":"The plugin includes SqliteDatabaseProvider which is auto-registered when enableDatabaseScan is true (default).插件内置 SqliteDatabaseProvider,当 enableDatabaseScan 为 true(默认)时自动注册。You can also register it manually:也可以手动注册:\nDatabaseRegistry.instance.registerProvider(SqliteDatabaseProvider());"}},"/Database-Viewer":{"title":"Database Viewer / 数据库查看器","data":{"overview--概述#Overview / 概述":"The Database Viewer inspects SQLite databases in your app with a two-level navigation system.数据库查看器通过双层导航系统检查应用中的 SQLite 数据库。","auto-scan--自动扫描#Auto-Scan / 自动扫描":"The inspector automatically scans the following directories for .db and .sqlite files:检查器自动扫描以下目录中的 .db 和 .sqlite 文件:\ngetApplicationDocumentsDirectory() / 应用文档目录\ngetDatabasesPath() / 数据库目录","two-level-navigation--双层导航#Two-Level Navigation / 双层导航":"","level-1-database-list-global--第一层数据库列表全局#Level 1: Database List (Global) / 第一层:数据库列表(全局)":"Shows all discovered databases / 显示所有发现的数据库\nEach database shows name and table count / 每个数据库显示名称和表数量\nGlobal search: Search database names and table names / 全局搜索:搜索数据库名和表名","level-2-database-detail--第二层数据库详情#Level 2: Database Detail / 第二层:数据库详情":"Click a database to enter its detail view / 点击数据库进入详情视图\nLeft panel: table list with row counts / 左侧面板:表列表(含行数)\nRight panel: table data in DataTable format / 右侧面板:DataTable 格式的表数据\nBack button to return to database list / 返回按钮返回数据库列表\nIn-database search: Search table names AND all column data / 数据库内搜索:搜索表名和所有列数据","search--搜索#Search / 搜索":"Level\tSearch Scope\tGlobal (database list)\tDatabase names, table names / 数据库名、表名\tIn-database\tTable names, all column values in all tables / 表名、所有表的所有列值","search-highlights--搜索高亮#Search Highlights / 搜索高亮":"When searching within a database, matching cell values are highlighted in accent color.在数据库内搜索时,匹配的单元格值以强调色高亮显示。","ui-features--ui-功能#UI Features / UI 功能":"Color-coded table icons / 带颜色的表图标\nRow count badges for each table / 每个表的行数徽章\nSelected table highlighted / 选中表高亮\nHorizontal and vertical scrollable data table / 水平和垂直可滚动的数据表\nRow count display (filtered / total) when searching / 搜索时显示行数(过滤/总数)","custom-database-provider--自定义数据库提供者#Custom Database Provider / 自定义数据库提供者":"For non-SQLite databases, see Custom Database Provider.对于非 SQLite 数据库,请参阅 自定义数据库提供者。"}},"/FAQ":{"title":"FAQ / 常见问题","data":{"general--通用#General / 通用":"","q-does-the-inspector-affect-production-builds--检查器会影响生产构建吗#Q: Does the inspector affect production builds? / 检查器会影响生产构建吗?":"A: No. The inspector is automatically disabled in release mode via kReleaseMode. Flutter's tree-shaking removes all inspector-related code from production builds. You don't need to remove any code.不会。 检查器在 release 模式下通过 kReleaseMode 自动禁用。Flutter 的 tree-shaking 会移除所有检查器相关代码,无需手动移除。","q-what-platforms-are-supported--支持哪些平台#Q: What platforms are supported? / 支持哪些平台?":"A: Android and iOS.支持 Android 和 iOS。","q-what-flutterdart-versions-are-required--需要什么-flutterdart-版本#Q: What Flutter/Dart versions are required? / 需要什么 Flutter/Dart 版本?":"A: Flutter >= 3.3.0, Dart SDK >= 3.11.0 < 4.0.0.Flutter >= 3.3.0,Dart SDK >= 3.11.0 < 4.0.0。","network--网络#Network / 网络":"","q-do-i-need-to-manually-add-interceptors-for-dio--需要为-dio-手动添加拦截器吗#Q: Do I need to manually add interceptors for Dio? / 需要为 Dio 手动添加拦截器吗?":"A: No. Dio uses IOHttpClientAdapter internally, which uses dart:io's HttpClient. The inspector captures all requests via HttpOverrides automatically, making it truly zero-invasion for both http package and Dio.不需要。 Dio 内部使用 IOHttpClientAdapter,底层使用 dart:io 的 HttpClient。检查器通过 HttpOverrides 自动捕获所有请求,对 http 包和 Dio 都是真正的零侵入。","q-why-do-i-see-duplicate-dio-requests--为什么看到重复的-dio-请求#Q: Why do I see duplicate Dio requests? / 为什么看到重复的 Dio 请求?":"A: If you use both InspectorDioInterceptor and the auto-capture (HttpOverrides), Dio requests will be recorded twice. Simply remove the manual InspectorDioInterceptor — auto-capture handles everything.如果同时使用了 InspectorDioInterceptor 和自动捕获(HttpOverrides),Dio 请求会被记录两次。移除手动 InspectorDioInterceptor 即可,自动捕获会处理一切。","q-can-i-modify-requests-during-testing--测试时可以修改请求吗#Q: Can I modify requests during testing? / 测试时可以修改请求吗?":"A: Yes (since v1.0.7). The inspector supports intercepting and modifying requests via rules. Open a request detail and tap the Interceptor icon to configure a rule. You can modify the request body and request headers only — response fields (status code, response body) are read-only (since v1.0.8). GET requests cannot be modified (no request body). The master toggle is on the Network list page; rules only apply when modification mode is enabled.可以(v1.0.7 起)。检查器支持通过规则拦截并修改请求。打开请求详情,点击拦截器图标配置规则。仅可修改请求体和请求头——响应字段(状态码、响应体)只读(v1.0.8 起)。GET 请求不可修改(无请求体)。总开关在 Network 列表页,规则仅在启用修改模式时生效。See Network Inspector > Request Interceptor for details.详见 Network Inspector > 请求拦截修改。","logging--日志#Logging / 日志":"","q-can-i-use-my-existing-logging-library--可以使用现有的日志库吗#Q: Can I use my existing logging library? / 可以使用现有的日志库吗?":"A: Yes! The inspector automatically captures logs from any library that uses print() or debugPrint(). No configuration needed. Third-party logs are categorized as Info level.可以! 检查器会自动捕获任何使用 print() 或 debugPrint() 的日志库的日志,无需配置。第三方日志统一归类为 Info 级别。","q-how-to-sync-inspector-logs-to-my-logger--如何将检查器日志同步到我的日志库#Q: How to sync inspector logs to my logger? / 如何将检查器日志同步到我的日志库?":"A: Use the onLogCaptured callback:使用 onLogCaptured 回调:\nInspectorLogInterceptor.instance.onLogCaptured = (entry) {\n yourLogger.log(entry.message);\n};\nWarning: Do NOT call print() or logging methods inside this callback, as it will cause infinite recursion.\n警告:不要在此回调中调用 print() 或日志方法,否则会导致无限递归。","database--数据库#Database / 数据库":"","q-why-dont-i-see-any-databases--为什么看不到数据库#Q: Why don't I see any databases? / 为什么看不到数据库?":"A: The inspector scans getApplicationDocumentsDirectory() and getDatabasesPath() for .db and .sqlite files. If your database is stored elsewhere, you can implement a custom DatabaseProvider.检查器扫描 getApplicationDocumentsDirectory() 和 getDatabasesPath() 目录中的 .db 和 .sqlite 文件。如果你的数据库存储在其他位置,可以实现自定义 DatabaseProvider。","memory--内存#Memory / 内存":"","q-why-does-dart-heap-show-na-when-debugging-via-pc--通过-pc-调试时为什么-dart-heap-显示-na#Q: Why does Dart Heap show \"N/A\" when debugging via PC? / 通过 PC 调试时为什么 Dart Heap 显示 \"N/A\"?":"A: This is an expected behavior. When using flutter run to debug via PC, the flutter tool sets up port forwarding between PC and device via adb reverse, allowing PC-side DevTools to access the device's VM Service. However, Service.getInfo() returns a serverUri from the PC's perspective; when the app process internally accesses 127.0.0.1:PC_port, the device doesn't have that port listening locally, resulting in Connection refused and VM Service showing OFF.这是预期行为。 使用 flutter run 连接 PC 调试时,flutter tool 会通过 adb reverse 在 PC 和设备之间做端口转发,让 PC 上的 DevTools 能访问设备的 VM Service。但应用进程内部 Service.getInfo() 返回的 serverUri 是 PC 视角的端口,应用进程访问 127.0.0.1:PC端口 时设备本地并没有监听该端口,导致 Connection refused,VM Service 显示 OFF。Workarounds / 解决方案:\nOpen the debug app directly without PC connection — VM Service works normally / 直接打开 debug 应用(不连 PC),VM Service 正常工作\nUse Native memory data (Android PSS / iOS physicalFootprint) as fallback — always available / 使用 Native 内存数据(Android PSS / iOS physicalFootprint)作为降级,始终可用\nProcess RSS is always available regardless of VM Service / 进程 RSS 无论 VM Service 状态都可用\nSee Memory Viewer > VM Service Availability for details.详见 Memory Viewer > VM Service 可用性。","q-does-memory-monitoring-affect-performance--内存监控会影响性能吗#Q: Does memory monitoring affect performance? / 内存监控会影响性能吗?":"A: Memory monitoring is off by default (since v1.1.0). When disabled, all timers are stopped and VM Service connection is cleared, leaving zero overhead. When enabled, refresh intervals are optimized:内存监控默认关闭(v1.1.0 起)。关闭时所有定时器停止、VM Service 连接清空,零开销。开启时刷新间隔已优化:\nProcess RSS / Dart Heap: 500ms\nNative Memory: 3000ms\nStorage Stats: 3000ms\nLeak Detection: 2000ms\nYou can toggle the switch at the top of the Memory panel anytime.可随时在 Memory 面板顶部切换开关。","q-does-leak-detection-require-code-modification--泄漏检测需要侵入代码吗#Q: Does leak detection require code modification? / 泄漏检测需要侵入代码吗?":"A: The current implementation uses WeakReference + Finalizer, which requires calling trackObject() to register objects for tracking. This is a mild invasion (one line of code per tracked object).当前实现使用 WeakReference + Finalizer,需要调用 trackObject() 注册要追踪的对象。这是轻度侵入(每个追踪对象一行代码)。Trade-offs / 取舍:\nPros: 100% reliable, doesn't depend on VM Service, works in release mode / 100% 可靠,不依赖 VM Service,release 模式也可用\nCons: Requires user to know which objects to track / 需要用户知道要追踪哪些对象\nA zero-invasion Heap Snapshot comparison feature (based on VM Service) is technically possible but would strongly depend on VM Service availability (unavailable when debugging via PC), with significant performance overhead. Not currently implemented.零侵入的 Heap Snapshot 对比功能(基于 VM Service)技术上可行,但会强依赖 VM Service 可用性(PC 调试时不可用),且有显著性能开销。目前未实现。See Memory Viewer > Memory Leak Detection for API details.详见 Memory Viewer > 内存泄漏检测 了解 API 详情。","fps--帧率#FPS / 帧率":"","q-why-does-fps-show-a-very-low-value-eg-9-10-fps--为什么-fps-显示很低如-9-10#Q: Why does FPS show a very low value (e.g. 9-10 FPS)? / 为什么 FPS 显示很低(如 9-10)?":"A: This was a bug fixed in v1.2.0. The root cause was that _recentFrameTimestamps.add(now) was placed outside the for-loop in _onFrameTimings; since Flutter engine's addTimingsCallback is batched (may return multiple frames per call), only one timestamp was recorded per batch, undercounting FPS by 6-10x. Upgrade to ^1.2.0 to fix this.这是 v1.2.0 已修复的 bug。根因是 _onFrameTimings 中 _recentFrameTimestamps.add(now) 在 for 循环外;Flutter 引擎的 addTimingsCallback 是批量回调(一次可能返回多帧),但每批只记录 1 个时间戳,导致 FPS 计算偏低 6-10 倍。升级到 ^1.2.0 即可修复。See FPS Viewer for details.详见 FPS Viewer。","q-does-fps-monitoring-affect-performance--fps-监控会影响性能吗#Q: Does FPS monitoring affect performance? / FPS 监控会影响性能吗?":"A: FPS monitoring is off by default (since v1.2.0). When disabled, no frame timings callbacks and no timers — zero overhead. When enabled, it only processes lightweight frame timing data with bounded history (60 trend points, up to 3600 frame records). You can toggle the switch at the top of the FPS panel anytime.FPS 监控默认关闭(v1.2.0 起)。关闭时无帧回调、无定时器——零开销。开启时仅处理轻量帧时序数据,历史有界(趋势 60 个点,帧记录最多 3600 条)。可随时在 FPS 面板顶部切换开关。","ui--界面#UI / 界面":"","q-the-inspector-panel-gets-pushed-up-when-keyboard-appears--键盘弹出时检查器面板被顶起来了#Q: The inspector panel gets pushed up when keyboard appears. / 键盘弹出时检查器面板被顶起来了。":"A: This was fixed in v1.0.6. The floating button and panel are rendered via Overlay, which is independent of the page layout and not affected by keyboard.此问题已在 v1.0.6 修复。悬浮按钮和面板通过 Overlay 渲染,独立于页面布局,不受键盘影响。","q-how-to-use-search--如何使用搜索#Q: How to use search? / 如何使用搜索?":"A: Each viewer has its own search bar at the top. Database viewer has two-level search: global search (database list) and in-database search (table names + all column data).每个查看器顶部都有搜索栏。数据库查看器有双层搜索:全局搜索(数据库列表)和数据库内搜索(表名 + 所有列数据)。","q-the-floating-button-disappeared--cant-be-opened-after-enabling-fps--开启-fps-后悬浮按钮消失无法打开#Q: The floating button disappeared / can't be opened after enabling FPS. / 开启 FPS 后悬浮按钮消失/无法打开。":"A: This was a bug fixed in v1.2.0. The root cause was that FpsService.notifyListeners() triggered Overlay rebuild; combined with the original Overlay lookup failure (using Overlay.of(context, rootOverlay: true) which returned null), the button State was destroyed and could not recover. Upgrade to ^1.2.0 which uses navigatorState.overlay instead.这是 v1.2.0 已修复的 bug。根因是 FpsService.notifyListeners() 触发 Overlay 重建,叠加原 Overlay 查找失败(使用 Overlay.of(context, rootOverlay: true) 返回 null),导致按钮 State 被销毁且无法恢复。升级到 ^1.2.0,改用 navigatorState.overlay 即可。","q-how-does-the-floating-button-edge-docking-work--悬浮按钮的边缘吸附怎么用#Q: How does the floating button edge docking work? / 悬浮按钮的边缘吸附怎么用?":"A: Since v1.2.0, when you drag the button near a screen edge and release, it auto-docks and tucks into the edge, leaving only a 24px peek visible. The icon becomes a directional chevron hinting you can tap to pull it out:\nTap the peek → smoothly pulls out to fully visible (panel NOT opened, avoids accidental open) / 平滑拉出到完全可见(不打开面板,避免误触)\nTap when fully visible → opens the inspector panel / 打开检查器面板\nThis design avoids conflicts with system back gestures (Android/iOS edge swipe to go back) when pulling out from the docked state.v1.2.0 起,拖动按钮靠近屏幕边缘松手即自动吸附并\"收入\"边缘,仅露 24px。图标变为方向箭头,提示可点击拉出:\n点击露出部分 → 平滑拉出到完全可见(不打开面板,避免误触)\n完全可见时点击 → 打开检查器面板\n此设计避免了从吸附态拖出时与系统返回手势(Android/iOS 边缘右滑退出)的冲突。See Usage > Edge Docking for details.详见 Usage > 边缘吸附。","license--许可证#License / 许可证":"","q-can-i-use-this-in-a-commercial-project--可以在商业项目中使用吗#Q: Can I use this in a commercial project? / 可以在商业项目中使用吗?":"A: This project is licensed under GPL-3.0. You can use it freely, but any modified commercial distribution must also be open-source under GPL-3.0.本项目采用 GPL-3.0 许可证。可以自由使用,但修改后的商业分发也必须在 GPL-3.0 下开源。","q-are-you-liable-for-issues-in-modified-versions--修改版出问题你们负责吗#Q: Are you liable for issues in modified versions? / 修改版出问题你们负责吗?":"A: This plugin is provided \"as is\", without warranty of any kind. The author assumes no responsibility or liability for the functionality, security, or any consequences arising from the use of modified versions or derivative projects.本插件按\"原样\"提供,不提供任何担保。作者不对修改版或衍生项目的功能、安全性及任何使用后果承担责任。"}},"/Errors":{"title":"Errors / 异常聚合查看器","data":{"overview--概述#Overview / 概述":"Available since v1.9.0v1.9.0 起可用\nThe Errors tab surfaces \"the same crash happening repeatedly\". When the inspector is running, ErrorService hooks FlutterError.onError (keeping the default red-screen / console behavior) and aggregates every exception by type + stack signature. Repeated instances of the same crash merge into one record that shows how many times it occurred and when it was first/last seen — instead of flooding the log with hundreds of identical stack traces.Errors 标签页用来快速发现\"同一处崩溃反复出现\"的问题。检查器运行时,ErrorService 会接管 FlutterError.onError(保留默认的红色报错与控制台行为),把每次异常按类型 + 堆栈签名去重聚合:同一处崩溃的多次发生会合并为一条记录,展示累计次数与首末次时间——而不是用成百上千条相同的堆栈刷屏日志。","what-gets-captured--捕获来源#What Gets Captured / 捕获来源":"Source / 来源\tHow / 方式\tFlutter framework errors / Flutter 框架异常\tHooks FlutterError.onError (default handler kept) / 接管 FlutterError.onError(保留默认处理)\tUncaught async errors / 未捕获异步异常\trunZonedGuarded inside runAppWithInspector() / runAppWithInspector() 内部的 runZonedGuarded\tManual reports / 手动上报\tErrorService.instance.report(exception, stackTrace) — for gRPC / custom protocols / your own error paths / 用于 gRPC / 自定义协议或你自己的错误通道\t\nCaptured records are also persisted to disk (see Session Persistence below), so aggregated errors from previous sessions are replayed on the next launch.捕获到的记录也会落盘持久化(见下文会话持久化),下次启动时会回放上次会话的聚合异常。","deduplication--去重规则#Deduplication / 去重规则":"Records are keyed by exception type plus a stack signature (first frames with line/address noise stripped) / 按异常类型 + 堆栈签名(取前若干帧并去掉行号/地址噪声)去重\nA new occurrence of an existing signature bumps its count and updates lastSeen instead of adding a new row / 同签名的再次发生只累加 count 并更新 lastSeen,不新增行\nRing buffer capped at 200 aggregated records (oldest dropped) / 环形缓冲上限 200 条聚合记录(超出丢弃最旧)","ui-features--ui-功能#UI Features / UI 功能":"","errors-tab--errors-标签页#Errors Tab / Errors 标签页":"Lists aggregated errors newest-first, showing the exception type, message, first seen / last seen time, and a ×N badge when the same crash recurred / 按最新在前列出聚合异常,展示异常类型、消息、首次/末次出现时间,同崩溃复发时显示 ×N 徽章\nTap a row to expand the full stack sample (truncated at 8000 chars); tap again to collapse / 点击行展开完整堆栈样本(8000 字符截断);再点收起\nCopy stack per row / 行内复制堆栈\nSearch filters by exception type or message / 搜索按异常类型或消息过滤\nClear empties the aggregated list / 清除清空聚合列表","tab-badge--标签页红点#Tab Badge / 标签页红点":"The Errors tab icon shows a red count badge while there are aggregated errors (capped at 99+), so recurring crashes are visible at a glance / Errors 标签页图标在有聚合异常时显示红色计数(99+ 封顶),一眼可见反复崩溃\nOpening the Errors tab is not required to see the badge — it reflects ErrorService.instance.errorCount whenever the panel is open / 只要面板打开,标签红点即反映 ErrorService.instance.errorCount,无需先进入 Errors 页\nNote: the floating ball itself stays clean — its red count (if any) is the Alerts unread badge (AlertService), not error aggregation.注意:悬浮球本身保持纯粹——球上的红色数字(如有)来自告警未读数(AlertService),与异常聚合无关。","api--接口#API / 接口":"The full service is re-exported from the package root — no need to import lib/src/.完整服务已从包根导出,无需 import lib/src/。\nimport 'package:zero_inspector_kit/zero_inspector_kit.dart';\n// Report an exception manually (gRPC/custom protocol/your own error paths) / 手动上报异常\nErrorService.instance.report(error, stackTrace, 'myModule');\n// Read the aggregated view (newest first) / 读取聚合视图(最新在前)\nfinal ErrorRecord latest = ErrorService.instance.errors.first;\nprint('${latest.type} x${latest.count} — first ${latest.firstSeen} / last ${latest.lastSeen}');\n// Clear all records / 清空所有记录\nErrorService.instance.clear();\nMember\tDescription\terrors\tList — aggregated records, newest first / 聚合记录,最新在前\terrorCount\tint — number of aggregated records / 聚合记录条数\tisEnabled\tbool — capture toggle (programmatic) / 抓取开关(代码控制)\treport(exception, stack, [context])\tManually report an exception / 手动上报异常\trestore(records)\tRestore persisted records (replay on launch; existing dedup ids are skipped) / 恢复持久化记录(启动回放;已存在的去重 id 跳过)\tclear()\tClear all aggregated records / 清空全部记录\tinstall() / uninstall()\tHook / restore FlutterError.onError / 接管 / 还原 FlutterError.onError","errorrecord--异常记录#ErrorRecord / 异常记录":"Field\tDescription\ttype\tException type name (e.g. _TypeError) / 异常类型名\tmessage\tException message / 异常消息\tcount\tTotal occurrences / 累计出现次数\tfirstSeen / lastSeen\tFirst / last occurrence time / 首次 / 末次出现时间\tsampleStack\tOne full stack sample (may be truncated) / 一条完整堆栈样本(可能截断)","session-persistence--会话持久化#Session Persistence / 会话持久化":"Errors — together with logs and network requests — are asynchronously flushed to a local SQLite ring buffer (zero_inspector_kit.db). On the next launch, logs and aggregated errors replay into their tabs, so a crash you saw yesterday is still inspectable today even though the panel was never opened; network requests stay archived on disk for later export. Use the storage icon in the panel header to open the Persisted data manager: see the current row counts, export the full session archive as JSON, or clear the disk. See Configuration (PersistenceService section) for details and the tuning parameters.异常与日志、网络请求一起被异步写入本地 SQLite 环形缓冲(zero_inspector_kit.db)。下次启动时,日志与聚合异常会回放入各自标签页——即使昨天从没打开过面板,今天依然能复盘当时的崩溃现场;网络请求保留在磁盘存档,供之后导出。点击面板头部的存储图标可打开 Persisted data 管理弹层:查看当前行数、导出完整会话存档 JSON,或清空磁盘。详见 Configuration(PersistenceService 一节)的参数说明。","enable--disable--开关#Enable / Disable / 开关":"enableErrorCapture (default true) in ZeroInspectorKit.init() controls error aggregation / init() 的 enableErrorCapture(默认 true)控制异常聚合\nenablePersistence (default true) controls the disk ring buffer / enablePersistence(默认 true)控制磁盘环形缓冲\nSet both to false to keep everything in memory only / 两者都设为 false 时数据仅保留在内存\nZeroInspectorKit.init(\n enableErrorCapture: true,\n enablePersistence: true, // false → memory-only / 关闭后仅内存\n);","related--相关#Related / 相关":"Log Viewer — raw log stream including error lines / 原始日志流(含错误行)\nConfiguration — init parameters and full service APIs / 初始化参数与完整服务接口\nUsage — general usage guide / 使用指南"}},"/FPS-Viewer":{"title":"FPS Viewer / FPS 监控面板","data":{"":"The FPS Viewer provides real-time frame performance analysis, including current FPS, jank rate, frame duration stats, and an FPS trend chart.FPS 监控面板提供实时帧性能分析,包括当前 FPS、卡顿率、帧耗时统计和 FPS 趋势图。\nAvailable since v1.2.0v1.2.0 起可用","overview--概览#Overview / 概览":"The FPS Viewer is integrated into the inspector panel. Tap the floating inspector button → \"FPS\" tab to access.FPS 监控面板集成在检查器面板中。点击悬浮检查器按钮 → \"FPS\" 标签即可访问。⚠️ Important: FPS monitoring is off by default. You must toggle on the switch at the top of the panel to start collecting data.⚠️ 重要:FPS 监控默认关闭。必须在面板顶部打开开关才会开始采集数据。","master-switch--总开关#Master Switch / 总开关":"A switch at the top of the FPS panel controls whether monitoring is enabled.FPS 面板顶部有一个开关,控制是否启用监控。\nState\tBehavior\tOFF (default)\tNo frame timings callbacks, no timer, zero overhead / 无帧回调、无定时器、零开销\tON\tStarts collecting frame data via WidgetsBinding.instance.addTimingsCallback / 通过 addTimingsCallback 开始采集帧数据\t\nWhen turned off, all callbacks and timers are cancelled, leaving no residual overhead.关闭时所有回调和定时器会被取消,不会残留开销。","features--功能#Features / 功能":"","1-current-stats--当前统计#1. Current Stats / 当前统计":"Current FPS — Updated every 500ms / 每 500ms 更新\nJank Rate — Percentage of janky frames (>16ms) / 卡顿帧占比(>16ms 视为卡顿)\nTotal Frame Count — All frames captured since start / 自启动以来的总帧数\nTotal Janky Count — All janky frames captured / 自启动以来的总卡顿帧数\nLast Frame Janky — Whether the most recent frame was janky / 最近一帧是否卡顿\n显示当前 FPS、卡顿率、总帧数、总卡顿帧数、最近一帧是否卡顿。","2-fps-trend-chart--fps-趋势图#2. FPS Trend Chart / FPS 趋势图":"Real-time line chart with 30-second history window (60 data points × 500ms)\nY-axis dynamically scales to max(60, maxFps) to avoid overflow when FPS spikes\nJanky frame region marked in red\nTime axis labels: -30s / -15s / Now\n实时折线图,30 秒历史窗口(60 个数据点 × 500ms)。Y 轴动态缩放为 max(60, maxFps) 避免 FPS 飙升时溢出。卡顿区域以红色标记。","3-janky-frame-list--卡顿帧列表#3. Janky Frame List / 卡顿帧列表":"Lists frames exceeding 16ms duration / 列出耗时超过 16ms 的帧\nEach item shows frame duration and timestamp / 每项显示帧耗时和时间戳\nHelps identify specific jank spikes / 帮助定位具体卡顿点\n列出耗时超过 16ms 的帧,每项显示帧耗时和时间戳,帮助定位具体卡顿点。","4-reset--重置#4. Reset / 重置":"\"Reset\" button clears all statistics and historical data / \"Reset\" 按钮清空所有统计和历史数据\nUseful for measuring a specific interaction scenario / 适合测量特定交互场景\n\"Reset\" 按钮清空所有统计和历史数据,适合测量特定交互场景。","how-it-works--工作原理#How It Works / 工作原理":"FPS monitoring uses Flutter's WidgetsBinding.instance.addTimingsCallback to receive frame timing information from the engine. The callback is batched — it may return multiple FrameTiming objects per call, so each frame is recorded individually inside the loop to ensure accurate FPS calculation.FPS 监控使用 Flutter 的 WidgetsBinding.instance.addTimingsCallback 接收引擎的帧时序信息。该回调是批量的——每次调用可能返回多个 FrameTiming 对象,因此在循环内部为每帧单独记录时间戳,确保 FPS 计算准确。Jank threshold / 卡顿阈值: A frame is considered janky if its duration exceeds 16ms (the 60 FPS budget of ~16.67ms per frame).卡顿阈值:帧耗时超过 16ms(60 FPS 每帧预算约 16.67ms)即视为卡顿。","programmatic-control-optional--编程式控制可选#Programmatic Control (Optional) / 编程式控制(可选)":"If you need to start/stop monitoring from code (e.g., for automated testing), use FpsService:如需从代码控制监控(如自动化测试),使用 FpsService:\n// Start / Stop FPS monitoring / 开始 / 停止 FPS 监控\nFpsService.instance.start();\nFpsService.instance.stop();\n// Read current stats / 读取当前统计\nfinal fps = FpsService.instance.currentFps;\nfinal jankRate = FpsService.instance.jankRate;\nfinal totalFrames = FpsService.instance.totalFrameCount;\nfinal jankyFrames = FpsService.instance.totalJankyCount;\n// Clear historical data / 清空历史数据\nFpsService.instance.clear();\n// Listen to updates / 监听更新\nFpsService.instance.addListener(() {\n // Update your own UI / 更新你自己的 UI\n});\n// Historical data access / 历史数据访问\nfinal history = FpsService.instance.fpsHistory; // List, 60 entries / 60 条\nfinal records = FpsService.instance.frameRecords; // List, unmodifiable / 不可变,最多 3600 条","fpsservice-api--fpsservice-接口#FpsService API / FpsService 接口":"Singleton service extending ChangeNotifier.继承 ChangeNotifier 的单例服务。\nMethod\tDescription\tstart()\tStart FPS monitoring / 开始 FPS 监控\tstop()\tStop FPS monitoring / 停止 FPS 监控\tclear()\tClear all historical data and counters / 清空所有历史数据和计数器\t\nProperty\tType\tDescription\tisRunning\tbool\tWhether monitoring is currently active / 是否正在监控\tcurrentFps\tdouble\tCurrent FPS (updated every 500ms) / 当前 FPS(每 500ms 更新)\tjankRate\tdouble\tJank rate as percentage / 卡顿率(百分比)\ttotalFrameCount\tint\tTotal frames captured / 总帧数\ttotalJankyCount\tint\tTotal janky frames captured (>16ms) / 总卡顿帧数(>16ms)\tlastFrameJanky\tbool\tWhether the most recent frame was janky / 最近一帧是否卡顿\tfpsHistory\tList\tRecent 60 FPS values (unmodifiable) / 最近 60 个 FPS 值(不可变)\tframeRecords\tList\tRecent frame records (unmodifiable, up to 3600) / 最近帧记录(不可变,最多 3600 条)","performance-considerations--性能说明#Performance Considerations / 性能说明":"Off by default / 默认关闭: Zero overhead when disabled / 关闭时零开销\nLightweight callbacks / 轻量回调: Only processes frame timing data, no heavy computation / 仅处理帧时序数据,无重计算\nBounded history / 有界历史: Trend chart keeps only 60 points, frame records capped at 3600 / 趋势图仅保留 60 个点,帧记录上限 3600 条\nSafe with other features / 与其他功能兼容: Can run alongside Memory Viewer monitoring / 可与 Memory Viewer 监控同时运行","platform-support--平台支持#Platform Support / 平台支持":"Feature\tAndroid\tiOS\tFPS Monitoring\t✅\t✅\tJank Detection\t✅\t✅\tTrend Chart\t✅\t✅\t\nFPS monitoring uses Flutter engine APIs and works on Android and iOS (the two platforms this plugin targets).FPS 监控使用 Flutter 引擎 API,在本插件支持的两个平台 Android 与 iOS 上均可用。","demo--演示#Demo / 演示":"The Example App includes an FPS demo module with three scenarios:Example App 包含 FPS 演示模块,提供三种场景:\nDemo\tDescription\tTrigger Jank\tBlocks the main thread for 100-500ms to simulate jank / 阻塞主线程 100-500ms 模拟卡顿\tHeavy Animations\t80 simultaneously rotating+scaling widgets to intentionally trigger jank / 80 个同时旋转+缩放的 widget 故意触发卡顿\tSmooth Animation\tSingle lightweight compound animation, demonstrates stable 60 FPS / 单个轻量复合动画,演示稳定 60 FPS","related--相关#Related / 相关":"Usage — General usage guide / 通用使用指南\nFAQ — Common questions / 常见问题\nConfiguration — Configuration options / 配置选项"}},"/Installation":{"title":"Installation / 安装","data":{"from-pubdev-recommended--从-pubdev-安装推荐#From pub.dev (Recommended) / 从 pub.dev 安装(推荐)":"Add the following to your pubspec.yaml:在 pubspec.yaml 中添加以下依赖:\ndependencies:\n zero_inspector_kit: ^1.9.1\nThen run:然后运行:\nflutter pub get","from-github--从-github-安装#From GitHub / 从 GitHub 安装":"Alternatively, install from GitHub:或者从 GitHub 安装:\ndependencies:\n zero_inspector_kit:\n git:\n url: https://github.com/zero-labsco/zero_inspector_kit.git\n ref: release/v1.9.1","platform-setup--平台配置#Platform Setup / 平台配置":"","android#Android":"No additional configuration needed.无需额外配置。","ios#iOS":"No additional configuration needed.无需额外配置。","import--导入#Import / 导入":"import 'package:zero_inspector_kit/zero_inspector_kit.dart';","requirements--环境要求#Requirements / 环境要求":"Requirement\tVersion\tFlutter\t>= 3.3.0\tDart SDK\t>= 3.11.0 < 4.0.0","next-steps--下一步#Next Steps / 下一步":"Getting Started — Quick start guide / 快速开始\nUsage — Full usage guide / 完整使用指南"}},"/Getting-Started":{"title":"Getting Started / 快速开始","data":{"quick-start--快速开始#Quick Start / 快速开始":"Integrate with just 1 line of code:仅需 1 行代码 即可完成集成:\nimport 'package:flutter/material.dart';\nimport 'package:zero_inspector_kit/zero_inspector_kit.dart';\nvoid main() {\n // Single line: Initialize inspector, capture print() via Zone, and display floating button\n // 一行代码:初始化检查器、通过 Zone 捕获 print()、自动显示悬浮按钮\n ZeroInspectorKit.runAppWithInspector(const MyApp());\n}\nclass MyApp extends StatelessWidget {\n const MyApp({super.key});\n @override\n Widget build(BuildContext context) {\n return MaterialApp(\n home: Scaffold(\n appBar: AppBar(title: const Text('App')),\n body: const Center(child: Text('Hello World')),\n ),\n );\n }\n}","what-happens-automatically--自动完成的工作#What Happens Automatically / 自动完成的工作":"After integration, the inspector automatically does the following without modifying any other project code:集成后,检查器会自动完成以下工作,无需修改项目其他代码:\nFeature\tDescription\t✅ Log Capture\tAuto-capture all print(), debugPrint() via Zone / 通过 Zone 自动捕获所有日志\t✅ Network Interception\tAuto-intercept all http and Dio requests via HttpOverrides / 自动拦截所有网络请求\t✅ Error Capture\tAggregate Flutter framework errors & unhandled exceptions, deduped by type + stack (Errors tab) / 聚合 Flutter 框架异常与未捕获异常,按类型+堆栈去重\t✅ Session Persistence\tFlush logs/network/errors to a disk ring buffer; logs & errors replay on next launch / 日志/网络/异常落盘环形缓冲,启动时回放日志与异常\t✅ Database Scan\tAuto-scan and register SQLite databases / 自动扫描注册数据库\t✅ Floating Button\tAuto-displayed via Overlay, not affected by keyboard / 通过 Overlay 自动显示\t✅ Route Tracking\tAuto-inject InspectorRouteObserver into MaterialApp / 自动注入路由观察者\t\nNote / 说明: The Memory and FPS panels are available as tabs but are off by default to avoid performance overhead. Toggle the switch at the top of each panel to start collecting data. See Memory Viewer and FPS Viewer for details.Memory 和 FPS 面板作为标签页可用,但默认关闭以避免性能开销。在各自面板顶部打开开关才会开始采集数据。详见 Memory Viewer 和 FPS Viewer。","production-build--生产构建#Production Build / 生产构建":"The inspector is automatically disabled in release mode. You don't need to remove any code — Flutter's tree-shaking will remove all inspector-related code from production builds.检查器在 release 模式下会自动禁用,无需移除任何代码,Flutter 的 tree-shaking 会自动移除所有检查器相关代码。","alternative-integration--替代集成方式#Alternative Integration / 替代集成方式":"If you prefer more control, use the two-line approach:如果需要更多控制权,可以使用两行代码方式:\nvoid main() {\n ZeroInspectorKit.init();\n runApp(ZeroInspectorKit.wrapApp(const MyApp()));\n}","next-steps--下一步#Next Steps / 下一步":"Installation — Detailed installation methods / 详细安装方式\nUsage — Full usage guide / 完整使用指南\nConfiguration — Configuration options / 配置选项"}},"/Log-Viewer":{"title":"Log Viewer / 日志查看器","data":{"overview--概述#Overview / 概述":"The Log Viewer automatically captures logs from multiple sources with zero configuration.日志查看器自动从多个来源捕获日志,无需配置。","log-sources--日志来源#Log Sources / 日志来源":"Source\tCapture Method\tprint()\tZone specification override / Zone 规范覆盖\tdebugPrint()\tdebugPrint override / debugPrint 覆盖\tFlutter errors\tFlutterError.onError hook / 接管 FlutterError.onError\tUnhandled exceptions\trunZonedGuarded / runZonedGuarded 捕获\tThird-party libraries\tVia print() capture / 通过 print() 捕获\t\nSince v1.9.0, Flutter framework errors and unhandled exceptions are also aggregated & deduplicated in the dedicated Errors tab (keyed by type + stack signature) — while this Log Viewer keeps showing them as error-level lines in the chronological stream. Use Errors for \"is this crash repeating?\"; use Log Viewer for the raw timeline.自 v1.9.0 起,Flutter 框架异常与未捕获异常会同时进入独立的 Errors 标签页去重聚合(按类型 + 堆栈签名归并);本 Log Viewer 仍会在原始时间流中把它们显示为错误级日志。回答\"该崩溃是否反复出现\"请用 Errors;查看原始时间线请用 Log Viewer。","log-levels--日志级别#Log Levels / 日志级别":"Level\tAbbreviation\tColor\tDescription\tVerbose\tV\tGray\tDetailed information / 详细信息\tDebug\tD\tBlue\tDebug information / 调试信息\tInfo\tI\tGreen\tGeneral information / 一般信息\tWarning\tW\tOrange\tWarning messages / 警告信息\tError\tE\tRed\tError messages / 错误信息\t\nThird-party library logs are categorized as Info level.\n第三方日志库的日志统一归类为 Info 级别。","ui-features--ui-功能#UI Features / UI 功能":"","filter-bar--过滤栏#Filter Bar / 过滤栏":"All: Show all logs / 使用 All 显示所有日志\nV / D / I / W / E: Filter by level / 按级别过滤\nTag dropdown: Filter by any captured tag / 按任意已捕获标签过滤\nSingle-select mode / 单选模式","toolbar--工具栏#Toolbar / 工具栏":"Auto-scroll toggle (default on): Jump to the newest log as new entries arrive; pause to keep history still for inspection / 自动滚动开关(默认开启):新日志到达时自动跳到最新;暂停可稳定查看历史\nCopy as JSON: Copy all currently filtered logs as JSON / 复制为 JSON:将当前过滤后的全部日志复制为 JSON\nShare as Text: Share filtered logs as plain text / 分享为文本:将过滤后的日志以纯文本分享\nClear: Clear all logs / 清除:清空全部日志","log-list--日志列表#Log List / 日志列表":"Level badge with color / 带颜色的级别徽章\nTimestamp display / 时间戳显示\nTag display (if available) / 标签显示(如有)\nError/warning rows have subtle background tint / 错误/警告行有淡色背景\nLeft border color indicates level / 左侧边框颜色表示级别\nTap a row to open the in-view detail page with full message and copy; use the back button to return / 点击行进入详情页(主视图内切换),可查看完整消息并复制,点返回按钮回到列表\nPer-row copy button copies that single log as JSON / 行内复制按钮将该条日志以 JSON 复制","search--搜索#Search / 搜索":"Fuzzy search by message content or tag / 按消息内容或标签模糊搜索\nToggle regex mode (. * button) to search with RegExp (case-insensitive); invalid patterns degrade gracefully instead of crashing / 点击 正则模式(. * 按钮)使用 RegExp 搜索(不区分大小写);非法图案优雅降级,不会崩溃\nCombined with level and tag filters / 可与级别、标签过滤组合使用","manual-logging--手动记录日志#Manual Logging / 手动记录日志":"Quick shorthand (recommended) / 简化写法(推荐) — available since v1.1.2 / v1.1.2 起可用:\nInspectorLog.v('Verbose message / 详细消息');\nInspectorLog.d('Debug message / 调试消息');\nInspectorLog.i('Info message / 信息消息');\nInspectorLog.w('Warning message / 警告消息');\nInspectorLog.e('Error message / 错误消息');\n// With tag / 带标签\nInspectorLog.i('User logged in', tag: 'Auth');\nFull form / 完整写法:\nInspectorLogInterceptor.instance.verbose('Verbose message / 详细消息');\nInspectorLogInterceptor.instance.debug('Debug message / 调试消息');\nInspectorLogInterceptor.instance.info('Info message / 信息消息');\nInspectorLogInterceptor.instance.warning('Warning message / 警告消息');\nInspectorLogInterceptor.instance.error('Error message / 错误消息');\n// With tag / 带标签\nInspectorLogInterceptor.instance.info('User logged in', tag: 'Auth');\nInspectorLog is a static wrapper around InspectorLogInterceptor.instance for shorter log calls.InspectorLog 是 InspectorLogInterceptor.instance 的静态包装,用于更简短的日志调用。","third-party-library-integration--第三方日志库集成#Third-Party Library Integration / 第三方日志库集成":"","auto-capture-inbound--自动捕获入站#Auto-Capture (Inbound) / 自动捕获(入站)":"No configuration needed. Any library using print() or debugPrint() is automatically captured.无需配置。任何使用 print() 或 debugPrint() 的库都会被自动捕获。","bidirectional-sync-optional--双向同步可选#Bidirectional Sync (Optional) / 双向同步(可选)":"To forward inspector logs to your third-party logger:将检查器日志转发到第三方日志库:\nimport 'package:logger/logger.dart';\nfinal logger = Logger();\nInspectorLogInterceptor.instance.onLogCaptured = (entry) {\n logger.log(\n _mapLogLevel(entry.level),\n '${entry.tag != null ? '[${entry.tag}] ' : ''}${entry.message}',\n );\n};\nNote: Do NOT call logging methods inside onLogCaptured, as this will cause infinite recursion.\n注意:不要在 onLogCaptured 内部调用日志方法,否则会导致无限递归。","starting-the-log-interceptor--启动日志拦截器#Starting the Log Interceptor / 启动日志拦截器":"If using runAppWithInspector(), the log interceptor starts automatically. Otherwise:如果使用 runAppWithInspector(),日志拦截器会自动启动。否则:\nInspectorLogInterceptor.instance.start();"}},"/Memory-Viewer":{"title":"Memory Viewer / 内存监控面板","data":{"":"The Memory Viewer provides comprehensive in-app memory analysis, including trend charts, Dart Heap details, Native memory breakdown, memory leak detection, image cache monitoring, and storage statistics.内存监控面板提供应用内全面内存分析,包括趋势图、Dart Heap 详情、Native 内存分项、内存泄漏检测、图片缓存监控和存储统计。\nAvailable since v1.1.0v1.1.1 起可用","overview--概览#Overview / 概览":"The Memory Viewer is integrated into the inspector panel. Tap the floating inspector button → \"Memory\" tab to access.内存监控面板集成在检查器面板中。点击悬浮检查器按钮 → \"Memory\" 标签即可访问。⚠️ Important: Memory monitoring is off by default. You must toggle on the switch at the top of the panel to start collecting data.⚠️ 重要:内存监控默认关闭。必须在面板顶部打开开关才会开始采集数据。","master-switch--总开关#Master Switch / 总开关":"A switch at the top of the Memory panel controls whether monitoring is enabled.Memory 面板顶部有一个开关,控制是否启用监控。\nState\tBehavior\tOFF (default)\tNo timers, no VM Service connection, zero overhead / 无定时器、无 VM Service 连接、零开销\tON\tStarts RSS collection (500ms), Native memory (3s), storage stats (3s), leak detection (2s), and VM Service connection attempt / 启动 RSS 采集(500ms)、Native 内存(3s)、存储统计(3s)、泄漏检测(2s),并尝试连接 VM Service\t\nWhen turned off, all timers are cancelled and the VM Service connection state is cleared, leaving no residual WebSocket overhead.关闭时所有定时器会被取消,VM Service 连接状态会被清空,不会残留 WebSocket 开销。","features--功能#Features / 功能":"","1-memory-trend-chart--内存趋势图#1. Memory Trend Chart / 内存趋势图":"Real-time line chart with 2-minute history window (240 snapshots × 500ms)\nSwitchable between 4 metrics via the metric selector chips:\nProcess RSS — Process-level RSS (always available)\nDart Heap — Total Dart Heap usage (requires VM Service)\nNew Space — New generation usage (requires VM Service)\nOld Space — Old generation usage (requires VM Service)\n实时折线图,2 分钟历史窗口(240 条快照 × 500ms)。可通过指标选择芯片切换 4 种指标。","2-native-memory--native-内存真机-100-可用#2. Native Memory / Native 内存(真机 100% 可用)":"Does not depend on VM Service. Data is collected via Platform Channel:不依赖 VM Service,通过 Platform Channel 采集:Android (Debug.MemoryInfo + /proc/self/status):\nTotal PSS / Dalvik PSS / Native PSS / Native Private Dirty\nProcess RSS (from /proc/self/status)\nDevice memory status (availMem, threshold, lowMemory)\niOS (mach task_info):\nPhysical Footprint (Apple's recommended metric)\nInternal / Compressed / Resident Size\nProcess RSS\nDevice available memory","3-dart-heap-overview--dart-heap-概览需要-vm-service#3. Dart Heap Overview / Dart Heap 概览(需要 VM Service)":"Heap Usage / Capacity / external usage\nProgress bar showing heap usage ratio\nThree core metrics with bilingual labels\n显示 Heap Usage / Capacity / External 三个核心指标 + 进度条。","4-heap-generations--堆分代详情需要-vm-service#4. Heap Generations / 堆分代详情(需要 VM Service)":"New Space: usage / capacity / external\nOld Space: usage / capacity / external\nHelps identify allocation patterns (frequent new-space churn vs old-space growth)\n显示新生代/老生代的 Usage / Capacity / External 详细数据。","5-manual-gc--手动触发-gc需要-vm-service#5. Manual GC / 手动触发 GC(需要 VM Service)":"\"Trigger GC\" button forces a full garbage collection\nDisabled (grayed out) when VM Service is unavailable\n\"Trigger GC\" 按钮强制触发完整垃圾回收。VM Service 不可用时按钮变灰禁用。","6-memory-leak-detection--内存泄漏检测#6. Memory Leak Detection / 内存泄漏检测":"Based on Dart 2.17+ WeakReference and Finalizer. Does NOT depend on VM Service.基于 Dart 2.17+ 的 WeakReference 和 Finalizer,不依赖 VM Service。Four-state transition / 四状态流转:\nState\tMeaning\ttracking\tObject registered, waiting for expected release time / 对象已注册,等待预期释放时间\tverifying\tExceeded expected release time, GC verification triggered (if VM Service available) / 超过预期释放时间,触发 GC 验证(VM Service 可用时)\tleaked\tObject still exists after GC — suspected leak / GC 后对象仍存在——疑似泄漏\treleased\tObject has been garbage collected / 对象已被垃圾回收\t\nAPI / 接口:Quick shorthand (recommended) / 简化写法(推荐) — available since v1.1.2 / v1.1.2 起可用:\n// Extension method on Object / Object 上的扩展方法\nmyBloc.trackMemoryLeak(tag: 'HomePage_myBloc');\n// Or top-level function / 或使用顶层函数\ntrackMemoryLeak(myBloc, tag: 'HomePage_myBloc');\n// Cancel tracking / 取消追踪\nmyBloc.untrackMemoryLeak();\nFull form / 完整写法:\n// Register an object for leak tracking / 注册对象进行泄漏追踪\nMemoryInspectorService.instance.trackObject(\n myController,\n tag: 'HomeController_textController', // optional identifier\n expectedReleaseAfter: const Duration(seconds: 30), // expected release time\n);\n// Stop tracking a specific object / 停止追踪特定对象\nMemoryInspectorService.instance.untrackObject(myController);\n// Clear all records / 清空所有记录\nMemoryInspectorService.instance.clearLeakRecords();\nLimits / 限制:\nMax 500 tracked objects (LRU eviction)\nDetection interval: 2 seconds\ntrackObject() requires user code modification (mild invasion)\nFlutter MemoryAllocations bridge (since v1.9.0) / 官方泄漏追踪桥接(v1.9.0 起)The WeakReference state machine has a blind spot: an object whose dispose() ran but that has not been GC'd yet still resolves through the weak reference, producing a false \"leaked\" verdict. Since v1.9.0, MemoryInspectorService also subscribes to Flutter's official FlutterMemoryAllocations (the data source behind leak_tracker) via LeakTrackerBridge: once the official stream reports disposed, the object is treated as released (awaiting GC) even if the weak reference still resolves — cutting false positives. Enabled by default through enableFlutterLeakTracker in init(), and toggled in code via MemoryInspectorService.instance.flutterLeakTrackerEnabled.WeakReference 状态机有一个盲点:对象已调用 dispose() 但尚未被 GC 时弱引用仍存活,会产生\"疑似泄漏\"的误报。v1.9.0 起,MemoryInspectorService 通过 LeakTrackerBridge 额外订阅 Flutter 官方的 FlutterMemoryAllocations(leak_tracker 背后的数据源):只要官方上报 disposed,即便弱引用仍存活也判定为已释放(等待 GC),从而显著降低误报。由 init() 的 enableFlutterLeakTracker 默认启用,也可用 MemoryInspectorService.instance.flutterLeakTrackerEnabled 在代码中开关。","7-image-cache--图片缓存#7. Image Cache / 图片缓存":"Real-time Flutter image cache size and count\nPending (loading) / Live (in use) image counts\nOne-click clear all image cache\n实时显示 Flutter 图片缓存大小、数量、加载中/使用中状态。一键清理图片缓存。","8-app-storage--应用存储#8. App Storage / 应用存储":"Documents directory size\nTemp cache directory size\nTotal database file size\nOne-click clear temp cache\n显示文档目录、临时缓存、数据库文件大小。一键清理临时缓存。","️-vm-service-availability--vm-service-可用性#⚠️ VM Service Availability / VM Service 可用性":"Dart Heap data and manual GC require VM Service connection. When VM Service is unavailable, these features gracefully degrade to show \"N/A\".Dart Heap 数据和手动 GC 需要 VM Service 连接。 VM Service 不可用时,这些功能优雅降级显示 \"N/A\"。","when-debugging-via-pc-with-flutter-run--通过-pc-用-flutter-run-调试时#When debugging via PC with flutter run / 通过 PC 用 flutter run 调试时":"Dart VM Heap data may be unavailable (VM: OFF).Dart VM Heap 数据可能不可用(VM: OFF)。Reason / 原因: When using flutter run to debug via PC, the flutter tool sets up port forwarding between PC and device via adb reverse, allowing PC-side DevTools to access the device's VM Service. However, Service.getInfo() returns a serverUri from the PC's perspective; when the app process internally accesses 127.0.0.1:PC_port, the device doesn't have that port listening locally, resulting in Connection refused and VM Service showing OFF.原因:使用 flutter run 连接 PC 调试时,flutter tool 会通过 adb reverse 在 PC 和设备之间做端口转发,让 PC 上的 DevTools 能访问设备的 VM Service。但应用进程内部 Service.getInfo() 返回的 serverUri 是 PC 视角的端口,应用进程访问 127.0.0.1:PC端口 时设备本地并没有监听该端口,导致 Connection refused,VM Service 显示 OFF。","when-opening-debug-app-directly-no-pc--直接打开-debug-应用不连-pc#When opening debug app directly (no PC) / 直接打开 debug 应用(不连 PC)":"VM Service works normally. No flutter tool is involved, VM Service listens directly on the device's local port, the app can connect normally, and Dart Heap data displays correctly.VM Service 正常工作。 没有 flutter tool 介入,VM Service 直接监听设备本地端口,应用能正常连接,Dart Heap 数据正常显示。","fallback--降级方案#Fallback / 降级方案":"When VM Service is unavailable:\n✅ Native memory (Android PSS / iOS physicalFootprint) — still available\n✅ Process RSS — always available\n✅ Image cache / storage stats — still available\n✅ Leak detection — still available (doesn't depend on VM Service)\n❌ Dart Heap details — shows N/A\n❌ Manual GC — button disabled","platform-support--平台支持#Platform Support / 平台支持":"Feature\tAndroid\tiOS\tProcess RSS\t✅\t✅\tNative Memory\t✅\t✅\tDart Heap (VM Service)\t✅ (no PC)\t✅ (no PC)\tManual GC\t✅ (no PC)\t✅ (no PC)\tLeak Detection\t✅\t✅\tImage Cache\t✅\t✅\tStorage Stats\t✅\t✅","refresh-intervals--刷新间隔#Refresh Intervals / 刷新间隔":"Data Source\tInterval\tProcess RSS / Dart Heap\t500ms\tNative Memory (Android/iOS)\t3000ms\tStorage Stats\t3000ms\tLeak Detection\t2000ms","related--相关#Related / 相关":"Usage — General usage guide\nFAQ — Common questions\nConfiguration — Configuration options"}},"/Network-Inspector":{"title":"Network Inspector / 网络检查器","data":{"overview--概述#Overview / 概述":"The Network Inspector automatically captures all HTTP requests made via the http package and Dio, with zero configuration needed.网络检查器自动捕获所有通过 http 包 和 Dio 发送的 HTTP 请求,无需任何配置。","how-it-works--工作原理#How It Works / 工作原理":"The inspector uses Flutter's HttpOverrides to intercept all HTTP traffic at the dart:io level. This means:检查器通过 Flutter 的 HttpOverrides 在 dart:io 层面拦截所有 HTTP 流量。这意味着:\nhttp package: Auto-captured ✅ / 自动捕获 ✅\nDio: Auto-captured (uses IOHttpClientAdapter → HttpClient) ✅ / 自动捕获 ✅\nNo manual interceptor setup needed / 无需手动添加拦截器","websocket--grpc-capture--websocket-与-grpc-抓取#WebSocket & gRPC Capture / WebSocket 与 gRPC 抓取":"Available since v1.7.0 (opt-in, off by default)v1.7.0 起可用(可选开启,默认关闭)\nHTTP/HTTPS traffic is captured automatically, but the HttpOverrides interceptor does not cover streaming protocols like WebSocket and gRPC. For those, enable the opt-in capture so frames and calls show up as WS / gRPC rows in the Network tab.HTTP/HTTPS 流量会自动捕获,但 HttpOverrides 拦截器无法覆盖 WebSocket、gRPC 这类流式协议。针对它们需开启可选的抓取,开启后收发帧/调用会以 WS / gRPC 行的形式出现在 Network 标签页。","enable--开启方式#Enable / 开启方式":"Toggle the WS switch in the Network tab toolbar, or / 在 Network 标签页工具栏点击 WS 开关,或\nSet it programmatically: / 通过代码开启:\n// on / 开启\nWsInspectorService.instance.enable();\n// off / 关闭\nWsInspectorService.instance.disable();\nCapture is off by default and only records while enabled — apps that don't use these protocols pay nothing.抓取默认关闭,且只在开启时记录;不使用这类协议的应用零开销。","two-usage-modes--两种使用方式#Two Usage Modes / 两种使用方式":"1. Transparent wrapper — InspectorWebSocketReplace WebSocket.connect with InspectorWebSocket.connect. Frames are auto-recorded (→ out, ← in) when capture is on; when off it passes through with zero overhead.将 WebSocket.connect 替换为 InspectorWebSocket.connect。开启抓取时会自动记录收发帧(→ 出站、← 入站);关闭时零开销透传。\nfinal ws = await InspectorWebSocket.connect('wss://echo.websocket.events');\nws.listen((msg) => print('received: $msg'));\nws.add('hello'); // recorded as an outgoing frame / 记录为出站帧\n2. Manual hook — recordCallFor stacks not transparently interceptable by dart:io (gRPC, web_socket_channel, custom protocols), call recordCall to log a request/response pair. No-ops when capture is disabled.对于无法被 dart:io 透明拦截的栈(gRPC、web_socket_channel、自定义协议),调用 recordCall 记录一次请求/响应。关闭抓取时为空操作。\nWsInspectorService.instance.recordCall(\n name: 'user.UserService/GetUser',\n request: '{ \"id\": 1 }',\n response: '{ \"name\": \"Ada\" }',\n protocol: 'gRPC', // appears in the method column / 显示在 method 列\n);","what-you-see--查看方式#What You See / 查看方式":"Network tab lists a WS (or gRPC) entry per connection/call / Network 标签页按连接/调用列出 WS(或 gRPC)记录\nOpen the detail view to see the frame log (outgoing → / incoming ←), accumulated in the response body / 进入详情页查看帧日志(出站 → / 入站 ←),累积显示在响应体中\nA [connection closed] marker is appended when the socket closes / 连接关闭后会追加 [connection closed] 标记","captured-information--捕获的信息#Captured Information / 捕获的信息":"Field\tDescription\tMethod\tGET, POST, PUT, DELETE, PATCH\tURL\tFull request URL\tStatus Code\tHTTP response status code\tDuration\tRequest duration\tRequest Headers\tAll request headers\tRequest Body\tRequest payload (JSON formatted)\tResponse Body\tResponse payload (JSON formatted)\tHost\tParsed from URL","ui-features--ui-功能#UI Features / UI 功能":"","request-list--请求列表#Request List / 请求列表":"Color-coded by HTTP method / 按 HTTP 方法着色\nStatus code badge / 状态码徽章\nDuration display / 耗时显示\nLeft border color indicates status / 左侧边框颜色表示状态","request-detail--请求详情#Request Detail / 请求详情":"Click a request to enter detail view / 点击请求进入详情视图\nBack button to return to list / 返回按钮返回列表\nRequest and response sections / 请求和响应分段显示\nJSON formatted body / JSON 格式化显示","search--搜索#Search / 搜索":"Fuzzy search by URL or method / 按 URL 或方法模糊搜索\nSearch bar hidden in detail view / 详情视图隐藏搜索栏","batch-operations--批量操作#Batch Operations / 批量操作":"Available since v1.3.0v1.3.0 起可用\nThe request list supports a selection mode for operating on multiple requests at once.请求列表支持选择模式,可一次性操作多条请求。\nTap the selection icon in the toolbar to enter selection mode / 点击工具栏的选择图标进入选择模式\nCheck/uncheck items; a top batch bar shows Select all / Cancel / 勾选/取消勾选;顶部批量条提供全选 / 取消\nBatch \"Copy as cURL\": copies all selected requests as cURL commands / 批量「Copy as cURL」:将所有选中请求复制为 cURL 命令\nBatch delete: removes selected requests from the list / 批量删除:从列表中移除选中请求","export--sensitive-field-masking--导出与敏感字段遮蔽#Export & Sensitive-field Masking / 导出与敏感字段遮蔽":"Available since v1.3.0v1.3.0 起可用\nThe toolbar includes an eye toggle that controls whether sensitive headers are masked on export.工具栏包含眼睛开关,控制导出时是否遮蔽敏感请求头。\nDefault: off (fully visible) — cURL / JSON / HAR reflect the real request verbatim / 默认关闭(完整可见):cURL / JSON / HAR 原样反映真实请求\nOn: toCurl / netToJson / netToHar / copyNet / exportNetToFile mask these headers / 开启后:以下请求头被遮蔽:\nAuthorization, Cookie, Set-Cookie, Proxy-Authorization, X-Auth-Token, X-CSRF-Token, X-XSRF-Token\nThe detail page \"Copy as cURL\" / \"Copy as JSON\" follow the same toggle / 详情页「Copy as cURL」「Copy as JSON」跟随同一开关\nWhen masking is active, the snackbar notes (sensitive hidden) / 遮蔽开启时,snackbar 提示 (sensitive hidden)\nTip: keep masking on before pasting cURL/JSON into terminals, chat, or issue trackers to avoid leaking credentials.提示:将 cURL/JSON 粘贴到终端、聊天或 issue 前,建议开启遮蔽,避免凭据泄露。","copy-as-curl--复制为-curl#Copy as cURL / 复制为 cURL":"Available since v1.3.0v1.3.0 起可用\nFrom the request detail view, tap Copy as cURL to copy the request as a ready-to-run cURL command (method, URL, headers, body). Respects the sensitive-field masking toggle above.在请求详情页点击 Copy as cURL,即可将请求复制为可直接运行的 cURL 命令(方法、URL、请求头、请求体),并遵循上方的敏感字段遮蔽开关。","status-code-colors--状态码颜色#Status Code Colors / 状态码颜色":"Range\tColor\tDescription\t2xx\tGreen\tSuccess / 成功\t3xx\tBlue\tRedirect / 重定向\t4xx\tOrange\tClient error / 客户端错误\t5xx\tRed\tServer error / 服务器错误","http-method-colors--http-方法颜色#HTTP Method Colors / HTTP 方法颜色":"Method\tColor\tGET\tBlue / 蓝色\tPOST\tGreen / 绿色\tPUT\tOrange / 橙色\tDELETE\tRed / 红色\tPATCH\tPurple / 紫色","usage-example--使用示例#Usage Example / 使用示例":"// http package - auto-captured / http 包 - 自动捕获\nfinal response = await http.get(\n Uri.parse('https://api.example.com/data'),\n);\n// Dio - auto-captured / Dio - 自动捕获\nfinal response = await dio.post(\n 'https://api.example.com/data',\n data: {'key': 'value'},\n);\nNo additional setup required! All requests will appear in the Network tab.无需额外配置!所有请求都会出现在 Network 标签页中。","request-interceptor--请求拦截修改#Request Interceptor / 请求拦截修改":"Available since v1.0.7 (response fields locked to read-only since v1.0.8)v1.0.7 起可用(v1.0.8 起响应字段锁定为只读)\nThe inspector supports intercepting and modifying network requests via rules. This is useful for testing different request parameters without modifying app code.检查器支持通过规则拦截并修改网络请求,适合在不修改应用代码的情况下测试不同的请求参数。","workflow--工作流程#Workflow / 工作流程":"Send a request normally (it will be captured in the Network panel) / 正常发送请求(会被捕获到 Network 面板)\nOpen the request detail and tap the Interceptor icon / 打开请求详情,点击拦截器图标\nConfigure the modification rule (URL pattern, HTTP method, request modifications) / 配置修改规则(URL 模式、HTTP 方法、请求修改)\nSave the rule — subsequent matching requests will use the modified parameters / 保存规则——后续匹配的请求将使用修改后的参数","supported-modifications--支持的修改#Supported Modifications / 支持的修改":"Field\tEditable\tNotes\tRequest Body\t✅\tOnly for requests with body (POST, PUT, PATCH, etc.) / 仅适用于有 body 的请求\tRequest Headers\t✅\tAdd / modify / remove headers / 新增 / 修改 / 删除请求头\tURL\t❌\tGrayed out, read-only / 灰色不可编辑\tResponse Status Code\t❌\tRead-only since v1.0.8 / v1.0.8 起只读\tResponse Body\t❌\tRead-only since v1.0.8 / v1.0.8 起只读\t\nThe interception edit panel only allows modifying the request body and request headers. Response fields (status code, response body) are grayed out and uneditable.拦截编辑面板仅允许修改请求体和请求头。响应字段(状态码、响应体)灰色不可编辑。","rule-matching--规则匹配#Rule Matching / 规则匹配":"URL pattern matching: exact match or regex / URL 模式匹配:精确匹配或正则匹配\nHTTP method filtering: GET, POST, PUT, DELETE, PATCH, HEAD, or Any / HTTP 方法过滤","why-get-requests-cannot-be-modified--为什么-get-请求不能修改#Why GET Requests Cannot Be Modified / 为什么 GET 请求不能修改":"The interceptor currently supports modifying request body and headers only / 拦截器目前仅支持修改请求体和请求头\nGET requests don't have a request body / GET 请求没有请求体\nModifying GET request parameters would require URL modification / 修改 GET 请求参数需要修改 URL\nURL modification may cause unexpected issues with request routing and parameter encoding / 修改 URL 可能导致请求路由和参数编码的意外问题\nGET request detail pages do not display interception edit buttons, making them unmodifiable.GET 请求详情页不显示拦截编辑按钮,因此无法修改。","master-toggle--拦截总开关#Master Toggle / 拦截总开关":"The interception master toggle is displayed only on the Network list page, not in the detail page / 拦截总开关只显示在 Network 列表页,不在详情页\nRules are only applied when modification mode is enabled / 规则仅在启用修改模式时生效\nWhen no rules are configured or rules are disabled, all requests are sent normally without any modification / 未配置规则或禁用规则时,所有请求正常发送,不做任何修改","rule-management--规则管理#Rule Management / 规则管理":"The network panel includes an interceptor rule editor where you can:网络面板包含拦截规则编辑器,可以:\nCreate / edit / delete rules / 创建 / 编辑 / 删除规则\nEnable / disable individual rules / 启用 / 禁用单条规则\nView rule status indicators in the request list / 在请求列表中查看规则状态标识"}},"/Route-Tracker":{"title":"Route Tracker / 路由追踪","data":{"overview--概述#Overview / 概述":"The Route Tracker monitors navigation history, recording all route push, pop, and replacement events.路由追踪器监控导航历史,记录所有路由 push、pop 和替换事件。","auto-injection--自动注入#Auto-Injection / 自动注入":"When using runAppWithInspector() or wrapApp(), the InspectorRouteObserver is automatically injected into MaterialApp's navigatorObservers.使用 runAppWithInspector() 或 wrapApp() 时,InspectorRouteObserver 会自动注入到 MaterialApp 的 navigatorObservers 中。","tracked-route-actions--追踪的路由操作#Tracked Route Actions / 追踪的路由操作":"Action\tColor\tDescription\tpush\tBlue\tNavigator.push() / 推入新路由\tpushNamed\tBlue\tNavigator.pushNamed() / 按名称推入\tpop\tOrange\tNavigator.pop() / 弹出路由\tpopUntil\tOrange\tNavigator.popUntil() / 弹出直到\tpushReplacement\tPurple\tNavigator.pushReplacement() / 替换路由","ui-features--ui-功能#UI Features / UI 功能":"","route-list--路由列表#Route List / 路由列表":"Action badge with color / 带颜色的操作徽章\nRoute name display / 路由名称显示\nTimestamp display / 时间戳显示\nLeft border color indicates action type / 左侧边框颜色表示操作类型","route-detail--路由详情#Route Detail / 路由详情":"Click a route to view details / 点击路由查看详情\nShows: Action, Route Name, Timestamp, Arguments / 显示:操作、路由名、时间戳、参数\nArguments displayed as formatted JSON / 参数以 JSON 格式显示","manual-setup-optional--手动设置可选#Manual Setup (Optional) / 手动设置(可选)":"If you use a custom Navigator or don't use MaterialApp, add the observer manually:如果使用自定义 Navigator 或不使用 MaterialApp,请手动添加观察者:\nMaterialApp(\n navigatorObservers: [InspectorRouteObserver()],\n home: MyHomePage(),\n)"}},"/":{"title":"Zero Inspector Kit","data":{"":"A powerful Flutter plugin for in-app developer console, providing real-time debugging tools including network request inspection, logging, error aggregation, database viewing, and route tracking.一个功能强大的 Flutter 插件,提供应用内开发者控制台,包括网络请求检查、日志记录、异常聚合、数据库查看和路由追踪。","-features--功能特性#✨ Features / 功能特性":"Feature\tDescription\tZero Invasion\tIntegrate with 1 line of code / 一行代码集成\tNetwork Inspector\tReal-time HTTP request viewing (http + Dio) / 实时网络请求查看\tLog Viewer\tAuto-capture print()/debugPrint() and third-party logs / 自动捕获日志\tErrors\tAggregate & dedupe crashes by type + stack, with count and first/last seen / 按类型+堆栈去重聚合崩溃,记录次数与首末次时间\tDatabase Viewer\tSQLite inspection with table data / 数据库查看\tMemory Viewer\tTrend chart, Dart Heap, Native memory, leak detection (incl. Flutter MemoryAllocations bridge) / 内存趋势图、Dart Heap、Native 内存、泄漏检测(含官方 MemoryAllocations 桥接)\tFPS Monitor\tReal-time FPS, jank rate, trend chart / 实时 FPS、卡顿率、趋势图\tRoute Tracker\tNavigation history tracking / 路由追踪\tSession Persistence\tLogs/network/errors survive restarts via a disk ring buffer; logs & errors replay on launch; one-tap session archive export / 日志/网络/异常通过磁盘环形缓冲跨重启保留,启动时回放日志与异常;一键导出会话存档\tAlerts\tRule-based alerts (network/log/memory/FPS) with unread badge / 基于规则的告警(网络/日志/内存/FPS)与未读角标\tSensitive Masking & cURL\tMask secrets on export; one-click cURL copy; batch ops / 导出遮蔽敏感字段、一键复制 cURL、批量操作\tFuzzy Search\tSearch in all viewers / 各查看器模糊搜索\tCross-platform\tAndroid, iOS / 跨平台支持","-table-of-contents--目录#📚 Table of Contents / 目录":"Page\tDescription\tGetting Started\tQuick start guide / 快速开始\tInstallation\tHow to install / 安装方式\tUsage\tDetailed usage / 详细使用\tNetwork Inspector\tNetwork request viewing / 网络检查器\tLog Viewer\tLog capturing and viewing / 日志查看器\tErrors\tAggregated error viewing / 异常聚合查看\tDatabase Viewer\tDatabase inspection / 数据库查看器\tRoute Tracker\tRoute tracking / 路由追踪\tMemory Viewer\tMemory monitoring & leak detection / 内存监控与泄漏检测\tFPS Viewer\tFPS monitoring & jank detection / FPS 监控与卡顿检测\tAlerts\tRule-based alerting / 基于规则的告警\tConfiguration\tConfiguration options / 配置说明\tCustom Database Provider\tExtend database support / 自定义数据库提供者\tFAQ\tFrequently asked questions / 常见问题","-links--链接#🔗 Links / 链接":"GitHub\nOfficial Website\npub.dev","-license--许可证#📄 License / 许可证":"This project is licensed under the GNU General Public License v3.0.本项目采用 GNU General Public License v3.0 许可证。This plugin is provided \"as is\", without warranty of any kind. The author assumes no responsibility or liability for the functionality, security, or any consequences arising from the use of modified versions or derivative projects.本插件按\"原样\"提供,不提供任何担保。作者不对修改版或衍生项目的功能、安全性及任何使用后果承担责任。"}},"/Usage":{"title":"Usage / 使用指南","data":{"integration-methods--集成方式#Integration Methods / 集成方式":"","1-one-line-integration-recommended--一行代码集成推荐#1. One-Line Integration (Recommended) / 一行代码集成(推荐)":"void main() {\n ZeroInspectorKit.runAppWithInspector(const MyApp());\n}\nThis method:\nAuto-initializes inspector / 自动初始化检查器\nCaptures print() via Zone / 通过 Zone 捕获 print()\nDisplays floating button via Overlay / 通过 Overlay 显示悬浮按钮\nAuto-injects route observer / 自动注入路由观察者","2-two-line-integration--两行代码集成#2. Two-Line Integration / 两行代码集成":"void main() {\n ZeroInspectorKit.init();\n runApp(ZeroInspectorKit.wrapApp(const MyApp()));\n}","inspector-panel--检查器面板#Inspector Panel / 检查器面板":"The inspector panel contains 9 tabs (as of v1.9.0):检查器面板包含 9 个标签页(v1.9.0 起):\nTab\tIcon\tFeature\tNetwork\t🌐\tHTTP request viewing + interceptor rules / 网络请求查看 + 拦截修改\tLogs\t📝\tLog viewing with level filter / 日志查看\tErrors\t🚨\tAggregated & deduped crash viewing / 去重聚合的异常查看\tDatabase\t💾\tDatabase and table inspection / 数据库查看\tMemory\t📊\tMemory trend, Dart Heap, Native memory, leak detection / 内存趋势、Dart Heap、Native 内存、泄漏检测\tFPS\t🎯\tReal-time FPS, jank rate, trend chart / 实时 FPS、卡顿率、趋势图\tRoutes\t🧭\tRoute navigation tracking / 路由追踪\tWidgets\t🔍\tWidget tree snapshot for the current route / 当前路由的 Widget 树快照\tAlerts\t🔔\tRule-based alerts with unread badge / 基于规则的告警与未读角标\t\nThe Memory and FPS monitors are off by default to avoid performance overhead. Toggle the switch at the top of each panel to start collecting data.Memory 与 FPS 监控默认关闭以避免性能开销。在各自面板顶部打开开关才会开始采集数据。","one-click-bug-report--一键-bug-报告#One-Click Bug Report / 一键 Bug 报告":"Tap the bug icon in the inspector panel header to generate and share a bug report in one tap — ideal for QA to attach environment context when filing issues.点击检查器面板头部的虫子图标,即可一键生成并分享一份 Bug 报告——非常适合 QA 在提 issue 时附上环境上下文。The shared text snapshot includes / 分享的文本快照包含:\nDevice / 设备: real model (e.g. Pixel 8 Pro / iPhone (iPhone16,1)), OS & version, locale, Dart runtime, CPU cores.\nMemory / 内存: current heap usage and whether Native memory is supported.\nRecent logs / 最近日志: the latest captured log entries.\nRecent network / 最近网络: the latest captured requests.\nSensitive headers are masked the same way as in the Network tab. No data leaves the device except through the share target you choose.敏感请求头会与网络标签页一样被遮蔽。除你选择的分享目标外,数据不会离开设备。\nRequires no extra setup — it works as soon as the inspector is running. / 无需额外配置——检查器运行后即可使用。","floating-button--悬浮按钮#Floating Button / 悬浮按钮":"The floating button appears after 1 second delay / 悬浮按钮延迟 1 秒出现\nDrag to move it along the screen edge / 拖动 可沿屏幕边缘移动\nTap (when fully visible) to open/close the inspector panel / 点击(完全可见时)打开/关闭检查器面板\nButton auto-snaps to the nearest screen edge / 按钮自动吸附到最近的屏幕边缘\nBreathing animation when idle / 空闲时有呼吸动画","edge-docking-since-v120--边缘吸附v120-起#Edge Docking (since v1.2.0) / 边缘吸附(v1.2.0 起)":"When released near a screen edge, the button auto-docks and tucks into the edge, leaving only a 24px peek visible:拖动松手后,按钮会自动吸附到最近边缘并\"收入\"边缘,仅露出 24px 小弧边:\nState\tBehavior / 行为\tDocked (tucked in)\tOnly 24px peek visible; icon becomes a directional chevron (left dock → ➡, right dock → ⬅) hinting at tap-to-pull-out / 仅露出 24px;图标变为方向箭头提示可点击拉出\tTap docked peek\tSmoothly pulls out to fully visible (panel NOT opened, avoids accidental open) / 平滑拉出到完全可见(不打开面板,避免误触)\tTap fully visible\tOpens the inspector panel / 打开检查器面板\t\nThis design avoids conflicts with system back gestures (Android/iOS edge swipe to go back) when pulling out from the docked state.此设计避免了从吸附态拖出时与系统返回手势(Android/iOS 边缘右滑退出)的冲突。","search--搜索#Search / 搜索":"The main viewers support fuzzy search:各查看器均支持模糊搜索:\nViewer\tSearch Scope\tNetwork\tURL, HTTP method / URL、请求方法\tLogs\tMessage, tag / 消息、标签\tErrors\tException type, message / 异常类型、消息\tDatabase (global)\tDatabase name, table name / 数据库名、表名\tDatabase (in-database)\tTable name, all column data / 表名、所有列数据","manual-logging-optional--手动记录日志可选#Manual Logging (Optional) / 手动记录日志(可选)":"The inspector auto-captures print() output. You can also use manual log methods for precise level control:检查器会自动捕获 print() 输出。也可以使用手动日志方法进行精确级别控制:Quick shorthand (recommended) / 简化写法(推荐):\nInspectorLog.v('Verbose log / 详细日志');\nInspectorLog.d('Debug log / 调试日志');\nInspectorLog.i('Info log / 信息日志');\nInspectorLog.w('Warning log / 警告日志');\nInspectorLog.e('Error log / 错误日志');\nFull form / 完整写法:\nInspectorLogInterceptor.instance.verbose('Verbose log / 详细日志');\nInspectorLogInterceptor.instance.debug('Debug log / 调试日志');\nInspectorLogInterceptor.instance.info('Info log / 信息日志');\nInspectorLogInterceptor.instance.warning('Warning log / 警告日志');\nInspectorLogInterceptor.instance.error('Error log / 错误日志');","third-party-log-integration--第三方日志库集成#Third-Party Log Integration / 第三方日志库集成":"No configuration needed! The plugin automatically captures logs from third-party logging libraries (e.g., logger, flutter_logger) that use print() or debugPrint().无需配置! 插件会自动捕获所有使用 print() 的第三方日志库的日志。These logs are categorized as INFO level.这些日志统一归类为 INFO 级别。","bidirectional-sync-optional--双向同步可选#Bidirectional Sync (Optional) / 双向同步(可选)":"To sync inspector-captured logs to your third-party logger:将检查器捕获的日志同步到第三方日志库:\nInspectorLogInterceptor.instance.onLogCaptured = (entry) {\n yourLogger.log(entry.message);\n};","feature-pages--功能详情#Feature Pages / 功能详情":"Network Inspector — Network request details + interceptor rules / 网络检查器详情 + 拦截修改\nLog Viewer — Log viewing details / 日志查看器详情\nErrors — Aggregated error viewing / 异常聚合查看\nDatabase Viewer — Database inspection details / 数据库查看器详情\nRoute Tracker — Route tracking details / 路由追踪详情\nMemory Viewer — Memory monitoring & leak detection / 内存监控与泄漏检测\nFPS Viewer — FPS monitoring & jank detection / FPS 监控与卡顿检测","session-persistence--会话持久化#Session Persistence / 会话持久化":"Logs, network requests, and aggregated errors are asynchronously flushed to a local SQLite ring buffer. On the next launch, logs and aggregated errors replay into their tabs; network requests stay archived on disk for later export. Data therefore survives app restarts even if the inspector panel was never opened. Tap the storage icon in the panel header to open the Persisted data manager: view row counts per category, export the full session archive, or clear the disk. See Configuration (PersistenceService section) for the API and tuning parameters.日志、网络请求与聚合异常会被异步写入本地 SQLite 环形缓冲。下次启动时,日志与聚合异常会回放入各自标签页;网络请求保留在磁盘存档,供之后导出。因此即使从未打开过检查器面板,数据也能跨重启保留。点击面板头部的存储图标可打开 Persisted data 管理弹层:查看各类别行数、导出完整会话存档或清空磁盘。API 与调参详见 Configuration(PersistenceService 一节)。"}}}
\ No newline at end of file
+{"/Alerts":{"title":"Alerts / 告警系统","data":{"overview--概述#Overview / 概述":"Available since v1.3.0v1.3.0 起可用\nThe alert system lets you define rules that proactively surface problems across network requests, logs, memory, and FPS — without manually scanning the panels.告警系统允许你定义规则,主动暴露网络请求、日志、内存、FPS 方面的问题,无需手动逐个面板排查。","how-it-works--工作原理#How It Works / 工作原理":"Rules are evaluated by AlertService whenever a relevant event occurs / 每当相关事件发生时,AlertService 会评估规则\nMatched rules produce alerts, and the unread count is exposed via a ValueNotifier / 命中的规则会生成告警,未读数通过 ValueNotifier 暴露\nThe floating button shows an unread-count badge; opening the panel clears it / 悬浮球显示未读数量角标,打开面板即清零\nAn Alerts tab in the inspector panel lists all triggered alerts / 检查器面板的 Alerts 标签页列出所有已触发的告警","rule-types--规则类型#Rule Types / 规则类型":"Type\tTrigger / 触发条件\tExample / 示例\tNetwork\tResponse status code / 响应状态码\tAlert when status ≥ 400 / 状态码 ≥ 400 时告警\tLog\tLog level or message / 日志级别或内容\tAlert on error logs / 出现 error 日志时告警\tMemory\tDart heap / Native memory threshold / 内存阈值\tAlert when Dart heap > 100 MB / Dart 堆 > 100 MB 时告警\tFPS\tFrame rate / 帧率\tAlert when FPS < 50 / FPS < 50 时告警","ui-features--ui-功能#UI Features / UI 功能":"","floating-button-badge--悬浮球角标#Floating Button Badge / 悬浮球角标":"A red badge shows the current unread alert count (clamped 0–99) / 红色角标显示当前未读告警数(0–99)\nThe number is drawn inside the button so it is never clipped at screen edges / 数字直接绘制在按钮内部,吸附屏幕边缘时不会被裁切\nOpening the inspector panel clears the unread count / 打开检查器面板即清零未读数","alerts-tab--alerts-标签页#Alerts Tab / Alerts 标签页":"Lists triggered alerts with type, condition, and timestamp / 列出已触发告警的类型、条件与时间\nTap an alert to jump to the related panel (network / log / memory / FPS) / 点击告警可跳转到相关面板(网络 / 日志 / 内存 / FPS)","notes--备注#Notes / 备注":"Alerts are evaluated in-process and shown in the developer console only; they do not send data off-device / 告警仅在本机开发者控制台内评估与展示,不会将数据发送到设备外\nThe alert system is tree-shaken out in release builds, like the rest of the inspector / 与检查器其余部分一样,告警系统在 release 构建中被 tree-shake 移除"}},"/Configuration":{"title":"Configuration / 配置说明","data":{"zeroinspectorkitinit-parameters--初始化参数#ZeroInspectorKit.init() Parameters / 初始化参数":"Parameter\tType\tDefault\tDescription\tenable\tbool\ttrue\tEnable inspector (auto false in release mode) / 启用检查器\tenableLogCapture\tbool\ttrue\tEnable log capture / 启用日志捕获\tenableNetworkCapture\tbool\ttrue\tEnable network interception / 启用网络拦截\tenableErrorCapture\tbool\ttrue\tEnable error aggregation (Errors tab) / 启用异常聚合(Errors 标签页)\tenablePersistence\tbool\ttrue\tPersist logs/network/errors to a SQLite ring buffer; logs & errors replay on launch / 将日志/网络/异常落盘到 SQLite 环形缓冲,启动时回放日志与异常\tenableFlutterLeakTracker\tbool\ttrue\tBridge Flutter's official MemoryAllocations as a second leak-detection source / 桥接 Flutter 官方 MemoryAllocations 作为泄漏检测第二来源\tenableDatabaseScan\tbool\ttrue\tEnable database scan / 启用数据库扫描\tenableRouteTracking\tbool\ttrue\tEnable route tracking / 启用路由追踪\tenableWidgetInspector\tbool\ttrue\tEnable Widget tree snapshot / 启用 Widget 树快照\tenableNetworkTimeline\tbool\ttrue\tPrefer the network timeline (waterfall) in request details / 网络详情页默认展示时间轴(瀑布图)\tcustomButton\tWidget?\tnull\tCustom floating button widget / 自定义悬浮按钮\tonLogCaptured\tvoid Function(LogEntry)?\tnull\tLog capture callback for third-party integration / 日志捕获回调\tmaxNetworkItems\tint?\t100\tNetwork request cache cap / 网络请求缓存上限\tmaxLogItems\tint?\t500\tLog entry cache cap / 日志条目缓存上限\tmaxRouteItems\tint?\t200\tRoute record cache cap / 路由记录缓存上限\tmaxBodyPreviewBytes\tint?\t32KB\tBody preview cap, longer bodies truncated / body 预览字节上限,超出截断\t\nenableWidgetInspector / enableNetworkTimeline are also exposed on runAppWithInspector(). (wrapApp() takes only enable.)enableWidgetInspector / enableNetworkTimeline 也可在 runAppWithInspector() 上设置(wrapApp() 仅接受 enable)。","usage-examples--使用示例#Usage Examples / 使用示例":"","disable-specific-features--禁用特定功能#Disable Specific Features / 禁用特定功能":"ZeroInspectorKit.init(\n enableLogCapture: true,\n enableNetworkCapture: false, // Disable network monitoring / 禁用网络监控\n enableDatabaseScan: true,\n enableRouteTracking: false, // Disable route tracking / 禁用路由追踪\n);","with-log-callback--带日志回调#With Log Callback / 带日志回调":"ZeroInspectorKit.init(\n onLogCaptured: (entry) {\n // Forward to your logging service / 转发到你的日志服务\n myLogger.log(entry.message);\n },\n);","conditionalinspector--条件检查器组件#ConditionalInspector / 条件检查器组件":"A convenience widget that automatically shows/hides the inspector based on build mode.根据构建模式自动显示/隐藏检查器的便利组件。\nConditionalInspector(\n child: YourAppWidget(),\n)\nParameter\tType\tDefault\tDescription\tchild\tWidget\trequired\tChild widget / 子组件\tenabled\tbool\ttrue\tEnable inspector / 启用检查器","floatinginspectorbutton--悬浮检查器按钮#FloatingInspectorButton / 悬浮检查器按钮":"Parameter\tType\tDefault\tDescription\tenabled\tbool\ttrue\tEnable button (auto false in release mode) / 启用按钮","inspectorloginterceptor--日志拦截器#InspectorLogInterceptor / 日志拦截器":"Method\tDescription\tstart()\tStart capturing logs / 开始捕获日志\tstop()\tStop capturing logs / 停止捕获日志\tlog(level, message, tag)\tAdd a log entry / 添加日志条目\tverbose(message, tag)\tAdd verbose log / 添加详细日志\tdebug(message, tag)\tAdd debug log / 添加调试日志\tinfo(message, tag)\tAdd info log / 添加信息日志\twarning(message, tag)\tAdd warning log / 添加警告日志\terror(message, tag)\tAdd error log / 添加错误日志\t\nProperty\tType\tDescription\tonLogCaptured\tvoid Function(LogEntry)?\tCallback when a log is captured / 日志捕获回调","inspectorrouteobserver--路由观察者#InspectorRouteObserver / 路由观察者":"Navigator observer for tracking route changes. Auto-injected when using runAppWithInspector() or wrapApp().用于追踪路由变化的 Navigator 观察者。使用 runAppWithInspector() 或 wrapApp() 时自动注入。\nMaterialApp(\n navigatorObservers: [InspectorRouteObserver()],\n home: MyHomePage(),\n)","databaseregistry--数据库注册表#DatabaseRegistry / 数据库注册表":"Register custom database providers:注册自定义数据库提供者:\nDatabaseRegistry.instance.registerProvider(SqliteDatabaseProvider());\nSee Custom Database Provider for more details.详见 自定义数据库提供者。","inspectorlog--简化日志-api#InspectorLog / 简化日志 API":"Available since v1.1.2 / v1.1.2 起可用\nA static wrapper around InspectorLogInterceptor.instance for shorter log calls.InspectorLogInterceptor.instance 的静态包装,用于更简短的日志调用。\nInspectorLog.v('Verbose log');\nInspectorLog.d('Debug log');\nInspectorLog.i('Info log', tag: 'Auth');\nInspectorLog.w('Warning log');\nInspectorLog.e('Error log');\nMethod\tDescription\tstart()\tStart capturing logs / 开始捕获日志\tstop()\tStop capturing logs / 停止捕获日志\tlog(level, message, {tag})\tAdd a log entry / 添加日志条目\tv(message, {tag})\tAdd verbose log / 添加详细日志\td(message, {tag})\tAdd debug log / 添加调试日志\ti(message, {tag})\tAdd info log / 添加信息日志\tw(message, {tag})\tAdd warning log / 添加警告日志\te(message, {tag})\tAdd error log / 添加错误日志\t\nProperty\tType\tDescription\tisRunning\tbool\tWhether log capture is currently active / 日志捕获是否正在运行","memoryinspectorservice--内存监控服务#MemoryInspectorService / 内存监控服务":"Available since v1.1.0 / v1.1.0 起可用\nSingleton service for memory monitoring and leak detection, extends ChangeNotifier.内存监控与泄漏检测单例服务,继承 ChangeNotifier。","full-api--完整接口#Full API / 完整接口":"// Leak tracking (full form) / 泄漏追踪(完整写法)\nMemoryInspectorService.instance.trackObject(\n myController,\n tag: 'HomeController_textController',\n expectedReleaseAfter: const Duration(seconds: 30),\n);\nMemoryInspectorService.instance.untrackObject(myController);\nMemoryInspectorService.instance.clearLeakRecords();","simplified-api--简化接口#Simplified API / 简化接口":"Available since v1.1.2 / v1.1.2 起可用\n// Extension method on Object / Object 上的扩展方法\nmyBloc.trackMemoryLeak(tag: 'HomePage_myBloc');\n// Top-level function / 顶层函数\ntrackMemoryLeak(myBloc, tag: 'HomePage_myBloc');\n// Cancel tracking / 取消追踪\nmyBloc.untrackMemoryLeak();\nSee Memory Viewer for full feature details.完整功能详情见 Memory Viewer。","flutter-memoryallocations-bridge--官方泄漏追踪桥接#Flutter MemoryAllocations Bridge / 官方泄漏追踪桥接":"Available since v1.9.0 / v1.9.0 起可用\nThe leak detector's own WeakReference state machine has a blind spot: an object whose dispose() ran but which has not been GC'd yet still resolves through the weak reference and is flagged as a suspected leak (false positive). LeakTrackerBridge subscribes to Flutter's official FlutterMemoryAllocations (the data source behind leak_tracker) as a second source: once the official stream reports disposed, the object is treated as released (awaiting GC) even if the weak reference still resolves — cutting false positives.自研泄漏检测的 WeakReference 状态机有一个盲点:对象已调用 dispose() 但尚未被 GC 时,弱引用仍存活,会被判定为\"疑似泄漏\"(误报)。LeakTrackerBridge 订阅 Flutter 官方的 FlutterMemoryAllocations(leak_tracker 背后的数据源)作为第二来源:只要官方上报了 disposed,即便弱引用仍存活也判定为已释放(等待 GC),从而显著降低误报。\nEnabled by default via ZeroInspectorKit.init()'s enableFlutterLeakTracker / 通过 init() 的 enableFlutterLeakTracker 默认启用\nOfficial events only cover framework types that report to FlutterMemoryAllocations (Image / Picture / Layer …) — it supplements, not replaces, the custom detector / 官方事件只覆盖会上报给 FlutterMemoryAllocations 的框架类型(如 Image / Picture / Layer),因此是补充而非替代自研方案","errorservice--异常聚合服务#ErrorService / 异常聚合服务":"Available since v1.9.0 / v1.9.0 起可用\nSingleton service for aggregated error capture, extends ChangeNotifier. Hooks FlutterError.onError (keeping the default red error behavior) and dedups each exception by type + stack signature. See Errors for full feature details.异常聚合单例服务,继承 ChangeNotifier。接管 FlutterError.onError(保留默认红色报错行为),按类型 + 堆栈签名去重聚合。完整功能见 Errors。\n// Report an exception manually (gRPC / custom protocols) / 手动上报异常\nErrorService.instance.report(error, stackTrace, 'myModule');\n// Read aggregated records (newest first) / 读取聚合记录(最新在前)\nfinal ErrorRecord r = ErrorService.instance.errors.first;\n// Toggle capture / 切换抓取开关\nErrorService.instance.isEnabled = false;\n// Clear all records / 清空全部记录\nErrorService.instance.clear();\nMember\tDescription\terrors\tList — aggregated records, newest first / 聚合记录,最新在前\terrorCount\tint — aggregated record count / 聚合记录条数\tisEnabled\tbool — capture toggle (programmatic) / 抓取开关(代码控制)\treport(exception, stack, [context])\tManually report an exception / 手动上报异常\trestore(records)\tRestore persisted records (replay on launch) / 恢复持久化记录(启动回放)\tclear()\tClear all aggregated records / 清空所有聚合记录\tinstall() / uninstall()\tHook / restore FlutterError.onError / 接管 / 还原 FlutterError.onError","persistenceservice--持久化服务#PersistenceService / 持久化服务":"Available since v1.9.0 / v1.9.0 起可用\nSingleton service that async-flushes logs, network requests, and aggregated errors to a local SQLite ring buffer (zero_inspector_kit.db) so data survives app restarts. On launch, logs and aggregated errors replay into their tabs; network requests stay archived on disk for later export. Everything is guarded and degrades gracefully: if the DB is unavailable (e.g. desktop without sqflite FFI) isEnabled is false and writes become no-ops, never affecting the host app.单例服务,将日志、网络请求与聚合异常异步落盘到本地 SQLite 环形缓冲(zero_inspector_kit.db),使数据跨重启不丢。启动时日志与聚合异常回放入各自标签页;网络请求保留在磁盘存档,供之后导出。所有操作都有保护并优雅降级:数据库不可用(如桌面端未配置 sqflite FFI)时 isEnabled 为 false,写入变为空操作,绝不影响宿主应用。","tuning--调参#Tuning / 调参":"await PersistenceService.instance.init(\n maxRowsPerTable: 5000, // rows kept per table / 每表保留行数\n retention: const Duration(days: 7), // retention window / 保留时长\n flushInterval: const Duration(seconds: 2), // disk flush interval / 刷盘间隔\n);\nEnabled by default via ZeroInspectorKit.init()'s enablePersistence — the ring buffer flushes automatically, so no manual init() call is needed in normal use.通过 init() 的 enablePersistence 默认启用——环形缓冲会自动刷盘,常规使用无需手动调用 init()。\nMember\tDescription\tisEnabled\tbool — whether the DB is available / 数据库是否可用\tmaxRowsPerTable\tint — row cap per table (ring-buffer trim line) / 每表行数上限\tenqueueLog(e) / enqueueNetwork(r) / enqueueError(e)\tEnqueue an item for async flush / 入队待异步落盘\tflush()\tFlush the buffer to disk and trim / 刷盘并按环形缓冲裁剪\tloadLogs() / loadErrors() / loadNetworkJson()\tLoad persisted data, newest first / 读取已持久化数据(最新在前)\tbuildSessionArchiveJson()\tBuild the full-session archive JSON (logs + errors + network) / 构建完整会话存档 JSON\texportSessionArchiveAndShare()\tExport & share the full-session archive via the system share sheet / 导出并分享完整会话存档\tclearAll()\tClear persisted data on disk / 清空磁盘上的持久化数据\tdispose()\tFlush then close / 先刷盘再关闭","persisted-data-manager--持久化数据管理#Persisted Data Manager / 持久化数据管理":"Tap the storage icon in the panel header to open the Persisted data sheet: it shows the current row counts per category (logs / network / errors), the per-table cap, and whether the data will be replayed on the next launch. Actions:点击面板头部的存储图标打开 Persisted data 管理弹层:展示各类别当前行数(logs / network / errors)、每表上限,以及下次启动是否会回放。支持的操作:\nExport & share session archive — share a JSON snapshot of the whole session / 导出并分享会话存档——分享本次会话完整 JSON 快照\nClear disk — wipe persisted rows so the next launch replays nothing / 清空磁盘——清空持久化数据,下次启动干净\nClear disk & lists — wipe disk and the in-memory lists together / 同时清空磁盘与列表——连同内存列表一并清空","fpsservice--fps-监控服务#FpsService / FPS 监控服务":"Available since v1.2.0 / v1.2.0 起可用\nSingleton service for FPS monitoring, extends ChangeNotifier.FPS 监控单例服务,继承 ChangeNotifier。\nFpsService.instance.start();\nFpsService.instance.stop();\nFpsService.instance.clear();\nfinal fps = FpsService.instance.currentFps;\nfinal jankRate = FpsService.instance.jankRate;\nMethod\tDescription\tstart()\tStart FPS monitoring / 开始 FPS 监控\tstop()\tStop FPS monitoring / 停止 FPS 监控\tclear()\tClear all historical data and counters / 清空所有历史数据和计数器\t\nProperty\tType\tDescription\tisRunning\tbool\tWhether monitoring is currently active / 是否正在监控\tcurrentFps\tdouble\tCurrent FPS (updated every 500ms) / 当前 FPS(每 500ms 更新)\tjankRate\tdouble\tJank rate as percentage / 卡顿率(百分比)\ttotalFrameCount\tint\tTotal frames captured / 总帧数\ttotalJankyCount\tint\tTotal janky frames (>16ms) / 总卡顿帧数(>16ms)\tlastFrameJanky\tbool\tWhether the most recent frame was janky / 最近一帧是否卡顿\tfpsHistory\tList\tRecent 60 FPS values (unmodifiable) / 最近 60 个 FPS 值(不可变)\tframeRecords\tList\tRecent frame records (unmodifiable, up to 3600) / 最近帧记录(不可变,最多 3600 条)\t\nSee FPS Viewer for full feature details.完整功能详情见 FPS Viewer。"}},"/Custom-Database-Provider":{"title":"Custom Database Provider / 自定义数据库提供者","data":{"overview--概述#Overview / 概述":"Zero Inspector Kit supports extending database inspection beyond SQLite through the DatabaseProvider interface.Zero Inspector Kit 通过 DatabaseProvider 接口支持扩展数据库检查功能到 SQLite 以外的数据库。","databaseprovider-interface--接口定义#DatabaseProvider Interface / 接口定义":"abstract class DatabaseProvider {\n /// Provider name / 提供者名称\n String get name;\n /// Get list of databases / 获取数据库列表\n Future> getDatabases();\n /// Query table data / 查询表数据\n Future queryTable(String dbPath, String tableName, {int limit = 50});\n}","data-models--数据模型#Data Models / 数据模型":"","databaseinfo#DatabaseInfo":"Field\tType\tDescription\tname\tString\tDatabase name / 数据库名称\tpath\tString\tDatabase file path / 数据库文件路径\ttables\tList\tList of tables / 表列表","tableinfo#TableInfo":"Field\tType\tDescription\tname\tString\tTable name / 表名\trowCount\tint\tRow count / 行数","queryresult#QueryResult":"Field\tType\tDescription\tcolumns\tList\tColumn names / 列名\trows\tList>\tRow data / 行数据","example-custom-provider--示例自定义提供者#Example: Custom Provider / 示例:自定义提供者":"class MyCustomDatabaseProvider implements DatabaseProvider {\n @override\n String get name => 'CustomDB';\n @override\n Future> getDatabases() async {\n // Return your custom databases / 返回你的自定义数据库列表\n return [\n DatabaseInfo(\n name: 'my_database',\n path: '/path/to/my_database',\n tables: [\n TableInfo(name: 'users', rowCount: 100),\n TableInfo(name: 'orders', rowCount: 500),\n ],\n ),\n ];\n }\n @override\n Future queryTable(\n String dbPath,\n String tableName, {\n int limit = 50,\n }) async {\n // Execute query and return results / 执行查询并返回结果\n return QueryResult(\n columns: ['id', 'name', 'value'],\n rows: [\n {'id': 1, 'name': 'item1', 'value': '100'},\n {'id': 2, 'name': 'item2', 'value': '200'},\n ],\n );\n }\n}","register-provider--注册提供者#Register Provider / 注册提供者":"// Register your custom provider / 注册自定义提供者\nDatabaseRegistry.instance.registerProvider(MyCustomDatabaseProvider());","built-in-provider--内置提供者#Built-in Provider / 内置提供者":"The plugin includes SqliteDatabaseProvider which is auto-registered when enableDatabaseScan is true (default).插件内置 SqliteDatabaseProvider,当 enableDatabaseScan 为 true(默认)时自动注册。You can also register it manually:也可以手动注册:\nDatabaseRegistry.instance.registerProvider(SqliteDatabaseProvider());"}},"/Database-Viewer":{"title":"Database Viewer / 数据库查看器","data":{"overview--概述#Overview / 概述":"The Database Viewer inspects SQLite databases in your app with a two-level navigation system.数据库查看器通过双层导航系统检查应用中的 SQLite 数据库。","auto-scan--自动扫描#Auto-Scan / 自动扫描":"The inspector automatically scans the following directories for .db and .sqlite files:检查器自动扫描以下目录中的 .db 和 .sqlite 文件:\ngetApplicationDocumentsDirectory() / 应用文档目录\ngetDatabasesPath() / 数据库目录","two-level-navigation--双层导航#Two-Level Navigation / 双层导航":"","level-1-database-list-global--第一层数据库列表全局#Level 1: Database List (Global) / 第一层:数据库列表(全局)":"Shows all discovered databases / 显示所有发现的数据库\nEach database shows name and table count / 每个数据库显示名称和表数量\nGlobal search: Search database names and table names / 全局搜索:搜索数据库名和表名","level-2-database-detail--第二层数据库详情#Level 2: Database Detail / 第二层:数据库详情":"Click a database to enter its detail view / 点击数据库进入详情视图\nLeft panel: table list with row counts / 左侧面板:表列表(含行数)\nRight panel: table data in DataTable format / 右侧面板:DataTable 格式的表数据\nBack button to return to database list / 返回按钮返回数据库列表\nIn-database search: Search table names AND all column data / 数据库内搜索:搜索表名和所有列数据","search--搜索#Search / 搜索":"Level\tSearch Scope\tGlobal (database list)\tDatabase names, table names / 数据库名、表名\tIn-database\tTable names, all column values in all tables / 表名、所有表的所有列值","search-highlights--搜索高亮#Search Highlights / 搜索高亮":"When searching within a database, matching cell values are highlighted in accent color.在数据库内搜索时,匹配的单元格值以强调色高亮显示。","ui-features--ui-功能#UI Features / UI 功能":"Color-coded table icons / 带颜色的表图标\nRow count badges for each table / 每个表的行数徽章\nSelected table highlighted / 选中表高亮\nHorizontal and vertical scrollable data table / 水平和垂直可滚动的数据表\nRow count display (filtered / total) when searching / 搜索时显示行数(过滤/总数)","custom-database-provider--自定义数据库提供者#Custom Database Provider / 自定义数据库提供者":"For non-SQLite databases, see Custom Database Provider.对于非 SQLite 数据库,请参阅 自定义数据库提供者。"}},"/Errors":{"title":"Errors / 异常聚合查看器","data":{"overview--概述#Overview / 概述":"Available since v1.9.0v1.9.0 起可用\nThe Errors tab surfaces \"the same crash happening repeatedly\". When the inspector is running, ErrorService hooks FlutterError.onError (keeping the default red-screen / console behavior) and aggregates every exception by type + stack signature. Repeated instances of the same crash merge into one record that shows how many times it occurred and when it was first/last seen — instead of flooding the log with hundreds of identical stack traces.Errors 标签页用来快速发现\"同一处崩溃反复出现\"的问题。检查器运行时,ErrorService 会接管 FlutterError.onError(保留默认的红色报错与控制台行为),把每次异常按类型 + 堆栈签名去重聚合:同一处崩溃的多次发生会合并为一条记录,展示累计次数与首末次时间——而不是用成百上千条相同的堆栈刷屏日志。","what-gets-captured--捕获来源#What Gets Captured / 捕获来源":"Source / 来源\tHow / 方式\tFlutter framework errors / Flutter 框架异常\tHooks FlutterError.onError (default handler kept) / 接管 FlutterError.onError(保留默认处理)\tUncaught async errors / 未捕获异步异常\trunZonedGuarded inside runAppWithInspector() / runAppWithInspector() 内部的 runZonedGuarded\tManual reports / 手动上报\tErrorService.instance.report(exception, stackTrace) — for gRPC / custom protocols / your own error paths / 用于 gRPC / 自定义协议或你自己的错误通道\t\nCaptured records are also persisted to disk (see Session Persistence below), so aggregated errors from previous sessions are replayed on the next launch.捕获到的记录也会落盘持久化(见下文会话持久化),下次启动时会回放上次会话的聚合异常。","deduplication--去重规则#Deduplication / 去重规则":"Records are keyed by exception type plus a stack signature (first frames with line/address noise stripped) / 按异常类型 + 堆栈签名(取前若干帧并去掉行号/地址噪声)去重\nA new occurrence of an existing signature bumps its count and updates lastSeen instead of adding a new row / 同签名的再次发生只累加 count 并更新 lastSeen,不新增行\nRing buffer capped at 200 aggregated records (oldest dropped) / 环形缓冲上限 200 条聚合记录(超出丢弃最旧)","ui-features--ui-功能#UI Features / UI 功能":"","errors-tab--errors-标签页#Errors Tab / Errors 标签页":"Lists aggregated errors newest-first, showing the exception type, message, first seen / last seen time, and a ×N badge when the same crash recurred / 按最新在前列出聚合异常,展示异常类型、消息、首次/末次出现时间,同崩溃复发时显示 ×N 徽章\nTap a row to expand the full stack sample (truncated at 8000 chars); tap again to collapse / 点击行展开完整堆栈样本(8000 字符截断);再点收起\nCopy stack per row / 行内复制堆栈\nSearch filters by exception type or message / 搜索按异常类型或消息过滤\nClear empties the aggregated list / 清除清空聚合列表","tab-badge--标签页红点#Tab Badge / 标签页红点":"The Errors tab icon shows a red count badge while there are aggregated errors (capped at 99+), so recurring crashes are visible at a glance / Errors 标签页图标在有聚合异常时显示红色计数(99+ 封顶),一眼可见反复崩溃\nOpening the Errors tab is not required to see the badge — it reflects ErrorService.instance.errorCount whenever the panel is open / 只要面板打开,标签红点即反映 ErrorService.instance.errorCount,无需先进入 Errors 页\nNote: the floating ball itself stays clean — its red count (if any) is the Alerts unread badge (AlertService), not error aggregation.注意:悬浮球本身保持纯粹——球上的红色数字(如有)来自告警未读数(AlertService),与异常聚合无关。","api--接口#API / 接口":"The full service is re-exported from the package root — no need to import lib/src/.完整服务已从包根导出,无需 import lib/src/。\nimport 'package:zero_inspector_kit/zero_inspector_kit.dart';\n// Report an exception manually (gRPC/custom protocol/your own error paths) / 手动上报异常\nErrorService.instance.report(error, stackTrace, 'myModule');\n// Read the aggregated view (newest first) / 读取聚合视图(最新在前)\nfinal ErrorRecord latest = ErrorService.instance.errors.first;\nprint('${latest.type} x${latest.count} — first ${latest.firstSeen} / last ${latest.lastSeen}');\n// Clear all records / 清空所有记录\nErrorService.instance.clear();\nMember\tDescription\terrors\tList — aggregated records, newest first / 聚合记录,最新在前\terrorCount\tint — number of aggregated records / 聚合记录条数\tisEnabled\tbool — capture toggle (programmatic) / 抓取开关(代码控制)\treport(exception, stack, [context])\tManually report an exception / 手动上报异常\trestore(records)\tRestore persisted records (replay on launch; existing dedup ids are skipped) / 恢复持久化记录(启动回放;已存在的去重 id 跳过)\tclear()\tClear all aggregated records / 清空全部记录\tinstall() / uninstall()\tHook / restore FlutterError.onError / 接管 / 还原 FlutterError.onError","errorrecord--异常记录#ErrorRecord / 异常记录":"Field\tDescription\ttype\tException type name (e.g. _TypeError) / 异常类型名\tmessage\tException message / 异常消息\tcount\tTotal occurrences / 累计出现次数\tfirstSeen / lastSeen\tFirst / last occurrence time / 首次 / 末次出现时间\tsampleStack\tOne full stack sample (may be truncated) / 一条完整堆栈样本(可能截断)","session-persistence--会话持久化#Session Persistence / 会话持久化":"Errors — together with logs and network requests — are asynchronously flushed to a local SQLite ring buffer (zero_inspector_kit.db). On the next launch, logs and aggregated errors replay into their tabs, so a crash you saw yesterday is still inspectable today even though the panel was never opened; network requests stay archived on disk for later export. Use the storage icon in the panel header to open the Persisted data manager: see the current row counts, export the full session archive as JSON, or clear the disk. See Configuration (PersistenceService section) for details and the tuning parameters.异常与日志、网络请求一起被异步写入本地 SQLite 环形缓冲(zero_inspector_kit.db)。下次启动时,日志与聚合异常会回放入各自标签页——即使昨天从没打开过面板,今天依然能复盘当时的崩溃现场;网络请求保留在磁盘存档,供之后导出。点击面板头部的存储图标可打开 Persisted data 管理弹层:查看当前行数、导出完整会话存档 JSON,或清空磁盘。详见 Configuration(PersistenceService 一节)的参数说明。","enable--disable--开关#Enable / Disable / 开关":"enableErrorCapture (default true) in ZeroInspectorKit.init() controls error aggregation / init() 的 enableErrorCapture(默认 true)控制异常聚合\nenablePersistence (default true) controls the disk ring buffer / enablePersistence(默认 true)控制磁盘环形缓冲\nSet both to false to keep everything in memory only / 两者都设为 false 时数据仅保留在内存\nZeroInspectorKit.init(\n enableErrorCapture: true,\n enablePersistence: true, // false → memory-only / 关闭后仅内存\n);","related--相关#Related / 相关":"Log Viewer — raw log stream including error lines / 原始日志流(含错误行)\nConfiguration — init parameters and full service APIs / 初始化参数与完整服务接口\nUsage — general usage guide / 使用指南"}},"/FAQ":{"title":"FAQ / 常见问题","data":{"general--通用#General / 通用":"","q-does-the-inspector-affect-production-builds--检查器会影响生产构建吗#Q: Does the inspector affect production builds? / 检查器会影响生产构建吗?":"A: No. The inspector is automatically disabled in release mode via kReleaseMode. Flutter's tree-shaking removes all inspector-related code from production builds. You don't need to remove any code.不会。 检查器在 release 模式下通过 kReleaseMode 自动禁用。Flutter 的 tree-shaking 会移除所有检查器相关代码,无需手动移除。","q-what-platforms-are-supported--支持哪些平台#Q: What platforms are supported? / 支持哪些平台?":"A: Android and iOS.支持 Android 和 iOS。","q-what-flutterdart-versions-are-required--需要什么-flutterdart-版本#Q: What Flutter/Dart versions are required? / 需要什么 Flutter/Dart 版本?":"A: Flutter >= 3.3.0, Dart SDK >= 3.11.0 < 4.0.0.Flutter >= 3.3.0,Dart SDK >= 3.11.0 < 4.0.0。","network--网络#Network / 网络":"","q-do-i-need-to-manually-add-interceptors-for-dio--需要为-dio-手动添加拦截器吗#Q: Do I need to manually add interceptors for Dio? / 需要为 Dio 手动添加拦截器吗?":"A: No. Dio uses IOHttpClientAdapter internally, which uses dart:io's HttpClient. The inspector captures all requests via HttpOverrides automatically, making it truly zero-invasion for both http package and Dio.不需要。 Dio 内部使用 IOHttpClientAdapter,底层使用 dart:io 的 HttpClient。检查器通过 HttpOverrides 自动捕获所有请求,对 http 包和 Dio 都是真正的零侵入。","q-why-do-i-see-duplicate-dio-requests--为什么看到重复的-dio-请求#Q: Why do I see duplicate Dio requests? / 为什么看到重复的 Dio 请求?":"A: If you use both InspectorDioInterceptor and the auto-capture (HttpOverrides), Dio requests will be recorded twice. Simply remove the manual InspectorDioInterceptor — auto-capture handles everything.如果同时使用了 InspectorDioInterceptor 和自动捕获(HttpOverrides),Dio 请求会被记录两次。移除手动 InspectorDioInterceptor 即可,自动捕获会处理一切。","q-can-i-modify-requests-during-testing--测试时可以修改请求吗#Q: Can I modify requests during testing? / 测试时可以修改请求吗?":"A: Yes (since v1.0.7). The inspector supports intercepting and modifying requests via rules. Open a request detail and tap the Interceptor icon to configure a rule. You can modify the request body and request headers only — response fields (status code, response body) are read-only (since v1.0.8). GET requests cannot be modified (no request body). The master toggle is on the Network list page; rules only apply when modification mode is enabled.可以(v1.0.7 起)。检查器支持通过规则拦截并修改请求。打开请求详情,点击拦截器图标配置规则。仅可修改请求体和请求头——响应字段(状态码、响应体)只读(v1.0.8 起)。GET 请求不可修改(无请求体)。总开关在 Network 列表页,规则仅在启用修改模式时生效。See Network Inspector > Request Interceptor for details.详见 Network Inspector > 请求拦截修改。","logging--日志#Logging / 日志":"","q-can-i-use-my-existing-logging-library--可以使用现有的日志库吗#Q: Can I use my existing logging library? / 可以使用现有的日志库吗?":"A: Yes! The inspector automatically captures logs from any library that uses print() or debugPrint(). No configuration needed. Third-party logs are categorized as Info level.可以! 检查器会自动捕获任何使用 print() 或 debugPrint() 的日志库的日志,无需配置。第三方日志统一归类为 Info 级别。","q-how-to-sync-inspector-logs-to-my-logger--如何将检查器日志同步到我的日志库#Q: How to sync inspector logs to my logger? / 如何将检查器日志同步到我的日志库?":"A: Use the onLogCaptured callback:使用 onLogCaptured 回调:\nInspectorLogInterceptor.instance.onLogCaptured = (entry) {\n yourLogger.log(entry.message);\n};\nWarning: Do NOT call print() or logging methods inside this callback, as it will cause infinite recursion.\n警告:不要在此回调中调用 print() 或日志方法,否则会导致无限递归。","database--数据库#Database / 数据库":"","q-why-dont-i-see-any-databases--为什么看不到数据库#Q: Why don't I see any databases? / 为什么看不到数据库?":"A: The inspector scans getApplicationDocumentsDirectory() and getDatabasesPath() for .db and .sqlite files. If your database is stored elsewhere, you can implement a custom DatabaseProvider.检查器扫描 getApplicationDocumentsDirectory() 和 getDatabasesPath() 目录中的 .db 和 .sqlite 文件。如果你的数据库存储在其他位置,可以实现自定义 DatabaseProvider。","memory--内存#Memory / 内存":"","q-why-does-dart-heap-show-na-when-debugging-via-pc--通过-pc-调试时为什么-dart-heap-显示-na#Q: Why does Dart Heap show \"N/A\" when debugging via PC? / 通过 PC 调试时为什么 Dart Heap 显示 \"N/A\"?":"A: This is an expected behavior. When using flutter run to debug via PC, the flutter tool sets up port forwarding between PC and device via adb reverse, allowing PC-side DevTools to access the device's VM Service. However, Service.getInfo() returns a serverUri from the PC's perspective; when the app process internally accesses 127.0.0.1:PC_port, the device doesn't have that port listening locally, resulting in Connection refused and VM Service showing OFF.这是预期行为。 使用 flutter run 连接 PC 调试时,flutter tool 会通过 adb reverse 在 PC 和设备之间做端口转发,让 PC 上的 DevTools 能访问设备的 VM Service。但应用进程内部 Service.getInfo() 返回的 serverUri 是 PC 视角的端口,应用进程访问 127.0.0.1:PC端口 时设备本地并没有监听该端口,导致 Connection refused,VM Service 显示 OFF。Workarounds / 解决方案:\nOpen the debug app directly without PC connection — VM Service works normally / 直接打开 debug 应用(不连 PC),VM Service 正常工作\nUse Native memory data (Android PSS / iOS physicalFootprint) as fallback — always available / 使用 Native 内存数据(Android PSS / iOS physicalFootprint)作为降级,始终可用\nProcess RSS is always available regardless of VM Service / 进程 RSS 无论 VM Service 状态都可用\nSee Memory Viewer > VM Service Availability for details.详见 Memory Viewer > VM Service 可用性。","q-does-memory-monitoring-affect-performance--内存监控会影响性能吗#Q: Does memory monitoring affect performance? / 内存监控会影响性能吗?":"A: Memory monitoring is off by default (since v1.1.0). When disabled, all timers are stopped and VM Service connection is cleared, leaving zero overhead. When enabled, refresh intervals are optimized:内存监控默认关闭(v1.1.0 起)。关闭时所有定时器停止、VM Service 连接清空,零开销。开启时刷新间隔已优化:\nProcess RSS / Dart Heap: 500ms\nNative Memory: 3000ms\nStorage Stats: 3000ms\nLeak Detection: 2000ms\nYou can toggle the switch at the top of the Memory panel anytime.可随时在 Memory 面板顶部切换开关。","q-does-leak-detection-require-code-modification--泄漏检测需要侵入代码吗#Q: Does leak detection require code modification? / 泄漏检测需要侵入代码吗?":"A: The current implementation uses WeakReference + Finalizer, which requires calling trackObject() to register objects for tracking. This is a mild invasion (one line of code per tracked object).当前实现使用 WeakReference + Finalizer,需要调用 trackObject() 注册要追踪的对象。这是轻度侵入(每个追踪对象一行代码)。Trade-offs / 取舍:\nPros: 100% reliable, doesn't depend on VM Service, works in release mode / 100% 可靠,不依赖 VM Service,release 模式也可用\nCons: Requires user to know which objects to track / 需要用户知道要追踪哪些对象\nA zero-invasion Heap Snapshot comparison feature (based on VM Service) is technically possible but would strongly depend on VM Service availability (unavailable when debugging via PC), with significant performance overhead. Not currently implemented.零侵入的 Heap Snapshot 对比功能(基于 VM Service)技术上可行,但会强依赖 VM Service 可用性(PC 调试时不可用),且有显著性能开销。目前未实现。See Memory Viewer > Memory Leak Detection for API details.详见 Memory Viewer > 内存泄漏检测 了解 API 详情。","fps--帧率#FPS / 帧率":"","q-why-does-fps-show-a-very-low-value-eg-9-10-fps--为什么-fps-显示很低如-9-10#Q: Why does FPS show a very low value (e.g. 9-10 FPS)? / 为什么 FPS 显示很低(如 9-10)?":"A: This was a bug fixed in v1.2.0. The root cause was that _recentFrameTimestamps.add(now) was placed outside the for-loop in _onFrameTimings; since Flutter engine's addTimingsCallback is batched (may return multiple frames per call), only one timestamp was recorded per batch, undercounting FPS by 6-10x. Upgrade to ^1.2.0 to fix this.这是 v1.2.0 已修复的 bug。根因是 _onFrameTimings 中 _recentFrameTimestamps.add(now) 在 for 循环外;Flutter 引擎的 addTimingsCallback 是批量回调(一次可能返回多帧),但每批只记录 1 个时间戳,导致 FPS 计算偏低 6-10 倍。升级到 ^1.2.0 即可修复。See FPS Viewer for details.详见 FPS Viewer。","q-does-fps-monitoring-affect-performance--fps-监控会影响性能吗#Q: Does FPS monitoring affect performance? / FPS 监控会影响性能吗?":"A: FPS monitoring is off by default (since v1.2.0). When disabled, no frame timings callbacks and no timers — zero overhead. When enabled, it only processes lightweight frame timing data with bounded history (60 trend points, up to 3600 frame records). You can toggle the switch at the top of the FPS panel anytime.FPS 监控默认关闭(v1.2.0 起)。关闭时无帧回调、无定时器——零开销。开启时仅处理轻量帧时序数据,历史有界(趋势 60 个点,帧记录最多 3600 条)。可随时在 FPS 面板顶部切换开关。","ui--界面#UI / 界面":"","q-the-inspector-panel-gets-pushed-up-when-keyboard-appears--键盘弹出时检查器面板被顶起来了#Q: The inspector panel gets pushed up when keyboard appears. / 键盘弹出时检查器面板被顶起来了。":"A: This was fixed in v1.0.6. The floating button and panel are rendered via Overlay, which is independent of the page layout and not affected by keyboard.此问题已在 v1.0.6 修复。悬浮按钮和面板通过 Overlay 渲染,独立于页面布局,不受键盘影响。","q-how-to-use-search--如何使用搜索#Q: How to use search? / 如何使用搜索?":"A: Each viewer has its own search bar at the top. Database viewer has two-level search: global search (database list) and in-database search (table names + all column data).每个查看器顶部都有搜索栏。数据库查看器有双层搜索:全局搜索(数据库列表)和数据库内搜索(表名 + 所有列数据)。","q-the-floating-button-disappeared--cant-be-opened-after-enabling-fps--开启-fps-后悬浮按钮消失无法打开#Q: The floating button disappeared / can't be opened after enabling FPS. / 开启 FPS 后悬浮按钮消失/无法打开。":"A: This was a bug fixed in v1.2.0. The root cause was that FpsService.notifyListeners() triggered Overlay rebuild; combined with the original Overlay lookup failure (using Overlay.of(context, rootOverlay: true) which returned null), the button State was destroyed and could not recover. Upgrade to ^1.2.0 which uses navigatorState.overlay instead.这是 v1.2.0 已修复的 bug。根因是 FpsService.notifyListeners() 触发 Overlay 重建,叠加原 Overlay 查找失败(使用 Overlay.of(context, rootOverlay: true) 返回 null),导致按钮 State 被销毁且无法恢复。升级到 ^1.2.0,改用 navigatorState.overlay 即可。","q-how-does-the-floating-button-edge-docking-work--悬浮按钮的边缘吸附怎么用#Q: How does the floating button edge docking work? / 悬浮按钮的边缘吸附怎么用?":"A: Since v1.2.0, when you drag the button near a screen edge and release, it auto-docks and tucks into the edge, leaving only a 24px peek visible. The icon becomes a directional chevron hinting you can tap to pull it out:\nTap the peek → smoothly pulls out to fully visible (panel NOT opened, avoids accidental open) / 平滑拉出到完全可见(不打开面板,避免误触)\nTap when fully visible → opens the inspector panel / 打开检查器面板\nThis design avoids conflicts with system back gestures (Android/iOS edge swipe to go back) when pulling out from the docked state.v1.2.0 起,拖动按钮靠近屏幕边缘松手即自动吸附并\"收入\"边缘,仅露 24px。图标变为方向箭头,提示可点击拉出:\n点击露出部分 → 平滑拉出到完全可见(不打开面板,避免误触)\n完全可见时点击 → 打开检查器面板\n此设计避免了从吸附态拖出时与系统返回手势(Android/iOS 边缘右滑退出)的冲突。See Usage > Edge Docking for details.详见 Usage > 边缘吸附。","license--许可证#License / 许可证":"","q-can-i-use-this-in-a-commercial-project--可以在商业项目中使用吗#Q: Can I use this in a commercial project? / 可以在商业项目中使用吗?":"A: Yes. This project is licensed under MPL-2.0. You can use it in closed-source commercial apps — if you use it unmodified, no source disclosure is required. If you modify the plugin's source files, those modified files must be published in source form under MPL-2.0 (your own app still does not need to be open-sourced).可以。本项目采用 MPL-2.0 许可证,可用于闭源商业 App——未修改直接使用时无需公开任何源码;若修改了插件源文件,被修改的文件必须以 MPL-2.0 公开源码(你自己的 App 仍无需开源)。","q-are-you-liable-for-issues-in-modified-versions--修改版出问题你们负责吗#Q: Are you liable for issues in modified versions? / 修改版出问题你们负责吗?":"A: This plugin is provided \"as is\", without warranty of any kind. The author assumes no responsibility or liability for the functionality, security, or any consequences arising from the use of modified versions or derivative projects.本插件按\"原样\"提供,不提供任何担保。作者不对修改版或衍生项目的功能、安全性及任何使用后果承担责任。"}},"/FPS-Viewer":{"title":"FPS Viewer / FPS 监控面板","data":{"":"The FPS Viewer provides real-time frame performance analysis, including current FPS, jank rate, frame duration stats, and an FPS trend chart.FPS 监控面板提供实时帧性能分析,包括当前 FPS、卡顿率、帧耗时统计和 FPS 趋势图。\nAvailable since v1.2.0v1.2.0 起可用","overview--概览#Overview / 概览":"The FPS Viewer is integrated into the inspector panel. Tap the floating inspector button → \"FPS\" tab to access.FPS 监控面板集成在检查器面板中。点击悬浮检查器按钮 → \"FPS\" 标签即可访问。⚠️ Important: FPS monitoring is off by default. You must toggle on the switch at the top of the panel to start collecting data.⚠️ 重要:FPS 监控默认关闭。必须在面板顶部打开开关才会开始采集数据。","master-switch--总开关#Master Switch / 总开关":"A switch at the top of the FPS panel controls whether monitoring is enabled.FPS 面板顶部有一个开关,控制是否启用监控。\nState\tBehavior\tOFF (default)\tNo frame timings callbacks, no timer, zero overhead / 无帧回调、无定时器、零开销\tON\tStarts collecting frame data via WidgetsBinding.instance.addTimingsCallback / 通过 addTimingsCallback 开始采集帧数据\t\nWhen turned off, all callbacks and timers are cancelled, leaving no residual overhead.关闭时所有回调和定时器会被取消,不会残留开销。","features--功能#Features / 功能":"","1-current-stats--当前统计#1. Current Stats / 当前统计":"Current FPS — Updated every 500ms / 每 500ms 更新\nJank Rate — Percentage of janky frames (>16ms) / 卡顿帧占比(>16ms 视为卡顿)\nTotal Frame Count — All frames captured since start / 自启动以来的总帧数\nTotal Janky Count — All janky frames captured / 自启动以来的总卡顿帧数\nLast Frame Janky — Whether the most recent frame was janky / 最近一帧是否卡顿\n显示当前 FPS、卡顿率、总帧数、总卡顿帧数、最近一帧是否卡顿。","2-fps-trend-chart--fps-趋势图#2. FPS Trend Chart / FPS 趋势图":"Real-time line chart with 30-second history window (60 data points × 500ms)\nY-axis dynamically scales to max(60, maxFps) to avoid overflow when FPS spikes\nJanky frame region marked in red\nTime axis labels: -30s / -15s / Now\n实时折线图,30 秒历史窗口(60 个数据点 × 500ms)。Y 轴动态缩放为 max(60, maxFps) 避免 FPS 飙升时溢出。卡顿区域以红色标记。","3-janky-frame-list--卡顿帧列表#3. Janky Frame List / 卡顿帧列表":"Lists frames exceeding 16ms duration / 列出耗时超过 16ms 的帧\nEach item shows frame duration and timestamp / 每项显示帧耗时和时间戳\nHelps identify specific jank spikes / 帮助定位具体卡顿点\n列出耗时超过 16ms 的帧,每项显示帧耗时和时间戳,帮助定位具体卡顿点。","4-reset--重置#4. Reset / 重置":"\"Reset\" button clears all statistics and historical data / \"Reset\" 按钮清空所有统计和历史数据\nUseful for measuring a specific interaction scenario / 适合测量特定交互场景\n\"Reset\" 按钮清空所有统计和历史数据,适合测量特定交互场景。","how-it-works--工作原理#How It Works / 工作原理":"FPS monitoring uses Flutter's WidgetsBinding.instance.addTimingsCallback to receive frame timing information from the engine. The callback is batched — it may return multiple FrameTiming objects per call, so each frame is recorded individually inside the loop to ensure accurate FPS calculation.FPS 监控使用 Flutter 的 WidgetsBinding.instance.addTimingsCallback 接收引擎的帧时序信息。该回调是批量的——每次调用可能返回多个 FrameTiming 对象,因此在循环内部为每帧单独记录时间戳,确保 FPS 计算准确。Jank threshold / 卡顿阈值: A frame is considered janky if its duration exceeds 16ms (the 60 FPS budget of ~16.67ms per frame).卡顿阈值:帧耗时超过 16ms(60 FPS 每帧预算约 16.67ms)即视为卡顿。","programmatic-control-optional--编程式控制可选#Programmatic Control (Optional) / 编程式控制(可选)":"If you need to start/stop monitoring from code (e.g., for automated testing), use FpsService:如需从代码控制监控(如自动化测试),使用 FpsService:\n// Start / Stop FPS monitoring / 开始 / 停止 FPS 监控\nFpsService.instance.start();\nFpsService.instance.stop();\n// Read current stats / 读取当前统计\nfinal fps = FpsService.instance.currentFps;\nfinal jankRate = FpsService.instance.jankRate;\nfinal totalFrames = FpsService.instance.totalFrameCount;\nfinal jankyFrames = FpsService.instance.totalJankyCount;\n// Clear historical data / 清空历史数据\nFpsService.instance.clear();\n// Listen to updates / 监听更新\nFpsService.instance.addListener(() {\n // Update your own UI / 更新你自己的 UI\n});\n// Historical data access / 历史数据访问\nfinal history = FpsService.instance.fpsHistory; // List, 60 entries / 60 条\nfinal records = FpsService.instance.frameRecords; // List, unmodifiable / 不可变,最多 3600 条","fpsservice-api--fpsservice-接口#FpsService API / FpsService 接口":"Singleton service extending ChangeNotifier.继承 ChangeNotifier 的单例服务。\nMethod\tDescription\tstart()\tStart FPS monitoring / 开始 FPS 监控\tstop()\tStop FPS monitoring / 停止 FPS 监控\tclear()\tClear all historical data and counters / 清空所有历史数据和计数器\t\nProperty\tType\tDescription\tisRunning\tbool\tWhether monitoring is currently active / 是否正在监控\tcurrentFps\tdouble\tCurrent FPS (updated every 500ms) / 当前 FPS(每 500ms 更新)\tjankRate\tdouble\tJank rate as percentage / 卡顿率(百分比)\ttotalFrameCount\tint\tTotal frames captured / 总帧数\ttotalJankyCount\tint\tTotal janky frames captured (>16ms) / 总卡顿帧数(>16ms)\tlastFrameJanky\tbool\tWhether the most recent frame was janky / 最近一帧是否卡顿\tfpsHistory\tList\tRecent 60 FPS values (unmodifiable) / 最近 60 个 FPS 值(不可变)\tframeRecords\tList\tRecent frame records (unmodifiable, up to 3600) / 最近帧记录(不可变,最多 3600 条)","performance-considerations--性能说明#Performance Considerations / 性能说明":"Off by default / 默认关闭: Zero overhead when disabled / 关闭时零开销\nLightweight callbacks / 轻量回调: Only processes frame timing data, no heavy computation / 仅处理帧时序数据,无重计算\nBounded history / 有界历史: Trend chart keeps only 60 points, frame records capped at 3600 / 趋势图仅保留 60 个点,帧记录上限 3600 条\nSafe with other features / 与其他功能兼容: Can run alongside Memory Viewer monitoring / 可与 Memory Viewer 监控同时运行","platform-support--平台支持#Platform Support / 平台支持":"Feature\tAndroid\tiOS\tFPS Monitoring\t✅\t✅\tJank Detection\t✅\t✅\tTrend Chart\t✅\t✅\t\nFPS monitoring uses Flutter engine APIs and works on Android and iOS (the two platforms this plugin targets).FPS 监控使用 Flutter 引擎 API,在本插件支持的两个平台 Android 与 iOS 上均可用。","demo--演示#Demo / 演示":"The Example App includes an FPS demo module with three scenarios:Example App 包含 FPS 演示模块,提供三种场景:\nDemo\tDescription\tTrigger Jank\tBlocks the main thread for 100-500ms to simulate jank / 阻塞主线程 100-500ms 模拟卡顿\tHeavy Animations\t80 simultaneously rotating+scaling widgets to intentionally trigger jank / 80 个同时旋转+缩放的 widget 故意触发卡顿\tSmooth Animation\tSingle lightweight compound animation, demonstrates stable 60 FPS / 单个轻量复合动画,演示稳定 60 FPS","related--相关#Related / 相关":"Usage — General usage guide / 通用使用指南\nFAQ — Common questions / 常见问题\nConfiguration — Configuration options / 配置选项"}},"/Getting-Started":{"title":"Getting Started / 快速开始","data":{"quick-start--快速开始#Quick Start / 快速开始":"Integrate with just 1 line of code:仅需 1 行代码 即可完成集成:\nimport 'package:flutter/material.dart';\nimport 'package:zero_inspector_kit/zero_inspector_kit.dart';\nvoid main() {\n // Single line: Initialize inspector, capture print() via Zone, and display floating button\n // 一行代码:初始化检查器、通过 Zone 捕获 print()、自动显示悬浮按钮\n ZeroInspectorKit.runAppWithInspector(const MyApp());\n}\nclass MyApp extends StatelessWidget {\n const MyApp({super.key});\n @override\n Widget build(BuildContext context) {\n return MaterialApp(\n home: Scaffold(\n appBar: AppBar(title: const Text('App')),\n body: const Center(child: Text('Hello World')),\n ),\n );\n }\n}","what-happens-automatically--自动完成的工作#What Happens Automatically / 自动完成的工作":"After integration, the inspector automatically does the following without modifying any other project code:集成后,检查器会自动完成以下工作,无需修改项目其他代码:\nFeature\tDescription\t✅ Log Capture\tAuto-capture all print(), debugPrint() via Zone / 通过 Zone 自动捕获所有日志\t✅ Network Interception\tAuto-intercept all http and Dio requests via HttpOverrides / 自动拦截所有网络请求\t✅ Error Capture\tAggregate Flutter framework errors & unhandled exceptions, deduped by type + stack (Errors tab) / 聚合 Flutter 框架异常与未捕获异常,按类型+堆栈去重\t✅ Session Persistence\tFlush logs/network/errors to a disk ring buffer; logs & errors replay on next launch / 日志/网络/异常落盘环形缓冲,启动时回放日志与异常\t✅ Database Scan\tAuto-scan and register SQLite databases / 自动扫描注册数据库\t✅ Floating Button\tAuto-displayed via Overlay, not affected by keyboard / 通过 Overlay 自动显示\t✅ Route Tracking\tAuto-inject InspectorRouteObserver into MaterialApp / 自动注入路由观察者\t\nNote / 说明: The Memory and FPS panels are available as tabs but are off by default to avoid performance overhead. Toggle the switch at the top of each panel to start collecting data. See Memory Viewer and FPS Viewer for details.Memory 和 FPS 面板作为标签页可用,但默认关闭以避免性能开销。在各自面板顶部打开开关才会开始采集数据。详见 Memory Viewer 和 FPS Viewer。","production-build--生产构建#Production Build / 生产构建":"The inspector is automatically disabled in release mode. You don't need to remove any code — Flutter's tree-shaking will remove all inspector-related code from production builds.检查器在 release 模式下会自动禁用,无需移除任何代码,Flutter 的 tree-shaking 会自动移除所有检查器相关代码。","alternative-integration--替代集成方式#Alternative Integration / 替代集成方式":"If you prefer more control, use the two-line approach:如果需要更多控制权,可以使用两行代码方式:\nvoid main() {\n ZeroInspectorKit.init();\n runApp(ZeroInspectorKit.wrapApp(const MyApp()));\n}","next-steps--下一步#Next Steps / 下一步":"Installation — Detailed installation methods / 详细安装方式\nUsage — Full usage guide / 完整使用指南\nConfiguration — Configuration options / 配置选项"}},"/Installation":{"title":"Installation / 安装","data":{"from-pubdev-recommended--从-pubdev-安装推荐#From pub.dev (Recommended) / 从 pub.dev 安装(推荐)":"Add the following to your pubspec.yaml:在 pubspec.yaml 中添加以下依赖:\ndependencies:\n zero_inspector_kit: ^1.10.0\nThen run:然后运行:\nflutter pub get","from-github--从-github-安装#From GitHub / 从 GitHub 安装":"Alternatively, install from GitHub:或者从 GitHub 安装:\ndependencies:\n zero_inspector_kit:\n git:\n url: https://github.com/zero-labsco/zero_inspector_kit.git\n ref: release/v1.10.0","platform-setup--平台配置#Platform Setup / 平台配置":"","android#Android":"No additional configuration needed.无需额外配置。","ios#iOS":"No additional configuration needed.无需额外配置。","import--导入#Import / 导入":"import 'package:zero_inspector_kit/zero_inspector_kit.dart';","requirements--环境要求#Requirements / 环境要求":"Requirement\tVersion\tFlutter\t>= 3.3.0\tDart SDK\t>= 3.11.0 < 4.0.0","next-steps--下一步#Next Steps / 下一步":"Getting Started — Quick start guide / 快速开始\nUsage — Full usage guide / 完整使用指南"}},"/Log-Viewer":{"title":"Log Viewer / 日志查看器","data":{"overview--概述#Overview / 概述":"The Log Viewer automatically captures logs from multiple sources with zero configuration.日志查看器自动从多个来源捕获日志,无需配置。","log-sources--日志来源#Log Sources / 日志来源":"Source\tCapture Method\tprint()\tZone specification override / Zone 规范覆盖\tdebugPrint()\tdebugPrint override / debugPrint 覆盖\tFlutter errors\tFlutterError.onError hook / 接管 FlutterError.onError\tUnhandled exceptions\trunZonedGuarded / runZonedGuarded 捕获\tThird-party libraries\tVia print() capture / 通过 print() 捕获\t\nSince v1.9.0, Flutter framework errors and unhandled exceptions are also aggregated & deduplicated in the dedicated Errors tab (keyed by type + stack signature) — while this Log Viewer keeps showing them as error-level lines in the chronological stream. Use Errors for \"is this crash repeating?\"; use Log Viewer for the raw timeline.自 v1.9.0 起,Flutter 框架异常与未捕获异常会同时进入独立的 Errors 标签页去重聚合(按类型 + 堆栈签名归并);本 Log Viewer 仍会在原始时间流中把它们显示为错误级日志。回答\"该崩溃是否反复出现\"请用 Errors;查看原始时间线请用 Log Viewer。","log-levels--日志级别#Log Levels / 日志级别":"Level\tAbbreviation\tColor\tDescription\tVerbose\tV\tGray\tDetailed information / 详细信息\tDebug\tD\tBlue\tDebug information / 调试信息\tInfo\tI\tGreen\tGeneral information / 一般信息\tWarning\tW\tOrange\tWarning messages / 警告信息\tError\tE\tRed\tError messages / 错误信息\t\nThird-party library logs are categorized as Info level.\n第三方日志库的日志统一归类为 Info 级别。","ui-features--ui-功能#UI Features / UI 功能":"","filter-bar--过滤栏#Filter Bar / 过滤栏":"All: Show all logs / 使用 All 显示所有日志\nV / D / I / W / E: Filter by level / 按级别过滤\nTag dropdown: Filter by any captured tag / 按任意已捕获标签过滤\nSingle-select mode / 单选模式","toolbar--工具栏#Toolbar / 工具栏":"Auto-scroll toggle (default on): Jump to the newest log as new entries arrive; pause to keep history still for inspection / 自动滚动开关(默认开启):新日志到达时自动跳到最新;暂停可稳定查看历史\nCopy as JSON: Copy all currently filtered logs as JSON / 复制为 JSON:将当前过滤后的全部日志复制为 JSON\nShare as Text: Share filtered logs as plain text / 分享为文本:将过滤后的日志以纯文本分享\nClear: Clear all logs / 清除:清空全部日志","log-list--日志列表#Log List / 日志列表":"Level badge with color / 带颜色的级别徽章\nTimestamp display / 时间戳显示\nTag display (if available) / 标签显示(如有)\nError/warning rows have subtle background tint / 错误/警告行有淡色背景\nLeft border color indicates level / 左侧边框颜色表示级别\nTap a row to open the in-view detail page with full message and copy; use the back button to return / 点击行进入详情页(主视图内切换),可查看完整消息并复制,点返回按钮回到列表\nPer-row copy button copies that single log as JSON / 行内复制按钮将该条日志以 JSON 复制","search--搜索#Search / 搜索":"Fuzzy search by message content or tag / 按消息内容或标签模糊搜索\nToggle regex mode (. * button) to search with RegExp (case-insensitive); invalid patterns degrade gracefully instead of crashing / 点击 正则模式(. * 按钮)使用 RegExp 搜索(不区分大小写);非法图案优雅降级,不会崩溃\nCombined with level and tag filters / 可与级别、标签过滤组合使用","manual-logging--手动记录日志#Manual Logging / 手动记录日志":"Quick shorthand (recommended) / 简化写法(推荐) — available since v1.1.2 / v1.1.2 起可用:\nInspectorLog.v('Verbose message / 详细消息');\nInspectorLog.d('Debug message / 调试消息');\nInspectorLog.i('Info message / 信息消息');\nInspectorLog.w('Warning message / 警告消息');\nInspectorLog.e('Error message / 错误消息');\n// With tag / 带标签\nInspectorLog.i('User logged in', tag: 'Auth');\nFull form / 完整写法:\nInspectorLogInterceptor.instance.verbose('Verbose message / 详细消息');\nInspectorLogInterceptor.instance.debug('Debug message / 调试消息');\nInspectorLogInterceptor.instance.info('Info message / 信息消息');\nInspectorLogInterceptor.instance.warning('Warning message / 警告消息');\nInspectorLogInterceptor.instance.error('Error message / 错误消息');\n// With tag / 带标签\nInspectorLogInterceptor.instance.info('User logged in', tag: 'Auth');\nInspectorLog is a static wrapper around InspectorLogInterceptor.instance for shorter log calls.InspectorLog 是 InspectorLogInterceptor.instance 的静态包装,用于更简短的日志调用。","third-party-library-integration--第三方日志库集成#Third-Party Library Integration / 第三方日志库集成":"","auto-capture-inbound--自动捕获入站#Auto-Capture (Inbound) / 自动捕获(入站)":"No configuration needed. Any library using print() or debugPrint() is automatically captured.无需配置。任何使用 print() 或 debugPrint() 的库都会被自动捕获。","bidirectional-sync-optional--双向同步可选#Bidirectional Sync (Optional) / 双向同步(可选)":"To forward inspector logs to your third-party logger:将检查器日志转发到第三方日志库:\nimport 'package:logger/logger.dart';\nfinal logger = Logger();\nInspectorLogInterceptor.instance.onLogCaptured = (entry) {\n logger.log(\n _mapLogLevel(entry.level),\n '${entry.tag != null ? '[${entry.tag}] ' : ''}${entry.message}',\n );\n};\nNote: Do NOT call logging methods inside onLogCaptured, as this will cause infinite recursion.\n注意:不要在 onLogCaptured 内部调用日志方法,否则会导致无限递归。","starting-the-log-interceptor--启动日志拦截器#Starting the Log Interceptor / 启动日志拦截器":"If using runAppWithInspector(), the log interceptor starts automatically. Otherwise:如果使用 runAppWithInspector(),日志拦截器会自动启动。否则:\nInspectorLogInterceptor.instance.start();"}},"/Memory-Viewer":{"title":"Memory Viewer / 内存监控面板","data":{"":"The Memory Viewer provides comprehensive in-app memory analysis, including trend charts, Dart Heap details, Native memory breakdown, memory leak detection, image cache monitoring, and storage statistics.内存监控面板提供应用内全面内存分析,包括趋势图、Dart Heap 详情、Native 内存分项、内存泄漏检测、图片缓存监控和存储统计。\nAvailable since v1.1.0v1.1.1 起可用","overview--概览#Overview / 概览":"The Memory Viewer is integrated into the inspector panel. Tap the floating inspector button → \"Memory\" tab to access.内存监控面板集成在检查器面板中。点击悬浮检查器按钮 → \"Memory\" 标签即可访问。⚠️ Important: Memory monitoring is off by default. You must toggle on the switch at the top of the panel to start collecting data.⚠️ 重要:内存监控默认关闭。必须在面板顶部打开开关才会开始采集数据。","master-switch--总开关#Master Switch / 总开关":"A switch at the top of the Memory panel controls whether monitoring is enabled.Memory 面板顶部有一个开关,控制是否启用监控。\nState\tBehavior\tOFF (default)\tNo timers, no VM Service connection, zero overhead / 无定时器、无 VM Service 连接、零开销\tON\tStarts RSS collection (500ms), Native memory (3s), storage stats (3s), leak detection (2s), and VM Service connection attempt / 启动 RSS 采集(500ms)、Native 内存(3s)、存储统计(3s)、泄漏检测(2s),并尝试连接 VM Service\t\nWhen turned off, all timers are cancelled and the VM Service connection state is cleared, leaving no residual WebSocket overhead.关闭时所有定时器会被取消,VM Service 连接状态会被清空,不会残留 WebSocket 开销。","features--功能#Features / 功能":"","1-memory-trend-chart--内存趋势图#1. Memory Trend Chart / 内存趋势图":"Real-time line chart with 2-minute history window (240 snapshots × 500ms)\nSwitchable between 4 metrics via the metric selector chips:\nProcess RSS — Process-level RSS (always available)\nDart Heap — Total Dart Heap usage (requires VM Service)\nNew Space — New generation usage (requires VM Service)\nOld Space — Old generation usage (requires VM Service)\n实时折线图,2 分钟历史窗口(240 条快照 × 500ms)。可通过指标选择芯片切换 4 种指标。","2-native-memory--native-内存真机-100-可用#2. Native Memory / Native 内存(真机 100% 可用)":"Does not depend on VM Service. Data is collected via Platform Channel:不依赖 VM Service,通过 Platform Channel 采集:Android (Debug.MemoryInfo + /proc/self/status):\nTotal PSS / Dalvik PSS / Native PSS / Native Private Dirty\nProcess RSS (from /proc/self/status)\nDevice memory status (availMem, threshold, lowMemory)\niOS (mach task_info):\nPhysical Footprint (Apple's recommended metric)\nInternal / Compressed / Resident Size\nProcess RSS\nDevice available memory","3-dart-heap-overview--dart-heap-概览需要-vm-service#3. Dart Heap Overview / Dart Heap 概览(需要 VM Service)":"Heap Usage / Capacity / external usage\nProgress bar showing heap usage ratio\nThree core metrics with bilingual labels\n显示 Heap Usage / Capacity / External 三个核心指标 + 进度条。","4-heap-generations--堆分代详情需要-vm-service#4. Heap Generations / 堆分代详情(需要 VM Service)":"New Space: usage / capacity / external\nOld Space: usage / capacity / external\nHelps identify allocation patterns (frequent new-space churn vs old-space growth)\n显示新生代/老生代的 Usage / Capacity / External 详细数据。","5-manual-gc--手动触发-gc需要-vm-service#5. Manual GC / 手动触发 GC(需要 VM Service)":"\"Trigger GC\" button forces a full garbage collection\nDisabled (grayed out) when VM Service is unavailable\n\"Trigger GC\" 按钮强制触发完整垃圾回收。VM Service 不可用时按钮变灰禁用。","6-memory-leak-detection--内存泄漏检测#6. Memory Leak Detection / 内存泄漏检测":"Based on Dart 2.17+ WeakReference and Finalizer. Does NOT depend on VM Service.基于 Dart 2.17+ 的 WeakReference 和 Finalizer,不依赖 VM Service。Four-state transition / 四状态流转:\nState\tMeaning\ttracking\tObject registered, waiting for expected release time / 对象已注册,等待预期释放时间\tverifying\tExceeded expected release time, GC verification triggered (if VM Service available) / 超过预期释放时间,触发 GC 验证(VM Service 可用时)\tleaked\tObject still exists after GC — suspected leak / GC 后对象仍存在——疑似泄漏\treleased\tObject has been garbage collected / 对象已被垃圾回收\t\nAPI / 接口:Quick shorthand (recommended) / 简化写法(推荐) — available since v1.1.2 / v1.1.2 起可用:\n// Extension method on Object / Object 上的扩展方法\nmyBloc.trackMemoryLeak(tag: 'HomePage_myBloc');\n// Or top-level function / 或使用顶层函数\ntrackMemoryLeak(myBloc, tag: 'HomePage_myBloc');\n// Cancel tracking / 取消追踪\nmyBloc.untrackMemoryLeak();\nFull form / 完整写法:\n// Register an object for leak tracking / 注册对象进行泄漏追踪\nMemoryInspectorService.instance.trackObject(\n myController,\n tag: 'HomeController_textController', // optional identifier\n expectedReleaseAfter: const Duration(seconds: 30), // expected release time\n);\n// Stop tracking a specific object / 停止追踪特定对象\nMemoryInspectorService.instance.untrackObject(myController);\n// Clear all records / 清空所有记录\nMemoryInspectorService.instance.clearLeakRecords();\nLimits / 限制:\nMax 500 tracked objects (LRU eviction)\nDetection interval: 2 seconds\ntrackObject() requires user code modification (mild invasion)\nFlutter MemoryAllocations bridge (since v1.9.0) / 官方泄漏追踪桥接(v1.9.0 起)The WeakReference state machine has a blind spot: an object whose dispose() ran but that has not been GC'd yet still resolves through the weak reference, producing a false \"leaked\" verdict. Since v1.9.0, MemoryInspectorService also subscribes to Flutter's official FlutterMemoryAllocations (the data source behind leak_tracker) via LeakTrackerBridge: once the official stream reports disposed, the object is treated as released (awaiting GC) even if the weak reference still resolves — cutting false positives. Enabled by default through enableFlutterLeakTracker in init(), and toggled in code via MemoryInspectorService.instance.flutterLeakTrackerEnabled.WeakReference 状态机有一个盲点:对象已调用 dispose() 但尚未被 GC 时弱引用仍存活,会产生\"疑似泄漏\"的误报。v1.9.0 起,MemoryInspectorService 通过 LeakTrackerBridge 额外订阅 Flutter 官方的 FlutterMemoryAllocations(leak_tracker 背后的数据源):只要官方上报 disposed,即便弱引用仍存活也判定为已释放(等待 GC),从而显著降低误报。由 init() 的 enableFlutterLeakTracker 默认启用,也可用 MemoryInspectorService.instance.flutterLeakTrackerEnabled 在代码中开关。","7-image-cache--图片缓存#7. Image Cache / 图片缓存":"Real-time Flutter image cache size and count\nPending (loading) / Live (in use) image counts\nOne-click clear all image cache\n实时显示 Flutter 图片缓存大小、数量、加载中/使用中状态。一键清理图片缓存。","8-app-storage--应用存储#8. App Storage / 应用存储":"Documents directory size\nTemp cache directory size\nTotal database file size\nOne-click clear temp cache\n显示文档目录、临时缓存、数据库文件大小。一键清理临时缓存。","️-vm-service-availability--vm-service-可用性#⚠️ VM Service Availability / VM Service 可用性":"Dart Heap data and manual GC require VM Service connection. When VM Service is unavailable, these features gracefully degrade to show \"N/A\".Dart Heap 数据和手动 GC 需要 VM Service 连接。 VM Service 不可用时,这些功能优雅降级显示 \"N/A\"。","when-debugging-via-pc-with-flutter-run--通过-pc-用-flutter-run-调试时#When debugging via PC with flutter run / 通过 PC 用 flutter run 调试时":"Dart VM Heap data may be unavailable (VM: OFF).Dart VM Heap 数据可能不可用(VM: OFF)。Reason / 原因: When using flutter run to debug via PC, the flutter tool sets up port forwarding between PC and device via adb reverse, allowing PC-side DevTools to access the device's VM Service. However, Service.getInfo() returns a serverUri from the PC's perspective; when the app process internally accesses 127.0.0.1:PC_port, the device doesn't have that port listening locally, resulting in Connection refused and VM Service showing OFF.原因:使用 flutter run 连接 PC 调试时,flutter tool 会通过 adb reverse 在 PC 和设备之间做端口转发,让 PC 上的 DevTools 能访问设备的 VM Service。但应用进程内部 Service.getInfo() 返回的 serverUri 是 PC 视角的端口,应用进程访问 127.0.0.1:PC端口 时设备本地并没有监听该端口,导致 Connection refused,VM Service 显示 OFF。","when-opening-debug-app-directly-no-pc--直接打开-debug-应用不连-pc#When opening debug app directly (no PC) / 直接打开 debug 应用(不连 PC)":"VM Service works normally. No flutter tool is involved, VM Service listens directly on the device's local port, the app can connect normally, and Dart Heap data displays correctly.VM Service 正常工作。 没有 flutter tool 介入,VM Service 直接监听设备本地端口,应用能正常连接,Dart Heap 数据正常显示。","fallback--降级方案#Fallback / 降级方案":"When VM Service is unavailable:\n✅ Native memory (Android PSS / iOS physicalFootprint) — still available\n✅ Process RSS — always available\n✅ Image cache / storage stats — still available\n✅ Leak detection — still available (doesn't depend on VM Service)\n❌ Dart Heap details — shows N/A\n❌ Manual GC — button disabled","platform-support--平台支持#Platform Support / 平台支持":"Feature\tAndroid\tiOS\tProcess RSS\t✅\t✅\tNative Memory\t✅\t✅\tDart Heap (VM Service)\t✅ (no PC)\t✅ (no PC)\tManual GC\t✅ (no PC)\t✅ (no PC)\tLeak Detection\t✅\t✅\tImage Cache\t✅\t✅\tStorage Stats\t✅\t✅","refresh-intervals--刷新间隔#Refresh Intervals / 刷新间隔":"Data Source\tInterval\tProcess RSS / Dart Heap\t500ms\tNative Memory (Android/iOS)\t3000ms\tStorage Stats\t3000ms\tLeak Detection\t2000ms","related--相关#Related / 相关":"Usage — General usage guide\nFAQ — Common questions\nConfiguration — Configuration options"}},"/Network-Inspector":{"title":"Network Inspector / 网络检查器","data":{"overview--概述#Overview / 概述":"The Network Inspector automatically captures all HTTP requests made via the http package and Dio, with zero configuration needed.网络检查器自动捕获所有通过 http 包 和 Dio 发送的 HTTP 请求,无需任何配置。","how-it-works--工作原理#How It Works / 工作原理":"The inspector uses Flutter's HttpOverrides to intercept all HTTP traffic at the dart:io level. This means:检查器通过 Flutter 的 HttpOverrides 在 dart:io 层面拦截所有 HTTP 流量。这意味着:\nhttp package: Auto-captured ✅ / 自动捕获 ✅\nDio: Auto-captured (uses IOHttpClientAdapter → HttpClient) ✅ / 自动捕获 ✅\nNo manual interceptor setup needed / 无需手动添加拦截器","websocket--grpc-capture--websocket-与-grpc-抓取#WebSocket & gRPC Capture / WebSocket 与 gRPC 抓取":"Available since v1.7.0 (opt-in, off by default)v1.7.0 起可用(可选开启,默认关闭)\nHTTP/HTTPS traffic is captured automatically, but the HttpOverrides interceptor does not cover streaming protocols like WebSocket and gRPC. For those, enable the opt-in capture so frames and calls show up as WS / gRPC rows in the Network tab.HTTP/HTTPS 流量会自动捕获,但 HttpOverrides 拦截器无法覆盖 WebSocket、gRPC 这类流式协议。针对它们需开启可选的抓取,开启后收发帧/调用会以 WS / gRPC 行的形式出现在 Network 标签页。","enable--开启方式#Enable / 开启方式":"Toggle the WS switch in the Network tab toolbar, or / 在 Network 标签页工具栏点击 WS 开关,或\nSet it programmatically: / 通过代码开启:\n// on / 开启\nWsInspectorService.instance.enable();\n// off / 关闭\nWsInspectorService.instance.disable();\nCapture is off by default and only records while enabled — apps that don't use these protocols pay nothing.抓取默认关闭,且只在开启时记录;不使用这类协议的应用零开销。","two-usage-modes--两种使用方式#Two Usage Modes / 两种使用方式":"1. Transparent wrapper — InspectorWebSocketReplace WebSocket.connect with InspectorWebSocket.connect. Frames are auto-recorded (→ out, ← in) when capture is on; when off it passes through with zero overhead.将 WebSocket.connect 替换为 InspectorWebSocket.connect。开启抓取时会自动记录收发帧(→ 出站、← 入站);关闭时零开销透传。\nfinal ws = await InspectorWebSocket.connect('wss://echo.websocket.events');\nws.listen((msg) => print('received: $msg'));\nws.add('hello'); // recorded as an outgoing frame / 记录为出站帧\n2. Manual hook — recordCallFor stacks not transparently interceptable by dart:io (gRPC, web_socket_channel, custom protocols), call recordCall to log a request/response pair. No-ops when capture is disabled.对于无法被 dart:io 透明拦截的栈(gRPC、web_socket_channel、自定义协议),调用 recordCall 记录一次请求/响应。关闭抓取时为空操作。\nWsInspectorService.instance.recordCall(\n name: 'user.UserService/GetUser',\n request: '{ \"id\": 1 }',\n response: '{ \"name\": \"Ada\" }',\n protocol: 'gRPC', // appears in the method column / 显示在 method 列\n);","what-you-see--查看方式#What You See / 查看方式":"Network tab lists a WS (or gRPC) entry per connection/call / Network 标签页按连接/调用列出 WS(或 gRPC)记录\nOpen the detail view to see the frame log (outgoing → / incoming ←), accumulated in the response body / 进入详情页查看帧日志(出站 → / 入站 ←),累积显示在响应体中\nA [connection closed] marker is appended when the socket closes / 连接关闭后会追加 [connection closed] 标记","captured-information--捕获的信息#Captured Information / 捕获的信息":"Field\tDescription\tMethod\tGET, POST, PUT, DELETE, PATCH\tURL\tFull request URL\tStatus Code\tHTTP response status code\tDuration\tRequest duration\tRequest Headers\tAll request headers\tRequest Body\tRequest payload (JSON formatted)\tResponse Body\tResponse payload (JSON formatted)\tHost\tParsed from URL","ui-features--ui-功能#UI Features / UI 功能":"","request-list--请求列表#Request List / 请求列表":"Color-coded by HTTP method / 按 HTTP 方法着色\nStatus code badge / 状态码徽章\nDuration display / 耗时显示\nLeft border color indicates status / 左侧边框颜色表示状态","request-detail--请求详情#Request Detail / 请求详情":"Click a request to enter detail view / 点击请求进入详情视图\nBack button to return to list / 返回按钮返回列表\nRequest and response sections / 请求和响应分段显示\nJSON formatted body / JSON 格式化显示","search--搜索#Search / 搜索":"Fuzzy search by URL or method / 按 URL 或方法模糊搜索\nSearch bar hidden in detail view / 详情视图隐藏搜索栏","batch-operations--批量操作#Batch Operations / 批量操作":"Available since v1.3.0v1.3.0 起可用\nThe request list supports a selection mode for operating on multiple requests at once.请求列表支持选择模式,可一次性操作多条请求。\nTap the selection icon in the toolbar to enter selection mode / 点击工具栏的选择图标进入选择模式\nCheck/uncheck items; a top batch bar shows Select all / Cancel / 勾选/取消勾选;顶部批量条提供全选 / 取消\nBatch \"Copy as cURL\": copies all selected requests as cURL commands / 批量「Copy as cURL」:将所有选中请求复制为 cURL 命令\nBatch delete: removes selected requests from the list / 批量删除:从列表中移除选中请求","export--sensitive-field-masking--导出与敏感字段遮蔽#Export & Sensitive-field Masking / 导出与敏感字段遮蔽":"Available since v1.3.0v1.3.0 起可用\nThe toolbar includes an eye toggle that controls whether sensitive headers are masked on export.工具栏包含眼睛开关,控制导出时是否遮蔽敏感请求头。\nDefault: off (fully visible) — cURL / JSON / HAR reflect the real request verbatim / 默认关闭(完整可见):cURL / JSON / HAR 原样反映真实请求\nOn: toCurl / netToJson / netToHar / copyNet / exportNetToFile mask these headers / 开启后:以下请求头被遮蔽:\nAuthorization, Cookie, Set-Cookie, Proxy-Authorization, X-Auth-Token, X-CSRF-Token, X-XSRF-Token\nThe detail page \"Copy as cURL\" / \"Copy as JSON\" follow the same toggle / 详情页「Copy as cURL」「Copy as JSON」跟随同一开关\nWhen masking is active, the snackbar notes (sensitive hidden) / 遮蔽开启时,snackbar 提示 (sensitive hidden)\nTip: keep masking on before pasting cURL/JSON into terminals, chat, or issue trackers to avoid leaking credentials.提示:将 cURL/JSON 粘贴到终端、聊天或 issue 前,建议开启遮蔽,避免凭据泄露。","copy-as-curl--复制为-curl#Copy as cURL / 复制为 cURL":"Available since v1.3.0v1.3.0 起可用\nFrom the request detail view, tap Copy as cURL to copy the request as a ready-to-run cURL command (method, URL, headers, body). Respects the sensitive-field masking toggle above.在请求详情页点击 Copy as cURL,即可将请求复制为可直接运行的 cURL 命令(方法、URL、请求头、请求体),并遵循上方的敏感字段遮蔽开关。","status-code-colors--状态码颜色#Status Code Colors / 状态码颜色":"Range\tColor\tDescription\t2xx\tGreen\tSuccess / 成功\t3xx\tBlue\tRedirect / 重定向\t4xx\tOrange\tClient error / 客户端错误\t5xx\tRed\tServer error / 服务器错误","http-method-colors--http-方法颜色#HTTP Method Colors / HTTP 方法颜色":"Method\tColor\tGET\tBlue / 蓝色\tPOST\tGreen / 绿色\tPUT\tOrange / 橙色\tDELETE\tRed / 红色\tPATCH\tPurple / 紫色","usage-example--使用示例#Usage Example / 使用示例":"// http package - auto-captured / http 包 - 自动捕获\nfinal response = await http.get(\n Uri.parse('https://api.example.com/data'),\n);\n// Dio - auto-captured / Dio - 自动捕获\nfinal response = await dio.post(\n 'https://api.example.com/data',\n data: {'key': 'value'},\n);\nNo additional setup required! All requests will appear in the Network tab.无需额外配置!所有请求都会出现在 Network 标签页中。","request-interceptor--请求拦截修改#Request Interceptor / 请求拦截修改":"Available since v1.0.7 (response fields locked to read-only since v1.0.8)v1.0.7 起可用(v1.0.8 起响应字段锁定为只读)\nThe inspector supports intercepting and modifying network requests via rules. This is useful for testing different request parameters without modifying app code.检查器支持通过规则拦截并修改网络请求,适合在不修改应用代码的情况下测试不同的请求参数。","workflow--工作流程#Workflow / 工作流程":"Send a request normally (it will be captured in the Network panel) / 正常发送请求(会被捕获到 Network 面板)\nOpen the request detail and tap the Interceptor icon / 打开请求详情,点击拦截器图标\nConfigure the modification rule (URL pattern, HTTP method, request modifications) / 配置修改规则(URL 模式、HTTP 方法、请求修改)\nSave the rule — subsequent matching requests will use the modified parameters / 保存规则——后续匹配的请求将使用修改后的参数","supported-modifications--支持的修改#Supported Modifications / 支持的修改":"Field\tEditable\tNotes\tRequest Body\t✅\tOnly for requests with body (POST, PUT, PATCH, etc.) / 仅适用于有 body 的请求\tRequest Headers\t✅\tAdd / modify / remove headers / 新增 / 修改 / 删除请求头\tURL\t❌\tGrayed out, read-only / 灰色不可编辑\tResponse Status Code\t❌\tRead-only since v1.0.8 / v1.0.8 起只读\tResponse Body\t❌\tRead-only since v1.0.8 / v1.0.8 起只读\t\nThe interception edit panel only allows modifying the request body and request headers. Response fields (status code, response body) are grayed out and uneditable.拦截编辑面板仅允许修改请求体和请求头。响应字段(状态码、响应体)灰色不可编辑。","rule-matching--规则匹配#Rule Matching / 规则匹配":"URL pattern matching: exact match or regex / URL 模式匹配:精确匹配或正则匹配\nHTTP method filtering: GET, POST, PUT, DELETE, PATCH, HEAD, or Any / HTTP 方法过滤","why-get-requests-cannot-be-modified--为什么-get-请求不能修改#Why GET Requests Cannot Be Modified / 为什么 GET 请求不能修改":"The interceptor currently supports modifying request body and headers only / 拦截器目前仅支持修改请求体和请求头\nGET requests don't have a request body / GET 请求没有请求体\nModifying GET request parameters would require URL modification / 修改 GET 请求参数需要修改 URL\nURL modification may cause unexpected issues with request routing and parameter encoding / 修改 URL 可能导致请求路由和参数编码的意外问题\nGET request detail pages do not display interception edit buttons, making them unmodifiable.GET 请求详情页不显示拦截编辑按钮,因此无法修改。","master-toggle--拦截总开关#Master Toggle / 拦截总开关":"The interception master toggle is displayed only on the Network list page, not in the detail page / 拦截总开关只显示在 Network 列表页,不在详情页\nRules are only applied when modification mode is enabled / 规则仅在启用修改模式时生效\nWhen no rules are configured or rules are disabled, all requests are sent normally without any modification / 未配置规则或禁用规则时,所有请求正常发送,不做任何修改","rule-management--规则管理#Rule Management / 规则管理":"The network panel includes an interceptor rule editor where you can:网络面板包含拦截规则编辑器,可以:\nCreate / edit / delete rules / 创建 / 编辑 / 删除规则\nEnable / disable individual rules / 启用 / 禁用单条规则\nView rule status indicators in the request list / 在请求列表中查看规则状态标识"}},"/Route-Tracker":{"title":"Route Tracker / 路由追踪","data":{"overview--概述#Overview / 概述":"The Route Tracker monitors navigation history, recording all route push, pop, and replacement events.路由追踪器监控导航历史,记录所有路由 push、pop 和替换事件。","auto-injection--自动注入#Auto-Injection / 自动注入":"When using runAppWithInspector() or wrapApp(), the InspectorRouteObserver is automatically injected into MaterialApp's navigatorObservers.使用 runAppWithInspector() 或 wrapApp() 时,InspectorRouteObserver 会自动注入到 MaterialApp 的 navigatorObservers 中。","tracked-route-actions--追踪的路由操作#Tracked Route Actions / 追踪的路由操作":"Action\tColor\tDescription\tpush\tBlue\tNavigator.push() / 推入新路由\tpushNamed\tBlue\tNavigator.pushNamed() / 按名称推入\tpop\tOrange\tNavigator.pop() / 弹出路由\tpopUntil\tOrange\tNavigator.popUntil() / 弹出直到\tpushReplacement\tPurple\tNavigator.pushReplacement() / 替换路由","ui-features--ui-功能#UI Features / UI 功能":"","route-list--路由列表#Route List / 路由列表":"Action badge with color / 带颜色的操作徽章\nRoute name display / 路由名称显示\nTimestamp display / 时间戳显示\nLeft border color indicates action type / 左侧边框颜色表示操作类型","route-detail--路由详情#Route Detail / 路由详情":"Click a route to view details / 点击路由查看详情\nShows: Action, Route Name, Timestamp, Arguments / 显示:操作、路由名、时间戳、参数\nArguments displayed as formatted JSON / 参数以 JSON 格式显示","manual-setup-optional--手动设置可选#Manual Setup (Optional) / 手动设置(可选)":"If you use a custom Navigator or don't use MaterialApp, add the observer manually:如果使用自定义 Navigator 或不使用 MaterialApp,请手动添加观察者:\nMaterialApp(\n navigatorObservers: [InspectorRouteObserver()],\n home: MyHomePage(),\n)"}},"/":{"title":"Zero Inspector Kit","data":{"":"A powerful Flutter plugin for in-app developer console, providing real-time debugging tools including network request inspection, logging, error aggregation, database viewing, and route tracking.一个功能强大的 Flutter 插件,提供应用内开发者控制台,包括网络请求检查、日志记录、异常聚合、数据库查看和路由追踪。","-features--功能特性#✨ Features / 功能特性":"Feature\tDescription\tZero Invasion\tIntegrate with 1 line of code / 一行代码集成\tNetwork Inspector\tReal-time HTTP request viewing (http + Dio) / 实时网络请求查看\tLog Viewer\tAuto-capture print()/debugPrint() and third-party logs / 自动捕获日志\tErrors\tAggregate & dedupe crashes by type + stack, with count and first/last seen / 按类型+堆栈去重聚合崩溃,记录次数与首末次时间\tDatabase Viewer\tSQLite inspection with table data / 数据库查看\tMemory Viewer\tTrend chart, Dart Heap, Native memory, leak detection (incl. Flutter MemoryAllocations bridge) / 内存趋势图、Dart Heap、Native 内存、泄漏检测(含官方 MemoryAllocations 桥接)\tFPS Monitor\tReal-time FPS, jank rate, trend chart / 实时 FPS、卡顿率、趋势图\tRoute Tracker\tNavigation history tracking / 路由追踪\tSession Persistence\tLogs/network/errors survive restarts via a disk ring buffer; logs & errors replay on launch; one-tap session archive export / 日志/网络/异常通过磁盘环形缓冲跨重启保留,启动时回放日志与异常;一键导出会话存档\tAlerts\tRule-based alerts (network/log/memory/FPS) with unread badge / 基于规则的告警(网络/日志/内存/FPS)与未读角标\tSensitive Masking & cURL\tMask secrets on export; one-click cURL copy; batch ops / 导出遮蔽敏感字段、一键复制 cURL、批量操作\tFuzzy Search\tSearch in all viewers / 各查看器模糊搜索\tCross-platform\tAndroid, iOS / 跨平台支持","-table-of-contents--目录#📚 Table of Contents / 目录":"Page\tDescription\tGetting Started\tQuick start guide / 快速开始\tInstallation\tHow to install / 安装方式\tUsage\tDetailed usage / 详细使用\tNetwork Inspector\tNetwork request viewing / 网络检查器\tLog Viewer\tLog capturing and viewing / 日志查看器\tErrors\tAggregated error viewing / 异常聚合查看\tDatabase Viewer\tDatabase inspection / 数据库查看器\tRoute Tracker\tRoute tracking / 路由追踪\tMemory Viewer\tMemory monitoring & leak detection / 内存监控与泄漏检测\tFPS Viewer\tFPS monitoring & jank detection / FPS 监控与卡顿检测\tAlerts\tRule-based alerting / 基于规则的告警\tConfiguration\tConfiguration options / 配置说明\tCustom Database Provider\tExtend database support / 自定义数据库提供者\tFAQ\tFrequently asked questions / 常见问题","-links--链接#🔗 Links / 链接":"GitHub\nOfficial Website\npub.dev","-license--许可证#📄 License / 许可证":"This project is licensed under the GNU General Public License v3.0.本项目采用 GNU General Public License v3.0 许可证。This plugin is provided \"as is\", without warranty of any kind. The author assumes no responsibility or liability for the functionality, security, or any consequences arising from the use of modified versions or derivative projects.本插件按\"原样\"提供,不提供任何担保。作者不对修改版或衍生项目的功能、安全性及任何使用后果承担责任。"}},"/Usage":{"title":"Usage / 使用指南","data":{"integration-methods--集成方式#Integration Methods / 集成方式":"","1-one-line-integration-recommended--一行代码集成推荐#1. One-Line Integration (Recommended) / 一行代码集成(推荐)":"void main() {\n ZeroInspectorKit.runAppWithInspector(const MyApp());\n}\nThis method:\nAuto-initializes inspector / 自动初始化检查器\nCaptures print() via Zone / 通过 Zone 捕获 print()\nDisplays floating button via Overlay / 通过 Overlay 显示悬浮按钮\nAuto-injects route observer / 自动注入路由观察者","2-two-line-integration--两行代码集成#2. Two-Line Integration / 两行代码集成":"void main() {\n ZeroInspectorKit.init();\n runApp(ZeroInspectorKit.wrapApp(const MyApp()));\n}","inspector-panel--检查器面板#Inspector Panel / 检查器面板":"The inspector panel contains 9 tabs (as of v1.9.0):检查器面板包含 9 个标签页(v1.9.0 起):\nTab\tIcon\tFeature\tNetwork\t🌐\tHTTP request viewing + interceptor rules / 网络请求查看 + 拦截修改\tLogs\t📝\tLog viewing with level filter / 日志查看\tErrors\t🚨\tAggregated & deduped crash viewing / 去重聚合的异常查看\tDatabase\t💾\tDatabase and table inspection / 数据库查看\tMemory\t📊\tMemory trend, Dart Heap, Native memory, leak detection / 内存趋势、Dart Heap、Native 内存、泄漏检测\tFPS\t🎯\tReal-time FPS, jank rate, trend chart / 实时 FPS、卡顿率、趋势图\tRoutes\t🧭\tRoute navigation tracking / 路由追踪\tWidgets\t🔍\tWidget tree snapshot for the current route / 当前路由的 Widget 树快照\tAlerts\t🔔\tRule-based alerts with unread badge / 基于规则的告警与未读角标\t\nThe Memory and FPS monitors are off by default to avoid performance overhead. Toggle the switch at the top of each panel to start collecting data.Memory 与 FPS 监控默认关闭以避免性能开销。在各自面板顶部打开开关才会开始采集数据。","one-click-bug-report--一键-bug-报告#One-Click Bug Report / 一键 Bug 报告":"Tap the bug icon in the inspector panel header to generate and share a bug report in one tap — ideal for QA to attach environment context when filing issues.点击检查器面板头部的虫子图标,即可一键生成并分享一份 Bug 报告——非常适合 QA 在提 issue 时附上环境上下文。The shared text snapshot includes / 分享的文本快照包含:\nDevice / 设备: real model (e.g. Pixel 8 Pro / iPhone (iPhone16,1)), OS & version, locale, Dart runtime, CPU cores.\nMemory / 内存: current heap usage and whether Native memory is supported.\nRecent logs / 最近日志: the latest captured log entries.\nRecent network / 最近网络: the latest captured requests.\nSensitive headers are masked the same way as in the Network tab. No data leaves the device except through the share target you choose.敏感请求头会与网络标签页一样被遮蔽。除你选择的分享目标外,数据不会离开设备。\nRequires no extra setup — it works as soon as the inspector is running. / 无需额外配置——检查器运行后即可使用。","floating-button--悬浮按钮#Floating Button / 悬浮按钮":"The floating button appears after 1 second delay / 悬浮按钮延迟 1 秒出现\nDrag to move it along the screen edge / 拖动 可沿屏幕边缘移动\nTap (when fully visible) to open/close the inspector panel / 点击(完全可见时)打开/关闭检查器面板\nButton auto-snaps to the nearest screen edge / 按钮自动吸附到最近的屏幕边缘\nBreathing animation when idle / 空闲时有呼吸动画","edge-docking-since-v120--边缘吸附v120-起#Edge Docking (since v1.2.0) / 边缘吸附(v1.2.0 起)":"When released near a screen edge, the button auto-docks and tucks into the edge, leaving only a 24px peek visible:拖动松手后,按钮会自动吸附到最近边缘并\"收入\"边缘,仅露出 24px 小弧边:\nState\tBehavior / 行为\tDocked (tucked in)\tOnly 24px peek visible; icon becomes a directional chevron (left dock → ➡, right dock → ⬅) hinting at tap-to-pull-out / 仅露出 24px;图标变为方向箭头提示可点击拉出\tTap docked peek\tSmoothly pulls out to fully visible (panel NOT opened, avoids accidental open) / 平滑拉出到完全可见(不打开面板,避免误触)\tTap fully visible\tOpens the inspector panel / 打开检查器面板\t\nThis design avoids conflicts with system back gestures (Android/iOS edge swipe to go back) when pulling out from the docked state.此设计避免了从吸附态拖出时与系统返回手势(Android/iOS 边缘右滑退出)的冲突。","search--搜索#Search / 搜索":"The main viewers support fuzzy search:各查看器均支持模糊搜索:\nViewer\tSearch Scope\tNetwork\tURL, HTTP method / URL、请求方法\tLogs\tMessage, tag / 消息、标签\tErrors\tException type, message / 异常类型、消息\tDatabase (global)\tDatabase name, table name / 数据库名、表名\tDatabase (in-database)\tTable name, all column data / 表名、所有列数据","manual-logging-optional--手动记录日志可选#Manual Logging (Optional) / 手动记录日志(可选)":"The inspector auto-captures print() output. You can also use manual log methods for precise level control:检查器会自动捕获 print() 输出。也可以使用手动日志方法进行精确级别控制:Quick shorthand (recommended) / 简化写法(推荐):\nInspectorLog.v('Verbose log / 详细日志');\nInspectorLog.d('Debug log / 调试日志');\nInspectorLog.i('Info log / 信息日志');\nInspectorLog.w('Warning log / 警告日志');\nInspectorLog.e('Error log / 错误日志');\nFull form / 完整写法:\nInspectorLogInterceptor.instance.verbose('Verbose log / 详细日志');\nInspectorLogInterceptor.instance.debug('Debug log / 调试日志');\nInspectorLogInterceptor.instance.info('Info log / 信息日志');\nInspectorLogInterceptor.instance.warning('Warning log / 警告日志');\nInspectorLogInterceptor.instance.error('Error log / 错误日志');","third-party-log-integration--第三方日志库集成#Third-Party Log Integration / 第三方日志库集成":"No configuration needed! The plugin automatically captures logs from third-party logging libraries (e.g., logger, flutter_logger) that use print() or debugPrint().无需配置! 插件会自动捕获所有使用 print() 的第三方日志库的日志。These logs are categorized as INFO level.这些日志统一归类为 INFO 级别。","bidirectional-sync-optional--双向同步可选#Bidirectional Sync (Optional) / 双向同步(可选)":"To sync inspector-captured logs to your third-party logger:将检查器捕获的日志同步到第三方日志库:\nInspectorLogInterceptor.instance.onLogCaptured = (entry) {\n yourLogger.log(entry.message);\n};","feature-pages--功能详情#Feature Pages / 功能详情":"Network Inspector — Network request details + interceptor rules / 网络检查器详情 + 拦截修改\nLog Viewer — Log viewing details / 日志查看器详情\nErrors — Aggregated error viewing / 异常聚合查看\nDatabase Viewer — Database inspection details / 数据库查看器详情\nRoute Tracker — Route tracking details / 路由追踪详情\nMemory Viewer — Memory monitoring & leak detection / 内存监控与泄漏检测\nFPS Viewer — FPS monitoring & jank detection / FPS 监控与卡顿检测","session-persistence--会话持久化#Session Persistence / 会话持久化":"Logs, network requests, and aggregated errors are asynchronously flushed to a local SQLite ring buffer. On the next launch, logs and aggregated errors replay into their tabs; network requests stay archived on disk for later export. Data therefore survives app restarts even if the inspector panel was never opened. Tap the storage icon in the panel header to open the Persisted data manager: view row counts per category, export the full session archive, or clear the disk. See Configuration (PersistenceService section) for the API and tuning parameters.日志、网络请求与聚合异常会被异步写入本地 SQLite 环形缓冲。下次启动时,日志与聚合异常会回放入各自标签页;网络请求保留在磁盘存档,供之后导出。因此即使从未打开过检查器面板,数据也能跨重启保留。点击面板头部的存储图标可打开 Persisted data 管理弹层:查看各类别行数、导出完整会话存档或清空磁盘。API 与调参详见 Configuration(PersistenceService 一节)。"}}}
\ No newline at end of file
diff --git a/docs/_next/static/chunks/pages/FAQ-77f05aab84ba1940.js b/docs/_next/static/chunks/pages/FAQ-3f5854cf7971f23b.js
similarity index 87%
rename from docs/_next/static/chunks/pages/FAQ-77f05aab84ba1940.js
rename to docs/_next/static/chunks/pages/FAQ-3f5854cf7971f23b.js
index 0111819..f6cab42 100644
--- a/docs/_next/static/chunks/pages/FAQ-77f05aab84ba1940.js
+++ b/docs/_next/static/chunks/pages/FAQ-3f5854cf7971f23b.js
@@ -1 +1 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{9238:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/FAQ",function(){return i(5797)}])},5797:function(e,r,i){"use strict";i.r(r),i.d(r,{useTOC:function(){return o}});var n=i(5893),s=i(7812),t=i(7080),d=i(8925);function o(e){return[{value:"General / 通用",id:"general--通用",depth:2},{value:"Q: Does the inspector affect production builds? / 检查器会影响生产构建吗?",id:"q-does-the-inspector-affect-production-builds--检查器会影响生产构建吗",depth:3},{value:"Q: What platforms are supported? / 支持哪些平台?",id:"q-what-platforms-are-supported--支持哪些平台",depth:3},{value:"Q: What Flutter/Dart versions are required? / 需要什么 Flutter/Dart 版本?",id:"q-what-flutterdart-versions-are-required--需要什么-flutterdart-版本",depth:3},{value:"Network / 网络",id:"network--网络",depth:2},{value:"Q: Do I need to manually add interceptors for Dio? / 需要为 Dio 手动添加拦截器吗?",id:"q-do-i-need-to-manually-add-interceptors-for-dio--需要为-dio-手动添加拦截器吗",depth:3},{value:"Q: Why do I see duplicate Dio requests? / 为什么看到重复的 Dio 请求?",id:"q-why-do-i-see-duplicate-dio-requests--为什么看到重复的-dio-请求",depth:3},{value:"Q: Can I modify requests during testing? / 测试时可以修改请求吗?",id:"q-can-i-modify-requests-during-testing--测试时可以修改请求吗",depth:3},{value:"Logging / 日志",id:"logging--日志",depth:2},{value:"Q: Can I use my existing logging library? / 可以使用现有的日志库吗?",id:"q-can-i-use-my-existing-logging-library--可以使用现有的日志库吗",depth:3},{value:"Q: How to sync inspector logs to my logger? / 如何将检查器日志同步到我的日志库?",id:"q-how-to-sync-inspector-logs-to-my-logger--如何将检查器日志同步到我的日志库",depth:3},{value:"Database / 数据库",id:"database--数据库",depth:2},{value:"Q: Why don’t I see any databases? / 为什么看不到数据库?",id:"q-why-dont-i-see-any-databases--为什么看不到数据库",depth:3},{value:"Memory / 内存",id:"memory--内存",depth:2},{value:"Q: Why does Dart Heap show “N/A” when debugging via PC? / 通过 PC 调试时为什么 Dart Heap 显示 “N/A”?",id:"q-why-does-dart-heap-show-na-when-debugging-via-pc--通过-pc-调试时为什么-dart-heap-显示-na",depth:3},{value:"Q: Does memory monitoring affect performance? / 内存监控会影响性能吗?",id:"q-does-memory-monitoring-affect-performance--内存监控会影响性能吗",depth:3},{value:"Q: Does leak detection require code modification? / 泄漏检测需要侵入代码吗?",id:"q-does-leak-detection-require-code-modification--泄漏检测需要侵入代码吗",depth:3},{value:"FPS / 帧率",id:"fps--帧率",depth:2},{value:"Q: Why does FPS show a very low value (e.g. 9-10 FPS)? / 为什么 FPS 显示很低(如 9-10)?",id:"q-why-does-fps-show-a-very-low-value-eg-9-10-fps--为什么-fps-显示很低如-9-10",depth:3},{value:"Q: Does FPS monitoring affect performance? / FPS 监控会影响性能吗?",id:"q-does-fps-monitoring-affect-performance--fps-监控会影响性能吗",depth:3},{value:"UI / 界面",id:"ui--界面",depth:2},{value:"Q: The inspector panel gets pushed up when keyboard appears. / 键盘弹出时检查器面板被顶起来了。",id:"q-the-inspector-panel-gets-pushed-up-when-keyboard-appears--键盘弹出时检查器面板被顶起来了",depth:3},{value:"Q: How to use search? / 如何使用搜索?",id:"q-how-to-use-search--如何使用搜索",depth:3},{value:"Q: The floating button disappeared / can’t be opened after enabling FPS. / 开启 FPS 后悬浮按钮消失/无法打开。",id:"q-the-floating-button-disappeared--cant-be-opened-after-enabling-fps--开启-fps-后悬浮按钮消失无法打开",depth:3},{value:"Q: How does the floating button edge docking work? / 悬浮按钮的边缘吸附怎么用?",id:"q-how-does-the-floating-button-edge-docking-work--悬浮按钮的边缘吸附怎么用",depth:3},{value:"License / 许可证",id:"license--许可证",depth:2},{value:"Q: Can I use this in a commercial project? / 可以在商业项目中使用吗?",id:"q-can-i-use-this-in-a-commercial-project--可以在商业项目中使用吗",depth:3},{value:"Q: Are you liable for issues in modified versions? / 修改版出问题你们负责吗?",id:"q-are-you-liable-for-issues-in-modified-versions--修改版出问题你们负责吗",depth:3}]}r.default=(0,s.c)(function(e){let{toc:r=o(e)}=e,i={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",span:"span",strong:"strong",ul:"ul",...(0,d.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.h1,{children:"FAQ / 常见问题"}),"\n",(0,n.jsx)(i.h2,{id:r[0].id,children:r[0].value}),"\n",(0,n.jsx)(i.h3,{id:r[1].id,children:r[1].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," No. The inspector is automatically disabled in release mode via ",(0,n.jsx)(i.code,{children:"kReleaseMode"}),". Flutter’s tree-shaking removes all inspector-related code from production builds. You don’t need to remove any code."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"不会。"})," 检查器在 release 模式下通过 ",(0,n.jsx)(i.code,{children:"kReleaseMode"})," 自动禁用。Flutter 的 tree-shaking 会移除所有检查器相关代码,无需手动移除。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[2].id,children:r[2].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Android and iOS."]}),"\n",(0,n.jsx)(i.p,{children:"支持 Android 和 iOS。"}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[3].id,children:r[3].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Flutter >= 3.3.0, Dart SDK >= 3.11.0 < 4.0.0."]}),"\n",(0,n.jsx)(i.p,{children:"Flutter >= 3.3.0,Dart SDK >= 3.11.0 < 4.0.0。"}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[4].id,children:r[4].value}),"\n",(0,n.jsx)(i.h3,{id:r[5].id,children:r[5].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," No. Dio uses ",(0,n.jsx)(i.code,{children:"IOHttpClientAdapter"})," internally, which uses ",(0,n.jsx)(i.code,{children:"dart:io"}),"’s ",(0,n.jsx)(i.code,{children:"HttpClient"}),". The inspector captures all requests via ",(0,n.jsx)(i.code,{children:"HttpOverrides"})," automatically, making it truly zero-invasion for both http package and Dio."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"不需要。"})," Dio 内部使用 ",(0,n.jsx)(i.code,{children:"IOHttpClientAdapter"}),",底层使用 ",(0,n.jsx)(i.code,{children:"dart:io"})," 的 ",(0,n.jsx)(i.code,{children:"HttpClient"}),"。检查器通过 ",(0,n.jsx)(i.code,{children:"HttpOverrides"})," 自动捕获所有请求,对 http 包和 Dio 都是真正的零侵入。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[6].id,children:r[6].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," If you use both ",(0,n.jsx)(i.code,{children:"InspectorDioInterceptor"})," and the auto-capture (HttpOverrides), Dio requests will be recorded twice. Simply remove the manual ",(0,n.jsx)(i.code,{children:"InspectorDioInterceptor"})," — auto-capture handles everything."]}),"\n",(0,n.jsxs)(i.p,{children:["如果同时使用了 ",(0,n.jsx)(i.code,{children:"InspectorDioInterceptor"})," 和自动捕获(HttpOverrides),Dio 请求会被记录两次。移除手动 ",(0,n.jsx)(i.code,{children:"InspectorDioInterceptor"})," 即可,自动捕获会处理一切。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[7].id,children:r[7].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Yes (since v1.0.7). The inspector supports intercepting and modifying requests via rules. Open a request detail and tap the Interceptor icon to configure a rule. You can modify the ",(0,n.jsx)(i.strong,{children:"request body"})," and ",(0,n.jsx)(i.strong,{children:"request headers"})," only — response fields (status code, response body) are read-only (since v1.0.8). GET requests cannot be modified (no request body). The master toggle is on the Network list page; rules only apply when modification mode is enabled."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"可以"}),"(v1.0.7 起)。检查器支持通过规则拦截并修改请求。打开请求详情,点击拦截器图标配置规则。仅可修改",(0,n.jsx)(i.strong,{children:"请求体"}),"和",(0,n.jsx)(i.strong,{children:"请求头"}),"——响应字段(状态码、响应体)只读(v1.0.8 起)。GET 请求不可修改(无请求体)。总开关在 Network 列表页,规则仅在启用修改模式时生效。"]}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"Network-Inspector#request-interceptor--%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%E4%BF%AE%E6%94%B9",children:"Network Inspector > Request Interceptor"})," for details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"Network-Inspector#request-interceptor--%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%E4%BF%AE%E6%94%B9",children:"Network Inspector > 请求拦截修改"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[8].id,children:r[8].value}),"\n",(0,n.jsx)(i.h3,{id:r[9].id,children:r[9].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Yes! The inspector automatically captures logs from any library that uses ",(0,n.jsx)(i.code,{children:"print()"})," or ",(0,n.jsx)(i.code,{children:"debugPrint()"}),". No configuration needed. Third-party logs are categorized as ",(0,n.jsx)(i.strong,{children:"Info level"}),"."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"可以!"})," 检查器会自动捕获任何使用 ",(0,n.jsx)(i.code,{children:"print()"})," 或 ",(0,n.jsx)(i.code,{children:"debugPrint()"})," 的日志库的日志,无需配置。第三方日志统一归类为 ",(0,n.jsx)(i.strong,{children:"Info 级别"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[10].id,children:r[10].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Use the ",(0,n.jsx)(i.code,{children:"onLogCaptured"})," callback:"]}),"\n",(0,n.jsxs)(i.p,{children:["使用 ",(0,n.jsx)(i.code,{children:"onLogCaptured"})," 回调:"]}),"\n",(0,n.jsx)(i.pre,{tabIndex:"0","data-language":"dart","data-word-wrap":"","data-copy":"",children:(0,n.jsxs)(i.code,{children:[(0,n.jsxs)(i.span,{children:[(0,n.jsx)(i.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"InspectorLogInterceptor"}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:".instance.onLogCaptured "}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"="}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" (entry) {"})]}),"\n",(0,n.jsxs)(i.span,{children:[(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" yourLogger."}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"log"}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(entry.message);"})]}),"\n",(0,n.jsx)(i.span,{children:(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"};"})})]})}),"\n",(0,n.jsxs)(i.blockquote,{children:["\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"Warning"}),": Do NOT call ",(0,n.jsx)(i.code,{children:"print()"})," or logging methods inside this callback, as it will cause infinite recursion.\n",(0,n.jsx)(i.strong,{children:"警告"}),":不要在此回调中调用 ",(0,n.jsx)(i.code,{children:"print()"})," 或日志方法,否则会导致无限递归。"]}),"\n"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[11].id,children:r[11].value}),"\n",(0,n.jsx)(i.h3,{id:r[12].id,children:r[12].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," The inspector scans ",(0,n.jsx)(i.code,{children:"getApplicationDocumentsDirectory()"})," and ",(0,n.jsx)(i.code,{children:"getDatabasesPath()"})," for ",(0,n.jsx)(i.code,{children:".db"})," and ",(0,n.jsx)(i.code,{children:".sqlite"})," files. If your database is stored elsewhere, you can implement a custom ",(0,n.jsx)(i.code,{children:"DatabaseProvider"}),"."]}),"\n",(0,n.jsxs)(i.p,{children:["检查器扫描 ",(0,n.jsx)(i.code,{children:"getApplicationDocumentsDirectory()"})," 和 ",(0,n.jsx)(i.code,{children:"getDatabasesPath()"})," 目录中的 ",(0,n.jsx)(i.code,{children:".db"})," 和 ",(0,n.jsx)(i.code,{children:".sqlite"})," 文件。如果你的数据库存储在其他位置,可以实现自定义 ",(0,n.jsx)(i.code,{children:"DatabaseProvider"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[13].id,children:r[13].value}),"\n",(0,n.jsx)(i.h3,{id:r[14].id,children:r[14].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This is an expected behavior. When using ",(0,n.jsx)(i.code,{children:"flutter run"})," to debug via PC, the flutter tool sets up port forwarding between PC and device via ",(0,n.jsx)(i.code,{children:"adb reverse"}),", allowing PC-side DevTools to access the device’s VM Service. However, ",(0,n.jsx)(i.code,{children:"Service.getInfo()"})," returns a ",(0,n.jsx)(i.code,{children:"serverUri"})," from the PC’s perspective; when the app process internally accesses ",(0,n.jsx)(i.code,{children:"127.0.0.1:PC_port"}),", the device doesn’t have that port listening locally, resulting in ",(0,n.jsx)(i.code,{children:"Connection refused"})," and VM Service showing OFF."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"这是预期行为。"})," 使用 ",(0,n.jsx)(i.code,{children:"flutter run"})," 连接 PC 调试时,flutter tool 会通过 ",(0,n.jsx)(i.code,{children:"adb reverse"})," 在 PC 和设备之间做端口转发,让 PC 上的 DevTools 能访问设备的 VM Service。但应用进程内部 ",(0,n.jsx)(i.code,{children:"Service.getInfo()"})," 返回的 ",(0,n.jsx)(i.code,{children:"serverUri"})," 是 PC 视角的端口,应用进程访问 ",(0,n.jsx)(i.code,{children:"127.0.0.1:PC端口"})," 时设备本地并没有监听该端口,导致 Connection refused,VM Service 显示 OFF。"]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.strong,{children:"Workarounds / 解决方案:"})}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Open the debug app directly without PC connection — VM Service works normally / 直接打开 debug 应用(不连 PC),VM Service 正常工作"}),"\n",(0,n.jsx)(i.li,{children:"Use Native memory data (Android PSS / iOS physicalFootprint) as fallback — always available / 使用 Native 内存数据(Android PSS / iOS physicalFootprint)作为降级,始终可用"}),"\n",(0,n.jsx)(i.li,{children:"Process RSS is always available regardless of VM Service / 进程 RSS 无论 VM Service 状态都可用"}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"Memory-Viewer#vm-service-availability--vm-service-%E5%8F%AF%E7%94%A8%E6%80%A7",children:"Memory Viewer > VM Service Availability"})," for details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"Memory-Viewer#vm-service-availability--vm-service-%E5%8F%AF%E7%94%A8%E6%80%A7",children:"Memory Viewer > VM Service 可用性"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[15].id,children:r[15].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Memory monitoring is ",(0,n.jsx)(i.strong,{children:"off by default"})," (since v1.1.0). When disabled, all timers are stopped and VM Service connection is cleared, leaving zero overhead. When enabled, refresh intervals are optimized:"]}),"\n",(0,n.jsxs)(i.p,{children:["内存监控",(0,n.jsx)(i.strong,{children:"默认关闭"}),"(v1.1.0 起)。关闭时所有定时器停止、VM Service 连接清空,零开销。开启时刷新间隔已优化:"]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Process RSS / Dart Heap: 500ms"}),"\n",(0,n.jsx)(i.li,{children:"Native Memory: 3000ms"}),"\n",(0,n.jsx)(i.li,{children:"Storage Stats: 3000ms"}),"\n",(0,n.jsx)(i.li,{children:"Leak Detection: 2000ms"}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"You can toggle the switch at the top of the Memory panel anytime."}),"\n",(0,n.jsx)(i.p,{children:"可随时在 Memory 面板顶部切换开关。"}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[16].id,children:r[16].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," The current implementation uses ",(0,n.jsx)(i.code,{children:"WeakReference"})," + ",(0,n.jsx)(i.code,{children:"Finalizer"}),", which requires calling ",(0,n.jsx)(i.code,{children:"trackObject()"})," to register objects for tracking. This is a mild invasion (one line of code per tracked object)."]}),"\n",(0,n.jsxs)(i.p,{children:["当前实现使用 ",(0,n.jsx)(i.code,{children:"WeakReference"})," + ",(0,n.jsx)(i.code,{children:"Finalizer"}),",需要调用 ",(0,n.jsx)(i.code,{children:"trackObject()"})," 注册要追踪的对象。这是轻度侵入(每个追踪对象一行代码)。"]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.strong,{children:"Trade-offs / 取舍:"})}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Pros"}),": 100% reliable, doesn’t depend on VM Service, works in release mode / 100% 可靠,不依赖 VM Service,release 模式也可用"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Cons"}),": Requires user to know which objects to track / 需要用户知道要追踪哪些对象"]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"A zero-invasion Heap Snapshot comparison feature (based on VM Service) is technically possible but would strongly depend on VM Service availability (unavailable when debugging via PC), with significant performance overhead. Not currently implemented."}),"\n",(0,n.jsx)(i.p,{children:"零侵入的 Heap Snapshot 对比功能(基于 VM Service)技术上可行,但会强依赖 VM Service 可用性(PC 调试时不可用),且有显著性能开销。目前未实现。"}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"Memory-Viewer#6-memory-leak-detection--%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%E6%A3%80%E6%B5%8B",children:"Memory Viewer > Memory Leak Detection"})," for API details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"Memory-Viewer#6-memory-leak-detection--%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%E6%A3%80%E6%B5%8B",children:"Memory Viewer > 内存泄漏检测"})," 了解 API 详情。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[17].id,children:r[17].value}),"\n",(0,n.jsx)(i.h3,{id:r[18].id,children:r[18].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This was a bug fixed in v1.2.0. The root cause was that ",(0,n.jsx)(i.code,{children:"_recentFrameTimestamps.add(now)"})," was placed outside the for-loop in ",(0,n.jsx)(i.code,{children:"_onFrameTimings"}),"; since Flutter engine’s ",(0,n.jsx)(i.code,{children:"addTimingsCallback"})," is ",(0,n.jsx)(i.strong,{children:"batched"})," (may return multiple frames per call), only one timestamp was recorded per batch, undercounting FPS by 6-10x. Upgrade to ",(0,n.jsx)(i.code,{children:"^1.2.0"})," to fix this."]}),"\n",(0,n.jsxs)(i.p,{children:["这是 v1.2.0 已修复的 bug。根因是 ",(0,n.jsx)(i.code,{children:"_onFrameTimings"})," 中 ",(0,n.jsx)(i.code,{children:"_recentFrameTimestamps.add(now)"})," 在 for 循环外;Flutter 引擎的 ",(0,n.jsx)(i.code,{children:"addTimingsCallback"})," 是",(0,n.jsx)(i.strong,{children:"批量回调"}),"(一次可能返回多帧),但每批只记录 1 个时间戳,导致 FPS 计算偏低 6-10 倍。升级到 ",(0,n.jsx)(i.code,{children:"^1.2.0"})," 即可修复。"]}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"FPS-Viewer",children:"FPS Viewer"})," for details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"FPS-Viewer",children:"FPS Viewer"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[19].id,children:r[19].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," FPS monitoring is ",(0,n.jsx)(i.strong,{children:"off by default"})," (since v1.2.0). When disabled, no frame timings callbacks and no timers — zero overhead. When enabled, it only processes lightweight frame timing data with bounded history (60 trend points, up to 3600 frame records). You can toggle the switch at the top of the FPS panel anytime."]}),"\n",(0,n.jsxs)(i.p,{children:["FPS 监控",(0,n.jsx)(i.strong,{children:"默认关闭"}),"(v1.2.0 起)。关闭时无帧回调、无定时器——零开销。开启时仅处理轻量帧时序数据,历史有界(趋势 60 个点,帧记录最多 3600 条)。可随时在 FPS 面板顶部切换开关。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[20].id,children:r[20].value}),"\n",(0,n.jsx)(i.h3,{id:r[21].id,children:r[21].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This was fixed in v1.0.6. The floating button and panel are rendered via ",(0,n.jsx)(i.code,{children:"Overlay"}),", which is independent of the page layout and not affected by keyboard."]}),"\n",(0,n.jsxs)(i.p,{children:["此问题已在 v1.0.6 修复。悬浮按钮和面板通过 ",(0,n.jsx)(i.code,{children:"Overlay"})," 渲染,独立于页面布局,不受键盘影响。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[22].id,children:r[22].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Each viewer has its own search bar at the top. Database viewer has two-level search: global search (database list) and in-database search (table names + all column data)."]}),"\n",(0,n.jsx)(i.p,{children:"每个查看器顶部都有搜索栏。数据库查看器有双层搜索:全局搜索(数据库列表)和数据库内搜索(表名 + 所有列数据)。"}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[23].id,children:r[23].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This was a bug fixed in v1.2.0. The root cause was that ",(0,n.jsx)(i.code,{children:"FpsService.notifyListeners()"})," triggered Overlay rebuild; combined with the original Overlay lookup failure (using ",(0,n.jsx)(i.code,{children:"Overlay.of(context, rootOverlay: true)"})," which returned ",(0,n.jsx)(i.code,{children:"null"}),"), the button State was destroyed and could not recover. Upgrade to ",(0,n.jsx)(i.code,{children:"^1.2.0"})," which uses ",(0,n.jsx)(i.code,{children:"navigatorState.overlay"})," instead."]}),"\n",(0,n.jsxs)(i.p,{children:["这是 v1.2.0 已修复的 bug。根因是 ",(0,n.jsx)(i.code,{children:"FpsService.notifyListeners()"})," 触发 Overlay 重建,叠加原 Overlay 查找失败(使用 ",(0,n.jsx)(i.code,{children:"Overlay.of(context, rootOverlay: true)"})," 返回 ",(0,n.jsx)(i.code,{children:"null"}),"),导致按钮 State 被销毁且无法恢复。升级到 ",(0,n.jsx)(i.code,{children:"^1.2.0"}),",改用 ",(0,n.jsx)(i.code,{children:"navigatorState.overlay"})," 即可。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[24].id,children:r[24].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Since v1.2.0, when you drag the button near a screen edge and release, it auto-docks and tucks into the edge, leaving only a 24px peek visible. The icon becomes a directional chevron hinting you can tap to pull it out:"]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Tap the peek"})," → smoothly pulls out to fully visible (panel NOT opened, avoids accidental open) / 平滑拉出到完全可见(不打开面板,避免误触)"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Tap when fully visible"})," → opens the inspector panel / 打开检查器面板"]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"This design avoids conflicts with system back gestures (Android/iOS edge swipe to go back) when pulling out from the docked state."}),"\n",(0,n.jsx)(i.p,{children:"v1.2.0 起,拖动按钮靠近屏幕边缘松手即自动吸附并”收入”边缘,仅露 24px。图标变为方向箭头,提示可点击拉出:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"点击露出部分"})," → 平滑拉出到完全可见(不打开面板,避免误触)"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"完全可见时点击"})," → 打开检查器面板"]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"此设计避免了从吸附态拖出时与系统返回手势(Android/iOS 边缘右滑退出)的冲突。"}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"Usage#edge-docking-since-v120--%E8%BE%B9%E7%BC%98%E5%90%B8%E9%99%84v120-%E8%B5%B7",children:"Usage > Edge Docking"})," for details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"Usage#edge-docking-since-v120--%E8%BE%B9%E7%BC%98%E5%90%B8%E9%99%84v120-%E8%B5%B7",children:"Usage > 边缘吸附"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[25].id,children:r[25].value}),"\n",(0,n.jsx)(i.h3,{id:r[26].id,children:r[26].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This project is licensed under ",(0,n.jsx)(i.strong,{children:"GPL-3.0"}),". You can use it freely, but any modified commercial distribution must also be open-source under GPL-3.0."]}),"\n",(0,n.jsxs)(i.p,{children:["本项目采用 ",(0,n.jsx)(i.strong,{children:"GPL-3.0"})," 许可证。可以自由使用,但修改后的商业分发也必须在 GPL-3.0 下开源。"]}),"\n",(0,n.jsx)(i.h3,{id:r[27].id,children:r[27].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This plugin is provided “as is”, without warranty of any kind. The author assumes no responsibility or liability for the functionality, security, or any consequences arising from the use of modified versions or derivative projects."]}),"\n",(0,n.jsx)(i.p,{children:"本插件按”原样”提供,不提供任何担保。作者不对修改版或衍生项目的功能、安全性及任何使用后果承担责任。"})]})},"/FAQ",{filePath:"pages/FAQ.md",timestamp:1787178796e3,pageMap:t.v,frontMatter:{},title:"FAQ / 常见问题"},"undefined"==typeof RemoteContent?o:RemoteContent.useTOC)},7080:function(e,r,i){"use strict";i.d(r,{v:function(){return n}});let n=[{data:{index:"\uD83C\uDFE0 Home","Getting-Started":"\uD83D\uDE80 Getting Started",Installation:"\uD83D\uDCE6 Installation",Usage:"\uD83D\uDCD6 Usage","--features":{type:"separator",title:"\uD83D\uDD27 Features"},"Network-Inspector":"\uD83C\uDF10 Network Inspector","Log-Viewer":"\uD83D\uDCDD Log Viewer",Errors:"\uD83D\uDEA8 Errors","Database-Viewer":"\uD83D\uDCBE Database Viewer","Route-Tracker":"\uD83E\uDDED Route Tracker","Memory-Viewer":"\uD83D\uDCCA Memory Viewer","FPS-Viewer":"\uD83C\uDFAF FPS Viewer",Alerts:"\uD83D\uDD14 Alerts","--advanced":{type:"separator",title:"\uD83D\uDEE0 Advanced"},Configuration:"⚙️ Configuration","Custom-Database-Provider":"\uD83D\uDD0C Custom Database Provider","--info":{type:"separator",title:"ℹ️ Info"},FAQ:"❓ FAQ"}},{name:"Alerts",route:"/Alerts",frontMatter:{sidebarTitle:"Alerts"}},{name:"Configuration",route:"/Configuration",frontMatter:{sidebarTitle:"Configuration"}},{name:"Custom-Database-Provider",route:"/Custom-Database-Provider",frontMatter:{sidebarTitle:"Custom Database Provider"}},{name:"Database-Viewer",route:"/Database-Viewer",frontMatter:{sidebarTitle:"Database Viewer"}},{name:"Errors",route:"/Errors",frontMatter:{sidebarTitle:"Errors"}},{name:"FAQ",route:"/FAQ",frontMatter:{sidebarTitle:"Faq"}},{name:"FPS-Viewer",route:"/FPS-Viewer",frontMatter:{sidebarTitle:"Fps Viewer"}},{name:"Getting-Started",route:"/Getting-Started",frontMatter:{sidebarTitle:"Getting Started"}},{name:"index",route:"/",frontMatter:{sidebarTitle:"Index"}},{name:"Installation",route:"/Installation",frontMatter:{sidebarTitle:"Installation"}},{name:"Log-Viewer",route:"/Log-Viewer",frontMatter:{sidebarTitle:"Log Viewer"}},{name:"Memory-Viewer",route:"/Memory-Viewer",frontMatter:{sidebarTitle:"Memory Viewer"}},{name:"Network-Inspector",route:"/Network-Inspector",frontMatter:{sidebarTitle:"Network Inspector"}},{name:"Route-Tracker",route:"/Route-Tracker",frontMatter:{sidebarTitle:"Route Tracker"}},{name:"Usage",route:"/Usage",frontMatter:{sidebarTitle:"Usage"}}]}},function(e){e.O(0,[812,888,774,179],function(){return e(e.s=9238)}),_N_E=e.O()}]);
\ No newline at end of file
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[210],{9238:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/FAQ",function(){return i(5797)}])},5797:function(e,r,i){"use strict";i.r(r),i.d(r,{useTOC:function(){return o}});var n=i(5893),s=i(7812),t=i(7080),d=i(8925);function o(e){return[{value:"General / 通用",id:"general--通用",depth:2},{value:"Q: Does the inspector affect production builds? / 检查器会影响生产构建吗?",id:"q-does-the-inspector-affect-production-builds--检查器会影响生产构建吗",depth:3},{value:"Q: What platforms are supported? / 支持哪些平台?",id:"q-what-platforms-are-supported--支持哪些平台",depth:3},{value:"Q: What Flutter/Dart versions are required? / 需要什么 Flutter/Dart 版本?",id:"q-what-flutterdart-versions-are-required--需要什么-flutterdart-版本",depth:3},{value:"Network / 网络",id:"network--网络",depth:2},{value:"Q: Do I need to manually add interceptors for Dio? / 需要为 Dio 手动添加拦截器吗?",id:"q-do-i-need-to-manually-add-interceptors-for-dio--需要为-dio-手动添加拦截器吗",depth:3},{value:"Q: Why do I see duplicate Dio requests? / 为什么看到重复的 Dio 请求?",id:"q-why-do-i-see-duplicate-dio-requests--为什么看到重复的-dio-请求",depth:3},{value:"Q: Can I modify requests during testing? / 测试时可以修改请求吗?",id:"q-can-i-modify-requests-during-testing--测试时可以修改请求吗",depth:3},{value:"Logging / 日志",id:"logging--日志",depth:2},{value:"Q: Can I use my existing logging library? / 可以使用现有的日志库吗?",id:"q-can-i-use-my-existing-logging-library--可以使用现有的日志库吗",depth:3},{value:"Q: How to sync inspector logs to my logger? / 如何将检查器日志同步到我的日志库?",id:"q-how-to-sync-inspector-logs-to-my-logger--如何将检查器日志同步到我的日志库",depth:3},{value:"Database / 数据库",id:"database--数据库",depth:2},{value:"Q: Why don’t I see any databases? / 为什么看不到数据库?",id:"q-why-dont-i-see-any-databases--为什么看不到数据库",depth:3},{value:"Memory / 内存",id:"memory--内存",depth:2},{value:"Q: Why does Dart Heap show “N/A” when debugging via PC? / 通过 PC 调试时为什么 Dart Heap 显示 “N/A”?",id:"q-why-does-dart-heap-show-na-when-debugging-via-pc--通过-pc-调试时为什么-dart-heap-显示-na",depth:3},{value:"Q: Does memory monitoring affect performance? / 内存监控会影响性能吗?",id:"q-does-memory-monitoring-affect-performance--内存监控会影响性能吗",depth:3},{value:"Q: Does leak detection require code modification? / 泄漏检测需要侵入代码吗?",id:"q-does-leak-detection-require-code-modification--泄漏检测需要侵入代码吗",depth:3},{value:"FPS / 帧率",id:"fps--帧率",depth:2},{value:"Q: Why does FPS show a very low value (e.g. 9-10 FPS)? / 为什么 FPS 显示很低(如 9-10)?",id:"q-why-does-fps-show-a-very-low-value-eg-9-10-fps--为什么-fps-显示很低如-9-10",depth:3},{value:"Q: Does FPS monitoring affect performance? / FPS 监控会影响性能吗?",id:"q-does-fps-monitoring-affect-performance--fps-监控会影响性能吗",depth:3},{value:"UI / 界面",id:"ui--界面",depth:2},{value:"Q: The inspector panel gets pushed up when keyboard appears. / 键盘弹出时检查器面板被顶起来了。",id:"q-the-inspector-panel-gets-pushed-up-when-keyboard-appears--键盘弹出时检查器面板被顶起来了",depth:3},{value:"Q: How to use search? / 如何使用搜索?",id:"q-how-to-use-search--如何使用搜索",depth:3},{value:"Q: The floating button disappeared / can’t be opened after enabling FPS. / 开启 FPS 后悬浮按钮消失/无法打开。",id:"q-the-floating-button-disappeared--cant-be-opened-after-enabling-fps--开启-fps-后悬浮按钮消失无法打开",depth:3},{value:"Q: How does the floating button edge docking work? / 悬浮按钮的边缘吸附怎么用?",id:"q-how-does-the-floating-button-edge-docking-work--悬浮按钮的边缘吸附怎么用",depth:3},{value:"License / 许可证",id:"license--许可证",depth:2},{value:"Q: Can I use this in a commercial project? / 可以在商业项目中使用吗?",id:"q-can-i-use-this-in-a-commercial-project--可以在商业项目中使用吗",depth:3},{value:"Q: Are you liable for issues in modified versions? / 修改版出问题你们负责吗?",id:"q-are-you-liable-for-issues-in-modified-versions--修改版出问题你们负责吗",depth:3}]}r.default=(0,s.c)(function(e){let{toc:r=o(e)}=e,i={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",span:"span",strong:"strong",ul:"ul",...(0,d.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.h1,{children:"FAQ / 常见问题"}),"\n",(0,n.jsx)(i.h2,{id:r[0].id,children:r[0].value}),"\n",(0,n.jsx)(i.h3,{id:r[1].id,children:r[1].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," No. The inspector is automatically disabled in release mode via ",(0,n.jsx)(i.code,{children:"kReleaseMode"}),". Flutter’s tree-shaking removes all inspector-related code from production builds. You don’t need to remove any code."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"不会。"})," 检查器在 release 模式下通过 ",(0,n.jsx)(i.code,{children:"kReleaseMode"})," 自动禁用。Flutter 的 tree-shaking 会移除所有检查器相关代码,无需手动移除。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[2].id,children:r[2].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Android and iOS."]}),"\n",(0,n.jsx)(i.p,{children:"支持 Android 和 iOS。"}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[3].id,children:r[3].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Flutter >= 3.3.0, Dart SDK >= 3.11.0 < 4.0.0."]}),"\n",(0,n.jsx)(i.p,{children:"Flutter >= 3.3.0,Dart SDK >= 3.11.0 < 4.0.0。"}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[4].id,children:r[4].value}),"\n",(0,n.jsx)(i.h3,{id:r[5].id,children:r[5].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," No. Dio uses ",(0,n.jsx)(i.code,{children:"IOHttpClientAdapter"})," internally, which uses ",(0,n.jsx)(i.code,{children:"dart:io"}),"’s ",(0,n.jsx)(i.code,{children:"HttpClient"}),". The inspector captures all requests via ",(0,n.jsx)(i.code,{children:"HttpOverrides"})," automatically, making it truly zero-invasion for both http package and Dio."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"不需要。"})," Dio 内部使用 ",(0,n.jsx)(i.code,{children:"IOHttpClientAdapter"}),",底层使用 ",(0,n.jsx)(i.code,{children:"dart:io"})," 的 ",(0,n.jsx)(i.code,{children:"HttpClient"}),"。检查器通过 ",(0,n.jsx)(i.code,{children:"HttpOverrides"})," 自动捕获所有请求,对 http 包和 Dio 都是真正的零侵入。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[6].id,children:r[6].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," If you use both ",(0,n.jsx)(i.code,{children:"InspectorDioInterceptor"})," and the auto-capture (HttpOverrides), Dio requests will be recorded twice. Simply remove the manual ",(0,n.jsx)(i.code,{children:"InspectorDioInterceptor"})," — auto-capture handles everything."]}),"\n",(0,n.jsxs)(i.p,{children:["如果同时使用了 ",(0,n.jsx)(i.code,{children:"InspectorDioInterceptor"})," 和自动捕获(HttpOverrides),Dio 请求会被记录两次。移除手动 ",(0,n.jsx)(i.code,{children:"InspectorDioInterceptor"})," 即可,自动捕获会处理一切。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[7].id,children:r[7].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Yes (since v1.0.7). The inspector supports intercepting and modifying requests via rules. Open a request detail and tap the Interceptor icon to configure a rule. You can modify the ",(0,n.jsx)(i.strong,{children:"request body"})," and ",(0,n.jsx)(i.strong,{children:"request headers"})," only — response fields (status code, response body) are read-only (since v1.0.8). GET requests cannot be modified (no request body). The master toggle is on the Network list page; rules only apply when modification mode is enabled."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"可以"}),"(v1.0.7 起)。检查器支持通过规则拦截并修改请求。打开请求详情,点击拦截器图标配置规则。仅可修改",(0,n.jsx)(i.strong,{children:"请求体"}),"和",(0,n.jsx)(i.strong,{children:"请求头"}),"——响应字段(状态码、响应体)只读(v1.0.8 起)。GET 请求不可修改(无请求体)。总开关在 Network 列表页,规则仅在启用修改模式时生效。"]}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"Network-Inspector#request-interceptor--%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%E4%BF%AE%E6%94%B9",children:"Network Inspector > Request Interceptor"})," for details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"Network-Inspector#request-interceptor--%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%E4%BF%AE%E6%94%B9",children:"Network Inspector > 请求拦截修改"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[8].id,children:r[8].value}),"\n",(0,n.jsx)(i.h3,{id:r[9].id,children:r[9].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Yes! The inspector automatically captures logs from any library that uses ",(0,n.jsx)(i.code,{children:"print()"})," or ",(0,n.jsx)(i.code,{children:"debugPrint()"}),". No configuration needed. Third-party logs are categorized as ",(0,n.jsx)(i.strong,{children:"Info level"}),"."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"可以!"})," 检查器会自动捕获任何使用 ",(0,n.jsx)(i.code,{children:"print()"})," 或 ",(0,n.jsx)(i.code,{children:"debugPrint()"})," 的日志库的日志,无需配置。第三方日志统一归类为 ",(0,n.jsx)(i.strong,{children:"Info 级别"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[10].id,children:r[10].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Use the ",(0,n.jsx)(i.code,{children:"onLogCaptured"})," callback:"]}),"\n",(0,n.jsxs)(i.p,{children:["使用 ",(0,n.jsx)(i.code,{children:"onLogCaptured"})," 回调:"]}),"\n",(0,n.jsx)(i.pre,{tabIndex:"0","data-language":"dart","data-word-wrap":"","data-copy":"",children:(0,n.jsxs)(i.code,{children:[(0,n.jsxs)(i.span,{children:[(0,n.jsx)(i.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"InspectorLogInterceptor"}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:".instance.onLogCaptured "}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"="}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" (entry) {"})]}),"\n",(0,n.jsxs)(i.span,{children:[(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" yourLogger."}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"log"}),(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(entry.message);"})]}),"\n",(0,n.jsx)(i.span,{children:(0,n.jsx)(i.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"};"})})]})}),"\n",(0,n.jsxs)(i.blockquote,{children:["\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"Warning"}),": Do NOT call ",(0,n.jsx)(i.code,{children:"print()"})," or logging methods inside this callback, as it will cause infinite recursion.\n",(0,n.jsx)(i.strong,{children:"警告"}),":不要在此回调中调用 ",(0,n.jsx)(i.code,{children:"print()"})," 或日志方法,否则会导致无限递归。"]}),"\n"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[11].id,children:r[11].value}),"\n",(0,n.jsx)(i.h3,{id:r[12].id,children:r[12].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," The inspector scans ",(0,n.jsx)(i.code,{children:"getApplicationDocumentsDirectory()"})," and ",(0,n.jsx)(i.code,{children:"getDatabasesPath()"})," for ",(0,n.jsx)(i.code,{children:".db"})," and ",(0,n.jsx)(i.code,{children:".sqlite"})," files. If your database is stored elsewhere, you can implement a custom ",(0,n.jsx)(i.code,{children:"DatabaseProvider"}),"."]}),"\n",(0,n.jsxs)(i.p,{children:["检查器扫描 ",(0,n.jsx)(i.code,{children:"getApplicationDocumentsDirectory()"})," 和 ",(0,n.jsx)(i.code,{children:"getDatabasesPath()"})," 目录中的 ",(0,n.jsx)(i.code,{children:".db"})," 和 ",(0,n.jsx)(i.code,{children:".sqlite"})," 文件。如果你的数据库存储在其他位置,可以实现自定义 ",(0,n.jsx)(i.code,{children:"DatabaseProvider"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[13].id,children:r[13].value}),"\n",(0,n.jsx)(i.h3,{id:r[14].id,children:r[14].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This is an expected behavior. When using ",(0,n.jsx)(i.code,{children:"flutter run"})," to debug via PC, the flutter tool sets up port forwarding between PC and device via ",(0,n.jsx)(i.code,{children:"adb reverse"}),", allowing PC-side DevTools to access the device’s VM Service. However, ",(0,n.jsx)(i.code,{children:"Service.getInfo()"})," returns a ",(0,n.jsx)(i.code,{children:"serverUri"})," from the PC’s perspective; when the app process internally accesses ",(0,n.jsx)(i.code,{children:"127.0.0.1:PC_port"}),", the device doesn’t have that port listening locally, resulting in ",(0,n.jsx)(i.code,{children:"Connection refused"})," and VM Service showing OFF."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"这是预期行为。"})," 使用 ",(0,n.jsx)(i.code,{children:"flutter run"})," 连接 PC 调试时,flutter tool 会通过 ",(0,n.jsx)(i.code,{children:"adb reverse"})," 在 PC 和设备之间做端口转发,让 PC 上的 DevTools 能访问设备的 VM Service。但应用进程内部 ",(0,n.jsx)(i.code,{children:"Service.getInfo()"})," 返回的 ",(0,n.jsx)(i.code,{children:"serverUri"})," 是 PC 视角的端口,应用进程访问 ",(0,n.jsx)(i.code,{children:"127.0.0.1:PC端口"})," 时设备本地并没有监听该端口,导致 Connection refused,VM Service 显示 OFF。"]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.strong,{children:"Workarounds / 解决方案:"})}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Open the debug app directly without PC connection — VM Service works normally / 直接打开 debug 应用(不连 PC),VM Service 正常工作"}),"\n",(0,n.jsx)(i.li,{children:"Use Native memory data (Android PSS / iOS physicalFootprint) as fallback — always available / 使用 Native 内存数据(Android PSS / iOS physicalFootprint)作为降级,始终可用"}),"\n",(0,n.jsx)(i.li,{children:"Process RSS is always available regardless of VM Service / 进程 RSS 无论 VM Service 状态都可用"}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"Memory-Viewer#vm-service-availability--vm-service-%E5%8F%AF%E7%94%A8%E6%80%A7",children:"Memory Viewer > VM Service Availability"})," for details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"Memory-Viewer#vm-service-availability--vm-service-%E5%8F%AF%E7%94%A8%E6%80%A7",children:"Memory Viewer > VM Service 可用性"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[15].id,children:r[15].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Memory monitoring is ",(0,n.jsx)(i.strong,{children:"off by default"})," (since v1.1.0). When disabled, all timers are stopped and VM Service connection is cleared, leaving zero overhead. When enabled, refresh intervals are optimized:"]}),"\n",(0,n.jsxs)(i.p,{children:["内存监控",(0,n.jsx)(i.strong,{children:"默认关闭"}),"(v1.1.0 起)。关闭时所有定时器停止、VM Service 连接清空,零开销。开启时刷新间隔已优化:"]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Process RSS / Dart Heap: 500ms"}),"\n",(0,n.jsx)(i.li,{children:"Native Memory: 3000ms"}),"\n",(0,n.jsx)(i.li,{children:"Storage Stats: 3000ms"}),"\n",(0,n.jsx)(i.li,{children:"Leak Detection: 2000ms"}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"You can toggle the switch at the top of the Memory panel anytime."}),"\n",(0,n.jsx)(i.p,{children:"可随时在 Memory 面板顶部切换开关。"}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[16].id,children:r[16].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," The current implementation uses ",(0,n.jsx)(i.code,{children:"WeakReference"})," + ",(0,n.jsx)(i.code,{children:"Finalizer"}),", which requires calling ",(0,n.jsx)(i.code,{children:"trackObject()"})," to register objects for tracking. This is a mild invasion (one line of code per tracked object)."]}),"\n",(0,n.jsxs)(i.p,{children:["当前实现使用 ",(0,n.jsx)(i.code,{children:"WeakReference"})," + ",(0,n.jsx)(i.code,{children:"Finalizer"}),",需要调用 ",(0,n.jsx)(i.code,{children:"trackObject()"})," 注册要追踪的对象。这是轻度侵入(每个追踪对象一行代码)。"]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.strong,{children:"Trade-offs / 取舍:"})}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Pros"}),": 100% reliable, doesn’t depend on VM Service, works in release mode / 100% 可靠,不依赖 VM Service,release 模式也可用"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Cons"}),": Requires user to know which objects to track / 需要用户知道要追踪哪些对象"]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"A zero-invasion Heap Snapshot comparison feature (based on VM Service) is technically possible but would strongly depend on VM Service availability (unavailable when debugging via PC), with significant performance overhead. Not currently implemented."}),"\n",(0,n.jsx)(i.p,{children:"零侵入的 Heap Snapshot 对比功能(基于 VM Service)技术上可行,但会强依赖 VM Service 可用性(PC 调试时不可用),且有显著性能开销。目前未实现。"}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"Memory-Viewer#6-memory-leak-detection--%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%E6%A3%80%E6%B5%8B",children:"Memory Viewer > Memory Leak Detection"})," for API details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"Memory-Viewer#6-memory-leak-detection--%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%E6%A3%80%E6%B5%8B",children:"Memory Viewer > 内存泄漏检测"})," 了解 API 详情。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[17].id,children:r[17].value}),"\n",(0,n.jsx)(i.h3,{id:r[18].id,children:r[18].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This was a bug fixed in v1.2.0. The root cause was that ",(0,n.jsx)(i.code,{children:"_recentFrameTimestamps.add(now)"})," was placed outside the for-loop in ",(0,n.jsx)(i.code,{children:"_onFrameTimings"}),"; since Flutter engine’s ",(0,n.jsx)(i.code,{children:"addTimingsCallback"})," is ",(0,n.jsx)(i.strong,{children:"batched"})," (may return multiple frames per call), only one timestamp was recorded per batch, undercounting FPS by 6-10x. Upgrade to ",(0,n.jsx)(i.code,{children:"^1.2.0"})," to fix this."]}),"\n",(0,n.jsxs)(i.p,{children:["这是 v1.2.0 已修复的 bug。根因是 ",(0,n.jsx)(i.code,{children:"_onFrameTimings"})," 中 ",(0,n.jsx)(i.code,{children:"_recentFrameTimestamps.add(now)"})," 在 for 循环外;Flutter 引擎的 ",(0,n.jsx)(i.code,{children:"addTimingsCallback"})," 是",(0,n.jsx)(i.strong,{children:"批量回调"}),"(一次可能返回多帧),但每批只记录 1 个时间戳,导致 FPS 计算偏低 6-10 倍。升级到 ",(0,n.jsx)(i.code,{children:"^1.2.0"})," 即可修复。"]}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"FPS-Viewer",children:"FPS Viewer"})," for details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"FPS-Viewer",children:"FPS Viewer"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[19].id,children:r[19].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," FPS monitoring is ",(0,n.jsx)(i.strong,{children:"off by default"})," (since v1.2.0). When disabled, no frame timings callbacks and no timers — zero overhead. When enabled, it only processes lightweight frame timing data with bounded history (60 trend points, up to 3600 frame records). You can toggle the switch at the top of the FPS panel anytime."]}),"\n",(0,n.jsxs)(i.p,{children:["FPS 监控",(0,n.jsx)(i.strong,{children:"默认关闭"}),"(v1.2.0 起)。关闭时无帧回调、无定时器——零开销。开启时仅处理轻量帧时序数据,历史有界(趋势 60 个点,帧记录最多 3600 条)。可随时在 FPS 面板顶部切换开关。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[20].id,children:r[20].value}),"\n",(0,n.jsx)(i.h3,{id:r[21].id,children:r[21].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This was fixed in v1.0.6. The floating button and panel are rendered via ",(0,n.jsx)(i.code,{children:"Overlay"}),", which is independent of the page layout and not affected by keyboard."]}),"\n",(0,n.jsxs)(i.p,{children:["此问题已在 v1.0.6 修复。悬浮按钮和面板通过 ",(0,n.jsx)(i.code,{children:"Overlay"})," 渲染,独立于页面布局,不受键盘影响。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[22].id,children:r[22].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Each viewer has its own search bar at the top. Database viewer has two-level search: global search (database list) and in-database search (table names + all column data)."]}),"\n",(0,n.jsx)(i.p,{children:"每个查看器顶部都有搜索栏。数据库查看器有双层搜索:全局搜索(数据库列表)和数据库内搜索(表名 + 所有列数据)。"}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[23].id,children:r[23].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This was a bug fixed in v1.2.0. The root cause was that ",(0,n.jsx)(i.code,{children:"FpsService.notifyListeners()"})," triggered Overlay rebuild; combined with the original Overlay lookup failure (using ",(0,n.jsx)(i.code,{children:"Overlay.of(context, rootOverlay: true)"})," which returned ",(0,n.jsx)(i.code,{children:"null"}),"), the button State was destroyed and could not recover. Upgrade to ",(0,n.jsx)(i.code,{children:"^1.2.0"})," which uses ",(0,n.jsx)(i.code,{children:"navigatorState.overlay"})," instead."]}),"\n",(0,n.jsxs)(i.p,{children:["这是 v1.2.0 已修复的 bug。根因是 ",(0,n.jsx)(i.code,{children:"FpsService.notifyListeners()"})," 触发 Overlay 重建,叠加原 Overlay 查找失败(使用 ",(0,n.jsx)(i.code,{children:"Overlay.of(context, rootOverlay: true)"})," 返回 ",(0,n.jsx)(i.code,{children:"null"}),"),导致按钮 State 被销毁且无法恢复。升级到 ",(0,n.jsx)(i.code,{children:"^1.2.0"}),",改用 ",(0,n.jsx)(i.code,{children:"navigatorState.overlay"})," 即可。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h3,{id:r[24].id,children:r[24].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Since v1.2.0, when you drag the button near a screen edge and release, it auto-docks and tucks into the edge, leaving only a 24px peek visible. The icon becomes a directional chevron hinting you can tap to pull it out:"]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Tap the peek"})," → smoothly pulls out to fully visible (panel NOT opened, avoids accidental open) / 平滑拉出到完全可见(不打开面板,避免误触)"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Tap when fully visible"})," → opens the inspector panel / 打开检查器面板"]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"This design avoids conflicts with system back gestures (Android/iOS edge swipe to go back) when pulling out from the docked state."}),"\n",(0,n.jsx)(i.p,{children:"v1.2.0 起,拖动按钮靠近屏幕边缘松手即自动吸附并”收入”边缘,仅露 24px。图标变为方向箭头,提示可点击拉出:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"点击露出部分"})," → 平滑拉出到完全可见(不打开面板,避免误触)"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"完全可见时点击"})," → 打开检查器面板"]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"此设计避免了从吸附态拖出时与系统返回手势(Android/iOS 边缘右滑退出)的冲突。"}),"\n",(0,n.jsxs)(i.p,{children:["See ",(0,n.jsx)(i.a,{href:"Usage#edge-docking-since-v120--%E8%BE%B9%E7%BC%98%E5%90%B8%E9%99%84v120-%E8%B5%B7",children:"Usage > Edge Docking"})," for details."]}),"\n",(0,n.jsxs)(i.p,{children:["详见 ",(0,n.jsx)(i.a,{href:"Usage#edge-docking-since-v120--%E8%BE%B9%E7%BC%98%E5%90%B8%E9%99%84v120-%E8%B5%B7",children:"Usage > 边缘吸附"}),"。"]}),"\n",(0,n.jsx)(i.hr,{}),"\n",(0,n.jsx)(i.h2,{id:r[25].id,children:r[25].value}),"\n",(0,n.jsx)(i.h3,{id:r[26].id,children:r[26].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," Yes. This project is licensed under ",(0,n.jsx)(i.strong,{children:"MPL-2.0"}),". You can use it in closed-source commercial apps — if you use it ",(0,n.jsx)(i.strong,{children:"unmodified"}),", no source disclosure is required. If you ",(0,n.jsx)(i.strong,{children:"modify"})," the plugin’s source files, those modified files must be published in source form under MPL-2.0 (your own app still does not need to be open-sourced)."]}),"\n",(0,n.jsxs)(i.p,{children:["可以。本项目采用 ",(0,n.jsx)(i.strong,{children:"MPL-2.0"})," 许可证,可用于闭源商业 App——",(0,n.jsx)(i.strong,{children:"未修改"}),"直接使用时无需公开任何源码;若",(0,n.jsx)(i.strong,{children:"修改"}),"了插件源文件,被修改的文件必须以 MPL-2.0 公开源码(你自己的 App 仍无需开源)。"]}),"\n",(0,n.jsx)(i.h3,{id:r[27].id,children:r[27].value}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"A:"})," This plugin is provided “as is”, without warranty of any kind. The author assumes no responsibility or liability for the functionality, security, or any consequences arising from the use of modified versions or derivative projects."]}),"\n",(0,n.jsx)(i.p,{children:"本插件按”原样”提供,不提供任何担保。作者不对修改版或衍生项目的功能、安全性及任何使用后果承担责任。"})]})},"/FAQ",{filePath:"pages/FAQ.md",timestamp:1787178796e3,pageMap:t.v,frontMatter:{},title:"FAQ / 常见问题"},"undefined"==typeof RemoteContent?o:RemoteContent.useTOC)},7080:function(e,r,i){"use strict";i.d(r,{v:function(){return n}});let n=[{data:{index:"\uD83C\uDFE0 Home","Getting-Started":"\uD83D\uDE80 Getting Started",Installation:"\uD83D\uDCE6 Installation",Usage:"\uD83D\uDCD6 Usage","--features":{type:"separator",title:"\uD83D\uDD27 Features"},"Network-Inspector":"\uD83C\uDF10 Network Inspector","Log-Viewer":"\uD83D\uDCDD Log Viewer",Errors:"\uD83D\uDEA8 Errors","Database-Viewer":"\uD83D\uDCBE Database Viewer","Route-Tracker":"\uD83E\uDDED Route Tracker","Memory-Viewer":"\uD83D\uDCCA Memory Viewer","FPS-Viewer":"\uD83C\uDFAF FPS Viewer",Alerts:"\uD83D\uDD14 Alerts","--advanced":{type:"separator",title:"\uD83D\uDEE0 Advanced"},Configuration:"⚙️ Configuration","Custom-Database-Provider":"\uD83D\uDD0C Custom Database Provider","--info":{type:"separator",title:"ℹ️ Info"},FAQ:"❓ FAQ"}},{name:"Alerts",route:"/Alerts",frontMatter:{sidebarTitle:"Alerts"}},{name:"Configuration",route:"/Configuration",frontMatter:{sidebarTitle:"Configuration"}},{name:"Custom-Database-Provider",route:"/Custom-Database-Provider",frontMatter:{sidebarTitle:"Custom Database Provider"}},{name:"Database-Viewer",route:"/Database-Viewer",frontMatter:{sidebarTitle:"Database Viewer"}},{name:"Errors",route:"/Errors",frontMatter:{sidebarTitle:"Errors"}},{name:"FAQ",route:"/FAQ",frontMatter:{sidebarTitle:"Faq"}},{name:"FPS-Viewer",route:"/FPS-Viewer",frontMatter:{sidebarTitle:"Fps Viewer"}},{name:"Getting-Started",route:"/Getting-Started",frontMatter:{sidebarTitle:"Getting Started"}},{name:"index",route:"/",frontMatter:{sidebarTitle:"Index"}},{name:"Installation",route:"/Installation",frontMatter:{sidebarTitle:"Installation"}},{name:"Log-Viewer",route:"/Log-Viewer",frontMatter:{sidebarTitle:"Log Viewer"}},{name:"Memory-Viewer",route:"/Memory-Viewer",frontMatter:{sidebarTitle:"Memory Viewer"}},{name:"Network-Inspector",route:"/Network-Inspector",frontMatter:{sidebarTitle:"Network Inspector"}},{name:"Route-Tracker",route:"/Route-Tracker",frontMatter:{sidebarTitle:"Route Tracker"}},{name:"Usage",route:"/Usage",frontMatter:{sidebarTitle:"Usage"}}]}},function(e){e.O(0,[812,888,774,179],function(){return e(e.s=9238)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/docs/_next/static/chunks/pages/Installation-08d244ae3720e0b3.js b/docs/_next/static/chunks/pages/Installation-08d244ae3720e0b3.js
deleted file mode 100644
index 529c586..0000000
--- a/docs/_next/static/chunks/pages/Installation-08d244ae3720e0b3.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[139],{9720:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Installation",function(){return t(1220)}])},1220:function(e,i,t){"use strict";t.r(i),t.d(i,{useTOC:function(){return l}});var r=t(5893),n=t(7812),s=t(7080),a=t(8925),d=t(5192);function l(e){return[{value:"From pub.dev (Recommended) / 从 pub.dev 安装(推荐)",id:"from-pubdev-recommended--从-pubdev-安装推荐",depth:2},{value:"From GitHub / 从 GitHub 安装",id:"from-github--从-github-安装",depth:2},{value:"Platform Setup / 平台配置",id:"platform-setup--平台配置",depth:2},{value:"Android",id:"android",depth:3},{value:"iOS",id:"ios",depth:3},{value:"Import / 导入",id:"import--导入",depth:2},{value:"Requirements / 环境要求",id:"requirements--环境要求",depth:2},{value:"Next Steps / 下一步",id:"next-steps--下一步",depth:2}]}i.default=(0,n.c)(function(e){let{toc:i=l(e)}=e,t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{children:"Installation / 安装"}),"\n",(0,r.jsx)(t.h2,{id:i[0].id,children:i[0].value}),"\n",(0,r.jsxs)(t.p,{children:["Add the following to your ",(0,r.jsx)(t.code,{children:"pubspec.yaml"}),":"]}),"\n",(0,r.jsxs)(t.p,{children:["在 ",(0,r.jsx)(t.code,{children:"pubspec.yaml"})," 中添加以下依赖:"]}),"\n",(0,r.jsx)(t.pre,{tabIndex:"0","data-language":"yaml","data-word-wrap":"","data-copy":"",children:(0,r.jsxs)(t.code,{children:[(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:"dependencies"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" zero_inspector_kit"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": "}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"^1.9.1"})]})]})}),"\n",(0,r.jsx)(t.p,{children:"Then run:"}),"\n",(0,r.jsx)(t.p,{children:"然后运行:"}),"\n",(0,r.jsx)(t.pre,{icon:d.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(t.code,{children:(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"flutter"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" pub"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" get"})]})})}),"\n",(0,r.jsx)(t.h2,{id:i[1].id,children:i[1].value}),"\n",(0,r.jsx)(t.p,{children:"Alternatively, install from GitHub:"}),"\n",(0,r.jsx)(t.p,{children:"或者从 GitHub 安装:"}),"\n",(0,r.jsx)(t.pre,{tabIndex:"0","data-language":"yaml","data-word-wrap":"","data-copy":"",children:(0,r.jsxs)(t.code,{children:[(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:"dependencies"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" zero_inspector_kit"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" git"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" url"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": "}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"https://github.com/zero-labsco/zero_inspector_kit.git"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" ref"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": "}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"release/v1.9.1"})]})]})}),"\n",(0,r.jsx)(t.h2,{id:i[2].id,children:i[2].value}),"\n",(0,r.jsx)(t.h3,{id:i[3].id,children:i[3].value}),"\n",(0,r.jsx)(t.p,{children:"No additional configuration needed."}),"\n",(0,r.jsx)(t.p,{children:"无需额外配置。"}),"\n",(0,r.jsx)(t.h3,{id:i[4].id,children:i[4].value}),"\n",(0,r.jsx)(t.p,{children:"No additional configuration needed."}),"\n",(0,r.jsx)(t.p,{children:"无需额外配置。"}),"\n",(0,r.jsx)(t.h2,{id:i[5].id,children:i[5].value}),"\n",(0,r.jsx)(t.pre,{tabIndex:"0","data-language":"dart","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(t.code,{children:(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" 'package:zero_inspector_kit/zero_inspector_kit.dart'"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:";"})]})})}),"\n",(0,r.jsx)(t.h2,{id:i[6].id,children:i[6].value}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Requirement"}),(0,r.jsx)(t.th,{children:"Version"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Flutter"}),(0,r.jsx)(t.td,{children:">= 3.3.0"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Dart SDK"}),(0,r.jsx)(t.td,{children:">= 3.11.0 < 4.0.0"})]})]})]}),"\n",(0,r.jsx)(t.h2,{id:i[7].id,children:i[7].value}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"Getting-Started",children:"Getting Started"})," — Quick start guide / 快速开始"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"Usage",children:"Usage"})," — Full usage guide / 完整使用指南"]}),"\n"]})]})},"/Installation",{filePath:"pages/Installation.md",timestamp:178793305e4,pageMap:s.v,frontMatter:{},title:"Installation / 安装"},"undefined"==typeof RemoteContent?l:RemoteContent.useTOC)},7080:function(e,i,t){"use strict";t.d(i,{v:function(){return r}});let r=[{data:{index:"\uD83C\uDFE0 Home","Getting-Started":"\uD83D\uDE80 Getting Started",Installation:"\uD83D\uDCE6 Installation",Usage:"\uD83D\uDCD6 Usage","--features":{type:"separator",title:"\uD83D\uDD27 Features"},"Network-Inspector":"\uD83C\uDF10 Network Inspector","Log-Viewer":"\uD83D\uDCDD Log Viewer",Errors:"\uD83D\uDEA8 Errors","Database-Viewer":"\uD83D\uDCBE Database Viewer","Route-Tracker":"\uD83E\uDDED Route Tracker","Memory-Viewer":"\uD83D\uDCCA Memory Viewer","FPS-Viewer":"\uD83C\uDFAF FPS Viewer",Alerts:"\uD83D\uDD14 Alerts","--advanced":{type:"separator",title:"\uD83D\uDEE0 Advanced"},Configuration:"⚙️ Configuration","Custom-Database-Provider":"\uD83D\uDD0C Custom Database Provider","--info":{type:"separator",title:"ℹ️ Info"},FAQ:"❓ FAQ"}},{name:"Alerts",route:"/Alerts",frontMatter:{sidebarTitle:"Alerts"}},{name:"Configuration",route:"/Configuration",frontMatter:{sidebarTitle:"Configuration"}},{name:"Custom-Database-Provider",route:"/Custom-Database-Provider",frontMatter:{sidebarTitle:"Custom Database Provider"}},{name:"Database-Viewer",route:"/Database-Viewer",frontMatter:{sidebarTitle:"Database Viewer"}},{name:"Errors",route:"/Errors",frontMatter:{sidebarTitle:"Errors"}},{name:"FAQ",route:"/FAQ",frontMatter:{sidebarTitle:"Faq"}},{name:"FPS-Viewer",route:"/FPS-Viewer",frontMatter:{sidebarTitle:"Fps Viewer"}},{name:"Getting-Started",route:"/Getting-Started",frontMatter:{sidebarTitle:"Getting Started"}},{name:"index",route:"/",frontMatter:{sidebarTitle:"Index"}},{name:"Installation",route:"/Installation",frontMatter:{sidebarTitle:"Installation"}},{name:"Log-Viewer",route:"/Log-Viewer",frontMatter:{sidebarTitle:"Log Viewer"}},{name:"Memory-Viewer",route:"/Memory-Viewer",frontMatter:{sidebarTitle:"Memory Viewer"}},{name:"Network-Inspector",route:"/Network-Inspector",frontMatter:{sidebarTitle:"Network Inspector"}},{name:"Route-Tracker",route:"/Route-Tracker",frontMatter:{sidebarTitle:"Route Tracker"}},{name:"Usage",route:"/Usage",frontMatter:{sidebarTitle:"Usage"}}]}},function(e){e.O(0,[812,888,774,179],function(){return e(e.s=9720)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/docs/_next/static/chunks/pages/Installation-b92825ae5c00cca0.js b/docs/_next/static/chunks/pages/Installation-b92825ae5c00cca0.js
new file mode 100644
index 0000000..471b4e3
--- /dev/null
+++ b/docs/_next/static/chunks/pages/Installation-b92825ae5c00cca0.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[139],{9720:function(e,i,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Installation",function(){return t(1220)}])},1220:function(e,i,t){"use strict";t.r(i),t.d(i,{useTOC:function(){return l}});var r=t(5893),n=t(7812),s=t(7080),a=t(8925),d=t(5192);function l(e){return[{value:"From pub.dev (Recommended) / 从 pub.dev 安装(推荐)",id:"from-pubdev-recommended--从-pubdev-安装推荐",depth:2},{value:"From GitHub / 从 GitHub 安装",id:"from-github--从-github-安装",depth:2},{value:"Platform Setup / 平台配置",id:"platform-setup--平台配置",depth:2},{value:"Android",id:"android",depth:3},{value:"iOS",id:"ios",depth:3},{value:"Import / 导入",id:"import--导入",depth:2},{value:"Requirements / 环境要求",id:"requirements--环境要求",depth:2},{value:"Next Steps / 下一步",id:"next-steps--下一步",depth:2}]}i.default=(0,n.c)(function(e){let{toc:i=l(e)}=e,t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{children:"Installation / 安装"}),"\n",(0,r.jsx)(t.h2,{id:i[0].id,children:i[0].value}),"\n",(0,r.jsxs)(t.p,{children:["Add the following to your ",(0,r.jsx)(t.code,{children:"pubspec.yaml"}),":"]}),"\n",(0,r.jsxs)(t.p,{children:["在 ",(0,r.jsx)(t.code,{children:"pubspec.yaml"})," 中添加以下依赖:"]}),"\n",(0,r.jsx)(t.pre,{tabIndex:"0","data-language":"yaml","data-word-wrap":"","data-copy":"",children:(0,r.jsxs)(t.code,{children:[(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:"dependencies"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" zero_inspector_kit"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": "}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"^1.10.0"})]})]})}),"\n",(0,r.jsx)(t.p,{children:"Then run:"}),"\n",(0,r.jsx)(t.p,{children:"然后运行:"}),"\n",(0,r.jsx)(t.pre,{icon:d.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(t.code,{children:(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"flutter"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" pub"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" get"})]})})}),"\n",(0,r.jsx)(t.h2,{id:i[1].id,children:i[1].value}),"\n",(0,r.jsx)(t.p,{children:"Alternatively, install from GitHub:"}),"\n",(0,r.jsx)(t.p,{children:"或者从 GitHub 安装:"}),"\n",(0,r.jsx)(t.pre,{tabIndex:"0","data-language":"yaml","data-word-wrap":"","data-copy":"",children:(0,r.jsxs)(t.code,{children:[(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:"dependencies"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" zero_inspector_kit"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" git"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" url"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": "}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"https://github.com/zero-labsco/zero_inspector_kit.git"})]}),"\n",(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#22863A","--shiki-dark":"#85E89D"},children:" ref"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:": "}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:"release/v1.10.0"})]})]})}),"\n",(0,r.jsx)(t.h2,{id:i[2].id,children:i[2].value}),"\n",(0,r.jsx)(t.h3,{id:i[3].id,children:i[3].value}),"\n",(0,r.jsx)(t.p,{children:"No additional configuration needed."}),"\n",(0,r.jsx)(t.p,{children:"无需额外配置。"}),"\n",(0,r.jsx)(t.h3,{id:i[4].id,children:i[4].value}),"\n",(0,r.jsx)(t.p,{children:"No additional configuration needed."}),"\n",(0,r.jsx)(t.p,{children:"无需额外配置。"}),"\n",(0,r.jsx)(t.h2,{id:i[5].id,children:i[5].value}),"\n",(0,r.jsx)(t.pre,{tabIndex:"0","data-language":"dart","data-word-wrap":"","data-copy":"",children:(0,r.jsx)(t.code,{children:(0,r.jsxs)(t.span,{children:[(0,r.jsx)(t.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"import"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" 'package:zero_inspector_kit/zero_inspector_kit.dart'"}),(0,r.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:";"})]})})}),"\n",(0,r.jsx)(t.h2,{id:i[6].id,children:i[6].value}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Requirement"}),(0,r.jsx)(t.th,{children:"Version"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Flutter"}),(0,r.jsx)(t.td,{children:">= 3.3.0"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Dart SDK"}),(0,r.jsx)(t.td,{children:">= 3.11.0 < 4.0.0"})]})]})]}),"\n",(0,r.jsx)(t.h2,{id:i[7].id,children:i[7].value}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"Getting-Started",children:"Getting Started"})," — Quick start guide / 快速开始"]}),"\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.a,{href:"Usage",children:"Usage"})," — Full usage guide / 完整使用指南"]}),"\n"]})]})},"/Installation",{filePath:"pages/Installation.md",timestamp:178793305e4,pageMap:s.v,frontMatter:{},title:"Installation / 安装"},"undefined"==typeof RemoteContent?l:RemoteContent.useTOC)},7080:function(e,i,t){"use strict";t.d(i,{v:function(){return r}});let r=[{data:{index:"\uD83C\uDFE0 Home","Getting-Started":"\uD83D\uDE80 Getting Started",Installation:"\uD83D\uDCE6 Installation",Usage:"\uD83D\uDCD6 Usage","--features":{type:"separator",title:"\uD83D\uDD27 Features"},"Network-Inspector":"\uD83C\uDF10 Network Inspector","Log-Viewer":"\uD83D\uDCDD Log Viewer",Errors:"\uD83D\uDEA8 Errors","Database-Viewer":"\uD83D\uDCBE Database Viewer","Route-Tracker":"\uD83E\uDDED Route Tracker","Memory-Viewer":"\uD83D\uDCCA Memory Viewer","FPS-Viewer":"\uD83C\uDFAF FPS Viewer",Alerts:"\uD83D\uDD14 Alerts","--advanced":{type:"separator",title:"\uD83D\uDEE0 Advanced"},Configuration:"⚙️ Configuration","Custom-Database-Provider":"\uD83D\uDD0C Custom Database Provider","--info":{type:"separator",title:"ℹ️ Info"},FAQ:"❓ FAQ"}},{name:"Alerts",route:"/Alerts",frontMatter:{sidebarTitle:"Alerts"}},{name:"Configuration",route:"/Configuration",frontMatter:{sidebarTitle:"Configuration"}},{name:"Custom-Database-Provider",route:"/Custom-Database-Provider",frontMatter:{sidebarTitle:"Custom Database Provider"}},{name:"Database-Viewer",route:"/Database-Viewer",frontMatter:{sidebarTitle:"Database Viewer"}},{name:"Errors",route:"/Errors",frontMatter:{sidebarTitle:"Errors"}},{name:"FAQ",route:"/FAQ",frontMatter:{sidebarTitle:"Faq"}},{name:"FPS-Viewer",route:"/FPS-Viewer",frontMatter:{sidebarTitle:"Fps Viewer"}},{name:"Getting-Started",route:"/Getting-Started",frontMatter:{sidebarTitle:"Getting Started"}},{name:"index",route:"/",frontMatter:{sidebarTitle:"Index"}},{name:"Installation",route:"/Installation",frontMatter:{sidebarTitle:"Installation"}},{name:"Log-Viewer",route:"/Log-Viewer",frontMatter:{sidebarTitle:"Log Viewer"}},{name:"Memory-Viewer",route:"/Memory-Viewer",frontMatter:{sidebarTitle:"Memory Viewer"}},{name:"Network-Inspector",route:"/Network-Inspector",frontMatter:{sidebarTitle:"Network Inspector"}},{name:"Route-Tracker",route:"/Route-Tracker",frontMatter:{sidebarTitle:"Route Tracker"}},{name:"Usage",route:"/Usage",frontMatter:{sidebarTitle:"Usage"}}]}},function(e){e.O(0,[812,888,774,179],function(){return e(e.s=9720)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/docs/_next/static/chunks/pages/_app-ec27bf27c476d146.js b/docs/_next/static/chunks/pages/_app-dfead9b5b0a86c83.js
similarity index 99%
rename from docs/_next/static/chunks/pages/_app-ec27bf27c476d146.js
rename to docs/_next/static/chunks/pages/_app-dfead9b5b0a86c83.js
index 43c9851..a21daeb 100644
--- a/docs/_next/static/chunks/pages/_app-ec27bf27c476d146.js
+++ b/docs/_next/static/chunks/pages/_app-dfead9b5b0a86c83.js
@@ -1,4 +1,4 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{3454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(7663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(8346)}])},8346:function(e,t,n){"use strict";let r,o,i,l,s,a,u,c,d,f,p,h,m,g,v,b,x,y,_,w,S,E,k,C,O,T,I,j,M,P;n.r(t),n.d(t,{default:function(){return sQ}});var R,L,A,N,F,D,z,W,H,B=n(5893),V=n(7294),$=n.t(V,2),K=(e,t,n,r,o,i,l,s)=>{let a=document.documentElement,u=["light","dark"];function c(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&i?o.map(e=>i[e]||e):o;n?(a.classList.remove(...r),a.classList.add(i&&i[t]?i[t]:t)):a.setAttribute(e,t)}),s&&u.includes(t)&&(a.style.colorScheme=t)}if(r)c(r);else try{let e=localStorage.getItem(t)||n,r=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},U=["light","dark"],q="(prefers-color-scheme: dark)",G="undefined"==typeof window,Q=V.createContext(void 0),Z={setTheme:e=>{},themes:[]},Y=()=>{var e;return null!=(e=V.useContext(Q))?e:Z},X=e=>V.useContext(Q)?V.createElement(V.Fragment,null,e.children):V.createElement(ee,{...e}),J=["light","dark"],ee=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=J,defaultTheme:l=n?"system":"light",attribute:s="data-theme",value:a,children:u,nonce:c,scriptProps:d})=>{let[f,p]=V.useState(()=>en(o,l)),[h,m]=V.useState(()=>"system"===f?eo():f),g=a?Object.values(a):i,v=V.useCallback(e=>{let o=e;if(!o)return;"system"===e&&n&&(o=eo());let i=a?a[o]:o,u=t?er(c):null,d=document.documentElement,f=e=>{"class"===e?(d.classList.remove(...g),i&&d.classList.add(i)):e.startsWith("data-")&&(i?d.setAttribute(e,i):d.removeAttribute(e))};if(Array.isArray(s)?s.forEach(f):f(s),r){let e=U.includes(l)?l:null,t=U.includes(o)?o:e;d.style.colorScheme=t}null==u||u()},[c]),b=V.useCallback(e=>{let t="function"==typeof e?e(f):e;p(t);try{localStorage.setItem(o,t)}catch(e){}},[f]),x=V.useCallback(t=>{m(eo(t)),"system"===f&&n&&!e&&v("system")},[f,e]);V.useEffect(()=>{let e=window.matchMedia(q);return e.addListener(x),x(e),()=>e.removeListener(x)},[x]),V.useEffect(()=>{let e=e=>{e.key===o&&(e.newValue?p(e.newValue):b(l))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[b]),V.useEffect(()=>{v(null!=e?e:f)},[e,f]);let y=V.useMemo(()=>({theme:f,setTheme:b,forcedTheme:e,resolvedTheme:"system"===f?h:f,themes:n?[...i,"system"]:i,systemTheme:n?h:void 0}),[f,b,e,h,n,i]);return V.createElement(Q.Provider,{value:y},V.createElement(et,{forcedTheme:e,storageKey:o,attribute:s,enableSystem:n,enableColorScheme:r,defaultTheme:l,value:a,themes:i,nonce:c,scriptProps:d}),u)},et=V.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,themes:s,nonce:a,scriptProps:u})=>{let c=JSON.stringify([n,t,i,e,s,l,r,o]).slice(1,-1);return V.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?a:"",dangerouslySetInnerHTML:{__html:`(${K.toString()})(${c})`}})}),en=(e,t)=>{let n;if(!G){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},er=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},eo=e=>(e||(e=window.matchMedia(q)),e.matches?"dark":"light"),ei=n(8644),el=n(1151),es=function(){for(var e,t,n=0,r="",o=arguments.length;n{var t;return"object"==typeof e&&null!=e&&"window"in e&&e.window===e?e.document:null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&9===e.nodeType?e:e?.ownerDocument??("undefined"!=typeof document?document:void 0)},ed=e=>{let t=ec(e);return t?.defaultView??("undefined"!=typeof window?window:void 0)};function ef(e,t){return!!t&&!!e&&e.contains(t)}let ep=(e=document)=>e.activeElement;function eh(e){return e.target}let em="undefined"!=typeof document?V.useLayoutEffect:()=>{};function eg(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function ev(e){let t=(0,V.useRef)({isFocused:!1,observer:null});return em(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,V.useCallback)(n=>{let r=eh(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=eg(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===ep()?null:ep();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}function eb(e){if("undefined"==typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function ex(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function ey(e){let t=null;return()=>(null==t&&(t=e()),t)}let e_=ey(function(){return ex(/^Mac/i)}),ew=ey(function(){return ex(/^iPhone/i)}),eS=ey(function(){return ex(/^iPad/i)||e_()&&navigator.maxTouchPoints>1}),eE=ey(function(){return ew()||eS()});ey(function(){return e_()||eE()});let ek=ey(function(){return eb(/AppleWebKit/i)&&(eE()||!eC())});ey(function(){return ek()&&!eC()&&!eT()});let eC=ey(function(){return eb(/Chrome|CriOS|CrMo/i)}),eO=ey(function(){return eb(/Android/i)}),eT=ey(function(){return eb(/(Firefox|FxiOS)/i)}),eI=null;function ej(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:l}=t;!ek()&&eT()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(e_()?r=!0:o=!0);let s=ek()&&e_()&&!eS()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});ej.isOpening=n,function(e){if(function(){if(null==eI){eI=!1;try{document.createElement("div").focus({get preventScroll(){return eI=!0,!0}})}catch{}}return eI}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight{e$(e)},{once:!0}),eR.set(t,{focus:r})}let e$=(e,t)=>{let n=ed(e),r=ec(e);t&&r.removeEventListener("DOMContentLoaded",t),eR.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:eR.get(n).focus}),r.removeEventListener("keydown",eD,!0),r.removeEventListener("keyup",eD,!0),r.removeEventListener("click",eW,!0),n.removeEventListener("focus",eH,!0),n.removeEventListener("blur",eB,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",ez,!0),r.removeEventListener("pointermove",ez,!0),r.removeEventListener("pointerup",ez,!0)),eR.delete(n))};function eK(){return"pointer"!==eM}"undefined"!=typeof document&&function(e){let t;let n=ec(void 0);"loading"!==n.readyState?eV(void 0):(t=()=>{eV(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>e$(e,t)}();let eU=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function eq(){let e=(0,V.useRef)(new Map),t=(0,V.useCallback)((t,n,r,o)=>{let i=o?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,V.useCallback)((t,n,r,o)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,o),e.current.delete(r)},[]),r=(0,V.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,V.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function eG(e={}){var t,n,r;let{autoFocus:o=!1,isTextInput:i,within:l}=e,s=(0,V.useRef)({isFocused:!1,isFocusVisible:o||eK()}),[a,u]=(0,V.useState)(!1),[c,d]=(0,V.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),f=(0,V.useCallback)(()=>d(s.current.isFocused&&s.current.isFocusVisible),[]),p=(0,V.useCallback)(e=>{s.current.isFocused=e,s.current.isFocusVisible=eK(),u(e),f()},[f]);t=e=>{s.current.isFocusVisible=e,f()},n=[i,a],r={enabled:a,isTextInput:i},eV(),(0,V.useEffect)(()=>{if(r?.enabled===!1)return;let e=(e,n)=>{(function(e,t,n){let r=n?eh(n):void 0,o=ec(r),i=ed(r),l=void 0!==i?i.HTMLInputElement:HTMLInputElement,s=void 0!==i?i.HTMLTextAreaElement:HTMLTextAreaElement,a=void 0!==i?i.HTMLElement:HTMLElement,u=void 0!==i?i.KeyboardEvent:KeyboardEvent,c=ep(o);return!((e=e||c instanceof l&&!eU.has(c.type)||c instanceof s||c instanceof a&&c.isContentEditable)&&"keyboard"===t&&n instanceof u&&!eN[n.key])})(!!r?.isTextInput,e,n)&&t(eK())};return eP.add(e),()=>{eP.delete(e)}},n);let{focusProps:h}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,V.useCallback)(e=>{if(eh(e)===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),l=ev(i),s=(0,V.useCallback)(e=>{let t=eh(e),r=ec(t),i=r?ep(r):ep();t===e.currentTarget&&t===i&&(n&&n(e),o&&o(!0),l(e))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}({isDisabled:l,onFocusChange:p}),{focusWithinProps:m}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,V.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=eq(),a=(0,V.useCallback)(e=>{ef(e.currentTarget,eh(e))&&i.current.isFocusWithin&&!ef(e.currentTarget,e.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(e),o&&o(!1))},[n,o,i,s]),u=ev(a),c=(0,V.useCallback)(e=>{if(!ef(e.currentTarget,eh(e)))return;let t=eh(e),n=ec(t),s=ep(n);if(!i.current.isFocusWithin&&s===t){r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,u(e);let t=e.currentTarget;l(n,"focus",e=>{let r=eh(e);if(i.current.isFocusWithin&&!ef(t,r)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:r});Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t}),a(eg(e))}},{capture:!0})}},[r,o,u,l,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}({isDisabled:!l,onFocusWithinChange:p});return{isFocused:a,isFocusVisible:c,focusProps:l?m:h}}let eQ=!1,eZ=0;function eY(e){"touch"===e.pointerType&&(eQ=!0,setTimeout(()=>{eQ=!1},500))}function eX(){let e=ec(null);if(void 0!==e)return 0===eZ&&"undefined"!=typeof PointerEvent&&e.addEventListener("pointerup",eY),eZ++,()=>{--eZ>0||"undefined"==typeof PointerEvent||e.removeEventListener("pointerup",eY)}}function eJ(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=(0,V.useState)(!1),s=(0,V.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,V.useEffect)(eX,[]);let{addGlobalListener:a,removeAllGlobalListeners:u}=eq(),{hoverProps:c,triggerHoverEnd:d}=(0,V.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!ef(e.currentTarget,eh(e)))return;s.isHovered=!0;let u=e.currentTarget;s.target=u,a(ec(eh(e)),"pointerover",e=>{s.isHovered&&s.target&&!ef(s.target,eh(e))&&i(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:r}),n&&n(!0),l(!0)},i=(e,t)=>{let o=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&o&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),l(!1))},c={};return"undefined"!=typeof PointerEvent&&(c.onPointerEnter=t=>{eQ&&"mouse"===t.pointerType||e(t,t.pointerType)},c.onPointerLeave=e=>{!o&&ef(e.currentTarget,eh(e))&&i(e,e.pointerType)}),{hoverProps:c,triggerHoverEnd:i}},[t,n,r,o,s,a,u]);return(0,V.useEffect)(()=>{o&&d({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:c,isHovered:i}}var e0=Object.defineProperty,e1=(e,t,n)=>t in e?e0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e2=(e,t,n)=>(e1(e,"symbol"!=typeof t?t+"":t,n),n);class e4{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){e2(this,"current",this.detect()),e2(this,"handoffState","pending"),e2(this,"currentId",0)}}let e5=new e4;function e6(e){var t;return e5.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function e7(e){var t,n;return e5.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function e3(e){var t,n;return null!=(n=null==(t=e7(e))?void 0:t.activeElement)?n:null}function e8(e){return e3(e)===e}function e9(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function te(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(){for(var e=arguments.length,n=Array(e),r=0;rcancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,n=Array(e),r=0;rt.requestAnimationFrame(...n))},setTimeout(){for(var e=arguments.length,n=Array(e),r=0;rclearTimeout(o))},microTask(){for(var e=arguments.length,n=Array(e),r=0;r{o.current&&n[0]()}),t.add(()=>{o.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=te();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function tt(){let[e]=(0,V.useState)(te);return(0,V.useEffect)(()=>()=>e.dispose(),[e]),e}let tn=(e,t)=>{e5.isServer?(0,V.useEffect)(e,t):(0,V.useLayoutEffect)(e,t)};function tr(e){let t=(0,V.useRef)(e);return tn(()=>{t.current=e},[e]),t}let to=function(e){let t=tr(e);return V.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=(0,V.useRef)(null),[n,r]=(0,V.useState)(!1),o=tt(),i=to(()=>{t.current=null,r(!1),o.dispose()}),l=to(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=e6(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){var n,o;let i,l;r((i=e.width/2,l=e.height/2,n={top:e.clientY-l,right:e.clientX+i,bottom:e.clientY+l,left:e.clientX-i},o=t.current.getBoundingClientRect(),!(!n||!o||n.righto.right||n.bottomo.bottom)))}},!1),o.addEventListener(n,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:l,onPointerUp:i,onClick:i}}}function tl(e){return(0,V.useMemo)(()=>e,Object.values(e))}let ts=(0,V.createContext)(void 0);function ta(){return(0,V.useContext)(ts)}function tu(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function tc(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(i,tc),i}var td=((i=td||{})[i.None=0]="None",i[i.RenderStrategy=1]="RenderStrategy",i[i.Static=2]="Static",i),tf=((l=tf||{})[l.Unmount=0]="Unmount",l[l.Hidden=1]="Hidden",l);function tp(){let e,t;let n=(e=(0,V.useRef)([]),t=(0,V.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),function(){for(var n=arguments.length,r=Array(n),o=0;onull==e))return e.current=r,t});return(0,V.useCallback)(e=>(function(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:i,visible:l=!0,name:s,mergeRefs:a}=e;a=null!=a?a:tm;let u=tg(n,t);if(l)return th(u,r,o,s,a);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=u;if(e)return th(t,r,o,s,a)}if(1&c){let{unmount:e=!0,...t}=u;return tc(e?0:1,{0:()=>null,1:()=>th({...t,hidden:!0,style:{display:"none"}},r,o,s,a)})}return th(u,r,o,s,a)})({mergeRefs:n,...e}),[n])}function th(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:i=n,children:l,refName:s="ref",...a}=ty(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof l?l(t):l;c=function e(t){if(null!=t&&t.$$typeof===Symbol.for("react.lazy")){let n=t._payload;if(null!=n&&"fulfilled"===n.status)return e(n.value)}return t}(c),"className"in a&&a.className&&"function"==typeof a.className&&(a.className=a.className(t)),a["aria-labelledby"]&&a["aria-labelledby"]===a.id&&(a["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(d["data-headlessui-state"]=n.join(" "),n))d["data-".concat(e)]=""}if(t_(i)&&(Object.keys(tx(a)).length>0||Object.keys(tx(d)).length>0)){if(!(0,V.isValidElement)(c)||Array.isArray(c)&&c.length>1||t_(c.type)){if(Object.keys(tx(a)).length>0)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(tx(a)).concat(Object.keys(tx(d))).map(e=>" - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"))}else{var f;let e=c.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){for(var e=arguments.length,n=Array(e),r=0;r="19"?f.props.ref:f.ref),u.ref)},n?{className:n}:{}))}}return(0,V.createElement)(i,Object.assign({},ty(a,["ref"]),!t_(i)&&u,!t_(i)&&d),c)}function tm(){for(var e=arguments.length,t=Array(e),n=0;nnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function tg(){for(var e=arguments.length,t=Array(e),n=0;n{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function t_(e){return e===V.Fragment||e===Symbol.for("react.fragment")}let tw=tb(function(e,t){var n;let r=ta(),{disabled:o=r||!1,autoFocus:i=!1,...l}=e,{isFocusVisible:s,focusProps:a}=eG({autoFocus:i}),{isHovered:u,hoverProps:c}=eJ({isDisabled:o}),{pressed:d,pressProps:f}=ti({disabled:o}),p=tv({ref:t,type:null!=(n=l.type)?n:"button",disabled:o||void 0,autoFocus:i},a,c,f),h=tl({disabled:o,hover:u,focus:s,active:d,autofocus:i});return tp()({ourProps:p,theirProps:l,slot:h,defaultTag:"button",name:"Button"})}),tS={border:es("_border _border-gray-300 dark:_border-neutral-700","contrast-more:_border-gray-900 contrast-more:dark:_border-gray-50")};function tE({children:e,className:t,variant:n="default",...r}){return(0,B.jsx)(tw,{className:e=>es("_transition",e.focus&&"nextra-focusable","outline"===n&&[tS.border,"_rounded-md _p-1.5"],"function"==typeof t?t(e):t),...r,children:e})}var tk=n(5192),tC=n(1163),tO=n(3665);let tT=()=>{let{locale:e=tO.ZW,asPath:t,route:n}=(0,tC.useRouter)();return(0,V.useMemo)(()=>{let{pathname:r}=new URL(tO.hV.has(n)?n:t,"https://nextra.site");return(e?r.replace(RegExp(`\\.${e}(\\/|$)`),"$1"):r).replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/"},[t,e,n])},tI={breadcrumb:!0,collapsed:!1,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"};var tj=n(3935);function tM(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){let l=e();return(l.length!==o.length||l.some((e,t)=>o[t]!==e))&&(o=l,r=t(...l),(null==n?void 0:n.onChange)&&!(i&&n.skipInitialOnChange)&&n.onChange(r),i=!1),r}return l.updateDeps=e=>{o=e},l}function tP(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let tR=(e,t)=>1.01>Math.abs(e-t),tL=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},tA=()=>{if(void 0!==r)return r;if("undefined"==typeof navigator)return r=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return r=!0;let e=navigator.maxTouchPoints;return r="MacIntel"===navigator.platform&&void 0!==e&&e>0},tN=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},tF=e=>e,tD=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let o=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(tN(n)),!r.ResizeObserver)return()=>{};let i=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t){o({width:t.inlineSize,height:t.blockSize});return}}o(tN(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},tW={passive:!0},tH="undefined"==typeof window||"onscrollend"in window,tB=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let o=e.targetWindow;if(!o)return;let i=e.options.useScrollendEvent&&tH,l=0,s=i?null:tL(o,()=>t(l,!1),e.options.isScrollingResetDelay),a=e=>()=>{l=n(r),null==s||s(),t(l,e)},u=a(!0),c=a(!1);return r.addEventListener("scroll",u,tW),i&&r.addEventListener("scrollend",c,tW),()=>{r.removeEventListener("scroll",u),i&&r.removeEventListener("scrollend",c)}},tV=(e,t)=>tB(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),t$=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),o=n.itemSizeCache.get(r);if(void 0!==o)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},tK=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class tU{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){for(let[e,n]of(this.observer.unobserve(t),this.elementsCache))if(n===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,n;let r={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:tF,rangeExtractor:tD,onChange:()=>{},measureElement:t$,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let n=e[t];void 0!==n&&(r[t]=n)}let o=this.options,i=null,l=null,s=!1;if(void 0!==o&&o.enabled&&r.enabled&&"end"===r.anchorTo&&null!==this.scrollElement){let e=o.count,a=r.count,u=this.getMeasurements(),c=e>0?(null==(t=u[0])?void 0:t.key)??o.getItemKey(0):null,d=e>0?(null==(n=u[e-1])?void 0:n.key)??o.getItemKey(e-1):null;if(a!==e||e>0&&a>0&&(r.getItemKey(0)!==c||r.getItemKey(a-1)!==d)){s=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??u[0]:null;t&&(i=[t.key,this.getScrollOffset()-t.start]);let n=!0===r.followOnAppend?"auto":r.followOnAppend||null;n&&a>e&&this.isAtEnd(o.scrollEndThreshold)&&(0===e||r.getItemKey(a-1)!==d)&&(l=n)}}this.options=r,s&&(this.pendingMin=0,this.itemSizeCacheVersion++);let a=!1,u=0;if(i&&null!==this.scrollOffset){let[e,t]=i,n=this.getMeasurements(),{count:r,getItemKey:o}=this.options,l=0;for(;l{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=tM(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,tA()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,tW),e.addEventListener("touchend",n,tW),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let n=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,n&&this.scrollElement&&this.options.enabled){let[e,t,r,o]=n;null===e||r||(tA()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==o&&(this._iosDeferredAdjustment+=o):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=tM(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,o,i,l,s)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:s}),{key:!1}),this.getMeasurements=tM(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:s},a)=>{let u=this.itemSizeCache;if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let c=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===i){var d;let o;let i=2*e,l=this._flatMeasurements;if(!l||l.length0&&e.set(l.subarray(0,2*c)),l=e,this._flatMeasurements=l}if(0===c)o=t+n;else{let e=c-1;o=l[2*e]+l[2*e+1]+s}for(let t=c;t=48&&o<=57){let o=+n;if(Number.isInteger(o)&&o>=0&&o1){let r=p[e=d],o=void 0!==r?f[r]:void 0;a=o?o.end+s:t+n}else if(m===i){let t=0,n=h[0],r=p[0];for(let e=1;ethis.options.debug}),this.calculateRange=tM(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,r,o){let i=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:i};if(1===r&&null!==o){let e=function(e,t,n){let r=0;for(;r<=t;){let o=(r+t)/2|0,i=e[2*o];if(in))return o;t=o-1}}return r>0?r-1:0}(o,i,n),r=e,l=n+t;for(;re[t].start,n),s=l;if(1===r)for(;s1){let o=Array(r).fill(0);for(;se=0&&a.some(e=>e>=n);){let t=e[l];a[t.lane]=t.start,l--}l=Math.max(0,l-l%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:l,endIndex:s}}(e,t,n,r,1===r&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=tM(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.min(this.options.count-1,n+t);return e>=Math.max(0,n-t)&&e<=r}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,r;let o,i,l;if(e<0||e>=this.options.count)return;let s=this._flatMeasurements;if(1===this.options.lanes&&null!==s)l=this.options.getItemKey(e),i=s[2*e],o=s[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;l=t.key,i=t.start,o=t.size}let a=this.itemSizeCache.get(l)??o,u=t-a;if(0!==u){let s="end"===this.options.anchorTo&&(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=s?this.getTotalSize():0,d=this.getScrollOffset()+this.scrollAdjustments,f=this.itemSizeCache.has(l)?i+a<=d&&"backward"!==this.scrollDirection:i[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,o=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let n=this._flatMeasurements,r=1===this.options.lanes&&null!=n,o=tq(0,t.length-1,r?e=>n[2*e]:e=>tP(t[e]).start,e);return tP(t[o])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),o=this.getScrollOffset();return"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t){if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0;let r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[o,i]=r,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t;let n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes){let r=n.length-1,o=this._flatMeasurements;t=null!=o?o[2*r]+o[2*r+1]:(null==(e=n[r])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),r=n.length-1;for(;r>=0&&e.some(e=>null===e);){let t=n[r];null===e[t.lane]&&(e[t.lane]=t.end),r--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return 0!==e&&(tA()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&tR(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}let tq=(e,t,n,r)=>{for(;e<=t;){let o=(e+t)/2|0,i=n(o);if(ir))return o;t=o-1}}return e>0?e-1:0},tG="undefined"!=typeof document?V.useLayoutEffect:V.useEffect;function tQ(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function tZ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tQ;return(0,V.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}function tY(e,t,n){let[r,o]=(0,V.useState)(n),i=void 0!==e,l=(0,V.useRef)(i),s=(0,V.useRef)(!1),a=(0,V.useRef)(!1);return!i||l.current||s.current?i||!l.current||a.current||(a.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,to(e=>(i||(0,tj.flushSync)(()=>o(e)),null==t?void 0:t(e)))]}function tX(e){let[t]=(0,V.useState)(e);return t}function tJ(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function t0(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[r,o]=(0,V.useState)(()=>tJ(t));return tn(()=>{if(!t||!e)return;let n=te();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),o(e=>{let n=tJ(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:"".concat(r.width,"px"),height:"".concat(r.height,"px")}:r}var t1=((s=t1||{})[s.Left=0]="Left",s[s.Right=2]="Right",s);function t2(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function t4(e){return t2(e)&&"tagName"in e}function t5(e){return t4(e)&&"accessKey"in e}function t6(e){return t4(e)&&"tabIndex"in e}function t7(e){return t5(e)&&"INPUT"===e.nodeName}function t3(e){return t5(e)&&"LABEL"===e.nodeName}function t8(e){return t5(e)&&"LEGEND"===e.nodeName}function t9(e){var t;let n=e.parentElement,r=null;for(;n&&!(t5(t=n)&&"FIELDSET"===t.nodeName);)t8(n)&&(r=n),n=n.parentElement;let o=(null==n?void 0:n.getAttribute("disabled"))==="";return!(o&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t8(t))return!1;t=t.previousElementSibling}return!0}(r))&&o}function ne(e){let t=(0,V.useRef)(null);return{onPointerDown:to(n=>{t.current=n.pointerType,t9(n.currentTarget)||"mouse"!==n.pointerType||n.button!==t1.Left||(n.preventDefault(),e(n))}),onClick:to(n=>{"mouse"!==t.current&&(t9(n.currentTarget)||e(n))})}}class nt extends Map{get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}constructor(e){super(),this.factory=e}}var nn=Object.defineProperty,nr=(e,t,n)=>t in e?nn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,no=(e,t,n)=>(nr(e,"symbol"!=typeof t?t+"":t,n),n),ni=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},nl=(e,t,n)=>(ni(e,t,"read from private field"),n?n.call(e):t.get(e)),ns=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},na=(e,t,n,r)=>(ni(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class nu{dispose(){this.disposables.dispose()}get state(){return nl(this,A)}subscribe(e,t){if(e5.isServer)return()=>{};let n={selector:e,callback:t,current:e(nl(this,A))};return nl(this,F).add(n),this.disposables.add(()=>{nl(this,F).delete(n)})}on(e,t){return e5.isServer?()=>{}:(nl(this,N).get(e).add(t),this.disposables.add(()=>{nl(this,N).get(e).delete(t)}))}send(e){let t=this.reduce(nl(this,A),e);if(t!==nl(this,A)){for(let e of(na(this,A,t),nl(this,F))){let t=e.selector(nl(this,A));nc(e.current,t)||(e.current=t,e.callback(t))}for(let t of nl(this,N).get(e.type))t(nl(this,A),e)}}constructor(e){ns(this,A,{}),ns(this,N,new nt(()=>new Set)),ns(this,F,new Set),no(this,"disposables",te()),na(this,A,e),e5.isServer&&this.disposables.microTask(()=>{this.dispose()})}}function nc(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&nd(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&nd(e.entries(),t.entries()):!!(nf(e)&&nf(t))&&nd(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function nd(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function nf(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function np(e){let[t,n]=e(),r=te();return function(){for(var e=arguments.length,o=Array(e),i=0;it in e?nh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ng=(e,t,n)=>(nm(e,"symbol"!=typeof t?t+"":t,n),n),nv=((a=nv||{})[a.Push=0]="Push",a[a.Pop=1]="Pop",a);let nb={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class nx extends nu{static new(){return new nx({stack:[]})}reduce(e,t){return tc(t.type,nb,e,t)}constructor(){super(...arguments),ng(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),ng(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}}let ny=new nt(()=>nx.new());var n_=n(1103);function nw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nc;return(0,n_.useSyncExternalStoreWithSelector)(to(t=>e.subscribe(nS,t)),to(()=>e.state),to(()=>e.state),to(t),n)}function nS(e){return e}function nE(e,t){let n=(0,V.useId)(),r=ny.get(t),[o,i]=nw(r,(0,V.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return tn(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!i||o)}let nk=new Map,nC=new Map;function nO(e){var t;let n=null!=(t=nC.get(e))?t:0;return nC.set(e,n+1),0!==n||(nk.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=nC.get(e))?t:1;if(1===n?nC.delete(e):nC.set(e,n-1),1!==n)return;let r=nk.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,nk.delete(e))})(e)}function nT(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=nE(e,"inert-others");tn(()=>{var e,o;if(!r)return;let i=te();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(nO(t));let l=null!=(o=null==t?void 0:t())?o:[];for(let e of l){if(!e)continue;let t=e6(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)l.some(t=>e.contains(t))||i.add(nO(e));n=n.parentElement}}return i.dispose},[r,t,n])}function nI(e,t,n){let r=tr(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,V.useEffect)(()=>{if(!e)return;let n=null===t?null:t5(t)?t:t.current;if(!n)return;let o=te();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}return()=>o.dispose()},[t,r,e])}let nj=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),nM=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var nP=((u=nP||{})[u.First=1]="First",u[u.Previous=2]="Previous",u[u.Next=4]="Next",u[u.Last=8]="Last",u[u.WrapAround=16]="WrapAround",u[u.NoScroll=32]="NoScroll",u[u.AutoFocus=64]="AutoFocus",u),nR=((c=nR||{})[c.Error=0]="Error",c[c.Overflow=1]="Overflow",c[c.Success=2]="Success",c[c.Underflow=3]="Underflow",c),nL=((d=nL||{})[d.Previous=-1]="Previous",d[d.Next=1]="Next",d);function nA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(nj)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var nN=((f=nN||{})[f.Strict=0]="Strict",f[f.Loose=1]="Loose",f);function nF(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=e6(e))?void 0:t.body)&&tc(n,{0:()=>e.matches(nj),1(){let t=e;for(;null!==t;){if(t.matches(nj))return!0;t=t.parentElement}return!1}})}function nD(e){te().nextFrame(()=>{let t=e3(e);t&&t6(t)&&!nF(t,0)&&(null==e||e.focus({preventScroll:!0}))})}var nz=((p=nz||{})[p.Keyboard=0]="Keyboard",p[p.Mouse=1]="Mouse",p);function nW(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function nH(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null===e?document.body:e7(e);return function(e,t){var n,r,o;let{sorted:i=!0,relativeTo:l=null,skipElements:s=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Array.isArray(e)?e.length>0?e7(e[0]):document:e7(e),u=Array.isArray(e)?i?nW(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(nM)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):nA(e);s.length>0&&u.length>1&&(u=u.filter(e=>!s.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),l=null!=l?l:null==a?void 0:a.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(l))-1;if(4&t)return Math.max(0,u.indexOf(l))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,h=u.length,m;do{if(p>=h||p+h<=0)return 0;let e=d+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(m=u[e])||m.focus(f),p+=c}while(m!==e3(m));return 6&t&&null!=(o=null==(r=null==(n=m)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&m.select(),2}(nA(n),t,{relativeTo:e})}function nB(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function nV(){return nB()||/Android/gi.test(window.navigator.userAgent)}function n$(e,t,n,r){let o=tr(n);(0,V.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function nK(e,t,n){var r;let o,i=tr(n),l=(0,V.useCallback)(function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(r)||e.composed&&e.composedPath().includes(n)))return;return nF(r,nN.Loose)||-1===r.tabIndex||e.preventDefault(),i.current(e,r)}},[i,t]),s=(0,V.useRef)(null);n$(e,"pointerdown",e=>{var t,n;nV()||(s.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),n$(e,"pointerup",e=>{if(nV()||!s.current)return;let t=s.current;return s.current=null,l(e,()=>t)},!0);let a=(0,V.useRef)({x:0,y:0});n$(e,"touchstart",e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY},!0),n$(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-a.current.x)>=30||Math.abs(t.y-a.current.y)>=30))return l(e,()=>t6(e.target)?e.target:null)},!0),r="blur",o=tr(e=>l(e,()=>{var e;return t5(e=window.document.activeElement)&&"IFRAME"===e.nodeName?window.document.activeElement:null})),(0,V.useEffect)(()=>{if(e)return window.addEventListener(r,t,!0),()=>window.removeEventListener(r,t,!0);function t(e){o.current(e)}},[e,r,!0])}function nU(){for(var e=arguments.length,t=Array(e),n=0;ne6(...t),[...t])}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var nq=((h=nq||{})[h.Ignore=0]="Ignore",h[h.Select=1]="Select",h[h.Close=2]="Close",h);let nG={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function nQ(e,t){let{trigger:n,action:r,close:o,select:i}=t,l=(0,V.useRef)(null),s=(0,V.useRef)(null),a=(0,V.useRef)(null);n$(e&&null!==n,"pointerdown",e=>{t2(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(s.current=e.x,a.current=e.y,l.current=e.timeStamp)}),n$(e&&null!==n,"pointerup",e=>{var t,n;let u=l.current;if(null===u||(l.current=null,!t6(e.target))||5>Math.abs(e.x-(null!=(t=s.current)?t:e.x))&&5>Math.abs(e.y-(null!=(n=a.current)?n:e.y)))return;let c=r(e);switch(c.kind){case 0:return;case 1:e.timeStamp-u>200&&(i(c.target),o());break;case 2:o()}},{capture:!0})}function nZ(e){var t,n,r;let o,i=(0,V.useRef)({value:"",selectionStart:null,selectionEnd:null});return t=e,n="blur",o=tr(e=>{let t=e.target;t7(t)&&(i.current={value:t.value,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})}),(0,V.useEffect)(()=>{function e(e){o.current(e)}return(t=null!=t?t:window).addEventListener(n,e,void 0),()=>t.removeEventListener(n,e,r)},[t,n,r]),to(()=>{if(!e8(e)&&t7(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==i.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:t,selectionEnd:n}=i.current;null!==t&&null!==n&&e.setSelectionRange(t,n)}i.current={value:"",selectionStart:null,selectionEnd:null}}})}function nY(e,t){return(0,V.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function nX(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let nJ=(R=()=>new Map,L={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:te(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=nX(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=nX(n.meta)),this},SCROLL_PREVENT(e){let t;let n={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[nB()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){for(let t of r().containers)for(let n of t())if(n.contains(e))return!0;return!1}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=te();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,i=null;n.addEventListener(t,"click",e=>{if(t6(e.target))try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),l=t.querySelector(r);t6(l)&&!o(l)&&(i=l)}catch(e){}},!0),n.group(e=>{n.addEventListener(t,"touchstart",t=>{var n;if(e.dispose(),t6(t.target)&&t4(n=t.target)&&"style"in n){if(o(t.target)){let n=t.target;for(;n.parentElement&&o(n.parentElement);)n=n.parentElement;e.style(n,"overscrollBehavior","contain")}else e.style(t.target,"touchAction","none")}})}),n.addEventListener(t,"touchmove",e=>{if(t6(e.target)&&!t7(e.target)){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth)},after(e){let{doc:n,d:r}=e,o=n.documentElement,i=Math.max(0,o.clientWidth-o.offsetWidth),l=Math.max(0,t-i);r.style(o,"paddingRight","".concat(l,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];r.forEach(e=>{let{before:t}=e;return null==t?void 0:t(n)}),r.forEach(e=>{let{after:t}=e;return null==t?void 0:t(n)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},m=R(),g=new Set,{getSnapshot:()=>m,subscribe:e=>(g.add(e),()=>g.delete(e)),dispatch(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;re()))}});function n0(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),r=(0,V.useSyncExternalStore)(nJ.subscribe,nJ.getSnapshot,nJ.getSnapshot),o=t?r.get(t):void 0;o&&o.count,tn(()=>{if(!(!t||!e))return nJ.dispatch("PUSH",t,n),()=>nJ.dispatch("POP",t,n)},[e,t])}(nE(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}nJ.subscribe(()=>{let e=nJ.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&nJ.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&nJ.dispatch("TEARDOWN",n)}});let n1=Symbol();function n2(){for(var e=arguments.length,t=Array(e),n=0;n{r.current=t},[t]);let o=to(e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[n1]))?void 0:o}function n4(e){return[e.screenX,e.screenY]}function n5(){let e=(0,V.useRef)([-1,-1]);return{wasMoved(t){let n=n4(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=n4(t)}}}var n6=n(3454);void 0!==n6&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(D=null==n6?void 0:n6.env)?void 0:D.NODE_ENV)==="test"&&void 0===(null==(z=null==Element?void 0:Element.prototype)?void 0:z.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var n7=((v=n7||{})[v.None=0]="None",v[v.Closed=1]="Closed",v[v.Enter=2]="Enter",v[v.Leave=4]="Leave",v);function n3(e){let t={};for(let n in e)!0===e[n]&&(t["data-".concat(n)]="");return t}function n8(e,t,n,r){let[o,i]=(0,V.useState)(n),{hasFlag:l,addFlag:s,removeFlag:a}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,V.useState)(e),r=(0,V.useCallback)(e=>n(e),[]),o=(0,V.useCallback)(e=>n(t=>t|e),[]),i=(0,V.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:(0,V.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,V.useCallback)(e=>n(t=>t^e),[])}}(e&&o?3:0),u=(0,V.useRef)(!1),c=(0,V.useRef)(!1);return tn(()=>{var o;if(e){if(n&&i(!0),!t){n&&s(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,t){let{prepare:n,run:r,done:o,inFlight:i}=t,l=te();return function(e,t){let{inFlight:n,prepare:r}=t;if(null!=n&&n.current){r();return}let o=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=o}(e,{prepare:n,inFlight:i}),l.nextFrame(()=>{r(),l.requestAnimationFrame(()=>{l.add(function(e,t){var n,r;let o=te();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let l=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===l.length?t():Promise.allSettled(l.map(e=>e.finished)).then(()=>{i||t()}),o.dispose}(e,o))})}),l.dispose}(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,c.current||(n?(s(3),a(4)):(s(4),a(2)))},run(){c.current?n?(a(3),s(4)):(a(4),s(3)):n?a(1):s(1)},done(){var e,o,l;c.current&&(null!=(l=null==(o=t.getAnimations)?void 0:o.call(t))?l:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(u.current=!1,a(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,tt()]),e?[o,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function n9(e,t){let{container:n,accept:r,walk:o}=t,i=(0,V.useRef)(r),l=(0,V.useRef)(o);(0,V.useEffect)(()=>{i.current=r,l.current=o},[r,o]),tn(()=>{if(!n||!e)return;let t=e6(n);if(!t)return;let r=i.current,o=l.current,s=Object.assign(e=>r(e),{acceptNode:r}),a=t.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,s,!1);for(;a.nextNode();)o(a.currentNode)},[n,e,i,l])}function re(e,t){let n=(0,V.useRef)([]),r=to(e);(0,V.useEffect)(()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}},[r,...t])}let rt=Math.min,rn=Math.max,rr=Math.round,ro=Math.floor,ri=e=>({x:e,y:e}),rl={left:"right",right:"left",bottom:"top",top:"bottom"};function rs(e,t){return"function"==typeof e?e(t):e}function ra(e){return e.split("-")[0]}function ru(e){return e.split("-")[1]}function rc(e){return"x"===e?"y":"x"}function rd(e){return"y"===e?"height":"width"}function rf(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function rp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let rh=["left","right"],rm=["right","left"],rg=["top","bottom"],rv=["bottom","top"];function rb(e){let t=ra(e);return rl[t]+e.slice(t.length)}function rx(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ry(){return"undefined"!=typeof window}function r_(e){return rE(e)?(e.nodeName||"").toLowerCase():"#document"}function rw(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function rS(e){var t;return null==(t=(rE(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rE(e){return!!ry()&&(e instanceof Node||e instanceof rw(e).Node)}function rk(e){return!!ry()&&(e instanceof Element||e instanceof rw(e).Element)}function rC(e){return!!ry()&&(e instanceof HTMLElement||e instanceof rw(e).HTMLElement)}function rO(e){return!!ry()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof rw(e).ShadowRoot)}function rT(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=rN(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function rI(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let rj=/transform|translate|scale|rotate|perspective|filter/,rM=/paint|layout|strict|content/,rP=e=>!!e&&"none"!==e;function rR(e){let t=rk(e)?rN(e):e;return rP(t.transform)||rP(t.translate)||rP(t.scale)||rP(t.rotate)||rP(t.perspective)||!rL()&&(rP(t.backdropFilter)||rP(t.filter))||rj.test(t.willChange||"")||rM.test(t.contain||"")}function rL(){return null==o&&(o="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),o}function rA(e){return/^(html|body|#document)$/.test(r_(e))}function rN(e){return rw(e).getComputedStyle(e)}function rF(e){return rk(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rD(e){if("html"===r_(e))return e;let t=e.assignedSlot||e.parentNode||rO(e)&&e.host||rS(e);return rO(t)?t.host:t}function rz(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=rD(t);return rA(n)?(t.ownerDocument||t).body:rC(n)&&rT(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=rw(o);if(!i)return t.concat(o,rz(o,[],n));{let e=rW(l);return t.concat(l,l.visualViewport||[],rT(o)?o:[],e&&n?rz(e):[])}}function rW(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rH(e,t,n){let r,{reference:o,floating:i}=e,l=rf(t),s=rc(rf(t)),a=rd(s),u=ra(t),c=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[a]/2-i[a]/2;switch(u){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}let p=ru(t);return p&&(r[s]+=f*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function rB(e,t){var n,r,o,i,l;void 0===t&&(t={});let{x:s,y:a,platform:u,rects:c,elements:d,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:v=0}=rs(t,e),b="number"!=typeof v?{top:null!=(r=v.top)?r:0,right:null!=(o=v.right)?o:0,bottom:null!=(i=v.bottom)?i:0,left:null!=(l=v.left)?l:0}:{top:v,right:v,bottom:v,left:v},x=d[g?"floating"===m?"reference":"floating":m],y=rx(await u.getClippingRect({element:null==(n=await (null==u.isElement?void 0:u.isElement(x)))||n?x:x.contextElement||await (null==u.getDocumentElement?void 0:u.getDocumentElement(d.floating)),boundary:p,rootBoundary:h,strategy:f})),_="floating"===m?{x:s,y:a,width:c.floating.width,height:c.floating.height}:c.reference,w=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d.floating)),S=await (null==u.isElement?void 0:u.isElement(w))&&await (null==u.getScale?void 0:u.getScale(w))||{x:1,y:1},E=rx(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:_,offsetParent:w,strategy:f}):_);return{top:(y.top-E.top+b.top)/S.y,bottom:(E.bottom-y.bottom+b.bottom)/S.y,left:(y.left-E.left+b.left)/S.x,right:(E.right-y.right+b.right)/S.x}}let rV=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:rB},a=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=rH(u,r,a),f=r,p=0,h={};for(let n=0;n=rX(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(s-=l)}return{width:s,height:a,x:u,y:c}}(e,n,t);else if("document"===t)r=function(e){let t=rF(e),n=e.ownerDocument.body,r=rn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=rn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+rX(e),l=-t.scrollTop;return"rtl"===rN(n).direction&&(i+=rn(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(rS(e));else if(rk(t))r=function(e,t){let n=rY(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=rG(e),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=rZ(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rx(r)}function r1(e){return"static"===rN(e).position}function r2(e,t){if(!rC(e)||"fixed"===rN(e).position)return null;if(t)return t(e);let n=e.offsetParent;return rS(e)===n&&(n=n.ownerDocument.body),n}function r4(e,t){var n;let r=rw(e);if(rI(e))return r;if(!rC(e)){let t=rD(e);for(;t&&!rA(t);){if(rk(t)&&!r1(t))return t;t=rD(t)}return r}let o=r2(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(r_(n)))&&r1(o);)o=r2(o,t);return o&&rA(o)&&r1(o)&&!rR(o)?r:o||function(e){let t=rD(e);for(;rC(t)&&!rA(t);){if(rR(t))return t;if(rI(t))break;t=rD(t)}return null}(e)||r}let r5=async function(e){let t=this.getOffsetParent||r4,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=rC(t),o=rS(t),i="fixed"===n,l=rY(e,!0,i,t),s={scrollLeft:0,scrollTop:0},a=ri(0);if((r||!i)&&(("body"!==r_(t)||rT(o))&&(s=rF(t)),r)){let e=rY(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!r&&o&&(a.x=rX(o));let u=!o||r||i?ri(0):rJ(o,s);return{x:l.left+s.scrollLeft-a.x-u.x,y:l.top+s.scrollTop-a.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},r6={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=rS(r),s=!!t&&rI(t.floating);if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=ri(1),c=ri(0),d=rC(r);if((d||!i)&&(("body"!==r_(r)||rT(l))&&(a=rF(r)),d)){let e=rY(r);u=rG(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||i?ri(0):rJ(l,a);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-a.scrollTop*u.y+c.y+f.y}},getDocumentElement:rS,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?rI(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=rz(e,[],!1).filter(e=>rk(e)&&"body"!==r_(e)),o=null,i="fixed"===rN(e).position,l=i?rD(e):e;for(;rk(l)&&!rA(l);){let e=rN(l),t=rR(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=rD(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=r0(t,i[0],o),s=l.top,a=l.right,u=l.bottom,c=l.left;for(let e=1;e{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let f=c&&a?function(e,t,n){let r,o=null,i=rS(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function s(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(n||t(),!f||!p)return;let h=ro(d),m=ro(i.clientWidth-(c+f)),g={rootMargin:-h+"px "+-m+"px "+-ro(i.clientHeight-(d+p))+"px "+-ro(c)+"px",threshold:rn(0,rt(1,a))||1},v=!0;function b(t){let n=t[0].intersectionRatio;if(!r7(u,e.getBoundingClientRect()))return s();if(n!==a){if(!v)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}v=!1}try{o=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(b,g)}o.observe(e)}let a=rw(e),u=()=>s(n);return a.addEventListener("resize",u),s(!0),()=>{a.removeEventListener("resize",u),l()}}(c,n,l):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),t&&h.observe(t));let m=u?rY(e):null;return u&&function t(){let r=rY(e);m&&!r7(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}}let r8=(e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...r6,...o.platform,_c:r};return rV(e,t,{...o,platform:i})};var r9="undefined"!=typeof document?V.useLayoutEffect:function(){};function oe(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!oe(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!oe(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ot(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function on(e,t){let n=ot(e);return Math.round(t*n)/n}function or(e){let t=V.useRef(e);return r9(()=>{t.current=e}),t}let oo=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:s}=e,a=await rK(e,n);return l===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}},oi=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:l=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=rs(n,e),c={x:t,y:r},d=await i.detectOverflow(e,u),f=rf(o),p=rc(f),h=c[p],m=c[f],g=(e,t)=>rn(t+d["y"===e?"top":"left"],rt(t,t-d["y"===e?"bottom":"right"]));l&&(h=g(p,h)),s&&(m=g(f,m));let v=a.fn({...e,[p]:h,[f]:m});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[p]:l,[f]:s}}}}});return{name:r.name,fn:r.fn,options:[e,t]}},ol=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:s,middlewareData:a,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...x}=rs(n,e);if(null!=(t=a.arrow)&&t.alignmentOffset)return{};let y=ra(s),_=rf(c),w=ra(c)===c,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),E=m||(w||!b?[rb(c)]:function(e){let t=rb(e);return[rp(e),t,rp(t)]}(c)),k="none"!==v;!m&&k&&E.push(...function(e,t,n,r){let o=ru(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?rm:rh;return t?rh:rm;case"left":case"right":return t?rg:rv;default:return[]}}(ra(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(rp)))),i}(c,b,v,S));let C=[c,...E],O=await d.detectOverflow(e,x),T=[],I=(null==(r=a.flip)?void 0:r.overflows)||[];if(p&&T.push(O[y]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=ru(e),o=rc(rf(e)),i=rd(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=rb(l)),[l,rb(l)]}(s,u,S);T.push(O[e[0]],O[e[1]])}if(I=[...I,{placement:s,overflows:T}],!T.every(e=>e<=0)){let e=((null==(o=a.flip)?void 0:o.index)||0)+1,t=C[e];if(t&&(!("alignment"===h&&_!==rf(t))||I.every(e=>rf(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(g){case"bestFit":{let e=null==(l=I.filter(e=>{if(k){let t=rf(e.placement);return t===_||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}},os=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:i,platform:l,elements:s}=e,{apply:a=()=>{},...u}=rs(n,e),c=await l.detectOverflow(e,u),d=ra(o),f=ru(o),p="y"===rf(o),{width:h,height:m}=i.floating;"top"===d||"bottom"===d?(t=d,r=f===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(r=d,t="end"===f?"top":"bottom");let g=m-c.top-c.bottom,v=h-c.left-c.right,b=rt(m-c[t],g),x=rt(h-c[r],v),y=e.middlewareData.shift,_=b,w=x;null!=y&&y.enabled.x&&(w=v),null!=y&&y.enabled.y&&(_=g),y||f||(p?w=h-2*rn(c.left,c.right):_=m-2*rn(c.top,c.bottom)),await a({...e,availableWidth:w,availableHeight:_});let S=await l.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}},oa={...$},ou=oa.useInsertionEffect||(e=>e());function oc(e){let t=V.useRef(()=>{});return ou(()=>{t.current=e}),V.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r"floating-ui-"+Math.random().toString(36).slice(2,6)+op++,om=oa.useId||function(){let[e,t]=V.useState(()=>of?oh():void 0);return od(()=>{null==e&&t(oh())},[]),V.useEffect(()=>{of=!0},[]),e},og=V.createContext(null),ov=V.createContext(null),ob=()=>{var e;return(null==(e=V.useContext(og))?void 0:e.id)||null},ox=()=>V.useContext(ov),oy="active",o_="selected";function ow(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[oy]:t,[o_]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[oy,o_].includes(n))){if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;ie(...o)).find(e=>void 0!==e)}}}else e[n]=i}}),e),{})}}function oS(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let oE=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:l=0,minItemsVisible:s=4,referenceOverflowThreshold:a=0,scrollRef:u,...c}=rs(e,t),{rects:d,elements:{floating:f}}=t,p=n.current[l],h=(null==u?void 0:u.current)||f,m=f.clientTop||h.clientTop,g=0!==f.clientTop,v=0!==h.clientTop,b=f===h;if(!p)return{};let x={...t,...await oo(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-i).fn(t)},y=await rB(oS(x,h.scrollHeight+m+f.clientTop),c),_=await rB(x,{...c,elementContext:"reference"}),w=rn(0,y.top),S=x.y+w,E=(h.scrollHeight>h.clientHeight?e=>e:rr)(rn(0,h.scrollHeight+(g&&b||v?2*m:0)-w-rn(0,y.bottom)));if(h.style.maxHeight=E+"px",h.scrollTop=w,o){let e=h.offsetHeight=-a||_.bottom>=-a;tj.flushSync(()=>o(e))}return r&&(r.current=await rB(oS({...x,y:S},h.offsetHeight+m+f.clientTop),c)),{y:S}}}),ok=(0,V.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});ok.displayName="FloatingContext";let oC=(0,V.createContext)(null);function oO(e){return(0,V.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function oT(){return(0,V.useContext)(ok).setReference}function oI(){return(0,V.useContext)(ok).getReferenceProps}function oj(){let{getFloatingProps:e,slot:t}=(0,V.useContext)(ok);return(0,V.useCallback)(function(){for(var n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,V.useContext)(oC),n=(0,V.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);tn(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,V.useContext)(ok);return(0,V.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}function oP(e){var t,n,r,o;let i,l,s,{children:a,enabled:u=!0}=e,[c,d]=(0,V.useState)(null),[f,p]=(0,V.useState)(0),h=(0,V.useRef)(null),[m,g]=(0,V.useState)(null);tn(()=>{if(!t)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(t).maxHeight,n=parseFloat(e);if(isNaN(n))return;let r=parseInt(e);isNaN(r)||n!==r&&(t.style.maxHeight="".concat(Math.ceil(n),"px"))});return e.observe(t,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[t=m]);let v=u&&null!==c&&null!==m,{to:b="bottom",gap:x=0,offset:y=0,padding:_=0,inner:w}=(i=oR(null!=(n=null==c?void 0:c.gap)?n:"var(--anchor-gap, 0)",m),l=oR(null!=(r=null==c?void 0:c.offset)?r:"var(--anchor-offset, 0)",m),s=oR(null!=(o=null==c?void 0:c.padding)?o:"var(--anchor-padding, 0)",m),{...c,gap:i,offset:l,padding:s}),[S,E="center"]=b.split(" ");tn(()=>{v&&p(0)},[v]);let{refs:k,floatingStyles:C,context:O}=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,o=om(),i=V.useRef({}),[l]=V.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}})()),s=null!=ob(),[a,u]=V.useState(r.reference),c=oc((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),d=V.useMemo(()=>({setPositionReference:u}),[]),f=V.useMemo(()=>({reference:a||r.reference||null,floating:r.floating||null,domReference:r.reference}),[a,r.reference,r.floating]);return V.useMemo(()=>({dataRef:i,open:t,onOpenChange:c,elements:f,events:l,floatingId:o,refs:d}),[t,c,f,l,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,l]=V.useState(null),[s,a]=V.useState(null),u=(null==o?void 0:o.domReference)||i,c=V.useRef(null),d=ox();od(()=>{u&&(c.current=u)},[u]);let f=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[c,d]=V.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=V.useState(r);oe(f,r)||p(r);let[h,m]=V.useState(null),[g,v]=V.useState(null),b=V.useCallback(e=>{e!==w.current&&(w.current=e,m(e))},[]),x=V.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),y=i||h,_=l||g,w=V.useRef(null),S=V.useRef(null),E=V.useRef(c),k=null!=a,C=or(a),O=or(o),T=or(u),I=V.useCallback(()=>{if(!w.current||!S.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),r8(w.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};j.current&&!oe(E.current,t)&&(E.current=t,tj.flushSync(()=>{d(t)}))})},[f,t,n,O,T]);r9(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let j=V.useRef(!1);r9(()=>(j.current=!0,()=>{j.current=!1}),[]),r9(()=>{if(y&&(w.current=y),_&&(S.current=_),y&&_){if(C.current)return C.current(y,_,I);I()}},[y,_,I,C,k]);let M=V.useMemo(()=>({reference:w,floating:S,setReference:b,setFloating:x}),[b,x]),P=V.useMemo(()=>({reference:y,floating:_}),[y,_]),R=V.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=on(P.floating,c.x),r=on(P.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ot(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,P.floating,c.x,c.y]);return V.useMemo(()=>({...c,update:I,refs:M,elements:P,floatingStyles:R}),[c,I,M,P,R])}({...e,elements:{...o,...s&&{reference:s}}}),p=V.useCallback(e=>{let t=rk(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;a(t),f.refs.setReference(t)},[f.refs]),h=V.useCallback(e=>{(rk(e)||null===e)&&(c.current=e,l(e)),(rk(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!rk(e))&&f.refs.setReference(e)},[f.refs]),m=V.useMemo(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:c}),[f.refs,h,p]),g=V.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=V.useMemo(()=>({...f,...r,refs:m,elements:g,nodeId:t}),[f,m,g,t,r]);return od(()=>{r.dataRef.current.floatingContext=v;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),V.useMemo(()=>({...f,context:v,refs:m,elements:g}),[f,m,g,v])}({open:v,placement:"selection"===S?"center"===E?"bottom":"bottom-".concat(E):"center"===E?"".concat(S):"".concat(S,"-").concat(E),strategy:"absolute",transform:!1,middleware:[oo({mainAxis:"selection"===S?0:x,crossAxis:y}),oi({padding:_}),"selection"!==S&&ol({padding:_}),"selection"===S&&w?oE({...w,padding:_,overflowRef:h,offset:f,minItemsVisible:4,referenceOverflowThreshold:_,onFallbackChange(e){var t,n;if(!e)return;let r=O.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,s=0;for(let e of null!=(n=null==(t=O.elements.floating)?void 0:t.childNodes)?n:[])if(t5(e)){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,u=a+r.clientHeight;if(t>=a&&n<=u)i--;else{s=Math.max(0,Math.min(n,u)-Math.max(t,a)),l=e.clientHeight;break}}i>=1&&p(e=>{let t=l*i-s+o;return e>=t?e:t})}}):null,os({padding:_,apply(e){let{availableWidth:t,availableHeight:n,elements:r}=e;Object.assign(r.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:r3}),[T=S,I=E]=O.placement.split("-");"selection"===S&&(T="selection");let j=(0,V.useMemo)(()=>({anchor:[T,I].filter(Boolean).join(" ")}),[T,I]),{getReferenceProps:M,getFloatingProps:P}=function(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=V.useCallback(t=>ow(t,e,"reference"),t),i=V.useCallback(t=>ow(t,e,"floating"),n),l=V.useCallback(t=>ow(t,e,"item"),r);return V.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}([function(e,t){let{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:s}=t,a=oc(s),u=V.useRef(!1),c=V.useRef(null),d=V.useRef(null);V.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,l=t.scrollHeight-t.clientHeight,s=n<0?-1:1,u=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!o&&n<0?(e.preventDefault(),tj.flushSync(()=>{a(e=>e+Math[u](n,l*s))})):/firefox/i.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}let t=(null==l?void 0:l.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=i.current&&(d.current={...i.current})}),()=>{c.current=null,d.current=null,t.removeEventListener("wheel",e)}},[o,n,r.floating,i,l,a]);let f=V.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==l?void 0:l.current)||r.floating;if(i.current&&e&&u.current){if(null!==c.current){let t=e.scrollTop-c.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&tj.flushSync(()=>a(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,a,i,l]);return V.useMemo(()=>o?{floating:f}:{},[o,f])}(O,{overflowRef:h,onChange:p})]),R=to(e=>{g(e),k.setFloating(e)});return V.createElement(oC.Provider,{value:d},V.createElement(ok.Provider,{value:{setFloating:R,setReference:k.setReference,styles:C,getReferenceProps:M,getFloatingProps:P,slot:j}},a))}function oR(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=tt(),o=to((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=oL(e,t);return[o,n=>{let i=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let l=i.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function s(){r.nextFrame(s);let a=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(l[e]!==r){l[e]=r,a=!0;break}}if(!a)return;let u=oL(e,t);o!==u&&(n(u),o=u)})}return r.dispose}]}return[n,null]}),i=(0,V.useMemo)(()=>o(e,t)[0],[e,t]),[l=i,s]=(0,V.useState)();return tn(()=>{let[n,r]=o(e,t);if(s(n),r)return r(s)},[e,t]),l}function oL(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function oA(e,t){return e?e+"["+t+"]":t}oC.displayName="PlacementContext";var oN=((b=oN||{})[b.None=1]="None",b[b.Focusable=2]="Focusable",b[b.Hidden=4]="Hidden",b);let oF=tb(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=o["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return tp()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})}),oD=(0,V.createContext)(null);function oz(e){let{children:t}=e,n=(0,V.useContext)(oD);if(!n)return V.createElement(V.Fragment,null,t);let{target:r}=n;return r?(0,tj.createPortal)(V.createElement(V.Fragment,null,t),r):null}function oW(e){let{data:t,form:n,disabled:r,onReset:o,overrides:i}=e,[l,s]=(0,V.useState)(null),a=tt();return(0,V.useEffect)(()=>{if(o&&l)return a.addEventListener(l,"reset",o)},[l,n,o]),V.createElement(oz,null,V.createElement(oH,{setForm:s,formId:n}),(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[o,i]of Object.entries(t))!function t(n,r,o){if(Array.isArray(o))for(let[e,i]of o.entries())t(n,oA(r,e.toString()),i);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,"".concat(o)]):null==o?n.push([r,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(o)&&!(0,V.isValidElement)(o)&&e(o,r,n)}(r,oA(n,o),i);return r})(t).map(e=>{let[t,o]=e;return V.createElement(oF,{features:oN.Hidden,...tx({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:t,value:o,...i})})}))}function oH(e){let{setForm:t,formId:n}=e;return(0,V.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:V.createElement(oF,{features:oN.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}let oB=V.forwardRef(function(e,t){let{children:n,freeze:r}=e,o=oV(r,n);return(0,V.isValidElement)(o)?(0,V.cloneElement)(o,{ref:t}):V.createElement(V.Fragment,null,o)});function oV(e,t){let[n,r]=(0,V.useState)(t);return e||n===t||r(t),e?n:t}let o$=(0,V.createContext)(void 0);function oK(){return(0,V.useContext)(o$)}let oU=(0,V.createContext)(null);oU.displayName="OpenClosedContext";var oq=((x=oq||{})[x.Open=1]="Open",x[x.Closed=2]="Closed",x[x.Closing=4]="Closing",x[x.Opening=8]="Opening",x);function oG(){return(0,V.useContext)(oU)}function oQ(e){let{value:t,children:n}=e;return V.createElement(oU.Provider,{value:t},n)}let oZ=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!t6(e.target)||e.target===document.body||oZ[0]===e.target)return;let t=e.target;t=t.closest(nj),oZ.unshift(null!=t?t:e.target),(oZ=oZ.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var oY=((y=oY||{})[y.First=0]="First",y[y.Previous=1]="Previous",y[y.Next=2]="Next",y[y.Last=3]="Last",y[y.Specific=4]="Specific",y[y.Nothing=5]="Nothing",y);function oX(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),s=n2(t);tn(()=>l.register(o),[o,l.register]);let a=tl({...l.slot,disabled:r||!1}),u={ref:s,...l.props,id:o};return tp()({ourProps:u,theirProps:i,slot:a,defaultTag:"p",name:l.name||"Description"})}),{});var o1=((_=o1||{}).Space=" ",_.Enter="Enter",_.Escape="Escape",_.Backspace="Backspace",_.Delete="Delete",_.ArrowLeft="ArrowLeft",_.ArrowUp="ArrowUp",_.ArrowRight="ArrowRight",_.ArrowDown="ArrowDown",_.Home="Home",_.End="End",_.PageUp="PageUp",_.PageDown="PageDown",_.Tab="Tab",_);let o2=(0,V.createContext)(null);function o4(){let e=(0,V.useContext)(o2);if(null===e){let e=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,o4),e}return e}function o5(e){var t,n,r;let o=null!=(n=null==(t=(0,V.useContext)(o2))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function o6(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o5(),[n,r]=(0,V.useState)([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,(0,V.useMemo)(()=>function(e){let t=to(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,V.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return V.createElement(o2.Provider,{value:n},e.children)},[r])]}o2.displayName="LabelContext";let o7=Object.assign(tb(function(e,t){var n;let r=(0,V.useId)(),o=o4(),i=oK(),l=ta(),{id:s="headlessui-label-".concat(r),htmlFor:a=null!=i?i:null==(n=o.props)?void 0:n.htmlFor,passive:u=!1,...c}=e,d=n2(t);tn(()=>o.register(s),[s,o.register]);let f=to(e=>{var t;let n=e.currentTarget;if(!(e.target!==e.currentTarget&&t4(t=e.target)&&t.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'))&&(t3(n)&&e.preventDefault(),o.props&&"onClick"in o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),t3(n))){let e=document.getElementById(n.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(t7(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=tl({...o.slot,disabled:l||!1}),h={ref:d,...o.props,id:s,htmlFor:a,onClick:f};return u&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in c&&delete c.onClick),tp()({ourProps:h,theirProps:c,slot:p,defaultTag:a?"label":"div",name:o.name||"Label"})}),{});function o3(e){let t=to(e),n=(0,V.useRef)(!1);(0,V.useEffect)(()=>(n.current=!1,()=>{n.current=!0,e9(()=>{n.current&&t()})}),[t])}let o8=(0,V.createContext)(!1),o9=V.Fragment,ie=tb(function(e,t){let{ownerDocument:n=null,...r}=e,o=(0,V.useRef)(null),i=n2(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[n1]:t})}(e=>{o.current=e}),t),l=nU(o.current),s=function(e){let t=(0,V.useContext)(o8),n=(0,V.useContext)(ir),[r,o]=(0,V.useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(e5.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)});return(0,V.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,V.useEffect)(()=>{t||null!==n&&o(n.current)},[n,o,t]),r}(null!=n?n:l),a=(0,V.useContext)(io),u=tt(),c=function(){let e;let t=(e="undefined"==typeof document,(0,$.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[n,r]=V.useState(e5.isHandoffComplete);return n&&!1===e5.isHandoffComplete&&r(!1),V.useEffect(()=>{!0!==n&&r(!0)},[n]),V.useEffect(()=>e5.handoff(),[]),!t&&n}(),d=tp();return o3(()=>{var e;s&&s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s))}),s&&c?(0,tj.createPortal)(V.createElement("div",{"data-headlessui-portal":"",ref:e=>{u.dispose(),a&&e&&u.add(a.register(e))}},d({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:o9,name:"Portal"})),s):null}),it=V.Fragment,ir=(0,V.createContext)(null),io=(0,V.createContext)(null),ii=Object.assign(tb(function(e,t){let n=n2(t),{enabled:r=!0,ownerDocument:o,...i}=e,l=tp();return r?V.createElement(ie,{...i,ownerDocument:o,ref:n}):l({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:o9,name:"Portal"})}),{Group:tb(function(e,t){let{target:n,...r}=e,o={ref:n2(t)},i=tp();return V.createElement(ir.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:it,name:"Popover.Group"}))})}),il={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function is(e){let t=e.getBoundingClientRect();return"".concat(t.x,",").concat(t.y)}function ia(e,t,n){let r=te();if("Tracked"===t.kind){let o=function(){i!==is(e)&&(r.dispose(),n())},{position:i}=t,l=new ResizeObserver(o);l.observe(e),r.add(()=>l.disconnect()),r.addEventListener(window,"scroll",o,{passive:!0}),r.addEventListener(window,"resize",o)}return()=>r.dispose()}var iu=Object.defineProperty,ic=(e,t,n)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,id=(e,t,n)=>(ic(e,"symbol"!=typeof t?t+"":t,n),n),ip=((w=ip||{})[w.Open=0]="Open",w[w.Closed=1]="Closed",w),ih=((S=ih||{})[S.Single=0]="Single",S[S.Multi=1]="Multi",S),im=((E=im||{})[E.Pointer=0]="Pointer",E[E.Focus=1]="Focus",E[E.Other=2]="Other",E),ig=((k=ig||{})[k.OpenCombobox=0]="OpenCombobox",k[k.CloseCombobox=1]="CloseCombobox",k[k.GoToOption=2]="GoToOption",k[k.SetTyping=3]="SetTyping",k[k.RegisterOption=4]="RegisterOption",k[k.UnregisterOption=5]="UnregisterOption",k[k.DefaultToFirstOption=6]="DefaultToFirstOption",k[k.SetActivationTrigger=7]="SetActivationTrigger",k[k.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",k[k.SetInputElement=9]="SetInputElement",k[k.SetButtonElement=10]="SetButtonElement",k[k.SetOptionsElement=11]="SetOptionsElement",k[k.MarkInputAsMoved=12]="MarkInputAsMoved",k);function iv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),o=r.length>0&&null!==r[0].dataRef.current.order?r.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):nW(r,e=>e.dataRef.current.domRef.current),i=n?o.indexOf(n):null;return -1===i&&(i=null),{options:o,activeOptionIndex:i}}let ib={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?il.Tracked(is(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:il.Idle}}return{...e,comboboxState:0,inputPositionState:il.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,r,o,i;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(r=e.dataRef.current)&&r.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:r}=e.virtual,i=t.focus===oY.Specific?t.idx:oX(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,o;return null!=(o=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!r(e)))?o:null},resolveDisabled:r,resolveId(){throw Error("Function not implemented.")}}),l=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===i&&e.activationTrigger===l?e:{...e,activeOptionIndex:i,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=iv(e);if(null===l.activeOptionIndex){let e=l.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(l.activeOptionIndex=e)}let s=t.focus===oY.Specific?t.idx:oX(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===s&&e.activationTrigger===a?e:{...e,...l,isTyping:!1,activeOptionIndex:s,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var n,r,o,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let l=t.payload,s=iv(e,e=>(e.push(l),e));null===e.activeOptionIndex&&null!=(o=(r=e.dataRef.current).isSelected)&&o.call(r,t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(l));let a={...e,...s,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let r=iv(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...r,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var n,r;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let o=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==n?n:null}return{...e,activeOptionIndex:o,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:il.Moved}};class ix extends nu{static new(e){var t;let{id:n,virtual:r=null,__demoMode:o=!1}=e;return new ix({id:n,dataRef:{current:{}},comboboxState:o?0:1,isTyping:!1,options:[],virtual:r?{options:r.options,disabled:null!=(t=r.disabled)?t:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:o,inputPositionState:il.Idle})}reduce(e,t){return tc(t.type,ib,e,t)}constructor(e){super(e),id(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return tc(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex(t=>n(t,e));return -1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:oY.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),id(this,"selectors",{activeDescendantId:e=>{var t,n;let r=this.selectors.activeOptionIndex(e);if(null!==r)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[r])))?void 0:n.id:null==(t=e.options[r])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:n}=e.virtual,r=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==r)return r}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let r=this.selectors.activeOptionIndex(e);return null===r?null:e.virtual?e.virtual.options[null!=r?r:0]:null!=(n=null==(t=e.options[r])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var r;let o=this.selectors.activeOptionIndex(e);return null!==o&&(e.virtual?o===e.dataRef.current.calculateIndex(t):(null==(r=e.options[o])?void 0:r.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=ny.get(null);this.disposables.add(t.on(nv.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.comboboxState||this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add(ia(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}}let iy=(0,V.createContext)(null);function i_(e){let t=(0,V.useContext)(iy);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,iw),t}return t}function iw(e){let{id:t,virtual:n=null,__demoMode:r=!1}=e,o=(0,V.useMemo)(()=>ix.new({id:t,virtual:n,__demoMode:r}),[]);return o3(()=>o.dispose()),o}let iS=(0,V.createContext)(null);function iE(e){let t=(0,V.useContext)(iS);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,iE),t}return t}iS.displayName="ComboboxDataContext";let ik=(0,V.createContext)(null);function iC(e){let t=i_("VirtualProvider"),{options:n}=iE("VirtualProvider").virtual,r=nw(t,e=>e.optionsElement),[o,i]=(0,V.useMemo)(()=>{if(!r)return[0,0];let e=window.getComputedStyle(r);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[r]),l=function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){let o=V.useReducer(e=>e+1,0)[1],i=V.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});i.current.enabled=t,i.current.mode=n;let l=e=>{let t=i.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}},s=e=>{let t=i.current;if(!t.enabled||!t.container)return;l(e);let n=!!e.options.horizontal,r="transform"===t.mode,o=n?"left":"top",s=e.options.scrollMargin;for(let i of e.getVirtualItems()){let l=i.start-s,a=e.elementsCache.get(i.key);a&&t.lastPositions.get(a)!==l&&(t.lastPositions.set(a,l),r?a.style.transform=n?`translate3d(${l}px, 0, 0)`:`translate3d(0, ${l}px, 0)`:a.style[o]=`${l}px`)}},a={...r,onChange:(t,n)=>{var l;let a=i.current,u=!0;if(a.enabled){s(t);let e=t.range,n=a.prevRange;(u=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex))&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&n?(0,tj.flushSync)(o):o()),null==(l=r.onChange)||l.call(r,t,n)}},[u]=V.useState(()=>{let e=new tU(a);return Object.assign(e,{containerRef:t=>{let n=i.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let o=e.options.horizontal?"width":"height";t.style[o]=`${r}px`}}})});return u.setOptions(a),tG(()=>u._didMount(),[]),tG(()=>(l(u),u._willUpdate())),tG(()=>{s(u)}),u}({observeElementRect:tz,observeElementOffset:tV,scrollToFn:tK,enabled:0!==n.length,scrollPaddingStart:o,scrollPaddingEnd:i,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[s,a]=(0,V.useState)(0);tn(()=>{a(e=>e+1)},[n]);let u=l.getVirtualItems(),c=nw(t,e=>e.activationTrigger===im.Pointer),d=nw(t,t.selectors.activeOptionIndex);return 0===u.length?null:V.createElement(ik.Provider,{value:l},V.createElement("div",{style:{position:"relative",width:"100%",height:"".concat(l.getTotalSize(),"px")},ref:e=>{e&&(c||null!==d&&n.length>d&&l.scrollToIndex(d))}},u.map(t=>{var r;return V.createElement(V.Fragment,{key:t.key},V.cloneElement(null==(r=e.children)?void 0:r.call(e,{...e.slot,option:n[t.index]}),{key:"".concat(s,"-").concat(t.key),"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:"translateY(".concat(t.start,"px)"),overflowAnchor:"none"}}))})))}let iO=V.Fragment,iT=td.RenderStrategy|td.Static,iI=tb(function(e,t){let n=(0,V.useId)(),r=ta(),{value:o,defaultValue:i,onChange:l,form:s,name:a,by:u,invalid:c=!1,disabled:d=r||!1,onClose:f,__demoMode:p=!1,multiple:h=!1,immediate:m=!1,virtual:g=null,nullable:v,...b}=e,x=tX(i),[y=h?[]:void 0,_]=tY(o,l,x),w=iw({id:n,virtual:g,__demoMode:p}),S=(0,V.useRef)({static:!1,hold:!1}),E=tZ(u),k=to(e=>g?null===u?g.options.indexOf(e):g.options.findIndex(t=>E(t,e)):w.state.options.findIndex(t=>E(t.dataRef.current.value,e))),C=(0,V.useCallback)(e=>tc(I.mode,{[ih.Multi]:()=>y.some(t=>E(t,e)),[ih.Single]:()=>E(y,e)}),[y]),O=nw(w,e=>e.virtual),T=to(()=>null==f?void 0:f()),I=(0,V.useMemo)(()=>({__demoMode:p,immediate:m,optionsPropsRef:S,value:y,defaultValue:x,disabled:d,invalid:c,mode:h?ih.Multi:ih.Single,virtual:g?O:null,onChange:_,isSelected:C,calculateIndex:k,compare:E,onClose:T}),[p,m,S,y,x,d,c,h,g,O,_,C,k,E,T]);tn(()=>{var e;g&&w.send({type:ig.UpdateVirtualConfiguration,options:g.options,disabled:null!=(e=g.disabled)?e:null})},[g,null==g?void 0:g.options,null==g?void 0:g.disabled]),tn(()=>{w.state.dataRef.current=I},[I]);let[j,M,P,R]=nw(w,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),L=ny.get(null);nK(nw(L,(0,V.useCallback)(e=>L.selectors.isTop(e,n),[L,n])),[M,P,R],()=>w.actions.closeCombobox());let A=nw(w,w.selectors.activeOptionIndex),N=nw(w,w.selectors.activeOption),F=tl({open:j===ip.Open,disabled:d,invalid:c,activeIndex:A,activeOption:N,value:y}),[D,z]=o6(),W=(0,V.useCallback)(()=>{if(void 0!==x)return null==_?void 0:_(x)},[_,x]),H=tp();return V.createElement(z,{value:D,props:{htmlFor:null==P?void 0:P.id},slot:{open:j===ip.Open,disabled:d}},V.createElement(oP,null,V.createElement(iS.Provider,{value:I},V.createElement(iy.Provider,{value:w},V.createElement(oQ,{value:tc(j,{[ip.Open]:oq.Open,[ip.Closed]:oq.Closed})},null!=a&&V.createElement(oW,{disabled:d,data:null!=y?{[a]:y}:{},form:s,onReset:W}),H({ourProps:null===t?{}:{ref:t},theirProps:b,slot:F,defaultTag:iO,name:"Combobox"}))))))}),ij=tb(function(e,t){let n=i_("Combobox.Button"),r=iE("Combobox.Button"),[o,i]=(0,V.useState)(null),l=n2(t,i,n.actions.setButtonElement),s=(0,V.useId)(),{id:a="headlessui-combobox-button-".concat(s),disabled:u=r.disabled||!1,autoFocus:c=!1,...d}=e,[f,p,h]=nw(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),m=nZ(p);nQ(f===ip.Open,{trigger:o,action:(0,V.useCallback)(e=>{if(null!=o&&o.contains(e.target)||null!=p&&p.contains(e.target))return nG.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return t5(t)?nG.Select(t):null!=h&&h.contains(e.target)?nG.Ignore:nG.Close},[o,p,h]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let g=to(e=>{switch(e.key){case o1.Space:case o1.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ip.Closed&&(0,tj.flushSync)(()=>n.actions.openCombobox()),m();return;case o1.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ip.Closed&&((0,tj.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:oY.First})),m();return;case o1.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ip.Closed&&((0,tj.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:oY.Last})),m();return;case o1.Escape:if(n.state.comboboxState!==ip.Open)return;e.preventDefault(),n.state.optionsElement&&!r.optionsPropsRef.current.static&&e.stopPropagation(),(0,tj.flushSync)(()=>n.actions.closeCombobox()),m();return;default:return}}),v=ne(()=>{n.state.comboboxState===ip.Open?n.actions.closeCombobox():n.actions.openCombobox(),m()}),b=o5([a]),{isFocusVisible:x,focusProps:y}=eG({autoFocus:c}),{isHovered:_,hoverProps:w}=eJ({isDisabled:u}),{pressed:S,pressProps:E}=ti({disabled:u}),k=tl({open:f===ip.Open,active:S||f===ip.Open,disabled:u,invalid:r.invalid,value:r.value,hover:_,focus:x}),C=tv({ref:l,id:a,type:nY(e,o),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==h?void 0:h.id,"aria-expanded":f===ip.Open,"aria-labelledby":b,disabled:u||void 0,autoFocus:c,onKeyDown:g},v,y,w,E);return tp()({ourProps:C,theirProps:d,slot:k,defaultTag:"button",name:"Combobox.Button"})}),iM=tb(function(e,t){var n,r;let o=i_("Combobox.Input"),i=iE("Combobox.Input"),l=(0,V.useId)(),s=oK(),{id:a=s||"headlessui-combobox-input-".concat(l),onChange:u,displayValue:c,disabled:d=i.disabled||!1,autoFocus:f=!1,type:p="text",...h}=e,m=(0,V.useRef)(null),g=n2(m,t,oT(),o.actions.setInputElement),[v,b]=nw(o,e=>[e.comboboxState,e.isTyping]),x=tt(),y=to(()=>{o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:oY.Nothing})});re((e,t)=>{let[n,r]=e,[i,l]=t;if(o.state.isTyping)return;let s=m.current;s&&((l===ip.Open&&r===ip.Closed||n!==i)&&(s.value=n),requestAnimationFrame(()=>{if(o.state.isTyping||!s||e8(s))return;let{selectionStart:e,selectionEnd:t}=s;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&s.setSelectionRange(s.value.length,s.value.length)}))},[(0,V.useMemo)(()=>{var e;return"function"==typeof c&&void 0!==i.value?null!=(e=c(i.value))?e:"":"string"==typeof i.value?i.value:""},[i.value,c]),v,b]),re((e,t)=>{let[n]=e,[r]=t;if(n===ip.Open&&r===ip.Closed){if(o.state.isTyping)return;let e=m.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,r,i):e.setSelectionRange(n,r)}},[v]);let _=(0,V.useRef)(!1),w=to(()=>{_.current=!0}),S=to(()=>{x.nextFrame(()=>{_.current=!1})}),E=to(e=>{switch(o.actions.setIsTyping(!0),e.key){case o1.Enter:if(o.state.comboboxState!==ip.Open||_.current)return;if(e.preventDefault(),e.stopPropagation(),null===o.selectors.activeOptionIndex(o.state)){o.actions.closeCombobox();return}o.actions.selectActiveOption(),i.mode===ih.Single&&o.actions.closeCombobox();break;case o1.ArrowDown:return e.preventDefault(),e.stopPropagation(),tc(o.state.comboboxState,{[ip.Open]:()=>o.actions.goToOption({focus:oY.Next}),[ip.Closed]:()=>o.actions.openCombobox()});case o1.ArrowUp:return e.preventDefault(),e.stopPropagation(),tc(o.state.comboboxState,{[ip.Open]:()=>o.actions.goToOption({focus:oY.Previous}),[ip.Closed]:()=>{(0,tj.flushSync)(()=>o.actions.openCombobox()),i.value||o.actions.goToOption({focus:oY.Last})}});case o1.Home:if(o.state.comboboxState===ip.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:oY.First});case o1.PageUp:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:oY.First});case o1.End:if(o.state.comboboxState===ip.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:oY.Last});case o1.PageDown:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:oY.Last});case o1.Escape:return o.state.comboboxState!==ip.Open?void 0:(e.preventDefault(),o.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),i.mode===ih.Single&&null===i.value&&y(),o.actions.closeCombobox());case o1.Tab:if(o.actions.setIsTyping(!1),o.state.comboboxState!==ip.Open)return;i.mode===ih.Single&&o.state.activationTrigger!==im.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox()}}),k=to(e=>{null==u||u(e),i.mode===ih.Single&&""===e.target.value&&y(),o.actions.openCombobox()}),C=to(e=>{var t,n,r;let l=null!=(t=e.relatedTarget)?t:oZ.find(t=>t!==e.currentTarget);if(!(null!=(n=o.state.optionsElement)&&n.contains(l))&&!(null!=(r=o.state.buttonElement)&&r.contains(l))&&o.state.comboboxState===ip.Open)return e.preventDefault(),i.mode===ih.Single&&null===i.value&&y(),o.actions.closeCombobox()}),O=to(e=>{var t,n,r;let l=null!=(t=e.relatedTarget)?t:oZ.find(t=>t!==e.currentTarget);null!=(n=o.state.buttonElement)&&n.contains(l)||null!=(r=o.state.optionsElement)&&r.contains(l)||i.disabled||i.immediate&&o.state.comboboxState!==ip.Open&&x.microTask(()=>{(0,tj.flushSync)(()=>o.actions.openCombobox()),o.actions.setActivationTrigger(im.Focus)})}),T=o5(),I=o0(),{isFocused:j,focusProps:M}=eG({autoFocus:f}),{isHovered:P,hoverProps:R}=eJ({isDisabled:d}),L=nw(o,e=>e.optionsElement),A=tl({open:v===ip.Open,disabled:d,invalid:i.invalid,hover:P,focus:j,autofocus:f}),N=tv({ref:g,id:a,role:"combobox",type:p,"aria-controls":null==L?void 0:L.id,"aria-expanded":v===ip.Open,"aria-activedescendant":nw(o,o.selectors.activeDescendantId),"aria-labelledby":T,"aria-describedby":I,"aria-autocomplete":"list",defaultValue:null!=(r=null!=(n=e.defaultValue)?n:void 0!==i.defaultValue?null==c?void 0:c(i.defaultValue):null)?r:i.defaultValue,disabled:d||void 0,autoFocus:f,onCompositionStart:w,onCompositionEnd:S,onKeyDown:E,onChange:k,onFocus:O,onBlur:C},M,R);return tp()({ourProps:N,theirProps:h,slot:A,defaultTag:"input",name:"Combobox.Input"})}),iP=tb(function(e,t){var n,r,o;let i=(0,V.useId)(),{id:l="headlessui-combobox-options-".concat(i),hold:s=!1,anchor:a,portal:u=!1,modal:c=!0,transition:d=!1,...f}=e,p=i_("Combobox.Options"),h=iE("Combobox.Options"),m=oO(a);m&&(u=!0);let[g,v]=oM(m),[b,x]=(0,V.useState)(null),y=oj(),_=n2(t,m?g:null,p.actions.setOptionsElement,x),[w,S,E,k,C]=nw(p,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),O=nU(S||E),T=nU(k),I=oG(),[j,M]=n8(d,b,null!==I?(I&oq.Open)===oq.Open:w===ip.Open);nI(j,S,p.actions.closeCombobox),n0(!h.__demoMode&&c&&w===ip.Open,T),nT(!h.__demoMode&&c&&w===ip.Open,{allowed:(0,V.useCallback)(()=>[S,E,k],[S,E,k])});let P=!nw(p,p.selectors.didInputMove)&&j;tn(()=>{var t;h.optionsPropsRef.current.static=null!=(t=e.static)&&t},[h.optionsPropsRef,e.static]),tn(()=>{h.optionsPropsRef.current.hold=s},[h.optionsPropsRef,s]),n9(w===ip.Open,{container:k,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let R=o5([null==E?void 0:E.id]),L=tl({open:w===ip.Open,option:void 0}),A=to(()=>{p.actions.setActivationTrigger(im.Pointer)}),N=to(e=>{e.preventDefault(),p.actions.setActivationTrigger(im.Pointer)}),F=tv(m?y():{},{"aria-labelledby":R,role:"listbox","aria-multiselectable":h.mode===ih.Multi||void 0,id:l,ref:_,style:{...f.style,...v,"--input-width":t0(j,S,!0).width,"--button-width":t0(j,E,!0).width},onWheel:C===im.Pointer?void 0:A,onMouseDown:N,...n3(M)}),D=j&&w===ip.Closed&&!e.static,z=oV(D,null==(n=h.virtual)?void 0:n.options),W=oV(D,h.value),H=(0,V.useCallback)(e=>h.compare(W,e),[h.compare,W]),B=(0,V.useMemo)(()=>{if(!h.virtual)return h;if(void 0===z)throw Error("Missing `options` in virtual mode");return z!==h.virtual.options?{...h,virtual:{...h.virtual,options:z}}:h},[h,z,null==(r=h.virtual)?void 0:r.options]);h.virtual&&Object.assign(f,{children:V.createElement(iS.Provider,{value:B},V.createElement(iC,{slot:L},f.children))});let $=tp(),K=(0,V.useMemo)(()=>h.mode===ih.Multi?h:{...h,isSelected:H},[h,H]);return V.createElement(ii,{enabled:!!u&&(e.static||j),ownerDocument:O},V.createElement(iS.Provider,{value:K},$({ourProps:F,theirProps:{...f,children:V.createElement(oB,{freeze:D},"function"==typeof f.children?null==(o=f.children)?void 0:o.call(f,L):f.children)},slot:L,defaultTag:"div",features:iT,visible:P,name:"Combobox.Options"})))}),iR=tb(function(e,t){var n,r,o;let i=iE("Combobox.Option"),l=i_("Combobox.Option"),s=(0,V.useId)(),{id:a="headlessui-combobox-option-".concat(s),value:u,disabled:c=null!=(o=null==(r=null==(n=i.virtual)?void 0:n.disabled)?void 0:r.call(n,u))&&o,order:d=null,...f}=e,[p]=nw(l,e=>[e.inputElement]),h=nZ(p),m=nw(l,(0,V.useCallback)(e=>l.selectors.isActive(e,u,a),[u,a])),g=i.isSelected(u),v=(0,V.useRef)(null),b=tr({disabled:c,value:u,domRef:v,order:d}),x=(0,V.useContext)(ik),y=n2(t,v,x?x.measureElement:null),_=to(()=>{l.actions.setIsTyping(!1),l.actions.onChange(u)});tn(()=>l.actions.registerOption(a,b),[b,a]);let w=nw(l,(0,V.useCallback)(e=>l.selectors.shouldScrollIntoView(e,u,a),[u,a]));tn(()=>{if(w)return te().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[w,v]);let S=to(e=>{e.preventDefault(),e.button===t1.Left&&(c||(_(),nV()||requestAnimationFrame(()=>h()),i.mode===ih.Single&&l.actions.closeCombobox()))}),E=to(()=>{if(c)return l.actions.goToOption({focus:oY.Nothing});let e=i.calculateIndex(u);l.actions.goToOption({focus:oY.Specific,idx:e})}),k=n5(),C=to(e=>k.update(e)),O=to(e=>{if(!k.wasMoved(e)||c||m&&l.state.activationTrigger===im.Pointer)return;let t=i.calculateIndex(u);l.actions.goToOption({focus:oY.Specific,idx:t},im.Pointer)}),T=to(e=>{k.wasMoved(e)&&(c||m&&(i.optionsPropsRef.current.hold||l.state.activationTrigger===im.Pointer&&l.actions.goToOption({focus:oY.Nothing})))}),I=tl({active:m,focus:m,selected:g,disabled:c});return tp()({ourProps:{id:a,ref:y,role:"option",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,"aria-selected":g,disabled:void 0,onMouseDown:S,onFocus:E,onPointerEnter:C,onMouseEnter:C,onPointerMove:O,onMouseMove:O,onPointerLeave:T,onMouseLeave:T},theirProps:f,slot:I,defaultTag:"div",name:"Combobox.Option"})}),iL=Object.assign(iI,{Input:iM,Button:ij,Label:o7,Options:iP,Option:iR});function iA(){let[e,t]=(0,V.useState)(!1);return(0,V.useEffect)(()=>{t(!0)},[]),e}var iN=n(9470);let iF=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function iD(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!t5(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let l=i?null!=(n=o.innerText)?n:"":r;return iF.test(l)&&(l=l.replace(iF,"")),l}function iz(e){let t=(0,V.useRef)(""),n=(0,V.useRef)("");return to(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():iD(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return iD(e).trim()})(r).trim().toLowerCase();return t.current=o,n.current=i,i})}var iW=Object.defineProperty,iH=(e,t,n)=>t in e?iW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iB=(e,t,n)=>(iH(e,"symbol"!=typeof t?t+"":t,n),n),iV=((C=iV||{})[C.Open=0]="Open",C[C.Closed=1]="Closed",C),i$=((O=i$||{})[O.Single=0]="Single",O[O.Multi=1]="Multi",O),iK=((T=iK||{})[T.Pointer=0]="Pointer",T[T.Other=1]="Other",T),iU=((I=iU||{})[I.OpenListbox=0]="OpenListbox",I[I.CloseListbox=1]="CloseListbox",I[I.GoToOption=2]="GoToOption",I[I.Search=3]="Search",I[I.ClearSearch=4]="ClearSearch",I[I.SelectOption=5]="SelectOption",I[I.RegisterOptions=6]="RegisterOptions",I[I.UnregisterOptions=7]="UnregisterOptions",I[I.SetButtonElement=8]="SetButtonElement",I[I.SetOptionsElement=9]="SetOptionsElement",I[I.SortOptions=10]="SortOptions",I[I.MarkButtonAsMoved=11]="MarkButtonAsMoved",I);function iq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=nW(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let iG={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?il.Tracked(is(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:oY.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==o&&(n=o),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:il.Idle}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===oY.Nothing)return{...s,activeOptionIndex:null};if(t.focus===oY.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===oY.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=oX(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...s,activeOptionIndex:l}}}}else if(t.focus===oY.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=oX(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...s,activeOptionIndex:o}}}}let a=iq(e),u=oX(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...a,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==oY.Nothing&&(r=oX(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:oY.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...iq(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:il.Moved}};class iQ extends nu{static new(e){let{id:t,__demoMode:n=!1}=e;return new iQ({id:t,dataRef:{current:{}},listboxState:n?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:oY.Nothing},frozenValue:!1,__demoMode:n,buttonPositionState:il.Idle})}reduce(e,t){return tc(t.type,iG,e,t)}constructor(e){super(e),iB(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return tc(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex(t=>n(t,e));return -1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:np(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:np(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:np(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),iB(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=ny.get(null);this.disposables.add(t.on(nv.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(ia(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}}let iZ=(0,V.createContext)(null);function iY(e){let t=(0,V.useContext)(iZ);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,iX),t}return t}function iX(e){let{id:t,__demoMode:n=!1}=e,r=(0,V.useMemo)(()=>iQ.new({id:t,__demoMode:n}),[]);return o3(()=>r.dispose()),r}let iJ=(0,V.createContext)(null);function i0(e){let t=(0,V.useContext)(iJ);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,i0),t}return t}iJ.displayName="ListboxDataContext";let i1=V.Fragment,i2=(0,V.createContext)(!1),i4=td.RenderStrategy|td.Static,i5=V.Fragment,i6=tb(function(e,t){let n=(0,V.useId)(),r=ta(),{value:o,defaultValue:i,form:l,name:s,onChange:a,by:u,invalid:c=!1,disabled:d=r||!1,horizontal:f=!1,multiple:p=!1,__demoMode:h=!1,...m}=e,g=n2(t),v=tX(i),[b=p?[]:void 0,x]=tY(o,a,v),y=iX({id:n,__demoMode:h}),_=(0,V.useRef)({static:!1,hold:!1}),w=(0,V.useRef)(new Map),S=tZ(u),E=(0,V.useCallback)(e=>tc(k.mode,{[i$.Multi]:()=>b.some(t=>S(t,e)),[i$.Single]:()=>S(b,e)}),[b]),k=tl({value:b,disabled:d,invalid:c,mode:p?i$.Multi:i$.Single,orientation:f?"horizontal":"vertical",onChange:x,compare:S,isSelected:E,optionsPropsRef:_,listRef:w});tn(()=>{y.state.dataRef.current=k},[k]);let C=nw(y,e=>e.listboxState),O=ny.get(null),T=nw(O,(0,V.useCallback)(e=>O.selectors.isTop(e,n),[O,n])),[I,j]=nw(y,e=>[e.buttonElement,e.optionsElement]);nK(T,[I,j],(e,t)=>{y.send({type:iU.CloseListbox}),nF(t,nN.Loose)||(e.preventDefault(),null==I||I.focus())});let M=tl({open:C===iV.Open,disabled:d,invalid:c,value:b}),[P,R]=o6({inherit:!0}),L=(0,V.useCallback)(()=>{if(void 0!==v)return null==x?void 0:x(v)},[x,v]),A=tp();return V.createElement(R,{value:P,props:{htmlFor:null==I?void 0:I.id},slot:{open:C===iV.Open,disabled:d}},V.createElement(oP,null,V.createElement(iZ.Provider,{value:y},V.createElement(iJ.Provider,{value:k},V.createElement(oQ,{value:tc(C,{[iV.Open]:oq.Open,[iV.Closed]:oq.Closed})},null!=s&&null!=b&&V.createElement(oW,{disabled:d,data:{[s]:b},form:l,onReset:L}),A({ourProps:{ref:g},theirProps:m,slot:M,defaultTag:i1,name:"Listbox"}))))))}),i7=tb(function(e,t){let n=(0,V.useId)(),r=oK(),o=i0("Listbox.Button"),i=iY("Listbox.Button"),{id:l=r||"headlessui-listbox-button-".concat(n),disabled:s=o.disabled||!1,autoFocus:a=!1,...u}=e,c=n2(t,oT(),i.actions.setButtonElement),d=oI(),[f,p,h]=nw(i,e=>[e.listboxState,e.buttonElement,e.optionsElement]);nQ(f===iV.Open,{trigger:p,action:(0,V.useCallback)(e=>{if(null!=p&&p.contains(e.target))return nG.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return t5(t)?nG.Select(t):null!=h&&h.contains(e.target)?nG.Ignore:nG.Close},[p,h]),close:i.actions.closeListbox,select:i.actions.selectActiveOption});let m=to(e=>{switch(e.key){case o1.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case o1.Space:case o1.ArrowDown:e.preventDefault(),i.actions.openListbox({focus:o.value?oY.Nothing:oY.First});break;case o1.ArrowUp:e.preventDefault(),i.actions.openListbox({focus:o.value?oY.Nothing:oY.Last})}}),g=to(e=>{e.key===o1.Space&&e.preventDefault()}),v=ne(e=>{var t;i.state.listboxState===iV.Open?((0,tj.flushSync)(()=>i.actions.closeListbox()),null==(t=i.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),i.actions.openListbox({focus:oY.Nothing}))}),b=to(e=>e.preventDefault()),x=o5([l]),y=o0(),{isFocusVisible:_,focusProps:w}=eG({autoFocus:a}),{isHovered:S,hoverProps:E}=eJ({isDisabled:s}),{pressed:k,pressProps:C}=ti({disabled:s}),O=tl({open:f===iV.Open,active:k||f===iV.Open,disabled:s,invalid:o.invalid,value:o.value,hover:S,focus:_,autofocus:a}),T=nw(i,e=>e.listboxState===iV.Open),I=tv(d(),{ref:c,id:l,type:nY(e,p),"aria-haspopup":"listbox","aria-controls":null==h?void 0:h.id,"aria-expanded":T,"aria-labelledby":x,"aria-describedby":y,disabled:s||void 0,autoFocus:a,onKeyDown:m,onKeyUp:g,onKeyPress:b},v,w,E,C);return tp()({ourProps:I,theirProps:u,slot:O,defaultTag:"button",name:"Listbox.Button"})}),i3=tb(function(e,t){let n=(0,V.useId)(),{id:r="headlessui-listbox-options-".concat(n),anchor:o,portal:i=!1,modal:l=!0,transition:s=!1,...a}=e,u=oO(o),[c,d]=(0,V.useState)(null);u&&(i=!0);let f=i0("Listbox.Options"),p=iY("Listbox.Options"),[h,m,g,v]=nw(p,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),b=nU(m),x=nU(g),y=oG(),[_,w]=n8(s,c,null!==y?(y&oq.Open)===oq.Open:h===iV.Open);nI(_,m,p.actions.closeListbox),n0(!v&&l&&h===iV.Open,x),nT(!v&&l&&h===iV.Open,{allowed:(0,V.useCallback)(()=>[m,g],[m,g])});let S=!nw(p,p.selectors.didButtonMove)&&_,E=oV(nw(p,p.selectors.hasFrozenValue)&&!e.static,f.value),k=(0,V.useCallback)(e=>f.compare(E,e),[f.compare,E]),C=nw(p,e=>{var t;if(null==u||!(null!=(t=null==u?void 0:u.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>k(e.dataRef.current.value));return -1===n&&(n=0),n}),[O,T]=oM((()=>{if(null==u)return;if(null===C)return{...u,inner:void 0};let e=Array.from(f.listRef.current.values());return{...u,inner:{listRef:{current:e},index:C}}})()),I=oj(),j=n2(t,u?O:null,p.actions.setOptionsElement,d),M=tt();(0,V.useEffect)(()=>{g&&h===iV.Open&&(e8(g)||null==g||g.focus({preventScroll:!0}))},[h,g]);let P=to(e=>{var t;switch(M.dispose(),e.key){case o1.Space:if(""!==p.state.searchQuery)return e.preventDefault(),e.stopPropagation(),p.actions.search(e.key);case o1.Enter:e.preventDefault(),e.stopPropagation(),p.actions.selectActiveOption();break;case tc(f.orientation,{vertical:o1.ArrowDown,horizontal:o1.ArrowRight}):return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:oY.Next});case tc(f.orientation,{vertical:o1.ArrowUp,horizontal:o1.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:oY.Previous});case o1.Home:case o1.PageUp:return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:oY.First});case o1.End:case o1.PageDown:return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:oY.Last});case o1.Escape:e.preventDefault(),e.stopPropagation(),(0,tj.flushSync)(()=>p.actions.closeListbox()),null==(t=p.state.buttonElement)||t.focus({preventScroll:!0});return;case o1.Tab:e.preventDefault(),e.stopPropagation(),(0,tj.flushSync)(()=>p.actions.closeListbox()),nH(p.state.buttonElement,e.shiftKey?nP.Previous:nP.Next);break;default:1===e.key.length&&(p.actions.search(e.key),M.setTimeout(()=>p.actions.clearSearch(),350))}}),R=nw(p,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),L=tl({open:h===iV.Open}),A=tv(u?I():{},{id:r,ref:j,"aria-activedescendant":nw(p,p.selectors.activeDescendantId),"aria-multiselectable":f.mode===i$.Multi||void 0,"aria-labelledby":R,"aria-orientation":f.orientation,onKeyDown:P,role:"listbox",tabIndex:h===iV.Open?0:void 0,style:{...a.style,...T,"--button-width":t0(_,m,!0).width},...n3(w)}),N=tp(),F=(0,V.useMemo)(()=>f.mode===i$.Multi?f:{...f,isSelected:k},[f,k]);return V.createElement(ii,{enabled:!!i&&(e.static||_),ownerDocument:b},V.createElement(iJ.Provider,{value:F},N({ourProps:A,theirProps:a,slot:L,defaultTag:"div",features:i4,visible:S,name:"Listbox.Options"})))}),i8=tb(function(e,t){let n=(0,V.useId)(),{id:r="headlessui-listbox-option-".concat(n),disabled:o=!1,value:i,...l}=e,s=!0===(0,V.useContext)(i2),a=i0("Listbox.Option"),u=iY("Listbox.Option"),c=nw(u,e=>u.selectors.isActive(e,r)),d=a.isSelected(i),f=(0,V.useRef)(null),p=iz(f),h=tr({disabled:o,value:i,domRef:f,get textValue(){return p()}}),m=n2(t,f,e=>{e?a.listRef.current.set(r,e):a.listRef.current.delete(r)}),g=nw(u,e=>u.selectors.shouldScrollIntoView(e,r));tn(()=>{if(g)return te().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[g,f]),tn(()=>{if(!s)return u.actions.registerOption(r,h),()=>u.actions.unregisterOption(r)},[h,r,s]);let v=to(e=>{if(o)return e.preventDefault();u.actions.selectOption(i)}),b=to(()=>{if(o)return u.actions.goToOption({focus:oY.Nothing});u.actions.goToOption({focus:oY.Specific,id:r})}),x=n5(),y=to(e=>x.update(e)),_=to(e=>{x.wasMoved(e)&&(o||c&&u.state.activationTrigger===iK.Pointer||u.actions.goToOption({focus:oY.Specific,id:r},iK.Pointer))}),w=to(e=>{x.wasMoved(e)&&(o||c&&u.state.activationTrigger===iK.Pointer&&u.actions.goToOption({focus:oY.Nothing}))}),S=tl({active:c,focus:c,selected:d,disabled:o,selectedOption:d&&s}),E=s?{}:{id:r,ref:m,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":d,disabled:void 0,onClick:v,onFocus:b,onPointerEnter:y,onMouseEnter:y,onPointerMove:_,onMouseMove:_,onPointerLeave:w,onMouseLeave:w},k=tp();return!d&&s?null:k({ourProps:E,theirProps:l,slot:S,defaultTag:"div",name:"Listbox.Option"})}),i9=Object.assign(i6,{Button:i7,Label:o7,Options:i3,Option:i8,SelectedOption:tb(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:n2(t)},l=i0("ListboxSelectedOption"),s=tl({}),a=void 0===l.value||null===l.value||l.mode===i$.Multi&&Array.isArray(l.value)&&0===l.value.length,u=tp();return V.createElement(i2.Provider,{value:!0},u({ourProps:i,theirProps:{...o,children:V.createElement(V.Fragment,null,r&&a?r:n)},slot:s,defaultTag:i5,name:"ListboxSelectedOption"}))})});var le=n(9008),lt=n.n(le),ln=Object.defineProperty,lr=(e,t,n)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lo=(e,t,n)=>(lr(e,"symbol"!=typeof t?t+"":t,n),n),li=((j=li||{})[j.Open=0]="Open",j[j.Closed=1]="Closed",j),ll=((M=ll||{})[M.Pointer=0]="Pointer",M[M.Other=1]="Other",M),ls=((P=ls||{})[P.OpenMenu=0]="OpenMenu",P[P.CloseMenu=1]="CloseMenu",P[P.GoToItem=2]="GoToItem",P[P.Search=3]="Search",P[P.ClearSearch=4]="ClearSearch",P[P.RegisterItems=5]="RegisterItems",P[P.UnregisterItems=6]="UnregisterItems",P[P.SetButtonElement=7]="SetButtonElement",P[P.SetItemsElement=8]="SetItemsElement",P[P.SortItems=9]="SortItems",P[P.MarkButtonAsMoved=10]="MarkButtonAsMoved",P);function la(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=nW(t(e.items.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{items:r,activeItemIndex:o}}let lu={1(e){if(1===e.menuState)return e;let t=e.buttonElement?il.Tracked(is(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:oY.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:il.Idle},2:(e,t)=>{var n,r,o,i,l;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===oY.Nothing)return{...s,activeItemIndex:null};if(t.focus===oY.Specific)return{...s,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===oY.Previous){let n=e.activeItemIndex;if(null!==n){let i=e.items[n].dataRef.current.domRef,l=oX(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.items[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...s,activeItemIndex:l}}}}else if(t.focus===oY.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,o=oX(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.items[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...s,activeItemIndex:o}}}}let a=la(e),u=oX(t,{resolveItems:()=>a.items,resolveActiveIndex:()=>a.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...a,activeItemIndex:u}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return -1===i||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=e.items.concat(t.items.map(e=>e)),r=e.activeItemIndex;return e.pendingFocus.focus!==oY.Nothing&&(r=oX(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:n,activeItemIndex:r,pendingFocus:{focus:oY.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,r=[],o=new Set(t.items);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...la(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:il.Moved}};class lc extends nu{static new(e){let{id:t,__demoMode:n=!1}=e;return new lc({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:oY.Nothing},buttonPositionState:il.Idle})}reduce(e,t){return tc(t.type,lu,e,t)}constructor(e){super(e),lo(this,"actions",{registerItem:np(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:np(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),lo(this,"selectors",{activeDescendantId(e){var t;let n=e.activeItemIndex,r=e.items;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeItemIndex,o=e.items;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=ny.get(null);this.disposables.add(t.on(nv.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(ia(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}}let ld=(0,V.createContext)(null);function lf(e){let t=(0,V.useContext)(ld);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,lp),t}return t}function lp(e){let{id:t,__demoMode:n=!1}=e,r=(0,V.useMemo)(()=>lc.new({id:t,__demoMode:n}),[]);return o3(()=>r.dispose()),r}let lh=V.Fragment,lm=td.RenderStrategy|td.Static,lg=V.Fragment,lv=tb(function(e,t){let n=(0,V.useId)(),{__demoMode:r=!1,...o}=e,i=lp({id:n,__demoMode:r}),[l,s,a]=nw(i,e=>[e.menuState,e.itemsElement,e.buttonElement]),u=n2(t),c=ny.get(null);nK(nw(c,(0,V.useCallback)(e=>c.selectors.isTop(e,n),[c,n])),[a,s],(e,t)=>{var n;i.send({type:ls.CloseMenu}),nF(t,nN.Loose)||(e.preventDefault(),null==(n=i.state.buttonElement)||n.focus())});let d=to(()=>{i.send({type:ls.CloseMenu})}),f=tl({open:l===li.Open,close:d}),p=tp();return V.createElement(oP,null,V.createElement(ld.Provider,{value:i},V.createElement(oQ,{value:tc(l,{[li.Open]:oq.Open,[li.Closed]:oq.Closed})},p({ourProps:{ref:u},theirProps:o,slot:f,defaultTag:lh,name:"Menu"}))))}),lb=tb(function(e,t){let n=lf("Menu.Button"),r=(0,V.useId)(),{id:o="headlessui-menu-button-".concat(r),disabled:i=!1,autoFocus:l=!1,...s}=e,a=(0,V.useRef)(null),u=oI(),c=n2(t,a,oT(),to(e=>n.send({type:ls.SetButtonElement,element:e}))),d=to(e=>{switch(e.key){case o1.Space:case o1.Enter:case o1.ArrowDown:e.preventDefault(),e.stopPropagation(),n.send({type:ls.OpenMenu,focus:{focus:oY.First}});break;case o1.ArrowUp:e.preventDefault(),e.stopPropagation(),n.send({type:ls.OpenMenu,focus:{focus:oY.Last}})}}),f=to(e=>{e.key===o1.Space&&e.preventDefault()}),[p,h,m]=nw(n,e=>[e.menuState,e.buttonElement,e.itemsElement]);nQ(p===li.Open,{trigger:h,action:(0,V.useCallback)(e=>{if(null!=h&&h.contains(e.target))return nG.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return t5(t)?nG.Select(t):null!=m&&m.contains(e.target)?nG.Ignore:nG.Close},[h,m]),close:(0,V.useCallback)(()=>n.send({type:ls.CloseMenu}),[]),select:(0,V.useCallback)(e=>e.click(),[])});let g=ne(e=>{var t;i||(p===li.Open?((0,tj.flushSync)(()=>n.send({type:ls.CloseMenu})),null==(t=a.current)||t.focus({preventScroll:!0})):(e.preventDefault(),n.send({type:ls.OpenMenu,focus:{focus:oY.Nothing},trigger:ll.Pointer})))}),{isFocusVisible:v,focusProps:b}=eG({autoFocus:l}),{isHovered:x,hoverProps:y}=eJ({isDisabled:i}),{pressed:_,pressProps:w}=ti({disabled:i}),S=tl({open:p===li.Open,active:_||p===li.Open,disabled:i,hover:x,focus:v,autofocus:l}),E=tv(u(),{ref:c,id:o,type:nY(e,a.current),"aria-haspopup":"menu","aria-controls":null==m?void 0:m.id,"aria-expanded":p===li.Open,disabled:i||void 0,autoFocus:l,onKeyDown:d,onKeyUp:f},g,b,y,w);return tp()({ourProps:E,theirProps:s,slot:S,defaultTag:"button",name:"Menu.Button"})}),lx=tb(function(e,t){let n=(0,V.useId)(),{id:r="headlessui-menu-items-".concat(n),anchor:o,portal:i=!1,modal:l=!0,transition:s=!1,...a}=e,u=oO(o),c=lf("Menu.Items"),[d,f]=oM(u),p=oj(),[h,m]=(0,V.useState)(null),g=n2(t,u?d:null,to(e=>c.send({type:ls.SetItemsElement,element:e})),m),[v,b]=nw(c,e=>[e.menuState,e.buttonElement]),x=nU(b),y=nU(h);u&&(i=!0);let _=oG(),[w,S]=n8(s,h,null!==_?(_&oq.Open)===oq.Open:v===li.Open);nI(w,b,()=>{c.send({type:ls.CloseMenu})});let E=nw(c,e=>e.__demoMode);n0(!E&&l&&v===li.Open,y),nT(!E&&l&&v===li.Open,{allowed:(0,V.useCallback)(()=>[b,h],[b,h])});let k=!nw(c,c.selectors.didButtonMove)&&w;(0,V.useEffect)(()=>{h&&v===li.Open&&(e8(h)||h.focus({preventScroll:!0}))},[v,h]),n9(v===li.Open,{container:h,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let C=tt(),O=to(e=>{var t,n,r;switch(C.dispose(),e.key){case o1.Space:if(""!==c.state.searchQuery)return e.preventDefault(),e.stopPropagation(),c.send({type:ls.Search,value:e.key});case o1.Enter:if(e.preventDefault(),e.stopPropagation(),null!==c.state.activeItemIndex){let{dataRef:e}=c.state.items[c.state.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}c.send({type:ls.CloseMenu}),nD(c.state.buttonElement);break;case o1.ArrowDown:return e.preventDefault(),e.stopPropagation(),c.send({type:ls.GoToItem,focus:oY.Next});case o1.ArrowUp:return e.preventDefault(),e.stopPropagation(),c.send({type:ls.GoToItem,focus:oY.Previous});case o1.Home:case o1.PageUp:return e.preventDefault(),e.stopPropagation(),c.send({type:ls.GoToItem,focus:oY.First});case o1.End:case o1.PageDown:return e.preventDefault(),e.stopPropagation(),c.send({type:ls.GoToItem,focus:oY.Last});case o1.Escape:e.preventDefault(),e.stopPropagation(),(0,tj.flushSync)(()=>c.send({type:ls.CloseMenu})),null==(r=c.state.buttonElement)||r.focus({preventScroll:!0});break;case o1.Tab:e.preventDefault(),e.stopPropagation(),(0,tj.flushSync)(()=>c.send({type:ls.CloseMenu})),nH(c.state.buttonElement,e.shiftKey?nP.Previous:nP.Next);break;default:1===e.key.length&&(c.send({type:ls.Search,value:e.key}),C.setTimeout(()=>c.send({type:ls.ClearSearch}),350))}}),T=to(e=>{e.key===o1.Space&&e.preventDefault()}),I=tl({open:v===li.Open}),j=tv(u?p():{},{"aria-activedescendant":nw(c,c.selectors.activeDescendantId),"aria-labelledby":nw(c,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:r,onKeyDown:O,onKeyUp:T,role:"menu",tabIndex:v===li.Open?0:void 0,ref:g,style:{...a.style,...f,"--button-width":t0(w,b,!0).width},...n3(S)}),M=tp();return V.createElement(ii,{enabled:!!i&&(e.static||w),ownerDocument:x},M({ourProps:j,theirProps:a,slot:I,defaultTag:"div",features:lm,visible:k,name:"Menu.Items"}))}),ly=tb(function(e,t){let n=(0,V.useId)(),{id:r="headlessui-menu-item-".concat(n),disabled:o=!1,...i}=e,l=lf("Menu.Item"),s=nw(l,e=>l.selectors.isActive(e,r)),a=(0,V.useRef)(null),u=n2(t,a),c=nw(l,e=>l.selectors.shouldScrollIntoView(e,r));tn(()=>{if(c)return te().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=a.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[c,a]);let d=iz(a),f=(0,V.useRef)({disabled:o,domRef:a,get textValue(){return d()}});tn(()=>{f.current.disabled=o},[f,o]),tn(()=>(l.actions.registerItem(r,f),()=>l.actions.unregisterItem(r)),[f,r]);let p=to(()=>{l.send({type:ls.CloseMenu})}),h=to(e=>{if(o)return e.preventDefault();l.send({type:ls.CloseMenu}),nD(l.state.buttonElement)}),m=to(()=>{if(o)return l.send({type:ls.GoToItem,focus:oY.Nothing});l.send({type:ls.GoToItem,focus:oY.Specific,id:r})}),g=n5(),v=to(e=>g.update(e)),b=to(e=>{g.wasMoved(e)&&(o||s||l.send({type:ls.GoToItem,focus:oY.Specific,id:r,trigger:ll.Pointer}))}),x=to(e=>{g.wasMoved(e)&&(o||s&&l.state.activationTrigger===ll.Pointer&&l.send({type:ls.GoToItem,focus:oY.Nothing}))}),[y,_]=o6(),[w,S]=function(){let[e,t]=(0,V.useState)([]);return[e.length>0?e.join(" "):void 0,(0,V.useMemo)(()=>function(e){let n=to(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,V.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return V.createElement(oJ.Provider,{value:r},e.children)},[t])]}(),E=tl({active:s,focus:s,disabled:o,close:p}),k=tp();return V.createElement(_,null,V.createElement(S,null,k({ourProps:{id:r,ref:u,role:"menuitem",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-labelledby":y,"aria-describedby":w,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:b,onMouseMove:b,onPointerLeave:x,onMouseLeave:x},theirProps:i,slot:E,defaultTag:lg,name:"Menu.Item"})))}),l_=Object.assign(lv,{Button:lb,Items:lx,Item:ly,Section:tb(function(e,t){let[n,r]=o6(),o=tp();return V.createElement(r,null,o({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:tb(function(e,t){let n=(0,V.useId)(),{id:r="headlessui-menu-heading-".concat(n),...o}=e,i=o4();tn(()=>i.register(r),[r,i.register]);let l={id:r,ref:t,role:"presentation",...i.props};return tp()({ourProps:l,theirProps:o,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:tb(function(e,t){return tp()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})}),lw=e=>"object"==typeof e&&null!=e&&1===e.nodeType,lS=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,lE=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&l=t&&s>=n?i-e-r:l>t&&sn?l-t+o:0,lC=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},lO=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];let{scrollMode:l,block:s,inline:a,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!lw(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,p=[],h=e;for(;lw(h)&&d(h);){if((h=lC(h))===f){p.push(h);break}null!=h&&h===document.body&&lE(h)&&!lE(document.documentElement)||null!=h&&lE(h,c)&&p.push(h)}let m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:x,width:y,top:_,right:w,bottom:S,left:E}=e.getBoundingClientRect(),{top:k,right:C,bottom:O,left:T}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),I="start"===s||"nearest"===s?_-k:"end"===s?S+O:_+x/2-k+O,j="center"===a?E+y/2-T+C:"end"===a?w+C:E-T,M=[];for(let e=0;e=0&&E>=0&&S<=g&&w<=m&&(t===f&&!lE(t)||_>=o&&S<=u&&E>=c&&w<=i))break;let d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),O=parseInt(d.borderBottomWidth,10),T=0,P=0,R="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-C:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-O:0,A="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,N="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)T="start"===s?I:"end"===s?I-g:"nearest"===s?lk(b,b+g,g,k,O,b+I,b+I+x,x):I-g/2,P="start"===a?j:"center"===a?j-m/2:"end"===a?j-m:lk(v,v+m,m,h,C,v+j,v+j+y,y),T=Math.max(0,T+b),P=Math.max(0,P+v);else{T="start"===s?I-o-k:"end"===s?I-u+O+L:"nearest"===s?lk(o,u,n,k,O+L,I,I+x,x):I-(o+n/2)+L/2,P="start"===a?j-c-h:"center"===a?j-(c+r/2)+R/2:"end"===a?j-i+C+R:lk(c,i,r,h,C+R,j,j+y,y);let{scrollLeft:e,scrollTop:l}=t;T=0===N?0:Math.max(0,Math.min(l+T/N,t.scrollHeight-n/N+L)),P=0===A?0:Math.max(0,Math.min(e+P/A,t.scrollWidth-r/A+R)),I+=l-T,j+=e-P}M.push({el:t,top:T,left:P})}return M},lT=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};function lI(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(lO(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:i,left:l}of lO(e,lT(t))){let e=i-n.top+n.bottom,t=l-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}let lj=({className:e,...t})=>(0,B.jsx)("table",{className:es("_not-prose","_block _overflow-x-auto",e),...t});function lM({getValue:e,...t}){let[n,r]=(0,V.useState)(!1);(0,V.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{r(!1)},2e3);return()=>{clearTimeout(e)}},[n]);let o=(0,V.useCallback)(async()=>{r(!0),navigator?.clipboard||console.error("Access to clipboard rejected!");try{await navigator.clipboard.writeText(e())}catch{console.error("Failed to copy!")}},[e]),i=n?tk.nQ:tk.TI;return(0,B.jsx)(tE,{onClick:o,title:"Copy code",variant:"outline",...t,children:(0,B.jsx)(i,{height:"16",className:"nextra-copy-icon"})})}function lP(){let e=document.documentElement.dataset;"nextraWordWrap"in e?delete e.nextraWordWrap:e.nextraWordWrap=""}var lR=Object.defineProperty,lL=Object.defineProperties,lA=Object.getOwnPropertyDescriptors,lN=Object.getOwnPropertySymbols,lF=Object.prototype.hasOwnProperty,lD=Object.prototype.propertyIsEnumerable,lz=(e,t,n)=>t in e?lR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lW=(e,t)=>{for(var n in t||(t={}))lF.call(t,n)&&lz(e,n,t[n]);if(lN)for(var n of lN(t))lD.call(t,n)&&lz(e,n,t[n]);return e},lH=(e,t)=>lL(e,lA(t)),lB=(e,t)=>{var n={};for(var r in e)lF.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&lN)for(var r of lN(e))0>t.indexOf(r)&&lD.call(e,r)&&(n[r]=e[r]);return n},lV=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},l=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,l);s((n=n.apply(e,t)).next())}),l$=(0,V.forwardRef)((e,t)=>{var{href:n="",children:r,newWindow:o}=e,i=lB(e,["href","children","newWindow"]);let l=o||n.startsWith("#")?"a":eu();return(0,B.jsx)(l,lH(lW(lH(lW({},i),{className:es("nextra-focus",i.className),ref:t,href:n}),o&&{target:"_blank",rel:"noreferrer"}),{children:r}))});l$.displayName="Anchor";var lK=(0,V.createContext)(null);lK.displayName="ActiveAnchor";var lU=(0,V.createContext)(null);lU.displayName="SetActiveAnchor";var lq=(0,V.createContext)(null);lq.displayName="IntersectionObserver";var lG=new WeakMap,lQ=(0,V.createContext)(lG);lQ.displayName="Slugs";var lZ=()=>(0,V.useContext)(lK),lY=()=>(0,V.useContext)(lU),lX=()=>(0,V.useContext)(lq),lJ=()=>(0,V.useContext)(lQ),l0=({children:e})=>{let[t,n]=(0,V.useState)({}),r=(0,V.useRef)(null);return(0,V.useEffect)(()=>{let e=getComputedStyle(document.body).getPropertyValue("--nextra-navbar-height");return r.current=new IntersectionObserver(e=>{n(t=>{let n=lW({},t);for(let t of e)if((null==t?void 0:t.rootBounds)&&lG.has(t.target)){let[e,r]=lG.get(t.target),o=t.boundingClientRect.y+t.boundingClientRect.height<=t.rootBounds.y+t.rootBounds.height,i=t.intersectionRatio>0;n[e]={index:r,aboveHalfViewport:o,insideHalfViewport:i}}let r="",o=1/0,i=-1;for(let e in n)n[e].isActive=!1,n[e].insideHalfViewport&&n[e].indexi&&(i=n[e].index,r=e);return n[r]&&(n[r].isActive=!0),n})},{rootMargin:`-${e} 0px -50%`,threshold:[0,1]}),()=>{r.current.disconnect()}},[]),(0,B.jsx)(lK.Provider,{value:t,children:(0,B.jsx)(lU.Provider,{value:n,children:(0,B.jsx)(lQ.Provider,{value:lG,children:(0,B.jsx)(lq.Provider,{value:r.current,children:e})})})})},l1=(0,V.createContext)({menu:!1,setMenu:()=>!1});l1.displayName="Menu";var l2=()=>(0,V.useContext)(l1),l4=l1.Provider,l5=(0,V.createContext)({title:"",frontMatter:{},filePath:"",hideSidebar:!1,normalizePagesResult:{}});function l6(){return(0,V.useContext)(l5)}function l7({children:e,value:t}){let[n,r]=(0,V.useState)(!1),{asPath:o}=(0,tC.useRouter)(),i=tT(),l=(0,V.useMemo)(()=>(function e({list:t,route:n,docsRoot:r="",underCurrentDocsRoot:o=!1,pageThemeContext:i=tI}){let l={},s=[],a=[];for(let[e,n]of(t.sort((e,t)=>"data"in e?-1:"data"in t?1:e.name.localeCompare(t.name)),t.entries())){if("data"in n){for(let e of s=Object.keys(l=n.data).filter(e=>"*"!==e))"string"==typeof l[e]&&(l[e]={title:l[e]});continue}let r=t[e-1];if(r&&r.name===n.name){a[a.length-1]={...r,withIndexPage:!0,frontMatter:n.frontMatter};continue}a.push(n)}for(let[e,t]of(a.sort((e,t)=>{let n=s.indexOf(e.name),r=s.indexOf(t.name);return -1===n&&-1===r?e.namee.name===t);if("menu"===n.type&&r&&(r.items=n.items,"undefined"==typeof window)){let{children:e}=a.find(e=>e.name===t);for(let[n,o]of Object.entries(r.items))if(!o.href&&e.every(e=>e.name!==n))throw Error(`Validation of "_meta" file has failed.
The field key "${t}.items.${n}" in \`_meta\` file refers to a page that cannot be found, remove this key from "_meta" file.`)}if(r)continue;if("undefined"==typeof window&&!("separator"===n.type||"menu"===n.type||n.href))throw Error(`Validation of "_meta" file has failed.
The field key "${t}" in \`_meta\` file refers to a page that cannot be found, remove this key from "_meta" file.`);let o=a[e];o&&o.name===t||a.splice(e,0,{name:t,...l[t]})}let u=[],c=[],d=[],f=[],p=[],{title:h,href:m,...g}=l["*"]||{},v=g.type,b=0,x={...i,...g.theme},y=[];for(let t of a){let s=function(e={},t,n={}){let r={...t.theme,...e.theme,...n.theme};return{...t,...e,display:n.display||e.display||t.display,theme:r}}(l[t.name],g,t.frontMatter),{display:a,type:h="doc"}=s,m={...i,...s.theme},_=n.startsWith(r),w=t.children&&e({list:t.children,route:n,docsRoot:"page"===h||"menu"===h?t.route:r,underCurrentDocsRoot:o||_,pageThemeContext:m}),S=s.title||"separator"!==h&&(t.frontMatter?.sidebarTitle||t.frontMatter?.title||t.name),E=()=>({...t,type:h,...S&&{title:S},...a&&{display:a},...w&&{children:[]}}),k=E(),C=E(),O=E();if(C.isUnderCurrentDocsTree=_,"separator"===h&&(k.isUnderCurrentDocsTree=_),t.route===n)switch(y=[k],v=h,x={...x,...m},h){case"page":case"menu":b=p.length;break;case"doc":b=f.length}if(tO.hV.has(t.route))continue;let T="hidden"===a;if(w){if(void 0!==w.activeIndex&&void 0!==w.activeType){if(x=w.activeThemeContext,v=w.activeType,T)continue;switch(y=[k,...w.activePath.filter(e=>"children"!==e.display)],v){case"page":case"menu":b=p.length+w.activeIndex;break;case"doc":b=f.length+w.activeIndex}t.withIndexPage&&"doc"===h&&b++}switch(h){case"page":case"menu":if(O.children.push(...w.directories),d.push(...w.docsDirectories),w.flatDirectories.length){let e=function e(t){for(let n of t){if(n.route)return n.route;if(n.children){let t=e(n.children);if(t)return t}}}(w.flatDirectories);e&&(O.firstChildRoute=e),p.push(O)}else O.withIndexPage&&p.push(O);break;case"doc":C.children.push(...w.docsDirectories),k.withIndexPage&&"children"!==a&&f.push(C)}c.push(...w.flatDirectories),f.push(...w.flatDocsDirectories),k.children.push(...w.directories)}else{if(T)continue;switch(c.push(k),h){case"page":case"menu":p.push(O);break;case"doc":"href"in k||f.push(C)}}if(!T)switch("doc"===h&&"children"===a?C.children&&(u.push(...C.children),d.push(...C.children)):u.push(k),h){case"page":case"menu":d.push(O);break;case"doc":"children"!==a&&d.push(C);break;case"separator":d.push(k)}}return{activeType:v,activeIndex:b,activeThemeContext:x,activePath:y,directories:u,flatDirectories:c,docsDirectories:d,flatDocsDirectories:f,topLevelNavbarItems:p}})({list:t.pageMap,route:i}),[t.pageMap,i]),{activeType:s,activeThemeContext:a}=l,u={title:t.title,frontMatter:t.frontMatter,filePath:t.filePath,timestamp:t.timestamp,hideSidebar:!a.sidebar||"raw"===a.layout||"page"===s,normalizePagesResult:l};(0,V.useEffect)(()=>{r(!1)},[o]),(0,V.useEffect)(()=>{document.body.classList.toggle("max-md:_overflow-hidden",n)},[n]),(0,V.useEffect)(()=>{let e;function t(){document.body.classList.add("resizing"),clearTimeout(e),e=window.setTimeout(()=>{document.body.classList.remove("resizing")},200)}return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]);let c=(0,V.useMemo)(()=>({menu:n,setMenu:r}),[n]);return(0,B.jsx)(l5.Provider,{value:u,children:(0,B.jsx)(l4,{value:c,children:e})})}function l3(e){let{href:t,origin:n,pathname:r}=new URL(e),[,o,i]=r.split("/");return{href:t,origin:n,owner:o,name:i}}function l8(e,t){return e?"function"!=typeof e?e:(0,B.jsx)(e,lW({},t)):null}function l9(e,t={}){return("function"==typeof e?e(t):e)||""}l5.displayName="Config";var se="en-US",st={backgroundColor:{dark:"17,17,17",light:"250,250,250"},banner:{dismissible:!0,key:"nextra-banner"},chat:{icon:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(tk.D7,{}),(0,B.jsx)("span",{className:"_sr-only",children:"Discord"})]})},color:{hue:{dark:204,light:212},lightness:{dark:55,light:45},saturation:100},darkMode:!0,direction:"ltr",docsRepositoryBase:"https://github.com/shuding/nextra",editLink:{component:function({className:e,filePath:t,children:n}){let r=function(e=""){let t=l3(so().docsRepositoryBase||"");if(!t)throw Error("Invalid `docsRepositoryBase` URL!");return`${t.href}/${e}`}(t);return r?(0,B.jsx)(l$,{className:e,href:r,children:n}):null},content:"Edit this page"},feedback:{content:"Question? Give us feedback →",labels:"feedback",useLink(){let e=l6(),t=so();return function({repository:e="",title:t,labels:n}){let r=l3(e);if(!r)throw Error("Invalid `docsRepositoryBase` URL!");return r.origin.includes("gitlab")?`${r.origin}/${r.owner}/${r.name}/-/issues/new?issue[title]=${encodeURIComponent(t)}${n?`&issue[description]=/label${encodeURIComponent(` ~${n}
-`)}`:""}`:r.origin.includes("github")?`${r.origin}/${r.owner}/${r.name}/issues/new?title=${encodeURIComponent(t)}&labels=${n||""}`:"#"}({labels:t.feedback.labels,repository:t.docsRepositoryBase,title:`Feedback for \u201C${e.title}\u201D`})}},footer:{component:function({menu:e}){let t=so();return(0,B.jsxs)("footer",{className:"_bg-gray-100 _pb-[env(safe-area-inset-bottom)] dark:_bg-neutral-900 print:_bg-transparent",children:[(0,B.jsxs)("div",{className:es("_mx-auto _flex _max-w-[90rem] _gap-2 _py-2 _px-4",e&&(t.i18n.length>0||t.darkMode)?"_flex":"_hidden"),children:[(0,B.jsx)(sv,{}),t.darkMode&&l8(t.themeSwitch.component)]}),(0,B.jsx)("hr",{className:"dark:_border-neutral-800"}),(0,B.jsx)("div",{className:es("_mx-auto _flex _max-w-[90rem] _justify-center _py-12 _text-gray-600 dark:_text-gray-400 md:_justify-start","_pl-[max(env(safe-area-inset-left),1.5rem)] _pr-[max(env(safe-area-inset-right),1.5rem)]"),children:l8(t.footer.content)})]})},content:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:e}){let{locale:t=se}=(0,ei.t)();return(0,B.jsxs)(B.Fragment,{children:["Last updated on"," ",(0,B.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleDateString(t,{day:"numeric",month:"long",year:"numeric"})})]})},head:function(){let{frontMatter:e,title:t}=l6(),n=`${t} \u2013 Nextra`,{description:r,canonical:o,image:i}=e;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("title",{children:n}),(0,B.jsx)("meta",{property:"og:title",content:n}),r&&[(0,B.jsx)("meta",{name:"description",content:r},0),(0,B.jsx)("meta",{property:"og:description",content:r},1)],o&&(0,B.jsx)("link",{rel:"canonical",href:o}),i&&(0,B.jsx)("meta",{name:"og:image",content:i})]})},i18n:[],logo:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("span",{className:"_font-extrabold",children:"Nextra"}),(0,B.jsx)("span",{className:"_ml-2 max-md:_hidden _font-normal _text-gray-600",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:function({items:e}){let t=so(),n=tT(),{menu:r,setMenu:o}=l2();return(0,B.jsxs)("div",{className:"nextra-nav-container _sticky _top-0 _z-20 _w-full _bg-transparent print:_hidden",children:[(0,B.jsx)("div",{className:"nextra-nav-container-blur"}),(0,B.jsxs)("nav",{className:"_mx-auto _flex _h-[var(--nextra-navbar-height)] _max-w-[90rem] _items-center _justify-end _gap-4 _pl-[max(env(safe-area-inset-left),1.5rem)] _pr-[max(env(safe-area-inset-right),1.5rem)]",children:[t.logoLink?(0,B.jsx)(eu(),{href:"string"==typeof t.logoLink?t.logoLink:"/",className:"nextra-focus _flex _items-center hover:_opacity-75 ltr:_mr-auto rtl:_ml-auto",children:l8(t.logo)}):(0,B.jsx)("div",{className:"_flex _items-center ltr:_mr-auto rtl:_ml-auto",children:l8(t.logo)}),(0,B.jsx)("div",{className:"_flex _gap-4 _overflow-x-auto nextra-scrollbar _py-1.5",children:e.map(e=>{if("hidden"===e.display)return null;if("menu"===e.type)return(0,B.jsx)(sw,{menu:e,children:e.title},e.title);let t=e.href||e.route||"#";e.children&&(t=(e.withIndexPage?e.route:e.firstChildRoute)||t);let r=e.route===n||n.startsWith(e.route+"/");return(0,B.jsx)(l$,{href:t,className:es(s_.link,"max-md:_hidden _whitespace-nowrap _ring-inset",!r||e.newWindow?s_.inactive:s_.active),newWindow:e.newWindow,"aria-current":!e.newWindow&&r,children:e.title},t)})}),l8(t.search.component,{className:"max-md:_hidden"}),t.project.link?(0,B.jsx)(l$,{href:t.project.link,newWindow:!0,children:l8(t.project.icon)}):null,t.chat.link?(0,B.jsx)(l$,{href:t.chat.link,newWindow:!0,children:l8(t.chat.icon)}):null,l8(t.navbar.extraContent),(0,B.jsx)(tE,{"aria-label":"Menu",className:({active:e})=>es("nextra-hamburger _rounded md:_hidden",e&&"_bg-gray-400/20"),onClick:()=>o(!r),children:(0,B.jsx)(tk.Oq,{className:es({open:r})})})]})]})}},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},project:{icon:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(tk.fy,{}),(0,B.jsx)("span",{className:"_sr-only",children:"GitHub"})]})},search:{component:function({className:e}){let{locale:t=se,basePath:n}=(0,ei.t)(),[r,o]=(0,V.useState)(!1),[i,l]=(0,V.useState)(!1),[s,a]=(0,V.useState)([]),[u,c]=(0,V.useState)(""),d=e=>{var n,r;if(!e){a([]);return}let[o,i]=sf[t],l=(null==(n=o.search(e,5,{enrich:!0,suggest:!0})[0])?void 0:n.result)||[],s=[],u={};for(let t=0;te._page_rk===t._page_rk?e._section_rk-t._section_rk:u[e._page_rk]!==u[t._page_rk]?u[t._page_rk]-u[e._page_rk]:e._page_rk-t._page_rk).map(e=>({id:`${e._page_rk}_${e._section_rk}`,route:e.route,prefix:e.prefix,children:e.children})))},f=(0,V.useCallback)(()=>lV(this,null,function*(){if(!sf[t]){o(!0);try{yield sh(n,t)}catch(e){l(!0)}o(!1)}}),[t,n]);return(0,B.jsx)(sd,{loading:r,error:i,value:u,onChange:e=>{c(e),r||d(e)},onActive:f,className:e,results:s})},emptyResult:(0,B.jsx)("span",{className:"_block _select-none _p-8 _text-center _text-sm _text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:"Loading…",placeholder:"Search documentation…"},sidebar:{defaultMenuCollapseLevel:2,toggleButton:!0},themeSwitch:{component:function({lite:e,className:t}){let{setTheme:n,resolvedTheme:r,theme:o=""}=Y(),i=iA(),l=so().themeSwitch,s=i&&"dark"===r?tk.kL:tk.NW,a="function"==typeof l.useOptions?l.useOptions():l.useOptions;return(0,B.jsx)(sg,{className:t,title:"Change theme",options:[{key:"light",name:a.light},{key:"dark",name:a.dark},{key:"system",name:a.system}],onChange:e=>{n(e.key)},selected:{key:o,name:(0,B.jsxs)("div",{className:"_flex _items-center _gap-2 _capitalize",children:[(0,B.jsx)(s,{}),(0,B.jsx)("span",{className:e?"md:_hidden":"",children:i?a[o]:a.light})]})}})},useOptions:{dark:"Dark",light:"Light",system:"System"}},toc:{backToTop:"Scroll to top",component:function({toc:e,filePath:t}){var n;let r=lZ(),o=(0,V.useRef)(null),i=so(),l=e.length>0,s=!!(i.feedback.content||i.editLink.component||i.toc.extraContent||i.toc.backToTop),a=null==(n=Object.entries(r).find(([,{isActive:e}])=>e))?void 0:n[0],u=e.findIndex(({id:e})=>e===a);return(0,V.useEffect)(()=>{var e;if(!a)return;let t=null==(e=o.current)?void 0:e.querySelector(`a[href="#${a}"]`);t&&lI(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"if-needed",boundary:o.current})},[a]),(0,B.jsxs)("div",{className:es(l&&"_grid _grid-rows-[min-content_1fr_min-content]","_sticky _top-[--nextra-navbar-height] _pt-6 _text-sm","_max-h-[calc(100vh-var(--nextra-navbar-height))]"),children:[l&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("p",{className:es("_mx-4","_font-semibold _tracking-tight","_pb-2 _shadow-[0_12px_16px_rgb(var(--nextra-bg))] contrast-more:_shadow-none _z-[1]"),children:l8(i.toc.title)}),(0,B.jsx)("ul",{ref:o,className:es("_px-4 nextra-scrollbar _overscroll-y-contain _overflow-y-auto _hyphens-auto","_py-1.5"),children:e.map(({id:e,value:t,depth:n})=>{var o;return(0,B.jsx)("li",{className:"_my-2 _scroll-my-6 _scroll-py-6",children:(0,B.jsx)("a",{href:`#${e}`,className:es("nextra-focus",{2:"_font-semibold",3:"_ms-4",4:"_ms-8",5:"_ms-12",6:"_ms-16"}[n],"_block _transition-colors _subpixel-antialiased",(null==(o=r[e])?void 0:o.isActive)?"_text-primary-600 contrast-more:!_text-primary-600":"_text-gray-500 hover:_text-gray-900 dark:_text-gray-400 dark:hover:_text-gray-300","contrast-more:_text-gray-900 contrast-more:_underline contrast-more:dark:_text-gray-50 _break-words"),children:function e(t){return"string"==typeof t?t:V.Children.map(t,t=>{var n;if("string"!=typeof(n=t)&&n.props.href&&(t=t.props.children),"string"==typeof t)return t;if(Array.isArray(t))return e(t);let r=e(t.props.children);return(0,V.cloneElement)(t,{children:r})})}(t)})},e)})})]}),s&&(0,B.jsxs)("div",{className:es(l&&"nextra-toc-footer _pt-4","_flex _flex-col _items-start _gap-2 _pb-4","_mx-4"),children:[i.feedback.content?(0,B.jsx)(l$,{className:sz,href:i.feedback.useLink(),newWindow:!0,children:l8(i.feedback.content)}):null,l8(i.editLink.component,{filePath:t,className:sz,children:l8(i.editLink.content)}),l8(i.toc.extraContent),i.toc.backToTop&&(0,B.jsx)(sD,{className:sz,hidden:u<2,children:l8(i.toc.backToTop)})]})]})},float:!0,title:"On This Page"}},sn=Object.entries(st).map(([e,t])=>{if(t&&"object"==typeof t&&!Array.isArray(t)&&!(0,V.isValidElement)(t))return e}).filter(Boolean),sr=(0,V.createContext)(st);sr.displayName="ThemeConfig";var so=()=>(0,V.useContext)(sr);function si({value:e,children:t}){let n=(0,V.useRef)();return n.current||(n.current=lW(lW({},st),e&&Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t&&"object"==typeof t&&sn.includes(e)?lW(lW({},st[e]),t):t])))),(0,B.jsx)(sr.Provider,{value:n.current,children:t})}function sl(){let{banner:e}=so();if(!e.content)return null;let t=`try{if(localStorage.getItem(${JSON.stringify(e.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("script",{dangerouslySetInnerHTML:{__html:t}}),(0,B.jsxs)("div",{className:es("nextra-banner-container max-md:_sticky _top-0 _z-20 _flex _items-center","_h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:_hidden","_text-slate-50 dark:_text-white _bg-neutral-900 dark:_bg-[linear-gradient(1deg,#383838,#212121)]","_px-2 _ps-10 print:_hidden"),children:[(0,B.jsx)("div",{className:"_w-full _truncate _text-center _font-medium _text-sm",children:l8(e.content)}),e.dismissible&&(0,B.jsx)(tE,{"aria-label":"Dismiss banner",className:({hover:e})=>es("_p-2",e?"_opacity-100":"_opacity-80"),onClick:()=>{try{localStorage.setItem(e.key,"0")}catch(e){}document.body.classList.add("nextra-banner-hidden")},children:(0,B.jsx)(tk.b0,{height:"16"})})]})]})}function ss({activePath:e}){return(0,B.jsx)("div",{className:"nextra-breadcrumb _mt-1.5 _flex _items-center _gap-1 _overflow-hidden _text-sm _text-gray-500 dark:_text-gray-400 contrast-more:_text-current",children:e.map((e,t,n)=>{let r=n[t+1],o=r?e.withIndexPage?e.route:e.children[0].route===r.route?"":e.children[0].route:"",i=o?eu():"span";return(0,B.jsxs)(V.Fragment,{children:[t>0&&(0,B.jsx)(tk.LZ,{height:"14",className:"_shrink-0 rtl:_rotate-180"}),(0,B.jsx)(i,lH(lW({className:es("_whitespace-nowrap _transition-colors",r?"_min-w-6 _overflow-hidden _text-ellipsis":"_font-medium _text-gray-700 contrast-more:_font-bold contrast-more:_text-current dark:_text-gray-100 contrast-more:dark:_text-current",o&&"nextra-focus _ring-inset hover:_text-gray-900 dark:hover:_text-gray-100"),title:e.title},o&&{href:o}),{children:e.title}))]},e.route+e.name)})})}function sa({children:e,isOpen:t,horizontal:n=!1,openDuration:r=500,closeDuration:o=300}){let i=(0,V.useRef)(null),l=(0,V.useRef)(t),s=(0,V.useRef)(0),a=(0,V.useRef)(!0);return(0,V.useEffect)(()=>{let e=s.current,o=i.current;if(e&&(clearTimeout(e),s.current=0),a.current)return;let l=o.children[0];n?(l.style.width=`${l.clientWidth}px`,o.style.width=`${l.clientWidth}px`):o.style.height=`${l.clientHeight}px`,t?s.current=window.setTimeout(()=>{o.style.removeProperty("height")},r):setTimeout(()=>{n?o.style.width="0":o.style.height="0"})},[n,t,r]),(0,V.useEffect)(()=>{a.current=!1},[]),(0,B.jsx)("div",{ref:i,className:es("_transform-gpu _transition-all _ease-in-out motion-reduce:_transition-none",t?"_opacity-100":["_opacity-0","_overflow-hidden"]),style:lH(lW({},l.current||n?void 0:{height:0}),{transitionDuration:(t?r:o)+"ms"}),children:(0,B.jsx)("div",{children:e})})}var su=(0,V.memo)(function({value:e,match:t}){let n;if(!e)return null;let r=e.split(""),o=RegExp((function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})(t.trim()).replaceAll(/\s+/g,"|"),"ig"),i=0,l=[];for(;n=o.exec(e);)if(n.index===o.lastIndex)o.lastIndex++;else{let e=r.splice(0,n.index-i).join(""),t=r.splice(0,o.lastIndex-n.index).join("");l.push(e,(0,B.jsx)("span",{className:"_text-primary-600",children:t},n.index)),i=o.lastIndex}return(0,B.jsxs)(B.Fragment,{children:[l,r.join("")]})}),sc=new Set(["input","select","button","textarea"]);function sd({className:e,value:t,onChange:n,onActive:r,loading:o,error:i,results:l}){let s=so(),{setMenu:a}=l2(),u=(0,tC.useRouter)(),[c,d]=(0,V.useState)(!1),f=iA(),p=(0,V.useRef)(null);(0,V.useEffect)(()=>{function e(e){let t=p.current,n=document.activeElement,r=null==n?void 0:n.tagName.toLowerCase();!(!t||!r||sc.has(r))&&(null==n||!n.isContentEditable)&&("/"===e.key||"k"===e.key&&(e.metaKey||e.ctrlKey))&&(e.preventDefault(),t.focus({preventScroll:!0}))}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]);let h=f&&!c&&(0,B.jsx)("kbd",{className:es("_absolute _my-1.5 _select-none ltr:_right-1.5 rtl:_left-1.5","_h-5 _rounded _bg-white _px-1.5 _font-mono _text-[11px] _font-medium _text-gray-500","_border dark:_border-gray-100/20 dark:_bg-black/50","contrast-more:_border-current contrast-more:_text-current contrast-more:dark:_border-current","_items-center _gap-1 _flex","max-sm:_hidden"),children:navigator.userAgent.includes("Mac")?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("span",{className:"_text-xs",children:"⌘"}),"K"]}):"CTRL K"}),m=(0,V.useCallback)(e=>{let t="focus"===e.type;t&&(null==r||r()),d(t)},[r]),g=(0,V.useCallback)(e=>{let{value:t}=e.currentTarget;n(t)},[n]),v=(0,V.useCallback)(e=>lV(this,null,function*(){var t;e&&(null==(t=p.current)||t.blur(),yield u.push(e.route),a(!1),n(""))}),[u,a,n]);return(0,B.jsxs)(iL,{onChange:v,children:[(0,B.jsxs)("div",{className:es("_not-prose","_relative _flex _items-center","_text-gray-900 dark:_text-gray-300","contrast-more:_text-gray-800 contrast-more:dark:_text-gray-300",e),children:[(0,B.jsx)(iM,{ref:p,spellCheck:!1,className:({focus:e})=>es("_rounded-lg _px-3 _py-2 _transition-colors","_w-full md:_w-64","_text-base _leading-tight md:_text-sm",e?"_bg-transparent nextra-focusable":"_bg-black/[.05] dark:_bg-gray-50/10","placeholder:_text-gray-500 dark:placeholder:_text-gray-400","contrast-more:_border contrast-more:_border-current","[&::-webkit-search-cancel-button]:_appearance-none"),autoComplete:"off",type:"search",onChange:g,onFocus:m,onBlur:m,value:t,placeholder:l9(s.search.placeholder)}),h]}),(0,B.jsx)(iP,{transition:!0,anchor:{to:"top end",gap:10,padding:16},className:({open:e})=>es("nextra-search-results","nextra-scrollbar max-md:_h-full","_border _border-gray-200 _text-gray-100 dark:_border-neutral-800","_z-20 _rounded-xl _py-2.5 _shadow-xl","contrast-more:_border contrast-more:_border-gray-900 contrast-more:dark:_border-gray-50","_backdrop-blur-lg _bg-[rgb(var(--nextra-bg),.8)]","motion-reduce:_transition-none _transition-opacity",e?"_opacity-100":"_opacity-0",i||o||!l.length?"md:_h-[100px]":"md:!_max-h-[min(calc(100vh-5rem),400px)]","_w-full md:_w-[576px]","empty:_invisible"),children:i?(0,B.jsxs)("span",{className:"_flex _select-none _justify-center _gap-2 _p-8 _text-center _text-sm _text-red-500",children:[(0,B.jsx)(tk.AV,{className:"_size-5"}),l9(s.search.error)]}):o?(0,B.jsxs)("span",{className:"_flex _select-none _justify-center _gap-2 _p-8 _text-center _text-sm _text-gray-400",children:[(0,B.jsx)(tk.L4,{className:"_size-5 _animate-spin"}),l8(s.search.loading)]}):l.length?l.map(e=>(0,B.jsxs)(V.Fragment,{children:[e.prefix,(0,B.jsx)(iR,{as:eu(),value:e,href:e.route,className:({focus:e})=>es("_mx-2.5 _break-words _rounded-md","contrast-more:_border",e?"_text-primary-600 contrast-more:_border-current _bg-primary-500/10":"_text-gray-800 dark:_text-gray-300 contrast-more:_border-transparent","_block _scroll-m-12 _px-2.5 _py-2"),children:e.children})]},e.id)):t&&l8(s.search.emptyResult)})]})}var sf={},sp=new Map,sh=(e,t)=>{let n=e+"@"+t;if(sp.has(n))return sp.get(n);let r=sm(e,t);return sp.set(n,r),r},sm=(e,t)=>lV(void 0,null,function*(){let[r,o]=yield Promise.all([fetch(`${e}/_next/static/chunks/nextra-data-${t}.json`).then(e=>e.json()),n.e(921).then(n.bind(n,4921)).then(e=>e.default.Document)]),i=new o({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),l=new o({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),s=0;for(let[e,t]of Object.entries(r)){let n="";for(let[r,o]of(++s,Object.entries(t.data))){let[i,a]=r.split("#"),u=e+(i?"#"+i:""),c=a||t.title,d=o.split("\n");l.add(lW({id:u,url:u,title:c,pageId:`page_${s}`,content:c},d[0]&&{display:d[0]}));for(let e=0;ees("_h-7 _rounded-md _px-2 _text-xs _font-medium _transition-colors",t?"_bg-gray-200 _text-gray-900 dark:_bg-primary-100/10 dark:_text-gray-50":e?"_bg-gray-100 _text-gray-900 dark:_bg-primary-100/5 dark:_text-gray-50":"_text-gray-600 dark:_text-gray-400",n&&"nextra-focusable",o),children:t.name}),(0,B.jsx)(i3,{as:"ul",transition:!0,anchor:{to:"top start",gap:10},className:({open:e})=>es("nextra-focus",e?"_opacity-100":"_opacity-0","motion-reduce:_transition-none _transition-opacity _min-w-[--button-width] _z-20 _max-h-64 _rounded-md _border _border-black/5 _backdrop-blur-lg _bg-[rgb(var(--nextra-bg),.8)] _py-1 _text-sm _shadow-lg dark:_border-white/20"),children:e.map(e=>(0,B.jsxs)(i8,{value:e,as:"li",className:({focus:n})=>es(n?"_bg-primary-50 _text-primary-600 dark:_bg-primary-500/10":"_text-gray-800 dark:_text-gray-100","_cursor-pointer _whitespace-nowrap _py-1.5 _px-3","_transition-colors",e.key===t.key&&"_flex _items-center _justify-between _gap-3"),children:[e.name,e.key===t.key&&(0,B.jsx)(tk.nQ,{height:"16"})]},e.key))})]})}function sv({lite:e,className:t}){let n=so(),{locale:r,asPath:o}=(0,ei.t)(),i=n.i18n;if(!i.length)return null;let l=i.find(e=>r===e.locale);return(0,B.jsx)(sg,{title:"Change language",className:t,onChange:e=>{let t=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${e.key}; expires=${t.toUTCString()}; path=/`;let n=(0,iN.addBasePath)(o.replace(`/${r}`,`/${e.key}`));location.href=n},selected:{key:(null==l?void 0:l.locale)||"",name:(0,B.jsxs)("span",{className:"_flex _items-center _gap-2",children:[(0,B.jsx)(tk.n9,{}),(0,B.jsx)("span",{className:e?"_hidden":"",children:null==l?void 0:l.name})]})},options:i.map(e=>({key:e.locale,name:e.name}))})}function sb(){let{resolvedTheme:e}=Y(),t=iA(),n=so(),r="function"==typeof n.head?n.head({}):n.head,{hue:o,saturation:i,lightness:l}=n.color,{dark:s,light:a}="number"==typeof o?{dark:o,light:o}:o,{dark:u,light:c}="number"==typeof i?{dark:i,light:i}:i,{dark:d,light:f}="number"==typeof l?{dark:l,light:l}:l,p=n.backgroundColor;return(0,B.jsxs)(lt(),{children:[n.faviconGlyph?(0,B.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${n.faviconGlyph} `}):null,t?(0,B.jsx)("meta",{name:"theme-color",content:"dark"===e?"#111":"#fff"}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,B.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,B.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,B.jsx)("style",{children:`:root{--nextra-primary-hue:${a}deg;--nextra-primary-saturation:${c}%;--nextra-primary-lightness:${f}%;--nextra-navbar-height:64px;--nextra-menu-height:3.75rem;--nextra-banner-height:2.5rem;--nextra-bg:${p.light};}.dark{--nextra-primary-hue:${s}deg;--nextra-primary-saturation:${u}%;--nextra-primary-lightness:${d}%;--nextra-bg:${p.dark};}`}),r]})}var sx={link:es("nextra-focus _text-gray-600 dark:_text-gray-400","hover:_text-gray-800 dark:hover:_text-gray-200","contrast-more:_text-gray-700 contrast-more:dark:_text-gray-100","_flex _max-w-[50%] _items-center _gap-1 _py-4 _text-base _font-medium _transition-colors [word-break:break-word] md:_text-lg"),icon:es("_inline _h-5 _shrink-0")};function sy({flatDocsDirectories:e,currentIndex:t}){let n=so().navigation,r="boolean"==typeof n?{prev:n,next:n}:n,o=r.prev&&e[t-1],i=r.next&&e[t+1];return(o&&!o.isUnderCurrentDocsTree&&(o=!1),i&&!i.isUnderCurrentDocsTree&&(i=!1),o||i)?(0,B.jsxs)("div",{className:es("_mb-8 _flex _items-center _border-t _pt-8 dark:_border-neutral-800","contrast-more:_border-neutral-400 dark:contrast-more:_border-neutral-400","print:_hidden"),children:[o&&(0,B.jsxs)(eu(),{href:o.route,title:o.title,className:es(sx.link,"ltr:_pr-4 rtl:_pl-4"),children:[(0,B.jsx)(tk.LZ,{className:es(sx.icon,"ltr:_rotate-180")}),o.title]}),i&&(0,B.jsxs)(eu(),{href:i.route,title:i.title,className:es(sx.link,"ltr:_ml-auto ltr:_pl-4 ltr:_text-right rtl:_mr-auto rtl:_pr-4 rtl:_text-left"),children:[i.title,(0,B.jsx)(tk.LZ,{className:es(sx.icon,"rtl:_rotate-180")})]})]}):null}var s_={link:es("_text-sm contrast-more:_text-gray-700 contrast-more:dark:_text-gray-100"),active:es("_font-medium _subpixel-antialiased"),inactive:es("_text-gray-600 hover:_text-gray-800 dark:_text-gray-400 dark:hover:_text-gray-200")};function sw({menu:e,children:t}){let n=Object.fromEntries((e.children||[]).map(e=>[e.name,e]));return(0,B.jsxs)(l_,{children:[(0,B.jsxs)(lb,{className:({focus:e})=>es(s_.link,s_.inactive,"max-md:_hidden _items-center _whitespace-nowrap _flex _gap-1.5 _ring-inset",e&&"nextra-focusable"),children:[t,(0,B.jsx)(tk.LZ,{className:"_h-3.5 *:_origin-center *:_transition-transform *:_rotate-90"})]}),(0,B.jsx)(lx,{transition:!0,className:({open:e})=>es("motion-reduce:_transition-none","nextra-focus",e?"_opacity-100":"_opacity-0","nextra-scrollbar _transition-opacity","_border _border-black/5 dark:_border-white/20","_backdrop-blur-lg _bg-[rgb(var(--nextra-bg),.8)]","_z-20 _rounded-md _py-1 _text-sm _shadow-lg","!_max-h-[min(calc(100vh-5rem),256px)]"),anchor:{to:"top end",gap:10,padding:16},children:Object.entries(e.items||{}).map(([e,t])=>{var r;return(0,B.jsx)(ly,{as:l$,href:t.href||(null==(r=n[e])?void 0:r.route),className:({focus:e})=>es("_block","_py-1.5 _transition-colors ltr:_pl-3 ltr:_pr-9 rtl:_pr-3 rtl:_pl-9",e?"_text-gray-900 dark:_text-gray-100":"_text-gray-600 dark:_text-gray-400"),newWindow:t.newWindow,children:t.title},e)})})]})}var sS=Object.create(null),sE=(0,V.createContext)("");sE.displayName="FocusedItem";var sk=(0,V.createContext)(()=>{});sk.displayName="OnFocusItem";var sC=(0,V.createContext)(0);sC.displayName="FolderLevel";var sO=(0,V.memo)(function(e){let t=(0,V.useContext)(sC);return(0,B.jsx)(sC.Provider,{value:t+1,children:(0,B.jsx)(sI,lW({},e))})}),sT={link:es("_flex _rounded _px-2 _py-1.5 _text-sm _transition-colors [word-break:break-word]","_cursor-pointer contrast-more:_border"),inactive:es("_text-gray-500 hover:_bg-gray-100 hover:_text-gray-900","dark:_text-neutral-400 dark:hover:_bg-primary-100/5 dark:hover:_text-gray-50","contrast-more:_text-gray-900 contrast-more:dark:_text-gray-50","contrast-more:_border-transparent contrast-more:hover:_border-gray-900 contrast-more:dark:hover:_border-gray-50"),active:es("_bg-primary-100 _font-semibold _text-primary-800 dark:_bg-primary-400/10 dark:_text-primary-600","contrast-more:_border-primary-500 contrast-more:dark:_border-primary-500"),list:es("_flex _flex-col _gap-1"),border:es("_relative before:_absolute before:_inset-y-1",'before:_w-px before:_bg-gray-200 before:_content-[""] dark:before:_bg-neutral-800',"ltr:_pl-3 ltr:before:_left-0 rtl:_pr-3 rtl:before:_right-0")};function sI({item:e,anchors:t,onFocus:n}){let[r]=tT().split("#"),o=!!e.route,i=o&&[r,r+"/"].includes(e.route+"/"),l=i||o&&r.startsWith(e.route+"/"),s=(0,V.useContext)(sE).startsWith(e.route+"/"),a=(0,V.useContext)(sC),{setMenu:u}=l2(),{theme:c}=e,d=so(),f=void 0===sS[e.route]?i||l||s||(c&&"collapsed"in c?!c.collapsed:a{d.sidebar.autoCollapse?l&&s?sS[e.route]=!0:delete sS[e.route]:(l||s)&&(sS[e.route]=!0)},[l,s,e.route,d.sidebar.autoCollapse]),"menu"===e.type){let t=Object.fromEntries((e.children||[]).map(e=>[e.name,e]));e.children=Object.entries(e.items||{}).map(([n,r])=>lW(lW({},t[n]||{name:n,route:e.route+"/"+n}),r))}let h="withIndexPage"in e&&e.withIndexPage,m=h?l$:tE;return(0,B.jsxs)("li",{className:es({open:f,active:i}),children:[(0,B.jsxs)(m,{href:h?e.route:void 0,"data-href":h?void 0:e.route,className:es("_items-center _justify-between _gap-2",!h&&"_text-left _w-full",sT.link,i?sT.active:sT.inactive),onClick:t=>{let n=["svg","path"].includes(t.target.tagName.toLowerCase());if(n&&t.preventDefault(),h){i||n?sS[e.route]=!f:(sS[e.route]=!0,u(!1)),p({});return}i||(sS[e.route]=!f,p({}))},onFocus:n,children:[e.title,(0,B.jsx)(tk.LZ,{height:"18",className:es("_shrink-0","_rounded-sm _p-0.5 hover:_bg-gray-800/5 dark:hover:_bg-gray-100/5","motion-reduce:*:_transition-none *:_origin-center *:_transition-transform *:rtl:_-rotate-180",f&&"*:ltr:_rotate-90 *:rtl:_rotate-[-270deg]")})]}),Array.isArray(e.children)&&(0,B.jsx)(sa,{isOpen:f,children:(0,B.jsx)(sP,{className:es(sT.border,"_pt-1 ltr:_ml-3 rtl:_mr-3"),directories:e.children,anchors:t})})]})}function sj({title:e}){return(0,B.jsx)("li",{className:es("[word-break:break-word]",e?"[&:not(:first-child)]:_mt-5 _mb-2 _px-2 _py-1.5 _text-sm _font-semibold _text-gray-900 dark:_text-gray-100":"_my-4"),children:e?l8(e):(0,B.jsx)("hr",{className:"_mx-2 _border-t _border-gray-200 dark:_border-primary-100/10"})})}function sM({item:e,anchors:t,onFocus:n}){let r=tT(),o=e.route&&[r,r+"/"].includes(e.route+"/"),i=lZ(),{setMenu:l}=l2();return"separator"===e.type?(0,B.jsx)(sj,{title:e.title}):(0,B.jsxs)("li",{className:es(sT.list,{active:o}),children:[(0,B.jsx)(l$,{href:e.href||e.route,newWindow:e.newWindow,className:es(sT.link,o?sT.active:sT.inactive),onClick:()=>{l(!1)},onFocus:n,children:e.title}),o&&t.length>0&&(0,B.jsx)("ul",{className:es(sT.list,sT.border,"ltr:_ml-3 rtl:_mr-3"),children:t.map(({id:e,value:t})=>{var n;return(0,B.jsx)("li",{children:(0,B.jsx)("a",{href:`#${e}`,className:es(sT.link,'_flex _gap-2 before:_opacity-25 before:_content-["#"]',(null==(n=i[e])?void 0:n.isActive)?sT.active:sT.inactive),onClick:()=>{l(!1)},children:t})},e)})})]})}function sP({directories:e,anchors:t,className:n,onlyCurrentDocs:r}){let o=(0,V.useContext)(sk),i=(0,V.useCallback)(e=>{o(e.target.getAttribute("href")||e.target.getAttribute("data-href")||"")},[o]);return(0,B.jsx)("ul",{className:es(sT.list,n),children:e.map(e=>{if(r&&!e.isUnderCurrentDocsTree)return;let n="menu"===e.type||e.children&&(e.children.length||!e.withIndexPage)?sO:sM;return(0,B.jsx)(n,{item:e,anchors:t,onFocus:i},e.name)})})}function sR({docsDirectories:e,fullDirectories:t,asPopover:n=!1,toc:r,includePlaceholder:o}){let{menu:i,setMenu:l}=l2(),[s,a]=(0,V.useState)(""),[u,c]=(0,V.useState)(!0),[d,f]=(0,V.useState)(!1),p=(0,V.useMemo)(()=>r.filter(e=>2===e.depth),[r]),h=(0,V.useRef)(null),m=(0,V.useRef)(null),g=iA();(0,V.useEffect)(()=>{let e=h.current.querySelector("li.active");if(e&&(window.innerWidth>767||i)){let t=()=>{lI(e,{block:"center",inline:"center",scrollMode:"always",boundary:m.current})};i?setTimeout(t,300):t()}},[i]);let v=so(),b=v.i18n.length>0,x=v.darkMode||b||v.sidebar.toggleButton;return(0,B.jsxs)(B.Fragment,{children:[o&&n&&(0,B.jsx)("div",{className:"max-xl:_hidden _h-0 _w-64 _shrink-0"}),(0,B.jsx)("div",{className:es("[transition:background-color_1.5s_ease]",i?"_bg-black/80 dark:_bg-black/60 _fixed _inset-0 _z-10 md:_hidden":"_bg-transparent"),onClick:()=>l(!1)}),(0,B.jsxs)("aside",{className:es("nextra-sidebar-container _flex _flex-col","md:_top-16 md:_shrink-0 motion-reduce:_transform-none motion-reduce:_transition-none","[.resizing_&]:_transition-none","_transform-gpu _transition-all _ease-in-out","print:_hidden",u?"md:_w-64":"md:_w-20",n?"md:_hidden":"md:_sticky md:_self-start",i?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:m,children:[(0,B.jsx)("div",{className:"_px-4 _pt-4 md:_hidden",children:l8(v.search.component)}),(0,B.jsx)(sE.Provider,{value:s,children:(0,B.jsx)(sk.Provider,{value:a,children:(0,B.jsxs)("div",{className:es("_overflow-y-auto","_p-4 _grow md:_h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",u?"nextra-scrollbar":"no-scrollbar"),ref:h,children:[(!n||!u)&&(0,B.jsx)(sa,{isOpen:u,horizontal:!0,children:(0,B.jsx)(sP,{className:"nextra-menu-desktop max-md:_hidden",directories:e,anchors:v.toc.float?[]:p,onlyCurrentDocs:!0})}),g&&window.innerWidth<768&&(0,B.jsx)(sP,{className:"nextra-menu-mobile md:_hidden",directories:t,anchors:p})]})})}),x&&(0,B.jsxs)("div",{className:es("nextra-sidebar-footer _sticky _bottom-0","_flex _items-center _gap-2 _py-4","_mx-3 _px-1",u?b&&"_justify-end":"_py-4 _flex-wrap _justify-center"),"data-toggle-animation":d?u?"show":"hide":"off",children:[(0,B.jsx)(sv,{lite:!u,className:u?"_grow":"max-md:_grow"}),v.darkMode&&(0,B.jsx)("div",{className:u&&!b?"_grow _flex _flex-col":"",children:l8(v.themeSwitch.component,{lite:!u||b})}),v.sidebar.toggleButton&&(0,B.jsx)(tE,{title:u?"Hide sidebar":"Show sidebar",className:({hover:e})=>es("max-md:_hidden _rounded-md _p-2",e?"_bg-gray-100 _text-gray-900 dark:_bg-primary-100/5 dark:_text-gray-50":"_text-gray-600 dark:_text-gray-400"),onClick:()=>{c(!u),f(!0)},children:(0,B.jsx)(tk.Qq,{height:"12",className:es(!u&&"first:*:_origin-[35%] first:*:_rotate-180")})})]})]})]})}var sL="reach-skip-nav";(0,V.forwardRef)((e,t)=>{var{className:n,id:r,label:o="Skip to content",styled:i}=e,l=lB(e,["className","id","label","styled"]);let s=void 0===n?i?es("_sr-only","nextra-focus","focus:_not-sr-only focus:_fixed focus:_z-50 focus:_m-3 focus:_ml-4 focus:_h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:_rounded-lg focus:_border focus:_px-3 focus:_py-2 focus:_align-middle focus:_text-sm focus:_font-bold","focus:_text-gray-900 focus:dark:_text-gray-100","focus:_bg-white focus:dark:_bg-neutral-900","focus:_border-neutral-400 focus:dark:_border-neutral-800"):"":n;return(0,B.jsx)("a",lH(lW({},l),{ref:t,href:`#${r||sL}`,className:s,children:o}))}).displayName="SkipNavLink";var sA=(0,V.forwardRef)((e,t)=>{var{id:n}=e,r=lB(e,["id"]);return(0,B.jsx)("div",lH(lW({},r),{ref:t,id:n||sL}))});sA.displayName="SkipNavContent";var sN={top:0,behavior:"smooth"},sF=e=>{let t=e.currentTarget,n=t.parentElement.parentElement;window.scrollTo(sN),n.scrollTo(sN),t.disabled=!0};function sD({children:e,className:t,hidden:n}){return(0,B.jsxs)(tE,{"aria-hidden":n?"true":void 0,onClick:sF,disabled:n,className:({disabled:e})=>es("_flex _items-center _gap-1.5","_whitespace-nowrap",e?"_opacity-0":"_opacity-100",t),children:[e,(0,B.jsx)(tk.LZ,{height:"16",className:"_-rotate-90 _border _rounded-full _border-current"})]})}var sz=es("_text-xs _font-medium","_text-gray-600 dark:_text-gray-400","hover:_text-gray-800 dark:hover:_text-gray-200","contrast-more:_text-gray-700 contrast-more:dark:_text-gray-100"),sW=(e,t)=>function(n){var{children:r,id:o,className:i}=n,l=lB(n,["children","id","className"]);let s=lY(),a=lJ(),u=lX(),c=(0,V.useRef)(null);return(0,V.useEffect)(()=>{let e=c.current;if(o&&u&&e)return u.observe(e),a.set(e,[o,t.index+=1]),()=>{u.disconnect(),a.delete(e),s(e=>{let t=lW({},e);return delete t[o],t})}},[o,a,u,s]),(0,B.jsxs)(e,lH(lW({id:o,className:"sr-only"===i?"_sr-only":es("_font-semibold _tracking-tight _text-slate-900 dark:_text-slate-100",{h2:"_mt-10 _border-b _pb-1 _text-3xl _border-neutral-200/70 contrast-more:_border-neutral-400 dark:_border-primary-100/10 contrast-more:dark:_border-neutral-400",h3:"_mt-8 _text-2xl",h4:"_mt-8 _text-xl",h5:"_mt-8 _text-lg",h6:"_mt-8 _text-base"}[e],i)},l),{children:[r,o&&(0,B.jsx)("a",{href:`#${o}`,className:"nextra-focus subheading-anchor","aria-label":"Permalink for this section",ref:c})]}))};function sH(e){var{children:t,className:n}=e,r=lB(e,["children","className"]);return(0,B.jsxs)("summary",lH(lW({className:es("nextra-focus","_flex _items-center _cursor-pointer _p-1 _transition-colors hover:_bg-gray-100 dark:hover:_bg-neutral-800","[&::-webkit-details-marker]:_hidden","_whitespace-pre-wrap","_select-none",n)},r),{children:[t,(0,B.jsx)(tk.LZ,{className:es("_order-first","_h-4 _shrink-0 _mx-1.5 motion-reduce:_transition-none","rtl:_rotate-180 [[data-expanded]>summary:first-child>&]:_rotate-90 _transition"),strokeWidth:"3"})]}))}var sB=/https?:\/\//,sV=e=>{var{href:t=""}=e,n=lB(e,["href"]);return(0,B.jsx)(l$,lW({href:t,newWindow:sB.test(t)},n))},s$={toc:es("nextra-toc _order-last max-xl:_hidden _w-64 _shrink-0 print:_hidden"),main:es("_w-full _break-words")};function sK({children:e}){let t=l6(),n=so(),r=iA(),{activeThemeContext:o,activeType:i,activeIndex:l,flatDocsDirectories:s,activePath:a}=t.normalizePagesResult;if("raw"===o.layout)return(0,B.jsx)("div",{className:s$.main,children:e});let u=o.timestamp&&n.gitTimestamp&&t.timestamp?new Date(t.timestamp):null,c=r&&u?(0,B.jsx)("div",{className:"_mt-12 _mb-8 _block _text-xs _text-gray-500 ltr:_text-right rtl:_text-left dark:_text-gray-400",children:l8(n.gitTimestamp,{timestamp:u})}):(0,B.jsx)("div",{className:"_mt-16"}),d=(0,B.jsxs)(B.Fragment,{children:[l8(o.topContent),e,c,l8(o.bottomContent),"page"!==i&&o.pagination&&(0,B.jsx)(sy,{flatDocsDirectories:s,currentIndex:l})]}),f=n.main?(0,B.jsx)(n.main,{children:d}):d;return"full"===o.layout?(0,B.jsx)("article",{className:es(s$.main,"nextra-content _min-h-[calc(100vh-var(--nextra-navbar-height))] _pl-[max(env(safe-area-inset-left),1.5rem)] _pr-[max(env(safe-area-inset-right),1.5rem)]"),children:f}):(0,B.jsx)("article",{className:es(s$.main,"nextra-content _flex _min-h-[calc(100vh-var(--nextra-navbar-height))] _min-w-0 _justify-center _pb-8 _pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===o.typesetting&&"nextra-body-typesetting-article"),children:(0,B.jsxs)("main",{className:"_w-full _min-w-0 _max-w-6xl _px-6 _pt-4 md:_px-12",children:["page"!==i&&o.breadcrumb&&(0,B.jsx)(ss,{activePath:a}),f]})})}var sU={h1:e=>(0,B.jsx)("h1",lW({className:"_mt-2 _text-4xl _font-bold _tracking-tight _text-slate-900 dark:_text-slate-100"},e)),ul:e=>(0,B.jsx)("ul",lW({className:"[:is(ol,ul)_&]:_my-3 [&:not(:first-child)]:_mt-6 _list-disc ltr:_ml-6 rtl:_mr-6"},e)),ol:e=>(0,B.jsx)("ol",lW({className:"[:is(ol,ul)_&]:_my-3 [&:not(:first-child)]:_mt-6 _list-decimal ltr:_ml-6 rtl:_mr-6"},e)),li:e=>(0,B.jsx)("li",lW({className:"_my-2"},e)),blockquote:e=>(0,B.jsx)("blockquote",lW({className:es("[&:not(:first-child)]:_mt-6 _border-gray-300 _italic _text-gray-700 dark:_border-gray-700 dark:_text-gray-400","ltr:_border-l-2 ltr:_pl-6 rtl:_border-r-2 rtl:_pr-6")},e)),hr:e=>(0,B.jsx)("hr",lW({className:"_my-8 _border-neutral-200/70 contrast-more:_border-neutral-400 dark:_border-primary-100/10 contrast-more:dark:_border-neutral-400"},e)),a:e=>{var{href:t="",className:n}=e,r=lB(e,["href","className"]);return(0,B.jsx)(l$,lW({href:t,newWindow:sB.test(t),className:es("_text-primary-600 _underline hover:_no-underline _decoration-from-font [text-underline-position:from-font]",n)},r))},table:e=>(0,B.jsx)(lj,lH(lW({},e),{className:es("nextra-scrollbar [&:not(:first-child)]:_mt-6 _p-0",e.className)})),p:e=>(0,B.jsx)("p",lW({className:"[&:not(:first-child)]:_mt-6 _leading-7"},e)),tr:({className:e="",...t})=>(0,B.jsx)("tr",{className:es("_m-0 _border-t _border-gray-300 _p-0 dark:_border-gray-600","even:_bg-gray-100 even:dark:_bg-gray-600/20",e),...t}),th:({className:e="",...t})=>(0,B.jsx)("th",{className:es("_m-0 _border _border-gray-300 _px-4 _py-2 _font-semibold dark:_border-gray-600",e),...t}),td:({className:e="",...t})=>(0,B.jsx)("td",{className:es("_m-0 _border _border-gray-300 _px-4 _py-2 dark:_border-gray-600",e),...t}),details:function e(t){var{children:n,open:r,className:o}=t,i=lB(t,["children","open","className"]);let[l,s]=(0,V.useState)(()=>!!r),[a,u]=(0,V.useState)(l),c=(0,V.useRef)(0);(0,V.useEffect)(()=>{let e=c.current;if(e&&(clearTimeout(e),c.current=0),!l)return c.current=window.setTimeout(()=>u(l),300),()=>{clearTimeout(c.current)};u(!0)},[l]);let[d,f]=(0,V.useMemo)(function t(r=n){let o;let i=V.Children.map(r,n=>{if(!o&&n&&"object"==typeof n&&"type"in n){if(n.type===sH){o=(0,V.cloneElement)(n,{onClick(e){e.preventDefault(),s(e=>!e)}});return}n.type!==e&&n.props.children&&([o,n]=t(n.props.children))}return n});return[o,i]},[n]);return(0,B.jsxs)("details",lH(lW({className:es("[&:not(:first-child)]:_mt-4 _rounded _border _border-gray-200 _bg-white _p-2 _shadow-sm dark:_border-neutral-800 dark:_bg-neutral-900","_overflow-hidden",o)},i),{open:l||a,"data-expanded":l?"":void 0,children:[d,(0,B.jsx)(sa,{isOpen:l,children:f})]}))},summary:sH,pre:function({children:e,className:t,"data-filename":n,"data-copy":r,"data-language":o,"data-word-wrap":i,icon:l,...s}){let a=(0,V.useRef)(null),u=""===r&&(0,B.jsx)(lM,{className:n?"_ml-auto":"",getValue:()=>a.current?.querySelector("code")?.textContent||""});return(0,B.jsxs)("div",{className:"nextra-code _relative [&:not(:first-child)]:_mt-6",children:[n&&(0,B.jsxs)("div",{className:es("_px-4 _text-xs _text-gray-700 dark:_text-gray-200","_bg-gray-100 dark:_bg-neutral-900","_flex _items-center _h-12 _gap-2 _rounded-t-md",tS.border,"_border-b-0"),children:[l&&(0,B.jsx)(l,{className:"_h-4 _w-auto _max-w-6 _shrink-0"}),(0,B.jsx)("span",{className:"_truncate",children:n}),u]}),(0,B.jsx)("pre",{className:es("nextra-focus","_overflow-x-auto _subpixel-antialiased _text-[.9em]","_bg-white dark:_bg-black _py-4","_ring-1 _ring-inset _ring-gray-300 dark:_ring-neutral-700","contrast-more:_ring-gray-900 contrast-more:dark:_ring-gray-50","contrast-more:_contrast-150",n?"_rounded-b-md":"_rounded-md",t),ref:a,...s,children:e}),(0,B.jsxs)("div",{className:es("_opacity-0 _transition [div:hover>&]:_opacity-100 focus-within:_opacity-100","_flex _gap-1 _absolute _right-4",n?"_top-14":"_top-2"),children:[""===i&&(0,B.jsx)(tE,{onClick:lP,className:"md:_hidden",title:"Toggle word wrap",variant:"outline",children:(0,B.jsx)(tk.NK,{height:"16"})}),!n&&u]})]})},code:function({children:e,className:t,"data-language":n,...r}){return(0,B.jsx)("code",{className:es("nextra-code","data-line-numbers"in r&&"[counter-reset:line]",t),dir:"ltr",...r,children:e})},wrapper:function({toc:e,children:t}){let n=l6(),r=so(),{activeType:o,activeThemeContext:i,docsDirectories:l,directories:s}=n.normalizePagesResult,a="page"!==o&&i.toc&&"default"===i.layout?(0,B.jsx)("nav",{className:s$.toc,"aria-label":"table of contents",children:l8(r.toc.component,{toc:r.toc.float?e:[],filePath:n.filePath})}):"full"!==i.layout&&"raw"!==i.layout&&(0,B.jsx)("nav",{className:s$.toc,"aria-label":"table of contents"});return(0,B.jsxs)("div",{className:es("_mx-auto _flex","raw"!==i.layout&&"_max-w-[90rem]"),children:[(0,B.jsx)(sR,{docsDirectories:l,fullDirectories:s,toc:e,asPopover:n.hideSidebar,includePlaceholder:"default"===i.layout}),a,(0,B.jsx)(sA,{}),(0,B.jsx)(sK,{children:t})]})}};function sq({children:e}){let t=so(),n=l6(),{locale:r}=(0,ei.t)(),{direction:o}=t.i18n.find(e=>e.locale===r)||t,i="rtl"===o?"rtl":"ltr",{activeThemeContext:l,topLevelNavbarItems:s}=n.normalizePagesResult,a=function({isRawLayout:e,components:t}){if(e)return{a:sV,wrapper:sU.wrapper};let n={index:0};return lW(lH(lW({},sU),{h2:sW("h2",n),h3:sW("h3",n),h4:sW("h4",n),h5:sW("h5",n),h6:sW("h6",n)}),t)}({isRawLayout:"raw"===l.layout,components:t.components});return(0,B.jsx)(X,lH(lW({attribute:"class",disableTransitionOnChange:!0},t.nextThemes),{children:(0,B.jsxs)("div",{dir:i,children:[(0,B.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${i}')`}}),(0,B.jsx)(sb,{}),(0,B.jsx)(sl,{}),l.navbar&&l8(t.navbar.component,{items:s}),(0,B.jsx)(l0,{children:(0,B.jsx)(el.Z,{disableParentContext:!0,components:a,children:e})}),l.footer&&l8(t.footer.component,{menu:n.hideSidebar})]})}))}let sG={logo:(0,B.jsxs)("span",{className:"ac-logo",children:[(0,B.jsx)("span",{className:"ac-logo-leaf",children:"\uD83C\uDF3F"})," Zero Inspector Kit"]}),project:{link:"https://github.com/zero-labsco/zero_inspector_kit"},docsRepositoryBase:"https://github.com/zero-labsco/zero_inspector_kit/tree/main/website",footer:{content:"Zero Inspector Kit \xb7 GPL-3.0"},darkMode:!1,search:{placeholder:"\uD83D\uDD0D Search the island…"},editLink:{content:"✏️ Edit this page on GitHub"},feedback:{content:"\uD83D\uDCAC Questions? Open an issue"},sidebar:{defaultMenuCollapseLevel:1},toc:{backToTop:"⬆️ Back to top"},head:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("link",{rel:"icon",href:"/zero_inspector_kit/favicon.svg",type:"image/svg+xml"}),(0,B.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,B.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,B.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=ZCOOL+KuaiLe&family=Noto+Sans+SC:wght@400;500;700&display=swap",rel:"stylesheet"})]})};function sQ(e){let{Component:t,pageProps:n}=e;return(0,B.jsx)(t,{...n})}n(237),n(6474);let sZ=(W=globalThis)[H=Symbol.for("__nextra_internal__")]||(W[H]=Object.create(null));sZ.context||(sZ.context=Object.create(null)),sZ.Layout=function({children:e,themeConfig:t,pageOpts:n}){return(0,B.jsx)(si,{value:t,children:(0,B.jsx)(l7,{value:n,children:(0,B.jsx)(sq,{children:e})})})},sZ.themeConfig=sG},8199:function(e,t){"use strict";var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",s="navigate",a="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(i=r||(r={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7195:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(8337),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(8754),o=n(5893),i=r._(n(7294)),l=n(6075),s=n(3955),a=n(8041),u=n(9903),c=n(5490),d=n(1928),f=n(257),p=n(4229),h=n(7195),m=n(9470),g=n(8199),v=new Set;function b(e,t,n,r,o,i){if(i||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let y=i.default.forwardRef(function(e,t){let n,r;let{href:a,as:v,children:y,prefetch:_=null,passHref:w,replace:S,shallow:E,scroll:k,locale:C,onClick:O,onMouseEnter:T,onTouchStart:I,legacyBehavior:j=!1,...M}=e;n=y,j&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let P=i.default.useContext(d.RouterContext),R=i.default.useContext(f.AppRouterContext),L=null!=P?P:R,A=!P,N=!1!==_,F=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:D,as:z}=i.default.useMemo(()=>{if(!P){let e=x(a);return{href:e,as:v?x(v):e}}let[e,t]=(0,l.resolveHref)(P,a,!0);return{href:e,as:v?(0,l.resolveHref)(P,v):t||e}},[P,a,v]),W=i.default.useRef(D),H=i.default.useRef(z);j&&(r=i.default.Children.only(n));let B=j?r&&"object"==typeof r&&r.ref:t,[V,$,K]=(0,p.useIntersection)({rootMargin:"200px"}),U=i.default.useCallback(e=>{(H.current!==z||W.current!==D)&&(K(),H.current=z,W.current=D),V(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[z,B,D,K,V]);i.default.useEffect(()=>{L&&$&&N&&b(L,D,z,{locale:C},{kind:F},A)},[z,D,$,C,N,null==P?void 0:P.locale,L,A,F]);let q={ref:U,onClick(e){j||"function"!=typeof O||O(e),j&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,r,o,l,a,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==a||a;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(f):f()}(e,L,D,z,S,E,k,C,A)},onMouseEnter(e){j||"function"!=typeof T||T(e),j&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),L&&(N||!A)&&b(L,D,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:F},A)},onTouchStart:function(e){j||"function"!=typeof I||I(e),j&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),L&&(N||!A)&&b(L,D,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:F},A)}};if((0,u.isAbsoluteUrl)(z))q.href=z;else if(!j||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(z,e,null==P?void 0:P.defaultLocale))}return j?i.default.cloneElement(r,q):(0,o.jsx)("a",{...M,...q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return a}});let r=n(7294),o=n(4474),i="function"==typeof IntersectionObserver,l=new Map,s=[];function a(e){let{rootRef:t,rootMargin:n,disabled:a}=e,u=a||!i,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},s.push(n),l.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),l.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[p,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},237:function(){},6474:function(){},7663:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:l}catch(e){n=l}}();var a=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?a=r.concat(a):c=-1,a.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=a.length;t;){for(r=a,a=[];++c1)for(var n=1;n{let e=(0,r.useRouter)();return(0,o.useMemo)(()=>{let t=i.env.NEXTRA_DEFAULT_LOCALE;return{...e,defaultLocale:t,...t&&{locale:e.asPath.split("/")[1]}}},[e])}},5192:function(e,t,n){"use strict";n.d(t,{AV:function(){return d},D7:function(){return s},Fx:function(){return b},L4:function(){return h},LZ:function(){return o},NK:function(){return g},NW:function(){return m},Oq:function(){return f},Qq:function(){return a},TI:function(){return l},b0:function(){return v},fy:function(){return u},kL:function(){return p},n9:function(){return c},nQ:function(){return i}});var r=n(5893),o=e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:2,...e,children:(0,r.jsx)("path",{d:"M9 5l7 7-7 7",strokeLinecap:"round",strokeLinejoin:"round"})}),i=e=>(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"})}),l=e=>(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,...e,children:[(0,r.jsx)("rect",{x:9,y:9,width:13,height:13,rx:2}),(0,r.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5"})]}),s=e=>(0,r.jsxs)("svg",{width:24,height:24,fill:"currentColor",viewBox:"0 5 30.67 23.25",...e,children:[(0,r.jsx)("title",{children:"Discord"}),(0,r.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]}),a=e=>(0,r.jsxs)("svg",{viewBox:"0 0 16 16",fill:"currentColor",...e,children:[(0,r.jsx)("path",{d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z"}),(0,r.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]}),u=e=>(0,r.jsxs)("svg",{width:24,height:24,fill:"currentColor",viewBox:"3 3 18 18",...e,children:[(0,r.jsx)("title",{children:"GitHub"}),(0,r.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]}),c=e=>(0,r.jsx)("svg",{viewBox:"2 2 16 16",width:12,height:12,fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})}),d=e=>(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",width:20,height:20,...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})}),f=e=>(0,r.jsxs)("svg",{fill:"none",width:24,height:24,viewBox:"0 0 24 24",stroke:"currentColor",...e,children:[(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16"})}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 12h16"}),(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 18h16"})})]}),p=e=>(0,r.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:12,height:12,stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}),h=e=>(0,r.jsxs)("svg",{fill:"none",viewBox:"0 0 24 24",width:24,height:24,...e,children:[(0,r.jsx)("circle",{className:"_opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),(0,r.jsx)("path",{className:"_opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),m=e=>(0,r.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:12,height:12,stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}),g=e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})}),v=e=>(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})}),b=e=>(0,r.jsx)("svg",{viewBox:"0 0 28 24",fill:"none",stroke:"currentColor",...e,children:(0,r.jsx)("path",{d:"M7.3 7.8L12.55 12L7.3 16.2M14.65 16.2H19.9M2.11562 1.5H25.0844C25.7005 1.5 26.2 1.99948 26.2 2.61562V21.3844C26.2 22.0005 25.7005 22.5 25.0844 22.5H2.11562C1.49948 22.5 1 22.0005 1 21.3844V2.61562C1 1.99948 1.49948 1.5 2.11562 1.5Z",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})},7666:function(e,t,n){"use strict";var r=n(7294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,l=r.useRef,s=r.useEffect,a=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=i(e,(d=a(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return l=t}return l=e}if(t=l,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,l=n)}var i,l,s=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,c]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},1103:function(e,t,n){"use strict";e.exports=n(7666)},1151:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},a:function(){return l}});var r=n(7294);let o={},i=r.createContext(o);function l(e){let t=r.useContext(i);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:l(e.components),r.createElement(i.Provider,{value:t},e.children)}},3665:function(e,t,n){"use strict";n.d(t,{ZW:function(){return i},hV:function(){return o},ud:function(){return r}});let r=Symbol.for("__nextra_internal__"),o=new Set(["/404","/500"]),i="en-US"}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(3079)}),_N_E=e.O()}]);
\ No newline at end of file
+`)}`:""}`:r.origin.includes("github")?`${r.origin}/${r.owner}/${r.name}/issues/new?title=${encodeURIComponent(t)}&labels=${n||""}`:"#"}({labels:t.feedback.labels,repository:t.docsRepositoryBase,title:`Feedback for \u201C${e.title}\u201D`})}},footer:{component:function({menu:e}){let t=so();return(0,B.jsxs)("footer",{className:"_bg-gray-100 _pb-[env(safe-area-inset-bottom)] dark:_bg-neutral-900 print:_bg-transparent",children:[(0,B.jsxs)("div",{className:es("_mx-auto _flex _max-w-[90rem] _gap-2 _py-2 _px-4",e&&(t.i18n.length>0||t.darkMode)?"_flex":"_hidden"),children:[(0,B.jsx)(sv,{}),t.darkMode&&l8(t.themeSwitch.component)]}),(0,B.jsx)("hr",{className:"dark:_border-neutral-800"}),(0,B.jsx)("div",{className:es("_mx-auto _flex _max-w-[90rem] _justify-center _py-12 _text-gray-600 dark:_text-gray-400 md:_justify-start","_pl-[max(env(safe-area-inset-left),1.5rem)] _pr-[max(env(safe-area-inset-right),1.5rem)]"),children:l8(t.footer.content)})]})},content:`MIT ${new Date().getFullYear()} \xa9 Nextra.`},gitTimestamp:function({timestamp:e}){let{locale:t=se}=(0,ei.t)();return(0,B.jsxs)(B.Fragment,{children:["Last updated on"," ",(0,B.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleDateString(t,{day:"numeric",month:"long",year:"numeric"})})]})},head:function(){let{frontMatter:e,title:t}=l6(),n=`${t} \u2013 Nextra`,{description:r,canonical:o,image:i}=e;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("title",{children:n}),(0,B.jsx)("meta",{property:"og:title",content:n}),r&&[(0,B.jsx)("meta",{name:"description",content:r},0),(0,B.jsx)("meta",{property:"og:description",content:r},1)],o&&(0,B.jsx)("link",{rel:"canonical",href:o}),i&&(0,B.jsx)("meta",{name:"og:image",content:i})]})},i18n:[],logo:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("span",{className:"_font-extrabold",children:"Nextra"}),(0,B.jsx)("span",{className:"_ml-2 max-md:_hidden _font-normal _text-gray-600",children:"The Next Docs Builder"})]}),logoLink:!0,navbar:{component:function({items:e}){let t=so(),n=tT(),{menu:r,setMenu:o}=l2();return(0,B.jsxs)("div",{className:"nextra-nav-container _sticky _top-0 _z-20 _w-full _bg-transparent print:_hidden",children:[(0,B.jsx)("div",{className:"nextra-nav-container-blur"}),(0,B.jsxs)("nav",{className:"_mx-auto _flex _h-[var(--nextra-navbar-height)] _max-w-[90rem] _items-center _justify-end _gap-4 _pl-[max(env(safe-area-inset-left),1.5rem)] _pr-[max(env(safe-area-inset-right),1.5rem)]",children:[t.logoLink?(0,B.jsx)(eu(),{href:"string"==typeof t.logoLink?t.logoLink:"/",className:"nextra-focus _flex _items-center hover:_opacity-75 ltr:_mr-auto rtl:_ml-auto",children:l8(t.logo)}):(0,B.jsx)("div",{className:"_flex _items-center ltr:_mr-auto rtl:_ml-auto",children:l8(t.logo)}),(0,B.jsx)("div",{className:"_flex _gap-4 _overflow-x-auto nextra-scrollbar _py-1.5",children:e.map(e=>{if("hidden"===e.display)return null;if("menu"===e.type)return(0,B.jsx)(sw,{menu:e,children:e.title},e.title);let t=e.href||e.route||"#";e.children&&(t=(e.withIndexPage?e.route:e.firstChildRoute)||t);let r=e.route===n||n.startsWith(e.route+"/");return(0,B.jsx)(l$,{href:t,className:es(s_.link,"max-md:_hidden _whitespace-nowrap _ring-inset",!r||e.newWindow?s_.inactive:s_.active),newWindow:e.newWindow,"aria-current":!e.newWindow&&r,children:e.title},t)})}),l8(t.search.component,{className:"max-md:_hidden"}),t.project.link?(0,B.jsx)(l$,{href:t.project.link,newWindow:!0,children:l8(t.project.icon)}):null,t.chat.link?(0,B.jsx)(l$,{href:t.chat.link,newWindow:!0,children:l8(t.chat.icon)}):null,l8(t.navbar.extraContent),(0,B.jsx)(tE,{"aria-label":"Menu",className:({active:e})=>es("nextra-hamburger _rounded md:_hidden",e&&"_bg-gray-400/20"),onClick:()=>o(!r),children:(0,B.jsx)(tk.Oq,{className:es({open:r})})})]})]})}},navigation:!0,nextThemes:{defaultTheme:"system",storageKey:"theme"},notFound:{content:"Submit an issue about broken link →",labels:"bug"},project:{icon:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(tk.fy,{}),(0,B.jsx)("span",{className:"_sr-only",children:"GitHub"})]})},search:{component:function({className:e}){let{locale:t=se,basePath:n}=(0,ei.t)(),[r,o]=(0,V.useState)(!1),[i,l]=(0,V.useState)(!1),[s,a]=(0,V.useState)([]),[u,c]=(0,V.useState)(""),d=e=>{var n,r;if(!e){a([]);return}let[o,i]=sf[t],l=(null==(n=o.search(e,5,{enrich:!0,suggest:!0})[0])?void 0:n.result)||[],s=[],u={};for(let t=0;te._page_rk===t._page_rk?e._section_rk-t._section_rk:u[e._page_rk]!==u[t._page_rk]?u[t._page_rk]-u[e._page_rk]:e._page_rk-t._page_rk).map(e=>({id:`${e._page_rk}_${e._section_rk}`,route:e.route,prefix:e.prefix,children:e.children})))},f=(0,V.useCallback)(()=>lV(this,null,function*(){if(!sf[t]){o(!0);try{yield sh(n,t)}catch(e){l(!0)}o(!1)}}),[t,n]);return(0,B.jsx)(sd,{loading:r,error:i,value:u,onChange:e=>{c(e),r||d(e)},onActive:f,className:e,results:s})},emptyResult:(0,B.jsx)("span",{className:"_block _select-none _p-8 _text-center _text-sm _text-gray-400",children:"No results found."}),error:"Failed to load search index.",loading:"Loading…",placeholder:"Search documentation…"},sidebar:{defaultMenuCollapseLevel:2,toggleButton:!0},themeSwitch:{component:function({lite:e,className:t}){let{setTheme:n,resolvedTheme:r,theme:o=""}=Y(),i=iA(),l=so().themeSwitch,s=i&&"dark"===r?tk.kL:tk.NW,a="function"==typeof l.useOptions?l.useOptions():l.useOptions;return(0,B.jsx)(sg,{className:t,title:"Change theme",options:[{key:"light",name:a.light},{key:"dark",name:a.dark},{key:"system",name:a.system}],onChange:e=>{n(e.key)},selected:{key:o,name:(0,B.jsxs)("div",{className:"_flex _items-center _gap-2 _capitalize",children:[(0,B.jsx)(s,{}),(0,B.jsx)("span",{className:e?"md:_hidden":"",children:i?a[o]:a.light})]})}})},useOptions:{dark:"Dark",light:"Light",system:"System"}},toc:{backToTop:"Scroll to top",component:function({toc:e,filePath:t}){var n;let r=lZ(),o=(0,V.useRef)(null),i=so(),l=e.length>0,s=!!(i.feedback.content||i.editLink.component||i.toc.extraContent||i.toc.backToTop),a=null==(n=Object.entries(r).find(([,{isActive:e}])=>e))?void 0:n[0],u=e.findIndex(({id:e})=>e===a);return(0,V.useEffect)(()=>{var e;if(!a)return;let t=null==(e=o.current)?void 0:e.querySelector(`a[href="#${a}"]`);t&&lI(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"if-needed",boundary:o.current})},[a]),(0,B.jsxs)("div",{className:es(l&&"_grid _grid-rows-[min-content_1fr_min-content]","_sticky _top-[--nextra-navbar-height] _pt-6 _text-sm","_max-h-[calc(100vh-var(--nextra-navbar-height))]"),children:[l&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("p",{className:es("_mx-4","_font-semibold _tracking-tight","_pb-2 _shadow-[0_12px_16px_rgb(var(--nextra-bg))] contrast-more:_shadow-none _z-[1]"),children:l8(i.toc.title)}),(0,B.jsx)("ul",{ref:o,className:es("_px-4 nextra-scrollbar _overscroll-y-contain _overflow-y-auto _hyphens-auto","_py-1.5"),children:e.map(({id:e,value:t,depth:n})=>{var o;return(0,B.jsx)("li",{className:"_my-2 _scroll-my-6 _scroll-py-6",children:(0,B.jsx)("a",{href:`#${e}`,className:es("nextra-focus",{2:"_font-semibold",3:"_ms-4",4:"_ms-8",5:"_ms-12",6:"_ms-16"}[n],"_block _transition-colors _subpixel-antialiased",(null==(o=r[e])?void 0:o.isActive)?"_text-primary-600 contrast-more:!_text-primary-600":"_text-gray-500 hover:_text-gray-900 dark:_text-gray-400 dark:hover:_text-gray-300","contrast-more:_text-gray-900 contrast-more:_underline contrast-more:dark:_text-gray-50 _break-words"),children:function e(t){return"string"==typeof t?t:V.Children.map(t,t=>{var n;if("string"!=typeof(n=t)&&n.props.href&&(t=t.props.children),"string"==typeof t)return t;if(Array.isArray(t))return e(t);let r=e(t.props.children);return(0,V.cloneElement)(t,{children:r})})}(t)})},e)})})]}),s&&(0,B.jsxs)("div",{className:es(l&&"nextra-toc-footer _pt-4","_flex _flex-col _items-start _gap-2 _pb-4","_mx-4"),children:[i.feedback.content?(0,B.jsx)(l$,{className:sz,href:i.feedback.useLink(),newWindow:!0,children:l8(i.feedback.content)}):null,l8(i.editLink.component,{filePath:t,className:sz,children:l8(i.editLink.content)}),l8(i.toc.extraContent),i.toc.backToTop&&(0,B.jsx)(sD,{className:sz,hidden:u<2,children:l8(i.toc.backToTop)})]})]})},float:!0,title:"On This Page"}},sn=Object.entries(st).map(([e,t])=>{if(t&&"object"==typeof t&&!Array.isArray(t)&&!(0,V.isValidElement)(t))return e}).filter(Boolean),sr=(0,V.createContext)(st);sr.displayName="ThemeConfig";var so=()=>(0,V.useContext)(sr);function si({value:e,children:t}){let n=(0,V.useRef)();return n.current||(n.current=lW(lW({},st),e&&Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t&&"object"==typeof t&&sn.includes(e)?lW(lW({},st[e]),t):t])))),(0,B.jsx)(sr.Provider,{value:n.current,children:t})}function sl(){let{banner:e}=so();if(!e.content)return null;let t=`try{if(localStorage.getItem(${JSON.stringify(e.key)})==='0'){document.body.classList.add('nextra-banner-hidden')}}catch(e){}`;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("script",{dangerouslySetInnerHTML:{__html:t}}),(0,B.jsxs)("div",{className:es("nextra-banner-container max-md:_sticky _top-0 _z-20 _flex _items-center","_h-[var(--nextra-banner-height)] [body.nextra-banner-hidden_&]:_hidden","_text-slate-50 dark:_text-white _bg-neutral-900 dark:_bg-[linear-gradient(1deg,#383838,#212121)]","_px-2 _ps-10 print:_hidden"),children:[(0,B.jsx)("div",{className:"_w-full _truncate _text-center _font-medium _text-sm",children:l8(e.content)}),e.dismissible&&(0,B.jsx)(tE,{"aria-label":"Dismiss banner",className:({hover:e})=>es("_p-2",e?"_opacity-100":"_opacity-80"),onClick:()=>{try{localStorage.setItem(e.key,"0")}catch(e){}document.body.classList.add("nextra-banner-hidden")},children:(0,B.jsx)(tk.b0,{height:"16"})})]})]})}function ss({activePath:e}){return(0,B.jsx)("div",{className:"nextra-breadcrumb _mt-1.5 _flex _items-center _gap-1 _overflow-hidden _text-sm _text-gray-500 dark:_text-gray-400 contrast-more:_text-current",children:e.map((e,t,n)=>{let r=n[t+1],o=r?e.withIndexPage?e.route:e.children[0].route===r.route?"":e.children[0].route:"",i=o?eu():"span";return(0,B.jsxs)(V.Fragment,{children:[t>0&&(0,B.jsx)(tk.LZ,{height:"14",className:"_shrink-0 rtl:_rotate-180"}),(0,B.jsx)(i,lH(lW({className:es("_whitespace-nowrap _transition-colors",r?"_min-w-6 _overflow-hidden _text-ellipsis":"_font-medium _text-gray-700 contrast-more:_font-bold contrast-more:_text-current dark:_text-gray-100 contrast-more:dark:_text-current",o&&"nextra-focus _ring-inset hover:_text-gray-900 dark:hover:_text-gray-100"),title:e.title},o&&{href:o}),{children:e.title}))]},e.route+e.name)})})}function sa({children:e,isOpen:t,horizontal:n=!1,openDuration:r=500,closeDuration:o=300}){let i=(0,V.useRef)(null),l=(0,V.useRef)(t),s=(0,V.useRef)(0),a=(0,V.useRef)(!0);return(0,V.useEffect)(()=>{let e=s.current,o=i.current;if(e&&(clearTimeout(e),s.current=0),a.current)return;let l=o.children[0];n?(l.style.width=`${l.clientWidth}px`,o.style.width=`${l.clientWidth}px`):o.style.height=`${l.clientHeight}px`,t?s.current=window.setTimeout(()=>{o.style.removeProperty("height")},r):setTimeout(()=>{n?o.style.width="0":o.style.height="0"})},[n,t,r]),(0,V.useEffect)(()=>{a.current=!1},[]),(0,B.jsx)("div",{ref:i,className:es("_transform-gpu _transition-all _ease-in-out motion-reduce:_transition-none",t?"_opacity-100":["_opacity-0","_overflow-hidden"]),style:lH(lW({},l.current||n?void 0:{height:0}),{transitionDuration:(t?r:o)+"ms"}),children:(0,B.jsx)("div",{children:e})})}var su=(0,V.memo)(function({value:e,match:t}){let n;if(!e)return null;let r=e.split(""),o=RegExp((function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})(t.trim()).replaceAll(/\s+/g,"|"),"ig"),i=0,l=[];for(;n=o.exec(e);)if(n.index===o.lastIndex)o.lastIndex++;else{let e=r.splice(0,n.index-i).join(""),t=r.splice(0,o.lastIndex-n.index).join("");l.push(e,(0,B.jsx)("span",{className:"_text-primary-600",children:t},n.index)),i=o.lastIndex}return(0,B.jsxs)(B.Fragment,{children:[l,r.join("")]})}),sc=new Set(["input","select","button","textarea"]);function sd({className:e,value:t,onChange:n,onActive:r,loading:o,error:i,results:l}){let s=so(),{setMenu:a}=l2(),u=(0,tC.useRouter)(),[c,d]=(0,V.useState)(!1),f=iA(),p=(0,V.useRef)(null);(0,V.useEffect)(()=>{function e(e){let t=p.current,n=document.activeElement,r=null==n?void 0:n.tagName.toLowerCase();!(!t||!r||sc.has(r))&&(null==n||!n.isContentEditable)&&("/"===e.key||"k"===e.key&&(e.metaKey||e.ctrlKey))&&(e.preventDefault(),t.focus({preventScroll:!0}))}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]);let h=f&&!c&&(0,B.jsx)("kbd",{className:es("_absolute _my-1.5 _select-none ltr:_right-1.5 rtl:_left-1.5","_h-5 _rounded _bg-white _px-1.5 _font-mono _text-[11px] _font-medium _text-gray-500","_border dark:_border-gray-100/20 dark:_bg-black/50","contrast-more:_border-current contrast-more:_text-current contrast-more:dark:_border-current","_items-center _gap-1 _flex","max-sm:_hidden"),children:navigator.userAgent.includes("Mac")?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("span",{className:"_text-xs",children:"⌘"}),"K"]}):"CTRL K"}),m=(0,V.useCallback)(e=>{let t="focus"===e.type;t&&(null==r||r()),d(t)},[r]),g=(0,V.useCallback)(e=>{let{value:t}=e.currentTarget;n(t)},[n]),v=(0,V.useCallback)(e=>lV(this,null,function*(){var t;e&&(null==(t=p.current)||t.blur(),yield u.push(e.route),a(!1),n(""))}),[u,a,n]);return(0,B.jsxs)(iL,{onChange:v,children:[(0,B.jsxs)("div",{className:es("_not-prose","_relative _flex _items-center","_text-gray-900 dark:_text-gray-300","contrast-more:_text-gray-800 contrast-more:dark:_text-gray-300",e),children:[(0,B.jsx)(iM,{ref:p,spellCheck:!1,className:({focus:e})=>es("_rounded-lg _px-3 _py-2 _transition-colors","_w-full md:_w-64","_text-base _leading-tight md:_text-sm",e?"_bg-transparent nextra-focusable":"_bg-black/[.05] dark:_bg-gray-50/10","placeholder:_text-gray-500 dark:placeholder:_text-gray-400","contrast-more:_border contrast-more:_border-current","[&::-webkit-search-cancel-button]:_appearance-none"),autoComplete:"off",type:"search",onChange:g,onFocus:m,onBlur:m,value:t,placeholder:l9(s.search.placeholder)}),h]}),(0,B.jsx)(iP,{transition:!0,anchor:{to:"top end",gap:10,padding:16},className:({open:e})=>es("nextra-search-results","nextra-scrollbar max-md:_h-full","_border _border-gray-200 _text-gray-100 dark:_border-neutral-800","_z-20 _rounded-xl _py-2.5 _shadow-xl","contrast-more:_border contrast-more:_border-gray-900 contrast-more:dark:_border-gray-50","_backdrop-blur-lg _bg-[rgb(var(--nextra-bg),.8)]","motion-reduce:_transition-none _transition-opacity",e?"_opacity-100":"_opacity-0",i||o||!l.length?"md:_h-[100px]":"md:!_max-h-[min(calc(100vh-5rem),400px)]","_w-full md:_w-[576px]","empty:_invisible"),children:i?(0,B.jsxs)("span",{className:"_flex _select-none _justify-center _gap-2 _p-8 _text-center _text-sm _text-red-500",children:[(0,B.jsx)(tk.AV,{className:"_size-5"}),l9(s.search.error)]}):o?(0,B.jsxs)("span",{className:"_flex _select-none _justify-center _gap-2 _p-8 _text-center _text-sm _text-gray-400",children:[(0,B.jsx)(tk.L4,{className:"_size-5 _animate-spin"}),l8(s.search.loading)]}):l.length?l.map(e=>(0,B.jsxs)(V.Fragment,{children:[e.prefix,(0,B.jsx)(iR,{as:eu(),value:e,href:e.route,className:({focus:e})=>es("_mx-2.5 _break-words _rounded-md","contrast-more:_border",e?"_text-primary-600 contrast-more:_border-current _bg-primary-500/10":"_text-gray-800 dark:_text-gray-300 contrast-more:_border-transparent","_block _scroll-m-12 _px-2.5 _py-2"),children:e.children})]},e.id)):t&&l8(s.search.emptyResult)})]})}var sf={},sp=new Map,sh=(e,t)=>{let n=e+"@"+t;if(sp.has(n))return sp.get(n);let r=sm(e,t);return sp.set(n,r),r},sm=(e,t)=>lV(void 0,null,function*(){let[r,o]=yield Promise.all([fetch(`${e}/_next/static/chunks/nextra-data-${t}.json`).then(e=>e.json()),n.e(921).then(n.bind(n,4921)).then(e=>e.default.Document)]),i=new o({cache:100,tokenize:"full",document:{id:"id",index:"content",store:["title"]},context:{resolution:9,depth:2,bidirectional:!0}}),l=new o({cache:100,tokenize:"full",document:{id:"id",index:"content",tag:"pageId",store:["title","content","url","display"]},context:{resolution:9,depth:2,bidirectional:!0}}),s=0;for(let[e,t]of Object.entries(r)){let n="";for(let[r,o]of(++s,Object.entries(t.data))){let[i,a]=r.split("#"),u=e+(i?"#"+i:""),c=a||t.title,d=o.split("\n");l.add(lW({id:u,url:u,title:c,pageId:`page_${s}`,content:c},d[0]&&{display:d[0]}));for(let e=0;ees("_h-7 _rounded-md _px-2 _text-xs _font-medium _transition-colors",t?"_bg-gray-200 _text-gray-900 dark:_bg-primary-100/10 dark:_text-gray-50":e?"_bg-gray-100 _text-gray-900 dark:_bg-primary-100/5 dark:_text-gray-50":"_text-gray-600 dark:_text-gray-400",n&&"nextra-focusable",o),children:t.name}),(0,B.jsx)(i3,{as:"ul",transition:!0,anchor:{to:"top start",gap:10},className:({open:e})=>es("nextra-focus",e?"_opacity-100":"_opacity-0","motion-reduce:_transition-none _transition-opacity _min-w-[--button-width] _z-20 _max-h-64 _rounded-md _border _border-black/5 _backdrop-blur-lg _bg-[rgb(var(--nextra-bg),.8)] _py-1 _text-sm _shadow-lg dark:_border-white/20"),children:e.map(e=>(0,B.jsxs)(i8,{value:e,as:"li",className:({focus:n})=>es(n?"_bg-primary-50 _text-primary-600 dark:_bg-primary-500/10":"_text-gray-800 dark:_text-gray-100","_cursor-pointer _whitespace-nowrap _py-1.5 _px-3","_transition-colors",e.key===t.key&&"_flex _items-center _justify-between _gap-3"),children:[e.name,e.key===t.key&&(0,B.jsx)(tk.nQ,{height:"16"})]},e.key))})]})}function sv({lite:e,className:t}){let n=so(),{locale:r,asPath:o}=(0,ei.t)(),i=n.i18n;if(!i.length)return null;let l=i.find(e=>r===e.locale);return(0,B.jsx)(sg,{title:"Change language",className:t,onChange:e=>{let t=new Date(Date.now()+31536e6);document.cookie=`NEXT_LOCALE=${e.key}; expires=${t.toUTCString()}; path=/`;let n=(0,iN.addBasePath)(o.replace(`/${r}`,`/${e.key}`));location.href=n},selected:{key:(null==l?void 0:l.locale)||"",name:(0,B.jsxs)("span",{className:"_flex _items-center _gap-2",children:[(0,B.jsx)(tk.n9,{}),(0,B.jsx)("span",{className:e?"_hidden":"",children:null==l?void 0:l.name})]})},options:i.map(e=>({key:e.locale,name:e.name}))})}function sb(){let{resolvedTheme:e}=Y(),t=iA(),n=so(),r="function"==typeof n.head?n.head({}):n.head,{hue:o,saturation:i,lightness:l}=n.color,{dark:s,light:a}="number"==typeof o?{dark:o,light:o}:o,{dark:u,light:c}="number"==typeof i?{dark:i,light:i}:i,{dark:d,light:f}="number"==typeof l?{dark:l,light:l}:l,p=n.backgroundColor;return(0,B.jsxs)(lt(),{children:[n.faviconGlyph?(0,B.jsx)("link",{rel:"icon",href:`data:image/svg+xml;utf8,${n.faviconGlyph} `}):null,t?(0,B.jsx)("meta",{name:"theme-color",content:"dark"===e?"#111":"#fff"}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("meta",{name:"theme-color",content:"#fff",media:"(prefers-color-scheme: light)"}),(0,B.jsx)("meta",{name:"theme-color",content:"#111",media:"(prefers-color-scheme: dark)"})]}),(0,B.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,B.jsx)("style",{children:`:root{--nextra-primary-hue:${a}deg;--nextra-primary-saturation:${c}%;--nextra-primary-lightness:${f}%;--nextra-navbar-height:64px;--nextra-menu-height:3.75rem;--nextra-banner-height:2.5rem;--nextra-bg:${p.light};}.dark{--nextra-primary-hue:${s}deg;--nextra-primary-saturation:${u}%;--nextra-primary-lightness:${d}%;--nextra-bg:${p.dark};}`}),r]})}var sx={link:es("nextra-focus _text-gray-600 dark:_text-gray-400","hover:_text-gray-800 dark:hover:_text-gray-200","contrast-more:_text-gray-700 contrast-more:dark:_text-gray-100","_flex _max-w-[50%] _items-center _gap-1 _py-4 _text-base _font-medium _transition-colors [word-break:break-word] md:_text-lg"),icon:es("_inline _h-5 _shrink-0")};function sy({flatDocsDirectories:e,currentIndex:t}){let n=so().navigation,r="boolean"==typeof n?{prev:n,next:n}:n,o=r.prev&&e[t-1],i=r.next&&e[t+1];return(o&&!o.isUnderCurrentDocsTree&&(o=!1),i&&!i.isUnderCurrentDocsTree&&(i=!1),o||i)?(0,B.jsxs)("div",{className:es("_mb-8 _flex _items-center _border-t _pt-8 dark:_border-neutral-800","contrast-more:_border-neutral-400 dark:contrast-more:_border-neutral-400","print:_hidden"),children:[o&&(0,B.jsxs)(eu(),{href:o.route,title:o.title,className:es(sx.link,"ltr:_pr-4 rtl:_pl-4"),children:[(0,B.jsx)(tk.LZ,{className:es(sx.icon,"ltr:_rotate-180")}),o.title]}),i&&(0,B.jsxs)(eu(),{href:i.route,title:i.title,className:es(sx.link,"ltr:_ml-auto ltr:_pl-4 ltr:_text-right rtl:_mr-auto rtl:_pr-4 rtl:_text-left"),children:[i.title,(0,B.jsx)(tk.LZ,{className:es(sx.icon,"rtl:_rotate-180")})]})]}):null}var s_={link:es("_text-sm contrast-more:_text-gray-700 contrast-more:dark:_text-gray-100"),active:es("_font-medium _subpixel-antialiased"),inactive:es("_text-gray-600 hover:_text-gray-800 dark:_text-gray-400 dark:hover:_text-gray-200")};function sw({menu:e,children:t}){let n=Object.fromEntries((e.children||[]).map(e=>[e.name,e]));return(0,B.jsxs)(l_,{children:[(0,B.jsxs)(lb,{className:({focus:e})=>es(s_.link,s_.inactive,"max-md:_hidden _items-center _whitespace-nowrap _flex _gap-1.5 _ring-inset",e&&"nextra-focusable"),children:[t,(0,B.jsx)(tk.LZ,{className:"_h-3.5 *:_origin-center *:_transition-transform *:_rotate-90"})]}),(0,B.jsx)(lx,{transition:!0,className:({open:e})=>es("motion-reduce:_transition-none","nextra-focus",e?"_opacity-100":"_opacity-0","nextra-scrollbar _transition-opacity","_border _border-black/5 dark:_border-white/20","_backdrop-blur-lg _bg-[rgb(var(--nextra-bg),.8)]","_z-20 _rounded-md _py-1 _text-sm _shadow-lg","!_max-h-[min(calc(100vh-5rem),256px)]"),anchor:{to:"top end",gap:10,padding:16},children:Object.entries(e.items||{}).map(([e,t])=>{var r;return(0,B.jsx)(ly,{as:l$,href:t.href||(null==(r=n[e])?void 0:r.route),className:({focus:e})=>es("_block","_py-1.5 _transition-colors ltr:_pl-3 ltr:_pr-9 rtl:_pr-3 rtl:_pl-9",e?"_text-gray-900 dark:_text-gray-100":"_text-gray-600 dark:_text-gray-400"),newWindow:t.newWindow,children:t.title},e)})})]})}var sS=Object.create(null),sE=(0,V.createContext)("");sE.displayName="FocusedItem";var sk=(0,V.createContext)(()=>{});sk.displayName="OnFocusItem";var sC=(0,V.createContext)(0);sC.displayName="FolderLevel";var sO=(0,V.memo)(function(e){let t=(0,V.useContext)(sC);return(0,B.jsx)(sC.Provider,{value:t+1,children:(0,B.jsx)(sI,lW({},e))})}),sT={link:es("_flex _rounded _px-2 _py-1.5 _text-sm _transition-colors [word-break:break-word]","_cursor-pointer contrast-more:_border"),inactive:es("_text-gray-500 hover:_bg-gray-100 hover:_text-gray-900","dark:_text-neutral-400 dark:hover:_bg-primary-100/5 dark:hover:_text-gray-50","contrast-more:_text-gray-900 contrast-more:dark:_text-gray-50","contrast-more:_border-transparent contrast-more:hover:_border-gray-900 contrast-more:dark:hover:_border-gray-50"),active:es("_bg-primary-100 _font-semibold _text-primary-800 dark:_bg-primary-400/10 dark:_text-primary-600","contrast-more:_border-primary-500 contrast-more:dark:_border-primary-500"),list:es("_flex _flex-col _gap-1"),border:es("_relative before:_absolute before:_inset-y-1",'before:_w-px before:_bg-gray-200 before:_content-[""] dark:before:_bg-neutral-800',"ltr:_pl-3 ltr:before:_left-0 rtl:_pr-3 rtl:before:_right-0")};function sI({item:e,anchors:t,onFocus:n}){let[r]=tT().split("#"),o=!!e.route,i=o&&[r,r+"/"].includes(e.route+"/"),l=i||o&&r.startsWith(e.route+"/"),s=(0,V.useContext)(sE).startsWith(e.route+"/"),a=(0,V.useContext)(sC),{setMenu:u}=l2(),{theme:c}=e,d=so(),f=void 0===sS[e.route]?i||l||s||(c&&"collapsed"in c?!c.collapsed:a{d.sidebar.autoCollapse?l&&s?sS[e.route]=!0:delete sS[e.route]:(l||s)&&(sS[e.route]=!0)},[l,s,e.route,d.sidebar.autoCollapse]),"menu"===e.type){let t=Object.fromEntries((e.children||[]).map(e=>[e.name,e]));e.children=Object.entries(e.items||{}).map(([n,r])=>lW(lW({},t[n]||{name:n,route:e.route+"/"+n}),r))}let h="withIndexPage"in e&&e.withIndexPage,m=h?l$:tE;return(0,B.jsxs)("li",{className:es({open:f,active:i}),children:[(0,B.jsxs)(m,{href:h?e.route:void 0,"data-href":h?void 0:e.route,className:es("_items-center _justify-between _gap-2",!h&&"_text-left _w-full",sT.link,i?sT.active:sT.inactive),onClick:t=>{let n=["svg","path"].includes(t.target.tagName.toLowerCase());if(n&&t.preventDefault(),h){i||n?sS[e.route]=!f:(sS[e.route]=!0,u(!1)),p({});return}i||(sS[e.route]=!f,p({}))},onFocus:n,children:[e.title,(0,B.jsx)(tk.LZ,{height:"18",className:es("_shrink-0","_rounded-sm _p-0.5 hover:_bg-gray-800/5 dark:hover:_bg-gray-100/5","motion-reduce:*:_transition-none *:_origin-center *:_transition-transform *:rtl:_-rotate-180",f&&"*:ltr:_rotate-90 *:rtl:_rotate-[-270deg]")})]}),Array.isArray(e.children)&&(0,B.jsx)(sa,{isOpen:f,children:(0,B.jsx)(sP,{className:es(sT.border,"_pt-1 ltr:_ml-3 rtl:_mr-3"),directories:e.children,anchors:t})})]})}function sj({title:e}){return(0,B.jsx)("li",{className:es("[word-break:break-word]",e?"[&:not(:first-child)]:_mt-5 _mb-2 _px-2 _py-1.5 _text-sm _font-semibold _text-gray-900 dark:_text-gray-100":"_my-4"),children:e?l8(e):(0,B.jsx)("hr",{className:"_mx-2 _border-t _border-gray-200 dark:_border-primary-100/10"})})}function sM({item:e,anchors:t,onFocus:n}){let r=tT(),o=e.route&&[r,r+"/"].includes(e.route+"/"),i=lZ(),{setMenu:l}=l2();return"separator"===e.type?(0,B.jsx)(sj,{title:e.title}):(0,B.jsxs)("li",{className:es(sT.list,{active:o}),children:[(0,B.jsx)(l$,{href:e.href||e.route,newWindow:e.newWindow,className:es(sT.link,o?sT.active:sT.inactive),onClick:()=>{l(!1)},onFocus:n,children:e.title}),o&&t.length>0&&(0,B.jsx)("ul",{className:es(sT.list,sT.border,"ltr:_ml-3 rtl:_mr-3"),children:t.map(({id:e,value:t})=>{var n;return(0,B.jsx)("li",{children:(0,B.jsx)("a",{href:`#${e}`,className:es(sT.link,'_flex _gap-2 before:_opacity-25 before:_content-["#"]',(null==(n=i[e])?void 0:n.isActive)?sT.active:sT.inactive),onClick:()=>{l(!1)},children:t})},e)})})]})}function sP({directories:e,anchors:t,className:n,onlyCurrentDocs:r}){let o=(0,V.useContext)(sk),i=(0,V.useCallback)(e=>{o(e.target.getAttribute("href")||e.target.getAttribute("data-href")||"")},[o]);return(0,B.jsx)("ul",{className:es(sT.list,n),children:e.map(e=>{if(r&&!e.isUnderCurrentDocsTree)return;let n="menu"===e.type||e.children&&(e.children.length||!e.withIndexPage)?sO:sM;return(0,B.jsx)(n,{item:e,anchors:t,onFocus:i},e.name)})})}function sR({docsDirectories:e,fullDirectories:t,asPopover:n=!1,toc:r,includePlaceholder:o}){let{menu:i,setMenu:l}=l2(),[s,a]=(0,V.useState)(""),[u,c]=(0,V.useState)(!0),[d,f]=(0,V.useState)(!1),p=(0,V.useMemo)(()=>r.filter(e=>2===e.depth),[r]),h=(0,V.useRef)(null),m=(0,V.useRef)(null),g=iA();(0,V.useEffect)(()=>{let e=h.current.querySelector("li.active");if(e&&(window.innerWidth>767||i)){let t=()=>{lI(e,{block:"center",inline:"center",scrollMode:"always",boundary:m.current})};i?setTimeout(t,300):t()}},[i]);let v=so(),b=v.i18n.length>0,x=v.darkMode||b||v.sidebar.toggleButton;return(0,B.jsxs)(B.Fragment,{children:[o&&n&&(0,B.jsx)("div",{className:"max-xl:_hidden _h-0 _w-64 _shrink-0"}),(0,B.jsx)("div",{className:es("[transition:background-color_1.5s_ease]",i?"_bg-black/80 dark:_bg-black/60 _fixed _inset-0 _z-10 md:_hidden":"_bg-transparent"),onClick:()=>l(!1)}),(0,B.jsxs)("aside",{className:es("nextra-sidebar-container _flex _flex-col","md:_top-16 md:_shrink-0 motion-reduce:_transform-none motion-reduce:_transition-none","[.resizing_&]:_transition-none","_transform-gpu _transition-all _ease-in-out","print:_hidden",u?"md:_w-64":"md:_w-20",n?"md:_hidden":"md:_sticky md:_self-start",i?"max-md:[transform:translate3d(0,0,0)]":"max-md:[transform:translate3d(0,-100%,0)]"),ref:m,children:[(0,B.jsx)("div",{className:"_px-4 _pt-4 md:_hidden",children:l8(v.search.component)}),(0,B.jsx)(sE.Provider,{value:s,children:(0,B.jsx)(sk.Provider,{value:a,children:(0,B.jsxs)("div",{className:es("_overflow-y-auto","_p-4 _grow md:_h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",u?"nextra-scrollbar":"no-scrollbar"),ref:h,children:[(!n||!u)&&(0,B.jsx)(sa,{isOpen:u,horizontal:!0,children:(0,B.jsx)(sP,{className:"nextra-menu-desktop max-md:_hidden",directories:e,anchors:v.toc.float?[]:p,onlyCurrentDocs:!0})}),g&&window.innerWidth<768&&(0,B.jsx)(sP,{className:"nextra-menu-mobile md:_hidden",directories:t,anchors:p})]})})}),x&&(0,B.jsxs)("div",{className:es("nextra-sidebar-footer _sticky _bottom-0","_flex _items-center _gap-2 _py-4","_mx-3 _px-1",u?b&&"_justify-end":"_py-4 _flex-wrap _justify-center"),"data-toggle-animation":d?u?"show":"hide":"off",children:[(0,B.jsx)(sv,{lite:!u,className:u?"_grow":"max-md:_grow"}),v.darkMode&&(0,B.jsx)("div",{className:u&&!b?"_grow _flex _flex-col":"",children:l8(v.themeSwitch.component,{lite:!u||b})}),v.sidebar.toggleButton&&(0,B.jsx)(tE,{title:u?"Hide sidebar":"Show sidebar",className:({hover:e})=>es("max-md:_hidden _rounded-md _p-2",e?"_bg-gray-100 _text-gray-900 dark:_bg-primary-100/5 dark:_text-gray-50":"_text-gray-600 dark:_text-gray-400"),onClick:()=>{c(!u),f(!0)},children:(0,B.jsx)(tk.Qq,{height:"12",className:es(!u&&"first:*:_origin-[35%] first:*:_rotate-180")})})]})]})]})}var sL="reach-skip-nav";(0,V.forwardRef)((e,t)=>{var{className:n,id:r,label:o="Skip to content",styled:i}=e,l=lB(e,["className","id","label","styled"]);let s=void 0===n?i?es("_sr-only","nextra-focus","focus:_not-sr-only focus:_fixed focus:_z-50 focus:_m-3 focus:_ml-4 focus:_h-[calc(var(--nextra-navbar-height)-1.5rem)] focus:_rounded-lg focus:_border focus:_px-3 focus:_py-2 focus:_align-middle focus:_text-sm focus:_font-bold","focus:_text-gray-900 focus:dark:_text-gray-100","focus:_bg-white focus:dark:_bg-neutral-900","focus:_border-neutral-400 focus:dark:_border-neutral-800"):"":n;return(0,B.jsx)("a",lH(lW({},l),{ref:t,href:`#${r||sL}`,className:s,children:o}))}).displayName="SkipNavLink";var sA=(0,V.forwardRef)((e,t)=>{var{id:n}=e,r=lB(e,["id"]);return(0,B.jsx)("div",lH(lW({},r),{ref:t,id:n||sL}))});sA.displayName="SkipNavContent";var sN={top:0,behavior:"smooth"},sF=e=>{let t=e.currentTarget,n=t.parentElement.parentElement;window.scrollTo(sN),n.scrollTo(sN),t.disabled=!0};function sD({children:e,className:t,hidden:n}){return(0,B.jsxs)(tE,{"aria-hidden":n?"true":void 0,onClick:sF,disabled:n,className:({disabled:e})=>es("_flex _items-center _gap-1.5","_whitespace-nowrap",e?"_opacity-0":"_opacity-100",t),children:[e,(0,B.jsx)(tk.LZ,{height:"16",className:"_-rotate-90 _border _rounded-full _border-current"})]})}var sz=es("_text-xs _font-medium","_text-gray-600 dark:_text-gray-400","hover:_text-gray-800 dark:hover:_text-gray-200","contrast-more:_text-gray-700 contrast-more:dark:_text-gray-100"),sW=(e,t)=>function(n){var{children:r,id:o,className:i}=n,l=lB(n,["children","id","className"]);let s=lY(),a=lJ(),u=lX(),c=(0,V.useRef)(null);return(0,V.useEffect)(()=>{let e=c.current;if(o&&u&&e)return u.observe(e),a.set(e,[o,t.index+=1]),()=>{u.disconnect(),a.delete(e),s(e=>{let t=lW({},e);return delete t[o],t})}},[o,a,u,s]),(0,B.jsxs)(e,lH(lW({id:o,className:"sr-only"===i?"_sr-only":es("_font-semibold _tracking-tight _text-slate-900 dark:_text-slate-100",{h2:"_mt-10 _border-b _pb-1 _text-3xl _border-neutral-200/70 contrast-more:_border-neutral-400 dark:_border-primary-100/10 contrast-more:dark:_border-neutral-400",h3:"_mt-8 _text-2xl",h4:"_mt-8 _text-xl",h5:"_mt-8 _text-lg",h6:"_mt-8 _text-base"}[e],i)},l),{children:[r,o&&(0,B.jsx)("a",{href:`#${o}`,className:"nextra-focus subheading-anchor","aria-label":"Permalink for this section",ref:c})]}))};function sH(e){var{children:t,className:n}=e,r=lB(e,["children","className"]);return(0,B.jsxs)("summary",lH(lW({className:es("nextra-focus","_flex _items-center _cursor-pointer _p-1 _transition-colors hover:_bg-gray-100 dark:hover:_bg-neutral-800","[&::-webkit-details-marker]:_hidden","_whitespace-pre-wrap","_select-none",n)},r),{children:[t,(0,B.jsx)(tk.LZ,{className:es("_order-first","_h-4 _shrink-0 _mx-1.5 motion-reduce:_transition-none","rtl:_rotate-180 [[data-expanded]>summary:first-child>&]:_rotate-90 _transition"),strokeWidth:"3"})]}))}var sB=/https?:\/\//,sV=e=>{var{href:t=""}=e,n=lB(e,["href"]);return(0,B.jsx)(l$,lW({href:t,newWindow:sB.test(t)},n))},s$={toc:es("nextra-toc _order-last max-xl:_hidden _w-64 _shrink-0 print:_hidden"),main:es("_w-full _break-words")};function sK({children:e}){let t=l6(),n=so(),r=iA(),{activeThemeContext:o,activeType:i,activeIndex:l,flatDocsDirectories:s,activePath:a}=t.normalizePagesResult;if("raw"===o.layout)return(0,B.jsx)("div",{className:s$.main,children:e});let u=o.timestamp&&n.gitTimestamp&&t.timestamp?new Date(t.timestamp):null,c=r&&u?(0,B.jsx)("div",{className:"_mt-12 _mb-8 _block _text-xs _text-gray-500 ltr:_text-right rtl:_text-left dark:_text-gray-400",children:l8(n.gitTimestamp,{timestamp:u})}):(0,B.jsx)("div",{className:"_mt-16"}),d=(0,B.jsxs)(B.Fragment,{children:[l8(o.topContent),e,c,l8(o.bottomContent),"page"!==i&&o.pagination&&(0,B.jsx)(sy,{flatDocsDirectories:s,currentIndex:l})]}),f=n.main?(0,B.jsx)(n.main,{children:d}):d;return"full"===o.layout?(0,B.jsx)("article",{className:es(s$.main,"nextra-content _min-h-[calc(100vh-var(--nextra-navbar-height))] _pl-[max(env(safe-area-inset-left),1.5rem)] _pr-[max(env(safe-area-inset-right),1.5rem)]"),children:f}):(0,B.jsx)("article",{className:es(s$.main,"nextra-content _flex _min-h-[calc(100vh-var(--nextra-navbar-height))] _min-w-0 _justify-center _pb-8 _pr-[calc(env(safe-area-inset-right)-1.5rem)]","article"===o.typesetting&&"nextra-body-typesetting-article"),children:(0,B.jsxs)("main",{className:"_w-full _min-w-0 _max-w-6xl _px-6 _pt-4 md:_px-12",children:["page"!==i&&o.breadcrumb&&(0,B.jsx)(ss,{activePath:a}),f]})})}var sU={h1:e=>(0,B.jsx)("h1",lW({className:"_mt-2 _text-4xl _font-bold _tracking-tight _text-slate-900 dark:_text-slate-100"},e)),ul:e=>(0,B.jsx)("ul",lW({className:"[:is(ol,ul)_&]:_my-3 [&:not(:first-child)]:_mt-6 _list-disc ltr:_ml-6 rtl:_mr-6"},e)),ol:e=>(0,B.jsx)("ol",lW({className:"[:is(ol,ul)_&]:_my-3 [&:not(:first-child)]:_mt-6 _list-decimal ltr:_ml-6 rtl:_mr-6"},e)),li:e=>(0,B.jsx)("li",lW({className:"_my-2"},e)),blockquote:e=>(0,B.jsx)("blockquote",lW({className:es("[&:not(:first-child)]:_mt-6 _border-gray-300 _italic _text-gray-700 dark:_border-gray-700 dark:_text-gray-400","ltr:_border-l-2 ltr:_pl-6 rtl:_border-r-2 rtl:_pr-6")},e)),hr:e=>(0,B.jsx)("hr",lW({className:"_my-8 _border-neutral-200/70 contrast-more:_border-neutral-400 dark:_border-primary-100/10 contrast-more:dark:_border-neutral-400"},e)),a:e=>{var{href:t="",className:n}=e,r=lB(e,["href","className"]);return(0,B.jsx)(l$,lW({href:t,newWindow:sB.test(t),className:es("_text-primary-600 _underline hover:_no-underline _decoration-from-font [text-underline-position:from-font]",n)},r))},table:e=>(0,B.jsx)(lj,lH(lW({},e),{className:es("nextra-scrollbar [&:not(:first-child)]:_mt-6 _p-0",e.className)})),p:e=>(0,B.jsx)("p",lW({className:"[&:not(:first-child)]:_mt-6 _leading-7"},e)),tr:({className:e="",...t})=>(0,B.jsx)("tr",{className:es("_m-0 _border-t _border-gray-300 _p-0 dark:_border-gray-600","even:_bg-gray-100 even:dark:_bg-gray-600/20",e),...t}),th:({className:e="",...t})=>(0,B.jsx)("th",{className:es("_m-0 _border _border-gray-300 _px-4 _py-2 _font-semibold dark:_border-gray-600",e),...t}),td:({className:e="",...t})=>(0,B.jsx)("td",{className:es("_m-0 _border _border-gray-300 _px-4 _py-2 dark:_border-gray-600",e),...t}),details:function e(t){var{children:n,open:r,className:o}=t,i=lB(t,["children","open","className"]);let[l,s]=(0,V.useState)(()=>!!r),[a,u]=(0,V.useState)(l),c=(0,V.useRef)(0);(0,V.useEffect)(()=>{let e=c.current;if(e&&(clearTimeout(e),c.current=0),!l)return c.current=window.setTimeout(()=>u(l),300),()=>{clearTimeout(c.current)};u(!0)},[l]);let[d,f]=(0,V.useMemo)(function t(r=n){let o;let i=V.Children.map(r,n=>{if(!o&&n&&"object"==typeof n&&"type"in n){if(n.type===sH){o=(0,V.cloneElement)(n,{onClick(e){e.preventDefault(),s(e=>!e)}});return}n.type!==e&&n.props.children&&([o,n]=t(n.props.children))}return n});return[o,i]},[n]);return(0,B.jsxs)("details",lH(lW({className:es("[&:not(:first-child)]:_mt-4 _rounded _border _border-gray-200 _bg-white _p-2 _shadow-sm dark:_border-neutral-800 dark:_bg-neutral-900","_overflow-hidden",o)},i),{open:l||a,"data-expanded":l?"":void 0,children:[d,(0,B.jsx)(sa,{isOpen:l,children:f})]}))},summary:sH,pre:function({children:e,className:t,"data-filename":n,"data-copy":r,"data-language":o,"data-word-wrap":i,icon:l,...s}){let a=(0,V.useRef)(null),u=""===r&&(0,B.jsx)(lM,{className:n?"_ml-auto":"",getValue:()=>a.current?.querySelector("code")?.textContent||""});return(0,B.jsxs)("div",{className:"nextra-code _relative [&:not(:first-child)]:_mt-6",children:[n&&(0,B.jsxs)("div",{className:es("_px-4 _text-xs _text-gray-700 dark:_text-gray-200","_bg-gray-100 dark:_bg-neutral-900","_flex _items-center _h-12 _gap-2 _rounded-t-md",tS.border,"_border-b-0"),children:[l&&(0,B.jsx)(l,{className:"_h-4 _w-auto _max-w-6 _shrink-0"}),(0,B.jsx)("span",{className:"_truncate",children:n}),u]}),(0,B.jsx)("pre",{className:es("nextra-focus","_overflow-x-auto _subpixel-antialiased _text-[.9em]","_bg-white dark:_bg-black _py-4","_ring-1 _ring-inset _ring-gray-300 dark:_ring-neutral-700","contrast-more:_ring-gray-900 contrast-more:dark:_ring-gray-50","contrast-more:_contrast-150",n?"_rounded-b-md":"_rounded-md",t),ref:a,...s,children:e}),(0,B.jsxs)("div",{className:es("_opacity-0 _transition [div:hover>&]:_opacity-100 focus-within:_opacity-100","_flex _gap-1 _absolute _right-4",n?"_top-14":"_top-2"),children:[""===i&&(0,B.jsx)(tE,{onClick:lP,className:"md:_hidden",title:"Toggle word wrap",variant:"outline",children:(0,B.jsx)(tk.NK,{height:"16"})}),!n&&u]})]})},code:function({children:e,className:t,"data-language":n,...r}){return(0,B.jsx)("code",{className:es("nextra-code","data-line-numbers"in r&&"[counter-reset:line]",t),dir:"ltr",...r,children:e})},wrapper:function({toc:e,children:t}){let n=l6(),r=so(),{activeType:o,activeThemeContext:i,docsDirectories:l,directories:s}=n.normalizePagesResult,a="page"!==o&&i.toc&&"default"===i.layout?(0,B.jsx)("nav",{className:s$.toc,"aria-label":"table of contents",children:l8(r.toc.component,{toc:r.toc.float?e:[],filePath:n.filePath})}):"full"!==i.layout&&"raw"!==i.layout&&(0,B.jsx)("nav",{className:s$.toc,"aria-label":"table of contents"});return(0,B.jsxs)("div",{className:es("_mx-auto _flex","raw"!==i.layout&&"_max-w-[90rem]"),children:[(0,B.jsx)(sR,{docsDirectories:l,fullDirectories:s,toc:e,asPopover:n.hideSidebar,includePlaceholder:"default"===i.layout}),a,(0,B.jsx)(sA,{}),(0,B.jsx)(sK,{children:t})]})}};function sq({children:e}){let t=so(),n=l6(),{locale:r}=(0,ei.t)(),{direction:o}=t.i18n.find(e=>e.locale===r)||t,i="rtl"===o?"rtl":"ltr",{activeThemeContext:l,topLevelNavbarItems:s}=n.normalizePagesResult,a=function({isRawLayout:e,components:t}){if(e)return{a:sV,wrapper:sU.wrapper};let n={index:0};return lW(lH(lW({},sU),{h2:sW("h2",n),h3:sW("h3",n),h4:sW("h4",n),h5:sW("h5",n),h6:sW("h6",n)}),t)}({isRawLayout:"raw"===l.layout,components:t.components});return(0,B.jsx)(X,lH(lW({attribute:"class",disableTransitionOnChange:!0},t.nextThemes),{children:(0,B.jsxs)("div",{dir:i,children:[(0,B.jsx)("script",{dangerouslySetInnerHTML:{__html:`document.documentElement.setAttribute('dir','${i}')`}}),(0,B.jsx)(sb,{}),(0,B.jsx)(sl,{}),l.navbar&&l8(t.navbar.component,{items:s}),(0,B.jsx)(l0,{children:(0,B.jsx)(el.Z,{disableParentContext:!0,components:a,children:e})}),l.footer&&l8(t.footer.component,{menu:n.hideSidebar})]})}))}let sG={logo:(0,B.jsxs)("span",{className:"ac-logo",children:[(0,B.jsx)("span",{className:"ac-logo-leaf",children:"\uD83C\uDF3F"})," Zero Inspector Kit"]}),project:{link:"https://github.com/zero-labsco/zero_inspector_kit"},docsRepositoryBase:"https://github.com/zero-labsco/zero_inspector_kit/tree/main/website",footer:{content:"Zero Inspector Kit \xb7 MPL-2.0"},darkMode:!1,search:{placeholder:"\uD83D\uDD0D Search the island…"},editLink:{content:"✏️ Edit this page on GitHub"},feedback:{content:"\uD83D\uDCAC Questions? Open an issue"},sidebar:{defaultMenuCollapseLevel:1},toc:{backToTop:"⬆️ Back to top"},head:(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("link",{rel:"icon",href:"/zero_inspector_kit/favicon.svg",type:"image/svg+xml"}),(0,B.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,B.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,B.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=ZCOOL+KuaiLe&family=Noto+Sans+SC:wght@400;500;700&display=swap",rel:"stylesheet"})]})};function sQ(e){let{Component:t,pageProps:n}=e;return(0,B.jsx)(t,{...n})}n(237),n(6474);let sZ=(W=globalThis)[H=Symbol.for("__nextra_internal__")]||(W[H]=Object.create(null));sZ.context||(sZ.context=Object.create(null)),sZ.Layout=function({children:e,themeConfig:t,pageOpts:n}){return(0,B.jsx)(si,{value:t,children:(0,B.jsx)(l7,{value:n,children:(0,B.jsx)(sq,{children:e})})})},sZ.themeConfig=sG},8199:function(e,t){"use strict";var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",s="navigate",a="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(i=r||(r={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7195:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(8337),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(8754),o=n(5893),i=r._(n(7294)),l=n(6075),s=n(3955),a=n(8041),u=n(9903),c=n(5490),d=n(1928),f=n(257),p=n(4229),h=n(7195),m=n(9470),g=n(8199),v=new Set;function b(e,t,n,r,o,i){if(i||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let y=i.default.forwardRef(function(e,t){let n,r;let{href:a,as:v,children:y,prefetch:_=null,passHref:w,replace:S,shallow:E,scroll:k,locale:C,onClick:O,onMouseEnter:T,onTouchStart:I,legacyBehavior:j=!1,...M}=e;n=y,j&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let P=i.default.useContext(d.RouterContext),R=i.default.useContext(f.AppRouterContext),L=null!=P?P:R,A=!P,N=!1!==_,F=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:D,as:z}=i.default.useMemo(()=>{if(!P){let e=x(a);return{href:e,as:v?x(v):e}}let[e,t]=(0,l.resolveHref)(P,a,!0);return{href:e,as:v?(0,l.resolveHref)(P,v):t||e}},[P,a,v]),W=i.default.useRef(D),H=i.default.useRef(z);j&&(r=i.default.Children.only(n));let B=j?r&&"object"==typeof r&&r.ref:t,[V,$,K]=(0,p.useIntersection)({rootMargin:"200px"}),U=i.default.useCallback(e=>{(H.current!==z||W.current!==D)&&(K(),H.current=z,W.current=D),V(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[z,B,D,K,V]);i.default.useEffect(()=>{L&&$&&N&&b(L,D,z,{locale:C},{kind:F},A)},[z,D,$,C,N,null==P?void 0:P.locale,L,A,F]);let q={ref:U,onClick(e){j||"function"!=typeof O||O(e),j&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,n,r,o,l,a,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==a||a;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(f):f()}(e,L,D,z,S,E,k,C,A)},onMouseEnter(e){j||"function"!=typeof T||T(e),j&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),L&&(N||!A)&&b(L,D,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:F},A)},onTouchStart:function(e){j||"function"!=typeof I||I(e),j&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),L&&(N||!A)&&b(L,D,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:F},A)}};if((0,u.isAbsoluteUrl)(z))q.href=z;else if(!j||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(z,e,null==P?void 0:P.defaultLocale))}return j?i.default.cloneElement(r,q):(0,o.jsx)("a",{...M,...q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return a}});let r=n(7294),o=n(4474),i="function"==typeof IntersectionObserver,l=new Map,s=[];function a(e){let{rootRef:t,rootMargin:n,disabled:a}=e,u=a||!i,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},s.push(n),l.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),l.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,n,t,c,f.current]),[p,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},237:function(){},6474:function(){},7663:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:l}catch(e){n=l}}();var a=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?a=r.concat(a):c=-1,a.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=a.length;t;){for(r=a,a=[];++c1)for(var n=1;n{let e=(0,r.useRouter)();return(0,o.useMemo)(()=>{let t=i.env.NEXTRA_DEFAULT_LOCALE;return{...e,defaultLocale:t,...t&&{locale:e.asPath.split("/")[1]}}},[e])}},5192:function(e,t,n){"use strict";n.d(t,{AV:function(){return d},D7:function(){return s},Fx:function(){return b},L4:function(){return h},LZ:function(){return o},NK:function(){return g},NW:function(){return m},Oq:function(){return f},Qq:function(){return a},TI:function(){return l},b0:function(){return v},fy:function(){return u},kL:function(){return p},n9:function(){return c},nQ:function(){return i}});var r=n(5893),o=e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:2,...e,children:(0,r.jsx)("path",{d:"M9 5l7 7-7 7",strokeLinecap:"round",strokeLinejoin:"round"})}),i=e=>(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"})}),l=e=>(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,...e,children:[(0,r.jsx)("rect",{x:9,y:9,width:13,height:13,rx:2}),(0,r.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5"})]}),s=e=>(0,r.jsxs)("svg",{width:24,height:24,fill:"currentColor",viewBox:"0 5 30.67 23.25",...e,children:[(0,r.jsx)("title",{children:"Discord"}),(0,r.jsx)("path",{d:"M26.0015 6.9529C24.0021 6.03845 21.8787 5.37198 19.6623 5C19.3833 5.48048 19.0733 6.13144 18.8563 6.64292C16.4989 6.30193 14.1585 6.30193 11.8336 6.64292C11.6166 6.13144 11.2911 5.48048 11.0276 5C8.79575 5.37198 6.67235 6.03845 4.6869 6.9529C0.672601 12.8736 -0.41235 18.6548 0.130124 24.3585C2.79599 26.2959 5.36889 27.4739 7.89682 28.2489C8.51679 27.4119 9.07477 26.5129 9.55525 25.5675C8.64079 25.2265 7.77283 24.808 6.93587 24.312C7.15286 24.1571 7.36986 23.9866 7.57135 23.8161C12.6241 26.1255 18.0969 26.1255 23.0876 23.8161C23.3046 23.9866 23.5061 24.1571 23.7231 24.312C22.8861 24.808 22.0182 25.2265 21.1037 25.5675C21.5842 26.5129 22.1422 27.4119 22.7621 28.2489C25.2885 27.4739 27.8769 26.2959 30.5288 24.3585C31.1952 17.7559 29.4733 12.0212 26.0015 6.9529ZM10.2527 20.8402C8.73376 20.8402 7.49382 19.4608 7.49382 17.7714C7.49382 16.082 8.70276 14.7025 10.2527 14.7025C11.7871 14.7025 13.0425 16.082 13.0115 17.7714C13.0115 19.4608 11.7871 20.8402 10.2527 20.8402ZM20.4373 20.8402C18.9183 20.8402 17.6768 19.4608 17.6768 17.7714C17.6768 16.082 18.8873 14.7025 20.4373 14.7025C21.9717 14.7025 23.2271 16.082 23.1961 17.7714C23.1961 19.4608 21.9872 20.8402 20.4373 20.8402Z"})]}),a=e=>(0,r.jsxs)("svg",{viewBox:"0 0 16 16",fill:"currentColor",...e,children:[(0,r.jsx)("path",{d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z"}),(0,r.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"})]}),u=e=>(0,r.jsxs)("svg",{width:24,height:24,fill:"currentColor",viewBox:"3 3 18 18",...e,children:[(0,r.jsx)("title",{children:"GitHub"}),(0,r.jsx)("path",{d:"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"})]}),c=e=>(0,r.jsx)("svg",{viewBox:"2 2 16 16",width:12,height:12,fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",clipRule:"evenodd"})}),d=e=>(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",width:20,height:20,...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"})}),f=e=>(0,r.jsxs)("svg",{fill:"none",width:24,height:24,viewBox:"0 0 24 24",stroke:"currentColor",...e,children:[(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16"})}),(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 12h16"}),(0,r.jsx)("g",{children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 18h16"})})]}),p=e=>(0,r.jsx)("svg",{fill:"none",viewBox:"2 2 20 20",width:12,height:12,stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,fill:"currentColor",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}),h=e=>(0,r.jsxs)("svg",{fill:"none",viewBox:"0 0 24 24",width:24,height:24,...e,children:[(0,r.jsx)("circle",{className:"_opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),(0,r.jsx)("path",{className:"_opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),m=e=>(0,r.jsx)("svg",{fill:"none",viewBox:"3 3 18 18",width:12,height:12,stroke:"currentColor",...e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,fill:"currentColor",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}),g=e=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})}),v=e=>(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})}),b=e=>(0,r.jsx)("svg",{viewBox:"0 0 28 24",fill:"none",stroke:"currentColor",...e,children:(0,r.jsx)("path",{d:"M7.3 7.8L12.55 12L7.3 16.2M14.65 16.2H19.9M2.11562 1.5H25.0844C25.7005 1.5 26.2 1.99948 26.2 2.61562V21.3844C26.2 22.0005 25.7005 22.5 25.0844 22.5H2.11562C1.49948 22.5 1 22.0005 1 21.3844V2.61562C1 1.99948 1.49948 1.5 2.11562 1.5Z",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})},7666:function(e,t,n){"use strict";var r=n(7294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,l=r.useRef,s=r.useEffect,a=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=i(e,(d=a(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return l=t}return l=e}if(t=l,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,l=n)}var i,l,s=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,c]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},1103:function(e,t,n){"use strict";e.exports=n(7666)},1151:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},a:function(){return l}});var r=n(7294);let o={},i=r.createContext(o);function l(e){let t=r.useContext(i);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:l(e.components),r.createElement(i.Provider,{value:t},e.children)}},3665:function(e,t,n){"use strict";n.d(t,{ZW:function(){return i},hV:function(){return o},ud:function(){return r}});let r=Symbol.for("__nextra_internal__"),o=new Set(["/404","/500"]),i="en-US"}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(3079)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/docs/_next/static/6toa_d2oX0aKi0eXeWxm5/_buildManifest.js b/docs/_next/static/oOebmkbSWWItGfY6IYxtD/_buildManifest.js
similarity index 88%
rename from docs/_next/static/6toa_d2oX0aKi0eXeWxm5/_buildManifest.js
rename to docs/_next/static/oOebmkbSWWItGfY6IYxtD/_buildManifest.js
index 3b998f4..132d7fb 100644
--- a/docs/_next/static/6toa_d2oX0aKi0eXeWxm5/_buildManifest.js
+++ b/docs/_next/static/oOebmkbSWWItGfY6IYxtD/_buildManifest.js
@@ -1 +1 @@
-self.__BUILD_MANIFEST=function(e){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/pages/index-2690f32ccd636754.js"],"/Alerts":[e,"static/chunks/pages/Alerts-303580b721158a8d.js"],"/Configuration":[e,"static/chunks/pages/Configuration-c728c0430f76605b.js"],"/Custom-Database-Provider":[e,"static/chunks/pages/Custom-Database-Provider-838fb9c0a6151981.js"],"/Database-Viewer":[e,"static/chunks/pages/Database-Viewer-5b3fb1bd8161d7e8.js"],"/Errors":[e,"static/chunks/pages/Errors-d6acd286d99365c4.js"],"/FAQ":[e,"static/chunks/pages/FAQ-77f05aab84ba1940.js"],"/FPS-Viewer":[e,"static/chunks/pages/FPS-Viewer-93d1796fa44f218a.js"],"/Getting-Started":[e,"static/chunks/pages/Getting-Started-cb7caccb4a04217f.js"],"/Installation":[e,"static/chunks/pages/Installation-08d244ae3720e0b3.js"],"/Log-Viewer":[e,"static/chunks/pages/Log-Viewer-f91ed29d9fff37fb.js"],"/Memory-Viewer":[e,"static/chunks/pages/Memory-Viewer-5f8bed1aa6f7d6b5.js"],"/Network-Inspector":[e,"static/chunks/pages/Network-Inspector-2a15a53da68a93b6.js"],"/Route-Tracker":[e,"static/chunks/pages/Route-Tracker-8de8d462ef1f1c4e.js"],"/Usage":[e,"static/chunks/pages/Usage-d81feeeea27e1c63.js"],"/_error":["static/chunks/pages/_error-7a92967bea80186d.js"],"/_meta":["static/chunks/pages/_meta-b47e7a01bb6b7929.js"],sortedPages:["/","/Alerts","/Configuration","/Custom-Database-Provider","/Database-Viewer","/Errors","/FAQ","/FPS-Viewer","/Getting-Started","/Installation","/Log-Viewer","/Memory-Viewer","/Network-Inspector","/Route-Tracker","/Usage","/_app","/_error","/_meta"]}}("static/chunks/812-3fcedf6f3c3b1908.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
+self.__BUILD_MANIFEST=function(e){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/pages/index-2690f32ccd636754.js"],"/Alerts":[e,"static/chunks/pages/Alerts-303580b721158a8d.js"],"/Configuration":[e,"static/chunks/pages/Configuration-c728c0430f76605b.js"],"/Custom-Database-Provider":[e,"static/chunks/pages/Custom-Database-Provider-838fb9c0a6151981.js"],"/Database-Viewer":[e,"static/chunks/pages/Database-Viewer-5b3fb1bd8161d7e8.js"],"/Errors":[e,"static/chunks/pages/Errors-d6acd286d99365c4.js"],"/FAQ":[e,"static/chunks/pages/FAQ-3f5854cf7971f23b.js"],"/FPS-Viewer":[e,"static/chunks/pages/FPS-Viewer-93d1796fa44f218a.js"],"/Getting-Started":[e,"static/chunks/pages/Getting-Started-cb7caccb4a04217f.js"],"/Installation":[e,"static/chunks/pages/Installation-b92825ae5c00cca0.js"],"/Log-Viewer":[e,"static/chunks/pages/Log-Viewer-f91ed29d9fff37fb.js"],"/Memory-Viewer":[e,"static/chunks/pages/Memory-Viewer-5f8bed1aa6f7d6b5.js"],"/Network-Inspector":[e,"static/chunks/pages/Network-Inspector-2a15a53da68a93b6.js"],"/Route-Tracker":[e,"static/chunks/pages/Route-Tracker-8de8d462ef1f1c4e.js"],"/Usage":[e,"static/chunks/pages/Usage-d81feeeea27e1c63.js"],"/_error":["static/chunks/pages/_error-7a92967bea80186d.js"],"/_meta":["static/chunks/pages/_meta-b47e7a01bb6b7929.js"],sortedPages:["/","/Alerts","/Configuration","/Custom-Database-Provider","/Database-Viewer","/Errors","/FAQ","/FPS-Viewer","/Getting-Started","/Installation","/Log-Viewer","/Memory-Viewer","/Network-Inspector","/Route-Tracker","/Usage","/_app","/_error","/_meta"]}}("static/chunks/812-3fcedf6f3c3b1908.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/docs/_next/static/6toa_d2oX0aKi0eXeWxm5/_ssgManifest.js b/docs/_next/static/oOebmkbSWWItGfY6IYxtD/_ssgManifest.js
similarity index 100%
rename from docs/_next/static/6toa_d2oX0aKi0eXeWxm5/_ssgManifest.js
rename to docs/_next/static/oOebmkbSWWItGfY6IYxtD/_ssgManifest.js
diff --git a/docs/index.html b/docs/index.html
index 7f72eed..d2c7e13 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1,4 +1,4 @@
-
\ No newline at end of file
diff --git a/ios/zero_inspector_kit.podspec b/ios/zero_inspector_kit.podspec
index 45df3d1..ac861ec 100644
--- a/ios/zero_inspector_kit.podspec
+++ b/ios/zero_inspector_kit.podspec
@@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'zero_inspector_kit'
- s.version = '1.9.1'
+ s.version = '1.10.0'
s.summary = 'A Flutter plugin for in-app developer console.'
s.description = <<-DESC
A Flutter plugin for in-app developer console with network request viewing, logging, database inspection, memory monitoring, FPS monitoring, and route tracking.
diff --git a/pubspec.yaml b/pubspec.yaml
index fba2354..e7f900e 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
name: zero_inspector_kit
description: One-line in-app developer console for Flutter — HTTP/WebSocket/gRPC inspection, logs, database, memory leaks, FPS jank, routes, alerts, bug reports. Auto-disabled in release.
-version: 1.9.1
+version: 1.10.0
topics:
- logging
- debug
@@ -29,7 +29,7 @@ screenshots:
- description: Alerts tab — manage leak, exception and threshold alerts with rule configuration.
path: image/screenshot/alerts.png
-license: GPL-3.0-only
+license: MPL-2.0
environment:
sdk: '>=3.11.0 <4.0.0'
diff --git a/website/pages/FAQ.md b/website/pages/FAQ.md
index 85f5100..f4116af 100644
--- a/website/pages/FAQ.md
+++ b/website/pages/FAQ.md
@@ -223,9 +223,9 @@ See [Usage > Edge Docking](Usage#edge-docking-since-v120--边缘吸附v120-起)
### Q: Can I use this in a commercial project? / 可以在商业项目中使用吗?
-**A:** This project is licensed under **GPL-3.0**. You can use it freely, but any modified commercial distribution must also be open-source under GPL-3.0.
+**A:** Yes. This project is licensed under **MPL-2.0**. You can use it in closed-source commercial apps — if you use it **unmodified**, no source disclosure is required. If you **modify** the plugin's source files, those modified files must be published in source form under MPL-2.0 (your own app still does not need to be open-sourced).
-本项目采用 **GPL-3.0** 许可证。可以自由使用,但修改后的商业分发也必须在 GPL-3.0 下开源。
+可以。本项目采用 **MPL-2.0** 许可证,可用于闭源商业 App——**未修改**直接使用时无需公开任何源码;若**修改**了插件源文件,被修改的文件必须以 MPL-2.0 公开源码(你自己的 App 仍无需开源)。
### Q: Are you liable for issues in modified versions? / 修改版出问题你们负责吗?
diff --git a/website/theme.config.tsx b/website/theme.config.tsx
index 5eea5de..cf8dba0 100644
--- a/website/theme.config.tsx
+++ b/website/theme.config.tsx
@@ -13,7 +13,7 @@ const config: DocsThemeConfig = {
docsRepositoryBase:
'https://github.com/zero-labsco/zero_inspector_kit/tree/main/website',
footer: {
- content: 'Zero Inspector Kit · GPL-3.0'
+ content: 'Zero Inspector Kit · MPL-2.0'
},
// Keep it light & cozy — no dark mode for the island vibe
darkMode: false,