@tonyclaw/agent-inspector 3.0.44 → 3.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/{nitro.json → backend/nitro.json} +3 -3
- package/.output/backend-public/assets/index-D4LX-sw-.js +11 -0
- package/.output/cli.js +22707 -17099
- package/.output/server/_libs/extend.mjs +4 -8
- package/.output/server/_libs/jszip.mjs +9 -35
- package/.output/server/_libs/modelcontextprotocol__core.mjs +25 -25
- package/.output/server/_libs/modelcontextprotocol__server.mjs +2 -2
- package/.output/server/_libs/react-dom.mjs +2 -3
- package/.output/server/_libs/react.mjs +1 -27
- package/.output/server/_libs/tanstack__react-router.mjs +1 -329
- package/.output/server/_libs/tanstack__router-core.mjs +42 -100
- package/.output/server/_libs/use-sync-external-store.mjs +1 -64
- package/.output/server/_libs/ws.mjs +1 -1
- package/.output/server/_libs/zod.mjs +6 -6
- package/.output/server/_ssr/index.mjs +5 -4
- package/.output/server/_ssr/publicBasePathContext-IH2ilOfu.mjs +176 -0
- package/.output/server/_ssr/{router-DWcUFPR3.mjs → router-D18yUq36.mjs} +7877 -5597
- package/.output/server/_ssr/start-COQu_AgD.mjs +57 -0
- package/.output/server/_tanstack-start-manifest_v-DnbdNeun.mjs +4 -0
- package/.output/server/index.mjs +5 -145
- package/.output/{public/assets/CompareDrawer-DQHjxFO6.js → ui/assets/CompareDrawer-DAUuIJ6G.js} +1 -1
- package/.output/{public/assets/InspectorPet-D1A4505B.js → ui/assets/InspectorPet-BRBVjOWI.js} +1 -1
- package/.output/ui/assets/ProxyViewerContainer-D7Sq0ctc.js +59 -0
- package/.output/{public/assets/ReplayDialog-C5vmbecv.js → ui/assets/ReplayDialog-nDLsjOhs.js} +1 -1
- package/.output/{public/assets/RequestAnatomy-CPGNB8lk.js → ui/assets/RequestAnatomy-zd4BDgL0.js} +1 -1
- package/.output/ui/assets/ResponseView-AdIXGcSn.js +2 -0
- package/.output/ui/assets/StreamingChunkSequence-CesTz8He.js +1 -0
- package/.output/{public/assets/_sessionId-CDhRgzf6.js → ui/assets/_sessionId-BAfzrhSU.js} +1 -1
- package/.output/{public/assets/_sessionId-mw3aA8Bp.js → ui/assets/_sessionId-QnBomgPD.js} +1 -1
- package/.output/ui/assets/favicon-DYEkHSNl.svg +21 -0
- package/.output/{public/assets/index-B2eoeT-Z.js → ui/assets/index-BcsdxBAd.js} +1 -1
- package/.output/ui/assets/index-BvXp42al.css +1 -0
- package/.output/{public/assets/index-CX7_rf7o.js → ui/assets/index-D0rtCN9V.js} +1 -1
- package/.output/ui/assets/index-DHpwr08Z.js +73 -0
- package/.output/{public/assets/index-BfRhTvOd.js → ui/assets/index-dNuk2dsU.js} +1 -1
- package/.output/ui/assets/json-viewer-BvFHglMb.js +1 -0
- package/.output/{public/assets/jszip.min-C9rCFoU3.js → ui/assets/jszip.min-B5Z7gNZB.js} +1 -1
- package/.output/ui/index.html +229 -0
- package/.output/ui/runtime-config.js +2 -0
- package/.output/workers/logFinalizer.worker.js +983 -414
- package/.output/workers/sessionWorkerEntry.js +983 -414
- package/README.md +363 -35
- package/docs/instance-control.openapi.yaml +361 -0
- package/package.json +28 -5
- package/scripts/generate-theme-scales.mjs +3 -3
- package/src/{router.tsx → backend/router.tsx} +3 -15
- package/src/backend/routes/$.ts +26 -0
- package/src/backend/routes/__root.ts +4 -0
- package/src/backend/routes/api/-instances.ts +109 -0
- package/src/{routes → backend/routes}/api/alerts.summary.ts +3 -3
- package/src/{routes → backend/routes}/api/alerts.ts +4 -4
- package/src/{routes → backend/routes}/api/config.paths.ts +1 -1
- package/src/{routes → backend/routes}/api/config.ts +11 -2
- package/src/{routes → backend/routes}/api/ecosystem.packages.$packageId.help.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.packages.$packageId.install.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.packages.$packageId.runner-presets.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.packages.$packageId.upgrade.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.packages.ts +5 -1
- package/src/{routes → backend/routes}/api/ecosystem.recipes.$recipeId.run.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.tasks.$taskId.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.tasks.ts +1 -1
- package/src/{routes → backend/routes}/api/groups.$groupId.evidence.ts +2 -2
- package/src/{routes → backend/routes}/api/groups.$groupId.sessions.ts +2 -2
- package/src/{routes → backend/routes}/api/groups.$groupId.ts +2 -2
- package/src/{routes → backend/routes}/api/groups.ts +2 -2
- package/src/{routes → backend/routes}/api/health.ts +3 -3
- package/src/backend/routes/api/instances.$name.connection.ts +12 -0
- package/src/backend/routes/api/instances.$name.restart.ts +23 -0
- package/src/backend/routes/api/instances.$name.start.ts +18 -0
- package/src/backend/routes/api/instances.$name.stop.ts +23 -0
- package/src/backend/routes/api/instances.$name.ts +12 -0
- package/src/backend/routes/api/instances.ts +16 -0
- package/src/{routes → backend/routes}/api/knowledge.candidates.$candidateId.promote.ts +2 -2
- package/src/{routes → backend/routes}/api/knowledge.candidates.$candidateId.ts +2 -2
- package/src/{routes → backend/routes}/api/knowledge.candidates.ts +1 -1
- package/src/{routes → backend/routes}/api/knowledge.project-context.ts +2 -2
- package/src/{routes → backend/routes}/api/knowledge.search.ts +2 -2
- package/src/{routes → backend/routes}/api/knowledge.sessions.$sessionId.candidates.ts +3 -3
- package/src/{routes → backend/routes}/api/logs.$id.body.ts +6 -6
- package/src/{routes → backend/routes}/api/logs.$id.chunks.ts +5 -4
- package/src/{routes → backend/routes}/api/logs.$id.replay.ts +12 -11
- package/src/{routes → backend/routes}/api/logs.$id.ts +4 -3
- package/src/{routes → backend/routes}/api/logs.import.ts +3 -3
- package/src/{routes → backend/routes}/api/logs.stream.ts +11 -7
- package/src/{routes → backend/routes}/api/logs.ts +17 -9
- package/src/{routes → backend/routes}/api/mcp.ts +1 -1
- package/src/{routes → backend/routes}/api/models.ts +1 -1
- package/src/{routes → backend/routes}/api/pi-agent.ts +2 -2
- package/src/{routes → backend/routes}/api/providers.$providerId.model-metadata.ts +5 -5
- package/src/{routes → backend/routes}/api/providers.$providerId.test.log.ts +7 -7
- package/src/{routes → backend/routes}/api/providers.$providerId.ts +4 -4
- package/src/{routes → backend/routes}/api/providers.export.ts +1 -1
- package/src/{routes → backend/routes}/api/providers.import.ts +3 -3
- package/src/{routes → backend/routes}/api/providers.scan.ts +2 -2
- package/src/{routes → backend/routes}/api/providers.ts +9 -4
- package/src/{routes → backend/routes}/api/runs.$runId.evidence.ts +2 -2
- package/src/{routes → backend/routes}/api/runs.$runId.ts +2 -2
- package/src/{routes → backend/routes}/api/runs.ts +4 -4
- package/src/backend/routes/api/runtime.ts +46 -0
- package/src/{routes → backend/routes}/api/sessions.ts +3 -3
- package/src/{routes → backend/routes}/proxy/$.ts +1 -1
- package/src/{routes → backend/routes}/readyz.ts +1 -1
- package/src/backend/start.ts +10 -0
- package/src/cli/alias.ts +431 -0
- package/src/cli/doctor.ts +32 -9
- package/src/cli/instance.ts +1050 -0
- package/src/cli/instanceArgs.ts +285 -0
- package/src/cli/instanceControl.ts +181 -0
- package/src/cli/instanceModel.ts +267 -0
- package/src/cli/instanceRegistry.ts +731 -0
- package/src/cli/networkHints.ts +27 -14
- package/src/cli/onboard.ts +190 -35
- package/src/cli/onboardTarget.ts +228 -0
- package/src/cli/templates/codex-skill-onboard.ts +109 -31
- package/src/cli/templates/skill-onboard.ts +140 -70
- package/src/cli.ts +338 -77
- package/src/components/ProxyViewer.tsx +20 -10
- package/src/components/ProxyViewerContainer.tsx +12 -11
- package/src/components/pi-agent/PiAgentPanel.tsx +2 -2
- package/src/components/providers/ProviderCard.tsx +1 -1
- package/src/components/providers/ProviderTestResultsView.tsx +1 -1
- package/src/components/providers/SettingsDialog.tsx +160 -140
- package/src/components/proxy-viewer/ApplicationBar.tsx +2 -1
- package/src/components/proxy-viewer/LogEntry.tsx +1 -1
- package/src/components/proxy-viewer/log-formats/index.ts +1 -1
- package/src/contracts/index.ts +5 -0
- package/src/contracts/log.ts +33 -3
- package/src/knowledge/types.ts +3 -2
- package/src/lib/alertContract.ts +2 -2
- package/src/lib/apiClient.ts +30 -7
- package/src/lib/apiFormat.ts +29 -0
- package/src/lib/basePath.ts +31 -7
- package/src/lib/browserRuntimeContract.ts +124 -0
- package/src/lib/browserRuntimeResolver.ts +244 -0
- package/src/{proxy → lib}/claudeCodeStrip.ts +6 -7
- package/src/lib/codingAgentEndpoints.ts +54 -0
- package/src/lib/instanceContract.ts +236 -0
- package/src/lib/managedInstance.ts +104 -0
- package/src/lib/piAgentContract.ts +3 -2
- package/src/lib/publicBasePathContext.ts +137 -0
- package/src/lib/resourceLimits.ts +2 -0
- package/src/lib/runContract.ts +3 -3
- package/src/lib/sessionInfoContract.ts +3 -2
- package/src/mcp/instanceHandlers.ts +150 -0
- package/src/mcp/loopback.ts +16 -5
- package/src/mcp/mode.ts +25 -0
- package/src/mcp/server.ts +274 -39
- package/src/mcp/toolHandlers.ts +2 -2
- package/src/proxy/config.ts +25 -30
- package/src/proxy/dataDir.ts +43 -7
- package/src/proxy/ecosystemTasks.ts +161 -70
- package/src/proxy/formats/registry.ts +6 -21
- package/src/proxy/handler.ts +129 -29
- package/src/proxy/identityProxy.ts +1049 -50
- package/src/proxy/jsonlRecovery.ts +554 -0
- package/src/proxy/logFinalizer.ts +25 -10
- package/src/proxy/logImporter.ts +2 -1
- package/src/proxy/logIndex.ts +191 -95
- package/src/proxy/logger.ts +77 -14
- package/src/proxy/platformCommands.ts +41 -0
- package/src/proxy/privateDataPath.ts +310 -88
- package/src/proxy/rawStreamCapture.ts +194 -13
- package/src/proxy/runtimeAdmission.ts +5 -2
- package/src/proxy/runtimeHealth.ts +14 -1
- package/src/proxy/runtimeShutdown.ts +84 -2
- package/src/proxy/schemas.ts +7 -1
- package/src/proxy/sessionArchive.ts +78 -14
- package/src/proxy/sessionInfo.ts +5 -4
- package/src/proxy/sqliteLogIndex.ts +65 -2
- package/src/proxy/store.ts +141 -34
- package/src/proxy/uiAssetServer.ts +106 -0
- package/src/proxy/upstream.ts +29 -2
- package/src/ui/bootstrap.ts +167 -0
- package/src/ui/index.html +38 -0
- package/src/ui/logsStreamClient.ts +20 -0
- package/src/ui/main.tsx +13 -0
- package/src/ui/public/runtime-config.js +2 -0
- package/src/ui/router.tsx +13 -0
- package/src/ui/routes/__root.tsx +69 -0
- package/src/{routes → ui/routes}/index.tsx +2 -3
- package/src/{routes → ui/routes}/session/$sessionId.tsx +5 -11
- package/src/ui/runtimeDiscovery.ts +50 -0
- package/styles/globals.css +1 -0
- package/.output/public/assets/ProxyViewerContainer-BhpIgfBi.js +0 -126
- package/.output/public/assets/ResponseView-DUfrajCm.js +0 -2
- package/.output/public/assets/StreamingChunkSequence-nbeCQqOz.js +0 -1
- package/.output/public/assets/index-BWjeqxbk.css +0 -1
- package/.output/public/assets/index-C6qZwYlR.js +0 -70
- package/.output/public/assets/json-viewer-BLmF1sOZ.js +0 -1
- package/.output/server/_libs/@radix-ui/react-accessible-icon+[...].mjs +0 -1
- package/.output/server/_libs/@radix-ui/react-dismissable-layer+[...].mjs +0 -344
- package/.output/server/_libs/@radix-ui/react-navigation-menu+[...].mjs +0 -2
- package/.output/server/_libs/@radix-ui/react-one-time-password-field+[...].mjs +0 -2
- package/.output/server/_libs/@radix-ui/react-password-toggle-field+[...].mjs +0 -2
- package/.output/server/_libs/@radix-ui/react-use-callback-ref+[...].mjs +0 -11
- package/.output/server/_libs/@radix-ui/react-use-controllable-state+[...].mjs +0 -69
- package/.output/server/_libs/@radix-ui/react-use-effect-event+[...].mjs +0 -1
- package/.output/server/_libs/@radix-ui/react-use-is-hydrated+[...].mjs +0 -28
- package/.output/server/_libs/@radix-ui/react-use-layout-effect+[...].mjs +0 -6
- package/.output/server/_libs/@radix-ui/react-visually-hidden+[...].mjs +0 -34
- package/.output/server/_libs/aria-hidden.mjs +0 -122
- package/.output/server/_libs/bail.mjs +0 -8
- package/.output/server/_libs/character-entities.mjs +0 -2130
- package/.output/server/_libs/class-variance-authority.mjs +0 -44
- package/.output/server/_libs/clsx.mjs +0 -16
- package/.output/server/_libs/comma-separated-tokens.mjs +0 -10
- package/.output/server/_libs/decode-named-character-reference+[...].mjs +0 -8
- package/.output/server/_libs/dequal.mjs +0 -27
- package/.output/server/_libs/detect-node-es.mjs +0 -1
- package/.output/server/_libs/devlop.mjs +0 -8
- package/.output/server/_libs/diff.mjs +0 -320
- package/.output/server/_libs/estree-util-is-identifier-name.mjs +0 -11
- package/.output/server/_libs/floating-ui__core.mjs +0 -725
- package/.output/server/_libs/floating-ui__dom.mjs +0 -622
- package/.output/server/_libs/floating-ui__react-dom.mjs +0 -292
- package/.output/server/_libs/floating-ui__utils.mjs +0 -320
- package/.output/server/_libs/get-nonce.mjs +0 -9
- package/.output/server/_libs/hast-util-to-jsx-runtime.mjs +0 -388
- package/.output/server/_libs/hast-util-whitespace.mjs +0 -10
- package/.output/server/_libs/html-url-attributes.mjs +0 -26
- package/.output/server/_libs/inline-style-parser.mjs +0 -142
- package/.output/server/_libs/is-plain-obj.mjs +0 -10
- package/.output/server/_libs/lucide-react.mjs +0 -1027
- package/.output/server/_libs/mdast-util-from-markdown.mjs +0 -717
- package/.output/server/_libs/mdast-util-to-hast.mjs +0 -710
- package/.output/server/_libs/mdast-util-to-string.mjs +0 -38
- package/.output/server/_libs/micromark-core-commonmark.mjs +0 -2259
- package/.output/server/_libs/micromark-factory-destination.mjs +0 -94
- package/.output/server/_libs/micromark-factory-label.mjs +0 -63
- package/.output/server/_libs/micromark-factory-space.mjs +0 -24
- package/.output/server/_libs/micromark-factory-title.mjs +0 -65
- package/.output/server/_libs/micromark-factory-whitespace.mjs +0 -22
- package/.output/server/_libs/micromark-util-character.mjs +0 -44
- package/.output/server/_libs/micromark-util-chunked.mjs +0 -36
- package/.output/server/_libs/micromark-util-classify-character+[...].mjs +0 -12
- package/.output/server/_libs/micromark-util-combine-extensions+[...].mjs +0 -41
- package/.output/server/_libs/micromark-util-decode-numeric-character-reference+[...].mjs +0 -19
- package/.output/server/_libs/micromark-util-decode-string.mjs +0 -21
- package/.output/server/_libs/micromark-util-encode.mjs +0 -1
- package/.output/server/_libs/micromark-util-html-tag-name.mjs +0 -69
- package/.output/server/_libs/micromark-util-normalize-identifier+[...].mjs +0 -6
- package/.output/server/_libs/micromark-util-resolve-all.mjs +0 -15
- package/.output/server/_libs/micromark-util-sanitize-uri.mjs +0 -41
- package/.output/server/_libs/micromark-util-subtokenize.mjs +0 -346
- package/.output/server/_libs/micromark.mjs +0 -906
- package/.output/server/_libs/property-information.mjs +0 -1209
- package/.output/server/_libs/radix-ui.mjs +0 -1
- package/.output/server/_libs/radix-ui__number.mjs +0 -6
- package/.output/server/_libs/radix-ui__primitive.mjs +0 -11
- package/.output/server/_libs/radix-ui__react-accordion.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-alert-dialog.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-arrow.mjs +0 -23
- package/.output/server/_libs/radix-ui__react-aspect-ratio.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-avatar.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-checkbox.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-collapsible.mjs +0 -144
- package/.output/server/_libs/radix-ui__react-collection.mjs +0 -69
- package/.output/server/_libs/radix-ui__react-compose-refs.mjs +0 -38
- package/.output/server/_libs/radix-ui__react-context-menu.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-context.mjs +0 -64
- package/.output/server/_libs/radix-ui__react-dialog.mjs +0 -280
- package/.output/server/_libs/radix-ui__react-direction.mjs +0 -9
- package/.output/server/_libs/radix-ui__react-dropdown-menu.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-focus-guards.mjs +0 -39
- package/.output/server/_libs/radix-ui__react-focus-scope.mjs +0 -210
- package/.output/server/_libs/radix-ui__react-form.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-hover-card.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-id.mjs +0 -14
- package/.output/server/_libs/radix-ui__react-label.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-menu.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-menubar.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-popover.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-popper.mjs +0 -340
- package/.output/server/_libs/radix-ui__react-portal.mjs +0 -16
- package/.output/server/_libs/radix-ui__react-presence.mjs +0 -173
- package/.output/server/_libs/radix-ui__react-primitive.mjs +0 -42
- package/.output/server/_libs/radix-ui__react-progress.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-radio-group.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-roving-focus.mjs +0 -235
- package/.output/server/_libs/radix-ui__react-scroll-area.mjs +0 -731
- package/.output/server/_libs/radix-ui__react-select.mjs +0 -1207
- package/.output/server/_libs/radix-ui__react-separator.mjs +0 -28
- package/.output/server/_libs/radix-ui__react-slider.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-slot.mjs +0 -132
- package/.output/server/_libs/radix-ui__react-switch.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-tabs.mjs +0 -194
- package/.output/server/_libs/radix-ui__react-toast.mjs +0 -2
- package/.output/server/_libs/radix-ui__react-toggle-group.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-toggle.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-toolbar.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +0 -498
- package/.output/server/_libs/radix-ui__react-use-previous.mjs +0 -14
- package/.output/server/_libs/radix-ui__react-use-size.mjs +0 -39
- package/.output/server/_libs/react-markdown.mjs +0 -235
- package/.output/server/_libs/react-remove-scroll-bar.mjs +0 -82
- package/.output/server/_libs/react-remove-scroll.mjs +0 -328
- package/.output/server/_libs/react-style-singleton.mjs +0 -69
- package/.output/server/_libs/remark-parse.mjs +0 -19
- package/.output/server/_libs/remark-rehype.mjs +0 -21
- package/.output/server/_libs/space-separated-tokens.mjs +0 -6
- package/.output/server/_libs/style-to-js.mjs +0 -72
- package/.output/server/_libs/style-to-object.mjs +0 -38
- package/.output/server/_libs/swr.mjs +0 -947
- package/.output/server/_libs/tailwind-merge.mjs +0 -3255
- package/.output/server/_libs/tanstack__react-virtual.mjs +0 -130
- package/.output/server/_libs/tanstack__virtual-core.mjs +0 -1319
- package/.output/server/_libs/three.mjs +0 -26016
- package/.output/server/_libs/trim-lines.mjs +0 -41
- package/.output/server/_libs/trough.mjs +0 -85
- package/.output/server/_libs/tslib.mjs +0 -1
- package/.output/server/_libs/ungap__structured-clone.mjs +0 -212
- package/.output/server/_libs/unified.mjs +0 -661
- package/.output/server/_libs/unist-util-is.mjs +0 -100
- package/.output/server/_libs/unist-util-position.mjs +0 -27
- package/.output/server/_libs/unist-util-stringify-position.mjs +0 -27
- package/.output/server/_libs/unist-util-visit-parents.mjs +0 -82
- package/.output/server/_libs/unist-util-visit.mjs +0 -24
- package/.output/server/_libs/use-callback-ref.mjs +0 -66
- package/.output/server/_libs/use-sidecar.mjs +0 -106
- package/.output/server/_libs/vfile-message.mjs +0 -138
- package/.output/server/_libs/vfile.mjs +0 -467
- package/.output/server/_sessionId-E_Dmopc-.mjs +0 -144
- package/.output/server/_sessionId-U54BAqdp.mjs +0 -82
- package/.output/server/_ssr/CompareDrawer-CksatPed.mjs +0 -1058
- package/.output/server/_ssr/InspectorPet-DNc4GQ7z.mjs +0 -936
- package/.output/server/_ssr/ProxyViewerContainer-B02Ey0p_.mjs +0 -17607
- package/.output/server/_ssr/ReplayDialog-DdMvHJF1.mjs +0 -723
- package/.output/server/_ssr/RequestAnatomy--vh2Z8__.mjs +0 -835
- package/.output/server/_ssr/ResponseView-Dhxc-cKC.mjs +0 -755
- package/.output/server/_ssr/StreamingChunkSequence-BG0EQmaD.mjs +0 -272
- package/.output/server/_ssr/index-D0At9nfd.mjs +0 -82
- package/.output/server/_ssr/index-lcfulIXa.mjs +0 -133
- package/.output/server/_ssr/json-viewer-My1J1_5R.mjs +0 -481
- package/.output/server/_ssr/start-HYkvq4Ni.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-B2chR8ef.mjs +0 -4
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -9
- package/src/routes/__root.tsx +0 -170
- /package/.output/{public → ui}/assets/agent-inspector-58K1_MsC.ico +0 -0
- /package/.output/{public → ui}/assets/alibaba-TTwafVwX.svg +0 -0
- /package/.output/{public → ui}/assets/minimax-BPMzvuL-.jpeg +0 -0
- /package/.output/{public → ui}/assets/qwen-mMn3f5ul.webp +0 -0
- /package/.output/{public → ui}/assets/zhipuai-BPNAnxo-.svg +0 -0
- /package/src/{routes → backend/routes}/livez.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as Lt,r as Je,j as Ze}from"./index-C6qZwYlR.js";function wr(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Sr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Er=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Cr={};function Wn(e,n){return(Cr.jsx?Er:Sr).test(e)}const Ir=/[ \t\n\f\r]/g;function Tr(e){return typeof e=="object"?e.type==="text"?Yn(e.value):!1:Yn(e)}function Yn(e){return e.replace(Ir,"")===""}class je{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}je.prototype.normal={};je.prototype.property={};je.prototype.space=void 0;function vt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new je(t,r,n)}function mn(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Pr=0;const D=ke(),W=ke(),dn=ke(),k=ke(),q=ke(),Ie=ke(),ee=ke();function ke(){return 2**++Pr}const gn=Object.freeze(Object.defineProperty({__proto__:null,boolean:D,booleanish:W,commaOrSpaceSeparated:ee,commaSeparated:Ie,number:k,overloadedBoolean:dn,spaceSeparated:q},Symbol.toStringTag,{value:"Module"})),en=Object.keys(gn);class Cn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),Xn(this,"space",i),typeof r=="number")for(;++l<en.length;){const o=en[l];Xn(this,en[l],(r&gn[o])===gn[o])}}}Cn.prototype.defined=!0;function Xn(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Cn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[mn(r)]=r,t[mn(l.attribute)]=r}return new je(n,t,e.space)}const Dt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:q,ariaCurrent:null,ariaDescribedBy:q,ariaDetails:null,ariaDisabled:W,ariaDropEffect:q,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:q,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:q,ariaLevel:k,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:q,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:q,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:W,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Ot(e,n){return n in e?e[n]:n}function _t(e,n){return Ot(e,n.toLowerCase())}const Ar=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:q,accessKey:q,action:null,allow:null,allowFullScreen:D,allowPaymentRequest:D,allowUserMedia:D,alt:null,as:null,async:D,autoCapitalize:null,autoComplete:q,autoFocus:D,autoPlay:D,blocking:q,capture:null,charSet:null,checked:D,cite:null,className:q,cols:k,colSpan:null,content:null,contentEditable:W,controls:D,controlsList:q,coords:k|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:D,defer:D,dir:null,dirName:null,disabled:D,download:dn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:D,formTarget:null,headers:q,height:k,hidden:dn,high:k,href:null,hrefLang:null,htmlFor:q,httpEquiv:q,id:null,imageSizes:null,imageSrcSet:null,inert:D,inputMode:null,integrity:null,is:null,isMap:D,itemId:null,itemProp:q,itemRef:q,itemScope:D,itemType:q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:D,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:D,muted:D,name:null,nonce:null,noModule:D,noValidate:D,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:D,optimum:k,pattern:null,ping:q,placeholder:null,playsInline:D,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:D,referrerPolicy:null,rel:q,required:D,reversed:D,rows:k,rowSpan:k,sandbox:q,scope:null,scoped:D,seamless:D,selected:D,shadowRootClonable:D,shadowRootDelegatesFocus:D,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:D,useMap:null,value:W,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:q,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:D,declare:D,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:D,noHref:D,noShade:D,noWrap:D,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:D,disableRemotePlayback:D,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:_t}),zr=Pe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ee,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:D,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:ee,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ee,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ee,rev:ee,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ee,requiredFeatures:ee,requiredFonts:ee,requiredFormats:ee,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:ee,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ee,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ee,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ot}),Nt=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ft=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_t}),Rt=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Lr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vr=/[A-Z]/g,Qn=/-[a-z]/g,Dr=/^data[-\w.:]+$/i;function Or(e,n){const t=mn(n);let r=n,i=J;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Dr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Qn,Nr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Qn.test(l)){let o=l.replace(vr,_r);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Cn}return new i(r,n)}function _r(e){return"-"+e.toLowerCase()}function Nr(e){return e.charAt(1).toUpperCase()}const Fr=vt([Dt,Ar,Nt,Ft,Rt],"html"),In=vt([Dt,zr,Nt,Ft,Rt],"svg");function Rr(e){return e.join(" ").trim()}var Ee={},nn,Kn;function Mr(){if(Kn)return nn;Kn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,u=/^\s+|\s+$/g,c=`
|
|
1
|
+
import{W as Lt,r as Je,j as Ze}from"./index-DHpwr08Z.js";function wr(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Sr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Er=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Cr={};function Wn(e,n){return(Cr.jsx?Er:Sr).test(e)}const Ir=/[ \t\n\f\r]/g;function Tr(e){return typeof e=="object"?e.type==="text"?Yn(e.value):!1:Yn(e)}function Yn(e){return e.replace(Ir,"")===""}class je{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}je.prototype.normal={};je.prototype.property={};je.prototype.space=void 0;function vt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new je(t,r,n)}function mn(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Pr=0;const D=ke(),W=ke(),dn=ke(),k=ke(),q=ke(),Ie=ke(),ee=ke();function ke(){return 2**++Pr}const gn=Object.freeze(Object.defineProperty({__proto__:null,boolean:D,booleanish:W,commaOrSpaceSeparated:ee,commaSeparated:Ie,number:k,overloadedBoolean:dn,spaceSeparated:q},Symbol.toStringTag,{value:"Module"})),en=Object.keys(gn);class Cn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),Xn(this,"space",i),typeof r=="number")for(;++l<en.length;){const o=en[l];Xn(this,en[l],(r&gn[o])===gn[o])}}}Cn.prototype.defined=!0;function Xn(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Cn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[mn(r)]=r,t[mn(l.attribute)]=r}return new je(n,t,e.space)}const Dt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:q,ariaCurrent:null,ariaDescribedBy:q,ariaDetails:null,ariaDisabled:W,ariaDropEffect:q,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:q,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:q,ariaLevel:k,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:q,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:q,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:W,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Ot(e,n){return n in e?e[n]:n}function _t(e,n){return Ot(e,n.toLowerCase())}const Ar=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ie,acceptCharset:q,accessKey:q,action:null,allow:null,allowFullScreen:D,allowPaymentRequest:D,allowUserMedia:D,alt:null,as:null,async:D,autoCapitalize:null,autoComplete:q,autoFocus:D,autoPlay:D,blocking:q,capture:null,charSet:null,checked:D,cite:null,className:q,cols:k,colSpan:null,content:null,contentEditable:W,controls:D,controlsList:q,coords:k|Ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:D,defer:D,dir:null,dirName:null,disabled:D,download:dn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:D,formTarget:null,headers:q,height:k,hidden:dn,high:k,href:null,hrefLang:null,htmlFor:q,httpEquiv:q,id:null,imageSizes:null,imageSrcSet:null,inert:D,inputMode:null,integrity:null,is:null,isMap:D,itemId:null,itemProp:q,itemRef:q,itemScope:D,itemType:q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:D,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:D,muted:D,name:null,nonce:null,noModule:D,noValidate:D,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:D,optimum:k,pattern:null,ping:q,placeholder:null,playsInline:D,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:D,referrerPolicy:null,rel:q,required:D,reversed:D,rows:k,rowSpan:k,sandbox:q,scope:null,scoped:D,seamless:D,selected:D,shadowRootClonable:D,shadowRootDelegatesFocus:D,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:D,useMap:null,value:W,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:q,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:D,declare:D,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:D,noHref:D,noShade:D,noWrap:D,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:D,disableRemotePlayback:D,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:_t}),zr=Pe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ee,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:D,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ie,g2:Ie,glyphName:Ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:ee,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ee,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ee,rev:ee,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ee,requiredFeatures:ee,requiredFonts:ee,requiredFormats:ee,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:ee,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ee,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ee,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ot}),Nt=Pe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Ft=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_t}),Rt=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Lr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vr=/[A-Z]/g,Qn=/-[a-z]/g,Dr=/^data[-\w.:]+$/i;function Or(e,n){const t=mn(n);let r=n,i=J;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Dr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Qn,Nr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Qn.test(l)){let o=l.replace(vr,_r);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Cn}return new i(r,n)}function _r(e){return"-"+e.toLowerCase()}function Nr(e){return e.charAt(1).toUpperCase()}const Fr=vt([Dt,Ar,Nt,Ft,Rt],"html"),In=vt([Dt,zr,Nt,Ft,Rt],"svg");function Rr(e){return e.join(" ").trim()}var Ee={},nn,Kn;function Mr(){if(Kn)return nn;Kn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,u=/^\s+|\s+$/g,c=`
|
|
2
2
|
`,a="/",s="*",f="",d="comment",p="declaration";function w(I,x){if(typeof I!="string")throw new TypeError("First argument must be a string");if(!I)return[];x=x||{};var L=1,C=1;function B(A){var S=A.match(n);S&&(L+=S.length);var M=A.lastIndexOf(c);C=~M?A.length-M:C+A.length}function H(){var A={line:L,column:C};return function(S){return S.position=new y(A),F(),S}}function y(A){this.start=A,this.end={line:L,column:C},this.source=x.source}y.prototype.content=I;function _(A){var S=new Error(x.source+":"+L+":"+C+": "+A);if(S.reason=A,S.filename=x.source,S.line=L,S.column=C,S.source=I,!x.silent)throw S}function U(A){var S=A.exec(I);if(S){var M=S[0];return B(M),I=I.slice(M.length),S}}function F(){U(t)}function R(A){var S;for(A=A||[];S=P();)S!==!1&&A.push(S);return A}function P(){var A=H();if(!(a!=I.charAt(0)||s!=I.charAt(1))){for(var S=2;f!=I.charAt(S)&&(s!=I.charAt(S)||a!=I.charAt(S+1));)++S;if(S+=2,f===I.charAt(S-1))return _("End of comment missing");var M=I.slice(2,S-2);return C+=2,B(M),I=I.slice(S),C+=2,A({type:d,comment:M})}}function T(){var A=H(),S=U(r);if(S){if(P(),!U(i))return _("property missing ':'");var M=U(l),Y=A({type:p,property:E(S[0].replace(e,f)),value:M?E(M[0].replace(e,f)):f});return U(o),Y}}function V(){var A=[];R(A);for(var S;S=T();)S!==!1&&(A.push(S),R(A));return A}return F(),V()}function E(I){return I?I.replace(u,f):f}return nn=w,nn}var Gn;function Br(){if(Gn)return Ee;Gn=1;var e=Ee&&Ee.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=t;const n=e(Mr());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),u=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:a,value:s}=c;u?i(a,s,c):s&&(l=l||{},l[a]=s)}),l}return Ee}var De={},Jn;function jr(){if(Jn)return De;Jn=1,Object.defineProperty(De,"__esModule",{value:!0}),De.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(a){return!a||t.test(a)||e.test(a)},o=function(a,s){return s.toUpperCase()},u=function(a,s){return"".concat(s,"-")},c=function(a,s){return s===void 0&&(s={}),l(a)?a:(a=a.toLowerCase(),s.reactCompat?a=a.replace(i,u):a=a.replace(r,u),a.replace(n,o))};return De.camelCase=c,De}var Oe,Zn;function Hr(){if(Zn)return Oe;Zn=1;var e=Oe&&Oe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Br()),t=jr();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(u,c){u&&c&&(o[(0,t.camelCase)(u,l)]=c)}),o}return r.default=r,Oe=r,Oe}var Ur=Hr();const Vr=Lt(Ur),Mt=Bt("end"),Tn=Bt("start");function Bt(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function qr(e){const n=Tn(e),t=Mt(e);if(n&&t)return{start:n,end:t}}function Fe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?et(e.position):"start"in e||"end"in e?et(e):"line"in e||"column"in e?yn(e):""}function yn(e){return nt(e&&e.line)+":"+nt(e&&e.column)}function et(e){return yn(e&&e.start)+"-"+yn(e&&e.end)}function nt(e){return e&&typeof e=="number"?e:1}class Q extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?l.ruleId=r:(l.source=r.slice(0,c),l.ruleId=r.slice(c+1))}if(!l.place&&l.ancestors&&l.ancestors){const c=l.ancestors[l.ancestors.length-1];c&&(l.place=c.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Fe(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="";Q.prototype.name="";Q.prototype.reason="";Q.prototype.message="";Q.prototype.stack="";Q.prototype.column=void 0;Q.prototype.line=void 0;Q.prototype.ancestors=void 0;Q.prototype.cause=void 0;Q.prototype.fatal=void 0;Q.prototype.place=void 0;Q.prototype.ruleId=void 0;Q.prototype.source=void 0;const Pn={}.hasOwnProperty,$r=new Map,Wr=/[A-Z]/g,Yr=new Set(["table","tbody","thead","tfoot","tr"]),Xr=new Set(["td","th"]),jt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Qr(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ri(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ti(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?In:Fr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Ht(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Ht(e,n,t){if(n.type==="element")return Kr(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Gr(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Zr(e,n,t);if(n.type==="mdxjsEsm")return Jr(e,n);if(n.type==="root")return ei(e,n,t);if(n.type==="text")return ni(e,n)}function Kr(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=Vt(e,n.tagName,!1),o=ii(e,n);let u=zn(e,n);return Yr.has(n.tagName)&&(u=u.filter(function(c){return typeof c=="string"?!Tr(c):!0})),Ut(e,o,l,n),An(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Gr(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Be(e,n.position)}function Jr(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Be(e,n.position)}function Zr(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=In,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Vt(e,n.name,!0),o=li(e,n),u=zn(e,n);return Ut(e,o,l,n),An(o,u),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function ei(e,n,t){const r={};return An(r,zn(e,n)),e.create(n,e.Fragment,r,t)}function ni(e,n){return n.value}function Ut(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function An(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function ti(e,n,t){return r;function r(i,l,o,u){const a=Array.isArray(o.children)?t:n;return u?a(l,o,u):a(l,o)}}function ri(e,n){return t;function t(r,i,l,o){const u=Array.isArray(l.children),c=Tn(r);return n(i,l,o,u,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function ii(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Pn.call(n.properties,i)){const l=oi(e,i,n.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&Xr.has(n.tagName)?r=u:t[o]=u}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function li(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else Be(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else Be(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function zn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:$r;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const c=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(c){const a=i.get(c)||0;o=c+"-"+a,i.set(c,a+1)}}const u=Ht(e,l,o);u!==void 0&&t.push(u)}return t}function oi(e,n,t){const r=Or(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?wr(t):Rr(t)),r.property==="style"){let i=typeof t=="object"?t:ui(e,String(t));return e.stylePropertyNameCase==="css"&&(i=ai(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Lr[r.property]||r.property:r.attribute,t]}}function ui(e,n){try{return Vr(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=jt+"#cannot-parse-style-attribute",i}}function Vt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const u=Wn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}r=o}else r=Wn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Pn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Be(e)}function Be(e,n){const t=new Q("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=jt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function ai(e){const n={};let t;for(t in e)Pn.call(e,t)&&(n[si(t)]=e[t]);return n}function si(e){let n=e.replace(Wr,ci);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function ci(e){return"-"+e.toLowerCase()}const tn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},pi={};function fi(e,n){const t=pi,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return qt(e,r,i)}function qt(e,n,t){if(hi(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return tt(e.children,n,t)}return Array.isArray(e)?tt(e,n,t):""}function tt(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=qt(e[i],n,t);return r.join("")}function hi(e){return!!(e&&typeof e=="object")}const rt=document.createElement("i");function Ln(e){const n="&"+e+";";rt.innerHTML=n;const t=rt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function se(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function te(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const it={}.hasOwnProperty;function mi(e){const n={};let t=-1;for(;++t<e.length;)di(n,e[t]);return n}function di(e,n){let t;for(t in n){const i=(it.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){it.call(i,o)||(i[o]=[]);const u=l[o];gi(i[o],Array.isArray(u)?u:u?[u]:[])}}}function gi(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}function $t(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ae=ge(/[A-Za-z]/),ne=ge(/[\dA-Za-z]/),yi=ge(/[#-'*+\--9=?A-Z^-~]/);function xn(e){return e!==null&&(e<32||e===127)}const kn=ge(/\d/),xi=ge(/[\dA-Fa-f]/),ki=ge(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function G(e){return e!==null&&(e<0||e===32)}function N(e){return e===-2||e===-1||e===32}const bi=ge(new RegExp("\\p{P}|\\p{S}","u")),wi=ge(/\s/);function ge(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ae(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&ne(e.charCodeAt(t+1))&&ne(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(t+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function $(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(c){return N(c)?(e.enter(t),u(c)):n(c)}function u(c){return N(c)&&l++<i?(e.consume(c),u):(e.exit(t),n(c))}}const Si={tokenize:Ei};function Ei(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),$(e,n,"linePrefix")}function i(u){return e.enter("paragraph"),l(u)}function l(u){const c=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=c),t=c,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return z(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),o)}}const Ci={tokenize:Ii},lt={tokenize:Ti};function Ii(e){const n=this,t=[];let r=0,i,l,o;return u;function u(C){if(r<t.length){const B=t[r];return n.containerState=B[1],e.attempt(B[0].continuation,c,a)(C)}return a(C)}function c(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();const B=n.events.length;let H=B,y;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){y=n.events[H][1].end;break}x(r);let _=B;for(;_<n.events.length;)n.events[_][1].end={...y},_++;return se(n.events,H+1,0,n.events.slice(B)),n.events.length=_,a(C)}return u(C)}function a(C){if(r===t.length){if(!i)return d(C);if(i.currentConstruct&&i.currentConstruct.concrete)return w(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(lt,s,f)(C)}function s(C){return i&&L(),x(r),d(C)}function f(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,w(C)}function d(C){return n.containerState={},e.attempt(lt,p,w)(C)}function p(C){return r++,t.push([n.currentConstruct,n.containerState]),d(C)}function w(C){if(C===null){i&&L(),x(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),E(C)}function E(C){if(C===null){I(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return z(C)?(e.consume(C),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(C),E)}function I(C,B){const H=n.sliceStream(C);if(B&&H.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(H),n.parser.lazy[C.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const _=n.events.length;let U=_,F,R;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(F){R=n.events[U][1].end;break}F=!0}for(x(r),y=_;y<n.events.length;)n.events[y][1].end={...R},y++;se(n.events,U+1,0,n.events.slice(_)),n.events.length=y}}function x(C){let B=t.length;for(;B-- >C;){const H=t[B];n.containerState=H[1],H[0].exit.call(n,e)}t.length=C}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ti(e,n,t){return $(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ot(e){if(e===null||G(e)||wi(e))return 1;if(bi(e))return 2}function vn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const bn={name:"attention",resolveAll:Pi,tokenize:Ai};function Pi(e,n){let t=-1,r,i,l,o,u,c,a,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[t][1].start};ut(f,-c),ut(d,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},u={type:c>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[t][1].start={...u.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=te(a,[["enter",e[r][1],n],["exit",e[r][1],n]])),a=te(a,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),a=te(a,vn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),a=te(a,[["exit",l,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,a=te(a,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,se(e,r-1,t-r+3,a),t=r+a.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ai(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ot(r);let l;return o;function o(c){return l=c,e.enter("attentionSequence"),u(c)}function u(c){if(c===l)return e.consume(c),u;const a=e.exit("attentionSequence"),s=ot(c),f=!s||s===2&&i||t.includes(c),d=!i||i===2&&s||t.includes(r);return a._open=!!(l===42?f:f&&(i||!d)),a._close=!!(l===42?d:d&&(s||!f)),n(c)}}function ut(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const zi={name:"autolink",tokenize:Li};function Li(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ae(p)?(e.consume(p),o):p===64?t(p):a(p)}function o(p){return p===43||p===45||p===46||ne(p)?(r=1,u(p)):a(p)}function u(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||ne(p))&&r++<32?(e.consume(p),u):(r=0,a(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||xn(p)?t(p):(e.consume(p),c)}function a(p){return p===64?(e.consume(p),s):yi(p)?(e.consume(p),a):t(p)}function s(p){return ne(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||ne(p))&&r++<63){const w=p===45?d:f;return e.consume(p),w}return t(p)}}const Qe={partial:!0,tokenize:vi};function vi(e,n,t){return r;function r(l){return N(l)?$(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||z(l)?n(l):t(l)}}const Wt={continuation:{tokenize:Oi},exit:_i,name:"blockQuote",tokenize:Di};function Di(e,n,t){const r=this;return i;function i(o){if(o===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return N(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Oi(e,n,t){const r=this;return i;function i(o){return N(o)?$(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Wt,n,t)(o)}}function _i(e){e.exit("blockQuote")}const Yt={name:"characterEscape",tokenize:Ni};function Ni(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return ki(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Xt={name:"characterReference",tokenize:Fi};function Fi(e,n,t){const r=this;let i=0,l,o;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),l=31,o=ne,s(f))}function a(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=xi,s):(e.enter("characterReferenceValue"),l=7,o=kn,s(f))}function s(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===ne&&!Ln(r.sliceSerialize(d))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),s):t(f)}}const at={partial:!0,tokenize:Mi},st={concrete:!0,name:"codeFenced",tokenize:Ri};function Ri(e,n,t){const r=this,i={partial:!0,tokenize:H};let l=0,o=0,u;return c;function c(y){return a(y)}function a(y){const _=r.events[r.events.length-1];return l=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,u=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===u?(o++,e.consume(y),s):o<3?t(y):(e.exit("codeFencedFenceSequence"),N(y)?$(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(at,E,B)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):N(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,p,"whitespace")(y)):y===96&&y===u?t(y):(e.consume(y),d)}function p(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===u?t(y):(e.consume(y),w)}function E(y){return e.attempt(i,B,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return l>0&&N(y)?$(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||z(y)?e.check(at,E,B)(y):(e.enter("codeFlowValue"),C(y))}function C(y){return y===null||z(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),C)}function B(y){return e.exit("codeFenced"),n(y)}function H(y,_,U){let F=0;return R;function R(S){return y.enter("lineEnding"),y.consume(S),y.exit("lineEnding"),P}function P(S){return y.enter("codeFencedFence"),N(S)?$(y,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):T(S)}function T(S){return S===u?(y.enter("codeFencedFenceSequence"),V(S)):U(S)}function V(S){return S===u?(F++,y.consume(S),V):F>=o?(y.exit("codeFencedFenceSequence"),N(S)?$(y,A,"whitespace")(S):A(S)):U(S)}function A(S){return S===null||z(S)?(y.exit("codeFencedFence"),_(S)):U(S)}}}function Mi(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const rn={name:"codeIndented",tokenize:ji},Bi={partial:!0,tokenize:Hi};function ji(e,n,t){const r=this;return i;function i(a){return e.enter("codeIndented"),$(e,l,"linePrefix",5)(a)}function l(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?o(a):t(a)}function o(a){return a===null?c(a):z(a)?e.attempt(Bi,o,c)(a):(e.enter("codeFlowValue"),u(a))}function u(a){return a===null||z(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),u)}function c(a){return e.exit("codeIndented"),n(a)}}function Hi(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):$(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):z(o)?i(o):t(o)}}const Ui={name:"codeText",previous:qi,resolve:Vi,tokenize:$i};function Vi(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function qi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $i(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),r++,u):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(l=e.enter("codeTextSequence"),i=0,s(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),a(f))}function a(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),a)}function s(f){return f===96?(e.consume(f),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",a(f))}}class Wi{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&_e(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),_e(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),_e(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);_e(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);_e(this.left,t.reverse())}}}function _e(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Qt(e){const n={};let t=-1,r,i,l,o,u,c,a;const s=new Wi(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,l=0,l<c.length&&c[l][1].type==="lineEndingBlank"&&(l+=2),l<c.length&&c[l][1].type==="content"))for(;++l<c.length&&c[l][1].type!=="content";)c[l][1].type==="chunkText"&&(c[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Yi(s,t)),t=n[t],a=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=s.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},u=s.slice(i,t),u.unshift(r),s.splice(i,t-i+1,u))}}return se(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!a}function Yi(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const u=o.events,c=[],a={};let s,f,d=-1,p=t,w=0,E=0;const I=[E];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(s),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++d<u.length;)u[d][0]==="exit"&&u[d-1][0]==="enter"&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(E=d+1,I.push(E),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),d=I.length;d--;){const x=u.slice(I[d],I[d+1]),L=l.pop();c.push([L,L+x.length-1]),e.splice(L,2,x)}for(c.reverse(),d=-1;++d<c.length;)a[w+c[d][0]]=w+c[d][1],w+=c[d][1]-c[d][0]-1;return a}const Xi={resolve:Ki,tokenize:Gi},Qi={partial:!0,tokenize:Ji};function Ki(e){return Qt(e),e}function Gi(e,n){let t;return r;function r(u){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?l(u):z(u)?e.check(Qi,o,l)(u):(e.consume(u),i)}function l(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function o(u){return e.consume(u),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Ji(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$(e,l,"linePrefix")}function l(o){if(o===null||z(o))return t(o);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Kt(e,n,t,r,i,l,o,u,c){const a=c||Number.POSITIVE_INFINITY;let s=0;return f;function f(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),d):x===null||x===32||x===41||xn(x)?t(x):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),E(x))}function d(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(u),d(x)):x===null||x===60||z(x)?t(x):(e.consume(x),x===92?w:p)}function w(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function E(x){return!s&&(x===null||x===41||G(x))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(x)):s<a&&x===40?(e.consume(x),s++,E):x===41?(e.consume(x),s--,E):x===null||x===32||x===40||xn(x)?t(x):(e.consume(x),x===92?I:E)}function I(x){return x===40||x===41||x===92?(e.consume(x),E):E(x)}}function Gt(e,n,t,r,i,l){const o=this;let u=0,c;return a;function a(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),s}function s(p){return u>999||p===null||p===91||p===93&&!c||p===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||z(p)||u++>999?(e.exit("chunkString"),s(p)):(e.consume(p),c||(c=!N(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),u++,f):f(p)}}function Jt(e,n,t,r,i,l){let o;return u;function u(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,c):t(d)}function c(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),a(d))}function a(d){return d===o?(e.exit(l),c(o)):d===null?t(d):z(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),$(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===o||d===null||z(d)?(e.exit("chunkString"),a(d)):(e.consume(d),d===92?f:s)}function f(d){return d===o||d===92?(e.consume(d),s):s(d)}}function Re(e,n){let t;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):N(i)?$(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Zi={name:"definition",tokenize:nl},el={partial:!0,tokenize:tl};function nl(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Gt.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):t(p)}function c(p){return G(p)?Re(e,a)(p):a(p)}function a(p){return Kt(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(el,f,f)(p)}function f(p){return N(p)?$(e,d,"whitespace")(p):d(p)}function d(p){return p===null||z(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function tl(e,n,t){return r;function r(u){return G(u)?Re(e,i)(u):t(u)}function i(u){return Jt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return N(u)?$(e,o,"whitespace")(u):o(u)}function o(u){return u===null||z(u)?n(u):t(u)}}const rl={name:"hardBreakEscape",tokenize:il};function il(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const ll={name:"headingAtx",resolve:ol,tokenize:ul};function ol(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},se(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function ul(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),o(s)}function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||G(s)?(e.exit("atxHeadingSequence"),u(s)):t(s)}function u(s){return s===35?(e.enter("atxHeadingSequence"),c(s)):s===null||z(s)?(e.exit("atxHeading"),n(s)):N(s)?$(e,u,"whitespace")(s):(e.enter("atxHeadingText"),a(s))}function c(s){return s===35?(e.consume(s),c):(e.exit("atxHeadingSequence"),u(s))}function a(s){return s===null||s===35||G(s)?(e.exit("atxHeadingText"),u(s)):(e.consume(s),a)}}const al=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ct=["pre","script","style","textarea"],sl={concrete:!0,name:"htmlFlow",resolveTo:fl,tokenize:hl},cl={partial:!0,tokenize:dl},pl={partial:!0,tokenize:ml};function fl(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function hl(e,n,t){const r=this;let i,l,o,u,c;return a;function a(m){return s(m)}function s(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,E):m===63?(e.consume(m),i=3,r.interrupt?n:h):ae(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,u=0,w):ae(m)?(e.consume(m),i=4,r.interrupt?n:h):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:h):t(m)}function w(m){const le="CDATA[";return m===le.charCodeAt(u++)?(e.consume(m),u===le.length?r.interrupt?n:T:w):t(m)}function E(m){return ae(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||G(m)){const le=m===47,ye=o.toLowerCase();return!le&&!l&&ct.includes(ye)?(i=1,r.interrupt?n(m):T(m)):al.includes(o.toLowerCase())?(i=6,le?(e.consume(m),x):r.interrupt?n(m):T(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):C(m))}return m===45||ne(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:T):t(m)}function L(m){return N(m)?(e.consume(m),L):R(m)}function C(m){return m===47?(e.consume(m),R):m===58||m===95||ae(m)?(e.consume(m),B):N(m)?(e.consume(m),C):R(m)}function B(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),B):H(m)}function H(m){return m===61?(e.consume(m),y):N(m)?(e.consume(m),H):C(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),c=m,_):N(m)?(e.consume(m),y):U(m)}function _(m){return m===c?(e.consume(m),c=null,F):m===null||z(m)?t(m):(e.consume(m),_)}function U(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||G(m)?H(m):(e.consume(m),U)}function F(m){return m===47||m===62||N(m)?C(m):t(m)}function R(m){return m===62?(e.consume(m),P):t(m)}function P(m){return m===null||z(m)?T(m):N(m)?(e.consume(m),P):t(m)}function T(m){return m===45&&i===2?(e.consume(m),M):m===60&&i===1?(e.consume(m),Y):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),h):m===93&&i===5?(e.consume(m),ce):z(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(cl,pe,V)(m)):m===null||z(m)?(e.exit("htmlFlowData"),V(m)):(e.consume(m),T)}function V(m){return e.check(pl,A,pe)(m)}function A(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),S}function S(m){return m===null||z(m)?V(m):(e.enter("htmlFlowData"),T(m))}function M(m){return m===45?(e.consume(m),h):T(m)}function Y(m){return m===47?(e.consume(m),o="",re):T(m)}function re(m){if(m===62){const le=o.toLowerCase();return ct.includes(le)?(e.consume(m),ie):T(m)}return ae(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):T(m)}function ce(m){return m===93?(e.consume(m),h):T(m)}function h(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),h):T(m)}function ie(m){return m===null||z(m)?(e.exit("htmlFlowData"),pe(m)):(e.consume(m),ie)}function pe(m){return e.exit("htmlFlow"),n(m)}}function ml(e,n,t){const r=this;return i;function i(o){return z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function dl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qe,n,t)}}const gl={name:"htmlText",tokenize:yl};function yl(e,n,t){const r=this;let i,l,o;return u;function u(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),c}function c(h){return h===33?(e.consume(h),a):h===47?(e.consume(h),H):h===63?(e.consume(h),C):ae(h)?(e.consume(h),U):t(h)}function a(h){return h===45?(e.consume(h),s):h===91?(e.consume(h),l=0,w):ae(h)?(e.consume(h),L):t(h)}function s(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),d):z(h)?(o=f,Y(h)):(e.consume(h),f)}function d(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?M(h):h===45?d(h):f(h)}function w(h){const ie="CDATA[";return h===ie.charCodeAt(l++)?(e.consume(h),l===ie.length?E:w):t(h)}function E(h){return h===null?t(h):h===93?(e.consume(h),I):z(h)?(o=E,Y(h)):(e.consume(h),E)}function I(h){return h===93?(e.consume(h),x):E(h)}function x(h){return h===62?M(h):h===93?(e.consume(h),x):E(h)}function L(h){return h===null||h===62?M(h):z(h)?(o=L,Y(h)):(e.consume(h),L)}function C(h){return h===null?t(h):h===63?(e.consume(h),B):z(h)?(o=C,Y(h)):(e.consume(h),C)}function B(h){return h===62?M(h):C(h)}function H(h){return ae(h)?(e.consume(h),y):t(h)}function y(h){return h===45||ne(h)?(e.consume(h),y):_(h)}function _(h){return z(h)?(o=_,Y(h)):N(h)?(e.consume(h),_):M(h)}function U(h){return h===45||ne(h)?(e.consume(h),U):h===47||h===62||G(h)?F(h):t(h)}function F(h){return h===47?(e.consume(h),M):h===58||h===95||ae(h)?(e.consume(h),R):z(h)?(o=F,Y(h)):N(h)?(e.consume(h),F):M(h)}function R(h){return h===45||h===46||h===58||h===95||ne(h)?(e.consume(h),R):P(h)}function P(h){return h===61?(e.consume(h),T):z(h)?(o=P,Y(h)):N(h)?(e.consume(h),P):F(h)}function T(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,V):z(h)?(o=T,Y(h)):N(h)?(e.consume(h),T):(e.consume(h),A)}function V(h){return h===i?(e.consume(h),i=void 0,S):h===null?t(h):z(h)?(o=V,Y(h)):(e.consume(h),V)}function A(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||G(h)?F(h):(e.consume(h),A)}function S(h){return h===47||h===62||G(h)?F(h):t(h)}function M(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function Y(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),re}function re(h){return N(h)?$(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):ce(h)}function ce(h){return e.enter("htmlTextData"),o(h)}}const Dn={name:"labelEnd",resolveAll:wl,resolveTo:Sl,tokenize:El},xl={tokenize:Cl},kl={tokenize:Il},bl={tokenize:Tl};function wl(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&se(e,0,e.length,t),e}function Sl(e,n){let t=e.length,r=0,i,l,o,u;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const c={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return u=[["enter",c,n],["enter",a,n]],u=te(u,e.slice(l+1,l+r+3)),u=te(u,[["enter",s,n]]),u=te(u,vn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),u=te(u,[["exit",s,n],e[o-2],e[o-1],["exit",a,n]]),u=te(u,e.slice(o+1)),u=te(u,[["exit",c,n]]),se(e,l,e.length,u),e}function El(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return u;function u(d){return l?l._inactive?f(d):(o=r.parser.defined.includes(Te(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):t(d)}function c(d){return d===40?e.attempt(xl,s,o?s:f)(d):d===91?e.attempt(kl,s,o?a:f)(d):o?s(d):f(d)}function a(d){return e.attempt(bl,s,f)(d)}function s(d){return n(d)}function f(d){return l._balanced=!0,t(d)}}function Cl(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return G(f)?Re(e,l)(f):l(f)}function l(f){return f===41?s(f):Kt(e,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return G(f)?Re(e,c)(f):s(f)}function u(f){return t(f)}function c(f){return f===34||f===39||f===40?Jt(e,a,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):s(f)}function a(f){return G(f)?Re(e,s)(f):s(f)}function s(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Il(e,n,t){const r=this;return i;function i(u){return Gt.call(r,e,l,o,"reference","referenceMarker","referenceString")(u)}function l(u){return r.parser.defined.includes(Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):t(u)}function o(u){return t(u)}}function Tl(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Pl={name:"labelStartImage",resolveAll:Dn.resolveAll,tokenize:Al};function Al(e,n,t){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),o):t(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(u):n(u)}}const zl={name:"labelStartLink",resolveAll:Dn.resolveAll,tokenize:Ll};function Ll(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const ln={name:"lineEnding",tokenize:vl};function vl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$(e,n,"linePrefix")}}const We={name:"thematicBreak",tokenize:Dl};function Dl(e,n,t){let r=0,i;return l;function l(a){return e.enter("thematicBreak"),o(a)}function o(a){return i=a,u(a)}function u(a){return a===i?(e.enter("thematicBreakSequence"),c(a)):r>=3&&(a===null||z(a))?(e.exit("thematicBreak"),n(a)):t(a)}function c(a){return a===i?(e.consume(a),r++,c):(e.exit("thematicBreakSequence"),N(a)?$(e,u,"whitespace")(a):u(a))}}const K={continuation:{tokenize:Fl},exit:Ml,name:"list",tokenize:Nl},Ol={partial:!0,tokenize:Bl},_l={partial:!0,tokenize:Rl};function Nl(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(p){const w=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:kn(p)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(We,t,a)(p):a(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return t(p)}function c(p){return kn(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),a(p)):t(p)}function a(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Qe,r.interrupt?t:s,e.attempt(Ol,d,f))}function s(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return N(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function Fl(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Qe,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,n,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!N(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_l,n,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(K,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Rl(e,n,t){const r=this;return $(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function Ml(e){e.exit(this.containerState.type)}function Bl(e,n,t){const r=this;return $(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!N(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const pt={name:"setextUnderline",resolveTo:jl,tokenize:Hl};function jl(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function Hl(e,n,t){const r=this;let i;return l;function l(a){let s=r.events.length,f;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){f=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=a,o(a)):t(a)}function o(a){return e.enter("setextHeadingLineSequence"),u(a)}function u(a){return a===i?(e.consume(a),u):(e.exit("setextHeadingLineSequence"),N(a)?$(e,c,"lineSuffix")(a):c(a))}function c(a){return a===null||z(a)?(e.exit("setextHeadingLine"),n(a)):t(a)}}const Ul={tokenize:Vl};function Vl(e){const n=this,t=e.attempt(Qe,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Xi,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const ql={resolveAll:er()},$l=Zt("string"),Wl=Zt("text");function Zt(e){return{resolveAll:er(e==="text"?Yl:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,u);return o;function o(s){return a(s)?l(s):u(s)}function u(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),c}function c(s){return a(s)?(t.exit("data"),l(s)):(t.consume(s),c)}function a(s){if(s===null)return!0;const f=i[s];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function er(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function Yl(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,u=0,c;for(;l--;){const a=i[l];if(typeof a=="string"){for(o=a.length;a.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(a===-2)c=!0,u++;else if(a!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(u=0),u){const a={type:t===e.length||c||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(t,0,["enter",a,n],["exit",a,n]),t+=2)}t++}return e}const Xl={42:K,43:K,45:K,48:K,49:K,50:K,51:K,52:K,53:K,54:K,55:K,56:K,57:K,62:Wt},Ql={91:Zi},Kl={[-2]:rn,[-1]:rn,32:rn},Gl={35:ll,42:We,45:[pt,We],60:sl,61:pt,95:We,96:st,126:st},Jl={38:Xt,92:Yt},Zl={[-5]:ln,[-4]:ln,[-3]:ln,33:Pl,38:Xt,42:bn,60:[zi,gl],91:zl,92:[rl,Yt],93:Dn,95:bn,96:Ui},eo={null:[bn,ql]},no={null:[42,95]},to={null:[]},ro=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:no,contentInitial:Ql,disable:to,document:Xl,flow:Gl,flowInitial:Kl,insideSpan:eo,string:Jl,text:Zl},Symbol.toStringTag,{value:"Module"}));function io(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],u=[];const c={attempt:_(H),check:_(y),consume:L,enter:C,exit:B,interrupt:_(y,{interrupt:!0})},a={code:null,containerState:{},defineSkip:E,events:[],now:w,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:f};let s=n.tokenize.call(a,c);return n.resolveAll&&l.push(n),a;function f(P){return o=te(o,P),I(),o[o.length-1]!==null?[]:(U(n,0),a.events=vn(l,a.events,a),a.events)}function d(P,T){return oo(p(P),T)}function p(P){return lo(o,P)}function w(){const{_bufferIndex:P,_index:T,line:V,column:A,offset:S}=r;return{_bufferIndex:P,_index:T,line:V,column:A,offset:S}}function E(P){i[P.line]=P.column,R()}function I(){let P;for(;r._index<o.length;){const T=o[r._index];if(typeof T=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<T.length;)x(T.charCodeAt(r._bufferIndex));else x(T)}}function x(P){s=s(P)}function L(P){z(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,R()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),a.previous=P}function C(P,T){const V=T||{};return V.type=P,V.start=w(),a.events.push(["enter",V,a]),u.push(V),V}function B(P){const T=u.pop();return T.end=w(),a.events.push(["exit",T,a]),T}function H(P,T){U(P,T.from)}function y(P,T){T.restore()}function _(P,T){return V;function V(A,S,M){let Y,re,ce,h;return Array.isArray(A)?pe(A):"tokenize"in A?pe([A]):ie(A);function ie(X){return ze;function ze(me){const be=me!==null&&X[me],we=me!==null&&X.null,Ue=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(we)?we:we?[we]:[]];return pe(Ue)(me)}}function pe(X){return Y=X,re=0,X.length===0?M:m(X[re])}function m(X){return ze;function ze(me){return h=F(),ce=X,X.partial||(a.currentConstruct=X),X.name&&a.parser.constructs.disable.null.includes(X.name)?ye():X.tokenize.call(T?Object.assign(Object.create(a),T):a,c,le,ye)(me)}}function le(X){return P(ce,h),S}function ye(X){return h.restore(),++re<Y.length?m(Y[re]):M}}}function U(P,T){P.resolveAll&&!l.includes(P)&&l.push(P),P.resolve&&se(a.events,T,a.events.length-T,P.resolve(a.events.slice(T),a)),P.resolveTo&&(a.events=P.resolveTo(a.events,a))}function F(){const P=w(),T=a.previous,V=a.currentConstruct,A=a.events.length,S=Array.from(u);return{from:A,restore:M};function M(){r=P,a.previous=T,a.currentConstruct=V,a.events.length=A,u=S,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function lo(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function oo(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
3
3
|
`;break}case-3:{o=`\r
|
|
4
4
|
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function uo(e){const r={constructs:mi([ro,...(e||{}).extensions||[]]),content:i(Si),defined:[],document:i(Ci),flow:i(Ul),lazy:{},string:i($l),text:i(Wl)};return r;function i(l){return o;function o(u){return io(r,l,u)}}}function ao(e){for(;!Qt(e););return e}const ft=/[\0\t\n\r]/g;function so(){let e=1,n="",t=!0,r;return i;function i(l,o,u){const c=[];let a,s,f,d,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(ft.lastIndex=f,a=ft.exec(l),d=a&&a.index!==void 0?a.index:l.length,p=l.charCodeAt(d),!a){n=l.slice(f);break}if(p===10&&f===d&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<d&&(c.push(l.slice(f,d)),e+=d-f),p){case 0:{c.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,c.push(-2);e++<s;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return u&&(r&&c.push(-5),n&&c.push(n),c.push(null)),c}}const co=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function po(e){return e.replace(co,fo)}function fo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return $t(t.slice(l?2:1),l?16:10)}return Ln(t)||e}const nr={}.hasOwnProperty;function ho(e,n,t){return typeof n!="string"&&(t=n,n=void 0),mo(t)(ao(uo(t).document().write(so()(e,n,!0))))}function mo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(qn),autolinkProtocol:F,autolinkEmail:F,atxHeading:l(Hn),blockQuote:l(we),characterEscape:F,characterReference:F,codeFenced:l(Ue),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ue,o),codeText:l(fr,o),codeTextData:F,data:F,codeFlowValue:F,definition:l(hr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(mr),hardBreakEscape:l(Un),hardBreakTrailing:l(Un),htmlFlow:l(Vn,o),htmlFlowData:F,htmlText:l(Vn,o),htmlTextData:F,image:l(dr),label:o,link:l(qn),listItem:l(gr),listItemValue:d,listOrdered:l($n,f),listUnordered:l($n),paragraph:l(yr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Hn),strong:l(xr),thematicBreak:l(br)},exit:{atxHeading:c(),atxHeadingSequence:H,autolink:c(),autolinkEmail:be,autolinkProtocol:me,blockQuote:c(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:X,characterReference:ze,codeFenced:c(I),codeFencedFence:E,codeFencedFenceInfo:p,codeFencedFenceMeta:w,codeFlowValue:R,codeIndented:c(x),codeText:c(S),codeTextData:R,data:R,definition:c(),definitionDestinationString:B,definitionLabelString:L,definitionTitleString:C,emphasis:c(),hardBreakEscape:c(T),hardBreakTrailing:c(T),htmlFlow:c(V),htmlFlowData:R,htmlText:c(A),htmlTextData:R,image:c(Y),label:ce,labelText:re,lineEnding:P,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:le,resourceDestinationString:h,resourceTitleString:ie,resource:pe,setextHeading:c(U),setextHeadingLineSequence:_,setextHeadingText:y,strong:c(),thematicBreak:c()}};tr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let b={type:"root",children:[]};const v={stack:[b],tokenStack:[],config:n,enter:u,exit:a,buffer:o,resume:s,data:t},O=[];let j=-1;for(;++j<g.length;)if(g[j][1].type==="listOrdered"||g[j][1].type==="listUnordered")if(g[j][0]==="enter")O.push(j);else{const oe=O.pop();j=i(g,oe,j)}for(j=-1;++j<g.length;){const oe=n[g[j][0]];nr.call(oe,g[j][1].type)&&oe[g[j][1].type].call(Object.assign({sliceSerialize:g[j][2].sliceSerialize},v),g[j][1])}if(v.tokenStack.length>0){const oe=v.tokenStack[v.tokenStack.length-1];(oe[1]||ht).call(v,void 0,oe[0])}for(b.position={start:de(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:de(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},j=-1;++j<n.transforms.length;)b=n.transforms[j](b)||b;return b}function i(g,b,v){let O=b-1,j=-1,oe=!1,xe,fe,Le,ve;for(;++O<=v;){const Z=g[O];switch(Z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Z[0]==="enter"?j++:j--,ve=void 0;break}case"lineEndingBlank":{Z[0]==="enter"&&(xe&&!ve&&!j&&!Le&&(Le=O),ve=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ve=void 0}if(!j&&Z[0]==="enter"&&Z[1].type==="listItemPrefix"||j===-1&&Z[0]==="exit"&&(Z[1].type==="listUnordered"||Z[1].type==="listOrdered")){if(xe){let Se=O;for(fe=void 0;Se--;){const he=g[Se];if(he[1].type==="lineEnding"||he[1].type==="lineEndingBlank"){if(he[0]==="exit")continue;fe&&(g[fe][1].type="lineEndingBlank",oe=!0),he[1].type="lineEnding",fe=Se}else if(!(he[1].type==="linePrefix"||he[1].type==="blockQuotePrefix"||he[1].type==="blockQuotePrefixWhitespace"||he[1].type==="blockQuoteMarker"||he[1].type==="listItemIndent"))break}Le&&(!fe||Le<fe)&&(xe._spread=!0),xe.end=Object.assign({},fe?g[fe][1].start:Z[1].end),g.splice(fe||O,0,["exit",xe,Z[2]]),O++,v++}if(Z[1].type==="listItemPrefix"){const Se={type:"listItem",_spread:!1,start:Object.assign({},Z[1].start),end:void 0};xe=Se,g.splice(O,0,["enter",Se,Z[2]]),O++,v++,Le=void 0,ve=!0}}}return g[b][1]._spread=oe,v}function l(g,b){return v;function v(O){u.call(this,g(O),O),b&&b.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function u(g,b,v){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([b,v||void 0]),g.position={start:de(b.start),end:void 0}}function c(g){return b;function b(v){g&&g.call(this,v),a.call(this,v)}}function a(g,b){const v=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==g.type&&(b?b.call(this,g,O[0]):(O[1]||ht).call(this,g,O[0]));else throw new Error("Cannot close `"+g.type+"` ("+Fe({start:g.start,end:g.end})+"): it’s not open");v.position.end=de(g.end)}function s(){return fi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(g){if(this.data.expectingFirstListItemValue){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),b=this.stack[this.stack.length-1];b.lang=g}function w(){const g=this.resume(),b=this.stack[this.stack.length-1];b.meta=g}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/(\r?\n|\r)$/g,"")}function L(g){const b=this.resume(),v=this.stack[this.stack.length-1];v.label=b,v.identifier=Te(this.sliceSerialize(g)).toLowerCase()}function C(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function B(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function H(g){const b=this.stack[this.stack.length-1];if(!b.depth){const v=this.sliceSerialize(g).length;b.depth=v}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function _(g){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function F(g){const v=this.stack[this.stack.length-1].children;let O=v[v.length-1];(!O||O.type!=="text")&&(O=kr(),O.position={start:de(g.start),end:void 0},v.push(O)),this.stack.push(O)}function R(g){const b=this.stack.pop();b.value+=this.sliceSerialize(g),b.position.end=de(g.end)}function P(g){const b=this.stack[this.stack.length-1];if(this.data.atHardBreak){const v=b.children[b.children.length-1];v.position.end=de(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(b.type)&&(F.call(this,g),R.call(this,g))}function T(){this.data.atHardBreak=!0}function V(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function A(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function S(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function M(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function Y(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const b=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function re(g){const b=this.sliceSerialize(g),v=this.stack[this.stack.length-2];v.label=po(b),v.identifier=Te(b).toLowerCase()}function ce(){const g=this.stack[this.stack.length-1],b=this.resume(),v=this.stack[this.stack.length-1];if(this.data.inReference=!0,v.type==="link"){const O=g.children;v.children=O}else v.alt=b}function h(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function ie(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function pe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(g){const b=this.resume(),v=this.stack[this.stack.length-1];v.label=b,v.identifier=Te(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function ye(g){this.data.characterReferenceType=g.type}function X(g){const b=this.sliceSerialize(g),v=this.data.characterReferenceType;let O;v?(O=$t(b,v==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=Ln(b);const j=this.stack[this.stack.length-1];j.value+=O}function ze(g){const b=this.stack.pop();b.position.end=de(g.end)}function me(g){R.call(this,g);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(g)}function be(g){R.call(this,g);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(g)}function we(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function fr(){return{type:"inlineCode",value:""}}function hr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function mr(){return{type:"emphasis",children:[]}}function Hn(){return{type:"heading",depth:0,children:[]}}function Un(){return{type:"break"}}function Vn(){return{type:"html",value:""}}function dr(){return{type:"image",title:null,url:"",alt:null}}function qn(){return{type:"link",title:null,url:"",children:[]}}function $n(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function gr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function yr(){return{type:"paragraph",children:[]}}function xr(){return{type:"strong",children:[]}}function kr(){return{type:"text",value:""}}function br(){return{type:"thematicBreak"}}}function de(e){return{line:e.line,column:e.column,offset:e.offset}}function tr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?tr(e,r):go(e,r)}}function go(e,n){let t;for(t in n)if(nr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ht(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Fe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is still open")}function yo(e){const n=this;n.parser=t;function t(r){return ho(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function xo(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function ko(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,j as e,x as m,E as R}from"./index-DHpwr08Z.js";import{q as D,a2 as q,f as V,h as z,F as G,e as U,s as W,t as H,v as Q,a3 as X}from"./ProxyViewerContainer-D7Sq0ctc.js";function M(s){if(s===null)return"null";if(Array.isArray(s))return"array";switch(typeof s){case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"object":return"object";case"bigint":case"symbol":case"undefined":case"function":return"object"}}function g(s){return s!==null&&(Array.isArray(s)||typeof s=="object")}function $(s){return Array.isArray(s)?s.map((t,n)=>[String(n),t]):typeof s=="object"&&s!==null?Object.entries(s):[]}const J=120;function O({text:s}){return e.jsx("span",{className:"whitespace-pre-wrap break-words",children:s})}function Z({text:s}){const[t,n]=i.useState(!1);return s.length>J?e.jsxs("span",{className:"text-emerald-400 break-all",children:['"',t?e.jsx("span",{className:"cursor-pointer",onClick:r=>{r.stopPropagation(),n(!1)},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.stopPropagation(),n(!1))},role:"button",tabIndex:0,children:e.jsx(O,{text:s})}):e.jsxs(W,{delayDuration:300,children:[e.jsxs(H,{onClick:r=>{r.stopPropagation(),n(!0)},className:"text-left cursor-pointer",children:[e.jsx("span",{children:s.slice(0,J)}),e.jsx("span",{className:"text-emerald-400/50",children:"..."})]}),e.jsxs(Q,{side:"bottom",className:"max-w-md text-xs p-2 break-words whitespace-pre-wrap",children:[s.slice(0,500),s.length>500?"...":""]})]}),'"']}):e.jsxs("span",{className:"text-emerald-400 break-all",children:['"',e.jsx(O,{text:s}),'"']})}function B({value:s}){if(s===null)return e.jsx("span",{className:"text-rose-400 italic",children:"null"});switch(typeof s){case"string":return e.jsx(Z,{text:s});case"number":return e.jsx("span",{className:"text-amber-400",children:s});case"boolean":return e.jsx("span",{className:"text-blue-400",children:s?"true":"false"});case"object":case"bigint":case"symbol":case"undefined":case"function":return e.jsx("span",{className:"text-muted-foreground",children:JSON.stringify(s)})}}function A({value:s}){const[t,n]=i.useState(!1);function a(r){r.stopPropagation(),R(JSON.stringify(s,null,2)).then(d=>{d&&(n(!0),setTimeout(()=>{n(!1)},2e3))})}return e.jsx("button",{type:"button",onClick:a,className:"inline-flex items-center gap-1 text-[10px] text-muted-foreground hover:text-foreground transition-colors","aria-label":t?"Copied JSON":"Copy JSON",title:"Copy JSON",children:t?e.jsx(V,{className:"size-3 text-green-500"}):e.jsx(z,{className:"size-3"})})}function ee({value:s}){const[t,n]=i.useState(!1);function a(r){r.stopPropagation(),R(JSON.stringify(s,null,2)).then(d=>{d&&(n(!0),setTimeout(()=>{n(!1)},2e3))})}return e.jsx("button",{type:"button",onClick:a,className:"opacity-0 group-hover/row:opacity-100 hover:bg-muted p-0.5 rounded transition-opacity shrink-0","aria-label":t?"Copied JSON value":"Copy JSON value",title:"Copy to clipboard",children:t?e.jsx(V,{className:"size-3 text-green-500"}):e.jsx(z,{className:"size-3 text-muted-foreground"})})}function se({onClick:s}){return e.jsx("button",{type:"button",onClick:s,className:"opacity-0 group-hover/row:opacity-100 hover:bg-muted p-0.5 rounded transition-opacity shrink-0",title:"Expand all descendants",children:e.jsx(X,{className:"size-3.5 text-muted-foreground"})})}const ne=i.memo(function s({name:t,value:n,level:a,defaultExpandDepth:r,isArrayItem:d,path:l,expandTargetPath:u,anatomyPaths:f}){const h=i.useMemo(()=>u===null?!1:l===""?u.length>0:u===l||u.startsWith(`${l}/`),[u,l]),C=a<r||h&&g(n),[p,j]=i.useState(C);i.useEffect(()=>{h&&g(n)&&!p&&j(!0)},[u]);const[y,x]=i.useState(0),[N,w]=i.useState(null),c=g(n),v=N===Number.POSITIVE_INFINITY,b=i.useMemo(()=>$(n),[n]),S=i.useMemo(()=>b.some(([,o])=>g(o)),[b]),k=M(n),F=k==="array"?"[":"{",E=k==="array"?"]":"}",K=f!==null&&f.has(l);function T(){j(!0),w(Number.POSITIVE_INFINITY),x(o=>o+1)}function P(){j(!1),w(0),x(o=>o+1)}function I(){v?P():j(!p)}function _(o){o.stopPropagation(),T()}const L=N??r;return e.jsxs("div",{className:m(a>0&&"border-l border-border/50 ml-2"),children:[e.jsxs("div",{className:m("flex items-start gap-1 py-0.5 px-1 -ml-1 rounded-sm group/row",c&&"cursor-pointer hover:bg-muted/50"),"data-anatomy-path":K?l:void 0,onClick:c?I:void 0,onKeyDown:c?o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),I())}:void 0,onDoubleClick:c&&S?()=>T():void 0,role:c?"button":void 0,tabIndex:c?0:void 0,children:[c?e.jsx("span",{className:"w-4 h-5 flex items-center justify-center shrink-0",children:p?e.jsx(G,{className:"size-3 text-muted-foreground"}):e.jsx(U,{className:"size-3 text-muted-foreground"})}):e.jsx("span",{className:"w-4 shrink-0"}),e.jsx("span",{className:m("shrink-0",d?"text-muted-foreground":"text-cyan-400"),children:d?t:`"${t}"`}),e.jsx("span",{className:"text-muted-foreground shrink-0",children:c?"":":"}),c?e.jsxs("span",{className:"text-muted-foreground",children:[F,e.jsxs("span",{className:"text-muted-foreground/60 text-xs",children:[" ",b.length," ",b.length===1?"item":"items"," ",E]})]}):e.jsx("span",{className:"min-w-0",children:e.jsx(B,{value:n})}),c&&S&&!v&&e.jsx(se,{onClick:_}),e.jsx(ee,{value:n})]}),c&&p&&e.jsxs("div",{className:"pl-4",children:[b.map(([o,Y])=>e.jsx(s,{name:o,value:Y,level:a+1,defaultExpandDepth:L,isArrayItem:k==="array",path:l===""?`/${o}`:`${l}/${o}`,expandTargetPath:u,anatomyPaths:f},o)),e.jsx("div",{className:"text-muted-foreground py-0.5 px-1",children:E})]},y)]})});function te({data:s,defaultExpandDepth:t=0,className:n,showCopy:a=!1,bulkDepth:r,bulkRevision:d,anatomyPaths:l=null,expandToPath:u=null}){const f=g(s),h=i.useMemo(()=>$(s),[s]),C=r??t,p=d??0;if(!f)return e.jsx(D,{children:e.jsx("div",{className:m("font-mono text-xs leading-relaxed",n),children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(B,{value:s}),a&&e.jsx(A,{value:s})]})})});const y=M(s)==="array";return e.jsx(D,{children:e.jsxs("div",{className:m("font-mono text-xs leading-relaxed",n),children:[a&&e.jsx("div",{className:"mb-2 flex items-center justify-end gap-2",children:e.jsx(A,{value:s})}),h.length===0&&e.jsxs("div",{className:"rounded-md border border-white/10 bg-black/20 px-3 py-2 text-muted-foreground",children:[e.jsx("span",{className:"text-cyan-300",children:y?"[]":"{}"}),e.jsx("span",{className:"ml-2 text-[10px] uppercase",children:"0 items"})]}),e.jsx("div",{children:h.map(([x,N])=>e.jsx(ne,{name:x,value:N,level:0,defaultExpandDepth:C,isArrayItem:y,path:`/${x}`,expandTargetPath:u,anatomyPaths:l},x))},p)]})})}const ae=i.memo(function({text:t,defaultExpandDepth:n=0,className:a,bulkDepth:r,bulkRevision:d}){const l=i.useMemo(()=>q(t),[t]);return l.kind==="json"?e.jsx(te,{data:l.data,defaultExpandDepth:n,className:a,bulkDepth:r,bulkRevision:d}):e.jsx("pre",{className:m("font-mono text-xs whitespace-pre-wrap break-words",a),children:t})});export{te as JsonViewer,ae as JsonViewerFromString};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{V as vt,W as Bt}from"./index-DHpwr08Z.js";function Rt(ct,wt){for(var _=0;_<wt.length;_++){const N=wt[_];if(typeof N!="string"&&!Array.isArray(N)){for(const w in N)if(w!=="default"&&!(w in ct)){const u=Object.getOwnPropertyDescriptor(N,w);u&&Object.defineProperty(ct,w,u.get?u:{enumerable:!0,get:()=>N[w]})}}}return Object.freeze(Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"}))}function yt(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xt={exports:{}};var Ct;function Tt(){return Ct||(Ct=1,(function(ct,wt){(function(_){ct.exports=_()})(function(){return(function _(N,w,u){function o(g,y){if(!w[g]){if(!N[g]){var p=typeof yt=="function"&&yt;if(!y&&p)return p(g,!0);if(n)return n(g,!0);var b=new Error("Cannot find module '"+g+"'");throw b.code="MODULE_NOT_FOUND",b}var i=w[g]={exports:{}};N[g][0].call(i.exports,function(d){var r=N[g][1][d];return o(r||d)},i,i.exports,_,N,w,u)}return w[g].exports}for(var n=typeof yt=="function"&&yt,h=0;h<u.length;h++)o(u[h]);return o})({1:[function(_,N,w){var u=_("./utils"),o=_("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";w.encode=function(h){for(var g,y,p,b,i,d,r,l=[],a=0,c=h.length,v=c,S=u.getTypeOf(h)!=="string";a<h.length;)v=c-a,p=S?(g=h[a++],y=a<c?h[a++]:0,a<c?h[a++]:0):(g=h.charCodeAt(a++),y=a<c?h.charCodeAt(a++):0,a<c?h.charCodeAt(a++):0),b=g>>2,i=(3&g)<<4|y>>4,d=1<v?(15&y)<<2|p>>6:64,r=2<v?63&p:64,l.push(n.charAt(b)+n.charAt(i)+n.charAt(d)+n.charAt(r));return l.join("")},w.decode=function(h){var g,y,p,b,i,d,r=0,l=0,a="data:";if(h.substr(0,a.length)===a)throw new Error("Invalid base64 input, it looks like a data url.");var c,v=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===n.charAt(64)&&v--,h.charAt(h.length-2)===n.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=o.uint8array?new Uint8Array(0|v):new Array(0|v);r<h.length;)g=n.indexOf(h.charAt(r++))<<2|(b=n.indexOf(h.charAt(r++)))>>4,y=(15&b)<<4|(i=n.indexOf(h.charAt(r++)))>>2,p=(3&i)<<6|(d=n.indexOf(h.charAt(r++))),c[l++]=g,i!==64&&(c[l++]=y),d!==64&&(c[l++]=p);return c}},{"./support":30,"./utils":32}],2:[function(_,N,w){var u=_("./external"),o=_("./stream/DataWorker"),n=_("./stream/Crc32Probe"),h=_("./stream/DataLengthProbe");function g(y,p,b,i,d){this.compressedSize=y,this.uncompressedSize=p,this.crc32=b,this.compression=i,this.compressedContent=d}g.prototype={getContentWorker:function(){var y=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),p=this;return y.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(y,p,b){return y.pipe(new n).pipe(new h("uncompressedSize")).pipe(p.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression",p)},N.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(_,N,w){var u=_("./stream/GenericWorker");w.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},w.DEFLATE=_("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(_,N,w){var u=_("./utils"),o=(function(){for(var n,h=[],g=0;g<256;g++){n=g;for(var y=0;y<8;y++)n=1&n?3988292384^n>>>1:n>>>1;h[g]=n}return h})();N.exports=function(n,h){return n!==void 0&&n.length?u.getTypeOf(n)!=="string"?(function(g,y,p,b){var i=o,d=b+p;g^=-1;for(var r=b;r<d;r++)g=g>>>8^i[255&(g^y[r])];return-1^g})(0|h,n,n.length,0):(function(g,y,p,b){var i=o,d=b+p;g^=-1;for(var r=b;r<d;r++)g=g>>>8^i[255&(g^y.charCodeAt(r))];return-1^g})(0|h,n,n.length,0):0}},{"./utils":32}],5:[function(_,N,w){w.base64=!1,w.binary=!1,w.dir=!1,w.createFolders=!0,w.date=null,w.compression=null,w.compressionOptions=null,w.comment=null,w.unixPermissions=null,w.dosPermissions=null},{}],6:[function(_,N,w){var u=null;u=typeof Promise<"u"?Promise:_("lie"),N.exports={Promise:u}},{lie:37}],7:[function(_,N,w){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=_("pako"),n=_("./utils"),h=_("./stream/GenericWorker"),g=u?"uint8array":"array";function y(p,b){h.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=b,this.meta={}}w.magic="\b\0",n.inherits(y,h),y.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,p.data),!1)},y.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(b){p.push({data:b,meta:p.meta})}},w.compressWorker=function(p){return new y("Deflate",p)},w.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(_,N,w){function u(i,d){var r,l="";for(r=0;r<d;r++)l+=String.fromCharCode(255&i),i>>>=8;return l}function o(i,d,r,l,a,c){var v,S,x=i.file,D=i.compression,O=c!==g.utf8encode,j=n.transformTo("string",c(x.name)),I=n.transformTo("string",g.utf8encode(x.name)),W=x.comment,q=n.transformTo("string",c(W)),m=n.transformTo("string",g.utf8encode(W)),B=I.length!==x.name.length,e=m.length!==W.length,T="",J="",U="",$=x.dir,L=x.date,V={crc32:0,compressedSize:0,uncompressedSize:0};d&&!r||(V.crc32=i.crc32,V.compressedSize=i.compressedSize,V.uncompressedSize=i.uncompressedSize);var E=0;d&&(E|=8),O||!B&&!e||(E|=2048);var C=0,X=0;$&&(C|=16),a==="UNIX"?(X=798,C|=(function(H,nt){var ot=H;return H||(ot=nt?16893:33204),(65535&ot)<<16})(x.unixPermissions,$)):(X=20,C|=(function(H){return 63&(H||0)})(x.dosPermissions)),v=L.getUTCHours(),v<<=6,v|=L.getUTCMinutes(),v<<=5,v|=L.getUTCSeconds()/2,S=L.getUTCFullYear()-1980,S<<=4,S|=L.getUTCMonth()+1,S<<=5,S|=L.getUTCDate(),B&&(J=u(1,1)+u(y(j),4)+I,T+="up"+u(J.length,2)+J),e&&(U=u(1,1)+u(y(q),4)+m,T+="uc"+u(U.length,2)+U);var G="";return G+=`
|
|
2
2
|
\0`,G+=u(E,2),G+=D.magic,G+=u(v,2),G+=u(S,2),G+=u(V.crc32,4),G+=u(V.compressedSize,4),G+=u(V.uncompressedSize,4),G+=u(j.length,2),G+=u(T.length,2),{fileRecord:p.LOCAL_FILE_HEADER+G+j+T,dirRecord:p.CENTRAL_FILE_HEADER+u(X,2)+G+u(q.length,2)+"\0\0\0\0"+u(C,4)+u(l,4)+j+T+q}}var n=_("../utils"),h=_("../stream/GenericWorker"),g=_("../utf8"),y=_("../crc32"),p=_("../signature");function b(i,d,r,l){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=r,this.encodeFileName=l,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(b,h),b.prototype.push=function(i){var d=i.meta.percent||0,r=this.entriesCount,l=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,h.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:r?(d+100*(r-l-1))/r:100}}))},b.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var d=this.streamFiles&&!i.file.dir;if(d){var r=o(i,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(i){this.accumulate=!1;var d=this.streamFiles&&!i.file.dir,r=o(i,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),d)this.push({data:(function(l){return p.DATA_DESCRIPTOR+u(l.crc32,4)+u(l.compressedSize,4)+u(l.uncompressedSize,4)})(i),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var i=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var r=this.bytesWritten-i,l=(function(a,c,v,S,x){var D=n.transformTo("string",x(S));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(a,2)+u(a,2)+u(c,4)+u(v,4)+u(D.length,2)+D})(this.dirRecords.length,r,i,this.zipComment,this.encodeFileName);this.push({data:l,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(i){this._sources.push(i);var d=this;return i.on("data",function(r){d.processChunk(r)}),i.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),i.on("error",function(r){d.error(r)}),this},b.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(i){var d=this._sources;if(!h.prototype.error.call(this,i))return!1;for(var r=0;r<d.length;r++)try{d[r].error(i)}catch{}return!0},b.prototype.lock=function(){h.prototype.lock.call(this);for(var i=this._sources,d=0;d<i.length;d++)i[d].lock()},N.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(_,N,w){var u=_("../compressions"),o=_("./ZipFileWorker");w.generateWorker=function(n,h,g){var y=new o(h.streamFiles,g,h.platform,h.encodeFileName),p=0;try{n.forEach(function(b,i){p++;var d=(function(c,v){var S=c||v,x=u[S];if(!x)throw new Error(S+" is not a valid compression method !");return x})(i.options.compression,h.compression),r=i.options.compressionOptions||h.compressionOptions||{},l=i.dir,a=i.date;i._compressWorker(d,r).withStreamInfo("file",{name:b,dir:l,date:a,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(y)}),y.entriesCount=p}catch(b){y.error(b)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(_,N,w){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new u;for(var n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(u.prototype=_("./object")).loadAsync=_("./load"),u.support=_("./support"),u.defaults=_("./defaults"),u.version="3.10.1",u.loadAsync=function(o,n){return new u().loadAsync(o,n)},u.external=_("./external"),N.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(_,N,w){var u=_("./utils"),o=_("./external"),n=_("./utf8"),h=_("./zipEntries"),g=_("./stream/Crc32Probe"),y=_("./nodejsUtils");function p(b){return new o.Promise(function(i,d){var r=b.decompressed.getContentWorker().pipe(new g);r.on("error",function(l){d(l)}).on("end",function(){r.streamInfo.crc32!==b.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}N.exports=function(b,i){var d=this;return i=u.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),y.isNode&&y.isStream(b)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",b,!0,i.optimizedBinaryString,i.base64).then(function(r){var l=new h(i);return l.load(r),l}).then(function(r){var l=[o.Promise.resolve(r)],a=r.files;if(i.checkCRC32)for(var c=0;c<a.length;c++)l.push(p(a[c]));return o.Promise.all(l)}).then(function(r){for(var l=r.shift(),a=l.files,c=0;c<a.length;c++){var v=a[c],S=v.fileNameStr,x=u.resolve(v.fileNameStr);d.file(x,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:i.createFolders}),v.dir||(d.file(x).unsafeOriginalName=S)}return l.zipComment.length&&(d.comment=l.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(_,N,w){var u=_("../utils"),o=_("../stream/GenericWorker");function n(h,g){o.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(g)}u.inherits(n,o),n.prototype._bindStream=function(h){var g=this;(this._stream=h).pause(),h.on("data",function(y){g.push({data:y,meta:{percent:0}})}).on("error",function(y){g.isPaused?this.generatedError=y:g.error(y)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},N.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(_,N,w){var u=_("readable-stream").Readable;function o(n,h,g){u.call(this,h),this._helper=n;var y=this;n.on("data",function(p,b){y.push(p)||y._helper.pause(),g&&g(b)}).on("error",function(p){y.emit("error",p)}).on("end",function(){y.push(null)})}_("../utils").inherits(o,u),o.prototype._read=function(){this._helper.resume()},N.exports=o},{"../utils":32,"readable-stream":16}],14:[function(_,N,w){N.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,o);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,o)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var o=new Buffer(u);return o.fill(0),o},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(_,N,w){function u(x,D,O){var j,I=n.getTypeOf(D),W=n.extend(O||{},y);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions=="string"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(x=a(x)),W.createFolders&&(j=l(x))&&c.call(this,j,!0);var q=I==="string"&&W.binary===!1&&W.base64===!1;O&&O.binary!==void 0||(W.binary=!q),(D instanceof p&&D.uncompressedSize===0||W.dir||!D||D.length===0)&&(W.base64=!1,W.binary=!0,D="",W.compression="STORE",I="string");var m=null;m=D instanceof p||D instanceof h?D:d.isNode&&d.isStream(D)?new r(x,D):n.prepareContent(x,D,W.binary,W.optimizedBinaryString,W.base64);var B=new b(x,m,W);this.files[x]=B}var o=_("./utf8"),n=_("./utils"),h=_("./stream/GenericWorker"),g=_("./stream/StreamHelper"),y=_("./defaults"),p=_("./compressedObject"),b=_("./zipObject"),i=_("./generate"),d=_("./nodejsUtils"),r=_("./nodejs/NodejsStreamInputAdapter"),l=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var D=x.lastIndexOf("/");return 0<D?x.substring(0,D):""},a=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},c=function(x,D){return D=D!==void 0?D:y.createFolders,x=a(x),this.files[x]||u.call(this,x,null,{dir:!0,createFolders:D}),this.files[x]};function v(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var D,O,j;for(D in this.files)j=this.files[D],(O=D.slice(this.root.length,D.length))&&D.slice(0,this.root.length)===this.root&&x(O,j)},filter:function(x){var D=[];return this.forEach(function(O,j){x(O,j)&&D.push(j)}),D},file:function(x,D,O){if(arguments.length!==1)return x=this.root+x,u.call(this,x,D,O),this;if(v(x)){var j=x;return this.filter(function(W,q){return!q.dir&&j.test(W)})}var I=this.files[this.root+x];return I&&!I.dir?I:null},folder:function(x){if(!x)return this;if(v(x))return this.filter(function(I,W){return W.dir&&x.test(I)});var D=this.root+x,O=c.call(this,D),j=this.clone();return j.root=O.name,j},remove:function(x){x=this.root+x;var D=this.files[x];if(D||(x.slice(-1)!=="/"&&(x+="/"),D=this.files[x]),D&&!D.dir)delete this.files[x];else for(var O=this.filter(function(I,W){return W.name.slice(0,x.length)===x}),j=0;j<O.length;j++)delete this.files[O[j].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var D,O={};try{if((O=n.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type==="binarystring"&&(O.type="string"),!O.type)throw new Error("No output type specified.");n.checkSupport(O.type),O.platform!=="darwin"&&O.platform!=="freebsd"&&O.platform!=="linux"&&O.platform!=="sunos"||(O.platform="UNIX"),O.platform==="win32"&&(O.platform="DOS");var j=O.comment||this.comment||"";D=i.generateWorker(this,O,j)}catch(I){(D=new h("error")).error(I)}return new g(D,O.type||"string",O.mimeType)},generateAsync:function(x,D){return this.generateInternalStream(x).accumulate(D)},generateNodeStream:function(x,D){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(D)}};N.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(_,N,w){N.exports=_("stream")},{stream:void 0}],17:[function(_,N,w){var u=_("./DataReader");function o(n){u.call(this,n);for(var h=0;h<this.data.length;h++)n[h]=255&n[h]}_("../utils").inherits(o,u),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var h=n.charCodeAt(0),g=n.charCodeAt(1),y=n.charCodeAt(2),p=n.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===h&&this.data[b+1]===g&&this.data[b+2]===y&&this.data[b+3]===p)return b-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var h=n.charCodeAt(0),g=n.charCodeAt(1),y=n.charCodeAt(2),p=n.charCodeAt(3),b=this.readData(4);return h===b[0]&&g===b[1]&&y===b[2]&&p===b[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},N.exports=o},{"../utils":32,"./DataReader":18}],18:[function(_,N,w){var u=_("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var h,g=0;for(this.checkOffset(n),h=this.index+n-1;h>=this.index;h--)g=(g<<8)+this.byteAt(h);return this.index+=n,g},readString:function(n){return u.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},N.exports=o},{"../utils":32}],19:[function(_,N,w){var u=_("./Uint8ArrayReader");function o(n){u.call(this,n)}_("../utils").inherits(o,u),o.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},N.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(_,N,w){var u=_("./DataReader");function o(n){u.call(this,n)}_("../utils").inherits(o,u),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},N.exports=o},{"../utils":32,"./DataReader":18}],21:[function(_,N,w){var u=_("./ArrayReader");function o(n){u.call(this,n)}_("../utils").inherits(o,u),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},N.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(_,N,w){var u=_("../utils"),o=_("../support"),n=_("./ArrayReader"),h=_("./StringReader"),g=_("./NodeBufferReader"),y=_("./Uint8ArrayReader");N.exports=function(p){var b=u.getTypeOf(p);return u.checkSupport(b),b!=="string"||o.uint8array?b==="nodebuffer"?new g(p):o.uint8array?new y(u.transformTo("uint8array",p)):new n(u.transformTo("array",p)):new h(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(_,N,w){w.LOCAL_FILE_HEADER="PK",w.CENTRAL_FILE_HEADER="PK",w.CENTRAL_DIRECTORY_END="PK",w.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",w.ZIP64_CENTRAL_DIRECTORY_END="PK",w.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(_,N,w){var u=_("./GenericWorker"),o=_("../utils");function n(h){u.call(this,"ConvertWorker to "+h),this.destType=h}o.inherits(n,u),n.prototype.processChunk=function(h){this.push({data:o.transformTo(this.destType,h.data),meta:h.meta})},N.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(_,N,w){var u=_("./GenericWorker"),o=_("../crc32");function n(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}_("../utils").inherits(n,u),n.prototype.processChunk=function(h){this.streamInfo.crc32=o(h.data,this.streamInfo.crc32||0),this.push(h)},N.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(_,N,w){var u=_("../utils"),o=_("./GenericWorker");function n(h){o.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}u.inherits(n,o),n.prototype.processChunk=function(h){if(h){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+h.data.length}o.prototype.processChunk.call(this,h)},N.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(_,N,w){var u=_("../utils"),o=_("./GenericWorker");function n(h){o.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=u.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}u.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,g);break;case"uint8array":h=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":h=this.data.slice(this.index,g)}return this.index=g,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},N.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(_,N,w){function u(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var h=0;h<this._listeners[o].length;h++)this._listeners[o][h].call(this,n)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var n=this;return o.on("data",function(h){n.processChunk(h)}),o.on("end",function(){n.end()}),o.on("error",function(h){n.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,n){return this.extraStreamInfo[o]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},N.exports=u},{}],29:[function(_,N,w){var u=_("../utils"),o=_("./ConvertWorker"),n=_("./GenericWorker"),h=_("../base64"),g=_("../support"),y=_("../external"),p=null;if(g.nodestream)try{p=_("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(d,r){return new y.Promise(function(l,a){var c=[],v=d._internalType,S=d._outputType,x=d._mimeType;d.on("data",function(D,O){c.push(D),r&&r(O)}).on("error",function(D){c=[],a(D)}).on("end",function(){try{var D=(function(O,j,I){switch(O){case"blob":return u.newBlob(u.transformTo("arraybuffer",j),I);case"base64":return h.encode(j);default:return u.transformTo(O,j)}})(S,(function(O,j){var I,W=0,q=null,m=0;for(I=0;I<j.length;I++)m+=j[I].length;switch(O){case"string":return j.join("");case"array":return Array.prototype.concat.apply([],j);case"uint8array":for(q=new Uint8Array(m),I=0;I<j.length;I++)q.set(j[I],W),W+=j[I].length;return q;case"nodebuffer":return Buffer.concat(j);default:throw new Error("concat : unsupported type '"+O+"'")}})(v,c),x);l(D)}catch(O){a(O)}c=[]}).resume()})}function i(d,r,l){var a=r;switch(r){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=r,this._mimeType=l,u.checkSupport(a),this._worker=d.pipe(new o(a)),d.lock()}catch(c){this._worker=new n("error"),this._worker.error(c)}}i.prototype={accumulate:function(d){return b(this,d)},on:function(d,r){var l=this;return d==="data"?this._worker.on(d,function(a){r.call(l,a.data,a.meta)}):this._worker.on(d,function(){u.delay(r,arguments,l)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},d)}},N.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(_,N,w){if(w.base64=!0,w.array=!0,w.string=!0,w.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",w.nodebuffer=typeof Buffer<"u",w.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")w.blob=!1;else{var u=new ArrayBuffer(0);try{w.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),w.blob=o.getBlob("application/zip").size===0}catch{w.blob=!1}}}try{w.nodestream=!!_("readable-stream").Readable}catch{w.nodestream=!1}},{"readable-stream":16}],31:[function(_,N,w){for(var u=_("./utils"),o=_("./support"),n=_("./nodejsUtils"),h=_("./stream/GenericWorker"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;g[254]=g[254]=1;function p(){h.call(this,"utf-8 decode"),this.leftOver=null}function b(){h.call(this,"utf-8 encode")}w.utf8encode=function(i){return o.nodebuffer?n.newBufferFrom(i,"utf-8"):(function(d){var r,l,a,c,v,S=d.length,x=0;for(c=0;c<S;c++)(64512&(l=d.charCodeAt(c)))==55296&&c+1<S&&(64512&(a=d.charCodeAt(c+1)))==56320&&(l=65536+(l-55296<<10)+(a-56320),c++),x+=l<128?1:l<2048?2:l<65536?3:4;for(r=o.uint8array?new Uint8Array(x):new Array(x),c=v=0;v<x;c++)(64512&(l=d.charCodeAt(c)))==55296&&c+1<S&&(64512&(a=d.charCodeAt(c+1)))==56320&&(l=65536+(l-55296<<10)+(a-56320),c++),l<128?r[v++]=l:(l<2048?r[v++]=192|l>>>6:(l<65536?r[v++]=224|l>>>12:(r[v++]=240|l>>>18,r[v++]=128|l>>>12&63),r[v++]=128|l>>>6&63),r[v++]=128|63&l);return r})(i)},w.utf8decode=function(i){return o.nodebuffer?u.transformTo("nodebuffer",i).toString("utf-8"):(function(d){var r,l,a,c,v=d.length,S=new Array(2*v);for(r=l=0;r<v;)if((a=d[r++])<128)S[l++]=a;else if(4<(c=g[a]))S[l++]=65533,r+=c-1;else{for(a&=c===2?31:c===3?15:7;1<c&&r<v;)a=a<<6|63&d[r++],c--;1<c?S[l++]=65533:a<65536?S[l++]=a:(a-=65536,S[l++]=55296|a>>10&1023,S[l++]=56320|1023&a)}return S.length!==l&&(S.subarray?S=S.subarray(0,l):S.length=l),u.applyFromCharCode(S)})(i=u.transformTo(o.uint8array?"uint8array":"array",i))},u.inherits(p,h),p.prototype.processChunk=function(i){var d=u.transformTo(o.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var r=d;(d=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),d.set(r,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var l=(function(c,v){var S;for((v=v||c.length)>c.length&&(v=c.length),S=v-1;0<=S&&(192&c[S])==128;)S--;return S<0||S===0?v:S+g[c[S]]>v?S:v})(d),a=d;l!==d.length&&(o.uint8array?(a=d.subarray(0,l),this.leftOver=d.subarray(l,d.length)):(a=d.slice(0,l),this.leftOver=d.slice(l,d.length))),this.push({data:w.utf8decode(a),meta:i.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:w.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},w.Utf8DecodeWorker=p,u.inherits(b,h),b.prototype.processChunk=function(i){this.push({data:w.utf8encode(i.data),meta:i.meta})},w.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(_,N,w){var u=_("./support"),o=_("./base64"),n=_("./nodejsUtils"),h=_("./external");function g(r){return r}function y(r,l){for(var a=0;a<r.length;++a)l[a]=255&r.charCodeAt(a);return l}_("setimmediate"),w.newBlob=function(r,l){w.checkSupport("blob");try{return new Blob([r],{type:l})}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(r),a.getBlob(l)}catch{throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(r,l,a){var c=[],v=0,S=r.length;if(S<=a)return String.fromCharCode.apply(null,r);for(;v<S;)l==="array"||l==="nodebuffer"?c.push(String.fromCharCode.apply(null,r.slice(v,Math.min(v+a,S)))):c.push(String.fromCharCode.apply(null,r.subarray(v,Math.min(v+a,S)))),v+=a;return c.join("")},stringifyByChar:function(r){for(var l="",a=0;a<r.length;a++)l+=String.fromCharCode(r[a]);return l},applyCanBeUsed:{uint8array:(function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}})()}};function b(r){var l=65536,a=w.getTypeOf(r),c=!0;if(a==="uint8array"?c=p.applyCanBeUsed.uint8array:a==="nodebuffer"&&(c=p.applyCanBeUsed.nodebuffer),c)for(;1<l;)try{return p.stringifyByChunk(r,a,l)}catch{l=Math.floor(l/2)}return p.stringifyByChar(r)}function i(r,l){for(var a=0;a<r.length;a++)l[a]=r[a];return l}w.applyFromCharCode=b;var d={};d.string={string:g,array:function(r){return y(r,new Array(r.length))},arraybuffer:function(r){return d.string.uint8array(r).buffer},uint8array:function(r){return y(r,new Uint8Array(r.length))},nodebuffer:function(r){return y(r,n.allocBuffer(r.length))}},d.array={string:b,array:g,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(r)}},d.arraybuffer={string:function(r){return b(new Uint8Array(r))},array:function(r){return i(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:g,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(new Uint8Array(r))}},d.uint8array={string:b,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:g,nodebuffer:function(r){return n.newBufferFrom(r)}},d.nodebuffer={string:b,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return d.nodebuffer.uint8array(r).buffer},uint8array:function(r){return i(r,new Uint8Array(r.length))},nodebuffer:g},w.transformTo=function(r,l){if(l=l||"",!r)return l;w.checkSupport(r);var a=w.getTypeOf(l);return d[a][r](l)},w.resolve=function(r){for(var l=r.split("/"),a=[],c=0;c<l.length;c++){var v=l[c];v==="."||v===""&&c!==0&&c!==l.length-1||(v===".."?a.pop():a.push(v))}return a.join("/")},w.getTypeOf=function(r){return typeof r=="string"?"string":Object.prototype.toString.call(r)==="[object Array]"?"array":u.nodebuffer&&n.isBuffer(r)?"nodebuffer":u.uint8array&&r instanceof Uint8Array?"uint8array":u.arraybuffer&&r instanceof ArrayBuffer?"arraybuffer":void 0},w.checkSupport=function(r){if(!u[r.toLowerCase()])throw new Error(r+" is not supported by this platform")},w.MAX_VALUE_16BITS=65535,w.MAX_VALUE_32BITS=-1,w.pretty=function(r){var l,a,c="";for(a=0;a<(r||"").length;a++)c+="\\x"+((l=r.charCodeAt(a))<16?"0":"")+l.toString(16).toUpperCase();return c},w.delay=function(r,l,a){setImmediate(function(){r.apply(a||null,l||[])})},w.inherits=function(r,l){function a(){}a.prototype=l.prototype,r.prototype=new a},w.extend=function(){var r,l,a={};for(r=0;r<arguments.length;r++)for(l in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],l)&&a[l]===void 0&&(a[l]=arguments[r][l]);return a},w.prepareContent=function(r,l,a,c,v){return h.Promise.resolve(l).then(function(S){return u.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new h.Promise(function(x,D){var O=new FileReader;O.onload=function(j){x(j.target.result)},O.onerror=function(j){D(j.target.error)},O.readAsArrayBuffer(S)}):S}).then(function(S){var x=w.getTypeOf(S);return x?(x==="arraybuffer"?S=w.transformTo("uint8array",S):x==="string"&&(v?S=o.decode(S):a&&c!==!0&&(S=(function(D){return y(D,u.uint8array?new Uint8Array(D.length):new Array(D.length))})(S))),S):h.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(_,N,w){var u=_("./reader/readerFor"),o=_("./utils"),n=_("./signature"),h=_("./zipEntry"),g=_("./support");function y(p){this.files=[],this.loadOptions=p}y.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(b)+", expected "+o.pretty(p)+")")}},isSignature:function(p,b){var i=this.reader.index;this.reader.setIndex(p);var d=this.reader.readString(4)===b;return this.reader.setIndex(i),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var p=this.reader.readData(this.zipCommentLength),b=g.uint8array?"uint8array":"array",i=o.transformTo(b,p);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var p,b,i,d=this.zip64EndOfCentralSize-44;0<d;)p=this.reader.readInt(2),b=this.reader.readInt(4),i=this.reader.readData(b),this.zip64ExtensibleData[p]={id:p,length:b,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var p,b;for(p=0;p<this.files.length;p++)b=this.files[p],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(p=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var p=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,n.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(p);var b=p;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(p=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(p),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var d=b-i;if(0<d)this.isSignature(b,n.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(p){this.reader=u(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},N.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(_,N,w){var u=_("./reader/readerFor"),o=_("./utils"),n=_("./compressedObject"),h=_("./crc32"),g=_("./utf8"),y=_("./compressions"),p=_("./support");function b(i,d){this.options=i,this.loadOptions=d}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var d,r;if(i.skip(22),this.fileNameLength=i.readInt(2),r=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=(function(l){for(var a in y)if(Object.prototype.hasOwnProperty.call(y,a)&&y[a].magic===l)return y[a];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,d,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var d=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(d),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=u(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var d,r,l,a=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<a;)d=i.readInt(2),r=i.readInt(2),l=i.readData(r),this.extraFields[d]={id:d,length:r,value:l};i.setIndex(a)},handleUTF8:function(){var i=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var r=o.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var l=this.findExtraFieldUnicodeComment();if(l!==null)this.fileCommentStr=l;else{var a=o.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var d=u(i.value);return d.readInt(1)!==1||h(this.fileName)!==d.readInt(4)?null:g.utf8decode(d.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var d=u(i.value);return d.readInt(1)!==1||h(this.fileComment)!==d.readInt(4)?null:g.utf8decode(d.readData(i.length-5))}return null}},N.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(_,N,w){function u(d,r,l){this.name=d,this.dir=l.dir,this.date=l.date,this.comment=l.comment,this.unixPermissions=l.unixPermissions,this.dosPermissions=l.dosPermissions,this._data=r,this._dataBinary=l.binary,this.options={compression:l.compression,compressionOptions:l.compressionOptions}}var o=_("./stream/StreamHelper"),n=_("./stream/DataWorker"),h=_("./utf8"),g=_("./compressedObject"),y=_("./stream/GenericWorker");u.prototype={internalStream:function(d){var r=null,l="string";try{if(!d)throw new Error("No output type specified.");var a=(l=d.toLowerCase())==="string"||l==="text";l!=="binarystring"&&l!=="text"||(l="string"),r=this._decompressWorker();var c=!this._dataBinary;c&&!a&&(r=r.pipe(new h.Utf8EncodeWorker)),!c&&a&&(r=r.pipe(new h.Utf8DecodeWorker))}catch(v){(r=new y("error")).error(v)}return new o(r,l,"")},async:function(d,r){return this.internalStream(d).accumulate(r)},nodeStream:function(d,r){return this.internalStream(d||"nodebuffer").toNodejsStream(r)},_compressWorker:function(d,r){if(this._data instanceof g&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var l=this._decompressWorker();return this._dataBinary||(l=l.pipe(new h.Utf8EncodeWorker)),g.createWorkerFrom(l,d,r)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof y?this._data:new n(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<p.length;i++)u.prototype[p[i]]=b;N.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(_,N,w){(function(u){var o,n,h=u.MutationObserver||u.WebKitMutationObserver;if(h){var g=0,y=new h(d),p=u.document.createTextNode("");y.observe(p,{characterData:!0}),o=function(){p.data=g=++g%2}}else if(u.setImmediate||u.MessageChannel===void 0)o="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var r=u.document.createElement("script");r.onreadystatechange=function(){d(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},u.document.documentElement.appendChild(r)}:function(){setTimeout(d,0)};else{var b=new u.MessageChannel;b.port1.onmessage=d,o=function(){b.port2.postMessage(0)}}var i=[];function d(){var r,l;n=!0;for(var a=i.length;a;){for(l=i,i=[],r=-1;++r<a;)l[r]();a=i.length}n=!1}N.exports=function(r){i.push(r)!==1||n||o()}}).call(this,typeof vt<"u"?vt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(_,N,w){var u=_("immediate");function o(){}var n={},h=["REJECTED"],g=["FULFILLED"],y=["PENDING"];function p(a){if(typeof a!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,a!==o&&r(this,a)}function b(a,c,v){this.promise=a,typeof c=="function"&&(this.onFulfilled=c,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function i(a,c,v){u(function(){var S;try{S=c(v)}catch(x){return n.reject(a,x)}S===a?n.reject(a,new TypeError("Cannot resolve promise with itself")):n.resolve(a,S)})}function d(a){var c=a&&a.then;if(a&&(typeof a=="object"||typeof a=="function")&&typeof c=="function")return function(){c.apply(a,arguments)}}function r(a,c){var v=!1;function S(O){v||(v=!0,n.reject(a,O))}function x(O){v||(v=!0,n.resolve(a,O))}var D=l(function(){c(x,S)});D.status==="error"&&S(D.value)}function l(a,c){var v={};try{v.value=a(c),v.status="success"}catch(S){v.status="error",v.value=S}return v}(N.exports=p).prototype.finally=function(a){if(typeof a!="function")return this;var c=this.constructor;return this.then(function(v){return c.resolve(a()).then(function(){return v})},function(v){return c.resolve(a()).then(function(){throw v})})},p.prototype.catch=function(a){return this.then(null,a)},p.prototype.then=function(a,c){if(typeof a!="function"&&this.state===g||typeof c!="function"&&this.state===h)return this;var v=new this.constructor(o);return this.state!==y?i(v,this.state===g?a:c,this.outcome):this.queue.push(new b(v,a,c)),v},b.prototype.callFulfilled=function(a){n.resolve(this.promise,a)},b.prototype.otherCallFulfilled=function(a){i(this.promise,this.onFulfilled,a)},b.prototype.callRejected=function(a){n.reject(this.promise,a)},b.prototype.otherCallRejected=function(a){i(this.promise,this.onRejected,a)},n.resolve=function(a,c){var v=l(d,c);if(v.status==="error")return n.reject(a,v.value);var S=v.value;if(S)r(a,S);else{a.state=g,a.outcome=c;for(var x=-1,D=a.queue.length;++x<D;)a.queue[x].callFulfilled(c)}return a},n.reject=function(a,c){a.state=h,a.outcome=c;for(var v=-1,S=a.queue.length;++v<S;)a.queue[v].callRejected(c);return a},p.resolve=function(a){return a instanceof this?a:n.resolve(new this(o),a)},p.reject=function(a){var c=new this(o);return n.reject(c,a)},p.all=function(a){var c=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=a.length,S=!1;if(!v)return this.resolve([]);for(var x=new Array(v),D=0,O=-1,j=new this(o);++O<v;)I(a[O],O);return j;function I(W,q){c.resolve(W).then(function(m){x[q]=m,++D!==v||S||(S=!0,n.resolve(j,x))},function(m){S||(S=!0,n.reject(j,m))})}},p.race=function(a){var c=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=a.length,S=!1;if(!v)return this.resolve([]);for(var x=-1,D=new this(o);++x<v;)O=a[x],c.resolve(O).then(function(j){S||(S=!0,n.resolve(D,j))},function(j){S||(S=!0,n.reject(D,j))});var O;return D}},{immediate:36}],38:[function(_,N,w){var u={};(0,_("./lib/utils/common").assign)(u,_("./lib/deflate"),_("./lib/inflate"),_("./lib/zlib/constants")),N.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(_,N,w){var u=_("./zlib/deflate"),o=_("./utils/common"),n=_("./utils/strings"),h=_("./zlib/messages"),g=_("./zlib/zstream"),y=Object.prototype.toString,p=0,b=-1,i=0,d=8;function r(a){if(!(this instanceof r))return new r(a);this.options=o.assign({level:b,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},a||{});var c=this.options;c.raw&&0<c.windowBits?c.windowBits=-c.windowBits:c.gzip&&0<c.windowBits&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var v=u.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(v!==p)throw new Error(h[v]);if(c.header&&u.deflateSetHeader(this.strm,c.header),c.dictionary){var S;if(S=typeof c.dictionary=="string"?n.string2buf(c.dictionary):y.call(c.dictionary)==="[object ArrayBuffer]"?new Uint8Array(c.dictionary):c.dictionary,(v=u.deflateSetDictionary(this.strm,S))!==p)throw new Error(h[v]);this._dict_set=!0}}function l(a,c){var v=new r(c);if(v.push(a,!0),v.err)throw v.msg||h[v.err];return v.result}r.prototype.push=function(a,c){var v,S,x=this.strm,D=this.options.chunkSize;if(this.ended)return!1;S=c===~~c?c:c===!0?4:0,typeof a=="string"?x.input=n.string2buf(a):y.call(a)==="[object ArrayBuffer]"?x.input=new Uint8Array(a):x.input=a,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(D),x.next_out=0,x.avail_out=D),(v=u.deflate(x,S))!==1&&v!==p)return this.onEnd(v),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(x.output,x.next_out))):this.onData(o.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&v!==1);return S===4?(v=u.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===p):S!==2||(this.onEnd(p),!(x.avail_out=0))},r.prototype.onData=function(a){this.chunks.push(a)},r.prototype.onEnd=function(a){a===p&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},w.Deflate=r,w.deflate=l,w.deflateRaw=function(a,c){return(c=c||{}).raw=!0,l(a,c)},w.gzip=function(a,c){return(c=c||{}).gzip=!0,l(a,c)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(_,N,w){var u=_("./zlib/inflate"),o=_("./utils/common"),n=_("./utils/strings"),h=_("./zlib/constants"),g=_("./zlib/messages"),y=_("./zlib/zstream"),p=_("./zlib/gzheader"),b=Object.prototype.toString;function i(r){if(!(this instanceof i))return new i(r);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},r||{});var l=this.options;l.raw&&0<=l.windowBits&&l.windowBits<16&&(l.windowBits=-l.windowBits,l.windowBits===0&&(l.windowBits=-15)),!(0<=l.windowBits&&l.windowBits<16)||r&&r.windowBits||(l.windowBits+=32),15<l.windowBits&&l.windowBits<48&&(15&l.windowBits)==0&&(l.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var a=u.inflateInit2(this.strm,l.windowBits);if(a!==h.Z_OK)throw new Error(g[a]);this.header=new p,u.inflateGetHeader(this.strm,this.header)}function d(r,l){var a=new i(l);if(a.push(r,!0),a.err)throw a.msg||g[a.err];return a.result}i.prototype.push=function(r,l){var a,c,v,S,x,D,O=this.strm,j=this.options.chunkSize,I=this.options.dictionary,W=!1;if(this.ended)return!1;c=l===~~l?l:l===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof r=="string"?O.input=n.binstring2buf(r):b.call(r)==="[object ArrayBuffer]"?O.input=new Uint8Array(r):O.input=r,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new o.Buf8(j),O.next_out=0,O.avail_out=j),(a=u.inflate(O,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&I&&(D=typeof I=="string"?n.string2buf(I):b.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,a=u.inflateSetDictionary(this.strm,D)),a===h.Z_BUF_ERROR&&W===!0&&(a=h.Z_OK,W=!1),a!==h.Z_STREAM_END&&a!==h.Z_OK)return this.onEnd(a),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&a!==h.Z_STREAM_END&&(O.avail_in!==0||c!==h.Z_FINISH&&c!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=n.utf8border(O.output,O.next_out),S=O.next_out-v,x=n.buf2string(O.output,v),O.next_out=S,O.avail_out=j-S,S&&o.arraySet(O.output,O.output,v,S,0),this.onData(x)):this.onData(o.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(W=!0)}while((0<O.avail_in||O.avail_out===0)&&a!==h.Z_STREAM_END);return a===h.Z_STREAM_END&&(c=h.Z_FINISH),c===h.Z_FINISH?(a=u.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===h.Z_OK):c!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(O.avail_out=0))},i.prototype.onData=function(r){this.chunks.push(r)},i.prototype.onEnd=function(r){r===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg},w.Inflate=i,w.inflate=d,w.inflateRaw=function(r,l){return(l=l||{}).raw=!0,d(r,l)},w.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(_,N,w){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";w.assign=function(h){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var y=g.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var p in y)y.hasOwnProperty(p)&&(h[p]=y[p])}}return h},w.shrinkBuf=function(h,g){return h.length===g?h:h.subarray?h.subarray(0,g):(h.length=g,h)};var o={arraySet:function(h,g,y,p,b){if(g.subarray&&h.subarray)h.set(g.subarray(y,y+p),b);else for(var i=0;i<p;i++)h[b+i]=g[y+i]},flattenChunks:function(h){var g,y,p,b,i,d;for(g=p=0,y=h.length;g<y;g++)p+=h[g].length;for(d=new Uint8Array(p),g=b=0,y=h.length;g<y;g++)i=h[g],d.set(i,b),b+=i.length;return d}},n={arraySet:function(h,g,y,p,b){for(var i=0;i<p;i++)h[b+i]=g[y+i]},flattenChunks:function(h){return[].concat.apply([],h)}};w.setTyped=function(h){h?(w.Buf8=Uint8Array,w.Buf16=Uint16Array,w.Buf32=Int32Array,w.assign(w,o)):(w.Buf8=Array,w.Buf16=Array,w.Buf32=Array,w.assign(w,n))},w.setTyped(u)},{}],42:[function(_,N,w){var u=_("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var h=new u.Buf8(256),g=0;g<256;g++)h[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function y(p,b){if(b<65537&&(p.subarray&&n||!p.subarray&&o))return String.fromCharCode.apply(null,u.shrinkBuf(p,b));for(var i="",d=0;d<b;d++)i+=String.fromCharCode(p[d]);return i}h[254]=h[254]=1,w.string2buf=function(p){var b,i,d,r,l,a=p.length,c=0;for(r=0;r<a;r++)(64512&(i=p.charCodeAt(r)))==55296&&r+1<a&&(64512&(d=p.charCodeAt(r+1)))==56320&&(i=65536+(i-55296<<10)+(d-56320),r++),c+=i<128?1:i<2048?2:i<65536?3:4;for(b=new u.Buf8(c),r=l=0;l<c;r++)(64512&(i=p.charCodeAt(r)))==55296&&r+1<a&&(64512&(d=p.charCodeAt(r+1)))==56320&&(i=65536+(i-55296<<10)+(d-56320),r++),i<128?b[l++]=i:(i<2048?b[l++]=192|i>>>6:(i<65536?b[l++]=224|i>>>12:(b[l++]=240|i>>>18,b[l++]=128|i>>>12&63),b[l++]=128|i>>>6&63),b[l++]=128|63&i);return b},w.buf2binstring=function(p){return y(p,p.length)},w.binstring2buf=function(p){for(var b=new u.Buf8(p.length),i=0,d=b.length;i<d;i++)b[i]=p.charCodeAt(i);return b},w.buf2string=function(p,b){var i,d,r,l,a=b||p.length,c=new Array(2*a);for(i=d=0;i<a;)if((r=p[i++])<128)c[d++]=r;else if(4<(l=h[r]))c[d++]=65533,i+=l-1;else{for(r&=l===2?31:l===3?15:7;1<l&&i<a;)r=r<<6|63&p[i++],l--;1<l?c[d++]=65533:r<65536?c[d++]=r:(r-=65536,c[d++]=55296|r>>10&1023,c[d++]=56320|1023&r)}return y(c,d)},w.utf8border=function(p,b){var i;for((b=b||p.length)>p.length&&(b=p.length),i=b-1;0<=i&&(192&p[i])==128;)i--;return i<0||i===0?b:i+h[p[i]]>b?i:b}},{"./common":41}],43:[function(_,N,w){N.exports=function(u,o,n,h){for(var g=65535&u|0,y=u>>>16&65535|0,p=0;n!==0;){for(n-=p=2e3<n?2e3:n;y=y+(g=g+o[h++]|0)|0,--p;);g%=65521,y%=65521}return g|y<<16|0}},{}],44:[function(_,N,w){N.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(_,N,w){var u=(function(){for(var o,n=[],h=0;h<256;h++){o=h;for(var g=0;g<8;g++)o=1&o?3988292384^o>>>1:o>>>1;n[h]=o}return n})();N.exports=function(o,n,h,g){var y=u,p=g+h;o^=-1;for(var b=g;b<p;b++)o=o>>>8^y[255&(o^n[b])];return-1^o}},{}],46:[function(_,N,w){var u,o=_("../utils/common"),n=_("./trees"),h=_("./adler32"),g=_("./crc32"),y=_("./messages"),p=0,b=4,i=0,d=-2,r=-1,l=4,a=2,c=8,v=9,S=286,x=30,D=19,O=2*S+1,j=15,I=3,W=258,q=W+I+1,m=42,B=113,e=1,T=2,J=3,U=4;function $(t,R){return t.msg=y[R],R}function L(t){return(t<<1)-(4<t?9:0)}function V(t){for(var R=t.length;0<=--R;)t[R]=0}function E(t){var R=t.state,A=R.pending;A>t.avail_out&&(A=t.avail_out),A!==0&&(o.arraySet(t.output,R.pending_buf,R.pending_out,A,t.next_out),t.next_out+=A,R.pending_out+=A,t.total_out+=A,t.avail_out-=A,R.pending-=A,R.pending===0&&(R.pending_out=0))}function C(t,R){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,R),t.block_start=t.strstart,E(t.strm)}function X(t,R){t.pending_buf[t.pending++]=R}function G(t,R){t.pending_buf[t.pending++]=R>>>8&255,t.pending_buf[t.pending++]=255&R}function H(t,R){var A,f,s=t.max_chain_length,k=t.strstart,F=t.prev_length,P=t.nice_match,z=t.strstart>t.w_size-q?t.strstart-(t.w_size-q):0,Z=t.window,K=t.w_mask,M=t.prev,Y=t.strstart+W,rt=Z[k+F-1],tt=Z[k+F];t.prev_length>=t.good_match&&(s>>=2),P>t.lookahead&&(P=t.lookahead);do if(Z[(A=R)+F]===tt&&Z[A+F-1]===rt&&Z[A]===Z[k]&&Z[++A]===Z[k+1]){k+=2,A++;do;while(Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&k<Y);if(f=W-(Y-k),k=Y-W,F<f){if(t.match_start=R,P<=(F=f))break;rt=Z[k+F-1],tt=Z[k+F]}}while((R=M[R&K])>z&&--s!=0);return F<=t.lookahead?F:t.lookahead}function nt(t){var R,A,f,s,k,F,P,z,Z,K,M=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=M+(M-q)){for(o.arraySet(t.window,t.window,M,M,0),t.match_start-=M,t.strstart-=M,t.block_start-=M,R=A=t.hash_size;f=t.head[--R],t.head[R]=M<=f?f-M:0,--A;);for(R=A=M;f=t.prev[--R],t.prev[R]=M<=f?f-M:0,--A;);s+=M}if(t.strm.avail_in===0)break;if(F=t.strm,P=t.window,z=t.strstart+t.lookahead,Z=s,K=void 0,K=F.avail_in,Z<K&&(K=Z),A=K===0?0:(F.avail_in-=K,o.arraySet(P,F.input,F.next_in,K,z),F.state.wrap===1?F.adler=h(F.adler,P,K,z):F.state.wrap===2&&(F.adler=g(F.adler,P,K,z)),F.next_in+=K,F.total_in+=K,K),t.lookahead+=A,t.lookahead+t.insert>=I)for(k=t.strstart-t.insert,t.ins_h=t.window[k],t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+I-1])&t.hash_mask,t.prev[k&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=k,k++,t.insert--,!(t.lookahead+t.insert<I)););}while(t.lookahead<q&&t.strm.avail_in!==0)}function ot(t,R){for(var A,f;;){if(t.lookahead<q){if(nt(t),t.lookahead<q&&R===p)return e;if(t.lookahead===0)break}if(A=0,t.lookahead>=I&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),A!==0&&t.strstart-A<=t.w_size-q&&(t.match_length=H(t,A)),t.match_length>=I)if(f=n._tr_tally(t,t.strstart-t.match_start,t.match_length-I),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=I){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else f=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(f&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=t.strstart<I-1?t.strstart:I-1,R===b?(C(t,!0),t.strm.avail_out===0?J:U):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:T}function Q(t,R){for(var A,f,s;;){if(t.lookahead<q){if(nt(t),t.lookahead<q&&R===p)return e;if(t.lookahead===0)break}if(A=0,t.lookahead>=I&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=I-1,A!==0&&t.prev_length<t.max_lazy_match&&t.strstart-A<=t.w_size-q&&(t.match_length=H(t,A),t.match_length<=5&&(t.strategy===1||t.match_length===I&&4096<t.strstart-t.match_start)&&(t.match_length=I-1)),t.prev_length>=I&&t.match_length<=t.prev_length){for(s=t.strstart+t.lookahead-I,f=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-I),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=s&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=I-1,t.strstart++,f&&(C(t,!1),t.strm.avail_out===0))return e}else if(t.match_available){if((f=n._tr_tally(t,0,t.window[t.strstart-1]))&&C(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return e}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(f=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<I-1?t.strstart:I-1,R===b?(C(t,!0),t.strm.avail_out===0?J:U):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:T}function et(t,R,A,f,s){this.good_length=t,this.max_lazy=R,this.nice_length=A,this.max_chain=f,this.func=s}function st(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=c,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*O),this.dyn_dtree=new o.Buf16(2*(2*x+1)),this.bl_tree=new o.Buf16(2*(2*D+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(j+1),this.heap=new o.Buf16(2*S+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*S+1),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function it(t){var R;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=a,(R=t.state).pending=0,R.pending_out=0,R.wrap<0&&(R.wrap=-R.wrap),R.status=R.wrap?m:B,t.adler=R.wrap===2?0:1,R.last_flush=p,n._tr_init(R),i):$(t,d)}function lt(t){var R=it(t);return R===i&&(function(A){A.window_size=2*A.w_size,V(A.head),A.max_lazy_match=u[A.level].max_lazy,A.good_match=u[A.level].good_length,A.nice_match=u[A.level].nice_length,A.max_chain_length=u[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=I-1,A.match_available=0,A.ins_h=0})(t.state),R}function ht(t,R,A,f,s,k){if(!t)return d;var F=1;if(R===r&&(R=6),f<0?(F=0,f=-f):15<f&&(F=2,f-=16),s<1||v<s||A!==c||f<8||15<f||R<0||9<R||k<0||l<k)return $(t,d);f===8&&(f=9);var P=new st;return(t.state=P).strm=t,P.wrap=F,P.gzhead=null,P.w_bits=f,P.w_size=1<<P.w_bits,P.w_mask=P.w_size-1,P.hash_bits=s+7,P.hash_size=1<<P.hash_bits,P.hash_mask=P.hash_size-1,P.hash_shift=~~((P.hash_bits+I-1)/I),P.window=new o.Buf8(2*P.w_size),P.head=new o.Buf16(P.hash_size),P.prev=new o.Buf16(P.w_size),P.lit_bufsize=1<<s+6,P.pending_buf_size=4*P.lit_bufsize,P.pending_buf=new o.Buf8(P.pending_buf_size),P.d_buf=1*P.lit_bufsize,P.l_buf=3*P.lit_bufsize,P.level=R,P.strategy=k,P.method=A,lt(t)}u=[new et(0,0,0,0,function(t,R){var A=65535;for(A>t.pending_buf_size-5&&(A=t.pending_buf_size-5);;){if(t.lookahead<=1){if(nt(t),t.lookahead===0&&R===p)return e;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var f=t.block_start+A;if((t.strstart===0||t.strstart>=f)&&(t.lookahead=t.strstart-f,t.strstart=f,C(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-q&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=0,R===b?(C(t,!0),t.strm.avail_out===0?J:U):(t.strstart>t.block_start&&(C(t,!1),t.strm.avail_out),e)}),new et(4,4,8,4,ot),new et(4,5,16,8,ot),new et(4,6,32,32,ot),new et(4,4,16,16,Q),new et(8,16,32,32,Q),new et(8,16,128,128,Q),new et(8,32,128,256,Q),new et(32,128,258,1024,Q),new et(32,258,258,4096,Q)],w.deflateInit=function(t,R){return ht(t,R,c,15,8,0)},w.deflateInit2=ht,w.deflateReset=lt,w.deflateResetKeep=it,w.deflateSetHeader=function(t,R){return t&&t.state?t.state.wrap!==2?d:(t.state.gzhead=R,i):d},w.deflate=function(t,R){var A,f,s,k;if(!t||!t.state||5<R||R<0)return t?$(t,d):d;if(f=t.state,!t.output||!t.input&&t.avail_in!==0||f.status===666&&R!==b)return $(t,t.avail_out===0?-5:d);if(f.strm=t,A=f.last_flush,f.last_flush=R,f.status===m)if(f.wrap===2)t.adler=0,X(f,31),X(f,139),X(f,8),f.gzhead?(X(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),X(f,255&f.gzhead.time),X(f,f.gzhead.time>>8&255),X(f,f.gzhead.time>>16&255),X(f,f.gzhead.time>>24&255),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(X(f,255&f.gzhead.extra.length),X(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=g(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(X(f,0),X(f,0),X(f,0),X(f,0),X(f,0),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,3),f.status=B);else{var F=c+(f.w_bits-8<<4)<<8;F|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(F|=32),F+=31-F%31,f.status=B,G(f,F),f.strstart!==0&&(G(f,t.adler>>>16),G(f,65535&t.adler)),t.adler=1}if(f.status===69)if(f.gzhead.extra){for(s=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending!==f.pending_buf_size));)X(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,X(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),k===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,X(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),k===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&E(t),f.pending+2<=f.pending_buf_size&&(X(f,255&t.adler),X(f,t.adler>>8&255),t.adler=0,f.status=B)):f.status=B),f.pending!==0){if(E(t),t.avail_out===0)return f.last_flush=-1,i}else if(t.avail_in===0&&L(R)<=L(A)&&R!==b)return $(t,-5);if(f.status===666&&t.avail_in!==0)return $(t,-5);if(t.avail_in!==0||f.lookahead!==0||R!==p&&f.status!==666){var P=f.strategy===2?(function(z,Z){for(var K;;){if(z.lookahead===0&&(nt(z),z.lookahead===0)){if(Z===p)return e;break}if(z.match_length=0,K=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,K&&(C(z,!1),z.strm.avail_out===0))return e}return z.insert=0,Z===b?(C(z,!0),z.strm.avail_out===0?J:U):z.last_lit&&(C(z,!1),z.strm.avail_out===0)?e:T})(f,R):f.strategy===3?(function(z,Z){for(var K,M,Y,rt,tt=z.window;;){if(z.lookahead<=W){if(nt(z),z.lookahead<=W&&Z===p)return e;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=I&&0<z.strstart&&(M=tt[Y=z.strstart-1])===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]){rt=z.strstart+W;do;while(M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&Y<rt);z.match_length=W-(rt-Y),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=I?(K=n._tr_tally(z,1,z.match_length-I),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(K=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),K&&(C(z,!1),z.strm.avail_out===0))return e}return z.insert=0,Z===b?(C(z,!0),z.strm.avail_out===0?J:U):z.last_lit&&(C(z,!1),z.strm.avail_out===0)?e:T})(f,R):u[f.level].func(f,R);if(P!==J&&P!==U||(f.status=666),P===e||P===J)return t.avail_out===0&&(f.last_flush=-1),i;if(P===T&&(R===1?n._tr_align(f):R!==5&&(n._tr_stored_block(f,0,0,!1),R===3&&(V(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),E(t),t.avail_out===0))return f.last_flush=-1,i}return R!==b?i:f.wrap<=0?1:(f.wrap===2?(X(f,255&t.adler),X(f,t.adler>>8&255),X(f,t.adler>>16&255),X(f,t.adler>>24&255),X(f,255&t.total_in),X(f,t.total_in>>8&255),X(f,t.total_in>>16&255),X(f,t.total_in>>24&255)):(G(f,t.adler>>>16),G(f,65535&t.adler)),E(t),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?i:1)},w.deflateEnd=function(t){var R;return t&&t.state?(R=t.state.status)!==m&&R!==69&&R!==73&&R!==91&&R!==103&&R!==B&&R!==666?$(t,d):(t.state=null,R===B?$(t,-3):i):d},w.deflateSetDictionary=function(t,R){var A,f,s,k,F,P,z,Z,K=R.length;if(!t||!t.state||(k=(A=t.state).wrap)===2||k===1&&A.status!==m||A.lookahead)return d;for(k===1&&(t.adler=h(t.adler,R,K,0)),A.wrap=0,K>=A.w_size&&(k===0&&(V(A.head),A.strstart=0,A.block_start=0,A.insert=0),Z=new o.Buf8(A.w_size),o.arraySet(Z,R,K-A.w_size,A.w_size,0),R=Z,K=A.w_size),F=t.avail_in,P=t.next_in,z=t.input,t.avail_in=K,t.next_in=0,t.input=R,nt(A);A.lookahead>=I;){for(f=A.strstart,s=A.lookahead-(I-1);A.ins_h=(A.ins_h<<A.hash_shift^A.window[f+I-1])&A.hash_mask,A.prev[f&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=f,f++,--s;);A.strstart=f,A.lookahead=I-1,nt(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=I-1,A.match_available=0,t.next_in=P,t.input=z,t.avail_in=F,A.wrap=k,i},w.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(_,N,w){N.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(_,N,w){N.exports=function(u,o){var n,h,g,y,p,b,i,d,r,l,a,c,v,S,x,D,O,j,I,W,q,m,B,e,T;n=u.state,h=u.next_in,e=u.input,g=h+(u.avail_in-5),y=u.next_out,T=u.output,p=y-(o-u.avail_out),b=y+(u.avail_out-257),i=n.dmax,d=n.wsize,r=n.whave,l=n.wnext,a=n.window,c=n.hold,v=n.bits,S=n.lencode,x=n.distcode,D=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;t:do{v<15&&(c+=e[h++]<<v,v+=8,c+=e[h++]<<v,v+=8),j=S[c&D];e:for(;;){if(c>>>=I=j>>>24,v-=I,(I=j>>>16&255)===0)T[y++]=65535&j;else{if(!(16&I)){if((64&I)==0){j=S[(65535&j)+(c&(1<<I)-1)];continue e}if(32&I){n.mode=12;break t}u.msg="invalid literal/length code",n.mode=30;break t}W=65535&j,(I&=15)&&(v<I&&(c+=e[h++]<<v,v+=8),W+=c&(1<<I)-1,c>>>=I,v-=I),v<15&&(c+=e[h++]<<v,v+=8,c+=e[h++]<<v,v+=8),j=x[c&O];r:for(;;){if(c>>>=I=j>>>24,v-=I,!(16&(I=j>>>16&255))){if((64&I)==0){j=x[(65535&j)+(c&(1<<I)-1)];continue r}u.msg="invalid distance code",n.mode=30;break t}if(q=65535&j,v<(I&=15)&&(c+=e[h++]<<v,(v+=8)<I&&(c+=e[h++]<<v,v+=8)),i<(q+=c&(1<<I)-1)){u.msg="invalid distance too far back",n.mode=30;break t}if(c>>>=I,v-=I,(I=y-p)<q){if(r<(I=q-I)&&n.sane){u.msg="invalid distance too far back",n.mode=30;break t}if(B=a,(m=0)===l){if(m+=d-I,I<W){for(W-=I;T[y++]=a[m++],--I;);m=y-q,B=T}}else if(l<I){if(m+=d+l-I,(I-=l)<W){for(W-=I;T[y++]=a[m++],--I;);if(m=0,l<W){for(W-=I=l;T[y++]=a[m++],--I;);m=y-q,B=T}}}else if(m+=l-I,I<W){for(W-=I;T[y++]=a[m++],--I;);m=y-q,B=T}for(;2<W;)T[y++]=B[m++],T[y++]=B[m++],T[y++]=B[m++],W-=3;W&&(T[y++]=B[m++],1<W&&(T[y++]=B[m++]))}else{for(m=y-q;T[y++]=T[m++],T[y++]=T[m++],T[y++]=T[m++],2<(W-=3););W&&(T[y++]=T[m++],1<W&&(T[y++]=T[m++]))}break}}break}}while(h<g&&y<b);h-=W=v>>3,c&=(1<<(v-=W<<3))-1,u.next_in=h,u.next_out=y,u.avail_in=h<g?g-h+5:5-(h-g),u.avail_out=y<b?b-y+257:257-(y-b),n.hold=c,n.bits=v}},{}],49:[function(_,N,w){var u=_("../utils/common"),o=_("./adler32"),n=_("./crc32"),h=_("./inffast"),g=_("./inftrees"),y=1,p=2,b=0,i=-2,d=1,r=852,l=592;function a(m){return(m>>>24&255)+(m>>>8&65280)+((65280&m)<<8)+((255&m)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(m){var B;return m&&m.state?(B=m.state,m.total_in=m.total_out=B.total=0,m.msg="",B.wrap&&(m.adler=1&B.wrap),B.mode=d,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new u.Buf32(r),B.distcode=B.distdyn=new u.Buf32(l),B.sane=1,B.back=-1,b):i}function S(m){var B;return m&&m.state?((B=m.state).wsize=0,B.whave=0,B.wnext=0,v(m)):i}function x(m,B){var e,T;return m&&m.state?(T=m.state,B<0?(e=0,B=-B):(e=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?i:(T.window!==null&&T.wbits!==B&&(T.window=null),T.wrap=e,T.wbits=B,S(m))):i}function D(m,B){var e,T;return m?(T=new c,(m.state=T).window=null,(e=x(m,B))!==b&&(m.state=null),e):i}var O,j,I=!0;function W(m){if(I){var B;for(O=new u.Buf32(512),j=new u.Buf32(32),B=0;B<144;)m.lens[B++]=8;for(;B<256;)m.lens[B++]=9;for(;B<280;)m.lens[B++]=7;for(;B<288;)m.lens[B++]=8;for(g(y,m.lens,0,288,O,0,m.work,{bits:9}),B=0;B<32;)m.lens[B++]=5;g(p,m.lens,0,32,j,0,m.work,{bits:5}),I=!1}m.lencode=O,m.lenbits=9,m.distcode=j,m.distbits=5}function q(m,B,e,T){var J,U=m.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new u.Buf8(U.wsize)),T>=U.wsize?(u.arraySet(U.window,B,e-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(T<(J=U.wsize-U.wnext)&&(J=T),u.arraySet(U.window,B,e-T,J,U.wnext),(T-=J)?(u.arraySet(U.window,B,e-T,T,0),U.wnext=T,U.whave=U.wsize):(U.wnext+=J,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=J))),0}w.inflateReset=S,w.inflateReset2=x,w.inflateResetKeep=v,w.inflateInit=function(m){return D(m,15)},w.inflateInit2=D,w.inflate=function(m,B){var e,T,J,U,$,L,V,E,C,X,G,H,nt,ot,Q,et,st,it,lt,ht,t,R,A,f,s=0,k=new u.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!m||!m.state||!m.output||!m.input&&m.avail_in!==0)return i;(e=m.state).mode===12&&(e.mode=13),$=m.next_out,J=m.output,V=m.avail_out,U=m.next_in,T=m.input,L=m.avail_in,E=e.hold,C=e.bits,X=L,G=V,R=b;t:for(;;)switch(e.mode){case d:if(e.wrap===0){e.mode=13;break}for(;C<16;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if(2&e.wrap&&E===35615){k[e.check=0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0),C=E=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&E)<<8)+(E>>8))%31){m.msg="incorrect header check",e.mode=30;break}if((15&E)!=8){m.msg="unknown compression method",e.mode=30;break}if(C-=4,t=8+(15&(E>>>=4)),e.wbits===0)e.wbits=t;else if(t>e.wbits){m.msg="invalid window size",e.mode=30;break}e.dmax=1<<t,m.adler=e.check=1,e.mode=512&E?10:12,C=E=0;break;case 2:for(;C<16;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if(e.flags=E,(255&e.flags)!=8){m.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){m.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=E>>8&1),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=0,e.mode=3;case 3:for(;C<32;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}e.head&&(e.head.time=E),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,k[2]=E>>>16&255,k[3]=E>>>24&255,e.check=n(e.check,k,4,0)),C=E=0,e.mode=4;case 4:for(;C<16;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}e.head&&(e.head.xflags=255&E,e.head.os=E>>8),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=0,e.mode=5;case 5:if(1024&e.flags){for(;C<16;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}e.length=E,e.head&&(e.head.extra_len=E),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(L<(H=e.length)&&(H=L),H&&(e.head&&(t=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),u.arraySet(e.head.extra,T,U,H,t)),512&e.flags&&(e.check=n(e.check,T,H,U)),L-=H,U+=H,e.length-=H),e.length))break t;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(L===0)break t;for(H=0;t=T[U+H++],e.head&&t&&e.length<65536&&(e.head.name+=String.fromCharCode(t)),t&&H<L;);if(512&e.flags&&(e.check=n(e.check,T,H,U)),L-=H,U+=H,t)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=8;case 8:if(4096&e.flags){if(L===0)break t;for(H=0;t=T[U+H++],e.head&&t&&e.length<65536&&(e.head.comment+=String.fromCharCode(t)),t&&H<L;);if(512&e.flags&&(e.check=n(e.check,T,H,U)),L-=H,U+=H,t)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;C<16;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if(E!==(65535&e.check)){m.msg="header crc mismatch",e.mode=30;break}C=E=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),m.adler=e.check=0,e.mode=12;break;case 10:for(;C<32;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}m.adler=e.check=a(E),C=E=0,e.mode=11;case 11:if(e.havedict===0)return m.next_out=$,m.avail_out=V,m.next_in=U,m.avail_in=L,e.hold=E,e.bits=C,2;m.adler=e.check=1,e.mode=12;case 12:if(B===5||B===6)break t;case 13:if(e.last){E>>>=7&C,C-=7&C,e.mode=27;break}for(;C<3;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}switch(e.last=1&E,C-=1,3&(E>>>=1)){case 0:e.mode=14;break;case 1:if(W(e),e.mode=20,B!==6)break;E>>>=2,C-=2;break t;case 2:e.mode=17;break;case 3:m.msg="invalid block type",e.mode=30}E>>>=2,C-=2;break;case 14:for(E>>>=7&C,C-=7&C;C<32;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if((65535&E)!=(E>>>16^65535)){m.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&E,C=E=0,e.mode=15,B===6)break t;case 15:e.mode=16;case 16:if(H=e.length){if(L<H&&(H=L),V<H&&(H=V),H===0)break t;u.arraySet(J,T,U,H,$),L-=H,U+=H,V-=H,$+=H,e.length-=H;break}e.mode=12;break;case 17:for(;C<14;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if(e.nlen=257+(31&E),E>>>=5,C-=5,e.ndist=1+(31&E),E>>>=5,C-=5,e.ncode=4+(15&E),E>>>=4,C-=4,286<e.nlen||30<e.ndist){m.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have<e.ncode;){for(;C<3;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}e.lens[F[e.have++]]=7&E,E>>>=3,C-=3}for(;e.have<19;)e.lens[F[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,A={bits:e.lenbits},R=g(0,e.lens,0,19,e.lencode,0,e.work,A),e.lenbits=A.bits,R){m.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have<e.nlen+e.ndist;){for(;et=(s=e.lencode[E&(1<<e.lenbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if(st<16)E>>>=Q,C-=Q,e.lens[e.have++]=st;else{if(st===16){for(f=Q+2;C<f;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if(E>>>=Q,C-=Q,e.have===0){m.msg="invalid bit length repeat",e.mode=30;break}t=e.lens[e.have-1],H=3+(3&E),E>>>=2,C-=2}else if(st===17){for(f=Q+3;C<f;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}C-=Q,t=0,H=3+(7&(E>>>=Q)),E>>>=3,C-=3}else{for(f=Q+7;C<f;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}C-=Q,t=0,H=11+(127&(E>>>=Q)),E>>>=7,C-=7}if(e.have+H>e.nlen+e.ndist){m.msg="invalid bit length repeat",e.mode=30;break}for(;H--;)e.lens[e.have++]=t}}if(e.mode===30)break;if(e.lens[256]===0){m.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,A={bits:e.lenbits},R=g(y,e.lens,0,e.nlen,e.lencode,0,e.work,A),e.lenbits=A.bits,R){m.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,A={bits:e.distbits},R=g(p,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,A),e.distbits=A.bits,R){m.msg="invalid distances set",e.mode=30;break}if(e.mode=20,B===6)break t;case 20:e.mode=21;case 21:if(6<=L&&258<=V){m.next_out=$,m.avail_out=V,m.next_in=U,m.avail_in=L,e.hold=E,e.bits=C,h(m,G),$=m.next_out,J=m.output,V=m.avail_out,U=m.next_in,T=m.input,L=m.avail_in,E=e.hold,C=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;et=(s=e.lencode[E&(1<<e.lenbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if(et&&(240&et)==0){for(it=Q,lt=et,ht=st;et=(s=e.lencode[ht+((E&(1<<it+lt)-1)>>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}E>>>=it,C-=it,e.back+=it}if(E>>>=Q,C-=Q,e.back+=Q,e.length=st,et===0){e.mode=26;break}if(32&et){e.back=-1,e.mode=12;break}if(64&et){m.msg="invalid literal/length code",e.mode=30;break}e.extra=15&et,e.mode=22;case 22:if(e.extra){for(f=e.extra;C<f;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}e.length+=E&(1<<e.extra)-1,E>>>=e.extra,C-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;et=(s=e.distcode[E&(1<<e.distbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if((240&et)==0){for(it=Q,lt=et,ht=st;et=(s=e.distcode[ht+((E&(1<<it+lt)-1)>>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=C);){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}E>>>=it,C-=it,e.back+=it}if(E>>>=Q,C-=Q,e.back+=Q,64&et){m.msg="invalid distance code",e.mode=30;break}e.offset=st,e.extra=15&et,e.mode=24;case 24:if(e.extra){for(f=e.extra;C<f;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}e.offset+=E&(1<<e.extra)-1,E>>>=e.extra,C-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){m.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(V===0)break t;if(H=G-V,e.offset>H){if((H=e.offset-H)>e.whave&&e.sane){m.msg="invalid distance too far back",e.mode=30;break}nt=H>e.wnext?(H-=e.wnext,e.wsize-H):e.wnext-H,H>e.length&&(H=e.length),ot=e.window}else ot=J,nt=$-e.offset,H=e.length;for(V<H&&(H=V),V-=H,e.length-=H;J[$++]=ot[nt++],--H;);e.length===0&&(e.mode=21);break;case 26:if(V===0)break t;J[$++]=e.length,V--,e.mode=21;break;case 27:if(e.wrap){for(;C<32;){if(L===0)break t;L--,E|=T[U++]<<C,C+=8}if(G-=V,m.total_out+=G,e.total+=G,G&&(m.adler=e.check=e.flags?n(e.check,J,G,$-G):o(e.check,J,G,$-G)),G=V,(e.flags?E:a(E))!==e.check){m.msg="incorrect data check",e.mode=30;break}C=E=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;C<32;){if(L===0)break t;L--,E+=T[U++]<<C,C+=8}if(E!==(4294967295&e.total)){m.msg="incorrect length check",e.mode=30;break}C=E=0}e.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;default:return i}return m.next_out=$,m.avail_out=V,m.next_in=U,m.avail_in=L,e.hold=E,e.bits=C,(e.wsize||G!==m.avail_out&&e.mode<30&&(e.mode<27||B!==4))&&q(m,m.output,m.next_out,G-m.avail_out)?(e.mode=31,-4):(X-=m.avail_in,G-=m.avail_out,m.total_in+=X,m.total_out+=G,e.total+=G,e.wrap&&G&&(m.adler=e.check=e.flags?n(e.check,J,G,m.next_out-G):o(e.check,J,G,m.next_out-G)),m.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),(X==0&&G===0||B===4)&&R===b&&(R=-5),R)},w.inflateEnd=function(m){if(!m||!m.state)return i;var B=m.state;return B.window&&(B.window=null),m.state=null,b},w.inflateGetHeader=function(m,B){var e;return m&&m.state?(2&(e=m.state).wrap)==0?i:((e.head=B).done=!1,b):i},w.inflateSetDictionary=function(m,B){var e,T=B.length;return m&&m.state?(e=m.state).wrap!==0&&e.mode!==11?i:e.mode===11&&o(1,B,T,0)!==e.check?-3:q(m,B,T,T)?(e.mode=31,-4):(e.havedict=1,b):i},w.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(_,N,w){var u=_("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];N.exports=function(y,p,b,i,d,r,l,a){var c,v,S,x,D,O,j,I,W,q=a.bits,m=0,B=0,e=0,T=0,J=0,U=0,$=0,L=0,V=0,E=0,C=null,X=0,G=new u.Buf16(16),H=new u.Buf16(16),nt=null,ot=0;for(m=0;m<=15;m++)G[m]=0;for(B=0;B<i;B++)G[p[b+B]]++;for(J=q,T=15;1<=T&&G[T]===0;T--);if(T<J&&(J=T),T===0)return d[r++]=20971520,d[r++]=20971520,a.bits=1,0;for(e=1;e<T&&G[e]===0;e++);for(J<e&&(J=e),m=L=1;m<=15;m++)if(L<<=1,(L-=G[m])<0)return-1;if(0<L&&(y===0||T!==1))return-1;for(H[1]=0,m=1;m<15;m++)H[m+1]=H[m]+G[m];for(B=0;B<i;B++)p[b+B]!==0&&(l[H[p[b+B]]++]=B);if(O=y===0?(C=nt=l,19):y===1?(C=o,X-=257,nt=n,ot-=257,256):(C=h,nt=g,-1),m=e,D=r,$=B=E=0,S=-1,x=(V=1<<(U=J))-1,y===1&&852<V||y===2&&592<V)return 1;for(;;){for(j=m-$,W=l[B]<O?(I=0,l[B]):l[B]>O?(I=nt[ot+l[B]],C[X+l[B]]):(I=96,0),c=1<<m-$,e=v=1<<U;d[D+(E>>$)+(v-=c)]=j<<24|I<<16|W|0,v!==0;);for(c=1<<m-1;E&c;)c>>=1;if(c!==0?(E&=c-1,E+=c):E=0,B++,--G[m]==0){if(m===T)break;m=p[b+l[B]]}if(J<m&&(E&x)!==S){for($===0&&($=J),D+=e,L=1<<(U=m-$);U+$<T&&!((L-=G[U+$])<=0);)U++,L<<=1;if(V+=1<<U,y===1&&852<V||y===2&&592<V)return 1;d[S=E&x]=J<<24|U<<16|D-r|0}}return E!==0&&(d[D+E]=m-$<<24|64<<16|0),a.bits=J,0}},{"../utils/common":41}],51:[function(_,N,w){N.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(_,N,w){var u=_("../utils/common"),o=0,n=1;function h(s){for(var k=s.length;0<=--k;)s[k]=0}var g=0,y=29,p=256,b=p+1+y,i=30,d=19,r=2*b+1,l=15,a=16,c=7,v=256,S=16,x=17,D=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],j=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=new Array(2*(b+2));h(q);var m=new Array(2*i);h(m);var B=new Array(512);h(B);var e=new Array(256);h(e);var T=new Array(y);h(T);var J,U,$,L=new Array(i);function V(s,k,F,P,z){this.static_tree=s,this.extra_bits=k,this.extra_base=F,this.elems=P,this.max_length=z,this.has_stree=s&&s.length}function E(s,k){this.dyn_tree=s,this.max_code=0,this.stat_desc=k}function C(s){return s<256?B[s]:B[256+(s>>>7)]}function X(s,k){s.pending_buf[s.pending++]=255&k,s.pending_buf[s.pending++]=k>>>8&255}function G(s,k,F){s.bi_valid>a-F?(s.bi_buf|=k<<s.bi_valid&65535,X(s,s.bi_buf),s.bi_buf=k>>a-s.bi_valid,s.bi_valid+=F-a):(s.bi_buf|=k<<s.bi_valid&65535,s.bi_valid+=F)}function H(s,k,F){G(s,F[2*k],F[2*k+1])}function nt(s,k){for(var F=0;F|=1&s,s>>>=1,F<<=1,0<--k;);return F>>>1}function ot(s,k,F){var P,z,Z=new Array(l+1),K=0;for(P=1;P<=l;P++)Z[P]=K=K+F[P-1]<<1;for(z=0;z<=k;z++){var M=s[2*z+1];M!==0&&(s[2*z]=nt(Z[M]++,M))}}function Q(s){var k;for(k=0;k<b;k++)s.dyn_ltree[2*k]=0;for(k=0;k<i;k++)s.dyn_dtree[2*k]=0;for(k=0;k<d;k++)s.bl_tree[2*k]=0;s.dyn_ltree[2*v]=1,s.opt_len=s.static_len=0,s.last_lit=s.matches=0}function et(s){8<s.bi_valid?X(s,s.bi_buf):0<s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function st(s,k,F,P){var z=2*k,Z=2*F;return s[z]<s[Z]||s[z]===s[Z]&&P[k]<=P[F]}function it(s,k,F){for(var P=s.heap[F],z=F<<1;z<=s.heap_len&&(z<s.heap_len&&st(k,s.heap[z+1],s.heap[z],s.depth)&&z++,!st(k,P,s.heap[z],s.depth));)s.heap[F]=s.heap[z],F=z,z<<=1;s.heap[F]=P}function lt(s,k,F){var P,z,Z,K,M=0;if(s.last_lit!==0)for(;P=s.pending_buf[s.d_buf+2*M]<<8|s.pending_buf[s.d_buf+2*M+1],z=s.pending_buf[s.l_buf+M],M++,P===0?H(s,z,k):(H(s,(Z=e[z])+p+1,k),(K=O[Z])!==0&&G(s,z-=T[Z],K),H(s,Z=C(--P),F),(K=j[Z])!==0&&G(s,P-=L[Z],K)),M<s.last_lit;);H(s,v,k)}function ht(s,k){var F,P,z,Z=k.dyn_tree,K=k.stat_desc.static_tree,M=k.stat_desc.has_stree,Y=k.stat_desc.elems,rt=-1;for(s.heap_len=0,s.heap_max=r,F=0;F<Y;F++)Z[2*F]!==0?(s.heap[++s.heap_len]=rt=F,s.depth[F]=0):Z[2*F+1]=0;for(;s.heap_len<2;)Z[2*(z=s.heap[++s.heap_len]=rt<2?++rt:0)]=1,s.depth[z]=0,s.opt_len--,M&&(s.static_len-=K[2*z+1]);for(k.max_code=rt,F=s.heap_len>>1;1<=F;F--)it(s,Z,F);for(z=Y;F=s.heap[1],s.heap[1]=s.heap[s.heap_len--],it(s,Z,1),P=s.heap[1],s.heap[--s.heap_max]=F,s.heap[--s.heap_max]=P,Z[2*z]=Z[2*F]+Z[2*P],s.depth[z]=(s.depth[F]>=s.depth[P]?s.depth[F]:s.depth[P])+1,Z[2*F+1]=Z[2*P+1]=z,s.heap[1]=z++,it(s,Z,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],(function(tt,ut){var pt,ft,mt,at,gt,kt,dt=ut.dyn_tree,St=ut.max_code,At=ut.stat_desc.static_tree,It=ut.stat_desc.has_stree,Ot=ut.stat_desc.extra_bits,zt=ut.stat_desc.extra_base,_t=ut.stat_desc.max_length,bt=0;for(at=0;at<=l;at++)tt.bl_count[at]=0;for(dt[2*tt.heap[tt.heap_max]+1]=0,pt=tt.heap_max+1;pt<r;pt++)_t<(at=dt[2*dt[2*(ft=tt.heap[pt])+1]+1]+1)&&(at=_t,bt++),dt[2*ft+1]=at,St<ft||(tt.bl_count[at]++,gt=0,zt<=ft&&(gt=Ot[ft-zt]),kt=dt[2*ft],tt.opt_len+=kt*(at+gt),It&&(tt.static_len+=kt*(At[2*ft+1]+gt)));if(bt!==0){do{for(at=_t-1;tt.bl_count[at]===0;)at--;tt.bl_count[at]--,tt.bl_count[at+1]+=2,tt.bl_count[_t]--,bt-=2}while(0<bt);for(at=_t;at!==0;at--)for(ft=tt.bl_count[at];ft!==0;)St<(mt=tt.heap[--pt])||(dt[2*mt+1]!==at&&(tt.opt_len+=(at-dt[2*mt+1])*dt[2*mt],dt[2*mt+1]=at),ft--)}})(s,k),ot(Z,rt,s.bl_count)}function t(s,k,F){var P,z,Z=-1,K=k[1],M=0,Y=7,rt=4;for(K===0&&(Y=138,rt=3),k[2*(F+1)+1]=65535,P=0;P<=F;P++)z=K,K=k[2*(P+1)+1],++M<Y&&z===K||(M<rt?s.bl_tree[2*z]+=M:z!==0?(z!==Z&&s.bl_tree[2*z]++,s.bl_tree[2*S]++):M<=10?s.bl_tree[2*x]++:s.bl_tree[2*D]++,Z=z,rt=(M=0)===K?(Y=138,3):z===K?(Y=6,3):(Y=7,4))}function R(s,k,F){var P,z,Z=-1,K=k[1],M=0,Y=7,rt=4;for(K===0&&(Y=138,rt=3),P=0;P<=F;P++)if(z=K,K=k[2*(P+1)+1],!(++M<Y&&z===K)){if(M<rt)for(;H(s,z,s.bl_tree),--M!=0;);else z!==0?(z!==Z&&(H(s,z,s.bl_tree),M--),H(s,S,s.bl_tree),G(s,M-3,2)):M<=10?(H(s,x,s.bl_tree),G(s,M-3,3)):(H(s,D,s.bl_tree),G(s,M-11,7));Z=z,rt=(M=0)===K?(Y=138,3):z===K?(Y=6,3):(Y=7,4)}}h(L);var A=!1;function f(s,k,F,P){G(s,(g<<1)+(P?1:0),3),(function(z,Z,K,M){et(z),X(z,K),X(z,~K),u.arraySet(z.pending_buf,z.window,Z,K,z.pending),z.pending+=K})(s,k,F)}w._tr_init=function(s){A||((function(){var k,F,P,z,Z,K=new Array(l+1);for(z=P=0;z<y-1;z++)for(T[z]=P,k=0;k<1<<O[z];k++)e[P++]=z;for(e[P-1]=z,z=Z=0;z<16;z++)for(L[z]=Z,k=0;k<1<<j[z];k++)B[Z++]=z;for(Z>>=7;z<i;z++)for(L[z]=Z<<7,k=0;k<1<<j[z]-7;k++)B[256+Z++]=z;for(F=0;F<=l;F++)K[F]=0;for(k=0;k<=143;)q[2*k+1]=8,k++,K[8]++;for(;k<=255;)q[2*k+1]=9,k++,K[9]++;for(;k<=279;)q[2*k+1]=7,k++,K[7]++;for(;k<=287;)q[2*k+1]=8,k++,K[8]++;for(ot(q,b+1,K),k=0;k<i;k++)m[2*k+1]=5,m[2*k]=nt(k,5);J=new V(q,O,p+1,b,l),U=new V(m,j,0,i,l),$=new V(new Array(0),I,0,d,c)})(),A=!0),s.l_desc=new E(s.dyn_ltree,J),s.d_desc=new E(s.dyn_dtree,U),s.bl_desc=new E(s.bl_tree,$),s.bi_buf=0,s.bi_valid=0,Q(s)},w._tr_stored_block=f,w._tr_flush_block=function(s,k,F,P){var z,Z,K=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=(function(M){var Y,rt=4093624447;for(Y=0;Y<=31;Y++,rt>>>=1)if(1&rt&&M.dyn_ltree[2*Y]!==0)return o;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return n;for(Y=32;Y<p;Y++)if(M.dyn_ltree[2*Y]!==0)return n;return o})(s)),ht(s,s.l_desc),ht(s,s.d_desc),K=(function(M){var Y;for(t(M,M.dyn_ltree,M.l_desc.max_code),t(M,M.dyn_dtree,M.d_desc.max_code),ht(M,M.bl_desc),Y=d-1;3<=Y&&M.bl_tree[2*W[Y]+1]===0;Y--);return M.opt_len+=3*(Y+1)+5+5+4,Y})(s),z=s.opt_len+3+7>>>3,(Z=s.static_len+3+7>>>3)<=z&&(z=Z)):z=Z=F+5,F+4<=z&&k!==-1?f(s,k,F,P):s.strategy===4||Z===z?(G(s,2+(P?1:0),3),lt(s,q,m)):(G(s,4+(P?1:0),3),(function(M,Y,rt,tt){var ut;for(G(M,Y-257,5),G(M,rt-1,5),G(M,tt-4,4),ut=0;ut<tt;ut++)G(M,M.bl_tree[2*W[ut]+1],3);R(M,M.dyn_ltree,Y-1),R(M,M.dyn_dtree,rt-1)})(s,s.l_desc.max_code+1,s.d_desc.max_code+1,K+1),lt(s,s.dyn_ltree,s.dyn_dtree)),Q(s),P&&et(s)},w._tr_tally=function(s,k,F){return s.pending_buf[s.d_buf+2*s.last_lit]=k>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&k,s.pending_buf[s.l_buf+s.last_lit]=255&F,s.last_lit++,k===0?s.dyn_ltree[2*F]++:(s.matches++,k--,s.dyn_ltree[2*(e[F]+p+1)]++,s.dyn_dtree[2*C(k)]++),s.last_lit===s.lit_bufsize-1},w._tr_align=function(s){G(s,2,3),H(s,v,q),(function(k){k.bi_valid===16?(X(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)})(s)}},{"../utils/common":41}],53:[function(_,N,w){N.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(_,N,w){(function(u){(function(o,n){if(!o.setImmediate){var h,g,y,p,b=1,i={},d=!1,r=o.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(o);l=l&&l.setTimeout?l:o,h={}.toString.call(o.process)==="[object process]"?function(S){process.nextTick(function(){c(S)})}:(function(){if(o.postMessage&&!o.importScripts){var S=!0,x=o.onmessage;return o.onmessage=function(){S=!1},o.postMessage("","*"),o.onmessage=x,S}})()?(p="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(S){o.postMessage(p+S,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(S){c(S.data)},function(S){y.port2.postMessage(S)}):r&&"onreadystatechange"in r.createElement("script")?(g=r.documentElement,function(S){var x=r.createElement("script");x.onreadystatechange=function(){c(S),x.onreadystatechange=null,g.removeChild(x),x=null},g.appendChild(x)}):function(S){setTimeout(c,0,S)},l.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),D=0;D<x.length;D++)x[D]=arguments[D+1];var O={callback:S,args:x};return i[b]=O,h(b),b++},l.clearImmediate=a}function a(S){delete i[S]}function c(S){if(d)setTimeout(c,0,S);else{var x=i[S];if(x){d=!0;try{(function(D){var O=D.callback,j=D.args;switch(j.length){case 0:O();break;case 1:O(j[0]);break;case 2:O(j[0],j[1]);break;case 3:O(j[0],j[1],j[2]);break;default:O.apply(n,j)}})(x)}finally{a(S),d=!1}}}}function v(S){S.source===o&&typeof S.data=="string"&&S.data.indexOf(p)===0&&c(+S.data.slice(p.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof vt<"u"?vt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(xt)),xt.exports}var Et=Tt();const Dt=Bt(Et),Nt=Rt({__proto__:null,default:Dt},[Et]);export{Nt as j};
|