9router-proxy 0.6.19 → 0.6.21
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/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +19 -19
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/prerender-manifest.json +4 -4
- package/app/.next-cli-build/react-loadable-manifest.json +7 -7
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +6 -6
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +5 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +19 -19
- package/app/.next-cli-build/server/chunks/1260.js +1 -1
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/1356.js +1 -1
- package/app/.next-cli-build/server/chunks/1679.js +1 -1
- package/app/.next-cli-build/server/chunks/1757.js +1 -1
- package/app/.next-cli-build/server/chunks/21.js +1 -1
- package/app/.next-cli-build/server/chunks/2327.js +1 -1
- package/app/.next-cli-build/server/chunks/2380.js +29 -0
- package/app/.next-cli-build/server/chunks/24.js +1 -1
- package/app/.next-cli-build/server/chunks/2822.js +1 -0
- package/app/.next-cli-build/server/chunks/3726.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4279.js +1 -1
- package/app/.next-cli-build/server/chunks/4882.js +1 -1
- package/app/.next-cli-build/server/chunks/4956.js +1 -1
- package/app/.next-cli-build/server/chunks/4957.js +1 -1
- package/app/.next-cli-build/server/chunks/5026.js +1 -1
- package/app/.next-cli-build/server/chunks/5081.js +3 -6
- package/app/.next-cli-build/server/chunks/5299.js +3 -3
- package/app/.next-cli-build/server/chunks/5308.js +1 -1
- package/app/.next-cli-build/server/chunks/5330.js +10 -10
- package/app/.next-cli-build/server/chunks/5615.js +2 -2
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6171.js +1 -1
- package/app/.next-cli-build/server/chunks/6638.js +1 -1
- package/app/.next-cli-build/server/chunks/6763.js +1 -1
- package/app/.next-cli-build/server/chunks/6921.js +15 -11
- package/app/.next-cli-build/server/chunks/6983.js +1 -1
- package/app/.next-cli-build/server/chunks/7187.js +1 -1
- package/app/.next-cli-build/server/chunks/7220.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/778.js +1 -1
- package/app/.next-cli-build/server/chunks/7843.js +1 -1
- package/app/.next-cli-build/server/chunks/794.js +1 -1
- package/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/app/.next-cli-build/server/chunks/8251.js +1 -1
- package/app/.next-cli-build/server/chunks/8271.js +1 -1
- package/app/.next-cli-build/server/chunks/8402.js +1 -1
- package/app/.next-cli-build/server/chunks/8623.js +3 -3
- package/app/.next-cli-build/server/chunks/8895.js +4 -4
- package/app/.next-cli-build/server/chunks/8920.js +1 -1
- package/app/.next-cli-build/server/chunks/9287.js +1 -0
- package/app/.next-cli-build/server/chunks/9289.js +1 -0
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +1 -1
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/preview-props.json +3 -3
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-fe52dc90990db91b.js +1 -0
- package/app/.next-cli-build/static/chunks/4285-8e8fd1dc26ade67d.js +1 -0
- package/app/.next-cli-build/static/chunks/{5497-11663c3e80a3cf5a.js → 5497-abf32427a085ebfc.js} +2 -2
- package/app/.next-cli-build/static/chunks/{761-c9086970fe03f4a1.js → 761-53a017633cce939e.js} +3 -3
- package/app/.next-cli-build/static/chunks/9233.e1c3403556983abd.js +69 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-48ac55fc1ff50baa.js +69 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-3c63a3db19c1a67b.js +27 -0
- package/app/.next-cli-build/static/chunks/{webpack-6463d5fe66fbfc78.js → webpack-d230ecbd7bd706e6.js} +1 -1
- package/app/.next-cli-build/static/css/b58b1123edb3578f.css +1 -0
- package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
- package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
- package/app/node_modules/@aws-sdk/core/package.json +3 -3
- package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +3 -3
- package/app/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/app/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
- package/app/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/app/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/app/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/app/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/app/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/app/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/app/node_modules/@aws-sdk/credential-providers/package.json +13 -13
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/app/node_modules/@aws-sdk/nested-clients/package.json +5 -5
- package/app/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
- package/app/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/app/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/app/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +13 -37
- package/app/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +44 -29
- package/app/node_modules/@smithy/core/package.json +1 -1
- package/app/node_modules/@smithy/node-http-handler/dist-cjs/index.js +48 -6
- package/app/node_modules/@smithy/node-http-handler/package.json +3 -3
- package/app/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
- package/app/node_modules/baseline-browser-mapping/package.json +1 -1
- package/app/node_modules/bowser/es5.js +14 -1
- package/app/node_modules/bowser/package.json +90 -31
- package/app/node_modules/sql.js/dist/sql-wasm.js +93 -92
- package/app/node_modules/sql.js/package.json +1 -1
- package/app/open-sse/lib/deepseek-pow-hash.js +114 -428
- package/app/package.json +1 -1
- package/app/public/providers/nace.png +0 -0
- package/app/src/mitm/server.js +38 -34
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/4125.js +0 -1
- package/app/.next-cli-build/server/chunks/5840.js +0 -1
- package/app/.next-cli-build/server/chunks/6140.js +0 -1
- package/app/.next-cli-build/server/chunks/7732.js +0 -1
- package/app/.next-cli-build/server/chunks/8499.js +0 -23
- package/app/.next-cli-build/static/chunks/1321-d42a1c66e9cf1a99.js +0 -1
- package/app/.next-cli-build/static/chunks/4285-e97c3151f30199d8.js +0 -1
- package/app/.next-cli-build/static/chunks/9233.b5ad25d75f88baa7.js +0 -65
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-d61866af0fa7b54f.js +0 -69
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-44c9bfdcf25db09b.js +0 -27
- package/app/.next-cli-build/static/css/0a4c443a8a7225f7.css +0 -1
- /package/app/.next-cli-build/static/{MoWT_XpUp-bKSt7-wK19U → i1Kua3lBkcnBzhQ70lbQO}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{MoWT_XpUp-bKSt7-wK19U → i1Kua3lBkcnBzhQ70lbQO}/_ssgManifest.js +0 -0
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
exports.id=5081,exports.ids=[5081],exports.modules={241:function(a){(function(){a.exports=class{handleError(a){throw Error(a)}}}).call(this)},469:function(a,b,c){(function(){var b,d;b=c(26468),d=c(73067),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))}}}).call(this)},1243:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(c),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}toString(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))}}}).call(this)},2847:function(a,b){(function(){"use strict";var a;a=new RegExp(/(?!xmlns)^.*:/),b.normalize=function(a){return a.toLowerCase()},b.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},b.stripPrefix=function(b){return b.replace(a,"")},b.parseNumbers=function(a){return isNaN(a)||(a=a%1==0?parseInt(a,10):parseFloat(a)),a},b.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a="true"===a.toLowerCase()),a}}).call(this)},4107:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SignedXml=void 0;let d=c(62119),e=c(12749),f=c(28354),g=c(42429),h=c(4776),i=c(64564),j=c(18462),k=c(44558),l=c(32748),m=c(61894);function n(a){return m.findChildren(a,"SignatureValue")[0]?.textContent?.replace(/[\t\n\r ]/g,"")}let o="http://www.w3.org/2001/10/xml-exc-c14n#";function p(a){return a===o||"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"===a}function q(a){return Buffer.from(n(a)??"","base64")}let r=(0,f.deprecate)(()=>{},'Resolving a `Reference` whose `URI` is neither empty nor starts with "#" as a same-document ID is deprecated, and such a signature will not verify in version 7.0. A same-document `URI` is empty, or "#" followed by an ID.',"XML_CRYPTO_REFERENCE_URI_WITHOUT_FRAGMENT"),s=(0,f.deprecate)(()=>{},"Skipping a `Transform` that has no `Algorithm` attribute is deprecated, and a signature that has one will not verify in version 7.0.","XML_CRYPTO_TRANSFORM_WITHOUT_ALGORITHM"),t=(0,f.deprecate)(()=>{},"A `location.reference` that selects a node other than an element is deprecated and will throw in version 7.0. Select the element to place the signature in or next to.","XML_CRYPTO_LOCATION_REFERENCE_NOT_ELEMENT"),u=(0,f.deprecate)(()=>{},'`isEmptyUri: true` on a reference whose `xpath` selects anything but the document element is deprecated and will throw in version 7.0. `URI=""` identifies the whole document, so the signature this produces does not verify.',"XML_CRYPTO_EMPTY_URI_NOT_DOCUMENT_ELEMENT"),v=(0,f.deprecate)(()=>{},"The callback form of `computeSignature()` and `checkSignature()` is deprecated and will be removed in version 7.0. Call them without a callback. For a signature algorithm that works asynchronously, implement `getSignatureAsync()` and `verifySignatureAsync()` on it and call `computeSignatureAsync()` and `checkSignatureAsync()`, which return a promise.","XML_CRYPTO_CALLBACK_FORM"),w=(0,f.deprecate)(()=>{},"`getOriginalXmlWithIds()` is deprecated and will be removed in a future version. Use the `location` option of `computeSignature()` to place the signature, then `getSignedXml()`. For a detached signature, put an ID attribute the signer recognizes on each referenced element (`wsu:Id` for WS-Security), sign that document, and send it alongside `getSignatureXml()`.","XML_CRYPTO_GET_ORIGINAL_XML_WITH_IDS"),x=(0,f.deprecate)(()=>{},"Signing or verifying a document that has a document type declaration (`<!DOCTYPE>`) is deprecated and will throw in version 7.0. The declaration is not processed, so an entity it declares is not expanded and a default attribute it declares is not added to what is signed or verified.","XML_CRYPTO_DOCUMENT_TYPE_DECLARATION"),y=(0,f.deprecate)(()=>{},"`validateElementAgainstReferences()` is deprecated and will be removed in a future version. After `checkSignature()` succeeds, use the XML that `getSignedReferences()` returns instead of nodes from the original document.","XML_CRYPTO_VALIDATE_ELEMENT_AGAINST_REFERENCES"),z=(0,f.deprecate)(()=>{},"Applying `enveloped-signature` after a transform that returns a string, such as a canonicalization, is deprecated and will throw in a future version. List `enveloped-signature` before any canonicalization in the `Reference`.","XML_CRYPTO_ENVELOPED_SIGNATURE_AFTER_CANONICALIZATION");class A{constructor(a={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=A.getKeyInfoContent,this.getCertFromKeyInfo=A.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.loadedPrefixLists=new WeakMap,this.signedReferences=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":h.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":h.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":j.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":j.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":i.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":k.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":k.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":k.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":l.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":l.RsaSha256,"http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1":l.RsaSha256Mgf1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":l.RsaSha512};let{idMode:b,idAttribute:c,privateKey:d,publicCert:e,signatureAlgorithm:f,canonicalizationAlgorithm:g,inclusiveNamespacesPrefixList:n,implicitTransforms:o,keyInfoAttributes:p,getKeyInfoContent:q,getCertFromKeyInfo:r,objects:s}=a;this.idMode=b,this.idAttributes=["Id","ID","id"],c&&this.idAttributes.unshift(c),this.privateKey=d,this.publicCert=e,this.signatureAlgorithm=f??this.signatureAlgorithm,this.canonicalizationAlgorithm=g,"string"==typeof n?this.inclusiveNamespacesPrefixList=n.split(" "):m.isArrayHasLength(n)&&(this.inclusiveNamespacesPrefixList=n),this.implicitTransforms=o??this.implicitTransforms,this.keyInfoAttributes=p??this.keyInfoAttributes,this.getKeyInfoContent=q??this.getKeyInfoContent,this.getCertFromKeyInfo=r??A.noop,this.objects=s,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":l.HmacSha1},this.getKeyInfoContent=A.noop}static getKeyInfoContent({publicCert:a,prefix:b}){if(null==a)return null;b=b?`${b}:`:"",Buffer.isBuffer(a)&&(a=a.toString("latin1"));let c="string"==typeof a?function(a){let b=m.pemCertificates(a);if(b.length>0)return b;try{return[m.bareCertificate(a)]}catch{return[]}}(a):[];if(0===c.length)return null;let d=c.map(a=>`<${b}X509Certificate>${a}</${b}X509Certificate>`).join("");return`<${b}X509Data>${d}</${b}X509Data>`}static getCertFromKeyInfo(a){if(null!=a){let b=g.select1(".//*[local-name(.)='X509Certificate']",a);if(d.isElementNode(b))return m.toPem(b.textContent,"CERTIFICATE")}return null}checkSignature(a,b){if(null!=b&&"function"!=typeof b)throw Error("Last parameter must be a callback function");b&&v();let c=this.validateReferences(a,b);if(!c)return c;let{signer:d,key:e,unverifiedSignedInfoCanon:f,accept:g}=c;if(!b){if(!0!==d.verifySignature(f,e,this.signatureValue))throw this.invalidSignature();return g(),!0}let h=!1,i=(a,c)=>{h||(h=!0,a?b(a):!0!==c?b(this.invalidSignature()):(g(),b(null,!0)))},j=d.verifySignature(f,e,this.signatureValue,i);"boolean"==typeof j&&i(null,j)}async checkSignatureAsync(a){let b=this.validateReferences(a);if(!b)return!1;let{signer:c,key:d,unverifiedSignedInfoCanon:e,accept:f}=b;if(!0!==("function"==typeof c.verifySignatureAsync?await c.verifySignatureAsync(e,d,this.signatureValue):c.verifySignature(e,d,this.signatureValue)))throw this.invalidSignature();return f(),!0}invalidSignature(){return Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`)}validateReferences(a,b){let c=this.signedReferences;this.signedReferences=[],this.signedXml=a;let d=new e.DOMParser().parseFromString(a);null!=d.doctype&&x(),this.references=[];let f=this.getCanonSignedInfoXml(d);if(!f){if(b)return void b(Error("Canonical signed info cannot be empty"),!1);throw Error("Canonical signed info cannot be empty")}let g=new e.DOMParser().parseFromString(f,"text/xml").documentElement;if(!g){if(b)return void b(Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);throw Error("Could not parse unverifiedSignedInfoCanon into a document")}let h=m.findChildren(g,"Reference");if(!m.isArrayHasLength(h)){if(b)return void b(Error("could not find any Reference elements"),!1);throw Error("could not find any Reference elements")}for(let a of h)this.loadReference(a);let i=[];for(let a of this.references){let c=this.validateReference(a,d);if(void 0===c){if(b)return void b(Error("Could not validate all references"),!1);return!1}i.push(c)}let j=this.findSignatureAlgorithm(this.signatureAlgorithm),k=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(null==k)throw Error("KeyInfo or publicCert or privateKey is required to validate signature");let l=this.references;return{signer:j,key:k,unverifiedSignedInfoCanon:f,accept:()=>{this.signedReferences=[...c,...i],l.forEach((a,b)=>{a.signedReference=i[b]})}}}getCanonSignedInfoXml(a){if(null==this.signatureNode)throw Error("No signature found.");if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");let b=m.findChildren(this.signatureNode,"SignedInfo");if(0===b.length)throw Error("could not find SignedInfo element in the message");if(b.length>1)throw Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if(("http://www.w3.org/TR/2001/REC-xml-c14n-20010315"===this.canonicalizationAlgorithm||"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"===this.canonicalizationAlgorithm)&&(!a||"object"!=typeof a))throw Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");let c=this.findSignedInfoAncestorContext(a);return this.getCanonXml([this.canonicalizationAlgorithm],b[0],c)}findSignedInfoAncestorContext(a){let b=this.findLoadedSignature(a);if(null==b)return{ancestorNamespaces:[],ancestorXmlAttributes:[]};let c=m.findChildren(b,"SignedInfo")[0];if(null==c)throw Error("could not find SignedInfo element in the message");return{ancestorNamespaces:m.findAncestorNsForElement(c),ancestorXmlAttributes:m.findAncestorXmlAttributes(c)}}getCanonReferenceXml(a,b,c){Array.isArray(b.transforms)&&(b.ancestorNamespaces=m.findAncestorNs(a,b.xpath,this.namespaceResolver));let d={ancestorNamespaces:b.ancestorNamespaces,ancestorXmlAttributes:m.findAncestorXmlAttributes(c)},e=""===b.uri||b.uri.startsWith("#");return this.canonicalize(b.transforms,c,d,{discardComments:e,prefixLists:this.loadedPrefixLists.get(b)??this.getSigningPrefixLists(b)})}getSigningPrefixLists(a){return a.transforms.map(b=>p(this.findCanonicalizationAlgorithm(b).getAlgorithmName())?a.inclusiveNamespacesPrefixList:[])}signingInput(a){let b=this.getCanonSignedInfoXml(a),c=this.findSignatureAlgorithm(this.signatureAlgorithm);if(null==this.privateKey)throw Error("Private key is required to compute signature");return{signedInfoCanon:b,signer:c,privateKey:this.privateKey}}calculateSignatureValue(a,b){let{signedInfoCanon:c,signer:d,privateKey:e}=this.signingInput(a);"function"==typeof b?d.getSignature(c,e,b):this.signatureValue=d.getSignature(c,e)}async calculateSignatureValueAsync(a){let{signedInfoCanon:b,signer:c,privateKey:d}=this.signingInput(a),e="function"==typeof c.getSignatureAsync?await c.getSignatureAsync(b,d):c.getSignature(b,d);if("string"!=typeof e)throw Error("the signature algorithm returned no signature; an algorithm that signs asynchronously implements getSignatureAsync()");this.signatureValue=e}findSignatureAlgorithm(a){if(null==a)throw Error("signatureAlgorithm is required");let b=this.SignatureAlgorithms[a];if(b)return new b;throw Error(`signature algorithm '${a}' is not supported`)}findCanonicalizationAlgorithm(a){if(null!=a){let b=this.CanonicalizationAlgorithms[a];if(b)return new b}throw Error(`canonicalization algorithm '${a}' is not supported`)}findHashAlgorithm(a){let b=this.HashAlgorithms[a];if(b)return new b;throw Error(`hash algorithm '${a}' is not supported`)}validateElementAgainstReferences(a,b){let c;if(y(),"string"==typeof a){let e=g.select1(a,b);d.assertIsElementNode(e),c=e}else c=a;for(let a of this.getReferences()){let d=a.uri?.[0]==="#"?a.uri.substring(1):a.uri;for(let b of this.idAttributes)if(d===c.getAttribute(b)){a.xpath=`//*[@*[local-name(.)='${b}']='${d}']`;break}let e=this.getCanonReferenceXml(b,a,c),f=this.findHashAlgorithm(a.digestAlgorithm).getHash(e);if(m.validateDigestValue(f,a.digestValue))return a}throw Error("No references passed validation")}validateReference(a,b){let c=a.uri?.[0]==="#"?a.uri.substring(1):a.uri,e=null;if(""!==c&&c===a.uri&&r(),""===c)e=m.hasDocumentLevelProcessingInstruction(b)?b:g.select1("//*",b);else if(c?.indexOf("'")!==-1)throw Error("Cannot validate a uri with quotes inside it");else{let d=0;for(let f of this.idAttributes){let h=`//*[@*[local-name(.)='${f}']='${c}']`,i=g.select(h,b);if(m.isArrayHasLength(i)){if((d+=i.length)>1)throw Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");e=i[0],a.xpath=h}}}if(a.getValidatedNode=(0,f.deprecate)(c=>{if("string"!=typeof(c=c||a.xpath)||null!=a.validationError)return null;let e=g.select1(c,b);return d.isNodeLike(e)?e:null},"`ref.getValidatedNode()` is deprecated and insecure. Use `ref.signedReference` or `this.getSignedReferences()` instead."),!d.isNodeLike(e)){let b=Error(`invalid signature: the signature references an element with uri ${a.uri} but could not find such element in the xml`);a.validationError=b;return}let h=this.getCanonReferenceXml(b,a,e),i=this.findHashAlgorithm(a.digestAlgorithm).getHash(h);if(!m.validateDigestValue(i,a.digestValue)){let b=Error(`invalid signature: for uri ${a.uri} calculated digest is ${i} but the xml to validate supplies digest ${a.digestValue}`);a.validationError=b;return}return h}findSignatures(a){let b=g.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return d.isArrayOfNodes(b)?b:[]}loadSignature(a){"string"==typeof a?this.signatureNode=a=new e.DOMParser().parseFromString(a):this.signatureNode=a,this.signatureXml=a.toString();let b=g.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",a);if(!d.isNodeLike(b))throw Error("could not find CanonicalizationMethod/@Algorithm element");d.isAttributeNode(b)&&(this.canonicalizationAlgorithm=b.value);let c=g.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",a);d.isAttributeNode(c)&&(this.signatureAlgorithm=c.value);let f=m.findChildren(this.signatureNode,"SignedInfo");if(!m.isArrayHasLength(f))throw Error("no signed info node found");if(f.length>1)throw Error("could not load signature that contains multiple SignedInfo nodes");let h=this.canonicalizationAlgorithm;h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==h||(h="http://www.w3.org/2001/10/xml-exc-c14n#");let i=this.getCanonXml([h],f[0]),j=new e.DOMParser().parseFromString(i,"text/xml").documentElement;this.references=[];let k=m.findChildren(j,"Reference");if(!m.isArrayHasLength(k))throw Error("could not find any Reference elements");for(let a of k)this.loadReference(a);this.signatureValue=n(a)??"",this.keyInfo=m.findChildren(a,"KeyInfo")[0]??null}loadReference(a){let b=m.findChildren(a,"DigestMethod");if(0===b.length)throw Error(`could not find DigestMethod in reference ${a.toString()}`);let c=b[0],e=m.findAttr(c,"Algorithm");if(!e)throw Error(`could not find Algorithm attribute in node ${c.toString()}`);let f=e.value;if(0===(b=m.findChildren(a,"DigestValue")).length)throw Error(`could not find DigestValue node in reference ${a.toString()}`);if(b.length>1)throw Error(`could not load reference for a node that contains multiple DigestValue nodes: ${a.toString()}`);let g=b[0].textContent;if(!g)throw Error(`could not find the value of DigestValue in ${a.toString()}`);let h=[],i=[];if(0!==(b=m.findChildren(a,"Transforms")).length){let a=b[0];for(let b of m.findChildren(a,"Transform")){let a=m.findAttr(b,"Algorithm");if(a){h.push(a.value);let c=m.findChildren(b,"InclusiveNamespaces");c.forEach(j.warnUnlessExclusiveC14nNamespace),i.push(c.flatMap(a=>(a.getAttribute("PrefixList")??"").split(/[ \t\r\n]+/)).filter(a=>a.length>0))}else s()}}let k=i.filter((a,b)=>p(h[b])).pop()??[];m.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach(function(a){h.push(a),i.push(k)}),(0===h.length||"http://www.w3.org/2000/09/xmldsig#enveloped-signature"===h[h.length-1])&&h.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");let l=d.isElementNode(a)&&a.getAttribute("URI")||void 0;this.addReference({transforms:h,digestAlgorithm:f,uri:l,digestValue:g,inclusiveNamespacesPrefixList:k,isEmptyUri:!1}),this.loadedPrefixLists.set(this.references[this.references.length-1],i)}addReference({xpath:a,transforms:b,digestAlgorithm:c,uri:d="",digestValue:e,inclusiveNamespacesPrefixList:f=[],isEmptyUri:g=!1,id:h,type:i}){if(null==c)throw Error("digestAlgorithm is required");if(!m.isArrayHasLength(b))throw Error("transforms must contain at least one transform algorithm");this.references.push({xpath:a,transforms:b,digestAlgorithm:c,uri:d,digestValue:e,inclusiveNamespacesPrefixList:f,isEmptyUri:g,id:h,type:i,getValidatedNode:()=>{throw Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}getSignedReferences(){return[...this.signedReferences]}computeSignature(a,b,c){let d;"function"==typeof b&&null==c?(d=b,b={}):(d=c,b=b??{}),"function"==typeof d&&v();let e=this.prepareSignature(a,b,d);e&&("function"==typeof d?this.calculateSignatureValue(e.doc,(a,b)=>{a?d(a):(this.signatureValue=b||"",e.insertSignatureValue(),d(null,this))}):(this.calculateSignatureValue(e.doc),e.insertSignatureValue()))}async computeSignatureAsync(a,b={}){let c=this.prepareSignature(a,b);return await this.calculateSignatureValueAsync(c.doc),c.insertSignatureValue(),this}prepareSignature(a,b,c){let f,h=new e.DOMParser().parseFromString(a);null!=h.doctype&&x();let i="xmlns",j=[],k=["append","prepend","before","after"],l=b.prefix,n=b.attrs||{},o=b.location||{},p=b.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(a){return a?p[a]:null}},o.reference=o.reference||"/*",o.action=o.action||"append",-1===k.indexOf(o.action)){let a=Error(`location.action option has an invalid action: ${o.action}, must be any of the following values: ${k.join(", ")}`);if(c)return void c(a);throw a}let q=new Map;for(let a of this.getReferences()){let b=g.selectWithResolver(a.xpath??"",h,this.namespaceResolver);d.assertIsArrayOfNodes(b);let c=b.map(a=>(d.assertIsElementNode(a),{node:a}));q.set(a,c)}this.ensureTargetsHaveIds(q),this.originalXmlWithIds=this.serialize(h),l?(i+=`:${l}`,f=`${l}:`):f="",Object.keys(n).forEach(function(a){"xmlns"!==a&&a!==i&&j.push(`${a}="${n[a]}"`)}),j.push(`${i}="http://www.w3.org/2000/09/xmldsig#"`);let r=`<${f}Signature ${j.join(" ")}>`;r+=this.createSignedInfo(h,l),r+=this.getKeyInfo(l),r+=this.getObjects(l),r+=`</${f}Signature>`;let s="";Object.keys(p).forEach(function(a){s+=`xmlns:${a}="${p[a]}" `});let u=`<Dummy ${s}>${r}</Dummy>`,v=new e.DOMParser().parseFromString(u).documentElement.firstChild,w=g.select1(o.reference,h);if(!d.isNodeLike(w)){let a=Error(`the following xpath cannot be used because it was not found: ${o.reference}`);if(c)return void c(a);throw a}d.isElementNode(w)||t();let y=this.signatureNode;this.signatureNode=v;try{for(let[a,b]of q)for(let c of b)c.digestValue=this.calculateReferenceDigest(a,c.node);if("append"===o.action)w.appendChild(v);else if("prepend"===o.action)w.insertBefore(v,w.firstChild);else{let a=w.parentNode;if(null==a)throw Error(`\`location.reference\` selects a node without a parent, so we can't insert \`${o.action}\``);a.insertBefore(v,"before"===o.action?w:w.nextSibling)}this.addAllReferences(h,v,q,l)}catch(a){throw this.signatureNode=y,a}let z=m.findChildren(this.signatureNode,"SignedInfo");if(0===z.length){let a=Error("could not find SignedInfo element in the message");if(c)return void c(a);throw a}let A=z[0],B=()=>{v.insertBefore(this.createSignature(l),A.nextSibling),this.signatureXml=this.serialize(v),this.signedXml=this.serialize(h)};return{doc:h,insertSignatureValue:B}}serialize(a){return a.toString().replace(/\r/g,"
")}ensureTargetsHaveIds(a){for(let[b,c]of a)if(!b.isEmptyUri)for(let{node:a}of c)this.ensureHasId(a)}calculateReferenceDigest(a,b){let c=a.isEmptyUri&&b===b.ownerDocument.documentElement&&m.hasDocumentLevelProcessingInstruction(b.ownerDocument)?b.ownerDocument:b;a.ancestorNamespaces=m.findAncestorNsForElement(b);let d=this.canonicalize(a.transforms,c,{ancestorNamespaces:a.ancestorNamespaces,ancestorXmlAttributes:m.findAncestorXmlAttributes(b)},{discardComments:!0,prefixLists:this.getSigningPrefixLists(a)});return this.findHashAlgorithm(a.digestAlgorithm).getHash(d)}findSignatureContentTargets(a,b,c){let e=g.selectWithResolver(a.xpath??"",b,this.namespaceResolver);return d.assertIsArrayOfNodes(e),e.filter(a=>a===c||m.isDescendantOf(a,c)).map(a=>(d.assertIsElementNode(a),{node:a}))}addAllReferences(a,b,c,e){if(!m.isArrayHasLength(this.references))return;let f=e?`${e}:`:"",h="http://www.w3.org/2000/09/xmldsig#",i=g.select1("./*[local-name(.)='SignedInfo']",b);d.assertIsElementNode(i);let j=b.ownerDocument,k=new Map;for(let[d,e]of c)0===e.length&&k.set(d,this.findSignatureContentTargets(d,a,b));for(let[a,d]of(this.ensureTargetsHaveIds(k),c)){let c=k.get(a)??d;if(!m.isArrayHasLength(c))throw Error(`the following xpath cannot be signed because it was not found: ${a.xpath}`);for(let{node:d,digestValue:e}of c){let c;if(d===b||d===i||m.isDescendantOf(d,i))throw Error(`Cannot sign a reference to the Signature or SignedInfo element itself: ${a.xpath}`);if(a.isEmptyUri)c="",d!==d.ownerDocument.documentElement&&u();else{let b=this.ensureHasId(d);a.uri=b,c=`#${b}`}let g=j.createElementNS(h,`${f}Reference`);g.setAttribute("URI",c),a.id&&g.setAttribute("Id",a.id),a.type&&g.setAttribute("Type",a.type);let k=j.createElementNS(h,`${f}Transforms`);for(let b of a.transforms||[]){let c=this.findCanonicalizationAlgorithm(b),d=j.createElementNS(h,`${f}Transform`);if(d.setAttribute("Algorithm",c.getAlgorithmName()),m.isArrayHasLength(a.inclusiveNamespacesPrefixList)&&p(c.getAlgorithmName())){let b=j.createElementNS(o,"InclusiveNamespaces");b.setAttribute("PrefixList",a.inclusiveNamespacesPrefixList.join(" ")),d.appendChild(b)}k.appendChild(d)}let l=this.findHashAlgorithm(a.digestAlgorithm),n=j.createElementNS(h,`${f}DigestMethod`);n.setAttribute("Algorithm",l.getAlgorithmName());let q=j.createElementNS(h,`${f}DigestValue`);q.textContent=e??this.calculateReferenceDigest(a,d),g.appendChild(k),g.appendChild(n),g.appendChild(q),i.appendChild(g)}}}getKeyInfo(a){let b=this.getKeyInfoContent({publicCert:this.publicCert,prefix:a});if(!b)return"";let c=a?`${a}:`:"",d="";return this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach(a=>{d+=` ${a}="${this.keyInfoAttributes[a]}"`}),`<${c}KeyInfo${d}>${b}</${c}KeyInfo>`}getObjects(a){let b=a?`${a}:`:"";if(!this.objects||0===this.objects.length)return"";let c="";for(let a of this.objects){let d="";a.attributes&&Object.keys(a.attributes).forEach(b=>{let c=a.attributes?.[b];void 0!==c&&(d+=` ${b}="${c}"`)}),c+=`<${b}Object${d}>${a.content}</${b}Object>`}return c}getCanonXml(a,b,c={}){return this.canonicalize(a,b,c,{discardComments:!1})}canonicalize(a,b,c,{discardComments:e,prefixLists:f}){c.defaultNsForPrefix=c.defaultNsForPrefix??A.defaultNsForPrefix,c.ancestorXmlAttributes=c.ancestorXmlAttributes??m.findAncestorXmlAttributes(b),c.signatureNode=this.signatureNode;let h=b.cloneNode(!0),i=d.isDocumentNode(b);if(a.includes("http://www.w3.org/2000/09/xmldsig#enveloped-signature")){let a=[],d=this.findLoadedSignature(b);for(;d?.parentNode&&d!==b;)a.push(Array.from(d.parentNode.childNodes).indexOf(d)),d=d.parentNode;d===b&&(c.signatureNode=a.reverse().reduce((a,b)=>a.childNodes[b],h))}if(e){let a=g.select(".//comment()",h);d.assertIsArrayOfNodes(a),a.forEach(a=>a.parentNode?.removeChild(a))}let j=h,k=c,l=!1;for(let[b,e]of a.entries())d.isNodeLike(j)||(j=this.parseTransformInput(j,e,i),k={...c,ancestorNamespaces:[],ancestorXmlAttributes:[],defaultNs:"",signatureNode:this.findLoadedSignature(j)??c.signatureNode},l=!0),l&&"http://www.w3.org/2000/09/xmldsig#enveloped-signature"===e&&z(),j=this.findCanonicalizationAlgorithm(e).process(j,f?{...k,inclusiveNamespacesPrefixList:f[b]??[]}:k);return d.isNodeLike(j)&&(j=this.findCanonicalizationAlgorithm("http://www.w3.org/TR/2001/REC-xml-c14n-20010315").process(j,k)),j.toString()}findLoadedSignature(a){let b,c=a.ownerDocument??a;if(null==this.signatureNode||this.signatureNode.ownerDocument===c)return this.signatureNode;let e=q(this.signatureNode);if(0===e.length)return null;let f=(b=g.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",c),d.assertIsArrayOfNodes(b),b.filter(d.isElementNode)).filter(a=>q(a).equals(e));if(f.length>1)throw Error("Cannot validate a document which contains multiple Signature elements with the same SignatureValue, in order to prevent signature wrapping attack.");return f[0]??null}parseTransformInput(a,b,c){let d=[],f=new e.DOMParser({errorHandler:(a,b)=>d.push(String(b))}).parseFromString(a);if(d.length>0||null==f.documentElement)throw Error(`Cannot apply transform ${b}: the output of the previous transform is not well-formed XML`);return c?f:f.documentElement}ensureHasId(a){let b;if("wssecurity"===this.idMode?b=m.findAttr(a,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some(c=>!!(b=m.findAttr(a,c))),b)return b.value;let c=`_${this.id++}`;return"wssecurity"===this.idMode?(a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),a.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",c)):a.setAttribute("Id",c),c}createSignedInfo(a,b){if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");let c=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),d=this.findSignatureAlgorithm(this.signatureAlgorithm),e=b?`${b}:`:"",f=`<${e}SignedInfo>`;return f+=`<${e}CanonicalizationMethod Algorithm="${c.getAlgorithmName()}"`,m.isArrayHasLength(this.inclusiveNamespacesPrefixList)?f+=`><InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${c.getAlgorithmName()}"/></${e}CanonicalizationMethod>`:f+=" />",f+=`<${e}SignatureMethod Algorithm="${d.getAlgorithmName()}" /></${e}SignedInfo>`}createSignature(a){let b="xmlns";a?(b+=`:${a}`,a+=":"):a="";let c=`<${a}SignatureValue>${this.signatureValue}</${a}SignatureValue>`,d=`<${a}Signature ${b}="http://www.w3.org/2000/09/xmldsig#">${c}</${a}Signature>`;return new e.DOMParser().parseFromString(d).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return w(),this.originalXmlWithIds}getSignedXml(){return this.signedXml}}b.SignedXml=A,A.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"},A.noop=()=>null},4505:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());e||(e="(#PCDATA)"),Array.isArray(e)&&(e="("+e.join(",")+")"),this.name=this.stringify.name(d),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(e)}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},4700:function(a){(function(){var b,c,d,e=[].slice,f={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(){var a,b,d,g,h,i;if(i=arguments[0],h=2<=arguments.length?e.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(a=0,d=h.length;a<d;a++)if(null!=(g=h[a]))for(b in g)f.call(g,b)&&(i[b]=g[b]);return i},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(f.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},4776:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let d=c(61894),e=c(62119);class f{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)"xmlns"!==(c=a.attributes[b]).name&&"xmlns"!==c.prefix&&f.push(c);return f.sort(this.attrCompare),f.map(a=>` ${a.name}="${d.encodeSpecialCharactersInAttribute(a.value)}"`).join("")}renderNs(a,b,c,e,f,g){let h,i,j;d.warnOutsideProcess(this);let k=[],l=c,m=[],n=a.namespaceURI||"",o=(a,c)=>g?d.isPrefixInScope(g,a,c):-1!==b.indexOf(a),p=(a,c)=>{m.push({prefix:a,namespaceURI:c}),b.push(a),g?.push({prefix:a,namespaceURI:c})};if(a.prefix){let b=a.namespaceURI||e[a.prefix];o(a.prefix,b)||p(a.prefix,b)}let q=null;if(a.attributes)for(h=0;h<a.attributes.length;++h)"xmlns"===a.attributes[h].name&&(q=a.attributes[h].value);if((j=null!==q?q:a.prefix?c:n)!==c&&(l=j,k.push(' xmlns="',d.encodeSpecialCharactersInAttribute(l),'"')),a.attributes)for(h=0;h<a.attributes.length;++h)"xmlns"!==(i=a.attributes[h]).prefix||o(i.localName,i.value)||p(i.localName,i.value),i.prefix&&!o(i.prefix,i.namespaceURI)&&"xmlns"!==i.prefix&&"xml"!==i.prefix&&p(i.prefix,i.namespaceURI);if(d.isArrayHasLength(f))for(let a of f)!(m.some(b=>b.prefix===a.prefix)||!a.prefix&&null!==q)&&(m.push(a),a.prefix||(l=a.namespaceURI));return m.sort(this.nsCompare),k.push(...m.map(a=>{let b=d.encodeSpecialCharactersInAttribute(a.namespaceURI);return a.prefix?` xmlns:${a.prefix}="${b}"`:` xmlns="${b}"`})),{rendered:k.join(""),newDefaultNs:l}}processInner(a,b,c,f,g,h){if(d.warnOutsideProcess(this),e.isDocumentNode(a)){let i=[];for(let j=0;j<a.childNodes.length;j++){let k=a.childNodes[j];if(e.isCommentNode(k)){this.includeComments&&i.push(this.renderComment(k,!0));continue}d.isCanonicalDocumentChild(k)&&i.push(this.processInner(k,b,c,f,g,h))}return i.join("\n")}if(e.isCommentNode(a))return this.renderComment(a);if(e.isProcessingInstructionNode(a))return d.renderProcessingInstruction(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,i=this.renderNs(a,b,c,f,g,h),j=["<",a.tagName,i.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),j.push(this.processInner(a.childNodes[d],e,i.newDefaultNs,f,[],h?.slice(0)));return j.push("</",a.tagName,">"),j.join("")}throw Error(`Unable to canonicalize node type: ${a.nodeType}`)}renderComment(a,b=!1){if(!this.includeComments)return"";let c=d.encodeSpecialCharactersInText(a.data);if(b)return`\x3c!--${c}--\x3e`;let e=a.ownerDocument===a.parentNode,f=!1,g=!1;if(e){let b=a,c=a;for(;null!==b;){if(b===a.ownerDocument.documentElement){f=!0;break}b=b.nextSibling}for(;null!==c;){if(c===a.ownerDocument.documentElement){g=!0;break}c=c.previousSibling}}let h=g?"\n":"",i=f?"\n":"";return`${h}\x3c!--${c}--\x3e${i}`}process(a,b){let c=(b=b||{}).defaultNs||"",g=b.defaultNsForPrefix||{},h=b.ancestorNamespaces||[],i=b.ancestorXmlAttributes??d.findAncestorXmlAttributes(a),j=a;if(e.isElementNode(a)&&i.length>0){let b=a.cloneNode(!0);for(let a of(e.assertIsElementNode(b),i))b.hasAttributeNS("http://www.w3.org/XML/1998/namespace",a.localName)||b.setAttributeNS("http://www.w3.org/XML/1998/namespace",`xml:${a.localName}`,a.value);j=b}let k=[];for(let a=0;a<h.length;a++)k.push(h[a].prefix);return d.insideProcess(this,f.prototype,()=>this.processInner(j,k,c,g,h,h.slice()))}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}b.C14nCanonicalization=f;class g extends f{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}}b.C14nCanonicalizationWithComments=g},5032:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=(function(){class a extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))}splitText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),a}).call(this)}).call(this)},7216:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l;j=(l=c(4700)).assign,k=l.isFunction,e=c(35971),f=c(95280),g=c(98193),i=c(13859),h=c(92030),b=c(24706),d=c(46780),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){var d;return(k(a)&&(b=(d=[a,b])[0],c=d[1],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},7832:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.getNamedItem=function(a){return this.nodes[a]},a.prototype.setNamedItem=function(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null},a.prototype.removeNamedItem=function(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null},a.prototype.item=function(a){return this.nodes[Object.keys(this.nodes)[a]]||null},a.prototype.getNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a.prototype.setNamedItemNS=function(a){throw Error("This DOM method is not implemented.")},a.prototype.removeNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},8676:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},8859:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},c}(c(8957))}).call(this)},8957:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t={}.hasOwnProperty;r=(s=c(4700)).isObject,q=s.isFunction,p=s.isEmpty,o=s.getValue,j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(43849),e=c(36700),f=c(65904),g=c(84689),h=c(99379),m=c(8859),n=c(86690),l=c(58892),i=c(31777),d=c(24706),k=c(18521),c(7832),b=c(8676))}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a.prototype.setParent=function(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f},a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n;if(i=null,null===b&&null==c&&(b=(l=[{},null])[0],c=l[1]),null==b&&(b={}),r(b=o(b))||(c=(m=[b,c])[0],b=m[1]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(t.call(a,h))if(q(n=a[h])&&(n=n.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),n);else if(!this.options.separateArrayItems&&Array.isArray(n)&&p(n))i=this.dummy();else if(r(n)&&p(n))i=this.element(h);else if(this.options.keepNullNodes||null!=n)if(!this.options.separateArrayItems&&Array.isArray(n))for(g=0,k=n.length;g<k;g++)e=n[g],(d={})[h]=e,i=this.element(d);else r(n)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(n):(i=this.element(h)).element(n):i=this.element(h,n);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||(c=(e=[b,c])[0],b=e[1]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var b;return b=new e(this,a),this.children.push(b),this},a.prototype.comment=function(a){var b;return b=new f(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new m(this,a),this.children.push(b),this},a.prototype.dummy=function(){return new i(this)},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)t.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e},a.prototype.dtd=function(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e},a.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},a.prototype.root=function(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a.prototype.replaceChild=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasChildNodes=function(){return 0!==this.children.length},a.prototype.cloneNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isSupported=function(a,b){return!0},a.prototype.hasAttributes=function(){return 0!==this.attribs.length},a.prototype.compareDocumentPosition=function(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following},a.prototype.isSameNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupPrefix=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isDefaultNamespace=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupNamespaceURI=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setUserData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getUserData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.contains=function(a){return!!a&&(a===this||this.isDescendant(a))},a.prototype.isDescendant=function(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1},a.prototype.isAncestor=function(a){return a.isDescendant(this)},a.prototype.isPreceding=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c},a.prototype.isFollowing=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c},a.prototype.treePosition=function(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1},a.prototype.foreachTreeNode=function(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g},a}()}).call(this)},12430:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))}}}).call(this)},12570:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){if(c.__super__.constructor.call(this,a),null==f)throw Error("Missing DTD entity name. "+this.debugInfo(f));if(null==g)throw Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!d,this.name=this.stringify.name(f),this.type=b.EntityDeclaration,e(g)){if(!g.pubID&&!g.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(g.pubID&&!g.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,null!=g.pubID&&(this.pubID=this.stringify.dtdPubID(g.pubID)),null!=g.sysID&&(this.sysID=this.stringify.dtdSysID(g.sysID)),null!=g.nData&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(f))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return f(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},12749:(a,b,c)=>{var d=c(81349);b.DOMImplementation=d.DOMImplementation,b.XMLSerializer=d.XMLSerializer,b.DOMParser=c(62669).DOMParser},13630:(a,b,c)=>{"use strict";var d=c(23849).freeze;b.XML_ENTITIES=d({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),b.HTML_ENTITIES=d({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"",zwnj:""}),b.entityMap=b.HTML_ENTITIES},13859:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a)}return b(c,a),c.prototype.document=function(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f},c}(c(97871))}).call(this)},15081:(a,b,c)=>{"use strict";b.Qb=void 0;let d=c(47564);Object.defineProperty(b,"Qb",{enumerable:!0,get:function(){return d.SAML}}),c(45540),c(35312)},15890:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,d&&(this.value=this.stringify.insValue(d))}clone(){return Object.create(this)}toString(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))}isEqualNode(a){return!!super.isEqualNode(a)&&a.target===this.target}}}).call(this)},15894:(a,b,c)=>{c(33873),c(29021);var d={"encrypted-key":c(59548),keyinfo:c(67925)};a.exports={renderTemplate:function(a,b){return d[a](b)},pemToCert:function(a){var b=/-----BEGIN CERTIFICATE-----([^-]*)-----END CERTIFICATE-----/g.exec(a);return b.length>0?b[1].replace(/[\n|\r\n]/g,""):null},warnInsecureAlgorithm:function(a,b=!0){b&&console.warn(a+" is no longer recommended due to security reasons. Please deprecate its use as soon as possible.")}}},17395:function(a,b,c){(function(){var b,d;b=c(88435),d=c(46584),a.exports=function(){function a(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a.prototype.getParameter=function(a){return this.params.hasOwnProperty(a)?this.params[a]:null},a.prototype.canSetParameter=function(a,b){return!0},a.prototype.setParameter=function(a,b){return null!=b?this.params[a]=b:delete this.params[a]},a}()}).call(this)},18462:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=void 0,b.warnUnlessExclusiveC14nNamespace=g;let d=c(61894),e=c(62119),f=(0,c(28354).deprecate)(()=>{},"Reading an `InclusiveNamespaces` element that is not in the `http://www.w3.org/2001/10/xml-exc-c14n#` namespace is deprecated, and a signature that has one will not verify in version 7.0. xml-crypto 6.3.2 and earlier wrote one when signing with `xml-exc-c14n#WithComments` and a prefix list, so sign those documents again.","XML_CRYPTO_INCLUSIVE_NAMESPACES_NAMESPACE");function g(a){"http://www.w3.org/2001/10/xml-exc-c14n#"!==a.namespaceURI&&f()}class h{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[],g=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)"xmlns"!==(c=a.attributes[b]).name&&"xmlns"!==c.prefix&&g.push(c);for(c of(g.sort(this.attrCompare),g))f.push(" ",c.name,'="',d.encodeSpecialCharactersInAttribute(c.value),'"');return f.join("")}renderNs(a,b,c,e,f){let g,h;d.warnOutsideProcess(this);let i=[],j=c,k=[],l=a.namespaceURI||"";a.prefix&&!d.isPrefixInScope(b,a.prefix,a.namespaceURI||e[a.prefix])&&(k.push({prefix:a.prefix,namespaceURI:a.namespaceURI||e[a.prefix]}),b.push({prefix:a.prefix,namespaceURI:a.namespaceURI||e[a.prefix]}));let m=a.prefix?a.getAttributeNode("xmlns")?.value??c:l;if((!a.prefix||f.includes("#default"))&&c!==m&&(j=m,i.push(' xmlns="',d.encodeSpecialCharactersInAttribute(j),'"')),a.attributes)for(g=0;g<a.attributes.length;++g)"xmlns"===(h=a.attributes[g]).prefix&&!d.isPrefixInScope(b,h.localName,h.value)&&f.indexOf(h.localName)>=0&&(k.push({prefix:h.localName,namespaceURI:h.value}),b.push({prefix:h.localName,namespaceURI:h.value})),h.prefix&&!d.isPrefixInScope(b,h.prefix,h.namespaceURI)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(k.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push({prefix:h.prefix,namespaceURI:h.namespaceURI}));for(let a of(k.sort(this.nsCompare),k)){let b=d.encodeSpecialCharactersInAttribute(a.namespaceURI);i.push(" xmlns:",a.prefix,'="',b,'"')}return{rendered:i.join(""),newDefaultNs:j}}processInner(a,b,c,f,g){if(d.warnOutsideProcess(this),e.isDocumentNode(a)){let h=[];for(let i=0;i<a.childNodes.length;i++){let j=a.childNodes[i];if(e.isCommentNode(j)){this.includeComments&&h.push(this.renderComment(j,!0));continue}d.isCanonicalDocumentChild(j)&&h.push(this.processInner(j,b,c,f,g))}return h.join("\n")}if(e.isCommentNode(a))return this.renderComment(a);if(e.isProcessingInstructionNode(a))return d.renderProcessingInstruction(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,g));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to exclusive canonicalize node type: ${a.nodeType}`)}renderComment(a,b=!1){if(!this.includeComments)return"";let c=d.encodeSpecialCharactersInText(a.data);if(b)return`\x3c!--${c}--\x3e`;let e=a.ownerDocument===a.parentNode,f=!1,g=!1;if(e){let b=a,c=a;for(;null!=b;){if(b===a.ownerDocument.documentElement){f=!0;break}b=b.nextSibling}for(;null!=c;){if(c===a.ownerDocument.documentElement){g=!0;break}c=c.previousSibling}}let h=g?"\n":"",i=f?"\n":"";return`${h}\x3c!--${c}--\x3e${i}`}process(a,b){b=b||{};let c=e.isDocumentNode(a)?a.documentElement:a,f=b.inclusiveNamespacesPrefixList||[],i=b.defaultNs||"",j=b.defaultNsForPrefix||{},k=b.ancestorNamespaces||[];if(!d.isArrayHasLength(f)){let b=d.findChildren(a,"CanonicalizationMethod");if(0!==b.length){let a=d.findChildren(b[0],"InclusiveNamespaces");0!==a.length&&(g(a[0]),f=(a[0].getAttribute("PrefixList")||"").split(" "))}}return d.isArrayHasLength(f)&&f.forEach(function(a){k&&k.forEach(function(b){"#default"===a&&""===b.prefix?c.hasAttribute("xmlns")||c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",b.namespaceURI):a===b.prefix&&c.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${a}`,b.namespaceURI)})}),d.insideProcess(this,h.prototype,()=>this.processInner(a,[],i,j,f))}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}b.ExclusiveCanonicalization=h;class i extends h{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}}b.ExclusiveCanonicalizationWithComments=i},18521:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.item=function(a){return this.nodes[a]||null},a}()}).call(this)},19691:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.dateStringToTimestamp=b.generateInstant=void 0,b.generateInstant=()=>new Date().toISOString(),b.dateStringToTimestamp=(a,b)=>{let c=Date.parse(a);if(isNaN(c))throw Error(`Error parsing ${b}: '${a}' is not a valid date`);return c}},22859:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.BASE64_REGEX=b.EXTRACT_X509_CERTS=b.PEM_FORMAT_REGEX=b.derToPem=b.validateDigestValue=b.encodeSpecialCharactersInText=b.encodeSpecialCharactersInAttribute=b.isDescendantOf=b.findChilds=b.findChildren=b.findAttr=b.isArrayHasLength=b.createOptionalCallbackFunction=b.toPem=b.pemToDer=b.pemCertificates=b.normalizePem=b.findAncestorNs=b.SignedXml=b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let f=c(28354),g=c(75546),h=c(61894);var i=c(4776);Object.defineProperty(b,"C14nCanonicalization",{enumerable:!0,get:function(){return i.C14nCanonicalization}}),Object.defineProperty(b,"C14nCanonicalizationWithComments",{enumerable:!0,get:function(){return i.C14nCanonicalizationWithComments}});var j=c(18462);Object.defineProperty(b,"ExclusiveCanonicalization",{enumerable:!0,get:function(){return j.ExclusiveCanonicalization}}),Object.defineProperty(b,"ExclusiveCanonicalizationWithComments",{enumerable:!0,get:function(){return j.ExclusiveCanonicalizationWithComments}});var k=c(4107);Object.defineProperty(b,"SignedXml",{enumerable:!0,get:function(){return k.SignedXml}}),e(c(75546),b);var l=c(61894);Object.defineProperty(b,"findAncestorNs",{enumerable:!0,get:function(){return l.findAncestorNs}}),Object.defineProperty(b,"normalizePem",{enumerable:!0,get:function(){return l.normalizePem}}),Object.defineProperty(b,"pemCertificates",{enumerable:!0,get:function(){return l.pemCertificates}}),Object.defineProperty(b,"pemToDer",{enumerable:!0,get:function(){return l.pemToDer}}),Object.defineProperty(b,"toPem",{enumerable:!0,get:function(){return l.toPem}}),b.createOptionalCallbackFunction=(0,f.deprecate)(g.createOptionalCallbackFunction,"`createOptionalCallbackFunction()` is deprecated and will be removed in version 7.0. Write a signature algorithm's methods without a callback, and give it `getSignatureAsync()` and `verifySignatureAsync()` if it works asynchronously.","XML_CRYPTO_CREATE_OPTIONAL_CALLBACK_FUNCTION"),b.isArrayHasLength=(0,f.deprecate)(h.isArrayHasLength,"`isArrayHasLength()` is deprecated and will be removed in version 7.0. Use `Array.isArray(x) && x.length > 0` instead.","XML_CRYPTO_IS_ARRAY_HAS_LENGTH"),b.findAttr=(0,f.deprecate)(h.findAttr,"`findAttr()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_ATTR"),b.findChildren=(0,f.deprecate)(h.findChildren,"`findChildren()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_CHILDREN"),b.findChilds=(0,f.deprecate)(h.findChilds,"`findChilds()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_CHILDS"),b.isDescendantOf=(0,f.deprecate)(h.isDescendantOf,"`isDescendantOf()` is deprecated and will be removed in version 7.0. Walk `parentNode` yourself, or use `Node.contains()` instead.","XML_CRYPTO_IS_DESCENDANT_OF"),b.encodeSpecialCharactersInAttribute=(0,f.deprecate)(h.encodeSpecialCharactersInAttribute,"`encodeSpecialCharactersInAttribute()` is deprecated and will be removed in version 7.0. Use `C14nCanonicalization` or `ExclusiveCanonicalization` instead.","XML_CRYPTO_ENCODE_SPECIAL_CHARACTERS_IN_ATTRIBUTE"),b.encodeSpecialCharactersInText=(0,f.deprecate)(h.encodeSpecialCharactersInText,"`encodeSpecialCharactersInText()` is deprecated and will be removed in version 7.0. Use `C14nCanonicalization` or `ExclusiveCanonicalization` instead.","XML_CRYPTO_ENCODE_SPECIAL_CHARACTERS_IN_TEXT"),b.validateDigestValue=(0,f.deprecate)(h.validateDigestValue,"`validateDigestValue()` is deprecated and will be removed in version 7.0. Decode both digests from base64 and use `a.length === b.length && crypto.timingSafeEqual(a, b)` instead, and never `===`.","XML_CRYPTO_VALIDATE_DIGEST_VALUE"),b.derToPem=(0,f.deprecate)(h.toPem,"`derToPem()` is deprecated and will be removed in version 7.0. Use `toPem()` instead.","XML_CRYPTO_DER_TO_PEM"),b.PEM_FORMAT_REGEX=RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$","s"),b.EXTRACT_X509_CERTS=RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----","g"),b.BASE64_REGEX=RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$","s")},23849:(a,b)=>{"use strict";function c(a,b){return void 0===b&&(b=Object),b&&"function"==typeof b.freeze?b.freeze(a):a}var d=c({HTML:"text/html",isHTML:function(a){return a===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),e=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===e.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),f=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=RegExp("[\\-\\.0-9"+f.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),h=RegExp("^"+f.source+g.source+"*(?::"+f.source+g.source+"*)?$");b.assign=function(a,b){if(null===a||"object"!=typeof a)throw TypeError("target is not an object");for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b.find=function(a,b,c){if(void 0===c&&(c=Array.prototype),a&&"function"==typeof c.find)return c.find.call(a,b);for(var d=0;d<a.length;d++)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];if(b.call(void 0,e,d,a))return e}},b.freeze=c,b.MIME_TYPE=d,b.NAMESPACE=e,b.nameStartChar=f,b.nameChar=g,b.tagNamePattern=h},24706:function(a){(function(){a.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},24938:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k;({assign:j,isFunction:k}=c(43594)),e=c(88909),f=c(50962),g=c(78611),i=c(44981),h=c(72616),b=c(26468),d=c(29394),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){return(k(a)&&([b,c]=[a,b],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},25141:function(a,b,c){(function(){var b,d;b=c(241),d=c(34370),a.exports=(function(){class a{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(a){return this.params.hasOwnProperty(a)?this.params[a]:null}canSetParameter(a,b){return!0}setParameter(a,b){return null!=b?this.params[a]=b:delete this.params[a]}}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a}).call(this)}).call(this)},26468:function(a){(function(){a.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},26884:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.stripPemHeaderAndFooter=b.generateUniqueId=b.keyInfoToPem=void 0;let d=c(55511),e=c(36481),f=/^(-----BEGIN [A-Z\x20]{1,48}-----(\r\n|\r|\n){1}.*(\r\n|\r|\n){1}-----END [A-Z\x20]{1,48}-----(\r\n|\r|\n){0,1})$/s,g=/^(?:[A-Za-z0-9\+\/]{4}\n{0,1})*(?:[A-Za-z0-9\+\/]{2}==|[A-Za-z0-9\+\/]{3}=)?$/s,h=a=>{var b;return`${(null!=(b=a.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g))?b:[]).join("\n")}
|
|
2
|
-
`};b.keyInfoToPem=(a,b,c="keyInfo")=>{let d=Buffer.isBuffer(a)?a.toString("latin1"):a;if((0,e.assertRequired)(d,`${c} is not provided`),f.test(d))return h(d);let i=g.test(d);return(0,e.assertRequired)(i||void 0,`${c} is not in PEM format or in base64 format`),h(`-----BEGIN ${b}-----
|
|
3
|
-
${a}
|
|
4
|
-
-----END ${b}-----`)},b.generateUniqueId=()=>"_"+d.randomBytes(20).toString("hex"),b.stripPemHeaderAndFooter=a=>a.replace(/(\r\n|\r)/g,"\n").replace(/-----BEGIN [A-Z\x20]{1,48}-----\n?/,"").replace(/-----END [A-Z\x20]{1,48}-----\n?/,"")},29394:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},30072:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_WANT_ASSERTIONS_SIGNED=b.DEFAULT_IDENTIFIER_FORMAT=void 0,b.DEFAULT_IDENTIFIER_FORMAT="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",b.DEFAULT_WANT_ASSERTIONS_SIGNED=!0},31673:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.InMemoryCacheProvider=void 0;class c{constructor(a){var b;this.lastPrune=0,this.cacheKeys={},this.options={...a,keyExpirationPeriodMs:null!=(b=a.keyExpirationPeriodMs)?b:288e5},this.prune=()=>{let a=new Date().getTime();if(a>this.lastPrune+this.options.keyExpirationPeriodMs){let b=Object.keys(this.cacheKeys),c=[];b.forEach(b=>{a>=this.cacheKeys[b].createdAt+this.options.keyExpirationPeriodMs&&c.push(b)}),c.forEach(a=>this.removeAsync(a)),this.lastPrune=a}},this.removeKeyIfExpired=async(a,b)=>{this.cacheKeys[a]&&b>=this.cacheKeys[a].createdAt+this.options.keyExpirationPeriodMs&&await this.removeAsync(a)}}async saveAsync(a,b){this.prune();let c=new Date().getTime();return(await this.removeKeyIfExpired(a,c),this.cacheKeys[a])?null:(this.cacheKeys[a]={createdAt:c,value:b},this.cacheKeys[a])}async getAsync(a){this.prune();let b=new Date().getTime();return(await this.removeKeyIfExpired(a,b),this.cacheKeys[a])?this.cacheKeys[a].value:null}async removeAsync(a){return null!=a&&this.cacheKeys[a]?(delete this.cacheKeys[a],a):null}}b.InMemoryCacheProvider=c},31753:function(a){(function(){var b={}.hasOwnProperty;a.exports=(function(){class a{constructor(a){var c,d,e;for(c in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),d=a.stringify||{})b.call(d,c)&&(e=d[c],this[c]=e)}name(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")}text(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))}cdata(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))}comment(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)}raw(a){return this.options.noValidation?a:""+a||""}attValue(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))}insTarget(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}insValue(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)}xmlVersion(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a}xmlEncoding(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)}xmlStandalone(a){return this.options.noValidation?a:a?"yes":"no"}dtdPubID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdSysID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdElementValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttType(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttDefault(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdEntityValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdNData(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}assertLegalChar(a){var b,c;if(this.options.noValidation)return a;if("1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}else if("1.1"===this.options.version){if(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}return a}assertLegalName(a){if(this.options.noValidation)return a;if(!(a=this.assertLegalChar(a)).match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error(`Invalid character in name: ${a}`);return a}textEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))}attEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))}}return a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a}).call(this)}).call(this)},31777:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.type=b.Dummy}return e(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return""},c}(d)}).call(this)},32046:(a,b)=>{!function(a){"use strict";var b,c,d,e,f="__namespace",g=function(a){var b;return a&&((b=a.nodeType)===f||Number.isInteger(b)&&b>=1&&b<=11)&&"string"==typeof a.nodeName},h=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},i=function(a,b,c){var d=b;return h(function(b,c){d=a(d,b,c)},c),d},j=function(a,b){var c=Array(b.length);return h(function(b,d){c[d]=a(b)},b),c},k=function(a,b){var c=[];return h(function(b,d){a(b,d)&&c.push(b)},b),c},l=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function m(a){return a.toString()}var n=function(a,b){return b.join(a)},o=function(a,b,c){return a+c+b},p=Array.prototype.concat,q=function(a,b){var c=new ab;c.addArray(a);var d=c.toArray();return b?d.reverse():d};function r(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function s(){this.init()}function t(a){this.expression=a}function u(a,b,c){b in a||(a[b]=c)}function v(){}function w(a){arguments.length>0&&this.init(a)}function x(a){arguments.length>0&&this.init(a)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b){arguments.length>0&&this.init(a,b)}function L(a,b){arguments.length>0&&this.init(a,b)}function M(a,b){arguments.length>0&&this.init(a,b)}function N(a,b,c){arguments.length>0&&this.init(a,b,c)}s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new z(a[0],a[2])},this.reduceActions[5]=function(a){return new A(a[0],a[2])},this.reduceActions[7]=function(a){return new B(a[0],a[2])},this.reduceActions[8]=function(a){return new C(a[0],a[2])},this.reduceActions[10]=function(a){return new D(a[0],a[2])},this.reduceActions[11]=function(a){return new E(a[0],a[2])},this.reduceActions[12]=function(a){return new F(a[0],a[2])},this.reduceActions[13]=function(a){return new G(a[0],a[2])},this.reduceActions[15]=function(a){return new H(a[0],a[2])},this.reduceActions[16]=function(a){return new I(a[0],a[2])},this.reduceActions[18]=function(a){return new J(a[0],a[2])},this.reduceActions[19]=function(a){return new K(a[0],a[2])},this.reduceActions[20]=function(a){return new L(a[0],a[2])},this.reduceActions[22]=function(a){return new x(a[1])},this.reduceActions[24]=function(a){return new M(a[0],a[2])},this.reduceActions[25]=function(a){return new N(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new N(a[0],[],void 0)},this.reduceActions[30]=function(a){return ai.instance_of(a[0],N)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new N(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new Z(a[0])},this.reduceActions[34]=function(a){return new $(a[0])},this.reduceActions[36]=function(a){return new X(a[0],[])},this.reduceActions[37]=function(a){return new X(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new S(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new S(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new T(a[0],a[1],[])},this.reduceActions[50]=function(a){return new T(T.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new T(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new T(T.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return T.ANCESTOR;if("ancestor-or-self"==a[0])return T.ANCESTORORSELF;if("attribute"==a[0])return T.ATTRIBUTE;if("child"==a[0])return T.CHILD;if("descendant"==a[0])return T.DESCENDANT;else if("descendant-or-self"==a[0])return T.DESCENDANTORSELF;else if("following"==a[0])return T.FOLLOWING;else if("following-sibling"==a[0])return T.FOLLOWINGSIBLING;else if("namespace"==a[0])return T.NAMESPACE;else if("parent"==a[0])return T.PARENT;else if("preceding"==a[0])return T.PRECEDING;else if("preceding-sibling"==a[0])return T.PRECEDINGSIBLING;else if("self"==a[0])return T.SELF;return -1},this.reduceActions[57]=function(a){return T.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?V.commentTest:"text"==a[0]?V.textTest:"processing-instruction"==a[0]?V.anyPiTest:"node"==a[0]?V.nodeTest:new V(-1,void 0)},this.reduceActions[60]=function(a){return new V.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new T(T.DESCENDANTORSELF,V.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new T(T.SELF,V.nodeTest,[])},this.reduceActions[66]=function(a){return new T(T.PARENT,V.nodeTest,[])},this.reduceActions[67]=function(a){return new W(a[1])},this.reduceActions[68]=function(a){return V.nameTestAny},this.reduceActions[69]=function(a){return new V.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new V.NameTestQName(a[0])}},s.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],s.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],s.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],s.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],s.DOUBLEDOT=2,s.DOUBLECOLON=3,s.DOUBLESLASH=4,s.NOTEQUAL=5,s.LESSTHANOREQUAL=6,s.GREATERTHANOREQUAL=7,s.AND=8,s.OR=9,s.MOD=10,s.DIV=11,s.MULTIPLYOPERATOR=12,s.FUNCTIONNAME=13,s.AXISNAME=14,s.LITERAL=15,s.NUMBER=16,s.ASTERISKNAMETEST=17,s.QNAME=18,s.NCNAMECOLONASTERISK=19,s.NODETYPE=20,s.PROCESSINGINSTRUCTIONWITHLITERAL=21,s.EQUALS=22,s.LESSTHAN=23,s.GREATERTHAN=24,s.PLUS=25,s.MINUS=26,s.BAR=27,s.SLASH=28,s.LEFTPARENTHESIS=29,s.RIGHTPARENTHESIS=30,s.COMMA=31,s.AT=32,s.LEFTBRACKET=33,s.RIGHTBRACKET=34,s.DOT=35,s.DOLLAR=36,s.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(s.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(s.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(s.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(s.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(s.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(s.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(s.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(s.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(s.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(s.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(s.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(s.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(s.NUMBER),c.push(g);continue}b.push(s.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ak.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(s.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(s.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=s.AT&&j!=s.DOUBLECOLON&&j!=s.LEFTPARENTHESIS&&j!=s.LEFTBRACKET&&j!=s.AND&&j!=s.OR&&j!=s.MOD&&j!=s.DIV&&j!=s.MULTIPLYOPERATOR&&j!=s.SLASH&&j!=s.DOUBLESLASH&&j!=s.BAR&&j!=s.PLUS&&j!=s.MINUS&&j!=s.EQUALS&&j!=s.NOTEQUAL&&j!=s.LESSTHAN&&j!=s.LESSTHANOREQUAL&&j!=s.GREATERTHAN&&j!=s.GREATERTHANOREQUAL){b.push(s.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(s.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(s.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(s.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(s.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(s.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(s.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(s.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(s.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(s.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ai.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ai.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=s.AT&&j!=s.DOUBLECOLON&&j!=s.LEFTPARENTHESIS&&j!=s.LEFTBRACKET&&j!=s.AND&&j!=s.OR&&j!=s.MOD&&j!=s.DIV&&j!=s.MULTIPLYOPERATOR&&j!=s.SLASH&&j!=s.DOUBLESLASH&&j!=s.BAR&&j!=s.PLUS&&j!=s.MINUS&&j!=s.EQUALS&&j!=s.NOTEQUAL&&j!=s.LESSTHAN&&j!=s.LESSTHANOREQUAL&&j!=s.GREATERTHAN&&j!=s.GREATERTHANOREQUAL){if("and"==k){b.push(s.AND),c.push(k);continue}if("or"==k){b.push(s.OR),c.push(k);continue}if("mod"==k){b.push(s.MOD),c.push(k);continue}if("div"==k){b.push(s.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(s.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ai.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ai.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(s.FUNCTIONNAME),c.push(k);continue}b.push(s.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(s.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(s.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(s.NODETYPE):b.push(s.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(s.FUNCTIONNAME),c.push(k);continue}b.push(s.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},s.SHIFT="s",s.REDUCE="r",s.ACCEPT="a",s.prototype.parse=function(a){if(!a)throw Error("XPath expression unspecified.");if("string"!=typeof a)throw Error("XPath expression must be a string.");var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],s.actionTable[a].charAt(d-1)){case s.SHIFT:i.push(-d),j.push(e),h.push(s.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case s.REDUCE:for(var k=s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[s.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[s.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(s.gotoTable[n].charCodeAt(s.productions[s.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case s.ACCEPT:return new t(j.pop());default:throw Error("XPath parse error")}}},t.prototype={},t.prototype.constructor=t,t.superclass=Object.prototype,t.prototype.toString=function(){return this.expression.toString()},t.prototype.evaluate=function(a){var b=a.expressionContextNode;if(!(null==b||g(b)))throw Error("Context node does not appear to be a valid DOM node.");return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(u(a,"caseInsensitive",!0),u(a,"allowAnyNamespaceForNoPrefix",!0)),u(a,"caseInsensitive",!1),this.expression.evaluate(a)},t.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",t.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",v.prototype={},v.prototype.constructor=v,v.superclass=Object.prototype,v.prototype.init=function(){},v.prototype.toString=function(){return"<Expression>"},v.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a){this.rhs=a},x.prototype=new w,x.prototype.constructor=x,x.superclass=w.prototype,x.prototype.init=function(a){x.superclass.init.call(this,a)},x.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},x.prototype.toString=function(){return"-"+this.rhs.toString()},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){this.lhs=a,this.rhs=b},z.prototype=new y,z.prototype.constructor=z,z.superclass=y.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},A.prototype=new y,A.prototype.constructor=A,A.superclass=y.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},A.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},B.prototype=new y,B.prototype.constructor=B,B.superclass=y.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},C.prototype=new y,C.prototype.constructor=C,C.superclass=y.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},D.prototype=new y,D.prototype.constructor=D,D.superclass=y.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},E.prototype=new y,E.prototype.constructor=E,E.superclass=y.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},E.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},F.prototype=new y,F.prototype.constructor=F,F.superclass=y.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},F.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},G.prototype=new y,G.prototype.constructor=G,G.superclass=y.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},G.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},H.prototype=new y,H.prototype.constructor=H,H.superclass=y.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},I.prototype=new y,I.prototype.constructor=I,I.superclass=y.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},J.prototype=new y,J.prototype.constructor=J,J.superclass=y.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},J.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},K.prototype=new y,K.prototype.constructor=K,K.superclass=y.prototype,K.prototype.init=function(a,b){K.superclass.init.call(this,a,b)},K.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},K.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},L.prototype=new y,L.prototype.constructor=L,L.superclass=y.prototype,L.prototype.init=function(a,b){L.superclass.init.call(this,a,b)},L.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},L.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},M.prototype=new y,M.prototype.constructor=M,M.superclass=y.prototype,M.prototype.init=function(a,b){M.superclass.init.call(this,a,b)},M.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},M.prototype.toString=function(){return j(m,[this.lhs,this.rhs]).join(" | ")},N.prototype=new v,N.prototype.constructor=N,N.superclass=v.prototype,N.prototype.init=function(a,b,c){N.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c};var O=function(a,b,c,d){if(0===a.length)return c;var e=b.extend({});return i(function(a,b){return e.contextSize=a.length,k(function(a,c){return e.contextNode=a,e.contextPosition=c+1,N.predicateMatches(b,e)},a)},q(c,d),a)};N.getRoot=function(a,b){var c=b[0];if(c&&9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;if(!c)throw Error("Context node not found when determining document root.");var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e};var P=function(a){var b=String(a.name);return"xmlns"===b?"":"xmlns:"===b.substring(0,6)?b.substring(6,b.length):null};function Q(a,b,c){return O(a.predicates,b,N.applyStep(a,b,c),l(U,a.axis))}function R(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=p.apply(b,d)}return b}(j(Q.bind(null,c,a),b))}function S(a,b){arguments.length>0&&this.init(a,b)}function T(a,b,c){arguments.length>0&&this.init(a,b,c)}N.applyStep=function(a,b,c){if(!c)throw Error("Context node not found when evaluating XPath step: "+a);var d,e,f=[];switch(b.contextNode=c,a.axis){case T.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?N.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case T.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?N.getOwnerElement(d):d.parentNode);break;case T.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case T.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case T.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case T.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case T.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=new ac("xml",null,t.XML_NAMESPACE_URI,b.contextNode);for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=P(j);null!=k&&void 0==i[k]&&(i[k]=new ac(k,j,j.value,b.contextNode))}for(var k in i){var c=i[k];a.nodeTest.matches(c,b)&&f.push(c)}}break;case T.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?N.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case T.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case T.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case T.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},N.applySteps=function(a,b,c){return i(R.bind(null,b),c,a)},N.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ai.instance_of(c,ab)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:O(this.filterPredicates||[],b,c.toUnsortedArray(),!1)}},N.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[N.getRoot(b,c)]:c;return N.applySteps(a.steps,b,d)},N.prototype.evaluate=function(a){var b=r(new ad,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new ab;return d.addArray(N.applyLocationPath(this.locationPath,b,c.nodes)),d},N.predicateMatches=function(a,b){var c=a.evaluate(b);return ai.instance_of(c,$)?b.contextPosition===c.numberValue():c.booleanValue()},N.predicateString=function(a){return o("[","]",a.toString())},N.predicatesString=function(a){return n("",j(N.predicateString,a))},N.prototype.toString=function(){if(void 0!=this.filter){var a=m(this.filter);return ai.instance_of(this.filter,Z)?o("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?o("(",")",a)+N.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+m(this.locationPath):a}return m(this.locationPath)},N.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},S.prototype={},S.prototype.constructor=S,S.superclass=Object.prototype,S.prototype.init=function(a,b){this.absolute=a,this.steps=b},S.prototype.toString=function(){return(this.absolute?"/":"")+j(m,this.steps).join("/")},T.prototype={},T.prototype.constructor=T,T.superclass=Object.prototype,T.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},T.prototype.toString=function(){return T.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+N.predicatesString(this.predicates)},T.ANCESTOR=0,T.ANCESTORORSELF=1,T.ATTRIBUTE=2,T.CHILD=3,T.DESCENDANT=4,T.DESCENDANTORSELF=5,T.FOLLOWING=6,T.FOLLOWINGSIBLING=7,T.NAMESPACE=8,T.PARENT=9,T.PRECEDING=10,T.PRECEDINGSIBLING=11,T.SELF=12,T.STEPNAMES=i(function(a,b){return a[b[0]]=b[1],a},{},[[T.ANCESTOR,"ancestor"],[T.ANCESTORORSELF,"ancestor-or-self"],[T.ATTRIBUTE,"attribute"],[T.CHILD,"child"],[T.DESCENDANT,"descendant"],[T.DESCENDANTORSELF,"descendant-or-self"],[T.FOLLOWING,"following"],[T.FOLLOWINGSIBLING,"following-sibling"],[T.NAMESPACE,"namespace"],[T.PARENT,"parent"],[T.PRECEDING,"preceding"],[T.PRECEDINGSIBLING,"preceding-sibling"],[T.SELF,"self"]]);var U=[T.ANCESTOR,T.ANCESTORORSELF,T.PARENT,T.PRECEDING,T.PRECEDINGSIBLING];function V(a,b){arguments.length>0&&this.init(a,b)}function W(a){arguments.length>0&&this.init(a)}function X(a,b){arguments.length>0&&this.init(a,b)}V.prototype={},V.prototype.constructor=V,V.superclass=Object.prototype,V.prototype.init=function(a,b){this.type=a,this.value=b},V.prototype.toString=function(){return"<unknown nodetest type>"},V.prototype.matches=function(a,b){console.warn("unknown node test type")},V.NAMETESTANY=0,V.NAMETESTPREFIXANY=1,V.NAMETESTQNAME=2,V.COMMENT=3,V.TEXT=4,V.PI=5,V.NODE=6,V.isNodeType=function(a){return function(b){return l(a,b.nodeType)}},V.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new V(a),d.prototype.constructor=d,r(d.prototype,b),d},V.makeNodeTypeTest=function(a,b,c){return new(V.makeNodeTestType(a,{matches:V.isNodeType(b),toString:function(){return c}}))},V.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},V.isElementOrAttribute=V.isNodeType([1,2]),V.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!V.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},V.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},V.NameTestPrefixAny=V.makeNodeTestType(V.NAMETESTPREFIXANY,{matches:function(a,b){return V.isElementOrAttribute(a)&&V.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),V.NameTestQName=V.makeNodeTestType(V.NAMETESTQNAME,{matches:function(a,b){return V.isNodeType([1,2,f])(a)&&V.nameSpaceMatches(this.prefix,b,a)&&V.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),V.PITest=V.makeNodeTestType(V.PI,{matches:function(a,b){return V.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return o('processing-instruction("','")',this.name)}},function(a){this.name=a}),V.nameTestAny=V.makeNodeTypeTest(V.NAMETESTANY,[1,2,f],"*"),V.textTest=V.makeNodeTypeTest(V.TEXT,[3,4],"text()"),V.commentTest=V.makeNodeTypeTest(V.COMMENT,[8],"comment()"),V.nodeTest=V.makeNodeTypeTest(V.NODE,[1,2,3,4,7,8,9],"node()"),V.anyPiTest=V.makeNodeTypeTest(V.PI,[7],"processing-instruction()"),W.prototype=new v,W.prototype.constructor=W,W.superclass=v.prototype,W.prototype.init=function(a){this.variable=a},W.prototype.toString=function(){return"$"+this.variable},W.prototype.evaluate=function(a){var b=ai.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ak.fromMessage("Undeclared variable: "+this.toString());return c},X.prototype=new v,X.prototype.constructor=X,X.superclass=v.prototype,X.prototype.init=function(a,b){this.functionName=a,this.arguments=b},X.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},X.prototype.evaluate=function(a){var b=af.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var Y={};function Z(a){arguments.length>0&&this.init(a)}function $(a){arguments.length>0&&this.init(a)}function _(a){arguments.length>0&&this.init(a)}function aa(a){this.init(a)}function ab(){this.init()}function ac(a,b,c,d){this.isXPathNamespace=!0,this.baseNode=b,this.ownerDocument=d.ownerDocument,this.nodeName=a,this.prefix=a,this.localName=a,this.namespaceURI=null,this.nodeValue=c,this.ownerElement=d,this.nodeType=f}function ad(a,b,c){this.variableResolver=null!=a?a:new ae,this.namespaceResolver=null!=b?b:new ag,this.functionResolver=null!=c?c:new af}function ae(){}function af(a){this.thisArg=null!=a?a:ah,this.functions={},this.addStandardFunctions()}function ag(){}Y.equals=function(a,b){return a.equals(b)},Y.notequal=function(a,b){return a.notequal(b)},Y.lessthan=function(a,b){return a.lessthan(b)},Y.greaterthan=function(a,b){return a.greaterthan(b)},Y.lessthanorequal=function(a,b){return a.lessthanorequal(b)},Y.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},Z.prototype=new v,Z.prototype.constructor=Z,Z.superclass=v.prototype,Z.prototype.init=function(a){this.str=String(a)},Z.prototype.toString=function(){return this.str},Z.prototype.evaluate=function(a){return this},Z.prototype.string=function(){return this},Z.prototype.number=function(){return new $(this.str)},Z.prototype.bool=function(){return new _(this.str)},Z.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},Z.prototype.stringValue=function(){return this.str},Z.prototype.numberValue=function(){return this.number().numberValue()},Z.prototype.booleanValue=function(){return this.bool().booleanValue()},Z.prototype.equals=function(a){return ai.instance_of(a,_)?this.bool().equals(a):ai.instance_of(a,$)?this.number().equals(a):ai.instance_of(a,ab)?a.compareWithString(this,Y.equals):new _(this.str==a.str)},Z.prototype.notequal=function(a){return ai.instance_of(a,_)?this.bool().notequal(a):ai.instance_of(a,$)?this.number().notequal(a):ai.instance_of(a,ab)?a.compareWithString(this,Y.notequal):new _(this.str!=a.str)},Z.prototype.lessthan=function(a){return this.number().lessthan(a)},Z.prototype.greaterthan=function(a){return this.number().greaterthan(a)},Z.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},Z.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},$.prototype=new v,$.prototype.constructor=$,$.superclass=v.prototype,$.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},$.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,$.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):0/0},$.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},$.prototype.evaluate=function(a){return this},$.prototype.string=function(){return new Z(this.toString())},$.prototype.number=function(){return this},$.prototype.bool=function(){return new _(this.num)},$.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},$.prototype.stringValue=function(){return this.string().stringValue()},$.prototype.numberValue=function(){return this.num},$.prototype.booleanValue=function(){return this.bool().booleanValue()},$.prototype.negate=function(){return new $(-this.num)},$.prototype.equals=function(a){return ai.instance_of(a,_)?this.bool().equals(a):ai.instance_of(a,Z)?this.equals(a.number()):ai.instance_of(a,ab)?a.compareWithNumber(this,Y.equals):new _(this.num==a.num)},$.prototype.notequal=function(a){return ai.instance_of(a,_)?this.bool().notequal(a):ai.instance_of(a,Z)?this.notequal(a.number()):ai.instance_of(a,ab)?a.compareWithNumber(this,Y.notequal):new _(this.num!=a.num)},$.prototype.lessthan=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.greaterthan):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.lessthan(a.number()):new _(this.num<a.num)},$.prototype.greaterthan=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.lessthan):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.greaterthan(a.number()):new _(this.num>a.num)},$.prototype.lessthanorequal=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.greaterthanorequal):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.lessthanorequal(a.number()):new _(this.num<=a.num)},$.prototype.greaterthanorequal=function(a){return ai.instance_of(a,ab)?a.compareWithNumber(this,Y.lessthanorequal):ai.instance_of(a,_)||ai.instance_of(a,Z)?this.greaterthanorequal(a.number()):new _(this.num>=a.num)},$.prototype.plus=function(a){return new $(this.num+a.num)},$.prototype.minus=function(a){return new $(this.num-a.num)},$.prototype.multiply=function(a){return new $(this.num*a.num)},$.prototype.div=function(a){return new $(this.num/a.num)},$.prototype.mod=function(a){return new $(this.num%a.num)},_.prototype=new v,_.prototype.constructor=_,_.superclass=v.prototype,_.prototype.init=function(a){this.b=!!a},_.prototype.toString=function(){return this.b.toString()},_.prototype.evaluate=function(a){return this},_.prototype.string=function(){return new Z(this.b)},_.prototype.number=function(){return new $(this.b)},_.prototype.bool=function(){return this},_.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},_.prototype.stringValue=function(){return this.string().stringValue()},_.prototype.numberValue=function(){return this.number().numberValue()},_.prototype.booleanValue=function(){return this.b},_.prototype.not=function(){return new _(!this.b)},_.prototype.equals=function(a){return ai.instance_of(a,Z)||ai.instance_of(a,$)?this.equals(a.bool()):ai.instance_of(a,ab)?a.compareWithBoolean(this,Y.equals):new _(this.b==a.b)},_.prototype.notequal=function(a){return ai.instance_of(a,Z)||ai.instance_of(a,$)?this.notequal(a.bool()):ai.instance_of(a,ab)?a.compareWithBoolean(this,Y.notequal):new _(this.b!=a.b)},_.prototype.lessthan=function(a){return this.number().lessthan(a)},_.prototype.greaterthan=function(a){return this.number().greaterthan(a)},_.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},_.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},_.true_=new _(!0),_.false_=new _(!1),aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},aa.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},aa.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},aa.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},aa.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},aa.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},aa.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=aj(a),k=aj(b);if(j&&!k)return -1;if(!j&&k)return 1;if(a.isXPathNamespace){if(a.nodeValue===t.XML_NAMESPACE_URI||!b.isXPathNamespace)return -1;if(b.nodeValue===t.XML_NAMESPACE_URI)return 1}else if(b.isXPathNamespace)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=a.baseNode||a,o=b.baseNode||b,p=0;p<m;p+=1){var q=l[p];if(q===n)return -1;if(q===o)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new aa(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new aa(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},ab.prototype=new v,ab.prototype.constructor=ab,ab.superclass=v.prototype,ab.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},ab.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},ab.prototype.evaluate=function(a){return this},ab.prototype.string=function(){return new Z(this.toString())},ab.prototype.stringValue=function(){return this.toString()},ab.prototype.number=function(){return new $(this.string())},ab.prototype.numberValue=function(){return Number(this.string())},ab.prototype.bool=function(){return new _(this.booleanValue())},ab.prototype.booleanValue=function(){return!!this.size},ab.prototype.nodeset=function(){return this},ab.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},ab.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},ab.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new aa(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},ab.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},ab.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},ab.prototype.addArray=function(a){var b=this;h(function(a){b.add(a)},a)},ab.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},ab.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},ab.prototype.toUnsortedArray=function(){return this.nodes.slice()},ab.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new Z(this.stringForNode(e)),a);if(f.booleanValue())return f}return new _(!1)},ab.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new $(this.stringForNode(e)),a);if(f.booleanValue())return f}return new _(!1)},ab.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},ab.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new Z(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new _(!1)},b=function(a,b){return ai.instance_of(b,Z)?this.compareWithString(b,a):ai.instance_of(b,$)?this.compareWithNumber(b,a):ai.instance_of(b,_)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,ab.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},ab.prototype.equals=ab.compareWith(Y.equals),ab.prototype.notequal=ab.compareWith(Y.notequal),ab.prototype.lessthan=ab.compareWith(Y.lessthan),ab.prototype.greaterthan=ab.compareWith(Y.greaterthan),ab.prototype.lessthanorequal=ab.compareWith(Y.lessthanorequal),ab.prototype.greaterthanorequal=ab.compareWith(Y.greaterthanorequal),ab.prototype.union=function(a){var b=new ab;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},ac.prototype={},ac.prototype.constructor=ac,ac.superclass=Object.prototype,ac.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},ad.prototype={},ad.prototype.constructor=ad,ad.superclass=Object.prototype,ad.prototype.extend=function(a){return r(new ad,this,a)},ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.prototype.getVariable=function(a,b){return null},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.addStandardFunctions=function(){this.functions["{}last"]=ah.last,this.functions["{}position"]=ah.position,this.functions["{}count"]=ah.count,this.functions["{}id"]=ah.id,this.functions["{}local-name"]=ah.localName,this.functions["{}namespace-uri"]=ah.namespaceURI,this.functions["{}name"]=ah.name,this.functions["{}string"]=ah.string,this.functions["{}concat"]=ah.concat,this.functions["{}starts-with"]=ah.startsWith,this.functions["{}contains"]=ah.contains,this.functions["{}substring-before"]=ah.substringBefore,this.functions["{}substring-after"]=ah.substringAfter,this.functions["{}substring"]=ah.substring,this.functions["{}string-length"]=ah.stringLength,this.functions["{}normalize-space"]=ah.normalizeSpace,this.functions["{}translate"]=ah.translate,this.functions["{}boolean"]=ah.boolean_,this.functions["{}not"]=ah.not,this.functions["{}true"]=ah.true_,this.functions["{}false"]=ah.false_,this.functions["{}lang"]=ah.lang,this.functions["{}number"]=ah.number,this.functions["{}sum"]=ah.sum,this.functions["{}floor"]=ah.floor,this.functions["{}ceiling"]=ah.ceiling,this.functions["{}round"]=ah.round},af.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},af.getFunctionFromContext=function(a,b){var c=ai.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},af.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.getNamespace=function(a,b){if("xml"==a)return t.XML_NAMESPACE_URI;if("xmlns"==a)return t.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=N.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ah={};ah.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new $(a.contextSize)},ah.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new $(a.contextPosition)},ah.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ai.instance_of(a=arguments[1].evaluate(b),ab))throw Error("Function count expects (node-set)");return new $(a.size)},ah.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ai.instance_of(a,ab)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new ab,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ai.getElementById(f,d[g]))&&e.add(b);return e},ah.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new Z(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ah.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new Z(null==a?"":a.namespaceURI||"")},ah.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new Z(""):1==a.nodeType?new Z(a.nodeName):2==a.nodeType?new Z(a.name||a.nodeName):7===a.nodeType?new Z(a.target||a.nodeName):null==a.localName?new Z(""):new Z(a.localName)},ah.string=function(){var a=arguments[0];if(1==arguments.length)return new Z(ab.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ah.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new Z(b)},ah.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(b.substring(0,c.length)==c)},ah.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(-1!==b.indexOf(c))},ah.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new Z(b.substring(0,b.indexOf(c)))},ah.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new Z(b);var d=b.indexOf(c);return new Z(-1==d?"":b.substring(d+c.length))},ah.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new Z(b.substring(c,d))},ah.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=ab.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new $(a.length)},ah.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=ab.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ai.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ai.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ai.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ai.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new Z(e)},ah.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),g=d.evaluate(a).stringValue(),h=i(function(a,b,c){return b in a||(a[b]=c>g.length?"":g[c]),a},{},f);return new Z(n("",j(function(a){return a in h?h[a]:a},e)))},ah.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ah.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ah.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return _.true_},ah.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return _.false_},ah.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(t.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return _.false_;var e=arguments[1].evaluate(b).stringValue();return new _(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ah.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new $(ab.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ah.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ai.instance_of(a=arguments[1].evaluate(b),ab))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new $(ab.prototype.stringForNode(a[d])).numberValue();return new $(c)},ah.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new $(Math.floor(arguments[1].evaluate(a).numberValue()))},ah.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new $(Math.ceil(arguments[1].evaluate(a).numberValue()))},ah.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new $(Math.round(arguments[1].evaluate(a).numberValue()))};var ai={},aj=function(a){return a&&(2===a.nodeType||a.ownerElement||a.isXPathNamespace)};ai.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ai.resolveQName=function(a,b,c,d){var e=ai.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ai.isSpace=function(a){return 9==a||13==a||10==a||32==a},ai.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ai.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ai.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ai.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ai.coalesceText(b)},ai.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ai.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ai.getElementById(c,b);if(null!=d)return d}return null};var ak=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function al(a,b,c){this.xpath=c.parse(a),this.context=new ad,this.context.namespaceResolver=new am(b)}function am(a){this.xpathNSResolver=a}function an(a){this.node=a,this.namespaceResolver=new ag}function ao(a,b){switch(b==ao.ANY_TYPE&&(a.constructor===Z?b=ao.STRING_TYPE:a.constructor===$?b=ao.NUMBER_TYPE:a.constructor===_?b=ao.BOOLEAN_TYPE:a.constructor===ab&&(b=ao.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ao.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ao.STRING_TYPE:this.stringValue=a.stringValue();return;case ao.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ao.ANY_UNORDERED_NODE_TYPE:case ao.FIRST_ORDERED_NODE_TYPE:if(a.constructor===ab){this.singleNodeValue=a.first();return}break;case ao.UNORDERED_NODE_ITERATOR_TYPE:case ao.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===ab){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ao.UNORDERED_NODE_SNAPSHOT_TYPE:case ao.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===ab){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ak(ak.TYPE_ERR)}function ap(a,b){a.createExpression=function(a,c){try{return new al(a,c,b)}catch(a){throw new ak(ak.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new an(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}al.prototype={},al.prototype.constructor=al,al.superclass=Object.prototype,al.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},al.detectHtmlDom=function(a){if(!a)return!1;var b=al.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},al.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=al.detectHtmlDom(a),new ao(this.xpath.evaluate(this.context),b)},am.prototype={},am.prototype.constructor=am,am.superclass=Object.prototype,am.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},an.prototype={},an.prototype.constructor=an,an.superclass=Object.prototype,an.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ao.prototype={},ao.prototype.constructor=ao,ao.superclass=Object.prototype,ao.prototype.iterateNext=function(){if(this.resultType!=ao.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ao.ORDERED_NODE_ITERATOR_TYPE)throw new ak(ak.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ao.prototype.snapshotItem=function(a){if(this.resultType!=ao.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ao.ORDERED_NODE_SNAPSHOT_TYPE)throw new ak(ak.TYPE_ERR);return this.nodes[a]},ao.ANY_TYPE=0,ao.NUMBER_TYPE=1,ao.STRING_TYPE=2,ao.BOOLEAN_TYPE=3,ao.UNORDERED_NODE_ITERATOR_TYPE=4,ao.ORDERED_NODE_ITERATOR_TYPE=5,ao.UNORDERED_NODE_SNAPSHOT_TYPE=6,ao.ORDERED_NODE_SNAPSHOT_TYPE=7,ao.ANY_UNORDERED_NODE_TYPE=8,ao.FIRST_ORDERED_NODE_TYPE=9;try{var aq=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aq=!1)}catch(a){}aq&&ap(document,new s)}catch(a){}ap(a,new s),function(){var b=new s,c=new ag,d=new af,e=new ae;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof Z||a instanceof _||a instanceof $||a instanceof ab)return a;switch(typeof a){case"string":return new Z(a);case"boolean":return new _(a);case"number":return new $(a)}var b=new ab;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new ad,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),r(a,{XPath:t,XPathParser:s,XPathResult:ao,Step:T,PathExpr:N,NodeTest:V,LocationPath:S,OrOperation:z,AndOperation:A,BarOperation:M,EqualsOperation:B,NotEqualOperation:C,LessThanOperation:D,GreaterThanOperation:E,LessThanOrEqualOperation:F,GreaterThanOrEqualOperation:G,PlusOperation:H,MinusOperation:I,MultiplyOperation:J,DivOperation:K,ModOperation:L,UnaryMinusOperation:x,FunctionCall:X,VariableReference:W,XPathContext:ad,XNodeSet:ab,XBoolean:_,XString:Z,XNumber:$,NamespaceResolver:ag,FunctionResolver:af,VariableResolver:ae,Utilities:ai}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new al(a,c,new s),f=ao.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ao.STRING_TYPE?g=g.stringValue:g.resultType==ao.NUMBER_TYPE?g=g.numberValue:g.resultType==ao.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ar=function(a){return function(b){return g(b)&&b.nodeType===a}};r(a,{isNodeLike:g,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(g)},isElement:ar(1),isAttribute:ar(2),isTextNode:ar(3),isCDATASection:ar(4),isProcessingInstruction:ar(7),isComment:ar(8),isDocumentNode:ar(9),isDocumentTypeNode:ar(10),isDocumentFragment:ar(11)})}(b)},32748:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.HmacSha1=b.RsaSha512=b.RsaSha256Mgf1=b.RsaSha256=b.RsaSha1=void 0;let d=c(55511),e=c(75546);class f{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA1");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA1");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}}b.RsaSha1=f;class g{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA256");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA256");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}}b.RsaSha256=g;class h{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{if(!("string"==typeof b||Buffer.isBuffer(b)))throw Error("keys must be strings or buffers");let c=d.createSign("RSA-SHA256");return c.update(a),c.sign({key:b,padding:d.constants.RSA_PKCS1_PSS_PADDING,saltLength:d.constants.RSA_PSS_SALTLEN_DIGEST},"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{if(!("string"==typeof b||Buffer.isBuffer(b)))throw Error("keys must be strings or buffers");let e=d.createVerify("RSA-SHA256");return e.update(a),e.verify({key:b,padding:d.constants.RSA_PKCS1_PSS_PADDING,saltLength:d.constants.RSA_PSS_SALTLEN_DIGEST},c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1"}}b.RsaSha256Mgf1=h;class i{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA512");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA512");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}}b.RsaSha512=i;class j{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createHmac("SHA1",b);return c.update(a),c.digest("base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createHmac("SHA1",b);e.update(a);let f=e.digest("base64");try{return d.timingSafeEqual(Buffer.from(f,"base64"),Buffer.from(c,"base64"))}catch(a){return!1}}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}}b.HmacSha1=j},33773:function(a,b,c){(function(){var b,d,e,f,g,h,i,j;({isObject:j}=c(43594)),i=c(73067),b=c(26468),d=c(77192),f=c(71920),e=c(1243),g=c(48813),h=c(87074),a.exports=(function(){class a extends i{constructor(a,c,d){var e,f,g,h;if(super(a),this.type=b.DocType,a.children){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.Element){this.name=e.name;break}}this.documentObject=a,j(c)&&({pubID:c,sysID:d}=c),null==d&&([d,c]=[c,d]),null!=c&&(this.pubID=this.stringify.dtdPubID(c)),null!=d&&(this.sysID=this.stringify.dtdSysID(d))}element(a,b){var c;return c=new e(this,a,b),this.children.push(c),this}attList(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this}entity(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this}pEntity(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this}notation(a,b){var c;return c=new g(this,a,b),this.children.push(c),this}toString(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))}ele(a,b){return this.element(a,b)}att(a,b,c,d,e){return this.attList(a,b,c,d,e)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}up(){return this.root()||this.documentObject}isEqualNode(a){return!!super.isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId}}return Object.defineProperty(a.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},34153:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.signSamlPost=e,b.signAuthnRequestPost=function(a,b){return e(a,'/*[local-name(.)="AuthnRequest" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]',b)};let d=c(65756);function e(a,b,c){return(0,d.signXml)(a,b,{reference:b+'/*[local-name(.)="Issuer" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:assertion"]',action:"after"},c)}},34370:function(a){(function(){a.exports=(function(){class a{constructor(a){this.arr=a||[]}item(a){return this.arr[a]||null}contains(a){return -1!==this.arr.indexOf(a)}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a}).call(this)}).call(this)},35312:(a,b)=>{"use strict";var c,d;Object.defineProperty(b,"__esModule",{value:!0}),b.SamlStatusError=b.ValidateInResponseTo=b.isValidSamlSigningOptions=void 0,b.isValidSamlSigningOptions=a=>null!=a.privateKey,(d=c||(b.ValidateInResponseTo=c={})).never="never",d.ifPresent="ifPresent",d.always="always";class e extends Error{constructor(a,b){super(a),this.xmlStatus=b}}b.SamlStatusError=e},35387:(a,b,c)=>{a.exports=c(91848)},35971:function(a){(function(){a.exports=function(){function a(){}return a.prototype.hasFeature=function(a,b){return!0},a.prototype.createDocumentType=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createDocument=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createHTMLDocument=function(a){throw Error("This DOM method is not implemented.")},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},36481:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.assertRequired=function(a,b){if(null==a||"string"==typeof a&&0===a.length)throw TypeError(null!=b?b:"value does not exist")},b.assertBooleanIfPresent=function(a,b){if(null!=a&&"boolean"!=typeof a)throw TypeError(null!=b?b:"value is set but not boolean")},b.signXmlResponse=function(a,b){let c='//*[local-name(.)="Response" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]';return(0,d.signXml)(a,c,{reference:c,action:"append"},b)},b.signXmlMetadata=function(a,b){let c='//*[local-name(.)="EntityDescriptor" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:metadata"]';return(0,d.signXml)(a,c,{reference:c,action:"prepend"},b)};let d=c(65756)},36700:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},42429:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):0/0},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ak=function(a){return a&&"number"==typeof a.nodeType&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName},al=function(a){return function(b){return ak(b)&&b.nodeType===a}};o(a,{isNodeLike:ak,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(ak)},isElement:al(1),isAttribute:al(2),isTextNode:al(3),isCDATASection:al(4),isProcessingInstruction:al(7),isComment:al(8),isDocumentNode:al(9),isDocumentTypeNode:al(10),isDocumentFragment:al(11)})}(b)},43594:function(a){(function(){var b,c,d,e={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(a,...b){var d,f,g,h;if(c(Object.assign))Object.assign.apply(null,arguments);else for(d=0,g=b.length;d<g;d++)if(null!=(h=b[d]))for(f in h)e.call(h,f)&&(a[f]=h[f]);return a},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(e.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},43849:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;i=(j=c(4700)).isObject,h=j.isFunction,g=j.getValue,f=c(8957),b=c(24706),d=c(94253),e=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i;if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=e&&this.attribute(e),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.DocType){f.name=this.name;break}}}return k(c,a),Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),c.prototype.clone=function(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)l.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c},c.prototype.attribute=function(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)l.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this},c.prototype.removeAttribute=function(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this},c.prototype.toString=function(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))},c.prototype.att=function(a,b){return this.attribute(a,b)},c.prototype.a=function(a,b){return this.attribute(a,b)},c.prototype.getAttribute=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null},c.prototype.setAttribute=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNode=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null},c.prototype.setAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNodeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNodeNS=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.hasAttribute=function(a){return this.attribs.hasOwnProperty(a)},c.prototype.hasAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttribute=function(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b},c.prototype.setIdAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttributeNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){var b,d,e;if(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=d=0,e=this.attribs.length-1;0<=e?d<=e:d>=e;b=0<=e?++d:--d)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0},c}(f)}).call(this)},44558:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Sha512=b.Sha256=b.Sha1=void 0;let d=c(55511);class e{constructor(){this.getHash=function(a){let b=d.createHash("sha1");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}}b.Sha1=e;class f{constructor(){this.getHash=function(a){let b=d.createHash("sha256");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}}b.Sha256=f;class g{constructor(){this.getHash=function(a){let b=d.createHash("sha512");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}}b.Sha512=g},44981:function(a,b,c){(function(){var b;b=c(67289),a.exports=class extends b{constructor(a){super(a)}document(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f}}}).call(this)},45454:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e,f,g,h){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());if(null==e)throw Error("Missing DTD attribute name. "+this.debugInfo(d));if(!f)throw Error("Missing DTD attribute type. "+this.debugInfo(d));if(!g)throw Error("Missing DTD attribute default. "+this.debugInfo(d));if(0!==g.indexOf("#")&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(d));if(h&&!g.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(d));this.elementName=this.stringify.name(d),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(e),this.attributeType=this.stringify.dtdAttType(f),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=g}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},45540:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.generateServiceProviderMetadata=void 0;let d=c(26884),e=c(35312),f=c(36481),g=c(65756),h=c(26884),i=c(30072);b.generateServiceProviderMetadata=a=>{let{issuer:b,callbackUrl:c,logoutCallbackUrl:j,decryptionPvk:k,privateKey:l,metadataContactPerson:m,metadataOrganization:n,identifierFormat:o=i.DEFAULT_IDENTIFIER_FORMAT,wantAssertionsSigned:p=i.DEFAULT_WANT_ASSERTIONS_SIGNED,generateUniqueId:q=h.generateUniqueId}=a,{publicCerts:r,decryptionCert:s}=a;if(null!=k){if(!s)throw Error("Missing decryptionCert while generating metadata for decrypting service provider")}else s=null;if(null!=l){if(!r)throw Error("Missing publicCert while generating metadata for signing service provider messages");r=Array.isArray(r)?r:[r]}else r=null;let t={EntityDescriptor:{"@xmlns":"urn:oasis:names:tc:SAML:2.0:metadata","@xmlns:ds":"http://www.w3.org/2000/09/xmldsig#","@entityID":b,"@ID":q(),SPSSODescriptor:{"@protocolSupportEnumeration":"urn:oasis:names:tc:SAML:2.0:protocol","@AuthnRequestsSigned":"false"},...n?{Organization:n}:{},...m?{ContactPerson:m}:{}}};if(null!=s||null!=r){if(t.EntityDescriptor.SPSSODescriptor.KeyDescriptor=[],(0,e.isValidSamlSigningOptions)(a)){(0,f.assertRequired)(r,"Missing publicCert while generating metadata for signing service provider messages"),t.EntityDescriptor.SPSSODescriptor["@AuthnRequestsSigned"]=!0;let a=(Array.isArray(r)?r:[r]).map(a=>({"@use":"signing","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":(0,d.stripPemHeaderAndFooter)(a)}}}}));t.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push(a)}null!=k&&((0,f.assertRequired)(s,"Missing decryptionCert while generating metadata for decrypting service provider"),s=(0,d.stripPemHeaderAndFooter)(s),t.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push({"@use":"encryption","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":s}}},EncryptionMethod:[{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes256-gcm"},{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes128-gcm"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes256-cbc"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes128-cbc"}]}))}null!=j&&(t.EntityDescriptor.SPSSODescriptor.SingleLogoutService={"@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":j}),null!=o&&(t.EntityDescriptor.SPSSODescriptor.NameIDFormat=o),p&&(t.EntityDescriptor.SPSSODescriptor["@WantAssertionsSigned"]=!0),t.EntityDescriptor.SPSSODescriptor.AssertionConsumerService={"@index":"1","@isDefault":"true","@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":c};let u=(0,g.buildXmlBuilderObject)(t,!0);return!0===a.signMetadata&&(0,e.isValidSamlSigningOptions)(a)&&(u=(0,f.signXmlMetadata)(u,{privateKey:a.privateKey,signatureAlgorithm:a.signatureAlgorithm,xmlSignatureTransforms:a.xmlSignatureTransforms,digestAlgorithm:a.digestAlgorithm})),u}},46584:function(a){(function(){a.exports=function(){function a(a){this.arr=a||[]}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a.prototype.item=function(a){return this.arr[a]||null},a.prototype.contains=function(a){return -1!==this.arr.indexOf(a)},a}()}).call(this)},46780:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},46898:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))}}}).call(this)},47564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SAML=void 0;let d=c(46140),e=c(74075),f=c(55511),g=c(1932),h=c(11723),i=c(28354),j=c(31673),k=c(86175),l=c(35312),m=c(36481),n=c(65756),o=c(26884),p=c(19691),q=c(34153),r=c(45540),s=c(30072),t=(0,d.default)("node-saml"),u=i.promisify(e.inflateRaw),v=i.promisify(e.deflateRaw),w=async({idpCert:a})=>{let b="function"==typeof a?await i.promisify(a)().then(a=>((0,m.assertRequired)(a,"callback didn't return idpCert"),a)):a;return Array.isArray(b)?b.map((a,b)=>(0,o.keyInfoToPem)(a,"CERTIFICATE",`idpCert[${b}]`)):[(0,o.keyInfoToPem)(b,"CERTIFICATE","idpCert")]};class x{constructor(a){this.pemFiles=[],this.options=this.initialize(a),this.cacheProvider=this.options.cacheProvider}initialize(a){var b,c,d,e,f,g,h,i,k,n,p,q,r,t,u,v,w,x,y,z,A,B,C,D,E,F;if(!a)throw TypeError("SamlOptions required on construction");(0,m.assertRequired)(a.callbackUrl,"callbackUrl is required"),(0,m.assertRequired)(a.issuer,"issuer is required"),(0,m.assertRequired)(a.idpCert,"idpCert is required"),(0,m.assertBooleanIfPresent)(a.passive),(0,m.assertBooleanIfPresent)(a.disableRequestedAuthnContext),(0,m.assertBooleanIfPresent)(a.forceAuthn),(0,m.assertBooleanIfPresent)(a.skipRequestCompression),(0,m.assertBooleanIfPresent)(a.disableRequestAcsUrl),(0,m.assertBooleanIfPresent)(a.allowCreate),(0,m.assertBooleanIfPresent)(a.wantAssertionsSigned),(0,m.assertBooleanIfPresent)(a.wantAuthnResponseSigned),(0,m.assertBooleanIfPresent)(a.signMetadata);let G={...a,passive:null!=(b=a.passive)&&b,disableRequestedAuthnContext:null!=(c=a.disableRequestedAuthnContext)&&c,additionalParams:null!=(d=a.additionalParams)?d:{},additionalAuthorizeParams:null!=(e=a.additionalAuthorizeParams)?e:{},additionalLogoutParams:null!=(f=a.additionalLogoutParams)?f:{},forceAuthn:null!=(g=a.forceAuthn)&&g,skipRequestCompression:null!=(h=a.skipRequestCompression)&&h,disableRequestAcsUrl:null!=(i=a.disableRequestAcsUrl)&&i,acceptedClockSkewMs:null!=(k=a.acceptedClockSkewMs)?k:0,maxAssertionAgeMs:null!=(n=a.maxAssertionAgeMs)?n:0,callbackUrl:a.callbackUrl,issuer:a.issuer,audience:null!=(q=null!=(p=a.audience)?p:a.issuer)?q:"unknown_audience",identifierFormat:void 0===a.identifierFormat?s.DEFAULT_IDENTIFIER_FORMAT:a.identifierFormat,allowCreate:null==(r=a.allowCreate)||r,spNameQualifier:a.spNameQualifier,wantAssertionsSigned:null!=(t=a.wantAssertionsSigned)?t:s.DEFAULT_WANT_ASSERTIONS_SIGNED,wantAuthnResponseSigned:null==(u=a.wantAuthnResponseSigned)||u,authnContext:null!=(v=a.authnContext)?v:["urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"],validateInResponseTo:null!=(w=a.validateInResponseTo)?w:l.ValidateInResponseTo.never,idpCert:a.idpCert,requestIdExpirationPeriodMs:null!=(x=a.requestIdExpirationPeriodMs)?x:288e5,cacheProvider:null!=(y=a.cacheProvider)?y:new j.InMemoryCacheProvider({keyExpirationPeriodMs:a.requestIdExpirationPeriodMs}),logoutUrl:null!=(A=null!=(z=a.logoutUrl)?z:a.entryPoint)?A:"",signatureAlgorithm:null!=(B=a.signatureAlgorithm)?B:"sha1",authnRequestBinding:null!=(C=a.authnRequestBinding)?C:"HTTP-Redirect",generateUniqueId:null!=(D=a.generateUniqueId)?D:o.generateUniqueId,signMetadata:null!=(E=a.signMetadata)&&E,racComparison:null!=(F=a.racComparison)?F:"exact"};if(!Object.values(l.ValidateInResponseTo).includes(G.validateInResponseTo))throw TypeError("validateInResponseTo must be one of ['never', 'ifPresent', 'always']");if(!["exact","minimum","maximum","better"].includes(G.racComparison))throw TypeError("racComparison must be one of ['exact', 'minimum', 'maximum', 'better']");return G}signRequest(a){(0,m.assertRequired)(this.options.privateKey,"privateKey is required");let b={};a.SigAlg=k.getSigningAlgorithm(this.options.signatureAlgorithm);let c=k.getSigner(this.options.signatureAlgorithm);a.SAMLRequest&&(b.SAMLRequest=a.SAMLRequest),a.SAMLResponse&&(b.SAMLResponse=a.SAMLResponse),a.RelayState&&(b.RelayState=a.RelayState),a.SigAlg&&(b.SigAlg=a.SigAlg),c.update(h.stringify(b)),a.Signature=c.sign((0,o.keyInfoToPem)(this.options.privateKey,"PRIVATE KEY","privateKey"),"base64")}async generateAuthorizeRequestAsync(a,b){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let c=this.options.generateUniqueId(),d=(0,p.generateInstant)();this.mustValidateInResponseTo(!0)&&await this.cacheProvider.saveAsync(c,d);let e={"samlp:AuthnRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@ID":c,"@Version":"2.0","@IssueInstant":d,"@ProtocolBinding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Destination":this.options.entryPoint,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer}}};a&&(e["samlp:AuthnRequest"]["@IsPassive"]=!0),!0===this.options.forceAuthn&&(e["samlp:AuthnRequest"]["@ForceAuthn"]=!0),this.options.disableRequestAcsUrl||(e["samlp:AuthnRequest"]["@AssertionConsumerServiceURL"]=this.options.callbackUrl);let f=this.options.samlAuthnRequestExtensions;if(null!=f){if("object"!=typeof f)throw TypeError("samlAuthnRequestExtensions should be Object");e["samlp:AuthnRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...f}}let g={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@AllowCreate":this.options.allowCreate};if(null!=this.options.identifierFormat&&(g["@Format"]=this.options.identifierFormat),null!=this.options.spNameQualifier&&(g["@SPNameQualifier"]=this.options.spNameQualifier),e["samlp:AuthnRequest"]["samlp:NameIDPolicy"]=g,!this.options.disableRequestedAuthnContext){let a=[];this.options.authnContext.forEach(function(b){a.push({"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":b})}),e["samlp:AuthnRequest"]["samlp:RequestedAuthnContext"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@Comparison":this.options.racComparison,"saml:AuthnContextClassRef":a}}if(null!=this.options.attributeConsumingServiceIndex&&(e["samlp:AuthnRequest"]["@AttributeConsumingServiceIndex"]=this.options.attributeConsumingServiceIndex),null!=this.options.providerName&&(e["samlp:AuthnRequest"]["@ProviderName"]=this.options.providerName),null!=this.options.scoping){let a={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};"number"==typeof this.options.scoping.proxyCount&&(a["@ProxyCount"]=this.options.scoping.proxyCount),this.options.scoping.idpList&&(a["samlp:IDPList"]=this.options.scoping.idpList.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return a.entries&&(b["samlp:IDPEntry"]=a.entries.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return b["@ProviderID"]=a.providerId,a.name&&(b["@Name"]=a.name),a.loc&&(b["@Loc"]=a.loc),b})),a.getComplete&&(b["samlp:GetComplete"]=a.getComplete),b})),this.options.scoping.requesterId&&(a["samlp:RequesterID"]=this.options.scoping.requesterId),e["samlp:AuthnRequest"]["samlp:Scoping"]=a}let h=(0,n.buildXmlBuilderObject)(e,!1);return b&&(0,l.isValidSamlSigningOptions)(this.options)&&(h=(0,q.signAuthnRequestPost)(h,this.options)),h}async _generateLogoutRequest(a){let b=this.options.generateUniqueId(),c=(0,p.generateInstant)(),d={"samlp:LogoutRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":b,"@Version":"2.0","@IssueInstant":c,"@Destination":this.options.logoutUrl,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer},"samlp:Extensions":{},"saml:NameID":{"@Format":a.nameIDFormat,"#text":a.nameID}}},e=this.options.samlLogoutRequestExtensions;if(null!=e){if("object"!=typeof e)throw TypeError("samlLogoutRequestExtensions should be Object");d["samlp:LogoutRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...e}}else delete d["samlp:LogoutRequest"]["samlp:Extensions"];return null!=a.nameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@NameQualifier"]=a.nameQualifier),null!=a.spNameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@SPNameQualifier"]=a.spNameQualifier),a.sessionIndex&&(d["samlp:LogoutRequest"]["saml2p:SessionIndex"]={"@xmlns:saml2p":"urn:oasis:names:tc:SAML:2.0:protocol","#text":a.sessionIndex}),await this.cacheProvider.saveAsync(b,c),(0,n.buildXmlBuilderObject)(d,!1)}_generateLogoutResponse(a,b){let c={"samlp:LogoutResponse":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":this.options.generateUniqueId(),"@Version":"2.0","@IssueInstant":(0,p.generateInstant)(),"@Destination":this.options.logoutUrl,"@InResponseTo":a.ID,"saml:Issuer":{"#text":this.options.issuer},"samlp:Status":b?{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Success"}}:{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Requester","samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal"}}}}};return(0,n.buildXmlBuilderObject)(c,!1)}async _requestToUrlAsync(a,b,c,d){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let e=a||b;(0,m.assertRequired)(e,"either request or response is required");let f=(this.options.skipRequestCompression?Buffer.from(e,"utf8"):await v(e)).toString("base64"),h=new g.URL(this.options.entryPoint);if("logout"===c)this.options.logoutUrl&&(h=new g.URL(this.options.logoutUrl));else if("authorize"!==c)throw Error("Unknown operation: "+c);let i=a?{SAMLRequest:f}:{SAMLResponse:f};if(Object.keys(d).forEach(a=>{i[a]=d[a]}),(0,l.isValidSamlSigningOptions)(this.options)){if(!this.options.entryPoint)throw Error('"entryPoint" config parameter is required for signed messages');this.signRequest(i)}return Object.keys(i).forEach(a=>{h.searchParams.set(a,i[a])}),h.toString()}_getAdditionalParams(a,b,c){let d={};return"string"==typeof a&&a.length>0&&(d.RelayState=a),Object.assign(d,this.options.additionalParams,"logout"===b?this.options.additionalLogoutParams:this.options.additionalAuthorizeParams,null!=c?c:{})}async getAuthorizeUrlAsync(a,b,c){let d=await this.generateAuthorizeRequestAsync(this.options.passive,!1),e="authorize",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(a,e,f))}async getAuthorizeMessageAsync(a,b,c){let d;(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let e=await this.generateAuthorizeRequestAsync(this.options.passive,!0);d=this.options.skipRequestCompression?Buffer.from(e,"utf8"):await v(e);let f=c&&c.additionalParams||{},g=this._getAdditionalParams(a,"authorize",f),h={SAMLRequest:d.toString("base64")};return Object.keys(g).forEach(a=>{h[a]=g[a]||""}),h}async getAuthorizeFormAsync(a,b,c){(0,m.assertRequired)(this.options.entryPoint,"entryPoint is required");let d=function(a,b){let c=b?" ":"\n";return(""+a).replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/\r\n/g,c).replace(/[\r\n]/g,c)},e=await this.getAuthorizeMessageAsync(a,b,c),f=Object.keys(e).map(a=>'<input type="hidden" name="'+a+'" value="'+d(e[a])+'" />').join("\r\n");return["<!DOCTYPE html>","<html>","<head>",'<meta charset="utf-8">','<meta http-equiv="x-ua-compatible" content="ie=edge">',"</head>",'<body onload="document.forms[0].submit()">',"<noscript>","<p><strong>Note:</strong> Since your browser does not support JavaScript, you must press the button below once to proceed.</p>","</noscript>",'<form method="post" action="'+encodeURI(this.options.entryPoint)+'">',f,'<input type="submit" value="Submit" />',"</form>",'<script>document.forms[0].style.display="none";<\/script>',"</body>","</html>"].join("\r\n")}async getLogoutUrlAsync(a,b,c){let d=await this._generateLogoutRequest(a),e="logout",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(b,e,f))}getLogoutResponseUrl(a,b,c,d,e){i.callbackify(()=>this.getLogoutResponseUrlAsync(a,b,c,d))(e)}async getLogoutResponseUrlAsync(a,b,c,d){let e=this._generateLogoutResponse(a,d),f="logout",g=c&&c.additionalParams||{};return await this._requestToUrlAsync(null,e,f,this._getAdditionalParams(b,f,g))}async getKeyInfosAsPem(){return"function"==typeof this.options.idpCert?await w(this.options):(this.pemFiles.length>0||(this.pemFiles=await w(this.options)),this.pemFiles)}async getSignedAssertion(a){let b=(await (0,n.parseDomFromString)(a)).documentElement;if("Response"===b.localName){let a=n.xpath.selectElements(b,"./*[local-name()='Assertion']");if(1==a.length)return a[0].toString();let c=n.xpath.selectElements(b,"./*[local-name()='EncryptedAssertion']");if(1===c.length){(0,m.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=c[0].toString(),b=await (0,n.decryptXml)(a,this.options.decryptionPvk),d=(await (0,n.parseDomFromString)(b)).documentElement;if("Assertion"!==d.localName)throw Error("Invalid EncryptedAssertion content");return d.toString()}}else if("Assertion"===b.localName)return b.toString();return null}async validatePostResponseAsync(a){var b,c,d,e;let f,g,h=null;try{f=Buffer.from(a.SAMLResponse,"base64").toString("utf8"),g=await (0,n.parseDomFromString)(f);let i=n.xpath.selectAttributes(g,"/*[local-name()='Response']/@InResponseTo");i&&(h=i.length?i[0].nodeValue:null,await this.validateInResponseTo(h));let j=await this.getKeyInfosAsPem(),k=!1,o=(0,n.getVerifiedXml)(f,g.documentElement,j),p=null,q=null;if(o&&(k=!0),!0===this.options.wantAuthnResponseSigned&&!1===k)throw Error("Invalid document signature");let r=n.xpath.selectElements(g,"/*[local-name()='Response']/*[local-name()='Assertion']"),s=n.xpath.selectElements(g,"/*[local-name()='Response']/*[local-name()='EncryptedAssertion']");if(r.length+s.length>1)throw Error("Invalid signature: multiple assertions");if(1==r.length&&(this.options.wantAssertionsSigned||!k)&&!(p=(0,n.getVerifiedXml)(f,r[0],j)))throw Error("Invalid signature");if(1==s.length){(0,m.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=s[0].toString(),b=await (0,n.decryptXml)(a,this.options.decryptionPvk),c=await (0,n.parseDomFromString)(b),d=n.xpath.selectElements(c,"/*[local-name()='Assertion']");if(1!=d.length)throw Error("Invalid EncryptedAssertion content");if((this.options.wantAssertionsSigned||!k)&&(q=(0,n.getVerifiedXml)(b,d[0],j),null==q))throw Error("Invalid signature from encrypted assertion")}let t=o||p||q;if(t&&r.length+s.length==1){let a=await this.getSignedAssertion(t);if(null==a)throw Error("Cannot obtain assertion from signed data");return await this.processValidlySignedAssertionAsync(a,f,h)}let u=await (0,n.parseXml2JsFromString)(f),v=u.Response;if(v){if(!("Assertion"in v)){let a=v.Status;if(a){let f=a[0].StatusCode;if(f&&(null==(b=f[0].$)?void 0:b.Value)==="urn:oasis:names:tc:SAML:2.0:status:Responder"){let a=f[0].StatusCode;if(a&&(null==(c=a[0].$)?void 0:c.Value)==="urn:oasis:names:tc:SAML:2.0:status:NoPassive"){if(!k)throw Error("Invalid signature: NoPassive");return{profile:null,loggedOut:!1}}}if(f&&(null==(d=f[0].$)?void 0:d.Value)){let b=f[0].$.Value.match(/[^:]*$/);if(b&&"Success"!=b[0]){let c="unspecified";if(a[0].StatusMessage)c=a[0].StatusMessage[0]._||c;else if(f[0].StatusCode){let a=null==(e=f[0].StatusCode[0].$)?void 0:e.Value.match(/[^:]*$/);c=a?a[0]:c}let d=(0,n.buildXml2JsObject)("Status",a[0]);throw new l.SamlStatusError("SAML provider returned "+b+" error: "+c,d)}}}}throw Error("Missing SAML assertion")}if(!k)throw Error("Invalid signature: No response found");if(u.LogoutResponse)return{profile:null,loggedOut:!0};throw Error("Unknown SAML response message")}catch(a){throw t("validatePostResponse resulted in an error: %s",a),this.mustValidateInResponseTo(!!h)&&await this.cacheProvider.removeAsync(h),a}}async validateInResponseTo(a){if(this.mustValidateInResponseTo(!!a))if(a){if(!await this.cacheProvider.getAsync(a))throw Error("InResponseTo is not valid");return}else throw Error("InResponseTo is missing from response")}async validateRedirectAsync(a,b){let c=a.SAMLRequest?"SAMLRequest":"SAMLResponse",d=Buffer.from(a[c],"base64"),e=await u(d),f=await (0,n.parseDomFromString)(e.toString()),g=await (0,n.parseXml2JsFromString)(e);return"SAMLResponse"===c?await this.verifyLogoutResponse(g):this.verifyLogoutRequest(g),await this.hasValidSignatureForRedirect(a,b),await this.processValidlySignedSamlLogoutAsync(g,f)}async hasValidSignatureForRedirect(a,b){let c=b.split("&"),d=a=>c.filter(b=>new RegExp(a).test(b))[0];if(!a.Signature)return!0;{let b=d("SAMLRequest")||d("SAMLResponse");if(d("RelayState")&&(b+="&"+d("RelayState")),b+="&"+d("SigAlg"),!(await this.getKeyInfosAsPem()).some(c=>this.validateSignatureForRedirect(b,a.Signature,a.SigAlg,c)))throw Error("Invalid query signature")}}validateSignatureForRedirect(a,b,c,d){let e,g=f.getHashes().findIndex(function(a){let b=c.toLowerCase().replace(/.*#(.*)$/,"$1");return a.toLowerCase()===b});if(g>-1)e=f.getHashes()[g];else throw Error(c+" is not supported");let h=f.createVerify(e);return h.update(a),h.verify(d,b,"base64")}verifyLogoutRequest(a){this.verifyIssuer(a.LogoutRequest);let b=new Date().getTime(),c=a.LogoutRequest.$,d=this.checkTimestampsValidityError(b,c.NotBefore,c.NotOnOrAfter);if(d)throw d}async verifyLogoutResponse(a){let b=a.LogoutResponse.Status[0].StatusCode[0].$.Value;if("urn:oasis:names:tc:SAML:2.0:status:Success"!==b)throw Error("Bad status code: "+b);this.verifyIssuer(a.LogoutResponse);let c=a.LogoutResponse.$.InResponseTo;if(c)return this.validateInResponseTo(c)}verifyIssuer(a){if(null!=this.options.idpIssuer){let b=a.Issuer;if(b){if(b[0]._!==this.options.idpIssuer)throw Error("Unknown SAML issuer. Expected: "+this.options.idpIssuer+" Received: "+b[0]._)}else throw Error("Missing SAML issuer")}}async processValidlySignedAssertionAsync(a,b,c){let d=new Date().getTime(),e={},f=await (0,n.parseXml2JsFromString)(a),g=f.Assertion;b:{let a,b=g.Issuer;b&&b[0]._&&(e.issuer=b[0]._),null!=c&&(e.inResponseTo=c);let f=g.AuthnStatement;f&&f[0].$&&f[0].$.SessionIndex&&(e.sessionIndex=f[0].$.SessionIndex);let h=g.Subject,i=null,j=null;if(h){let b=h[0].NameID;b&&b[0]._&&(e.nameID=b[0]._,b[0].$&&b[0].$.Format&&(e.nameIDFormat=b[0].$.Format,e.nameQualifier=b[0].$.NameQualifier,e.spNameQualifier=b[0].$.SPNameQualifier)),null!=(a=null==(j=h[0].SubjectConfirmation)?void 0:j.find(a=>{var b;let c=null==(b=a.SubjectConfirmationData)?void 0:b[0];if(null==c?void 0:c.$){let a=c.$.NotBefore,b=c.$.NotOnOrAfter,e=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,b,g.$.IssueInstant);if(null===this.checkTimestampsValidityError(d,a,b,e))return!0}return!1}))&&(i=a.SubjectConfirmationData[0])}if(this.mustValidateInResponseTo(!!c))if(a){if(null==i?void 0:i.$){let a=i.$.InResponseTo;if(c&&a&&a!=c)throw await this.cacheProvider.removeAsync(c),Error("InResponseTo does not match subjectInResponseTo");if(a){let b=!1,e=await this.cacheProvider.getAsync(a);if(e&&d<new Date(e).getTime()+this.options.requestIdExpirationPeriodMs&&(b=!0),await this.cacheProvider.removeAsync(c),!b)throw Error("SubjectInResponseTo is not valid");break b}}}else if(null!=j&&null==a)throw Error("No valid subject confirmation found among those available in the SAML assertion");else{await this.cacheProvider.removeAsync(c);break b}else break b}let h=g.Conditions?g.Conditions[0]:null;if(g.Conditions&&g.Conditions.length>1)throw Error("Unable to process multiple conditions in SAML assertion");if(h&&h.$){let a=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,h.$.NotOnOrAfter,g.$.IssueInstant),b=this.checkTimestampsValidityError(d,h.$.NotBefore,h.$.NotOnOrAfter,a);if(b)throw b}if(!1!==this.options.audience){let a=this.checkAudienceValidityError(this.options.audience,h.AudienceRestriction);if(a)throw a}let i=g.AttributeStatement;if(i){let a=[].concat(...i.filter(a=>Array.isArray(a.Attribute)).map(a=>a.Attribute)),b=a=>Object.keys(a).some(a=>"_"!==a&&"$"!==a)?a:a._;if(a.length>0){let c={};a.forEach(a=>{if(!Object.prototype.hasOwnProperty.call(a,"AttributeValue"))return;let d=a.$.Name,f=1===a.AttributeValue.length?b(a.AttributeValue[0]):a.AttributeValue.map(b);c[d]=f,Object.prototype.hasOwnProperty.call(e,d)||(e[d]=f)}),e.attributes=c}}return!e.mail&&e["urn:oid:0.9.2342.19200300.100.1.3"]&&(e.mail=e["urn:oid:0.9.2342.19200300.100.1.3"]),!e.email&&e.mail&&(e.email=e.mail),e.getAssertionXml=()=>a.toString(),e.getAssertion=()=>f,e.getSamlResponseXml=()=>b,{profile:e,loggedOut:!1}}checkTimestampsValidityError(a,b,c,d){if(-1==this.options.acceptedClockSkewMs)return null;if(b){let c=(0,p.dateStringToTimestamp)(b,"NotBefore");if(a+this.options.acceptedClockSkewMs<c)return Error("SAML assertion not yet valid")}if(c){let b=(0,p.dateStringToTimestamp)(c,"NotOnOrAfter");if(a-this.options.acceptedClockSkewMs>=b)return Error("SAML assertion expired: clocks skewed too much")}return d&&a-this.options.acceptedClockSkewMs>=d?Error("SAML assertion expired: assertion too old"):null}checkAudienceValidityError(a,b){if(!b||b.length<1)return Error("SAML assertion has no AudienceRestriction");let c=b.map(b=>b.Audience&&b.Audience[0]&&b.Audience[0]._?b.Audience.every(b=>b._!==a)?Error("SAML assertion audience mismatch. Expected: "+a+" Received: "+b.Audience.map(a=>a._).join(", ")):null:Error("SAML assertion AudienceRestriction has no Audience value")).filter(a=>null!==a);return c.length>0?c[0]:null}async validatePostRequestAsync(a,{_parseDomFromString:b=n.parseDomFromString,_parseXml2JsFromString:c=n.parseXml2JsFromString,_validateSignature:d=n.validateSignature}={}){let e=Buffer.from(a.SAMLRequest,"base64").toString("utf8"),f=await b(e),g=await c(e),h=await this.getKeyInfosAsPem();if(!d(e,f.documentElement,h))throw Error("Invalid signature on documentElement");return await this.processValidlySignedPostRequestAsync(g,f)}async processValidlySignedPostRequestAsync(a,b){var c;let d=a.LogoutRequest;if(this.verifyLogoutRequest(a),d){let a={};if(d.$.ID)a.ID=d.$.ID;else throw Error("Missing SAML LogoutRequest ID");let e=d.Issuer;if(e&&e[0]._)a.issuer=e[0]._;else throw Error("Missing SAML issuer");let f=await (0,n.getNameIdAsync)(b,null!=(c=this.options.decryptionPvk)?c:null);if(f.value)a.nameID=f.value,f.format&&(a.nameIDFormat=f.format);else throw Error("Missing SAML NameID");let g=d.SessionIndex;return g&&(a.sessionIndex=g[0]._),{profile:a,loggedOut:!0}}throw Error("Unknown SAML request message")}async processValidlySignedSamlLogoutAsync(a,b){let c=a.LogoutResponse,d=a.LogoutRequest;if(c)return{profile:null,loggedOut:!0};if(d)return await this.processValidlySignedPostRequestAsync(a,b);throw Error("Unknown SAML response message")}generateServiceProviderMetadata(a,b){return(0,r.generateServiceProviderMetadata)({...this.options,decryptionCert:a,publicCerts:b})}calcMaxAgeAssertionTime(a,b,c){let d=(0,p.dateStringToTimestamp)(b,"NotOnOrAfter"),e=(0,p.dateStringToTimestamp)(c,"IssueInstant");if(0===a)return d;let f=e+a;return f<d?f:d}mustValidateInResponseTo(a){return this.options.validateInResponseTo===l.ValidateInResponseTo.always||this.options.validateInResponseTo===l.ValidateInResponseTo.ifPresent&&a}}b.SAML=x},48813:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD notation name. "+this.debugInfo(c));if(!d.pubID&&!d.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=b.NotationDeclaration,null!=d.pubID&&(this.pubID=this.stringify.dtdPubID(d.pubID)),null!=d.sysID&&(this.sysID=this.stringify.dtdSysID(d.sysID))}toString(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a}).call(this)}).call(this)},50962:function(a,b,c){(function(){var b,d,e,f,g,h,i;({isPlainObject:i}=c(43594)),e=c(88909),d=c(25141),f=c(73067),b=c(26468),h=c(31753),g=c(44981),a.exports=(function(){class a extends f{constructor(a){super(null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}end(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))}toString(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))}createElement(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(a){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"implementation",{value:new e}),Object.defineProperty(a.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(a.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(a.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(a.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(a.prototype,"origin",{get:function(){return null}}),Object.defineProperty(a.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(a.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(a.prototype,"contentType",{get:function(){return null}}),a}).call(this)}).call(this)},55443:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,f){super(a),e(c)&&({version:c,encoding:d,standalone:f}=c),c||(c="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(c),null!=d&&(this.encoding=this.stringify.xmlEncoding(d)),null!=f&&(this.standalone=this.stringify.xmlStandalone(f))}toString(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))}}}).call(this)},56068:function(a,b){(function(){b.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},58029:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):0/0},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)}}(b)},58892:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(d),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.target===this.target},c}(c(92478))}).call(this)},59548:(a,b,c)=>{var d=c(73669);a.exports=({contentEncryptionMethod:a,keyInfo:b,encryptedContent:c})=>`
|
|
1
|
+
exports.id=5081,exports.ids=[5081],exports.modules={241:function(a){(function(){a.exports=class{handleError(a){throw Error(a)}}}).call(this)},469:function(a,b,c){(function(){var b,d;b=c(26468),d=c(73067),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))}}}).call(this)},1243:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(c),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}toString(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))}}}).call(this)},2847:function(a,b){(function(){"use strict";var a;a=new RegExp(/(?!xmlns)^.*:/),b.normalize=function(a){return a.toLowerCase()},b.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},b.stripPrefix=function(b){return b.replace(a,"")},b.parseNumbers=function(a){return isNaN(a)||(a=a%1==0?parseInt(a,10):parseFloat(a)),a},b.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a="true"===a.toLowerCase()),a}}).call(this)},4107:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SignedXml=void 0;let d=c(62119),e=c(12749),f=c(28354),g=c(42429),h=c(4776),i=c(64564),j=c(18462),k=c(44558),l=c(32748),m=c(61894);function n(a){return m.findChildren(a,"SignatureValue")[0]?.textContent?.replace(/[\t\n\r ]/g,"")}let o="http://www.w3.org/2001/10/xml-exc-c14n#";function p(a){return a===o||"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"===a}function q(a){return Buffer.from(n(a)??"","base64")}let r=(0,f.deprecate)(()=>{},'Resolving a `Reference` whose `URI` is neither empty nor starts with "#" as a same-document ID is deprecated, and such a signature will not verify in version 7.0. A same-document `URI` is empty, or "#" followed by an ID.',"XML_CRYPTO_REFERENCE_URI_WITHOUT_FRAGMENT"),s=(0,f.deprecate)(()=>{},"Skipping a `Transform` that has no `Algorithm` attribute is deprecated, and a signature that has one will not verify in version 7.0.","XML_CRYPTO_TRANSFORM_WITHOUT_ALGORITHM"),t=(0,f.deprecate)(()=>{},"A `location.reference` that selects a node other than an element is deprecated and will throw in version 7.0. Select the element to place the signature in or next to.","XML_CRYPTO_LOCATION_REFERENCE_NOT_ELEMENT"),u=(0,f.deprecate)(()=>{},'`isEmptyUri: true` on a reference whose `xpath` selects anything but the document element is deprecated and will throw in version 7.0. `URI=""` identifies the whole document, so the signature this produces does not verify.',"XML_CRYPTO_EMPTY_URI_NOT_DOCUMENT_ELEMENT"),v=(0,f.deprecate)(()=>{},"The callback form of `computeSignature()` and `checkSignature()` is deprecated and will be removed in version 7.0. Call them without a callback. For a signature algorithm that works asynchronously, implement `getSignatureAsync()` and `verifySignatureAsync()` on it and call `computeSignatureAsync()` and `checkSignatureAsync()`, which return a promise.","XML_CRYPTO_CALLBACK_FORM"),w=(0,f.deprecate)(()=>{},"`getOriginalXmlWithIds()` is deprecated and will be removed in a future version. Use the `location` option of `computeSignature()` to place the signature, then `getSignedXml()`. For a detached signature, put an ID attribute the signer recognizes on each referenced element (`wsu:Id` for WS-Security), sign that document, and send it alongside `getSignatureXml()`.","XML_CRYPTO_GET_ORIGINAL_XML_WITH_IDS"),x=(0,f.deprecate)(()=>{},"Signing or verifying a document that has a document type declaration (`<!DOCTYPE>`) is deprecated and will throw in version 7.0. The declaration is not processed, so an entity it declares is not expanded and a default attribute it declares is not added to what is signed or verified.","XML_CRYPTO_DOCUMENT_TYPE_DECLARATION"),y=(0,f.deprecate)(()=>{},"`validateElementAgainstReferences()` is deprecated and will be removed in a future version. After `checkSignature()` succeeds, use the XML that `getSignedReferences()` returns instead of nodes from the original document.","XML_CRYPTO_VALIDATE_ELEMENT_AGAINST_REFERENCES"),z=(0,f.deprecate)(()=>{},"Applying `enveloped-signature` after a transform that returns a string, such as a canonicalization, is deprecated and will throw in a future version. List `enveloped-signature` before any canonicalization in the `Reference`.","XML_CRYPTO_ENVELOPED_SIGNATURE_AFTER_CANONICALIZATION");class A{constructor(a={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=A.getKeyInfoContent,this.getCertFromKeyInfo=A.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.loadedPrefixLists=new WeakMap,this.signedReferences=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":h.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":h.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":j.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":j.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":i.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":k.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":k.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":k.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":l.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":l.RsaSha256,"http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1":l.RsaSha256Mgf1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":l.RsaSha512};let{idMode:b,idAttribute:c,privateKey:d,publicCert:e,signatureAlgorithm:f,canonicalizationAlgorithm:g,inclusiveNamespacesPrefixList:n,implicitTransforms:o,keyInfoAttributes:p,getKeyInfoContent:q,getCertFromKeyInfo:r,objects:s}=a;this.idMode=b,this.idAttributes=["Id","ID","id"],c&&this.idAttributes.unshift(c),this.privateKey=d,this.publicCert=e,this.signatureAlgorithm=f??this.signatureAlgorithm,this.canonicalizationAlgorithm=g,"string"==typeof n?this.inclusiveNamespacesPrefixList=n.split(" "):m.isArrayHasLength(n)&&(this.inclusiveNamespacesPrefixList=n),this.implicitTransforms=o??this.implicitTransforms,this.keyInfoAttributes=p??this.keyInfoAttributes,this.getKeyInfoContent=q??this.getKeyInfoContent,this.getCertFromKeyInfo=r??A.noop,this.objects=s,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":l.HmacSha1},this.getKeyInfoContent=A.noop}static getKeyInfoContent({publicCert:a,prefix:b}){if(null==a)return null;b=b?`${b}:`:"",Buffer.isBuffer(a)&&(a=a.toString("latin1"));let c="string"==typeof a?function(a){let b=m.pemCertificates(a);if(b.length>0)return b;try{return[m.bareCertificate(a)]}catch{return[]}}(a):[];if(0===c.length)return null;let d=c.map(a=>`<${b}X509Certificate>${a}</${b}X509Certificate>`).join("");return`<${b}X509Data>${d}</${b}X509Data>`}static getCertFromKeyInfo(a){if(null!=a){let b=g.select1(".//*[local-name(.)='X509Certificate']",a);if(d.isElementNode(b))return m.toPem(b.textContent,"CERTIFICATE")}return null}checkSignature(a,b){if(null!=b&&"function"!=typeof b)throw Error("Last parameter must be a callback function");b&&v();let c=this.validateReferences(a,b);if(!c)return c;let{signer:d,key:e,unverifiedSignedInfoCanon:f,accept:g}=c;if(!b){if(!0!==d.verifySignature(f,e,this.signatureValue))throw this.invalidSignature();return g(),!0}let h=!1,i=(a,c)=>{h||(h=!0,a?b(a):!0!==c?b(this.invalidSignature()):(g(),b(null,!0)))},j=d.verifySignature(f,e,this.signatureValue,i);"boolean"==typeof j&&i(null,j)}async checkSignatureAsync(a){let b=this.validateReferences(a);if(!b)return!1;let{signer:c,key:d,unverifiedSignedInfoCanon:e,accept:f}=b;if(!0!==("function"==typeof c.verifySignatureAsync?await c.verifySignatureAsync(e,d,this.signatureValue):c.verifySignature(e,d,this.signatureValue)))throw this.invalidSignature();return f(),!0}invalidSignature(){return Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`)}validateReferences(a,b){let c=this.signedReferences;this.signedReferences=[],this.signedXml=a;let d=new e.DOMParser().parseFromString(a);null!=d.doctype&&x(),this.references=[];let f=this.getCanonSignedInfoXml(d);if(!f){if(b)return void b(Error("Canonical signed info cannot be empty"),!1);throw Error("Canonical signed info cannot be empty")}let g=new e.DOMParser().parseFromString(f,"text/xml").documentElement;if(!g){if(b)return void b(Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);throw Error("Could not parse unverifiedSignedInfoCanon into a document")}let h=m.findChildren(g,"Reference");if(!m.isArrayHasLength(h)){if(b)return void b(Error("could not find any Reference elements"),!1);throw Error("could not find any Reference elements")}for(let a of h)this.loadReference(a);let i=[];for(let a of this.references){let c=this.validateReference(a,d);if(void 0===c){if(b)return void b(Error("Could not validate all references"),!1);return!1}i.push(c)}let j=this.findSignatureAlgorithm(this.signatureAlgorithm),k=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(null==k)throw Error("KeyInfo or publicCert or privateKey is required to validate signature");let l=this.references;return{signer:j,key:k,unverifiedSignedInfoCanon:f,accept:()=>{this.signedReferences=[...c,...i],l.forEach((a,b)=>{a.signedReference=i[b]})}}}getCanonSignedInfoXml(a){if(null==this.signatureNode)throw Error("No signature found.");if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");let b=m.findChildren(this.signatureNode,"SignedInfo");if(0===b.length)throw Error("could not find SignedInfo element in the message");if(b.length>1)throw Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if(("http://www.w3.org/TR/2001/REC-xml-c14n-20010315"===this.canonicalizationAlgorithm||"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"===this.canonicalizationAlgorithm)&&(!a||"object"!=typeof a))throw Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");let c=this.findSignedInfoAncestorContext(a);return this.getCanonXml([this.canonicalizationAlgorithm],b[0],c)}findSignedInfoAncestorContext(a){let b=this.findLoadedSignature(a);if(null==b)return{ancestorNamespaces:[],ancestorXmlAttributes:[]};let c=m.findChildren(b,"SignedInfo")[0];if(null==c)throw Error("could not find SignedInfo element in the message");return{ancestorNamespaces:m.findAncestorNsForElement(c),ancestorXmlAttributes:m.findAncestorXmlAttributes(c)}}getCanonReferenceXml(a,b,c){Array.isArray(b.transforms)&&(b.ancestorNamespaces=m.findAncestorNs(a,b.xpath,this.namespaceResolver));let d={ancestorNamespaces:b.ancestorNamespaces,ancestorXmlAttributes:m.findAncestorXmlAttributes(c)},e=""===b.uri||b.uri.startsWith("#");return this.canonicalize(b.transforms,c,d,{discardComments:e,prefixLists:this.loadedPrefixLists.get(b)??this.getSigningPrefixLists(b)})}getSigningPrefixLists(a){return a.transforms.map(b=>p(this.findCanonicalizationAlgorithm(b).getAlgorithmName())?a.inclusiveNamespacesPrefixList:[])}signingInput(a){let b=this.getCanonSignedInfoXml(a),c=this.findSignatureAlgorithm(this.signatureAlgorithm);if(null==this.privateKey)throw Error("Private key is required to compute signature");return{signedInfoCanon:b,signer:c,privateKey:this.privateKey}}calculateSignatureValue(a,b){let{signedInfoCanon:c,signer:d,privateKey:e}=this.signingInput(a);"function"==typeof b?d.getSignature(c,e,b):this.signatureValue=d.getSignature(c,e)}async calculateSignatureValueAsync(a){let{signedInfoCanon:b,signer:c,privateKey:d}=this.signingInput(a),e="function"==typeof c.getSignatureAsync?await c.getSignatureAsync(b,d):c.getSignature(b,d);if("string"!=typeof e)throw Error("the signature algorithm returned no signature; an algorithm that signs asynchronously implements getSignatureAsync()");this.signatureValue=e}findSignatureAlgorithm(a){if(null==a)throw Error("signatureAlgorithm is required");let b=this.SignatureAlgorithms[a];if(b)return new b;throw Error(`signature algorithm '${a}' is not supported`)}findCanonicalizationAlgorithm(a){if(null!=a){let b=this.CanonicalizationAlgorithms[a];if(b)return new b}throw Error(`canonicalization algorithm '${a}' is not supported`)}findHashAlgorithm(a){let b=this.HashAlgorithms[a];if(b)return new b;throw Error(`hash algorithm '${a}' is not supported`)}validateElementAgainstReferences(a,b){let c;if(y(),"string"==typeof a){let e=g.select1(a,b);d.assertIsElementNode(e),c=e}else c=a;for(let a of this.getReferences()){let d=a.uri?.[0]==="#"?a.uri.substring(1):a.uri;for(let b of this.idAttributes)if(d===c.getAttribute(b)){a.xpath=`//*[@*[local-name(.)='${b}']='${d}']`;break}let e=this.getCanonReferenceXml(b,a,c),f=this.findHashAlgorithm(a.digestAlgorithm).getHash(e);if(m.validateDigestValue(f,a.digestValue))return a}throw Error("No references passed validation")}validateReference(a,b){let c=a.uri?.[0]==="#"?a.uri.substring(1):a.uri,e=null;if(""!==c&&c===a.uri&&r(),""===c)e=m.hasDocumentLevelProcessingInstruction(b)?b:g.select1("//*",b);else if(c?.indexOf("'")!==-1)throw Error("Cannot validate a uri with quotes inside it");else{let d=0;for(let f of this.idAttributes){let h=`//*[@*[local-name(.)='${f}']='${c}']`,i=g.select(h,b);if(m.isArrayHasLength(i)){if((d+=i.length)>1)throw Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");e=i[0],a.xpath=h}}}if(a.getValidatedNode=(0,f.deprecate)(c=>{if("string"!=typeof(c=c||a.xpath)||null!=a.validationError)return null;let e=g.select1(c,b);return d.isNodeLike(e)?e:null},"`ref.getValidatedNode()` is deprecated and insecure. Use `ref.signedReference` or `this.getSignedReferences()` instead."),!d.isNodeLike(e)){let b=Error(`invalid signature: the signature references an element with uri ${a.uri} but could not find such element in the xml`);a.validationError=b;return}let h=this.getCanonReferenceXml(b,a,e),i=this.findHashAlgorithm(a.digestAlgorithm).getHash(h);if(!m.validateDigestValue(i,a.digestValue)){let b=Error(`invalid signature: for uri ${a.uri} calculated digest is ${i} but the xml to validate supplies digest ${a.digestValue}`);a.validationError=b;return}return h}findSignatures(a){let b=g.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return d.isArrayOfNodes(b)?b:[]}loadSignature(a){"string"==typeof a?this.signatureNode=a=new e.DOMParser().parseFromString(a):this.signatureNode=a,this.signatureXml=a.toString();let b=g.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",a);if(!d.isNodeLike(b))throw Error("could not find CanonicalizationMethod/@Algorithm element");d.isAttributeNode(b)&&(this.canonicalizationAlgorithm=b.value);let c=g.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",a);d.isAttributeNode(c)&&(this.signatureAlgorithm=c.value);let f=m.findChildren(this.signatureNode,"SignedInfo");if(!m.isArrayHasLength(f))throw Error("no signed info node found");if(f.length>1)throw Error("could not load signature that contains multiple SignedInfo nodes");let h=this.canonicalizationAlgorithm;h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==h&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==h||(h="http://www.w3.org/2001/10/xml-exc-c14n#");let i=this.getCanonXml([h],f[0]),j=new e.DOMParser().parseFromString(i,"text/xml").documentElement;this.references=[];let k=m.findChildren(j,"Reference");if(!m.isArrayHasLength(k))throw Error("could not find any Reference elements");for(let a of k)this.loadReference(a);this.signatureValue=n(a)??"",this.keyInfo=m.findChildren(a,"KeyInfo")[0]??null}loadReference(a){let b=m.findChildren(a,"DigestMethod");if(0===b.length)throw Error(`could not find DigestMethod in reference ${a.toString()}`);let c=b[0],e=m.findAttr(c,"Algorithm");if(!e)throw Error(`could not find Algorithm attribute in node ${c.toString()}`);let f=e.value;if(0===(b=m.findChildren(a,"DigestValue")).length)throw Error(`could not find DigestValue node in reference ${a.toString()}`);if(b.length>1)throw Error(`could not load reference for a node that contains multiple DigestValue nodes: ${a.toString()}`);let g=b[0].textContent;if(!g)throw Error(`could not find the value of DigestValue in ${a.toString()}`);let h=[],i=[];if(0!==(b=m.findChildren(a,"Transforms")).length){let a=b[0];for(let b of m.findChildren(a,"Transform")){let a=m.findAttr(b,"Algorithm");if(a){h.push(a.value);let c=m.findChildren(b,"InclusiveNamespaces");c.forEach(j.warnUnlessExclusiveC14nNamespace),i.push(c.flatMap(a=>(a.getAttribute("PrefixList")??"").split(/[ \t\r\n]+/)).filter(a=>a.length>0))}else s()}}let k=i.filter((a,b)=>p(h[b])).pop()??[];m.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach(function(a){h.push(a),i.push(k)}),(0===h.length||"http://www.w3.org/2000/09/xmldsig#enveloped-signature"===h[h.length-1])&&h.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");let l=d.isElementNode(a)&&a.getAttribute("URI")||void 0;this.addReference({transforms:h,digestAlgorithm:f,uri:l,digestValue:g,inclusiveNamespacesPrefixList:k,isEmptyUri:!1}),this.loadedPrefixLists.set(this.references[this.references.length-1],i)}addReference({xpath:a,transforms:b,digestAlgorithm:c,uri:d="",digestValue:e,inclusiveNamespacesPrefixList:f=[],isEmptyUri:g=!1,id:h,type:i}){if(null==c)throw Error("digestAlgorithm is required");if(!m.isArrayHasLength(b))throw Error("transforms must contain at least one transform algorithm");this.references.push({xpath:a,transforms:b,digestAlgorithm:c,uri:d,digestValue:e,inclusiveNamespacesPrefixList:f,isEmptyUri:g,id:h,type:i,getValidatedNode:()=>{throw Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}getSignedReferences(){return[...this.signedReferences]}computeSignature(a,b,c){let d;"function"==typeof b&&null==c?(d=b,b={}):(d=c,b=b??{}),"function"==typeof d&&v();let e=this.prepareSignature(a,b,d);e&&("function"==typeof d?this.calculateSignatureValue(e.doc,(a,b)=>{a?d(a):(this.signatureValue=b||"",e.insertSignatureValue(),d(null,this))}):(this.calculateSignatureValue(e.doc),e.insertSignatureValue()))}async computeSignatureAsync(a,b={}){let c=this.prepareSignature(a,b);return await this.calculateSignatureValueAsync(c.doc),c.insertSignatureValue(),this}prepareSignature(a,b,c){let f,h=new e.DOMParser().parseFromString(a);null!=h.doctype&&x();let i="xmlns",j=[],k=["append","prepend","before","after"],l=b.prefix,n=b.attrs||{},o=b.location||{},p=b.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(a){return a?p[a]:null}},o.reference=o.reference||"/*",o.action=o.action||"append",-1===k.indexOf(o.action)){let a=Error(`location.action option has an invalid action: ${o.action}, must be any of the following values: ${k.join(", ")}`);if(c)return void c(a);throw a}let q=new Map;for(let a of this.getReferences()){let b=g.selectWithResolver(a.xpath??"",h,this.namespaceResolver);d.assertIsArrayOfNodes(b);let c=b.map(a=>(d.assertIsElementNode(a),{node:a}));q.set(a,c)}this.ensureTargetsHaveIds(q),this.originalXmlWithIds=this.serialize(h),l?(i+=`:${l}`,f=`${l}:`):f="",Object.keys(n).forEach(function(a){"xmlns"!==a&&a!==i&&j.push(`${a}="${n[a]}"`)}),j.push(`${i}="http://www.w3.org/2000/09/xmldsig#"`);let r=`<${f}Signature ${j.join(" ")}>`;r+=this.createSignedInfo(h,l),r+=this.getKeyInfo(l),r+=this.getObjects(l),r+=`</${f}Signature>`;let s="";Object.keys(p).forEach(function(a){s+=`xmlns:${a}="${p[a]}" `});let u=`<Dummy ${s}>${r}</Dummy>`,v=new e.DOMParser().parseFromString(u).documentElement.firstChild,w=g.select1(o.reference,h);if(!d.isNodeLike(w)){let a=Error(`the following xpath cannot be used because it was not found: ${o.reference}`);if(c)return void c(a);throw a}d.isElementNode(w)||t();let y=this.signatureNode;this.signatureNode=v;try{for(let[a,b]of q)for(let c of b)c.digestValue=this.calculateReferenceDigest(a,c.node);if("append"===o.action)w.appendChild(v);else if("prepend"===o.action)w.insertBefore(v,w.firstChild);else{let a=w.parentNode;if(null==a)throw Error(`\`location.reference\` selects a node without a parent, so we can't insert \`${o.action}\``);a.insertBefore(v,"before"===o.action?w:w.nextSibling)}this.addAllReferences(h,v,q,l)}catch(a){throw this.signatureNode=y,a}let z=m.findChildren(this.signatureNode,"SignedInfo");if(0===z.length){let a=Error("could not find SignedInfo element in the message");if(c)return void c(a);throw a}let A=z[0],B=()=>{v.insertBefore(this.createSignature(l),A.nextSibling),this.signatureXml=this.serialize(v),this.signedXml=this.serialize(h)};return{doc:h,insertSignatureValue:B}}serialize(a){return a.toString().replace(/\r/g,"
")}ensureTargetsHaveIds(a){for(let[b,c]of a)if(!b.isEmptyUri)for(let{node:a}of c)this.ensureHasId(a)}calculateReferenceDigest(a,b){let c=a.isEmptyUri&&b===b.ownerDocument.documentElement&&m.hasDocumentLevelProcessingInstruction(b.ownerDocument)?b.ownerDocument:b;a.ancestorNamespaces=m.findAncestorNsForElement(b);let d=this.canonicalize(a.transforms,c,{ancestorNamespaces:a.ancestorNamespaces,ancestorXmlAttributes:m.findAncestorXmlAttributes(b)},{discardComments:!0,prefixLists:this.getSigningPrefixLists(a)});return this.findHashAlgorithm(a.digestAlgorithm).getHash(d)}findSignatureContentTargets(a,b,c){let e=g.selectWithResolver(a.xpath??"",b,this.namespaceResolver);return d.assertIsArrayOfNodes(e),e.filter(a=>a===c||m.isDescendantOf(a,c)).map(a=>(d.assertIsElementNode(a),{node:a}))}addAllReferences(a,b,c,e){if(!m.isArrayHasLength(this.references))return;let f=e?`${e}:`:"",h="http://www.w3.org/2000/09/xmldsig#",i=g.select1("./*[local-name(.)='SignedInfo']",b);d.assertIsElementNode(i);let j=b.ownerDocument,k=new Map;for(let[d,e]of c)0===e.length&&k.set(d,this.findSignatureContentTargets(d,a,b));for(let[a,d]of(this.ensureTargetsHaveIds(k),c)){let c=k.get(a)??d;if(!m.isArrayHasLength(c))throw Error(`the following xpath cannot be signed because it was not found: ${a.xpath}`);for(let{node:d,digestValue:e}of c){let c;if(d===b||d===i||m.isDescendantOf(d,i))throw Error(`Cannot sign a reference to the Signature or SignedInfo element itself: ${a.xpath}`);if(a.isEmptyUri)c="",d!==d.ownerDocument.documentElement&&u();else{let b=this.ensureHasId(d);a.uri=b,c=`#${b}`}let g=j.createElementNS(h,`${f}Reference`);g.setAttribute("URI",c),a.id&&g.setAttribute("Id",a.id),a.type&&g.setAttribute("Type",a.type);let k=j.createElementNS(h,`${f}Transforms`);for(let b of a.transforms||[]){let c=this.findCanonicalizationAlgorithm(b),d=j.createElementNS(h,`${f}Transform`);if(d.setAttribute("Algorithm",c.getAlgorithmName()),m.isArrayHasLength(a.inclusiveNamespacesPrefixList)&&p(c.getAlgorithmName())){let b=j.createElementNS(o,"InclusiveNamespaces");b.setAttribute("PrefixList",a.inclusiveNamespacesPrefixList.join(" ")),d.appendChild(b)}k.appendChild(d)}let l=this.findHashAlgorithm(a.digestAlgorithm),n=j.createElementNS(h,`${f}DigestMethod`);n.setAttribute("Algorithm",l.getAlgorithmName());let q=j.createElementNS(h,`${f}DigestValue`);q.textContent=e??this.calculateReferenceDigest(a,d),g.appendChild(k),g.appendChild(n),g.appendChild(q),i.appendChild(g)}}}getKeyInfo(a){let b=this.getKeyInfoContent({publicCert:this.publicCert,prefix:a});if(!b)return"";let c=a?`${a}:`:"",d="";return this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach(a=>{d+=` ${a}="${this.keyInfoAttributes[a]}"`}),`<${c}KeyInfo${d}>${b}</${c}KeyInfo>`}getObjects(a){let b=a?`${a}:`:"";if(!this.objects||0===this.objects.length)return"";let c="";for(let a of this.objects){let d="";a.attributes&&Object.keys(a.attributes).forEach(b=>{let c=a.attributes?.[b];void 0!==c&&(d+=` ${b}="${c}"`)}),c+=`<${b}Object${d}>${a.content}</${b}Object>`}return c}getCanonXml(a,b,c={}){return this.canonicalize(a,b,c,{discardComments:!1})}canonicalize(a,b,c,{discardComments:e,prefixLists:f}){c.defaultNsForPrefix=c.defaultNsForPrefix??A.defaultNsForPrefix,c.ancestorXmlAttributes=c.ancestorXmlAttributes??m.findAncestorXmlAttributes(b),c.signatureNode=this.signatureNode;let h=b.cloneNode(!0),i=d.isDocumentNode(b);if(a.includes("http://www.w3.org/2000/09/xmldsig#enveloped-signature")){let a=[],d=this.findLoadedSignature(b);for(;d?.parentNode&&d!==b;)a.push(Array.from(d.parentNode.childNodes).indexOf(d)),d=d.parentNode;d===b&&(c.signatureNode=a.reverse().reduce((a,b)=>a.childNodes[b],h))}if(e){let a=g.select(".//comment()",h);d.assertIsArrayOfNodes(a),a.forEach(a=>a.parentNode?.removeChild(a))}let j=h,k=c,l=!1;for(let[b,e]of a.entries())d.isNodeLike(j)||(j=this.parseTransformInput(j,e,i),k={...c,ancestorNamespaces:[],ancestorXmlAttributes:[],defaultNs:"",signatureNode:this.findLoadedSignature(j)??c.signatureNode},l=!0),l&&"http://www.w3.org/2000/09/xmldsig#enveloped-signature"===e&&z(),j=this.findCanonicalizationAlgorithm(e).process(j,f?{...k,inclusiveNamespacesPrefixList:f[b]??[]}:k);return d.isNodeLike(j)&&(j=this.findCanonicalizationAlgorithm("http://www.w3.org/TR/2001/REC-xml-c14n-20010315").process(j,k)),j.toString()}findLoadedSignature(a){let b,c=a.ownerDocument??a;if(null==this.signatureNode||this.signatureNode.ownerDocument===c)return this.signatureNode;let e=q(this.signatureNode);if(0===e.length)return null;let f=(b=g.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",c),d.assertIsArrayOfNodes(b),b.filter(d.isElementNode)).filter(a=>q(a).equals(e));if(f.length>1)throw Error("Cannot validate a document which contains multiple Signature elements with the same SignatureValue, in order to prevent signature wrapping attack.");return f[0]??null}parseTransformInput(a,b,c){let d=[],f=new e.DOMParser({errorHandler:(a,b)=>d.push(String(b))}).parseFromString(a);if(d.length>0||null==f.documentElement)throw Error(`Cannot apply transform ${b}: the output of the previous transform is not well-formed XML`);return c?f:f.documentElement}ensureHasId(a){let b;if("wssecurity"===this.idMode?b=m.findAttr(a,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some(c=>!!(b=m.findAttr(a,c))),b)return b.value;let c=`_${this.id++}`;return"wssecurity"===this.idMode?(a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),a.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",c)):a.setAttribute("Id",c),c}createSignedInfo(a,b){if("string"!=typeof this.canonicalizationAlgorithm)throw Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");let c=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),d=this.findSignatureAlgorithm(this.signatureAlgorithm),e=b?`${b}:`:"",f=`<${e}SignedInfo>`;return f+=`<${e}CanonicalizationMethod Algorithm="${c.getAlgorithmName()}"`,m.isArrayHasLength(this.inclusiveNamespacesPrefixList)?f+=`><InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${c.getAlgorithmName()}"/></${e}CanonicalizationMethod>`:f+=" />",f+=`<${e}SignatureMethod Algorithm="${d.getAlgorithmName()}" /></${e}SignedInfo>`}createSignature(a){let b="xmlns";a?(b+=`:${a}`,a+=":"):a="";let c=`<${a}SignatureValue>${this.signatureValue}</${a}SignatureValue>`,d=`<${a}Signature ${b}="http://www.w3.org/2000/09/xmldsig#">${c}</${a}Signature>`;return new e.DOMParser().parseFromString(d).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return w(),this.originalXmlWithIds}getSignedXml(){return this.signedXml}}b.SignedXml=A,A.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"},A.noop=()=>null},4505:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());e||(e="(#PCDATA)"),Array.isArray(e)&&(e="("+e.join(",")+")"),this.name=this.stringify.name(d),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(e)}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},4700:function(a){(function(){var b,c,d,e=[].slice,f={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(){var a,b,d,g,h,i;if(i=arguments[0],h=2<=arguments.length?e.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(a=0,d=h.length;a<d;a++)if(null!=(g=h[a]))for(b in g)f.call(g,b)&&(i[b]=g[b]);return i},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(f.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},4776:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let d=c(61894),e=c(62119);class f{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)"xmlns"!==(c=a.attributes[b]).name&&"xmlns"!==c.prefix&&f.push(c);return f.sort(this.attrCompare),f.map(a=>` ${a.name}="${d.encodeSpecialCharactersInAttribute(a.value)}"`).join("")}renderNs(a,b,c,e,f,g){let h,i,j;d.warnOutsideProcess(this);let k=[],l=c,m=[],n=a.namespaceURI||"",o=(a,c)=>g?d.isPrefixInScope(g,a,c):-1!==b.indexOf(a),p=(a,c)=>{m.push({prefix:a,namespaceURI:c}),b.push(a),g?.push({prefix:a,namespaceURI:c})};if(a.prefix){let b=a.namespaceURI||e[a.prefix];o(a.prefix,b)||p(a.prefix,b)}let q=null;if(a.attributes)for(h=0;h<a.attributes.length;++h)"xmlns"===a.attributes[h].name&&(q=a.attributes[h].value);if((j=null!==q?q:a.prefix?c:n)!==c&&(l=j,k.push(' xmlns="',d.encodeSpecialCharactersInAttribute(l),'"')),a.attributes)for(h=0;h<a.attributes.length;++h)"xmlns"!==(i=a.attributes[h]).prefix||o(i.localName,i.value)||p(i.localName,i.value),i.prefix&&!o(i.prefix,i.namespaceURI)&&"xmlns"!==i.prefix&&"xml"!==i.prefix&&p(i.prefix,i.namespaceURI);if(d.isArrayHasLength(f))for(let a of f)!(m.some(b=>b.prefix===a.prefix)||!a.prefix&&null!==q)&&(m.push(a),a.prefix||(l=a.namespaceURI));return m.sort(this.nsCompare),k.push(...m.map(a=>{let b=d.encodeSpecialCharactersInAttribute(a.namespaceURI);return a.prefix?` xmlns:${a.prefix}="${b}"`:` xmlns="${b}"`})),{rendered:k.join(""),newDefaultNs:l}}processInner(a,b,c,f,g,h){if(d.warnOutsideProcess(this),e.isDocumentNode(a)){let i=[];for(let j=0;j<a.childNodes.length;j++){let k=a.childNodes[j];if(e.isCommentNode(k)){this.includeComments&&i.push(this.renderComment(k,!0));continue}d.isCanonicalDocumentChild(k)&&i.push(this.processInner(k,b,c,f,g,h))}return i.join("\n")}if(e.isCommentNode(a))return this.renderComment(a);if(e.isProcessingInstructionNode(a))return d.renderProcessingInstruction(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,i=this.renderNs(a,b,c,f,g,h),j=["<",a.tagName,i.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),j.push(this.processInner(a.childNodes[d],e,i.newDefaultNs,f,[],h?.slice(0)));return j.push("</",a.tagName,">"),j.join("")}throw Error(`Unable to canonicalize node type: ${a.nodeType}`)}renderComment(a,b=!1){if(!this.includeComments)return"";let c=d.encodeSpecialCharactersInText(a.data);if(b)return`\x3c!--${c}--\x3e`;let e=a.ownerDocument===a.parentNode,f=!1,g=!1;if(e){let b=a,c=a;for(;null!==b;){if(b===a.ownerDocument.documentElement){f=!0;break}b=b.nextSibling}for(;null!==c;){if(c===a.ownerDocument.documentElement){g=!0;break}c=c.previousSibling}}let h=g?"\n":"",i=f?"\n":"";return`${h}\x3c!--${c}--\x3e${i}`}process(a,b){let c=(b=b||{}).defaultNs||"",g=b.defaultNsForPrefix||{},h=b.ancestorNamespaces||[],i=b.ancestorXmlAttributes??d.findAncestorXmlAttributes(a),j=a;if(e.isElementNode(a)&&i.length>0){let b=a.cloneNode(!0);for(let a of(e.assertIsElementNode(b),i))b.hasAttributeNS("http://www.w3.org/XML/1998/namespace",a.localName)||b.setAttributeNS("http://www.w3.org/XML/1998/namespace",`xml:${a.localName}`,a.value);j=b}let k=[];for(let a=0;a<h.length;a++)k.push(h[a].prefix);return d.insideProcess(this,f.prototype,()=>this.processInner(j,k,c,g,h,h.slice()))}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}b.C14nCanonicalization=f;class g extends f{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}}b.C14nCanonicalizationWithComments=g},5032:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=(function(){class a extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))}splitText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),a}).call(this)}).call(this)},7216:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l;j=(l=c(4700)).assign,k=l.isFunction,e=c(35971),f=c(95280),g=c(98193),i=c(13859),h=c(92030),b=c(24706),d=c(46780),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){var d;return(k(a)&&(b=(d=[a,b])[0],c=d[1],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},7832:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.getNamedItem=function(a){return this.nodes[a]},a.prototype.setNamedItem=function(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null},a.prototype.removeNamedItem=function(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null},a.prototype.item=function(a){return this.nodes[Object.keys(this.nodes)[a]]||null},a.prototype.getNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a.prototype.setNamedItemNS=function(a){throw Error("This DOM method is not implemented.")},a.prototype.removeNamedItemNS=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},8676:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},8859:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing raw text. "+this.debugInfo());this.type=b.Raw,this.value=this.stringify.raw(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},c}(c(8957))}).call(this)},8957:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t={}.hasOwnProperty;r=(s=c(4700)).isObject,q=s.isFunction,p=s.isEmpty,o=s.getValue,j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(43849),e=c(36700),f=c(65904),g=c(84689),h=c(99379),m=c(8859),n=c(86690),l=c(58892),i=c(31777),d=c(24706),k=c(18521),c(7832),b=c(8676))}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a.prototype.setParent=function(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f},a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n;if(i=null,null===b&&null==c&&(b=(l=[{},null])[0],c=l[1]),null==b&&(b={}),r(b=o(b))||(c=(m=[b,c])[0],b=m[1]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(t.call(a,h))if(q(n=a[h])&&(n=n.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),n);else if(!this.options.separateArrayItems&&Array.isArray(n)&&p(n))i=this.dummy();else if(r(n)&&p(n))i=this.element(h);else if(this.options.keepNullNodes||null!=n)if(!this.options.separateArrayItems&&Array.isArray(n))for(g=0,k=n.length;g<k;g++)e=n[g],(d={})[h]=e,i=this.element(d);else r(n)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(n):(i=this.element(h)).element(n):i=this.element(h,n);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||(c=(e=[b,c])[0],b=e[1]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var b;return b=new e(this,a),this.children.push(b),this},a.prototype.comment=function(a){var b;return b=new f(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new m(this,a),this.children.push(b),this},a.prototype.dummy=function(){return new i(this)},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)t.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e},a.prototype.dtd=function(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e},a.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},a.prototype.root=function(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a.prototype.replaceChild=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendChild=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasChildNodes=function(){return 0!==this.children.length},a.prototype.cloneNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isSupported=function(a,b){return!0},a.prototype.hasAttributes=function(){return 0!==this.attribs.length},a.prototype.compareDocumentPosition=function(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following},a.prototype.isSameNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupPrefix=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isDefaultNamespace=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.lookupNamespaceURI=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setUserData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getUserData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.contains=function(a){return!!a&&(a===this||this.isDescendant(a))},a.prototype.isDescendant=function(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1},a.prototype.isAncestor=function(a){return a.isDescendant(this)},a.prototype.isPreceding=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c},a.prototype.isFollowing=function(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c},a.prototype.treePosition=function(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1},a.prototype.foreachTreeNode=function(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g},a}()}).call(this)},12430:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))}}}).call(this)},12570:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){if(c.__super__.constructor.call(this,a),null==f)throw Error("Missing DTD entity name. "+this.debugInfo(f));if(null==g)throw Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!d,this.name=this.stringify.name(f),this.type=b.EntityDeclaration,e(g)){if(!g.pubID&&!g.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(g.pubID&&!g.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,null!=g.pubID&&(this.pubID=this.stringify.dtdPubID(g.pubID)),null!=g.sysID&&(this.sysID=this.stringify.dtdSysID(g.sysID)),null!=g.nData&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(f))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return f(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},12749:(a,b,c)=>{var d=c(81349);b.DOMImplementation=d.DOMImplementation,b.XMLSerializer=d.XMLSerializer,b.DOMParser=c(62669).DOMParser},13630:(a,b,c)=>{"use strict";var d=c(23849).freeze;b.XML_ENTITIES=d({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),b.HTML_ENTITIES=d({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"",zwnj:""}),b.entityMap=b.HTML_ENTITIES},13859:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a)}return b(c,a),c.prototype.document=function(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f},c}(c(97871))}).call(this)},15081:(a,b,c)=>{"use strict";b.Qb=void 0;let d=c(47564);Object.defineProperty(b,"Qb",{enumerable:!0,get:function(){return d.SAML}}),c(45540),c(31673),c(35312)},15890:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,d&&(this.value=this.stringify.insValue(d))}clone(){return Object.create(this)}toString(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))}isEqualNode(a){return!!super.isEqualNode(a)&&a.target===this.target}}}).call(this)},15894:(a,b,c)=>{c(33873),c(29021);var d={"encrypted-key":c(59548),keyinfo:c(67925)};a.exports={renderTemplate:function(a,b){return d[a](b)},pemToCert:function(a){var b=/-----BEGIN CERTIFICATE-----([^-]*)-----END CERTIFICATE-----/g.exec(a);return b.length>0?b[1].replace(/[\n|\r\n]/g,""):null},warnInsecureAlgorithm:function(a,b=!0){b&&console.warn(a+" is no longer recommended due to security reasons. Please deprecate its use as soon as possible.")}}},17395:function(a,b,c){(function(){var b,d;b=c(88435),d=c(46584),a.exports=function(){function a(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a.prototype.getParameter=function(a){return this.params.hasOwnProperty(a)?this.params[a]:null},a.prototype.canSetParameter=function(a,b){return!0},a.prototype.setParameter=function(a,b){return null!=b?this.params[a]=b:delete this.params[a]},a}()}).call(this)},18462:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=void 0,b.warnUnlessExclusiveC14nNamespace=g;let d=c(61894),e=c(62119),f=(0,c(28354).deprecate)(()=>{},"Reading an `InclusiveNamespaces` element that is not in the `http://www.w3.org/2001/10/xml-exc-c14n#` namespace is deprecated, and a signature that has one will not verify in version 7.0. xml-crypto 6.3.2 and earlier wrote one when signing with `xml-exc-c14n#WithComments` and a prefix list, so sign those documents again.","XML_CRYPTO_INCLUSIVE_NAMESPACES_NAMESPACE");function g(a){"http://www.w3.org/2001/10/xml-exc-c14n#"!==a.namespaceURI&&f()}class h{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return -1;if(!b.namespaceURI&&a.namespaceURI)return 1;let c=a.namespaceURI+a.localName,d=b.namespaceURI+b.localName;return c===d?0:c<d?-1:1}nsCompare(a,b){let c=a.prefix,d=b.prefix;return c===d?0:c.localeCompare(d)}renderAttrs(a){let b,c,f=[],g=[];if(e.isCommentNode(a))return this.renderComment(a);if(a.attributes)for(b=0;b<a.attributes.length;++b)"xmlns"!==(c=a.attributes[b]).name&&"xmlns"!==c.prefix&&g.push(c);for(c of(g.sort(this.attrCompare),g))f.push(" ",c.name,'="',d.encodeSpecialCharactersInAttribute(c.value),'"');return f.join("")}renderNs(a,b,c,e,f){let g,h;d.warnOutsideProcess(this);let i=[],j=c,k=[],l=a.namespaceURI||"";a.prefix&&!d.isPrefixInScope(b,a.prefix,a.namespaceURI||e[a.prefix])&&(k.push({prefix:a.prefix,namespaceURI:a.namespaceURI||e[a.prefix]}),b.push({prefix:a.prefix,namespaceURI:a.namespaceURI||e[a.prefix]}));let m=a.prefix?a.getAttributeNode("xmlns")?.value??c:l;if((!a.prefix||f.includes("#default"))&&c!==m&&(j=m,i.push(' xmlns="',d.encodeSpecialCharactersInAttribute(j),'"')),a.attributes)for(g=0;g<a.attributes.length;++g)"xmlns"===(h=a.attributes[g]).prefix&&!d.isPrefixInScope(b,h.localName,h.value)&&f.indexOf(h.localName)>=0&&(k.push({prefix:h.localName,namespaceURI:h.value}),b.push({prefix:h.localName,namespaceURI:h.value})),h.prefix&&!d.isPrefixInScope(b,h.prefix,h.namespaceURI)&&"xmlns"!==h.prefix&&"xml"!==h.prefix&&(k.push({prefix:h.prefix,namespaceURI:h.namespaceURI}),b.push({prefix:h.prefix,namespaceURI:h.namespaceURI}));for(let a of(k.sort(this.nsCompare),k)){let b=d.encodeSpecialCharactersInAttribute(a.namespaceURI);i.push(" xmlns:",a.prefix,'="',b,'"')}return{rendered:i.join(""),newDefaultNs:j}}processInner(a,b,c,f,g){if(d.warnOutsideProcess(this),e.isDocumentNode(a)){let h=[];for(let i=0;i<a.childNodes.length;i++){let j=a.childNodes[i];if(e.isCommentNode(j)){this.includeComments&&h.push(this.renderComment(j,!0));continue}d.isCanonicalDocumentChild(j)&&h.push(this.processInner(j,b,c,f,g))}return h.join("\n")}if(e.isCommentNode(a))return this.renderComment(a);if(e.isProcessingInstructionNode(a))return d.renderProcessingInstruction(a);if(a.data)return d.encodeSpecialCharactersInText(a.data);if(e.isElementNode(a)){let d,e,h=this.renderNs(a,b,c,f,g),i=["<",a.tagName,h.rendered,this.renderAttrs(a),">"];for(d=0;d<a.childNodes.length;++d)e=b.slice(0),i.push(this.processInner(a.childNodes[d],e,h.newDefaultNs,f,g));return i.push("</",a.tagName,">"),i.join("")}throw Error(`Unable to exclusive canonicalize node type: ${a.nodeType}`)}renderComment(a,b=!1){if(!this.includeComments)return"";let c=d.encodeSpecialCharactersInText(a.data);if(b)return`\x3c!--${c}--\x3e`;let e=a.ownerDocument===a.parentNode,f=!1,g=!1;if(e){let b=a,c=a;for(;null!=b;){if(b===a.ownerDocument.documentElement){f=!0;break}b=b.nextSibling}for(;null!=c;){if(c===a.ownerDocument.documentElement){g=!0;break}c=c.previousSibling}}let h=g?"\n":"",i=f?"\n":"";return`${h}\x3c!--${c}--\x3e${i}`}process(a,b){b=b||{};let c=e.isDocumentNode(a)?a.documentElement:a,f=b.inclusiveNamespacesPrefixList||[],i=b.defaultNs||"",j=b.defaultNsForPrefix||{},k=b.ancestorNamespaces||[];if(!d.isArrayHasLength(f)){let b=d.findChildren(a,"CanonicalizationMethod");if(0!==b.length){let a=d.findChildren(b[0],"InclusiveNamespaces");0!==a.length&&(g(a[0]),f=(a[0].getAttribute("PrefixList")||"").split(" "))}}return d.isArrayHasLength(f)&&f.forEach(function(a){k&&k.forEach(function(b){"#default"===a&&""===b.prefix?c.hasAttribute("xmlns")||c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",b.namespaceURI):a===b.prefix&&c.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${a}`,b.namespaceURI)})}),d.insideProcess(this,h.prototype,()=>this.processInner(a,[],i,j,f))}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}b.ExclusiveCanonicalization=h;class i extends h{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}}b.ExclusiveCanonicalizationWithComments=i},18521:function(a){(function(){a.exports=function(){function a(a){this.nodes=a}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.item=function(a){return this.nodes[a]||null},a}()}).call(this)},19691:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.dateStringToTimestamp=b.generateInstant=void 0,b.generateInstant=()=>new Date().toISOString(),b.dateStringToTimestamp=(a,b)=>{let c=Date.parse(a);if(isNaN(c))throw Error(`Error parsing ${b}: '${a}' is not a valid date`);return c}},22859:function(a,b,c){"use strict";var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.BASE64_REGEX=b.EXTRACT_X509_CERTS=b.PEM_FORMAT_REGEX=b.derToPem=b.validateDigestValue=b.encodeSpecialCharactersInText=b.encodeSpecialCharactersInAttribute=b.isDescendantOf=b.findChilds=b.findChildren=b.findAttr=b.isArrayHasLength=b.createOptionalCallbackFunction=b.toPem=b.pemToDer=b.pemCertificates=b.normalizePem=b.findAncestorNs=b.SignedXml=b.ExclusiveCanonicalizationWithComments=b.ExclusiveCanonicalization=b.C14nCanonicalizationWithComments=b.C14nCanonicalization=void 0;let f=c(28354),g=c(75546),h=c(61894);var i=c(4776);Object.defineProperty(b,"C14nCanonicalization",{enumerable:!0,get:function(){return i.C14nCanonicalization}}),Object.defineProperty(b,"C14nCanonicalizationWithComments",{enumerable:!0,get:function(){return i.C14nCanonicalizationWithComments}});var j=c(18462);Object.defineProperty(b,"ExclusiveCanonicalization",{enumerable:!0,get:function(){return j.ExclusiveCanonicalization}}),Object.defineProperty(b,"ExclusiveCanonicalizationWithComments",{enumerable:!0,get:function(){return j.ExclusiveCanonicalizationWithComments}});var k=c(4107);Object.defineProperty(b,"SignedXml",{enumerable:!0,get:function(){return k.SignedXml}}),e(c(75546),b);var l=c(61894);Object.defineProperty(b,"findAncestorNs",{enumerable:!0,get:function(){return l.findAncestorNs}}),Object.defineProperty(b,"normalizePem",{enumerable:!0,get:function(){return l.normalizePem}}),Object.defineProperty(b,"pemCertificates",{enumerable:!0,get:function(){return l.pemCertificates}}),Object.defineProperty(b,"pemToDer",{enumerable:!0,get:function(){return l.pemToDer}}),Object.defineProperty(b,"toPem",{enumerable:!0,get:function(){return l.toPem}}),b.createOptionalCallbackFunction=(0,f.deprecate)(g.createOptionalCallbackFunction,"`createOptionalCallbackFunction()` is deprecated and will be removed in version 7.0. Write a signature algorithm's methods without a callback, and give it `getSignatureAsync()` and `verifySignatureAsync()` if it works asynchronously.","XML_CRYPTO_CREATE_OPTIONAL_CALLBACK_FUNCTION"),b.isArrayHasLength=(0,f.deprecate)(h.isArrayHasLength,"`isArrayHasLength()` is deprecated and will be removed in version 7.0. Use `Array.isArray(x) && x.length > 0` instead.","XML_CRYPTO_IS_ARRAY_HAS_LENGTH"),b.findAttr=(0,f.deprecate)(h.findAttr,"`findAttr()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_ATTR"),b.findChildren=(0,f.deprecate)(h.findChildren,"`findChildren()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_CHILDREN"),b.findChilds=(0,f.deprecate)(h.findChilds,"`findChilds()` is deprecated and will be removed in version 7.0. Use a DOM API or the `xpath` package instead.","XML_CRYPTO_FIND_CHILDS"),b.isDescendantOf=(0,f.deprecate)(h.isDescendantOf,"`isDescendantOf()` is deprecated and will be removed in version 7.0. Walk `parentNode` yourself, or use `Node.contains()` instead.","XML_CRYPTO_IS_DESCENDANT_OF"),b.encodeSpecialCharactersInAttribute=(0,f.deprecate)(h.encodeSpecialCharactersInAttribute,"`encodeSpecialCharactersInAttribute()` is deprecated and will be removed in version 7.0. Use `C14nCanonicalization` or `ExclusiveCanonicalization` instead.","XML_CRYPTO_ENCODE_SPECIAL_CHARACTERS_IN_ATTRIBUTE"),b.encodeSpecialCharactersInText=(0,f.deprecate)(h.encodeSpecialCharactersInText,"`encodeSpecialCharactersInText()` is deprecated and will be removed in version 7.0. Use `C14nCanonicalization` or `ExclusiveCanonicalization` instead.","XML_CRYPTO_ENCODE_SPECIAL_CHARACTERS_IN_TEXT"),b.validateDigestValue=(0,f.deprecate)(h.validateDigestValue,"`validateDigestValue()` is deprecated and will be removed in version 7.0. Decode both digests from base64 and use `a.length === b.length && crypto.timingSafeEqual(a, b)` instead, and never `===`.","XML_CRYPTO_VALIDATE_DIGEST_VALUE"),b.derToPem=(0,f.deprecate)(h.toPem,"`derToPem()` is deprecated and will be removed in version 7.0. Use `toPem()` instead.","XML_CRYPTO_DER_TO_PEM"),b.PEM_FORMAT_REGEX=RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$","s"),b.EXTRACT_X509_CERTS=RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----","g"),b.BASE64_REGEX=RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$","s")},23849:(a,b)=>{"use strict";function c(a,b){return void 0===b&&(b=Object),b&&"function"==typeof b.freeze?b.freeze(a):a}var d=c({HTML:"text/html",isHTML:function(a){return a===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),e=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===e.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),f=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=RegExp("[\\-\\.0-9"+f.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),h=RegExp("^"+f.source+g.source+"*(?::"+f.source+g.source+"*)?$");b.assign=function(a,b){if(null===a||"object"!=typeof a)throw TypeError("target is not an object");for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b.find=function(a,b,c){if(void 0===c&&(c=Array.prototype),a&&"function"==typeof c.find)return c.find.call(a,b);for(var d=0;d<a.length;d++)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];if(b.call(void 0,e,d,a))return e}},b.freeze=c,b.MIME_TYPE=d,b.NAMESPACE=e,b.nameStartChar=f,b.nameChar=g,b.tagNamePattern=h},24706:function(a){(function(){a.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},24938:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k;({assign:j,isFunction:k}=c(43594)),e=c(88909),f=c(50962),g=c(78611),i=c(44981),h=c(72616),b=c(26468),d=c(29394),a.exports.create=function(a,b,c,d){var e,g;if(null==a)throw Error("Root element needs a name.");return g=(e=new f(d=j({},b,c,d))).element(a),d.headless||(e.declaration(d),(null!=d.pubID||null!=d.sysID)&&e.dtd(d)),g},a.exports.begin=function(a,b,c){return(k(a)&&([b,c]=[a,b],a={}),b)?new g(a,b,c):new f(a)},a.exports.stringWriter=function(a){return new i(a)},a.exports.streamWriter=function(a,b){return new h(a,b)},a.exports.implementation=new e,a.exports.nodeType=b,a.exports.writerState=d}).call(this)},25141:function(a,b,c){(function(){var b,d;b=c(241),d=c(34370),a.exports=(function(){class a{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new b,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(a){return this.params.hasOwnProperty(a)?this.params[a]:null}canSetParameter(a,b){return!0}setParameter(a,b){return null!=b?this.params[a]=b:delete this.params[a]}}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new d(Object.keys(this.defaultParams))}}),a}).call(this)}).call(this)},26468:function(a){(function(){a.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},26884:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.generateUniqueId=b.keyInfoToBase64Certificate=b.decryptionPvkToPem=b.privateKeyToPem=b.keyInfoToPem=void 0;let d=c(55511),e=c(22859),f=c(36481);b.keyInfoToPem=(a,b,c="keyInfo")=>{(0,f.assertRequired)(a,`${c} is not provided`),(0,f.assertRequired)("string"==typeof a||Buffer.isBuffer(a)||void 0,`${c} is not a string or a Buffer`);let d=Buffer.isBuffer(a)?a.toString("latin1"):a;(0,f.assertRequired)(d.trim(),`${c} is not provided`);try{return(0,e.toPem)(d,b)}catch(a){throw TypeError(`${c} is neither valid PEM nor a valid Base64 ${{CERTIFICATE:"certificate","PUBLIC KEY":"public key","PRIVATE KEY":"private key","RSA PRIVATE KEY":"private key"}[b]}: ${a.message}`)}},b.privateKeyToPem=(a,c)=>{try{return(0,b.keyInfoToPem)(a,"PRIVATE KEY",c)}catch(d){return(0,b.keyInfoToPem)(a,"RSA PRIVATE KEY",c)}},b.decryptionPvkToPem=a=>{let c=Buffer.isBuffer(a)?a.toString("latin1"):a;return"string"==typeof c&&c.includes("-----BEGIN")?a:(0,b.privateKeyToPem)(a,"decryptionPvk")},b.keyInfoToBase64Certificate=(a,c)=>{let d=(0,e.pemCertificates)((0,b.keyInfoToPem)(a,"CERTIFICATE",c));return(0,f.assertRequired)(1===d.length||void 0,`${c} must hold exactly one certificate, but holds ${d.length}`),d[0]},b.generateUniqueId=()=>"_"+d.randomBytes(20).toString("hex")},29394:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},30072:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_WANT_ASSERTIONS_SIGNED=b.DEFAULT_IDENTIFIER_FORMAT=void 0,b.DEFAULT_IDENTIFIER_FORMAT="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",b.DEFAULT_WANT_ASSERTIONS_SIGNED=!0},31673:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.InMemoryCacheProvider=void 0;class c{constructor(a={}){var b;this.nextPruneMs=0,this.cacheKeys={},this.options={...a,keyExpirationPeriodMs:null!=(b=a.keyExpirationPeriodMs)?b:288e5},this.prune=()=>{let a=new Date().getTime();if(a>=this.nextPruneMs){let b=Object.keys(this.cacheKeys),c=[];b.forEach(b=>{a>=this.expiresAt(this.cacheKeys[b])&&c.push(b)}),c.forEach(a=>this.removeAsync(a)),this.nextPruneMs=a+this.options.keyExpirationPeriodMs}},this.removeKeyIfExpired=async(a,b)=>{this.cacheKeys[a]&&b>=this.expiresAt(this.cacheKeys[a])&&await this.removeAsync(a)}}async saveAsync(a,b){this.prune();let c=new Date().getTime();return(await this.removeKeyIfExpired(a,c),this.cacheKeys[a])?null:(this.cacheKeys[a]={createdAt:c,value:b},this.cacheKeys[a])}async getAsync(a){this.prune();let b=new Date().getTime();return(await this.removeKeyIfExpired(a,b),this.cacheKeys[a])?this.cacheKeys[a].value:null}async consumeAsync(a){let b=this.cacheKeys[a];return null==b?null:(delete this.cacheKeys[a],new Date().getTime()<this.expiresAt(b)?b.value:null)}async saveIfAbsentAsync(a,b,c){this.prune();let d=new Date().getTime();return await this.removeKeyIfExpired(a,d),!this.cacheKeys[a]&&(this.cacheKeys[a]={createdAt:d,value:b,expiresAt:c},this.nextPruneMs=Math.min(this.nextPruneMs,c),!0)}expiresAt(a){var b;return null!=(b=a.expiresAt)?b:a.createdAt+this.options.keyExpirationPeriodMs}async removeAsync(a){return null!=a&&this.cacheKeys[a]?(delete this.cacheKeys[a],a):null}}b.InMemoryCacheProvider=c},31753:function(a){(function(){var b={}.hasOwnProperty;a.exports=(function(){class a{constructor(a){var c,d,e;for(c in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),d=a.stringify||{})b.call(d,c)&&(e=d[c],this[c]=e)}name(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")}text(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))}cdata(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))}comment(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)}raw(a){return this.options.noValidation?a:""+a||""}attValue(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))}insTarget(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}insValue(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)}xmlVersion(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a}xmlEncoding(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)}xmlStandalone(a){return this.options.noValidation?a:a?"yes":"no"}dtdPubID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdSysID(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdElementValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttType(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdAttDefault(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdEntityValue(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}dtdNData(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")}assertLegalChar(a){var b,c;if(this.options.noValidation)return a;if("1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}else if("1.1"===this.options.version){if(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,void 0!==this.options.invalidCharReplacement)a=a.replace(b,this.options.invalidCharReplacement);else if(c=a.match(b))throw Error(`Invalid character in string: ${a} at index ${c.index}`)}return a}assertLegalName(a){if(this.options.noValidation)return a;if(!(a=this.assertLegalChar(a)).match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error(`Invalid character in name: ${a}`);return a}textEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))}attEscape(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))}}return a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a}).call(this)}).call(this)},31777:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.type=b.Dummy}return e(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return""},c}(d)}).call(this)},32046:(a,b)=>{!function(a){"use strict";var b,c,d,e,f="__namespace",g=function(a){return null==a},h=function(a){return"number"==typeof a&&a>=1&&Math.floor(a)===a},i=function(a){var b;return a&&((b=a.nodeType)===f||Number.isInteger(b)&&b>=1&&b<=11)&&"string"==typeof a.nodeName},j=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},k=function(a,b,c){var d=b;return j(function(b,c){d=a(d,b,c)},c),d},l=function(a,b){var c=Array(b.length);return j(function(b,d){c[d]=a(b)},b),c},m=function(a,b){var c=[];return j(function(b,d){a(b,d)&&c.push(b)},b),c},n=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function o(a){return a.toString()}var p=function(a,b){return b.join(a)},q=function(a,b,c){return a+c+b},r=Array.prototype.concat,s=function(a,b){var c=new ad;c.addArray(a);var d=c.toArray();return b?d.reverse():d};function t(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function u(){this.init()}function v(a){this.expression=a}function w(a,b,c){b in a||(a[b]=c)}function x(){}function y(a){arguments.length>0&&this.init(a)}function z(a){arguments.length>0&&this.init(a)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b){arguments.length>0&&this.init(a,b)}function L(a,b){arguments.length>0&&this.init(a,b)}function M(a,b){arguments.length>0&&this.init(a,b)}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b){arguments.length>0&&this.init(a,b)}function P(a,b,c){arguments.length>0&&this.init(a,b,c)}u.prototype={},u.prototype.constructor=u,u.superclass=Object.prototype,u.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new B(a[0],a[2])},this.reduceActions[5]=function(a){return new C(a[0],a[2])},this.reduceActions[7]=function(a){return new D(a[0],a[2])},this.reduceActions[8]=function(a){return new E(a[0],a[2])},this.reduceActions[10]=function(a){return new F(a[0],a[2])},this.reduceActions[11]=function(a){return new G(a[0],a[2])},this.reduceActions[12]=function(a){return new H(a[0],a[2])},this.reduceActions[13]=function(a){return new I(a[0],a[2])},this.reduceActions[15]=function(a){return new J(a[0],a[2])},this.reduceActions[16]=function(a){return new K(a[0],a[2])},this.reduceActions[18]=function(a){return new L(a[0],a[2])},this.reduceActions[19]=function(a){return new M(a[0],a[2])},this.reduceActions[20]=function(a){return new N(a[0],a[2])},this.reduceActions[22]=function(a){return new z(a[1])},this.reduceActions[24]=function(a){return new O(a[0],a[2])},this.reduceActions[25]=function(a){return new P(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new V(V.DESCENDANTORSELF,X.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new P(a[0],[],void 0)},this.reduceActions[30]=function(a){return ak.instance_of(a[0],P)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new P(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new _(a[0])},this.reduceActions[34]=function(a){return new aa(a[0])},this.reduceActions[36]=function(a){return new Z(a[0],[])},this.reduceActions[37]=function(a){return new Z(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new U(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new U(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new V(a[0],a[1],[])},this.reduceActions[50]=function(a){return new V(V.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new V(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new V(V.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return V.ANCESTOR;if("ancestor-or-self"==a[0])return V.ANCESTORORSELF;if("attribute"==a[0])return V.ATTRIBUTE;if("child"==a[0])return V.CHILD;if("descendant"==a[0])return V.DESCENDANT;else if("descendant-or-self"==a[0])return V.DESCENDANTORSELF;else if("following"==a[0])return V.FOLLOWING;else if("following-sibling"==a[0])return V.FOLLOWINGSIBLING;else if("namespace"==a[0])return V.NAMESPACE;else if("parent"==a[0])return V.PARENT;else if("preceding"==a[0])return V.PRECEDING;else if("preceding-sibling"==a[0])return V.PRECEDINGSIBLING;else if("self"==a[0])return V.SELF;return -1},this.reduceActions[57]=function(a){return V.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?X.commentTest:"text"==a[0]?X.textTest:"processing-instruction"==a[0]?X.anyPiTest:"node"==a[0]?X.nodeTest:new X(-1,void 0)},this.reduceActions[60]=function(a){return new X.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new V(V.DESCENDANTORSELF,X.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new V(V.DESCENDANTORSELF,X.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new V(V.SELF,X.nodeTest,[])},this.reduceActions[66]=function(a){return new V(V.PARENT,X.nodeTest,[])},this.reduceActions[67]=function(a){return new Y(a[1])},this.reduceActions[68]=function(a){return X.nameTestAny},this.reduceActions[69]=function(a){return new X.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new X.NameTestQName(a[0])}},u.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],u.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],u.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],u.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],u.DOUBLEDOT=2,u.DOUBLECOLON=3,u.DOUBLESLASH=4,u.NOTEQUAL=5,u.LESSTHANOREQUAL=6,u.GREATERTHANOREQUAL=7,u.AND=8,u.OR=9,u.MOD=10,u.DIV=11,u.MULTIPLYOPERATOR=12,u.FUNCTIONNAME=13,u.AXISNAME=14,u.LITERAL=15,u.NUMBER=16,u.ASTERISKNAMETEST=17,u.QNAME=18,u.NCNAMECOLONASTERISK=19,u.NODETYPE=20,u.PROCESSINGINSTRUCTIONWITHLITERAL=21,u.EQUALS=22,u.LESSTHAN=23,u.GREATERTHAN=24,u.PLUS=25,u.MINUS=26,u.BAR=27,u.SLASH=28,u.LEFTPARENTHESIS=29,u.RIGHTPARENTHESIS=30,u.COMMA=31,u.AT=32,u.LEFTBRACKET=33,u.RIGHTBRACKET=34,u.DOT=35,u.DOLLAR=36,u.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(u.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(u.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(u.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(u.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(u.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(u.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(u.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(u.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(u.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(u.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(u.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(u.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(u.NUMBER),c.push(g);continue}b.push(u.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw am.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(u.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(u.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=u.AT&&j!=u.DOUBLECOLON&&j!=u.LEFTPARENTHESIS&&j!=u.LEFTBRACKET&&j!=u.AND&&j!=u.OR&&j!=u.MOD&&j!=u.DIV&&j!=u.MULTIPLYOPERATOR&&j!=u.SLASH&&j!=u.DOUBLESLASH&&j!=u.BAR&&j!=u.PLUS&&j!=u.MINUS&&j!=u.EQUALS&&j!=u.NOTEQUAL&&j!=u.LESSTHAN&&j!=u.LESSTHANOREQUAL&&j!=u.GREATERTHAN&&j!=u.GREATERTHANOREQUAL){b.push(u.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(u.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(u.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(u.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(u.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(u.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(u.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(u.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(u.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(u.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ak.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ak.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=u.AT&&j!=u.DOUBLECOLON&&j!=u.LEFTPARENTHESIS&&j!=u.LEFTBRACKET&&j!=u.AND&&j!=u.OR&&j!=u.MOD&&j!=u.DIV&&j!=u.MULTIPLYOPERATOR&&j!=u.SLASH&&j!=u.DOUBLESLASH&&j!=u.BAR&&j!=u.PLUS&&j!=u.MINUS&&j!=u.EQUALS&&j!=u.NOTEQUAL&&j!=u.LESSTHAN&&j!=u.LESSTHANOREQUAL&&j!=u.GREATERTHAN&&j!=u.GREATERTHANOREQUAL){if("and"==k){b.push(u.AND),c.push(k);continue}if("or"==k){b.push(u.OR),c.push(k);continue}if("mod"==k){b.push(u.MOD),c.push(k);continue}if("div"==k){b.push(u.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(u.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ak.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ak.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(u.FUNCTIONNAME),c.push(k);continue}b.push(u.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(u.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(u.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(u.NODETYPE):b.push(u.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(u.FUNCTIONNAME),c.push(k);continue}b.push(u.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},u.SHIFT="s",u.REDUCE="r",u.ACCEPT="a",u.prototype.parse=function(a){if(!a)throw Error("XPath expression unspecified.");if("string"!=typeof a)throw Error("XPath expression must be a string.");var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],u.actionTable[a].charAt(d-1)){case u.SHIFT:i.push(-d),j.push(e),h.push(u.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case u.REDUCE:for(var k=u.productions[u.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(u.productions[u.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[u.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[u.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(u.gotoTable[n].charCodeAt(u.productions[u.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case u.ACCEPT:return new v(j.pop());default:throw Error("XPath parse error")}}},v.prototype={},v.prototype.constructor=v,v.superclass=Object.prototype,v.prototype.toString=function(){return this.expression.toString()},v.prototype.evaluate=function(a){var b=a.expressionContextNode;if(!(g(b)||i(b)))throw Error("Context node does not appear to be a valid DOM node.");var c=g(a.expressionContextSize)?1:a.expressionContextSize,d=g(a.expressionContextPosition)?1:a.expressionContextPosition;if(!h(c)||!h(d)||d>c)throw Error("Context position and size must be positive integers, with position no greater than size.");return a.contextNode=a.expressionContextNode,a.contextSize=c,a.contextPosition=d,a.isHtml&&(w(a,"caseInsensitive",!0),w(a,"allowAnyNamespaceForNoPrefix",!0)),w(a,"caseInsensitive",!1),this.expression.evaluate(a)},v.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",v.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",x.prototype={},x.prototype.constructor=x,x.superclass=Object.prototype,x.prototype.init=function(){},x.prototype.toString=function(){return"<Expression>"},x.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},y.prototype=new x,y.prototype.constructor=y,y.superclass=x.prototype,y.prototype.init=function(a){this.rhs=a},z.prototype=new y,z.prototype.constructor=z,z.superclass=y.prototype,z.prototype.init=function(a){z.superclass.init.call(this,a)},z.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},z.prototype.toString=function(){return"-"+this.rhs.toString()},A.prototype=new x,A.prototype.constructor=A,A.superclass=x.prototype,A.prototype.init=function(a,b){this.lhs=a,this.rhs=b},B.prototype=new A,B.prototype.constructor=B,B.superclass=A.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},B.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},C.prototype=new A,C.prototype.constructor=C,C.superclass=A.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},C.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},D.prototype=new A,D.prototype.constructor=D,D.superclass=A.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},E.prototype=new A,E.prototype.constructor=E,E.superclass=A.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},F.prototype=new A,F.prototype.constructor=F,F.superclass=A.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},F.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},G.prototype=new A,G.prototype.constructor=G,G.superclass=A.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},G.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},H.prototype=new A,H.prototype.constructor=H,H.superclass=A.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},H.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},I.prototype=new A,I.prototype.constructor=I,I.superclass=A.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},I.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},J.prototype=new A,J.prototype.constructor=J,J.superclass=A.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},J.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},K.prototype=new A,K.prototype.constructor=K,K.superclass=A.prototype,K.prototype.init=function(a,b){K.superclass.init.call(this,a,b)},K.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},K.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},L.prototype=new A,L.prototype.constructor=L,L.superclass=A.prototype,L.prototype.init=function(a,b){L.superclass.init.call(this,a,b)},L.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},L.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},M.prototype=new A,M.prototype.constructor=M,M.superclass=A.prototype,M.prototype.init=function(a,b){M.superclass.init.call(this,a,b)},M.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},M.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},N.prototype=new A,N.prototype.constructor=N,N.superclass=A.prototype,N.prototype.init=function(a,b){N.superclass.init.call(this,a,b)},N.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},N.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},O.prototype=new A,O.prototype.constructor=O,O.superclass=A.prototype,O.prototype.init=function(a,b){O.superclass.init.call(this,a,b)},O.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},O.prototype.toString=function(){return l(o,[this.lhs,this.rhs]).join(" | ")},P.prototype=new x,P.prototype.constructor=P,P.superclass=x.prototype,P.prototype.init=function(a,b,c){P.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c};var Q=function(a,b,c,d){if(0===a.length)return c;var e=b.extend({});return k(function(a,b){return e.contextSize=a.length,m(function(a,c){return e.contextNode=a,e.contextPosition=c+1,P.predicateMatches(b,e)},a)},s(c,d),a)};P.getRoot=function(a,b){var c=b[0];if(c&&9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;if(!c)throw Error("Context node not found when determining document root.");var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e};var R=function(a){var b=String(a.name);return"xmlns"===b?"":"xmlns:"===b.substring(0,6)?b.substring(6,b.length):null};function S(a,b,c){return Q(a.predicates,b,P.applyStep(a,b,c),n(W,a.axis))}function T(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=r.apply(b,d)}return b}(l(S.bind(null,c,a),b))}function U(a,b){arguments.length>0&&this.init(a,b)}function V(a,b,c){arguments.length>0&&this.init(a,b,c)}P.applyStep=function(a,b,c){if(!c)throw Error("Context node not found when evaluating XPath step: "+a);var d,e,f=[];switch(b.contextNode=c,a.axis){case V.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?P.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case V.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?P.getOwnerElement(d):d.parentNode);break;case V.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case V.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case V.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case V.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case V.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case V.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case V.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=new ae("xml",null,v.XML_NAMESPACE_URI,b.contextNode);for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=R(j);null!=k&&void 0==i[k]&&(i[k]=new ae(k,j,j.value,b.contextNode))}for(var k in i){var c=i[k];a.nodeTest.matches(c,b)&&f.push(c)}}break;case V.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?P.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case V.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case V.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case V.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},P.applySteps=function(a,b,c){return k(T.bind(null,b),c,a)},P.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ak.instance_of(c,ad)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:Q(this.filterPredicates||[],b,c.toUnsortedArray(),!1)}},P.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[P.getRoot(b,c)]:c;return P.applySteps(a.steps,b,d)},P.prototype.evaluate=function(a){var b=t(new af,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new ad;return d.addArray(P.applyLocationPath(this.locationPath,b,c.nodes)),d},P.predicateMatches=function(a,b){var c=a.evaluate(b);return ak.instance_of(c,aa)?b.contextPosition===c.numberValue():c.booleanValue()},P.predicateString=function(a){return q("[","]",a.toString())},P.predicatesString=function(a){return p("",l(P.predicateString,a))},P.prototype.toString=function(){if(void 0!=this.filter){var a=o(this.filter);return ak.instance_of(this.filter,_)?q("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?q("(",")",a)+P.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+o(this.locationPath):a}return o(this.locationPath)},P.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},U.prototype={},U.prototype.constructor=U,U.superclass=Object.prototype,U.prototype.init=function(a,b){this.absolute=a,this.steps=b},U.prototype.toString=function(){return(this.absolute?"/":"")+l(o,this.steps).join("/")},V.prototype={},V.prototype.constructor=V,V.superclass=Object.prototype,V.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},V.prototype.toString=function(){return V.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+P.predicatesString(this.predicates)},V.ANCESTOR=0,V.ANCESTORORSELF=1,V.ATTRIBUTE=2,V.CHILD=3,V.DESCENDANT=4,V.DESCENDANTORSELF=5,V.FOLLOWING=6,V.FOLLOWINGSIBLING=7,V.NAMESPACE=8,V.PARENT=9,V.PRECEDING=10,V.PRECEDINGSIBLING=11,V.SELF=12,V.STEPNAMES=k(function(a,b){return a[b[0]]=b[1],a},{},[[V.ANCESTOR,"ancestor"],[V.ANCESTORORSELF,"ancestor-or-self"],[V.ATTRIBUTE,"attribute"],[V.CHILD,"child"],[V.DESCENDANT,"descendant"],[V.DESCENDANTORSELF,"descendant-or-self"],[V.FOLLOWING,"following"],[V.FOLLOWINGSIBLING,"following-sibling"],[V.NAMESPACE,"namespace"],[V.PARENT,"parent"],[V.PRECEDING,"preceding"],[V.PRECEDINGSIBLING,"preceding-sibling"],[V.SELF,"self"]]);var W=[V.ANCESTOR,V.ANCESTORORSELF,V.PARENT,V.PRECEDING,V.PRECEDINGSIBLING];function X(a,b){arguments.length>0&&this.init(a,b)}function Y(a){arguments.length>0&&this.init(a)}function Z(a,b){arguments.length>0&&this.init(a,b)}X.prototype={},X.prototype.constructor=X,X.superclass=Object.prototype,X.prototype.init=function(a,b){this.type=a,this.value=b},X.prototype.toString=function(){return"<unknown nodetest type>"},X.prototype.matches=function(a,b){console.warn("unknown node test type")},X.NAMETESTANY=0,X.NAMETESTPREFIXANY=1,X.NAMETESTQNAME=2,X.COMMENT=3,X.TEXT=4,X.PI=5,X.NODE=6,X.isNodeType=function(a){return function(b){return n(a,b.nodeType)}},X.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new X(a),d.prototype.constructor=d,t(d.prototype,b),d},X.makeNodeTypeTest=function(a,b,c){return new(X.makeNodeTestType(a,{matches:X.isNodeType(b),toString:function(){return c}}))},X.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},X.isElementOrAttribute=X.isNodeType([1,2]),X.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!X.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},X.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},X.NameTestPrefixAny=X.makeNodeTestType(X.NAMETESTPREFIXANY,{matches:function(a,b){return X.isElementOrAttribute(a)&&X.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),X.NameTestQName=X.makeNodeTestType(X.NAMETESTQNAME,{matches:function(a,b){return X.isNodeType([1,2,f])(a)&&X.nameSpaceMatches(this.prefix,b,a)&&X.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),X.PITest=X.makeNodeTestType(X.PI,{matches:function(a,b){return X.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return q('processing-instruction("','")',this.name)}},function(a){this.name=a}),X.nameTestAny=X.makeNodeTypeTest(X.NAMETESTANY,[1,2,f],"*"),X.textTest=X.makeNodeTypeTest(X.TEXT,[3,4],"text()"),X.commentTest=X.makeNodeTypeTest(X.COMMENT,[8],"comment()"),X.nodeTest=X.makeNodeTypeTest(X.NODE,[1,2,3,4,7,8,9],"node()"),X.anyPiTest=X.makeNodeTypeTest(X.PI,[7],"processing-instruction()"),Y.prototype=new x,Y.prototype.constructor=Y,Y.superclass=x.prototype,Y.prototype.init=function(a){this.variable=a},Y.prototype.toString=function(){return"$"+this.variable},Y.prototype.evaluate=function(a){var b=ak.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw am.fromMessage("Undeclared variable: "+this.toString());return c},Z.prototype=new x,Z.prototype.constructor=Z,Z.superclass=x.prototype,Z.prototype.init=function(a,b){this.functionName=a,this.arguments=b},Z.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},Z.prototype.evaluate=function(a){var b=ah.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var $={};function _(a){arguments.length>0&&this.init(a)}function aa(a){arguments.length>0&&this.init(a)}function ab(a){arguments.length>0&&this.init(a)}function ac(a){this.init(a)}function ad(){this.init()}function ae(a,b,c,d){this.isXPathNamespace=!0,this.baseNode=b,this.ownerDocument=d.ownerDocument,this.nodeName=a,this.prefix=a,this.localName=a,this.namespaceURI=null,this.nodeValue=c,this.ownerElement=d,this.nodeType=f}function af(a,b,c){this.variableResolver=null!=a?a:new ag,this.namespaceResolver=null!=b?b:new ai,this.functionResolver=null!=c?c:new ah}function ag(){}function ah(a){this.thisArg=null!=a?a:aj,this.functions={},this.addStandardFunctions()}function ai(){}$.equals=function(a,b){return a.equals(b)},$.notequal=function(a,b){return a.notequal(b)},$.lessthan=function(a,b){return a.lessthan(b)},$.greaterthan=function(a,b){return a.greaterthan(b)},$.lessthanorequal=function(a,b){return a.lessthanorequal(b)},$.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},_.prototype=new x,_.prototype.constructor=_,_.superclass=x.prototype,_.prototype.init=function(a){this.str=String(a)},_.prototype.toString=function(){return this.str},_.prototype.evaluate=function(a){return this},_.prototype.string=function(){return this},_.prototype.number=function(){return new aa(this.str)},_.prototype.bool=function(){return new ab(this.str)},_.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},_.prototype.stringValue=function(){return this.str},_.prototype.numberValue=function(){return this.number().numberValue()},_.prototype.booleanValue=function(){return this.bool().booleanValue()},_.prototype.equals=function(a){return ak.instance_of(a,ab)?this.bool().equals(a):ak.instance_of(a,aa)?this.number().equals(a):ak.instance_of(a,ad)?a.compareWithString(this,$.equals):new ab(this.str==a.str)},_.prototype.notequal=function(a){return ak.instance_of(a,ab)?this.bool().notequal(a):ak.instance_of(a,aa)?this.number().notequal(a):ak.instance_of(a,ad)?a.compareWithString(this,$.notequal):new ab(this.str!=a.str)},_.prototype.lessthan=function(a){return this.number().lessthan(a)},_.prototype.greaterthan=function(a){return this.number().greaterthan(a)},_.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},_.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},aa.prototype=new x,aa.prototype.constructor=aa,aa.superclass=x.prototype,aa.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},aa.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,aa.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):0/0},aa.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},aa.prototype.evaluate=function(a){return this},aa.prototype.string=function(){return new _(this.toString())},aa.prototype.number=function(){return this},aa.prototype.bool=function(){return new ab(this.num)},aa.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},aa.prototype.stringValue=function(){return this.string().stringValue()},aa.prototype.numberValue=function(){return this.num},aa.prototype.booleanValue=function(){return this.bool().booleanValue()},aa.prototype.negate=function(){return new aa(-this.num)},aa.prototype.equals=function(a){return ak.instance_of(a,ab)?this.bool().equals(a):ak.instance_of(a,_)?this.equals(a.number()):ak.instance_of(a,ad)?a.compareWithNumber(this,$.equals):new ab(this.num==a.num)},aa.prototype.notequal=function(a){return ak.instance_of(a,ab)?this.bool().notequal(a):ak.instance_of(a,_)?this.notequal(a.number()):ak.instance_of(a,ad)?a.compareWithNumber(this,$.notequal):new ab(this.num!=a.num)},aa.prototype.lessthan=function(a){return ak.instance_of(a,ad)?a.compareWithNumber(this,$.greaterthan):ak.instance_of(a,ab)||ak.instance_of(a,_)?this.lessthan(a.number()):new ab(this.num<a.num)},aa.prototype.greaterthan=function(a){return ak.instance_of(a,ad)?a.compareWithNumber(this,$.lessthan):ak.instance_of(a,ab)||ak.instance_of(a,_)?this.greaterthan(a.number()):new ab(this.num>a.num)},aa.prototype.lessthanorequal=function(a){return ak.instance_of(a,ad)?a.compareWithNumber(this,$.greaterthanorequal):ak.instance_of(a,ab)||ak.instance_of(a,_)?this.lessthanorequal(a.number()):new ab(this.num<=a.num)},aa.prototype.greaterthanorequal=function(a){return ak.instance_of(a,ad)?a.compareWithNumber(this,$.lessthanorequal):ak.instance_of(a,ab)||ak.instance_of(a,_)?this.greaterthanorequal(a.number()):new ab(this.num>=a.num)},aa.prototype.plus=function(a){return new aa(this.num+a.num)},aa.prototype.minus=function(a){return new aa(this.num-a.num)},aa.prototype.multiply=function(a){return new aa(this.num*a.num)},aa.prototype.div=function(a){return new aa(this.num/a.num)},aa.prototype.mod=function(a){return new aa(this.num%a.num)},ab.prototype=new x,ab.prototype.constructor=ab,ab.superclass=x.prototype,ab.prototype.init=function(a){this.b=!!a},ab.prototype.toString=function(){return this.b.toString()},ab.prototype.evaluate=function(a){return this},ab.prototype.string=function(){return new _(this.b)},ab.prototype.number=function(){return new aa(this.b)},ab.prototype.bool=function(){return this},ab.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},ab.prototype.stringValue=function(){return this.string().stringValue()},ab.prototype.numberValue=function(){return this.number().numberValue()},ab.prototype.booleanValue=function(){return this.b},ab.prototype.not=function(){return new ab(!this.b)},ab.prototype.equals=function(a){return ak.instance_of(a,_)||ak.instance_of(a,aa)?this.equals(a.bool()):ak.instance_of(a,ad)?a.compareWithBoolean(this,$.equals):new ab(this.b==a.b)},ab.prototype.notequal=function(a){return ak.instance_of(a,_)||ak.instance_of(a,aa)?this.notequal(a.bool()):ak.instance_of(a,ad)?a.compareWithBoolean(this,$.notequal):new ab(this.b!=a.b)},ab.prototype.lessthan=function(a){return this.number().lessthan(a)},ab.prototype.greaterthan=function(a){return this.number().greaterthan(a)},ab.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},ab.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},ab.true_=new ab(!0),ab.false_=new ab(!1),ac.prototype={},ac.prototype.constructor=ac,ac.superclass=Object.prototype,ac.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},ac.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},ac.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},ac.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},ac.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},ac.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},ac.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=al(a),k=al(b);if(j&&!k)return -1;if(!j&&k)return 1;if(a.isXPathNamespace){if(a.nodeValue===v.XML_NAMESPACE_URI||!b.isXPathNamespace)return -1;if(b.nodeValue===v.XML_NAMESPACE_URI)return 1}else if(b.isXPathNamespace)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=a.baseNode||a,o=b.baseNode||b,p=0;p<m;p+=1){var q=l[p];if(q===n)return -1;if(q===o)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new ac(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new ac(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},ad.prototype=new x,ad.prototype.constructor=ad,ad.superclass=x.prototype,ad.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},ad.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},ad.prototype.evaluate=function(a){return this},ad.prototype.string=function(){return new _(this.toString())},ad.prototype.stringValue=function(){return this.toString()},ad.prototype.number=function(){return new aa(this.string())},ad.prototype.numberValue=function(){return Number(this.string())},ad.prototype.bool=function(){return new ab(this.booleanValue())},ad.prototype.booleanValue=function(){return!!this.size},ad.prototype.nodeset=function(){return this},ad.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},ad.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},ad.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new ac(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},ad.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},ad.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},ad.prototype.addArray=function(a){var b=this;j(function(a){b.add(a)},a)},ad.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},ad.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},ad.prototype.toUnsortedArray=function(){return this.nodes.slice()},ad.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new _(this.stringForNode(e)),a);if(f.booleanValue())return f}return new ab(!1)},ad.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new aa(this.stringForNode(e)),a);if(f.booleanValue())return f}return new ab(!1)},ad.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},ad.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new _(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new ab(!1)},b=function(a,b){return ak.instance_of(b,_)?this.compareWithString(b,a):ak.instance_of(b,aa)?this.compareWithNumber(b,a):ak.instance_of(b,ab)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,ad.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},ad.prototype.equals=ad.compareWith($.equals),ad.prototype.notequal=ad.compareWith($.notequal),ad.prototype.lessthan=ad.compareWith($.lessthan),ad.prototype.greaterthan=ad.compareWith($.greaterthan),ad.prototype.lessthanorequal=ad.compareWith($.lessthanorequal),ad.prototype.greaterthanorequal=ad.compareWith($.greaterthanorequal),ad.prototype.union=function(a){var b=new ad;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.extend=function(a){return t(new af,this,a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.getVariable=function(a,b){return null},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.addStandardFunctions=function(){this.functions["{}last"]=aj.last,this.functions["{}position"]=aj.position,this.functions["{}count"]=aj.count,this.functions["{}id"]=aj.id,this.functions["{}local-name"]=aj.localName,this.functions["{}namespace-uri"]=aj.namespaceURI,this.functions["{}name"]=aj.name,this.functions["{}string"]=aj.string,this.functions["{}concat"]=aj.concat,this.functions["{}starts-with"]=aj.startsWith,this.functions["{}contains"]=aj.contains,this.functions["{}substring-before"]=aj.substringBefore,this.functions["{}substring-after"]=aj.substringAfter,this.functions["{}substring"]=aj.substring,this.functions["{}string-length"]=aj.stringLength,this.functions["{}normalize-space"]=aj.normalizeSpace,this.functions["{}translate"]=aj.translate,this.functions["{}boolean"]=aj.boolean_,this.functions["{}not"]=aj.not,this.functions["{}true"]=aj.true_,this.functions["{}false"]=aj.false_,this.functions["{}lang"]=aj.lang,this.functions["{}number"]=aj.number,this.functions["{}sum"]=aj.sum,this.functions["{}floor"]=aj.floor,this.functions["{}ceiling"]=aj.ceiling,this.functions["{}round"]=aj.round},ah.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},ah.getFunctionFromContext=function(a,b){var c=ak.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},ah.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},ai.prototype={},ai.prototype.constructor=ai,ai.superclass=Object.prototype,ai.prototype.getNamespace=function(a,b){if("xml"==a)return v.XML_NAMESPACE_URI;if("xmlns"==a)return v.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=P.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var aj={};aj.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new aa(a.contextSize)},aj.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new aa(a.contextPosition)},aj.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ak.instance_of(a=arguments[1].evaluate(b),ad))throw Error("Function count expects (node-set)");return new aa(a.size)},aj.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ak.instance_of(a,ad)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new ad,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ak.getElementById(f,d[g]))&&e.add(b);return e},aj.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new _(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},aj.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new _(null==a?"":a.namespaceURI||"")},aj.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new _(""):1==a.nodeType?new _(a.nodeName):2==a.nodeType?new _(a.name||a.nodeName):7===a.nodeType?new _(a.target||a.nodeName):null==a.localName?new _(""):new _(a.localName)},aj.string=function(){var a=arguments[0];if(1==arguments.length)return new _(ad.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},aj.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new _(b)},aj.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new ab(b.substring(0,c.length)==c)},aj.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new ab(-1!==b.indexOf(c))},aj.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new _(b.substring(0,b.indexOf(c)))},aj.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new _(b);var d=b.indexOf(c);return new _(-1==d?"":b.substring(d+c.length))},aj.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new _(b.substring(c,d))},aj.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=ad.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new aa(a.length)},aj.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=ad.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ak.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ak.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ak.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ak.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new _(e)},aj.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),g=d.evaluate(a).stringValue(),h=k(function(a,b,c){return b in a||(a[b]=c>g.length?"":g[c]),a},{},f);return new _(p("",l(function(a){return a in h?h[a]:a},e)))},aj.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},aj.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},aj.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return ab.true_},aj.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return ab.false_},aj.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(v.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return ab.false_;var e=arguments[1].evaluate(b).stringValue();return new ab(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},aj.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new aa(ad.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},aj.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ak.instance_of(a=arguments[1].evaluate(b),ad))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new aa(ad.prototype.stringForNode(a[d])).numberValue();return new aa(c)},aj.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new aa(Math.floor(arguments[1].evaluate(a).numberValue()))},aj.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new aa(Math.ceil(arguments[1].evaluate(a).numberValue()))},aj.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new aa(Math.round(arguments[1].evaluate(a).numberValue()))};var ak={},al=function(a){return a&&(2===a.nodeType||a.ownerElement||a.isXPathNamespace)};ak.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ak.resolveQName=function(a,b,c,d){var e=ak.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ak.isSpace=function(a){return 9==a||13==a||10==a||32==a},ak.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ak.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ak.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ak.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ak.coalesceText(b)},ak.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ak.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ak.getElementById(c,b);if(null!=d)return d}return null};var am=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function an(a,b,c){this.xpath=c.parse(a),this.context=new af,this.context.namespaceResolver=new ao(b)}function ao(a){this.xpathNSResolver=a}function ap(a){this.node=a,this.namespaceResolver=new ai}function aq(a,b){switch(b==aq.ANY_TYPE&&(a.constructor===_?b=aq.STRING_TYPE:a.constructor===aa?b=aq.NUMBER_TYPE:a.constructor===ab?b=aq.BOOLEAN_TYPE:a.constructor===ad&&(b=aq.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case aq.NUMBER_TYPE:this.numberValue=a.numberValue();return;case aq.STRING_TYPE:this.stringValue=a.stringValue();return;case aq.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case aq.ANY_UNORDERED_NODE_TYPE:case aq.FIRST_ORDERED_NODE_TYPE:if(a.constructor===ad){this.singleNodeValue=a.first();return}break;case aq.UNORDERED_NODE_ITERATOR_TYPE:case aq.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===ad){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case aq.UNORDERED_NODE_SNAPSHOT_TYPE:case aq.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===ad){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new am(am.TYPE_ERR)}function ar(a,b){a.createExpression=function(a,c){try{return new an(a,c,b)}catch(a){throw new am(am.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ap(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}an.prototype={},an.prototype.constructor=an,an.superclass=Object.prototype,an.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},an.detectHtmlDom=function(a){if(!a)return!1;var b=an.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},an.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=an.detectHtmlDom(a),new aq(this.xpath.evaluate(this.context),b)},ao.prototype={},ao.prototype.constructor=ao,ao.superclass=Object.prototype,ao.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ap.prototype={},ap.prototype.constructor=ap,ap.superclass=Object.prototype,ap.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},aq.prototype={},aq.prototype.constructor=aq,aq.superclass=Object.prototype,aq.prototype.iterateNext=function(){if(this.resultType!=aq.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=aq.ORDERED_NODE_ITERATOR_TYPE)throw new am(am.TYPE_ERR);return this.nodes[this.iteratorIndex++]},aq.prototype.snapshotItem=function(a){if(this.resultType!=aq.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=aq.ORDERED_NODE_SNAPSHOT_TYPE)throw new am(am.TYPE_ERR);return this.nodes[a]},aq.ANY_TYPE=0,aq.NUMBER_TYPE=1,aq.STRING_TYPE=2,aq.BOOLEAN_TYPE=3,aq.UNORDERED_NODE_ITERATOR_TYPE=4,aq.ORDERED_NODE_ITERATOR_TYPE=5,aq.UNORDERED_NODE_SNAPSHOT_TYPE=6,aq.ORDERED_NODE_SNAPSHOT_TYPE=7,aq.ANY_UNORDERED_NODE_TYPE=8,aq.FIRST_ORDERED_NODE_TYPE=9;try{var as=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(as=!1)}catch(a){}as&&ar(document,new u)}catch(a){}ar(a,new u),function(){var b=new u,c=new ai,d=new ah,e=new ag;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof _||a instanceof ab||a instanceof aa||a instanceof ad)return a;switch(typeof a){case"string":return new _(a);case"boolean":return new ab(a);case"number":return new aa(a)}var b=new ad;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new af,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,g.expressionContextPosition=a.position,g.expressionContextSize=a.size,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),t(a,{XPath:v,XPathParser:u,XPathResult:aq,Step:V,PathExpr:P,NodeTest:X,LocationPath:U,OrOperation:B,AndOperation:C,BarOperation:O,EqualsOperation:D,NotEqualOperation:E,LessThanOperation:F,GreaterThanOperation:G,LessThanOrEqualOperation:H,GreaterThanOrEqualOperation:I,PlusOperation:J,MinusOperation:K,MultiplyOperation:L,DivOperation:M,ModOperation:N,UnaryMinusOperation:z,FunctionCall:Z,VariableReference:Y,XPathContext:af,XNodeSet:ad,XBoolean:ab,XString:_,XNumber:aa,NamespaceResolver:ai,FunctionResolver:ah,VariableResolver:ag,Utilities:ak}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new an(a,c,new u),f=aq.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==aq.STRING_TYPE?g=g.stringValue:g.resultType==aq.NUMBER_TYPE?g=g.numberValue:g.resultType==aq.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var at=function(a){return function(b){return i(b)&&b.nodeType===a}};t(a,{isNodeLike:i,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(i)},isElement:at(1),isAttribute:at(2),isTextNode:at(3),isCDATASection:at(4),isProcessingInstruction:at(7),isComment:at(8),isDocumentNode:at(9),isDocumentTypeNode:at(10),isDocumentFragment:at(11)})}(b)},32748:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.HmacSha1=b.RsaSha512=b.RsaSha256Mgf1=b.RsaSha256=b.RsaSha1=void 0;let d=c(55511),e=c(75546);class f{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA1");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA1");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}}b.RsaSha1=f;class g{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA256");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA256");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}}b.RsaSha256=g;class h{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{if(!("string"==typeof b||Buffer.isBuffer(b)))throw Error("keys must be strings or buffers");let c=d.createSign("RSA-SHA256");return c.update(a),c.sign({key:b,padding:d.constants.RSA_PKCS1_PSS_PADDING,saltLength:d.constants.RSA_PSS_SALTLEN_DIGEST},"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{if(!("string"==typeof b||Buffer.isBuffer(b)))throw Error("keys must be strings or buffers");let e=d.createVerify("RSA-SHA256");return e.update(a),e.verify({key:b,padding:d.constants.RSA_PKCS1_PSS_PADDING,saltLength:d.constants.RSA_PSS_SALTLEN_DIGEST},c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1"}}b.RsaSha256Mgf1=h;class i{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createSign("RSA-SHA512");return c.update(a),c.sign(b,"base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createVerify("RSA-SHA512");return e.update(a),e.verify(b,c,"base64")}),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}}b.RsaSha512=i;class j{constructor(){this.getSignature=(0,e.createOptionalCallbackFunction)((a,b)=>{let c=d.createHmac("SHA1",b);return c.update(a),c.digest("base64")}),this.verifySignature=(0,e.createOptionalCallbackFunction)((a,b,c)=>{let e=d.createHmac("SHA1",b);e.update(a);let f=e.digest("base64");try{return d.timingSafeEqual(Buffer.from(f,"base64"),Buffer.from(c,"base64"))}catch(a){return!1}}),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}}b.HmacSha1=j},33773:function(a,b,c){(function(){var b,d,e,f,g,h,i,j;({isObject:j}=c(43594)),i=c(73067),b=c(26468),d=c(77192),f=c(71920),e=c(1243),g=c(48813),h=c(87074),a.exports=(function(){class a extends i{constructor(a,c,d){var e,f,g,h;if(super(a),this.type=b.DocType,a.children){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.Element){this.name=e.name;break}}this.documentObject=a,j(c)&&({pubID:c,sysID:d}=c),null==d&&([d,c]=[c,d]),null!=c&&(this.pubID=this.stringify.dtdPubID(c)),null!=d&&(this.sysID=this.stringify.dtdSysID(d))}element(a,b){var c;return c=new e(this,a,b),this.children.push(c),this}attList(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this}entity(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this}pEntity(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this}notation(a,b){var c;return c=new g(this,a,b),this.children.push(c),this}toString(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))}ele(a,b){return this.element(a,b)}att(a,b,c,d,e){return this.attList(a,b,c,d,e)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}up(){return this.root()||this.documentObject}isEqualNode(a){return!!super.isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId}}return Object.defineProperty(a.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},34153:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.signSamlPost=e,b.signAuthnRequestPost=function(a,b){return e(a,'/*[local-name(.)="AuthnRequest" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]',b)};let d=c(65756);function e(a,b,c){return(0,d.signXml)(a,b,{reference:b+'/*[local-name(.)="Issuer" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:assertion"]',action:"after"},c)}},34370:function(a){(function(){a.exports=(function(){class a{constructor(a){this.arr=a||[]}item(a){return this.arr[a]||null}contains(a){return -1!==this.arr.indexOf(a)}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a}).call(this)}).call(this)},35312:(a,b)=>{"use strict";var c,d;Object.defineProperty(b,"__esModule",{value:!0}),b.SamlStatusError=b.ValidateInResponseTo=b.isValidSamlSigningOptions=void 0,b.isValidSamlSigningOptions=a=>null!=a.privateKey,(d=c||(b.ValidateInResponseTo=c={})).never="never",d.ifPresent="ifPresent",d.always="always";class e extends Error{constructor(a,b){super(a),this.xmlStatus=b}}b.SamlStatusError=e},35387:(a,b,c)=>{a.exports=c(91848)},35971:function(a){(function(){a.exports=function(){function a(){}return a.prototype.hasFeature=function(a,b){return!0},a.prototype.createDocumentType=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createDocument=function(a,b,c){throw Error("This DOM method is not implemented.")},a.prototype.createHTMLDocument=function(a){throw Error("This DOM method is not implemented.")},a.prototype.getFeature=function(a,b){throw Error("This DOM method is not implemented.")},a}()}).call(this)},36481:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.assertRequired=function(a,b){if(null==a||"string"==typeof a&&0===a.length)throw TypeError(null!=b?b:"value does not exist")},b.assertBooleanIfPresent=function(a,b){if(null!=a&&"boolean"!=typeof a)throw TypeError(null!=b?b:"value is set but not boolean")},b.assertObject=function(a,b,c){if("object"!=typeof a||null===a||Array.isArray(a))throw TypeError(`${b} must be an object`);let d=Object.keys(a).find(a=>!c.includes(a));if(void 0!==d)throw TypeError(`${b} has an unsupported key "${d}"`)},b.assertNonEmptyString=function(a,b){if("string"!=typeof a||0===a.length)throw TypeError(`${b} must be a non-empty string`)},b.assertNonEmptyArray=function(a,b){if(!Array.isArray(a)||0===a.length)throw TypeError(`${b} must be a non-empty array`)},b.signXmlResponse=function(a,b){let c='//*[local-name(.)="Response" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:protocol"]';return(0,d.signXml)(a,c,{reference:c,action:"append"},b)},b.signXmlMetadata=function(a,b){let c='//*[local-name(.)="EntityDescriptor" and namespace-uri(.)="urn:oasis:names:tc:SAML:2.0:metadata"]';return(0,d.signXml)(a,c,{reference:c,action:"prepend"},b)};let d=c(65756)},36700:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},42429:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):0/0},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)};var ak=function(a){return a&&"number"==typeof a.nodeType&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName},al=function(a){return function(b){return ak(b)&&b.nodeType===a}};o(a,{isNodeLike:ak,isArrayOfNodes:function(a){return Array.isArray(a)&&a.every(ak)},isElement:al(1),isAttribute:al(2),isTextNode:al(3),isCDATASection:al(4),isProcessingInstruction:al(7),isComment:al(8),isDocumentNode:al(9),isDocumentTypeNode:al(10),isDocumentFragment:al(11)})}(b)},43594:function(a){(function(){var b,c,d,e={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(a,...b){var d,f,g,h;if(c(Object.assign))Object.assign.apply(null,arguments);else for(d=0,g=b.length;d<g;d++)if(null!=(h=b[d]))for(f in h)e.call(h,f)&&(a[f]=h[f]);return a},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(e.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},43849:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;i=(j=c(4700)).isObject,h=j.isFunction,g=j.getValue,f=c(8957),b=c(24706),d=c(94253),e=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i;if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=e&&this.attribute(e),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.DocType){f.name=this.name;break}}}return k(c,a),Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),c.prototype.clone=function(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)l.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c},c.prototype.attribute=function(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)l.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this},c.prototype.removeAttribute=function(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this},c.prototype.toString=function(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))},c.prototype.att=function(a,b){return this.attribute(a,b)},c.prototype.a=function(a,b){return this.attribute(a,b)},c.prototype.getAttribute=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null},c.prototype.setAttribute=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNode=function(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null},c.prototype.setAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getAttributeNodeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setAttributeNodeNS=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.hasAttribute=function(a){return this.attribs.hasOwnProperty(a)},c.prototype.hasAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttribute=function(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b},c.prototype.setIdAttributeNS=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setIdAttributeNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){var b,d,e;if(!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=d=0,e=this.attribs.length-1;0<=e?d<=e:d>=e;b=0<=e?++d:--d)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0},c}(f)}).call(this)},44558:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Sha512=b.Sha256=b.Sha1=void 0;let d=c(55511);class e{constructor(){this.getHash=function(a){let b=d.createHash("sha1");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}}b.Sha1=e;class f{constructor(){this.getHash=function(a){let b=d.createHash("sha256");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}}b.Sha256=f;class g{constructor(){this.getHash=function(a){let b=d.createHash("sha512");return b.update(a,"utf8"),b.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}}b.Sha512=g},44981:function(a,b,c){(function(){var b;b=c(67289),a.exports=class extends b{constructor(a){super(a)}document(a,b){var c,d,e,f,g;for(b=this.filterOptions(b),f="",d=0,e=(g=a.children).length;d<e;d++)c=g[d],f+=this.writeChildNode(c,b,0);return b.pretty&&f.slice(-b.newline.length)===b.newline&&(f=f.slice(0,-b.newline.length)),f}}}).call(this)},45454:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e,f,g,h){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD element name. "+this.debugInfo());if(null==e)throw Error("Missing DTD attribute name. "+this.debugInfo(d));if(!f)throw Error("Missing DTD attribute type. "+this.debugInfo(d));if(!g)throw Error("Missing DTD attribute default. "+this.debugInfo(d));if(0!==g.indexOf("#")&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(d));if(h&&!g.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(d));this.elementName=this.stringify.name(d),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(e),this.attributeType=this.stringify.dtdAttType(f),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=g}return e(c,a),c.prototype.toString=function(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},45540:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.generateServiceProviderMetadata=b.buildServiceProviderMetadata=b.warnIfContactOrOrganizationInvalid=b.assertValidAttributeConsumingServices=void 0;let d=c(28354),e=c(86175),f=c(35312),g=c(36481),h=c(65756),i=c(93267),j=c(26884),k=c(30072),l=d.debuglog("node-saml"),m={"@xmlns":"urn:oasis:names:tc:SAML:2.0:metadata","@xmlns:ds":"http://www.w3.org/2000/09/xmldsig#"},n=["technical","support","administrative","billing","other"],o="metadataAttributeConsumingServices",p=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,q="(?:[;/?:@&=+$,a-zA-Z0-9_.!~*'()-]|%[0-9a-fA-F]{2})",r=RegExp(`^[a-zA-Z][a-zA-Z0-9+.-]*:${q}+(?:#${q}*)?$`);function s(a,b){if(!Array.isArray(a))throw TypeError(`${b} must be an array`);a.forEach((a,c)=>{(0,g.assertObject)(a,`${b}[${c}]`,["@xml:lang","#text"]);let d=a["@xml:lang"];if("string"!=typeof d||!p.test(d))throw TypeError(`${b}[${c}]["@xml:lang"] must be a language tag, such as "en" or "en-GB"`);(0,g.assertNonEmptyString)(a["#text"],`${b}[${c}]["#text"]`)})}b.assertValidAttributeConsumingServices=a=>{let b;if(null==a)return;if(!Array.isArray(a))throw TypeError(`${o} must be an array`);let c=new Map;a.forEach((a,d)=>{let e=`${o}[${d}]`;(0,g.assertObject)(a,e,["@index","@isDefault","ServiceName","ServiceDescription","RequestedAttribute"]);let f=a["@index"];if("string"!=typeof f||!/^[0-9]+$/.test(f)||Number(f)>65535)throw TypeError(`${e}["@index"] must be a string of digits from "0" to "65535"`);let h=c.get(Number(f));if(void 0!==h)throw TypeError(`${e}["@index"] is "${f}", but ${o}[${h}] already uses that index`);if(c.set(Number(f),d),(0,g.assertBooleanIfPresent)(a["@isDefault"],`${e}["@isDefault"] must be a boolean`),!0===a["@isDefault"]){if(void 0!==b)throw TypeError(`${e}["@isDefault"] is true, but ${o}[${b}] is already the default`);b=d}(0,g.assertNonEmptyArray)(a.ServiceName,`${e}.ServiceName`),s(a.ServiceName,`${e}.ServiceName`),null!=a.ServiceDescription&&s(a.ServiceDescription,`${e}.ServiceDescription`),(0,g.assertNonEmptyArray)(a.RequestedAttribute,`${e}.RequestedAttribute`),a.RequestedAttribute.forEach((a,b)=>{let c=`${e}.RequestedAttribute[${b}]`;(0,g.assertObject)(a,c,["@Name","@NameFormat","@FriendlyName","@isRequired"]),(0,g.assertNonEmptyString)(a["@Name"],`${c}["@Name"]`);let d=a["@NameFormat"];if(null!=d&&("string"!=typeof d||!r.test(d)))throw TypeError(`${c}["@NameFormat"] must be an absolute URI, such as "urn:oasis:names:tc:SAML:2.0:attrname-format:uri"`);null!=a["@FriendlyName"]&&(0,g.assertNonEmptyString)(a["@FriendlyName"],`${c}["@FriendlyName"]`),(0,g.assertBooleanIfPresent)(a["@isRequired"],`${c}["@isRequired"] must be a boolean`)})})};let t=["Extensions","Company","GivenName","SurName","EmailAddress","TelephoneNumber"],u=["OrganizationName","OrganizationDisplayName","OrganizationURL"],v=["Extensions",...u];function w(a,b){if(Array.isArray(a))return a.map(a=>w(a,b));if("object"!=typeof a||null===a)return a;let c=Object.keys(a),d={};for(let e of[...c.filter(a=>!b.includes(a)),...b.filter(a=>c.includes(a))])d[e]=a[e];return d}b.warnIfContactOrOrganizationInvalid=a=>{for(let b of[()=>(function(a){if(null!=a){if(!Array.isArray(a))throw TypeError("metadataContactPerson must be an array");a.forEach((a,b)=>{let c=`metadataContactPerson[${b}]`;(0,i.assertElement)(a,c,["@contactType",...t],m,"ContactType");let d=a["@contactType"];if("string"!=typeof d||!n.includes(d))throw TypeError(`${c}["@contactType"] must be one of ${n.join(", ")}`);for(let b of["Company","GivenName","SurName"])null!=a[b]&&(0,g.assertNonEmptyString)(a[b],`${c}.${b}`);for(let b of["EmailAddress","TelephoneNumber"]){let d=a[b];if(null!=d){if(!Array.isArray(d))throw TypeError(`${c}.${b} must be an array`);d.forEach((a,d)=>(0,g.assertNonEmptyString)(a,`${c}.${b}[${d}]`))}}})}})(a.metadataContactPerson),()=>(function(a){if(null!=a){for(let b of((0,i.assertElement)(a,"metadataOrganization",v,m,"OrganizationType"),u))(0,g.assertNonEmptyArray)(a[b],`metadataOrganization.${b}`),s(a[b],`metadataOrganization.${b}`);a.OrganizationURL.forEach((a,b)=>{if(!r.test(a["#text"]))throw TypeError(`metadataOrganization.OrganizationURL[${b}]["#text"] must be an absolute URI, such as "https://example.com"`)})}})(a.metadataOrganization)])try{b()}catch(a){l("%s. The metadata is still generated from the option as given, and may not follow the SAML metadata schema. The next major version rejects this instead.",a.message)}},b.buildServiceProviderMetadata=a=>{var c;let{issuer:d,callbackUrl:e,logoutCallbackUrl:i,decryptionPvk:l,privateKey:n,metadataContactPerson:o,metadataOrganization:p,identifierFormat:q=k.DEFAULT_IDENTIFIER_FORMAT,wantAssertionsSigned:r=k.DEFAULT_WANT_ASSERTIONS_SIGNED,generateUniqueId:s=j.generateUniqueId}=a,{publicCerts:u,decryptionCert:x}=a;if(null!=l){if(!x)throw Error("Missing decryptionCert while generating metadata for decrypting service provider")}else x=null;if(null!=n){if(!u)throw Error("Missing publicCert while generating metadata for signing service provider messages")}else u=null;let y={EntityDescriptor:{...m,"@entityID":d,"@ID":s(),SPSSODescriptor:{"@protocolSupportEnumeration":"urn:oasis:names:tc:SAML:2.0:protocol","@AuthnRequestsSigned":"false"},...p?{Organization:w(p,v)}:{},...o?{ContactPerson:w(o,t)}:{}}};if(null!=x||null!=u){if(y.EntityDescriptor.SPSSODescriptor.KeyDescriptor=[],(0,f.isValidSamlSigningOptions)(a)){(0,g.assertRequired)(u,"Missing publicCert while generating metadata for signing service provider messages"),y.EntityDescriptor.SPSSODescriptor["@AuthnRequestsSigned"]=!0;let a=(Array.isArray(u)?u:[u]).map((a,b)=>({"@use":"signing","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":(0,j.keyInfoToBase64Certificate)(a,Array.isArray(u)?`publicCerts[${b}]`:"publicCerts")}}}}));y.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push(a)}null!=l&&((0,g.assertRequired)(x,"Missing decryptionCert while generating metadata for decrypting service provider"),y.EntityDescriptor.SPSSODescriptor.KeyDescriptor.push({"@use":"encryption","ds:KeyInfo":{"ds:X509Data":{"ds:X509Certificate":{"#text":(0,j.keyInfoToBase64Certificate)(x,"decryptionCert")}}},EncryptionMethod:[{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes256-gcm"},{"@Algorithm":"http://www.w3.org/2009/xmlenc11#aes128-gcm"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes256-cbc"},{"@Algorithm":"http://www.w3.org/2001/04/xmlenc#aes128-cbc"}]}))}null!=i&&(y.EntityDescriptor.SPSSODescriptor.SingleLogoutService={"@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":i}),null!=q&&(y.EntityDescriptor.SPSSODescriptor.NameIDFormat=q),r&&(y.EntityDescriptor.SPSSODescriptor["@WantAssertionsSigned"]=!0),y.EntityDescriptor.SPSSODescriptor.AssertionConsumerService={"@index":"1","@isDefault":"true","@Binding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Location":e},(0,b.assertValidAttributeConsumingServices)(a.metadataAttributeConsumingServices),(null==(c=a.metadataAttributeConsumingServices)?void 0:c.length)&&(y.EntityDescriptor.SPSSODescriptor.AttributeConsumingService=a.metadataAttributeConsumingServices.map(a=>({"@index":a["@index"],...null!=a["@isDefault"]?{"@isDefault":a["@isDefault"]}:{},ServiceName:a.ServiceName,...a.ServiceDescription?{ServiceDescription:a.ServiceDescription}:{},RequestedAttribute:a.RequestedAttribute})));let z=(0,h.buildXmlBuilderObject)(y,!0);return!0===a.signMetadata&&(0,f.isValidSamlSigningOptions)(a)&&(z=(0,g.signXmlMetadata)(z,{privateKey:a.privateKey,signatureAlgorithm:a.signatureAlgorithm,xmlSignatureTransforms:a.xmlSignatureTransforms,digestAlgorithm:a.digestAlgorithm})),z},b.generateServiceProviderMetadata=a=>{if(!0===a.signMetadata&&(0,f.isValidSamlSigningOptions)(a))for(let b of(e.assertDigestAlgorithmChosen(a.signatureAlgorithm,a.digestAlgorithm),void 0===a.digestAlgorithm&&e.warnAlgorithmNotSet("digestAlgorithm"),["signatureAlgorithm","digestAlgorithm"]))e.warnIfAlgorithmNotRecognized(b,a[b]);return(0,b.warnIfContactOrOrganizationInvalid)(a),(0,b.buildServiceProviderMetadata)(a)}},46584:function(a){(function(){a.exports=function(){function a(a){this.arr=a||[]}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a.prototype.item=function(a){return this.arr[a]||null},a.prototype.contains=function(a){return -1!==this.arr.indexOf(a)},a}()}).call(this)},46780:function(a){(function(){a.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},46898:function(a,b,c){(function(){var b,d;b=c(26468),d=c(65096),a.exports=class extends d{constructor(a,c){if(super(a),null==c)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(c)}clone(){return Object.create(this)}toString(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))}}}).call(this)},47564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SAML=void 0;let d=c(55511),e=c(11723),f=c(1932),g=c(28354),h=c(74075),i=c(86175),j=c(30072),k=c(26884),l=c(19691),m=c(93267),n=c(31673),o=c(45540),p=c(34153),q=c(35312),r=c(36481),s=c(65756),t=g.debuglog("node-saml");function u(a,b,c){return"string"==typeof a||void 0!==b?(t("%s was called with a `host` argument. It is unused and is removed in the next major version; call %s(RelayState, options) instead.",c,c),b):a}async function v(a,b){if(a.consumeAsync)return a.consumeAsync(b);let c=await a.getAsync(b);return await a.removeAsync(b),c}async function w(a,b){if(null!=b&&await v(a,b)==null)throw Error("InResponseTo is not valid")}function x(a,b){if(!b&&a===q.ValidateInResponseTo.always)throw Error("SubjectInResponseTo is missing and the Response's InResponseTo is not signed")}function y(a,b){let c=s.xpath.selectAttributes(a,`/*/@${b}`);return c.length?c[0].nodeValue:null}function z(a){if(a.length>1)throw Error(`Expected one SAML issuer, received ${a.length}: ${a.join(", ")}`)}function A(a,b){try{return new f.URL(a).href===new f.URL(b).href}catch(c){return a===b}}function B(a,b,c,d){null!=b&&(null==d?t('The signed %s has no Destination, where `%s` ("%s") was expected. SAML bindings require one on a signed message, and the next major version rejects it. Configure the identity provider to include the Destination in the messages it signs.',c,a,b):A(d,b)||t('The %s has the Destination "%s", where `%s` ("%s") was expected. The next major version rejects it. If that Destination is the URL of this endpoint, set `%s` to it; otherwise, configure the identity provider to send it to `%s`.',c,d,a,b,a,a))}async function C(a){return s.xpath.selectAttributes(await (0,s.parseDomFromString)(a),"/*[local-name()='Assertion']/*[local-name()='Subject']/*[local-name()='SubjectConfirmation']/*[local-name()='SubjectConfirmationData']/@InResponseTo").map(a=>a.nodeValue).filter(a=>null!=a)}class D extends Error{}async function E(a,b){var c,d,e,f,g,h,i,j,k;let m,n,o,p,q=(await (0,s.parseXml2JsFromString)(a)).Assertion,r=null==(c=q.$)?void 0:c.ID;if(null==r)throw Error("The assertion has no ID, so it cannot be checked for replay");let t=(f=b.maxAssertionAgeMs,g=b.acceptedClockSkewMs,m=a=>{let b=(0,l.dateStringToTimestamp)(a,"NotOnOrAfter"),c=(0,l.dateStringToTimestamp)(q.$.IssueInstant,"IssueInstant");return 0===f?b:Math.min(b,c+f)},n=[],null!=(o=null==(i=null==(h=q.Conditions)?void 0:h[0].$)?void 0:i.NotOnOrAfter)&&n.push(m(o)),(p=(null!=(k=null==(j=q.Subject)?void 0:j[0].SubjectConfirmation)?k:[]).map(a=>{var b,c;return null==(c=null==(b=a.SubjectConfirmationData)?void 0:b[0].$)?void 0:c.NotOnOrAfter}).filter(a=>null!=a).map(m)).length>0&&n.push(Math.max(...p)),0===n.length?null:Math.min(...n)+g);if(null==t)throw Error("The assertion has no NotOnOrAfter, so it would be accepted for ever and cannot be checked for replay");if(t<=new Date().getTime())return;let u=JSON.stringify(["assertion",null!=(e=null==(d=q.Issuer)?void 0:d[0]._)?e:"",r]),v=b.cacheProvider;if(!await v.saveIfAbsentAsync(u,(0,l.generateInstant)(),t))throw new D(`The assertion ${r} has already been received`)}let F=g.promisify(h.inflateRaw),G=g.promisify(h.deflateRaw),H=["SAMLRequest","SAMLResponse","RelayState","SigAlg","Signature"],I=a=>null!=a&&""!==String(a),J=a=>e.unescape(a.replace(/\+/g," ")),K=a=>a.split("&").map(a=>J(a.split("=",1)[0]));function L(a){let b,c=new Map;for(let b of a.split("&")){let[a]=b.split("=",1),d=J(a);if(!H.includes(d))continue;if(c.has(d))throw Error(`The query string has more than one ${d} parameter`);let e=J(b.slice(a.length+1));c.set(d,{token:b,value:e})}let d=c.get("SAMLRequest"),e=c.get("SAMLResponse");if(d&&e)throw Error("The query string has both a SAMLRequest and a SAMLResponse parameter");let f=null!=d?d:e;if(!f)throw Error("The query string has no SAMLRequest or SAMLResponse parameter");let g=c.get("RelayState"),h=c.get("Signature"),i=c.get("SigAlg");if(h){if(!i)throw Error("The query string has a Signature parameter but no SigAlg parameter");b={octets:(g?[f,g,i]:[f,i]).map(({token:a})=>a).join("&"),signature:h.value,sigAlg:i.value}}return{samlMessageType:d?"SAMLRequest":"SAMLResponse",samlMessage:f.value,relayState:null==g?void 0:g.value,signed:b}}let M=a=>H.find(b=>a.startsWith(`${b}[`)||a.startsWith(`[${b}]`)),N=async({idpCert:a})=>{let b="function"==typeof a?await g.promisify(a)().then(a=>((0,r.assertRequired)(a,"callback didn't return idpCert"),a)):a;return Array.isArray(b)?b.map((a,b)=>(0,k.keyInfoToPem)(a,"CERTIFICATE",`idpCert[${b}]`)):[(0,k.keyInfoToPem)(b,"CERTIFICATE","idpCert")]};class O{constructor(a){this.pemFiles=[],this.options=this.initialize(a),this.cacheProvider=this.options.cacheProvider}initialize(a){var b,c,d,e,f,g,h,l,p,s,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K;if(!a)throw TypeError("SamlOptions required on construction");(0,r.assertRequired)(a.callbackUrl,"callbackUrl is required"),(0,r.assertRequired)(a.issuer,"issuer is required"),(0,r.assertRequired)(a.idpCert,"idpCert is required"),(0,r.assertBooleanIfPresent)(a.passive),(0,r.assertBooleanIfPresent)(a.disableRequestedAuthnContext),(0,r.assertBooleanIfPresent)(a.forceAuthn),(0,r.assertBooleanIfPresent)(a.skipRequestCompression),(0,r.assertBooleanIfPresent)(a.disableRequestAcsUrl),(0,r.assertBooleanIfPresent)(a.allowCreate),(0,r.assertBooleanIfPresent)(a.wantAssertionsSigned),(0,r.assertBooleanIfPresent)(a.wantAuthnResponseSigned),(0,r.assertBooleanIfPresent)(a.signMetadata),(0,r.assertBooleanIfPresent)(a.rejectReplayedAssertions),(0,o.assertValidAttributeConsumingServices)(a.metadataAttributeConsumingServices),(0,q.isValidSamlSigningOptions)(a)&&i.assertDigestAlgorithmChosen(a.signatureAlgorithm,a.digestAlgorithm);let L={...a,passive:null!=(b=a.passive)&&b,disableRequestedAuthnContext:null!=(c=a.disableRequestedAuthnContext)&&c,additionalParams:null!=(d=a.additionalParams)?d:{},additionalAuthorizeParams:null!=(e=a.additionalAuthorizeParams)?e:{},additionalLogoutParams:null!=(f=a.additionalLogoutParams)?f:{},forceAuthn:null!=(g=a.forceAuthn)&&g,skipRequestCompression:null!=(h=a.skipRequestCompression)&&h,disableRequestAcsUrl:null!=(l=a.disableRequestAcsUrl)&&l,acceptedClockSkewMs:null!=(p=a.acceptedClockSkewMs)?p:0,maxAssertionAgeMs:null!=(s=a.maxAssertionAgeMs)?s:0,rejectReplayedAssertions:null!=(u=a.rejectReplayedAssertions)&&u,callbackUrl:a.callbackUrl,issuer:a.issuer,audience:null!=(w=null!=(v=a.audience)?v:a.issuer)?w:"unknown_audience",identifierFormat:void 0===a.identifierFormat?j.DEFAULT_IDENTIFIER_FORMAT:a.identifierFormat,allowCreate:null==(x=a.allowCreate)||x,spNameQualifier:a.spNameQualifier,wantAssertionsSigned:null!=(y=a.wantAssertionsSigned)?y:j.DEFAULT_WANT_ASSERTIONS_SIGNED,wantAuthnResponseSigned:null==(z=a.wantAuthnResponseSigned)||z,authnContext:null!=(A=a.authnContext)?A:["urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"],validateInResponseTo:null!=(B=a.validateInResponseTo)?B:q.ValidateInResponseTo.never,idpCert:a.idpCert,requestIdExpirationPeriodMs:null!=(C=a.requestIdExpirationPeriodMs)?C:288e5,cacheProvider:null!=(D=a.cacheProvider)?D:new n.InMemoryCacheProvider({keyExpirationPeriodMs:a.requestIdExpirationPeriodMs}),logoutUrl:null!=(F=null!=(E=a.logoutUrl)?E:a.entryPoint)?F:"",signatureAlgorithm:null!=(G=a.signatureAlgorithm)?G:"sha1",authnRequestBinding:null!=(H=a.authnRequestBinding)?H:"HTTP-Redirect",generateUniqueId:null!=(I=a.generateUniqueId)?I:k.generateUniqueId,signMetadata:null!=(J=a.signMetadata)&&J,racComparison:null!=(K=a.racComparison)?K:"exact"};if(!Object.values(q.ValidateInResponseTo).includes(L.validateInResponseTo))throw TypeError("validateInResponseTo must be one of ['never', 'ifPresent', 'always']");if(void 0===a.validateInResponseTo&&t("`validateInResponseTo` is not set, so it defaults to `never` and an InResponseTo is not checked against a request this library issued. A SAML response can then be replayed, or delivered unsolicited. The next major version requires it; set it to `always`, `ifPresent`, or `never` now."),void 0===a.rejectReplayedAssertions&&t("`rejectReplayedAssertions` is not set, so it defaults to `false`, and an assertion that `validateInResponseTo` does not tie to a request can be presented again until its timestamps expire. The next major version rejects a replayed assertion; set it to `true` now."),L.rejectReplayedAssertions){if(-1===L.acceptedClockSkewMs)throw TypeError("rejectReplayedAssertions cannot be used with acceptedClockSkewMs: -1, under which an assertion never expires");if(null==L.cacheProvider.saveIfAbsentAsync)throw TypeError("rejectReplayedAssertions requires a cacheProvider with saveIfAbsentAsync, which saves a key with an expiry only if it is absent, in one step")}if(L.validateInResponseTo!==q.ValidateInResponseTo.never&&null==L.cacheProvider.consumeAsync&&t("`cacheProvider` has no `consumeAsync`, so a request ID is read and then removed in separate calls, and two copies of one response validated at the same moment can both be accepted. The next major version requires it; implement it to remove a key and return its value in one step."),(0,q.isValidSamlSigningOptions)(a))for(let b of["signatureAlgorithm","digestAlgorithm"])void 0===a[b]&&i.warnAlgorithmNotSet(b);for(let b of["signatureAlgorithm","digestAlgorithm"])i.warnIfAlgorithmNotRecognized(b,a[b]);if((0,o.warnIfContactOrOrganizationInvalid)(a),(0,m.warnIfRequestExtensionsInvalid)(a),!["exact","minimum","maximum","better"].includes(L.racComparison))throw TypeError("racComparison must be one of ['exact', 'minimum', 'maximum', 'better']");return L}signRequest(a){(0,r.assertRequired)(this.options.privateKey,"privateKey is required");let b=i.getSigningAlgorithm(this.options.signatureAlgorithm);a.SigAlg=b;let c=i.findSignatureAlgorithm(b);(0,r.assertRequired)(c,`${b} is not supported`);let d=new f.URLSearchParams;for(let b of["SAMLRequest","SAMLResponse","RelayState","SigAlg"])I(a[b])&&d.set(b,a[b]);a.Signature=c.getSignature(d.toString(),(0,k.privateKeyToPem)(this.options.privateKey,"privateKey"))}async generateAuthorizeRequestAsync(a,b){(0,r.assertRequired)(this.options.entryPoint,"entryPoint is required");let c=this.options.generateUniqueId(),d=(0,l.generateInstant)();this.mustValidateInResponseTo(!0)&&await this.cacheProvider.saveAsync(c,d);let e={"samlp:AuthnRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@ID":c,"@Version":"2.0","@IssueInstant":d,"@ProtocolBinding":"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST","@Destination":this.options.entryPoint,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer}}};a&&(e["samlp:AuthnRequest"]["@IsPassive"]=!0),!0===this.options.forceAuthn&&(e["samlp:AuthnRequest"]["@ForceAuthn"]=!0),this.options.disableRequestAcsUrl||(e["samlp:AuthnRequest"]["@AssertionConsumerServiceURL"]=this.options.callbackUrl);let f=this.options.samlAuthnRequestExtensions;if(null!=f){if("object"!=typeof f)throw TypeError("samlAuthnRequestExtensions should be Object");e["samlp:AuthnRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...f}}let g={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@AllowCreate":this.options.allowCreate};if(null!=this.options.identifierFormat&&(g["@Format"]=this.options.identifierFormat),null!=this.options.spNameQualifier&&(g["@SPNameQualifier"]=this.options.spNameQualifier),e["samlp:AuthnRequest"]["samlp:NameIDPolicy"]=g,!this.options.disableRequestedAuthnContext){let a=[];this.options.authnContext.forEach(function(b){a.push({"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":b})}),e["samlp:AuthnRequest"]["samlp:RequestedAuthnContext"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@Comparison":this.options.racComparison,"saml:AuthnContextClassRef":a}}if(null!=this.options.attributeConsumingServiceIndex&&(e["samlp:AuthnRequest"]["@AttributeConsumingServiceIndex"]=this.options.attributeConsumingServiceIndex),null!=this.options.providerName&&(e["samlp:AuthnRequest"]["@ProviderName"]=this.options.providerName),null!=this.options.scoping){let a={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};"number"==typeof this.options.scoping.proxyCount&&(a["@ProxyCount"]=this.options.scoping.proxyCount),this.options.scoping.idpList&&(a["samlp:IDPList"]=this.options.scoping.idpList.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return a.entries&&(b["samlp:IDPEntry"]=a.entries.map(a=>{let b={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol"};return b["@ProviderID"]=a.providerId,a.name&&(b["@Name"]=a.name),a.loc&&(b["@Loc"]=a.loc),b})),a.getComplete&&(b["samlp:GetComplete"]=a.getComplete),b})),this.options.scoping.requesterId&&(a["samlp:RequesterID"]=this.options.scoping.requesterId),e["samlp:AuthnRequest"]["samlp:Scoping"]=a}let h=(0,s.buildXmlBuilderObject)(e,!1);return b&&(0,q.isValidSamlSigningOptions)(this.options)&&(h=(0,p.signAuthnRequestPost)(h,this.options)),h}async _generateLogoutRequest(a){let b=this.options.generateUniqueId(),c=(0,l.generateInstant)(),d={"samlp:LogoutRequest":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":b,"@Version":"2.0","@IssueInstant":c,"@Destination":this.options.logoutUrl,"saml:Issuer":{"@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","#text":this.options.issuer},"samlp:Extensions":{},"saml:NameID":{"@Format":a.nameIDFormat,"#text":a.nameID}}},e=this.options.samlLogoutRequestExtensions;if(null!=e){if("object"!=typeof e)throw TypeError("samlLogoutRequestExtensions should be Object");d["samlp:LogoutRequest"]["samlp:Extensions"]={"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol",...e}}else delete d["samlp:LogoutRequest"]["samlp:Extensions"];return null!=a.nameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@NameQualifier"]=a.nameQualifier),null!=a.spNameQualifier&&(d["samlp:LogoutRequest"]["saml:NameID"]["@SPNameQualifier"]=a.spNameQualifier),a.sessionIndex&&(d["samlp:LogoutRequest"]["saml2p:SessionIndex"]={"@xmlns:saml2p":"urn:oasis:names:tc:SAML:2.0:protocol","#text":a.sessionIndex}),await this.cacheProvider.saveAsync(b,c),(0,s.buildXmlBuilderObject)(d,!1)}_generateLogoutResponse(a,b){let c={"samlp:LogoutResponse":{"@xmlns:samlp":"urn:oasis:names:tc:SAML:2.0:protocol","@xmlns:saml":"urn:oasis:names:tc:SAML:2.0:assertion","@ID":this.options.generateUniqueId(),"@Version":"2.0","@IssueInstant":(0,l.generateInstant)(),"@Destination":this.options.logoutUrl,"@InResponseTo":a.ID,"saml:Issuer":{"#text":this.options.issuer},"samlp:Status":b?{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Success"}}:{"samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:Requester","samlp:StatusCode":{"@Value":"urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal"}}}}};return(0,s.buildXmlBuilderObject)(c,!1)}async _requestToUrlAsync(a,b,c,d){var e;(0,r.assertRequired)(this.options.entryPoint,"entryPoint is required");let g=a||b;(0,r.assertRequired)(g,"either request or response is required");let h=(this.options.skipRequestCompression?Buffer.from(g,"utf8"):await G(g)).toString("base64"),i=new f.URL(this.options.entryPoint);if("logout"===c)this.options.logoutUrl&&(i=new f.URL(this.options.logoutUrl));else if("authorize"!==c)throw Error("Unknown operation: "+c);let j=a?{SAMLRequest:h}:{SAMLResponse:h};Object.keys(d).forEach(a=>{j[a]=d[a]});let k=null!=(e=j.RelayState)?e:i.searchParams.get("RelayState");if(I(k)?j.RelayState=k:(delete j.RelayState,i.searchParams.delete("RelayState")),(0,q.isValidSamlSigningOptions)(this.options)){if(!this.options.entryPoint)throw Error('"entryPoint" config parameter is required for signed messages');this.signRequest(j)}return Object.keys(j).forEach(a=>{i.searchParams.set(a,j[a])}),i.toString()}_getAdditionalParams(a,b,c){let d={};return"string"==typeof a&&a.length>0&&(d.RelayState=a),Object.assign(d,this.options.additionalParams,"logout"===b?this.options.additionalLogoutParams:this.options.additionalAuthorizeParams,null!=c?c:{})}async getAuthorizeUrlAsync(a,b,c){let d=u(b,c,"getAuthorizeUrlAsync"),e=await this.generateAuthorizeRequestAsync(this.options.passive,!1),f="authorize",g=d&&d.additionalParams||{};return await this._requestToUrlAsync(e,null,f,this._getAdditionalParams(a,f,g))}async getAuthorizeMessageAsync(a,b,c){let d,e=u(b,c,"getAuthorizeMessageAsync");(0,r.assertRequired)(this.options.entryPoint,"entryPoint is required");let f=await this.generateAuthorizeRequestAsync(this.options.passive,!0);d=this.options.skipRequestCompression?Buffer.from(f,"utf8"):await G(f);let g=e&&e.additionalParams||{},h=this._getAdditionalParams(a,"authorize",g),i={SAMLRequest:d.toString("base64")};return Object.keys(h).forEach(a=>{i[a]=h[a]||""}),i}async getAuthorizeFormAsync(a,b,c){u(b,c,"getAuthorizeFormAsync"),(0,r.assertRequired)(this.options.entryPoint,"entryPoint is required");let d=function(a,b){let c=b?" ":"\n";return(""+a).replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">").replace(/\r\n/g,c).replace(/[\r\n]/g,c)},e=await this.getAuthorizeMessageAsync(a,b,c),f=Object.keys(e).map(a=>'<input type="hidden" name="'+a+'" value="'+d(e[a])+'" />').join("\r\n");return["<!DOCTYPE html>","<html>","<head>",'<meta charset="utf-8">','<meta http-equiv="x-ua-compatible" content="ie=edge">',"</head>",'<body onload="document.forms[0].submit()">',"<noscript>","<p><strong>Note:</strong> Since your browser does not support JavaScript, you must press the button below once to proceed.</p>","</noscript>",'<form method="post" action="'+encodeURI(this.options.entryPoint)+'">',f,'<input type="submit" value="Submit" />',"</form>",'<script>document.forms[0].style.display="none";<\/script>',"</body>","</html>"].join("\r\n")}async getLogoutUrlAsync(a,b,c){let d=await this._generateLogoutRequest(a),e="logout",f=c&&c.additionalParams||{};return await this._requestToUrlAsync(d,null,e,this._getAdditionalParams(b,e,f))}getLogoutResponseUrl(a,b,c,d,e){g.callbackify(()=>this.getLogoutResponseUrlAsync(a,b,c,d))(e)}async getLogoutResponseUrlAsync(a,b,c,d){let e=this._generateLogoutResponse(a,d),f="logout",g=c&&c.additionalParams||{};return await this._requestToUrlAsync(null,e,f,this._getAdditionalParams(b,f,g))}async getKeyInfosAsPem(){return"function"==typeof this.options.idpCert?await N(this.options):(this.pemFiles.length>0||(this.pemFiles=await N(this.options)),this.pemFiles)}async getSignedAssertion(a){let b=(await (0,s.parseDomFromString)(a)).documentElement;if("Response"===b.localName){let a=s.xpath.selectElements(b,"./*[local-name()='Assertion']");if(1==a.length)return a[0].toString();let c=s.xpath.selectElements(b,"./*[local-name()='EncryptedAssertion']");if(1===c.length){(0,r.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=c[0].toString(),b=await (0,s.decryptXml)(a,this.options.decryptionPvk),d=(await (0,s.parseDomFromString)(b)).documentElement;if("Assertion"!==d.localName)throw Error("Invalid EncryptedAssertion content");return d.toString()}}else if("Assertion"===b.localName)return b.toString();return null}async validatePostResponseAsync(a){var b,c,d,e,f;let g,h,i=null,j=null,k=null,l=null;try{g=Buffer.from(a.SAMLResponse,"base64").toString("utf8"),h=await (0,s.parseDomFromString)(g);let m=s.xpath.selectAttributes(h,"/*[local-name()='Response' or local-name()='LogoutResponse']/@InResponseTo");m&&(i=m.length?m[0].nodeValue:null,await this.validateInResponseTo(i));let n=await this.getKeyInfosAsPem(),o=!1,p=(0,s.getVerifiedXml)(g,h.documentElement,n),t=null,u=null;if(p){o=!0;let a=await (0,s.parseDomFromString)(p);if(j=y(a,"InResponseTo"),k=y(a,"Destination"),z(s.xpath.selectElements(a,"/*[local-name()='Response']/*[local-name()='Issuer']").map(a=>a.textContent)),null!=this.options.idpIssuer){let a=await (0,s.parseXml2JsFromString)(p);(null==(b=a.Response)?void 0:b.Issuer)&&this.verifyIssuer(a.Response)}}if(!0===this.options.wantAuthnResponseSigned&&!1===o)throw Error("Invalid document signature");let v=s.xpath.selectElements(h,"/*[local-name()='Response']/*[local-name()='Assertion']"),x=s.xpath.selectElements(h,"/*[local-name()='Response']/*[local-name()='EncryptedAssertion']");if(v.length+x.length>1)throw Error("Invalid signature: multiple assertions");if(1==v.length&&(this.options.wantAssertionsSigned||!o)&&!(t=(0,s.getVerifiedXml)(g,v[0],n)))throw Error("Invalid signature");if(1==x.length){(0,r.assertRequired)(this.options.decryptionPvk,"No decryption key for encrypted SAML response");let a=x[0].toString(),b=await (0,s.decryptXml)(a,this.options.decryptionPvk);(0,s.warnIfDecryptionWillFailInNextMajor)(x[0]);let c=await (0,s.parseDomFromString)(b),d=s.xpath.selectElements(c,"/*[local-name()='Assertion']");if(1!=d.length)throw Error("Invalid EncryptedAssertion content");if((this.options.wantAssertionsSigned||!o)&&(u=(0,s.getVerifiedXml)(b,d[0],n),null==u))throw Error("Invalid signature from encrypted assertion")}let A=p||t||u;if(A&&v.length+x.length==1){let a=await this.getSignedAssertion(A);if(null==a)throw Error("Cannot obtain assertion from signed data");l=a,this.options.rejectReplayedAssertions&&await E(a,this.options);let b=await this.processValidlySignedAssertionAsync(a,g,p?j:i,null!=p);if(this.mustValidateInResponseTo(!!i)){let b=p?j:(await C(a)).find(a=>a===i);await w(this.cacheProvider,null!=b?b:null)}return p&&B("callbackUrl",this.options.callbackUrl,"Response",k),b}let D=await (0,s.parseXml2JsFromString)(null!=p?p:g),F=D.Response;if(F){if(!("Assertion"in F)){let a=F.Status;if(a){let b=a[0].StatusCode;if(b&&(null==(c=b[0].$)?void 0:c.Value)==="urn:oasis:names:tc:SAML:2.0:status:Responder"){let a=b[0].StatusCode;if(a&&(null==(d=a[0].$)?void 0:d.Value)==="urn:oasis:names:tc:SAML:2.0:status:NoPassive"){if(!o)throw Error("Invalid signature: NoPassive");return this.mustValidateInResponseTo(!!j)&&await w(this.cacheProvider,j),B("callbackUrl",this.options.callbackUrl,"Response",k),{profile:null,loggedOut:!1}}}if(b&&(null==(e=b[0].$)?void 0:e.Value)){let c=b[0].$.Value.match(/[^:]*$/);if(c&&"Success"!=c[0]){let d="unspecified";if(a[0].StatusMessage)d=a[0].StatusMessage[0]._||d;else if(b[0].StatusCode){let a=null==(f=b[0].StatusCode[0].$)?void 0:f.Value.match(/[^:]*$/);d=a?a[0]:d}let e=(0,s.buildXml2JsObject)("Status",a[0]);throw new q.SamlStatusError("SAML provider returned "+c+" error: "+d,e)}}}}throw Error("Missing SAML assertion")}if(!o)throw Error("Invalid signature: No response found");if(D.LogoutResponse)return await this.verifyLogoutResponse(D),this.mustValidateInResponseTo(!!j)&&await w(this.cacheProvider,j),B("logoutCallbackUrl",this.options.logoutCallbackUrl,"LogoutResponse",k),{profile:null,loggedOut:!0};throw Error("Unknown SAML response message")}catch(a){if(t.enabled&&t("validatePostResponse resulted in an error: %s",a),!(a instanceof D)&&this.mustValidateInResponseTo(!!i)){let a=new Set(null==l?[]:await C(l));for(let b of(null!=j&&a.add(j),a))await this.cacheProvider.removeAsync(b)}throw a}}async validateInResponseTo(a){if(this.mustValidateInResponseTo(!!a))if(a){if(!await this.cacheProvider.getAsync(a))throw Error("InResponseTo is not valid");return}else throw Error("InResponseTo is missing from response")}async validateRedirectAsync(...a){let[b,c]=a,{container:d,originalQuery:e,parameters:f,legacy:g}=function(a,b){if("string"==typeof a){let b=L(a),{samlMessageType:c,samlMessage:d,relayState:e,signed:f}=b;if(!f)throw Error("The query string has no Signature parameter");let g={[c]:d,SigAlg:f.sigAlg,Signature:f.signature};return void 0!==e&&(g.RelayState=e),{container:g,originalQuery:a,parameters:b,legacy:!1}}if("string"!=typeof b)throw TypeError("originalQuery is required");return t("validateRedirectAsync was called with a parsed query object. That argument is removed in the next major version; call validateRedirectAsync(originalQuery) and use the relayState it returns in place of your own parse."),{container:a,originalQuery:b,parameters:function(a,b){let c=K(b),d=c.map(M).filter(a=>void 0!==a);if(!(null!=a.Signature||c.includes("Signature")||d.includes("Signature"))){let b=a.SAMLRequest?"SAMLRequest":"SAMLResponse";return{samlMessageType:b,samlMessage:a[b]}}if(d.length>0)throw Error(`The query string has a ${d[0]} parameter in bracket notation`);let e=L(b);if(null!=a.RelayState&&a.RelayState!==e.relayState)throw Error("The parsed query has a RelayState that the query string does not");return e}(a,b),legacy:!0}}(b,c),{samlMessageType:h,samlMessage:i,signed:j}=f,k=Buffer.from(i,"base64"),l=await F(k),m=await (0,s.parseDomFromString)(l.toString()),n=await (0,s.parseXml2JsFromString)(l);if(await this.hasValidSignatureForRedirect(d,e),"SAMLRequest"===h)this.verifyLogoutRequest(n);else{let a=j?n.LogoutResponse.$.InResponseTo:null,b=null!=a&&this.mustValidateInResponseTo(!0);try{await this.verifyLogoutResponse(n)}catch(c){throw b&&await this.cacheProvider.removeAsync(a),c}b&&await w(this.cacheProvider,a)}let o=await this.processValidlySignedSamlLogoutAsync(n,m);return j&&B("logoutCallbackUrl",this.options.logoutCallbackUrl,"SAMLRequest"===h?"LogoutRequest":"LogoutResponse",y(m,"Destination")),g?o:{...o,relayState:f.relayState}}async hasValidSignatureForRedirect(a,b){if(!(null!=a.Signature||K(b).includes("Signature")))return t("Processing a %s over the Redirect binding with no Signature parameter. Its contents are unverified. Configure the identity provider to sign logout messages; a future major version will reject unsigned ones.",a.SAMLRequest?"SAMLRequest":"SAMLResponse"),!0;{let{signed:a}=L(b);if(!a)throw Error("The query string has no Signature parameter");if(!(await this.getKeyInfosAsPem()).some(b=>this.validateSignatureForRedirect(a.octets,a.signature,a.sigAlg,b)))throw Error("Invalid query signature")}}validateSignatureForRedirect(a,b,c,e){let f,g=i.findSignatureAlgorithm(c);if(g&&"string"==typeof a)return g.verifySignature(a,e,b);let h=d.getHashes().findIndex(function(a){let b=c.toLowerCase().replace(/.*#(.*)$/,"$1");return a.toLowerCase()===b});if(h>-1)f=d.getHashes()[h];else throw Error(c+" is not supported");let j=d.createVerify(f);j.update(a);let k=j.verify(e,b,"base64");return k&&!g&&"http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"!==c&&t("A Redirect-binding signature was verified under the `SigAlg` %s, which the next major version rejects. Configure the identity provider to sign with rsa-sha256, rsa-sha384 or rsa-sha512, and to name it by its XML Signature identifier, such as http://www.w3.org/2001/04/xmldsig-more#rsa-sha256.",c),k}verifyLogoutRequest(a){this.verifyIssuer(a.LogoutRequest);let b=new Date().getTime(),c=a.LogoutRequest.$,d=this.checkTimestampsValidityError(b,c.NotBefore,c.NotOnOrAfter);if(d)throw d}async verifyLogoutResponse(a){var b,c,d,e;let f=null==(d=null==(c=null==(b=a.LogoutResponse.Status)?void 0:b[0].StatusCode)?void 0:c[0].$)?void 0:d.Value;if("urn:oasis:names:tc:SAML:2.0:status:Success"!==f)throw Error("Bad status code: "+f);return this.verifyIssuer(a.LogoutResponse),this.validateInResponseTo(null!=(e=a.LogoutResponse.$.InResponseTo)?e:null)}verifyIssuer(a){var b;if(z((null!=(b=a.Issuer)?b:[]).map(a=>a._)),null!=this.options.idpIssuer){let b=a.Issuer;if(b){if(b[0]._!==this.options.idpIssuer)throw Error("Unknown SAML issuer. Expected: "+this.options.idpIssuer+" Received: "+b[0]._)}else throw Error("Missing SAML issuer")}}async processValidlySignedAssertionAsync(a,b,c,d=!1){var e,f,g,h;let i=new Date().getTime(),j={},k=[],l=[],m=await (0,s.parseXml2JsFromString)(a),n=m.Assertion;this.verifyIssuer(n);b:{let a,b=n.Issuer;b&&b[0]._&&(j.issuer=b[0]._);let f=n.AuthnStatement;f&&f[0].$&&f[0].$.SessionIndex&&(j.sessionIndex=f[0].$.SessionIndex);let g=n.Subject,h=null,m=null;if(g){let b=g[0].NameID;b&&b[0]._&&(j.nameID=b[0]._,b[0].$&&b[0].$.Format&&(j.nameIDFormat=b[0].$.Format,j.nameQualifier=b[0].$.NameQualifier,j.spNameQualifier=b[0].$.SPNameQualifier)),m=g[0].SubjectConfirmation;let c=a=>{var b;let c=null==(b=a.SubjectConfirmationData)?void 0:b[0];if(null==c?void 0:c.$){let a=c.$.NotBefore,b=c.$.NotOnOrAfter,d=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,b,n.$.IssueInstant);if(null===this.checkTimestampsValidityError(i,a,b,d))return!0}return!1};d||(a=null==m?void 0:m.find(a=>{var b,d;return(null==(d=null==(b=a.SubjectConfirmationData)?void 0:b[0].$)?void 0:d.InResponseTo)!=null&&c(a)})),null!=a||(a=null==m?void 0:m.find(c)),k=(null!=m?m:[]).map(a=>{var b,c;return null!=(c=null==(b=a.$)?void 0:b.Method)?c:"a SubjectConfirmation with no Method"}),l=(null!=m?m:[]).filter(a=>{var b;return(null==(b=a.$)?void 0:b.Method)==="urn:oasis:names:tc:SAML:2.0:cm:bearer"&&(a=>{try{return c(a)}catch(a){return!1}})(a)}).map(a=>a.SubjectConfirmationData[0].$.Recipient),null!=a&&(h=a.SubjectConfirmationData[0])}if(null!=m&&null==a)throw Error("No valid subject confirmation found among those available in the SAML assertion");let o=d?c:null==(e=null==h?void 0:h.$)?void 0:e.InResponseTo;if(null!=o&&(j.inResponseTo=o),this.mustValidateInResponseTo(!!c))if(a){if(null==h?void 0:h.$){let a=h.$.InResponseTo;if(c&&a&&a!=c)throw Error("InResponseTo does not match subjectInResponseTo");if(a){let b=!1,c=await this.cacheProvider.getAsync(a);if(c&&i<new Date(c).getTime()+this.options.requestIdExpirationPeriodMs&&(b=!0),!b)throw Error("SubjectInResponseTo is not valid");break b}}x(this.options.validateInResponseTo,d)}else x(this.options.validateInResponseTo,d);break b}let o=n.Conditions?n.Conditions[0]:null;if(n.Conditions&&n.Conditions.length>1)throw Error("Unable to process multiple conditions in SAML assertion");if(o&&o.$){let a=this.calcMaxAgeAssertionTime(this.options.maxAssertionAgeMs,o.$.NotOnOrAfter,n.$.IssueInstant),b=this.checkTimestampsValidityError(i,o.$.NotBefore,o.$.NotOnOrAfter,a);if(b)throw b}if(!1!==this.options.audience){let a=this.checkAudienceValidityError(this.options.audience,o.AudienceRestriction);if(a)throw a}let p=n.AttributeStatement;if(p){let a=[].concat(...p.filter(a=>Array.isArray(a.Attribute)).map(a=>a.Attribute.map(b=>({statement:a,attribute:b})))),b=a=>Object.keys(a).some(a=>"_"!==a&&"$"!==a)?a:a._;if(a.length>0){let c={};a.forEach(({statement:a,attribute:d})=>{var e;if(!Object.prototype.hasOwnProperty.call(d,"AttributeValue")){(null==(e=d.$)?void 0:e.Name)!=null&&t('The SAML attribute "%s" has no AttributeValue, so it is left out of the profile and cannot be told apart from an attribute the identity provider did not send. The next major version keeps it with a null value. Code that tests the attribute with `== null`, which is true of both `undefined` and null, works with both versions.',d.$.Name);return}let f=d.$.Name,g=1===d.AttributeValue.length?b(d.AttributeValue[0]):d.AttributeValue.map(b),h=d.AttributeValue.filter(a=>void 0===b(a)),i=h.filter(b=>{var c,e;let f,g;return c=[n,a,d],f=null!=(e=b.$)?e:{},g=Object.assign({},...c.map(a=>a.$),f),Object.keys(f).some(a=>{let[b,c]=a.split(":");return"nil"===c&&"http://www.w3.org/2001/XMLSchema-instance"===g[`xmlns:${b}`]&&/^\s*(true|1)\s*$/.test(f[a])})});i.length>0&&t('The SAML attribute "%s" has an AttributeValue marked xsi:nil, which reaches the profile as `undefined`. The next major version represents it as null. Code that tests each value with `== null`, which is true of both `undefined` and null, works with both versions.',f),h.length>i.length&&t('The SAML attribute "%s" has an empty AttributeValue, which reaches the profile as `undefined`. The next major version represents it as an empty string. Code that reads each value with `?? ""`, which turns `undefined` into an empty string, works with both versions.',f),c[f]=g,Object.prototype.hasOwnProperty.call(j,f)||(j[f]=g)}),j.attributes=c}}return!j.mail&&j["urn:oid:0.9.2342.19200300.100.1.3"]&&(j.mail=j["urn:oid:0.9.2342.19200300.100.1.3"]),!j.email&&j.mail&&(j.email=j.mail),j.getAssertionXml=()=>a.toString(),j.getAssertion=()=>m,j.getSamlResponseXml=()=>(t("Profile.getSamlResponseXml() returns the SAML response as received, which may include material no signature covered, and does not say which part was verified. Don't treat what it returns as authenticated; use getAssertionXml() or getAssertion() for the verified assertion. This accessor is removed in the next major version."),b),f=this.options.callbackUrl,g=k,0===(h=l).length?t('The assertion has no bearer SubjectConfirmation that is valid now; received: %s. The next major version accepts an assertion only through a bearer SubjectConfirmation whose Recipient is `callbackUrl` ("%s"), and rejects this one. Configure the identity provider to send one that is valid when the assertion arrives.',g.length>0?g.join(", "):"none",f):h.some(a=>null!=a&&A(a,f))||t('No bearer SubjectConfirmationData in the assertion has the Recipient `callbackUrl` ("%s"); received: %s. The next major version rejects the assertion. Configure the identity provider to send `callbackUrl` as the Recipient, or, if a Recipient received is the URL of this endpoint, set `callbackUrl` to it.',f,h.map(a=>null!=a?a:"no Recipient").join(", ")),{profile:j,loggedOut:!1}}checkTimestampsValidityError(a,b,c,d){if(-1==this.options.acceptedClockSkewMs)return null;if(b){let c=(0,l.dateStringToTimestamp)(b,"NotBefore");if(a+this.options.acceptedClockSkewMs<c)return Error("SAML assertion not yet valid")}if(c){let b=(0,l.dateStringToTimestamp)(c,"NotOnOrAfter");if(a-this.options.acceptedClockSkewMs>=b)return Error("SAML assertion expired: clocks skewed too much")}return null!=d&&a-this.options.acceptedClockSkewMs>=d?Error("SAML assertion expired: assertion too old"):null}checkAudienceValidityError(a,b){if(!b||b.length<1)return Error("SAML assertion has no AudienceRestriction");let c=b.map(b=>b.Audience&&b.Audience[0]&&b.Audience[0]._?b.Audience.every(b=>b._!==a)?Error("SAML assertion audience mismatch. Expected: "+a+" Received: "+b.Audience.map(a=>a._).join(", ")):null:Error("SAML assertion AudienceRestriction has no Audience value")).filter(a=>null!==a);return c.length>0?c[0]:null}async validatePostRequestAsync(a,b){void 0!==b&&t("validatePostRequestAsync was called with injected dependencies. They are ignored — signature verification cannot be substituted — and the argument is removed in the next major version; call validatePostRequestAsync(container) instead.");let c=Buffer.from(a.SAMLRequest,"base64").toString("utf8"),d=await (0,s.parseDomFromString)(c),e=await this.getKeyInfosAsPem(),f=(0,s.getVerifiedXml)(c,d.documentElement,e);if(null==f)throw Error("Invalid signature on documentElement");let g=await (0,s.parseDomFromString)(f),h=await (0,s.parseXml2JsFromString)(f),i=await this.processValidlySignedPostRequestAsync(h,g);return B("logoutCallbackUrl",this.options.logoutCallbackUrl,"LogoutRequest",y(g,"Destination")),i}async processValidlySignedPostRequestAsync(a,b){var c;let d=a.LogoutRequest;if(this.verifyLogoutRequest(a),d){let a={};if(d.$.ID)a.ID=d.$.ID;else throw Error("Missing SAML LogoutRequest ID");let e=d.Issuer;if(e&&e[0]._)a.issuer=e[0]._;else throw Error("Missing SAML issuer");let f=await (0,s.getNameIdAsync)(b,null!=(c=this.options.decryptionPvk)?c:null);if(f.value)a.nameID=f.value,f.format&&(a.nameIDFormat=f.format);else throw Error("Missing SAML NameID");let g=d.SessionIndex;return g&&(a.sessionIndex=g[0]._),{profile:a,loggedOut:!0}}throw Error("Unknown SAML request message")}async processValidlySignedSamlLogoutAsync(a,b){let c=a.LogoutResponse,d=a.LogoutRequest;if(c)return{profile:null,loggedOut:!0};if(d)return await this.processValidlySignedPostRequestAsync(a,b);throw Error("Unknown SAML response message")}generateServiceProviderMetadata(a,b){return(0,o.buildServiceProviderMetadata)({...this.options,decryptionCert:a,publicCerts:b})}calcMaxAgeAssertionTime(a,b,c){let d=(0,l.dateStringToTimestamp)(b,"NotOnOrAfter"),e=(0,l.dateStringToTimestamp)(c,"IssueInstant");if(0===a)return d;let f=e+a;return f<d?f:d}mustValidateInResponseTo(a){return this.options.validateInResponseTo===q.ValidateInResponseTo.always||this.options.validateInResponseTo===q.ValidateInResponseTo.ifPresent&&a}}b.SAML=O},48813:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d){if(super(a),null==c)throw Error("Missing DTD notation name. "+this.debugInfo(c));if(!d.pubID&&!d.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=b.NotationDeclaration,null!=d.pubID&&(this.pubID=this.stringify.dtdPubID(d.pubID)),null!=d.sysID&&(this.sysID=this.stringify.dtdSysID(d.sysID))}toString(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a}).call(this)}).call(this)},50962:function(a,b,c){(function(){var b,d,e,f,g,h,i;({isPlainObject:i}=c(43594)),e=c(88909),d=c(25141),f=c(73067),b=c(26468),h=c(31753),g=c(44981),a.exports=(function(){class a extends f{constructor(a){super(null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}end(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))}toString(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))}createElement(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(a){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(a){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(a.prototype,"implementation",{value:new e}),Object.defineProperty(a.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(a.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(a.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(a.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(a.prototype,"origin",{get:function(){return null}}),Object.defineProperty(a.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(a.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(a.prototype,"contentType",{get:function(){return null}}),a}).call(this)}).call(this)},55443:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,f){super(a),e(c)&&({version:c,encoding:d,standalone:f}=c),c||(c="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(c),null!=d&&(this.encoding=this.stringify.xmlEncoding(d)),null!=f&&(this.standalone=this.stringify.xmlStandalone(f))}toString(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))}}}).call(this)},56068:function(a,b){(function(){b.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},58029:(a,b)=>{!function(a){"use strict";var b,c,d,e,f=function(a,b){for(var c=0;c<b.length;c+=1)a(b[c],c,b)},g=function(a,b,c){var d=b;return f(function(b,c){d=a(d,b,c)},c),d},h=function(a,b){var c=Array(b.length);return f(function(b,d){c[d]=a(b)},b),c},i=function(a,b){var c=[];return f(function(b,d){a(b,d)&&c.push(b)},b),c},j=function(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1};function k(a){return a.toString()}var l=function(a,b){return b.join(a)},m=function(a,b,c){return a+c+b},n=Array.prototype.concat;function o(a,b){for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(c[f]=e[f])}return c}function p(){this.init()}function q(a){this.expression=a}function r(a,b,c){b in a||(a[b]=c)}function s(){}function t(a){arguments.length>0&&this.init(a)}function u(a){arguments.length>0&&this.init(a)}function v(a,b){arguments.length>0&&this.init(a,b)}function w(a,b){arguments.length>0&&this.init(a,b)}function x(a,b){arguments.length>0&&this.init(a,b)}function y(a,b){arguments.length>0&&this.init(a,b)}function z(a,b){arguments.length>0&&this.init(a,b)}function A(a,b){arguments.length>0&&this.init(a,b)}function B(a,b){arguments.length>0&&this.init(a,b)}function C(a,b){arguments.length>0&&this.init(a,b)}function D(a,b){arguments.length>0&&this.init(a,b)}function E(a,b){arguments.length>0&&this.init(a,b)}function F(a,b){arguments.length>0&&this.init(a,b)}function G(a,b){arguments.length>0&&this.init(a,b)}function H(a,b){arguments.length>0&&this.init(a,b)}function I(a,b){arguments.length>0&&this.init(a,b)}function J(a,b){arguments.length>0&&this.init(a,b)}function K(a,b,c){arguments.length>0&&this.init(a,b,c)}function L(a,b,c){return K.applyPredicates(a.predicates,b,K.applyStep(a,b,c))}function M(a,b,c){return function(a){for(var b=[],c=0;c<a.length;c+=32767){var d=a.slice(c,c+32767);b=n.apply(b,d)}return b}(h(L.bind(null,c,a),b))}function N(a,b){arguments.length>0&&this.init(a,b)}function O(a,b,c){arguments.length>0&&this.init(a,b,c)}function P(a,b){arguments.length>0&&this.init(a,b)}function Q(a){arguments.length>0&&this.init(a)}function R(a,b){arguments.length>0&&this.init(a,b)}p.prototype={},p.prototype.constructor=p,p.superclass=Object.prototype,p.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(a){return new w(a[0],a[2])},this.reduceActions[5]=function(a){return new x(a[0],a[2])},this.reduceActions[7]=function(a){return new y(a[0],a[2])},this.reduceActions[8]=function(a){return new z(a[0],a[2])},this.reduceActions[10]=function(a){return new A(a[0],a[2])},this.reduceActions[11]=function(a){return new B(a[0],a[2])},this.reduceActions[12]=function(a){return new C(a[0],a[2])},this.reduceActions[13]=function(a){return new D(a[0],a[2])},this.reduceActions[15]=function(a){return new E(a[0],a[2])},this.reduceActions[16]=function(a){return new F(a[0],a[2])},this.reduceActions[18]=function(a){return new G(a[0],a[2])},this.reduceActions[19]=function(a){return new H(a[0],a[2])},this.reduceActions[20]=function(a){return new I(a[0],a[2])},this.reduceActions[22]=function(a){return new u(a[1])},this.reduceActions[24]=function(a){return new J(a[0],a[2])},this.reduceActions[25]=function(a){return new K(void 0,void 0,a[0])},this.reduceActions[27]=function(a){return a[0].locationPath=a[2],a[0]},this.reduceActions[28]=function(a){return a[0].locationPath=a[2],a[0].locationPath.steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0]},this.reduceActions[29]=function(a){return new K(a[0],[],void 0)},this.reduceActions[30]=function(a){return ac.instance_of(a[0],K)?(void 0==a[0].filterPredicates&&(a[0].filterPredicates=[]),a[0].filterPredicates.push(a[1]),a[0]):new K(a[0],[a[1]],void 0)},this.reduceActions[32]=function(a){return a[1]},this.reduceActions[33]=function(a){return new T(a[0])},this.reduceActions[34]=function(a){return new U(a[0])},this.reduceActions[36]=function(a){return new R(a[0],[])},this.reduceActions[37]=function(a){return new R(a[0],a[2])},this.reduceActions[38]=function(a){return[a[0]]},this.reduceActions[39]=function(a){return a[2].unshift(a[0]),a[2]},this.reduceActions[43]=function(a){return new N(!0,[])},this.reduceActions[44]=function(a){return a[1].absolute=!0,a[1]},this.reduceActions[46]=function(a){return new N(!1,[a[0]])},this.reduceActions[47]=function(a){return a[0].steps.push(a[2]),a[0]},this.reduceActions[49]=function(a){return new O(a[0],a[1],[])},this.reduceActions[50]=function(a){return new O(O.CHILD,a[0],[])},this.reduceActions[51]=function(a){return new O(a[0],a[1],a[2])},this.reduceActions[52]=function(a){return new O(O.CHILD,a[0],a[1])},this.reduceActions[54]=function(a){return[a[0]]},this.reduceActions[55]=function(a){return a[1].unshift(a[0]),a[1]},this.reduceActions[56]=function(a){if("ancestor"==a[0])return O.ANCESTOR;if("ancestor-or-self"==a[0])return O.ANCESTORORSELF;if("attribute"==a[0])return O.ATTRIBUTE;if("child"==a[0])return O.CHILD;if("descendant"==a[0])return O.DESCENDANT;else if("descendant-or-self"==a[0])return O.DESCENDANTORSELF;else if("following"==a[0])return O.FOLLOWING;else if("following-sibling"==a[0])return O.FOLLOWINGSIBLING;else if("namespace"==a[0])return O.NAMESPACE;else if("parent"==a[0])return O.PARENT;else if("preceding"==a[0])return O.PRECEDING;else if("preceding-sibling"==a[0])return O.PRECEDINGSIBLING;else if("self"==a[0])return O.SELF;return -1},this.reduceActions[57]=function(a){return O.ATTRIBUTE},this.reduceActions[59]=function(a){return"comment"==a[0]?P.commentTest:"text"==a[0]?P.textTest:"processing-instruction"==a[0]?P.anyPiTest:"node"==a[0]?P.nodeTest:new P(-1,void 0)},this.reduceActions[60]=function(a){return new P.PITest(a[2])},this.reduceActions[61]=function(a){return a[1]},this.reduceActions[63]=function(a){return a[1].absolute=!0,a[1].steps.unshift(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[1]},this.reduceActions[64]=function(a){return a[0].steps.push(new O(O.DESCENDANTORSELF,P.nodeTest,[])),a[0].steps.push(a[2]),a[0]},this.reduceActions[65]=function(a){return new O(O.SELF,P.nodeTest,[])},this.reduceActions[66]=function(a){return new O(O.PARENT,P.nodeTest,[])},this.reduceActions[67]=function(a){return new Q(a[1])},this.reduceActions[68]=function(a){return P.nameTestAny},this.reduceActions[69]=function(a){return new P.NameTestPrefixAny(a[0].split(":")[0])},this.reduceActions[70]=function(a){return new P.NameTestQName(a[0])}},p.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],p.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," \x87 ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," \x88 "," F\x89 ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," \x8a ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],p.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","\x80456789:;<=>?@ AB CDEFGH IJ\x81"," \x82 EFGH IJ "," \x83 EFGH IJ "," "," \x84 GH IJ "," \x85 GH IJ "," i \x86 "," i \x87 "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ AB\x8cqCDEFGH IJ "," "," "],p.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],p.DOUBLEDOT=2,p.DOUBLECOLON=3,p.DOUBLESLASH=4,p.NOTEQUAL=5,p.LESSTHANOREQUAL=6,p.GREATERTHANOREQUAL=7,p.AND=8,p.OR=9,p.MOD=10,p.DIV=11,p.MULTIPLYOPERATOR=12,p.FUNCTIONNAME=13,p.AXISNAME=14,p.LITERAL=15,p.NUMBER=16,p.ASTERISKNAMETEST=17,p.QNAME=18,p.NCNAMECOLONASTERISK=19,p.NODETYPE=20,p.PROCESSINGINSTRUCTIONWITHLITERAL=21,p.EQUALS=22,p.LESSTHAN=23,p.GREATERTHAN=24,p.PLUS=25,p.MINUS=26,p.BAR=27,p.SLASH=28,p.LEFTPARENTHESIS=29,p.RIGHTPARENTHESIS=30,p.COMMA=31,p.AT=32,p.LEFTBRACKET=33,p.RIGHTBRACKET=34,p.DOT=35,p.DOLLAR=36,p.prototype.tokenize=function(a){for(var b=[],c=[],d=a+"\0",e=0,f=d.charAt(e++);;){for(;" "==f||" "==f||"\r"==f||"\n"==f;)f=d.charAt(e++);if("\0"==f||e>=d.length)break;if("("==f){b.push(p.LEFTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if(")"==f){b.push(p.RIGHTPARENTHESIS),c.push(f),f=d.charAt(e++);continue}if("["==f){b.push(p.LEFTBRACKET),c.push(f),f=d.charAt(e++);continue}if("]"==f){b.push(p.RIGHTBRACKET),c.push(f),f=d.charAt(e++);continue}if("@"==f){b.push(p.AT),c.push(f),f=d.charAt(e++);continue}if(","==f){b.push(p.COMMA),c.push(f),f=d.charAt(e++);continue}if("|"==f){b.push(p.BAR),c.push(f),f=d.charAt(e++);continue}if("+"==f){b.push(p.PLUS),c.push(f),f=d.charAt(e++);continue}if("-"==f){b.push(p.MINUS),c.push(f),f=d.charAt(e++);continue}if("="==f){b.push(p.EQUALS),c.push(f),f=d.charAt(e++);continue}if("$"==f){b.push(p.DOLLAR),c.push(f),f=d.charAt(e++);continue}if("."==f){if("."==(f=d.charAt(e++))){b.push(p.DOUBLEDOT),c.push(".."),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g="."+f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}b.push(p.DOT),c.push(".");continue}if("'"==f||'"'==f){for(var h=f,i="";e<d.length&&(f=d.charAt(e))!==h;)i+=f,e+=1;if(f!==h)throw ad.fromMessage("Unterminated string literal: "+h+i);e+=1,b.push(p.LITERAL),c.push(i),f=d.charAt(e++);continue}if(f>="0"&&f<="9"){var g=f;for(f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);if("."==f&&d.charAt(e)>="0"&&"9">=d.charAt(e))for(g+=f,g+=d.charAt(e++),f=d.charAt(e++);f>="0"&&f<="9";)g+=f,f=d.charAt(e++);b.push(p.NUMBER),c.push(g);continue}if("*"==f){if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){b.push(p.MULTIPLYOPERATOR),c.push(f),f=d.charAt(e++);continue}}b.push(p.ASTERISKNAMETEST),c.push(f),f=d.charAt(e++);continue}if(":"==f&&":"==d.charAt(e)){b.push(p.DOUBLECOLON),c.push("::"),e++,f=d.charAt(e++);continue}if("/"==f){if("/"==(f=d.charAt(e++))){b.push(p.DOUBLESLASH),c.push("//"),f=d.charAt(e++);continue}b.push(p.SLASH),c.push("/");continue}if("!"==f&&"="==d.charAt(e)){b.push(p.NOTEQUAL),c.push("!="),e++,f=d.charAt(e++);continue}if("<"==f){if("="==d.charAt(e)){b.push(p.LESSTHANOREQUAL),c.push("<="),e++,f=d.charAt(e++);continue}b.push(p.LESSTHAN),c.push("<"),f=d.charAt(e++);continue}if(">"==f){if("="==d.charAt(e)){b.push(p.GREATERTHANOREQUAL),c.push(">="),e++,f=d.charAt(e++);continue}b.push(p.GREATERTHAN),c.push(">"),f=d.charAt(e++);continue}if("_"==f||ac.isLetter(f.charCodeAt(0))){var k=f;for(f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if(b.length>0){var j=b[b.length-1];if(j!=p.AT&&j!=p.DOUBLECOLON&&j!=p.LEFTPARENTHESIS&&j!=p.LEFTBRACKET&&j!=p.AND&&j!=p.OR&&j!=p.MOD&&j!=p.DIV&&j!=p.MULTIPLYOPERATOR&&j!=p.SLASH&&j!=p.DOUBLESLASH&&j!=p.BAR&&j!=p.PLUS&&j!=p.MINUS&&j!=p.EQUALS&&j!=p.NOTEQUAL&&j!=p.LESSTHAN&&j!=p.LESSTHANOREQUAL&&j!=p.GREATERTHAN&&j!=p.GREATERTHANOREQUAL){if("and"==k){b.push(p.AND),c.push(k);continue}if("or"==k){b.push(p.OR),c.push(k);continue}if("mod"==k){b.push(p.MOD),c.push(k);continue}if("div"==k){b.push(p.DIV),c.push(k);continue}}}if(":"==f){if("*"==d.charAt(e)){b.push(p.NCNAMECOLONASTERISK),c.push(k+":*"),e++,f=d.charAt(e++);continue}if("_"==d.charAt(e)||ac.isLetter(d.charCodeAt(e))){for(k+=":",f=d.charAt(e++);ac.isNCNameChar(f.charCodeAt(0));)k+=f,f=d.charAt(e++);if("("==f){b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}if(":"==d.charAt(e)){b.push(p.AXISNAME),c.push(k);continue}}if("("==f){if("comment"==k||"text"==k||"node"==k){b.push(p.NODETYPE),c.push(k);continue}if("processing-instruction"==k){")"==d.charAt(e)?b.push(p.NODETYPE):b.push(p.PROCESSINGINSTRUCTIONWITHLITERAL),c.push(k);continue}b.push(p.FUNCTIONNAME),c.push(k);continue}b.push(p.QNAME),c.push(k);continue}throw Error("Unexpected character "+f)}return b.push(1),c.push("[EOF]"),[b,c]},p.SHIFT="s",p.REDUCE="r",p.ACCEPT="a",p.prototype.parse=function(a){var b,c,d,e,f=this.tokenize(a);if(void 0!=f){b=f[0],c=f[1];var g=0,h=[],i=[],j=[];for(h.push(0),i.push(1),j.push("_S"),d=b[g],e=c[g++];;)switch(a=h[h.length-1],p.actionTable[a].charAt(d-1)){case p.SHIFT:i.push(-d),j.push(e),h.push(p.actionTableNumber[a].charCodeAt(d-1)-32),d=b[g],e=c[g++];break;case p.REDUCE:for(var k=p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][1],l=[],m=0;m<k;m++)i.pop(),l.unshift(j.pop()),h.pop();var n=h[h.length-1];i.push(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]),void 0==this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32]?j.push(l[0]):j.push(this.reduceActions[p.actionTableNumber[a].charCodeAt(d-1)-32](l)),h.push(p.gotoTable[n].charCodeAt(p.productions[p.actionTableNumber[a].charCodeAt(d-1)-32][0]-2)-33);break;case p.ACCEPT:return new q(j.pop());default:throw Error("XPath parse error")}}},q.prototype={},q.prototype.constructor=q,q.superclass=Object.prototype,q.prototype.toString=function(){return this.expression.toString()},q.prototype.evaluate=function(a){return a.contextNode=a.expressionContextNode,a.contextSize=1,a.contextPosition=1,a.isHtml&&(r(a,"caseInsensitive",!0),r(a,"allowAnyNamespaceForNoPrefix",!0)),r(a,"caseInsensitive",!1),this.expression.evaluate(a)},q.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",q.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",s.prototype={},s.prototype.constructor=s,s.superclass=Object.prototype,s.prototype.init=function(){},s.prototype.toString=function(){return"<Expression>"},s.prototype.evaluate=function(a){throw Error("Could not evaluate expression.")},t.prototype=new s,t.prototype.constructor=t,t.superclass=s.prototype,t.prototype.init=function(a){this.rhs=a},u.prototype=new t,u.prototype.constructor=u,u.superclass=t.prototype,u.prototype.init=function(a){u.superclass.init.call(this,a)},u.prototype.evaluate=function(a){return this.rhs.evaluate(a).number().negate()},u.prototype.toString=function(){return"-"+this.rhs.toString()},v.prototype=new s,v.prototype.constructor=v,v.superclass=s.prototype,v.prototype.init=function(a,b){this.lhs=a,this.rhs=b},w.prototype=new v,w.prototype.constructor=w,w.superclass=v.prototype,w.prototype.init=function(a,b){w.superclass.init.call(this,a,b)},w.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},w.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?b:this.rhs.evaluate(a).bool()},x.prototype=new v,x.prototype.constructor=x,x.superclass=v.prototype,x.prototype.init=function(a,b){x.superclass.init.call(this,a,b)},x.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},x.prototype.evaluate=function(a){var b=this.lhs.evaluate(a).bool();return b.booleanValue()?this.rhs.evaluate(a).bool():b},y.prototype=new v,y.prototype.constructor=y,y.superclass=v.prototype,y.prototype.init=function(a,b){y.superclass.init.call(this,a,b)},y.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},y.prototype.evaluate=function(a){return this.lhs.evaluate(a).equals(this.rhs.evaluate(a))},z.prototype=new v,z.prototype.constructor=z,z.superclass=v.prototype,z.prototype.init=function(a,b){z.superclass.init.call(this,a,b)},z.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},z.prototype.evaluate=function(a){return this.lhs.evaluate(a).notequal(this.rhs.evaluate(a))},A.prototype=new v,A.prototype.constructor=A,A.superclass=v.prototype,A.prototype.init=function(a,b){A.superclass.init.call(this,a,b)},A.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthan(this.rhs.evaluate(a))},A.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},B.prototype=new v,B.prototype.constructor=B,B.superclass=v.prototype,B.prototype.init=function(a,b){B.superclass.init.call(this,a,b)},B.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthan(this.rhs.evaluate(a))},B.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},C.prototype=new v,C.prototype.constructor=C,C.superclass=v.prototype,C.prototype.init=function(a,b){C.superclass.init.call(this,a,b)},C.prototype.evaluate=function(a){return this.lhs.evaluate(a).lessthanorequal(this.rhs.evaluate(a))},C.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},D.prototype=new v,D.prototype.constructor=D,D.superclass=v.prototype,D.prototype.init=function(a,b){D.superclass.init.call(this,a,b)},D.prototype.evaluate=function(a){return this.lhs.evaluate(a).greaterthanorequal(this.rhs.evaluate(a))},D.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},E.prototype=new v,E.prototype.constructor=E,E.superclass=v.prototype,E.prototype.init=function(a,b){E.superclass.init.call(this,a,b)},E.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().plus(this.rhs.evaluate(a).number())},E.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},F.prototype=new v,F.prototype.constructor=F,F.superclass=v.prototype,F.prototype.init=function(a,b){F.superclass.init.call(this,a,b)},F.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().minus(this.rhs.evaluate(a).number())},F.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},G.prototype=new v,G.prototype.constructor=G,G.superclass=v.prototype,G.prototype.init=function(a,b){G.superclass.init.call(this,a,b)},G.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().multiply(this.rhs.evaluate(a).number())},G.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},H.prototype=new v,H.prototype.constructor=H,H.superclass=v.prototype,H.prototype.init=function(a,b){H.superclass.init.call(this,a,b)},H.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().div(this.rhs.evaluate(a).number())},H.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},I.prototype=new v,I.prototype.constructor=I,I.superclass=v.prototype,I.prototype.init=function(a,b){I.superclass.init.call(this,a,b)},I.prototype.evaluate=function(a){return this.lhs.evaluate(a).number().mod(this.rhs.evaluate(a).number())},I.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},J.prototype=new v,J.prototype.constructor=J,J.superclass=v.prototype,J.prototype.init=function(a,b){J.superclass.init.call(this,a,b)},J.prototype.evaluate=function(a){return this.lhs.evaluate(a).nodeset().union(this.rhs.evaluate(a).nodeset())},J.prototype.toString=function(){return h(k,[this.lhs,this.rhs]).join(" | ")},K.prototype=new s,K.prototype.constructor=K,K.superclass=s.prototype,K.prototype.init=function(a,b,c){K.superclass.init.call(this),this.filter=a,this.filterPredicates=b,this.locationPath=c},K.applyPredicates=function(a,b,c){if(0===a.length)return c;var d=b.extend({});return g(function(a,b){return d.contextSize=a.length,i(function(a,c){return d.contextNode=a,d.contextPosition=c+1,K.predicateMatches(b,d)},a)},c,a)},K.getRoot=function(a,b){var c=b[0];if(9===c.nodeType)return c;if(a.virtualRoot)return a.virtualRoot;var d=c.ownerDocument;if(d)return d;for(var e=c;null!=e.parentNode;)e=e.parentNode;return e},K.applyStep=function(a,b,c){var d,e,f=[];switch(b.contextNode=c,a.axis){case O.ANCESTOR:if(b.contextNode===b.virtualRoot)break;for(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);)d=d.parentNode;break;case O.ANCESTORORSELF:for(var d=b.contextNode;null!=d&&(a.nodeTest.matches(d,b)&&f.push(d),d!==b.virtualRoot);d=2==d.nodeType?K.getOwnerElement(d):d.parentNode);break;case O.ATTRIBUTE:var g=b.contextNode.attributes;if(null!=g)for(var h=0;h<g.length;h++){var d=g.item(h);a.nodeTest.matches(d,b)&&f.push(d)}break;case O.CHILD:for(var d=b.contextNode.firstChild;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.DESCENDANT:for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.DESCENDANTORSELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode);for(var e=[b.contextNode.firstChild];e.length>0;)for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;break;case O.FOLLOWING:if(b.contextNode===b.virtualRoot)break;var e=[];null!=b.contextNode.firstChild?e.unshift(b.contextNode.firstChild):e.unshift(b.contextNode.nextSibling);for(var d=b.contextNode.parentNode;null!=d&&9!=d.nodeType&&d!==b.virtualRoot;d=d.parentNode)e.unshift(d.nextSibling);do for(var d=e.pop();null!=d;)a.nodeTest.matches(d,b)&&f.push(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling;while(e.length>0);break;case O.FOLLOWINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.nextSibling;null!=d;d=d.nextSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.NAMESPACE:var i={};if(1==b.contextNode.nodeType){i.xml=q.XML_NAMESPACE_URI,i.xmlns=q.XMLNS_NAMESPACE_URI;for(var d=b.contextNode;null!=d&&1==d.nodeType;d=d.parentNode)for(var h=0;h<d.attributes.length;h++){var j=d.attributes.item(h),k=String(j.name);if("xmlns"==k)void 0==i[""]&&(i[""]=j.value);else if(k.length>6&&"xmlns:"==k.substring(0,6)){var l=k.substring(6,k.length);void 0==i[l]&&(i[l]=j.value)}}for(var l in i){var m=new Y(l,i[l],b.contextNode);a.nodeTest.matches(m,b)&&f.push(m)}}break;case O.PARENT:d=null,b.contextNode!==b.virtualRoot&&(d=2==b.contextNode.nodeType?K.getOwnerElement(b.contextNode):b.contextNode.parentNode),null!=d&&a.nodeTest.matches(d,b)&&f.push(d);break;case O.PRECEDING:e=null!=b.virtualRoot?[b.virtualRoot]:[function(a){for(;a&&a.parentNode;)a=a.parentNode;return a}(b.contextNode)];a:for(;e.length>0;)for(var d=e.pop();null!=d;){if(d==b.contextNode)break a;a.nodeTest.matches(d,b)&&f.unshift(d),null!=d.firstChild?(e.push(d.nextSibling),d=d.firstChild):d=d.nextSibling}break;case O.PRECEDINGSIBLING:if(b.contextNode===b.virtualRoot)break;for(var d=b.contextNode.previousSibling;null!=d;d=d.previousSibling)a.nodeTest.matches(d,b)&&f.push(d);break;case O.SELF:a.nodeTest.matches(b.contextNode,b)&&f.push(b.contextNode)}return f},K.applySteps=function(a,b,c){return g(M.bind(null,b),c,a)},K.prototype.applyFilter=function(a,b){if(!this.filter)return{nodes:[a.contextNode]};var c=this.filter.evaluate(a);if(!ac.instance_of(c,X)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:c}}return{nodes:K.applyPredicates(this.filterPredicates||[],b,c.toUnsortedArray())}},K.applyLocationPath=function(a,b,c){if(!a)return c;var d=a.absolute?[K.getRoot(b,c)]:c;return K.applySteps(a.steps,b,d)},K.prototype.evaluate=function(a){var b=o(new Z,a),c=this.applyFilter(a,b);if("nonNodes"in c)return c.nonNodes;var d=new X;return d.addArray(K.applyLocationPath(this.locationPath,b,c.nodes)),d},K.predicateMatches=function(a,b){var c=a.evaluate(b);return ac.instance_of(c,U)?b.contextPosition===c.numberValue():c.booleanValue()},K.predicateString=function(a){return m("[","]",a.toString())},K.predicatesString=function(a){return l("",h(K.predicateString,a))},K.prototype.toString=function(){if(void 0!=this.filter){var a=k(this.filter);return ac.instance_of(this.filter,T)?m("'","'",a):void 0!=this.filterPredicates&&this.filterPredicates.length?m("(",")",a)+K.predicatesString(this.filterPredicates):void 0!=this.locationPath?a+(this.locationPath.absolute?"":"/")+k(this.locationPath):a}return k(this.locationPath)},K.getOwnerElement=function(a){if(a.ownerElement)return a.ownerElement;try{if(a.selectSingleNode)return a.selectSingleNode("..")}catch(a){}for(var b=(9==a.nodeType?a:a.ownerDocument).getElementsByTagName("*"),c=0;c<b.length;c++)for(var d=b.item(c),e=d.attributes,f=0;f<e.length;f++)if(e.item(f)===a)return d;return null},N.prototype={},N.prototype.constructor=N,N.superclass=Object.prototype,N.prototype.init=function(a,b){this.absolute=a,this.steps=b},N.prototype.toString=function(){return(this.absolute?"/":"")+h(k,this.steps).join("/")},O.prototype={},O.prototype.constructor=O,O.superclass=Object.prototype,O.prototype.init=function(a,b,c){this.axis=a,this.nodeTest=b,this.predicates=c},O.prototype.toString=function(){return O.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+K.predicatesString(this.predicates)},O.ANCESTOR=0,O.ANCESTORORSELF=1,O.ATTRIBUTE=2,O.CHILD=3,O.DESCENDANT=4,O.DESCENDANTORSELF=5,O.FOLLOWING=6,O.FOLLOWINGSIBLING=7,O.NAMESPACE=8,O.PARENT=9,O.PRECEDING=10,O.PRECEDINGSIBLING=11,O.SELF=12,O.STEPNAMES=g(function(a,b){return a[b[0]]=b[1],a},{},[[O.ANCESTOR,"ancestor"],[O.ANCESTORORSELF,"ancestor-or-self"],[O.ATTRIBUTE,"attribute"],[O.CHILD,"child"],[O.DESCENDANT,"descendant"],[O.DESCENDANTORSELF,"descendant-or-self"],[O.FOLLOWING,"following"],[O.FOLLOWINGSIBLING,"following-sibling"],[O.NAMESPACE,"namespace"],[O.PARENT,"parent"],[O.PRECEDING,"preceding"],[O.PRECEDINGSIBLING,"preceding-sibling"],[O.SELF,"self"]]),P.prototype={},P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(a,b){this.type=a,this.value=b},P.prototype.toString=function(){return"<unknown nodetest type>"},P.prototype.matches=function(a,b){console.warn("unknown node test type")},P.NAMETESTANY=0,P.NAMETESTPREFIXANY=1,P.NAMETESTQNAME=2,P.COMMENT=3,P.TEXT=4,P.PI=5,P.NODE=6,P.isNodeType=function(a){return function(b){return j(a,b.nodeType)}},P.makeNodeTestType=function(a,b,c){var d=c||function(){};return d.prototype=new P(a),d.prototype.constructor=d,o(d.prototype,b),d},P.makeNodeTypeTest=function(a,b,c){return new(P.makeNodeTestType(a,{matches:P.isNodeType(b),toString:function(){return c}}))},P.hasPrefix=function(a){return a.prefix||-1!==(a.nodeName||a.tagName).indexOf(":")},P.isElementOrAttribute=P.isNodeType([1,2]),P.nameSpaceMatches=function(a,b,c){var d=c.namespaceURI||"";if(!a)return!d||b.allowAnyNamespaceForNoPrefix&&!P.hasPrefix(c);var e=b.namespaceResolver.getNamespace(a,b.expressionContextNode);if(null==e)throw Error("Cannot resolve QName "+a);return e===d},P.localNameMatches=function(a,b,c){var d=c.localName||c.nodeName;return b.caseInsensitive?a.toLowerCase()===d.toLowerCase():a===d},P.NameTestPrefixAny=P.makeNodeTestType(P.NAMETESTPREFIXANY,{matches:function(a,b){return P.isElementOrAttribute(a)&&P.nameSpaceMatches(this.prefix,b,a)},toString:function(){return this.prefix+":*"}},function(a){this.prefix=a}),P.NameTestQName=P.makeNodeTestType(P.NAMETESTQNAME,{matches:function(a,b){return P.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(a)&&P.nameSpaceMatches(this.prefix,b,a)&&P.localNameMatches(this.localName,b,a)},toString:function(){return this.name}},function(a){var b=a.split(":");this.name=a,this.prefix=b.length>1?b[0]:null,this.localName=b[+(b.length>1)]}),P.PITest=P.makeNodeTestType(P.PI,{matches:function(a,b){return P.isNodeType([7])(a)&&(a.target||a.nodeName)===this.name},toString:function(){return m('processing-instruction("','")',this.name)}},function(a){this.name=a}),P.nameTestAny=P.makeNodeTypeTest(P.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),P.textTest=P.makeNodeTypeTest(P.TEXT,[3,4],"text()"),P.commentTest=P.makeNodeTypeTest(P.COMMENT,[8],"comment()"),P.nodeTest=P.makeNodeTypeTest(P.NODE,[1,2,3,4,7,8,9],"node()"),P.anyPiTest=P.makeNodeTypeTest(P.PI,[7],"processing-instruction()"),Q.prototype=new s,Q.prototype.constructor=Q,Q.superclass=s.prototype,Q.prototype.init=function(a){this.variable=a},Q.prototype.toString=function(){return"$"+this.variable},Q.prototype.evaluate=function(a){var b=ac.resolveQName(this.variable,a.namespaceResolver,a.contextNode,!1);if(null==b[0])throw Error("Cannot resolve QName "+fn);var c=a.variableResolver.getVariable(b[1],b[0]);if(!c)throw ad.fromMessage("Undeclared variable: "+this.toString());return c},R.prototype=new s,R.prototype.constructor=R,R.superclass=s.prototype,R.prototype.init=function(a,b){this.functionName=a,this.arguments=b},R.prototype.toString=function(){for(var a=this.functionName+"(",b=0;b<this.arguments.length;b++)b>0&&(a+=", "),a+=this.arguments[b].toString();return a+")"},R.prototype.evaluate=function(a){var b=_.getFunctionFromContext(this.functionName,a);if(!b)throw Error("Unknown function "+this.functionName);var c=[a].concat(this.arguments);return b.apply(a.functionResolver.thisArg,c)};var S={};function T(a){arguments.length>0&&this.init(a)}function U(a){arguments.length>0&&this.init(a)}function V(a){arguments.length>0&&this.init(a)}function W(a){this.init(a)}function X(){this.init()}function Y(a,b,c){this.isXPathNamespace=!0,this.ownerDocument=c.ownerDocument,this.nodeName="#namespace",this.prefix=a,this.localName=a,this.namespaceURI=b,this.nodeValue=b,this.ownerElement=c,this.nodeType=Y.XPATH_NAMESPACE_NODE}function Z(a,b,c){this.variableResolver=null!=a?a:new $,this.namespaceResolver=null!=b?b:new aa,this.functionResolver=null!=c?c:new _}function $(){}function _(a){this.thisArg=null!=a?a:ab,this.functions={},this.addStandardFunctions()}function aa(){}S.equals=function(a,b){return a.equals(b)},S.notequal=function(a,b){return a.notequal(b)},S.lessthan=function(a,b){return a.lessthan(b)},S.greaterthan=function(a,b){return a.greaterthan(b)},S.lessthanorequal=function(a,b){return a.lessthanorequal(b)},S.greaterthanorequal=function(a,b){return a.greaterthanorequal(b)},T.prototype=new s,T.prototype.constructor=T,T.superclass=s.prototype,T.prototype.init=function(a){this.str=String(a)},T.prototype.toString=function(){return this.str},T.prototype.evaluate=function(a){return this},T.prototype.string=function(){return this},T.prototype.number=function(){return new U(this.str)},T.prototype.bool=function(){return new V(this.str)},T.prototype.nodeset=function(){throw Error("Cannot convert string to nodeset")},T.prototype.stringValue=function(){return this.str},T.prototype.numberValue=function(){return this.number().numberValue()},T.prototype.booleanValue=function(){return this.bool().booleanValue()},T.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,U)?this.number().equals(a):ac.instance_of(a,X)?a.compareWithString(this,S.equals):new V(this.str==a.str)},T.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,U)?this.number().notequal(a):ac.instance_of(a,X)?a.compareWithString(this,S.notequal):new V(this.str!=a.str)},T.prototype.lessthan=function(a){return this.number().lessthan(a)},T.prototype.greaterthan=function(a){return this.number().greaterthan(a)},T.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},T.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},U.prototype=new s,U.prototype.constructor=U,U.superclass=s.prototype,U.prototype.init=function(a){this.num="string"==typeof a?this.parse(a):Number(a)},U.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,U.prototype.parse=function(a){return this.numberFormat.test(a)?parseFloat(a):0/0},U.prototype.toString=function(){var a=this.num.toString();if(-1!==a.indexOf("e-")){for(var b=a.split("e-"),c=b[0].replace(".",""),d=Number(b[1]),e=0;e<d-1;e+=1)c="0"+c;return"0."+c}if(-1!==a.indexOf("e")){for(var f=a.split("e"),g=f[0].replace(".",""),h=Number(f[1])+1-g.length,i=0;i<h;i+=1)g+="0";return g}return a},U.prototype.evaluate=function(a){return this},U.prototype.string=function(){return new T(this.toString())},U.prototype.number=function(){return this},U.prototype.bool=function(){return new V(this.num)},U.prototype.nodeset=function(){throw Error("Cannot convert number to nodeset")},U.prototype.stringValue=function(){return this.string().stringValue()},U.prototype.numberValue=function(){return this.num},U.prototype.booleanValue=function(){return this.bool().booleanValue()},U.prototype.negate=function(){return new U(-this.num)},U.prototype.equals=function(a){return ac.instance_of(a,V)?this.bool().equals(a):ac.instance_of(a,T)?this.equals(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.equals):new V(this.num==a.num)},U.prototype.notequal=function(a){return ac.instance_of(a,V)?this.bool().notequal(a):ac.instance_of(a,T)?this.notequal(a.number()):ac.instance_of(a,X)?a.compareWithNumber(this,S.notequal):new V(this.num!=a.num)},U.prototype.lessthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthan(a.number()):new V(this.num<a.num)},U.prototype.greaterthan=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthan):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthan(a.number()):new V(this.num>a.num)},U.prototype.lessthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.greaterthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.lessthanorequal(a.number()):new V(this.num<=a.num)},U.prototype.greaterthanorequal=function(a){return ac.instance_of(a,X)?a.compareWithNumber(this,S.lessthanorequal):ac.instance_of(a,V)||ac.instance_of(a,T)?this.greaterthanorequal(a.number()):new V(this.num>=a.num)},U.prototype.plus=function(a){return new U(this.num+a.num)},U.prototype.minus=function(a){return new U(this.num-a.num)},U.prototype.multiply=function(a){return new U(this.num*a.num)},U.prototype.div=function(a){return new U(this.num/a.num)},U.prototype.mod=function(a){return new U(this.num%a.num)},V.prototype=new s,V.prototype.constructor=V,V.superclass=s.prototype,V.prototype.init=function(a){this.b=!!a},V.prototype.toString=function(){return this.b.toString()},V.prototype.evaluate=function(a){return this},V.prototype.string=function(){return new T(this.b)},V.prototype.number=function(){return new U(this.b)},V.prototype.bool=function(){return this},V.prototype.nodeset=function(){throw Error("Cannot convert boolean to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.b},V.prototype.not=function(){return new V(!this.b)},V.prototype.equals=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.equals(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.equals):new V(this.b==a.b)},V.prototype.notequal=function(a){return ac.instance_of(a,T)||ac.instance_of(a,U)?this.notequal(a.bool()):ac.instance_of(a,X)?a.compareWithBoolean(this,S.notequal):new V(this.b!=a.b)},V.prototype.lessthan=function(a){return this.number().lessthan(a)},V.prototype.greaterthan=function(a){return this.number().greaterthan(a)},V.prototype.lessthanorequal=function(a){return this.number().lessthanorequal(a)},V.prototype.greaterthanorequal=function(a){return this.number().greaterthanorequal(a)},V.true_=new V(!0),V.false_=new V(!1),W.prototype={},W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.init=function(a){this.left=null,this.right=null,this.node=a,this.depth=1},W.prototype.balance=function(){var a=null==this.left?0:this.left.depth,b=null==this.right?0:this.right.depth;if(a>b+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(a+1<b){var c=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>c&&this.right.rotateLL(),this.rotateRR()}},W.prototype.rotateLL=function(){var a=this.node,b=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=b,this.right.node=a,this.right.updateInNewLocation(),this.updateInNewLocation()},W.prototype.rotateRR=function(){var a=this.node,b=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=b,this.left.node=a,this.left.updateInNewLocation(),this.updateInNewLocation()},W.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},W.prototype.getDepthFromChildren=function(){this.depth=+(null!=this.node),null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},W.prototype.add=function(a){if(a===this.node)return!1;var b=function(a,b){if(a===b)return 0;if(a.compareDocumentPosition){var c=a.compareDocumentPosition(b);return 1&c||10&c?1:20&c?-1:0}for(var d=0,e=0,f=a;null!=f;f=f.parentNode||f.ownerElement)d++;for(var g=b;null!=g;g=g.parentNode||g.ownerElement)e++;if(d>e){for(;d>e;)a=a.parentNode||a.ownerElement,d--;if(a===b)return 1}else if(e>d){for(;e>d;)b=b.parentNode||b.ownerElement,e--;if(a===b)return -1}for(var h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;h!==i;)a=h,b=i,h=a.parentNode||a.ownerElement,i=b.parentNode||b.ownerElement;var j=ac.isAttribute(a),k=ac.isAttribute(b);if(j&&!k)return -1;if(!j&&k)return 1;if(h)for(var l=j?h.attributes:h.childNodes,m=l.length,n=0;n<m;n+=1){var o=l[n];if(o===a)return -1;if(o===b)return 1}throw Error("Unexpected: could not determine node order")}(a,this.node),c=!1;return -1==b?null==this.left?(this.left=new W(a),c=!0):(c=this.left.add(a))&&this.balance():1==b&&(null==this.right?(this.right=new W(a),c=!0):(c=this.right.add(a))&&this.balance()),c&&this.getDepthFromChildren(),c},X.prototype=new s,X.prototype.constructor=X,X.superclass=s.prototype,X.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},X.prototype.toString=function(){var a=this.first();return null==a?"":this.stringForNode(a)},X.prototype.evaluate=function(a){return this},X.prototype.string=function(){return new T(this.toString())},X.prototype.stringValue=function(){return this.toString()},X.prototype.number=function(){return new U(this.string())},X.prototype.numberValue=function(){return Number(this.string())},X.prototype.bool=function(){return new V(this.booleanValue())},X.prototype.booleanValue=function(){return!!this.size},X.prototype.nodeset=function(){return this},X.prototype.stringForNode=function(a){return 9==a.nodeType||1==a.nodeType||11===a.nodeType?this.stringForContainerNode(a):2===a.nodeType?a.value||a.nodeValue:a.isNamespaceNode?a.namespace:a.nodeValue},X.prototype.stringForContainerNode=function(a){for(var b="",c=a.firstChild;null!=c;c=c.nextSibling){var d=c.nodeType;(1===d||3===d||4===d||9===d||11===d)&&(b+=this.stringForNode(c))}return b},X.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new W(this.nodes[0]);for(var a=1;a<this.nodes.length;a+=1)this.tree.add(this.nodes[a])}return this.tree},X.prototype.first=function(){var a=this.buildTree();if(null==a)return null;for(;null!=a.left;)a=a.left;return a.node},X.prototype.add=function(a){for(var b=0;b<this.nodes.length;b+=1)if(a===this.nodes[b])return;this.tree=null,this.nodes.push(a),this.size+=1},X.prototype.addArray=function(a){var b=this;f(function(a){b.add(a)},a)},X.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},X.prototype.toArrayRec=function(a,b){null!=a&&(this.toArrayRec(a.left,b),b.push(a.node),this.toArrayRec(a.right,b))},X.prototype.toUnsortedArray=function(){return this.nodes.slice()},X.prototype.compareWithString=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new T(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithNumber=function(a,b){for(var c=this.toUnsortedArray(),d=0;d<c.length;d++){var e=c[d],f=b(new U(this.stringForNode(e)),a);if(f.booleanValue())return f}return new V(!1)},X.prototype.compareWithBoolean=function(a,b){return b(this.bool(),a)},X.prototype.compareWithNodeSet=function(a,b){for(var c=this.toUnsortedArray(),d=function(a,c){return b(c,a)},e=0;e<c.length;e++){var f=new T(this.stringForNode(c[e])),g=a.compareWithString(f,d);if(g.booleanValue())return g}return new V(!1)},b=function(a,b){return ac.instance_of(b,T)?this.compareWithString(b,a):ac.instance_of(b,U)?this.compareWithNumber(b,a):ac.instance_of(b,V)?this.compareWithBoolean(b,a):this.compareWithNodeSet(b,a)},c=Array.prototype.slice,d=b.length,X.compareWith=e=function(){var a,f=c.call(arguments);return f.length<d?(a=e,function(){return a.apply(this,f.concat(c.call(arguments)))}):b.apply(this,c.apply(arguments,[0,d]))},X.prototype.equals=X.compareWith(S.equals),X.prototype.notequal=X.compareWith(S.notequal),X.prototype.lessthan=X.compareWith(S.lessthan),X.prototype.greaterthan=X.compareWith(S.greaterthan),X.prototype.lessthanorequal=X.compareWith(S.lessthanorequal),X.prototype.greaterthanorequal=X.compareWith(S.greaterthanorequal),X.prototype.union=function(a){var b=new X;return b.addArray(this.toUnsortedArray()),b.addArray(a.toUnsortedArray()),b},Y.prototype={},Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Z.prototype={},Z.prototype.constructor=Z,Z.superclass=Object.prototype,Z.prototype.extend=function(a){return o(new Z,this,a)},$.prototype={},$.prototype.constructor=$,$.superclass=Object.prototype,$.prototype.getVariable=function(a,b){return null},_.prototype={},_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.addStandardFunctions=function(){this.functions["{}last"]=ab.last,this.functions["{}position"]=ab.position,this.functions["{}count"]=ab.count,this.functions["{}id"]=ab.id,this.functions["{}local-name"]=ab.localName,this.functions["{}namespace-uri"]=ab.namespaceURI,this.functions["{}name"]=ab.name,this.functions["{}string"]=ab.string,this.functions["{}concat"]=ab.concat,this.functions["{}starts-with"]=ab.startsWith,this.functions["{}contains"]=ab.contains,this.functions["{}substring-before"]=ab.substringBefore,this.functions["{}substring-after"]=ab.substringAfter,this.functions["{}substring"]=ab.substring,this.functions["{}string-length"]=ab.stringLength,this.functions["{}normalize-space"]=ab.normalizeSpace,this.functions["{}translate"]=ab.translate,this.functions["{}boolean"]=ab.boolean_,this.functions["{}not"]=ab.not,this.functions["{}true"]=ab.true_,this.functions["{}false"]=ab.false_,this.functions["{}lang"]=ab.lang,this.functions["{}number"]=ab.number,this.functions["{}sum"]=ab.sum,this.functions["{}floor"]=ab.floor,this.functions["{}ceiling"]=ab.ceiling,this.functions["{}round"]=ab.round},_.prototype.addFunction=function(a,b,c){this.functions["{"+a+"}"+b]=c},_.getFunctionFromContext=function(a,b){var c=ac.resolveQName(a,b.namespaceResolver,b.contextNode,!1);if(null===c[0])throw Error("Cannot resolve QName "+name);return b.functionResolver.getFunction(c[1],c[0])},_.prototype.getFunction=function(a,b){return this.functions["{"+b+"}"+a]},aa.prototype={},aa.prototype.constructor=aa,aa.superclass=Object.prototype,aa.prototype.getNamespace=function(a,b){if("xml"==a)return q.XML_NAMESPACE_URI;if("xmlns"==a)return q.XMLNS_NAMESPACE_URI;for(9==b.nodeType?b=b.documentElement:2==b.nodeType?b=K.getOwnerElement(b):1!=b.nodeType&&(b=b.parentNode);null!=b&&1==b.nodeType;){for(var c=b.attributes,d=0;d<c.length;d++){var e=c.item(d),f=e.name||e.nodeName;if("xmlns"===f&&""===a||f==="xmlns:"+a)return String(e.value||e.nodeValue)}b=b.parentNode}return null};var ab={};ab.last=function(a){if(1!=arguments.length)throw Error("Function last expects ()");return new U(a.contextSize)},ab.position=function(a){if(1!=arguments.length)throw Error("Function position expects ()");return new U(a.contextPosition)},ab.count=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function count expects (node-set)");return new U(a.size)},ab.id=function(){var a,b,c=arguments[0];if(2!=arguments.length)throw Error("Function id expects (object)");a=arguments[1].evaluate(c);for(var d=(a=ac.instance_of(a,X)?a.toArray().join(" "):a.stringValue()).split(/[\x0d\x0a\x09\x20]+/),e=new X,f=9==c.contextNode.nodeType?c.contextNode:c.contextNode.ownerDocument,g=0;g<d.length;g++)null!=(b=f.getElementById?f.getElementById(d[g]):ac.getElementById(f,d[g]))&&e.add(b);return e},ab.localName=function(a,b){var c;if(1==arguments.length)c=a.contextNode;else if(2==arguments.length)c=b.evaluate(a).first();else throw Error("Function local-name expects (node-set?)");return new T(null==c?"":c.localName||c.baseName||c.target||c.nodeName||"")},ab.namespaceURI=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function namespace-uri expects (node-set?)");return new T(null==a?"":a.namespaceURI)},ab.name=function(){var a,b=arguments[0];if(1==arguments.length)a=b.contextNode;else if(2==arguments.length)a=arguments[1].evaluate(b).first();else throw Error("Function name expects (node-set?)");return null==a?new T(""):1==a.nodeType?new T(a.nodeName):2==a.nodeType?new T(a.name||a.nodeName):7===a.nodeType?new T(a.target||a.nodeName):null==a.localName?new T(""):new T(a.localName)},ab.string=function(){var a=arguments[0];if(1==arguments.length)return new T(X.prototype.stringForNode(a.contextNode));if(2==arguments.length)return arguments[1].evaluate(a).string();throw Error("Function string expects (object?)")},ab.concat=function(a){if(arguments.length<3)throw Error("Function concat expects (string, string[, string]*)");for(var b="",c=1;c<arguments.length;c++)b+=arguments[c].evaluate(a).stringValue();return new T(b)},ab.startsWith=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function startsWith expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(b.substring(0,c.length)==c)},ab.contains=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function contains expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new V(-1!==b.indexOf(c))},ab.substringBefore=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-before expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();return new T(b.substring(0,b.indexOf(c)))},ab.substringAfter=function(){var a=arguments[0];if(3!=arguments.length)throw Error("Function substring-after expects (string, string)");var b=arguments[1].evaluate(a).stringValue(),c=arguments[2].evaluate(a).stringValue();if(0==c.length)return new T(b);var d=b.indexOf(c);return new T(-1==d?"":b.substring(d+c.length))},ab.substring=function(){var a=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw Error("Function substring expects (string, number, number?)");var b=arguments[1].evaluate(a).stringValue(),c=Math.round(arguments[2].evaluate(a).numberValue())-1,d=4==arguments.length?c+Math.round(arguments[3].evaluate(a).numberValue()):void 0;return new T(b.substring(c,d))},ab.stringLength=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function string-length expects (string?)");return new U(a.length)},ab.normalizeSpace=function(){var a,b=arguments[0];if(1==arguments.length)a=X.prototype.stringForNode(b.contextNode);else if(2==arguments.length)a=arguments[1].evaluate(b).stringValue();else throw Error("Function normalize-space expects (string?)");for(var c=0,d=a.length-1;ac.isSpace(a.charCodeAt(d));)d--;for(var e="";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;for(;c<=d;)if(ac.isSpace(a.charCodeAt(c)))for(e+=" ";c<=d&&ac.isSpace(a.charCodeAt(c));)c++;else e+=a.charAt(c),c++;return new T(e)},ab.translate=function(a,b,c,d){if(4!=arguments.length)throw Error("Function translate expects (string, string, string)");var e=b.evaluate(a).stringValue(),f=c.evaluate(a).stringValue(),i=d.evaluate(a).stringValue(),j=g(function(a,b,c){return b in a||(a[b]=c>i.length?"":i[c]),a},{},f);return new T(l("",h(function(a){return a in j?j[a]:a},e)))},ab.boolean_=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function boolean expects (object)");return arguments[1].evaluate(a).bool()},ab.not=function(a,b){if(2!=arguments.length)throw Error("Function not expects (object)");return b.evaluate(a).bool().not()},ab.true_=function(){if(1!=arguments.length)throw Error("Function true expects ()");return V.true_},ab.false_=function(){if(1!=arguments.length)throw Error("Function false expects ()");return V.false_},ab.lang=function(){var a,b=arguments[0];if(2!=arguments.length)throw Error("Function lang expects (string)");for(var c=b.contextNode;null!=c&&9!=c.nodeType;c=c.parentNode){var d=c.getAttributeNS(q.XML_NAMESPACE_URI,"lang");if(null!=d){a=String(d);break}}if(null==a)return V.false_;var e=arguments[1].evaluate(b).stringValue();return new V(a.substring(0,e.length)==e&&(a.length==e.length||"-"==a.charAt(e.length)))},ab.number=function(){var a=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw Error("Function number expects (object?)");return 1==arguments.length?new U(X.prototype.stringForNode(a.contextNode)):arguments[1].evaluate(a).number()},ab.sum=function(){var a,b=arguments[0];if(2!=arguments.length||!ac.instance_of(a=arguments[1].evaluate(b),X))throw Error("Function sum expects (node-set)");a=a.toUnsortedArray();for(var c=0,d=0;d<a.length;d++)c+=new U(X.prototype.stringForNode(a[d])).numberValue();return new U(c)},ab.floor=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function floor expects (number)");return new U(Math.floor(arguments[1].evaluate(a).numberValue()))},ab.ceiling=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function ceiling expects (number)");return new U(Math.ceil(arguments[1].evaluate(a).numberValue()))},ab.round=function(){var a=arguments[0];if(2!=arguments.length)throw Error("Function round expects (number)");return new U(Math.round(arguments[1].evaluate(a).numberValue()))};var ac={};ac.isAttribute=function(a){return a&&(2===a.nodeType||a.ownerElement)},ac.splitQName=function(a){var b=a.indexOf(":");return -1==b?[null,a]:[a.substring(0,b),a.substring(b+1)]},ac.resolveQName=function(a,b,c,d){var e=ac.splitQName(a);return null!=e[0]?e[0]=b.getNamespace(e[0],c):d?(e[0]=b.getNamespace("",c),null==e[0]&&(e[0]="")):e[0]="",e},ac.isSpace=function(a){return 9==a||13==a||10==a||32==a},ac.isLetter=function(a){return a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=255||a>=256&&a<=305||a>=308&&a<=318||a>=321&&a<=328||a>=330&&a<=382||a>=384&&a<=451||a>=461&&a<=496||a>=500&&a<=501||a>=506&&a<=535||a>=592&&a<=680||a>=699&&a<=705||902==a||a>=904&&a<=906||908==a||a>=910&&a<=929||a>=931&&a<=974||a>=976&&a<=982||986==a||988==a||990==a||992==a||a>=994&&a<=1011||a>=1025&&a<=1036||a>=1038&&a<=1103||a>=1105&&a<=1116||a>=1118&&a<=1153||a>=1168&&a<=1220||a>=1223&&a<=1224||a>=1227&&a<=1228||a>=1232&&a<=1259||a>=1262&&a<=1269||a>=1272&&a<=1273||a>=1329&&a<=1366||1369==a||a>=1377&&a<=1414||a>=1488&&a<=1514||a>=1520&&a<=1522||a>=1569&&a<=1594||a>=1601&&a<=1610||a>=1649&&a<=1719||a>=1722&&a<=1726||a>=1728&&a<=1742||a>=1744&&a<=1747||1749==a||a>=1765&&a<=1766||a>=2309&&a<=2361||2365==a||a>=2392&&a<=2401||a>=2437&&a<=2444||a>=2447&&a<=2448||a>=2451&&a<=2472||a>=2474&&a<=2480||2482==a||a>=2486&&a<=2489||a>=2524&&a<=2525||a>=2527&&a<=2529||a>=2544&&a<=2545||a>=2565&&a<=2570||a>=2575&&a<=2576||a>=2579&&a<=2600||a>=2602&&a<=2608||a>=2610&&a<=2611||a>=2613&&a<=2614||a>=2616&&a<=2617||a>=2649&&a<=2652||2654==a||a>=2674&&a<=2676||a>=2693&&a<=2699||2701==a||a>=2703&&a<=2705||a>=2707&&a<=2728||a>=2730&&a<=2736||a>=2738&&a<=2739||a>=2741&&a<=2745||2749==a||2784==a||a>=2821&&a<=2828||a>=2831&&a<=2832||a>=2835&&a<=2856||a>=2858&&a<=2864||a>=2866&&a<=2867||a>=2870&&a<=2873||2877==a||a>=2908&&a<=2909||a>=2911&&a<=2913||a>=2949&&a<=2954||a>=2958&&a<=2960||a>=2962&&a<=2965||a>=2969&&a<=2970||2972==a||a>=2974&&a<=2975||a>=2979&&a<=2980||a>=2984&&a<=2986||a>=2990&&a<=2997||a>=2999&&a<=3001||a>=3077&&a<=3084||a>=3086&&a<=3088||a>=3090&&a<=3112||a>=3114&&a<=3123||a>=3125&&a<=3129||a>=3168&&a<=3169||a>=3205&&a<=3212||a>=3214&&a<=3216||a>=3218&&a<=3240||a>=3242&&a<=3251||a>=3253&&a<=3257||3294==a||a>=3296&&a<=3297||a>=3333&&a<=3340||a>=3342&&a<=3344||a>=3346&&a<=3368||a>=3370&&a<=3385||a>=3424&&a<=3425||a>=3585&&a<=3630||3632==a||a>=3634&&a<=3635||a>=3648&&a<=3653||a>=3713&&a<=3714||3716==a||a>=3719&&a<=3720||3722==a||3725==a||a>=3732&&a<=3735||a>=3737&&a<=3743||a>=3745&&a<=3747||3749==a||3751==a||a>=3754&&a<=3755||a>=3757&&a<=3758||3760==a||a>=3762&&a<=3763||3773==a||a>=3776&&a<=3780||a>=3904&&a<=3911||a>=3913&&a<=3945||a>=4256&&a<=4293||a>=4304&&a<=4342||4352==a||a>=4354&&a<=4355||a>=4357&&a<=4359||4361==a||a>=4363&&a<=4364||a>=4366&&a<=4370||4412==a||4414==a||4416==a||4428==a||4430==a||4432==a||a>=4436&&a<=4437||4441==a||a>=4447&&a<=4449||4451==a||4453==a||4455==a||4457==a||a>=4461&&a<=4462||a>=4466&&a<=4467||4469==a||4510==a||4520==a||4523==a||a>=4526&&a<=4527||a>=4535&&a<=4536||4538==a||a>=4540&&a<=4546||4587==a||4592==a||4601==a||a>=7680&&a<=7835||a>=7840&&a<=7929||a>=7936&&a<=7957||a>=7960&&a<=7965||a>=7968&&a<=8005||a>=8008&&a<=8013||a>=8016&&a<=8023||8025==a||8027==a||8029==a||a>=8031&&a<=8061||a>=8064&&a<=8116||a>=8118&&a<=8124||8126==a||a>=8130&&a<=8132||a>=8134&&a<=8140||a>=8144&&a<=8147||a>=8150&&a<=8155||a>=8160&&a<=8172||a>=8178&&a<=8180||a>=8182&&a<=8188||8486==a||a>=8490&&a<=8491||8494==a||a>=8576&&a<=8578||a>=12353&&a<=12436||a>=12449&&a<=12538||a>=12549&&a<=12588||a>=44032&&a<=55203||a>=19968&&a<=40869||12295==a||a>=12321&&a<=12329},ac.isNCNameChar=function(a){return a>=48&&a<=57||a>=1632&&a<=1641||a>=1776&&a<=1785||a>=2406&&a<=2415||a>=2534&&a<=2543||a>=2662&&a<=2671||a>=2790&&a<=2799||a>=2918&&a<=2927||a>=3047&&a<=3055||a>=3174&&a<=3183||a>=3302&&a<=3311||a>=3430&&a<=3439||a>=3664&&a<=3673||a>=3792&&a<=3801||a>=3872&&a<=3881||46==a||45==a||95==a||ac.isLetter(a)||a>=768&&a<=837||a>=864&&a<=865||a>=1155&&a<=1158||a>=1425&&a<=1441||a>=1443&&a<=1465||a>=1467&&a<=1469||1471==a||a>=1473&&a<=1474||1476==a||a>=1611&&a<=1618||1648==a||a>=1750&&a<=1756||a>=1757&&a<=1759||a>=1760&&a<=1764||a>=1767&&a<=1768||a>=1770&&a<=1773||a>=2305&&a<=2307||2364==a||a>=2366&&a<=2380||2381==a||a>=2385&&a<=2388||a>=2402&&a<=2403||a>=2433&&a<=2435||2492==a||2494==a||2495==a||a>=2496&&a<=2500||a>=2503&&a<=2504||a>=2507&&a<=2509||2519==a||a>=2530&&a<=2531||2562==a||2620==a||2622==a||2623==a||a>=2624&&a<=2626||a>=2631&&a<=2632||a>=2635&&a<=2637||a>=2672&&a<=2673||a>=2689&&a<=2691||2748==a||a>=2750&&a<=2757||a>=2759&&a<=2761||a>=2763&&a<=2765||a>=2817&&a<=2819||2876==a||a>=2878&&a<=2883||a>=2887&&a<=2888||a>=2891&&a<=2893||a>=2902&&a<=2903||a>=2946&&a<=2947||a>=3006&&a<=3010||a>=3014&&a<=3016||a>=3018&&a<=3021||3031==a||a>=3073&&a<=3075||a>=3134&&a<=3140||a>=3142&&a<=3144||a>=3146&&a<=3149||a>=3157&&a<=3158||a>=3202&&a<=3203||a>=3262&&a<=3268||a>=3270&&a<=3272||a>=3274&&a<=3277||a>=3285&&a<=3286||a>=3330&&a<=3331||a>=3390&&a<=3395||a>=3398&&a<=3400||a>=3402&&a<=3405||3415==a||3633==a||a>=3636&&a<=3642||a>=3655&&a<=3662||3761==a||a>=3764&&a<=3769||a>=3771&&a<=3772||a>=3784&&a<=3789||a>=3864&&a<=3865||3893==a||3895==a||3897==a||3902==a||3903==a||a>=3953&&a<=3972||a>=3974&&a<=3979||a>=3984&&a<=3989||3991==a||a>=3993&&a<=4013||a>=4017&&a<=4023||4025==a||a>=8400&&a<=8412||8417==a||a>=12330&&a<=12335||12441==a||12442==a||183==a||720==a||721==a||903==a||1600==a||3654==a||3782==a||12293==a||a>=12337&&a<=12341||a>=12445&&a<=12446||a>=12540&&a<=12542},ac.coalesceText=function(a){for(var b=a.firstChild;null!=b;b=b.nextSibling)if(3==b.nodeType||4==b.nodeType){var c=b.nodeValue,d=b;for(b=b.nextSibling;null!=b&&(3==b.nodeType||4==b.nodeType);){c+=b.nodeValue;var e=b;b=b.nextSibling,e.parentNode.removeChild(e)}if(4==d.nodeType){var f=d.parentNode;if(null==d.nextSibling)f.removeChild(d),f.appendChild(f.ownerDocument.createTextNode(c));else{var g=d.nextSibling;f.removeChild(d),f.insertBefore(f.ownerDocument.createTextNode(c),g)}}else d.nodeValue=c;if(null==b)break}else 1==b.nodeType&&ac.coalesceText(b)},ac.instance_of=function(a,b){for(;null!=a;){if(a.constructor===b)return!0;if(a===Object)break;a=a.constructor.superclass}return!1},ac.getElementById=function(a,b){if(1==a.nodeType&&(a.getAttribute("id")==b||a.getAttributeNS(null,"id")==b))return a;for(var c=a.firstChild;null!=c;c=c.nextSibling){var d=ac.getElementById(c,b);if(null!=d)return d}return null};var ad=function(){function a(b,c,d){var e=Error.call(this,function(b,c){var d=c?": "+c.toString():"";switch(b){case a.INVALID_EXPRESSION_ERR:return"Invalid expression"+d;case a.TYPE_ERR:return"Type error"+d}return null}(b,c)||d);return e.code=b,e.exception=c,e}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.superclass=Error,a.prototype.toString=function(){return this.message},a.fromMessage=function(b,c){return new a(null,c,b)},a.INVALID_EXPRESSION_ERR=51,a.TYPE_ERR=52,a}();function ae(a,b,c){this.xpath=c.parse(a),this.context=new Z,this.context.namespaceResolver=new af(b)}function af(a){this.xpathNSResolver=a}function ag(a){this.node=a,this.namespaceResolver=new aa}function ah(a,b){switch(b==ah.ANY_TYPE&&(a.constructor===T?b=ah.STRING_TYPE:a.constructor===U?b=ah.NUMBER_TYPE:a.constructor===V?b=ah.BOOLEAN_TYPE:a.constructor===X&&(b=ah.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=b,b){case ah.NUMBER_TYPE:this.numberValue=a.numberValue();return;case ah.STRING_TYPE:this.stringValue=a.stringValue();return;case ah.BOOLEAN_TYPE:this.booleanValue=a.booleanValue();return;case ah.ANY_UNORDERED_NODE_TYPE:case ah.FIRST_ORDERED_NODE_TYPE:if(a.constructor===X){this.singleNodeValue=a.first();return}break;case ah.UNORDERED_NODE_ITERATOR_TYPE:case ah.ORDERED_NODE_ITERATOR_TYPE:if(a.constructor===X){this.invalidIteratorState=!1,this.nodes=a.toArray(),this.iteratorIndex=0;return}break;case ah.UNORDERED_NODE_SNAPSHOT_TYPE:case ah.ORDERED_NODE_SNAPSHOT_TYPE:if(a.constructor===X){this.nodes=a.toArray(),this.snapshotLength=this.nodes.length;return}}throw new ad(ad.TYPE_ERR)}function ai(a,b){a.createExpression=function(a,c){try{return new ae(a,c,b)}catch(a){throw new ad(ad.INVALID_EXPRESSION_ERR,a)}},a.createNSResolver=function(a){return new ag(a)},a.evaluate=function(c,d,e,f,g){if(f<0||f>9)throw{code:0,toString:function(){return"Request type not supported"}};return a.createExpression(c,e,b).evaluate(d,f,g)}}ae.prototype={},ae.prototype.constructor=ae,ae.superclass=Object.prototype,ae.getOwnerDocument=function(a){return 9===a.nodeType?a:a.ownerDocument},ae.detectHtmlDom=function(a){if(!a)return!1;var b=ae.getOwnerDocument(a);try{return b.implementation.hasFeature("HTML","2.0")}catch(a){return!0}},ae.prototype.evaluate=function(a,b,c){return this.context.expressionContextNode=a,this.context.caseInsensitive=ae.detectHtmlDom(a),new ah(this.xpath.evaluate(this.context),b)},af.prototype={},af.prototype.constructor=af,af.superclass=Object.prototype,af.prototype.getNamespace=function(a,b){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(a)},ag.prototype={},ag.prototype.constructor=ag,ag.superclass=Object.prototype,ag.prototype.lookupNamespaceURI=function(a){return this.namespaceResolver.getNamespace(a,this.node)},ah.prototype={},ah.prototype.constructor=ah,ah.superclass=Object.prototype,ah.prototype.iterateNext=function(){if(this.resultType!=ah.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=ah.ORDERED_NODE_ITERATOR_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[this.iteratorIndex++]},ah.prototype.snapshotItem=function(a){if(this.resultType!=ah.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=ah.ORDERED_NODE_SNAPSHOT_TYPE)throw new ad(ad.TYPE_ERR);return this.nodes[a]},ah.ANY_TYPE=0,ah.NUMBER_TYPE=1,ah.STRING_TYPE=2,ah.BOOLEAN_TYPE=3,ah.UNORDERED_NODE_ITERATOR_TYPE=4,ah.ORDERED_NODE_ITERATOR_TYPE=5,ah.UNORDERED_NODE_SNAPSHOT_TYPE=6,ah.ORDERED_NODE_SNAPSHOT_TYPE=7,ah.ANY_UNORDERED_NODE_TYPE=8,ah.FIRST_ORDERED_NODE_TYPE=9;try{var aj=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(aj=!1)}catch(a){}aj&&ai(document,new p)}catch(a){}ai(a,new p),function(){var b=new p,c=new aa,d=new _,e=new $;function f(a){return{getNamespace:function(b,d){return a(b,d)||c.getNamespace(b,d)}}}function g(a){if(null==a||a instanceof T||a instanceof V||a instanceof U||a instanceof X)return a;switch(typeof a){case"string":return new T(a);case"boolean":return new V(a);case"number":return new U(a)}var b=new X;return b.addArray([].concat(a)),b}function h(a){return{getFunction:function(b,c){var e=a(b,c);return e?function(a){var b=Array.prototype.slice.call(arguments,1).map(function(b){return b.evaluate(a)});return g(e.apply(this,[].concat(a,b)))}:d.getFunction(b,c)}}}function i(a){return{getVariable:function(b,c){return g(a(b,c))}}}function j(a,b,c){a in c&&(b[a]=c[a])}var k={evaluate:function(a){var b,g,k;return b=this.expression,g=new Z,a?(g.namespaceResolver=function(a){return a&&"function"==typeof a.getNamespace?f(a.getNamespace.bind(a)):"function"==typeof a?f(a):"object"==typeof a?f(function(b){return a[b]}):c}(a.namespaces),g.functionResolver=function(a){return a&&"function"==typeof a.getFunction?h(a.getFunction.bind(a)):"function"==typeof a?h(a):"object"==typeof a?h(function(b){return a[b]}):d}(a.functions),g.variableResolver=function(a){if(a){if("function"==typeof a.getVariable)return i(a.getVariable.bind(a));if("function"==typeof a)return i(a);if("object"==typeof a)return i(function(b){return a[b]})}return e}(a.variables),g.expressionContextNode=a.node,j("allowAnyNamespaceForNoPrefix",g,a),j("isHtml",g,a)):g.namespaceResolver=c,k=g,b.evaluate(k)},evaluateNumber:function(a){return this.evaluate(a).numberValue()},evaluateString:function(a){return this.evaluate(a).stringValue()},evaluateBoolean:function(a){return this.evaluate(a).booleanValue()},evaluateNodeSet:function(a){return this.evaluate(a).nodeset()},select:function(a){return this.evaluateNodeSet(a).toArray()},select1:function(a){return this.select(a)[0]}};a.parse=function(a){return Object.create(k,{expression:{value:b.parse(a)}})}}(),o(a,{XPath:q,XPathParser:p,XPathResult:ah,Step:O,PathExpr:K,NodeTest:P,LocationPath:N,OrOperation:w,AndOperation:x,BarOperation:J,EqualsOperation:y,NotEqualOperation:z,LessThanOperation:A,GreaterThanOperation:B,LessThanOrEqualOperation:C,GreaterThanOrEqualOperation:D,PlusOperation:E,MinusOperation:F,MultiplyOperation:G,DivOperation:H,ModOperation:I,UnaryMinusOperation:u,FunctionCall:R,VariableReference:Q,XPathContext:Z,XNodeSet:X,XBoolean:V,XString:T,XNumber:U,NamespaceResolver:aa,FunctionResolver:_,VariableResolver:$,Utilities:ac}),a.select=function(b,c,d){return a.selectWithResolver(b,c,null,d)},a.useNamespaces=function(b){var c={mappings:b||{},lookupNamespaceURI:function(a){return this.mappings[a]}};return function(b,d,e){return a.selectWithResolver(b,d,c,e)}},a.selectWithResolver=function(a,b,c,d){var e=new ae(a,c,new p),f=ah.ANY_TYPE,g=e.evaluate(b,f,null);return g.resultType==ah.STRING_TYPE?g=g.stringValue:g.resultType==ah.NUMBER_TYPE?g=g.numberValue:g.resultType==ah.BOOLEAN_TYPE?g=g.booleanValue:(g=g.nodes,d&&(g=g[0])),g},a.select1=function(b,c){return a.select(b,c,!0)}}(b)},58892:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing instruction target. "+this.debugInfo());this.type=b.ProcessingInstruction,this.target=this.stringify.insTarget(d),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.target===this.target},c}(c(92478))}).call(this)},59548:(a,b,c)=>{var d=c(73669);a.exports=({contentEncryptionMethod:a,keyInfo:b,encryptedContent:c})=>`
|
|
5
2
|
<xenc:EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
|
|
6
3
|
<xenc:EncryptionMethod Algorithm="${d(a)}" />
|
|
7
4
|
${b}
|
|
@@ -12,7 +9,7 @@ ${a}
|
|
|
12
9
|
`},61894:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isArrayHasLength=h,b.findAttr=function(a,b,c){for(let d=0;d<a.attributes.length;d++){let e=a.attributes[d];if(e.localName===b&&(e.namespaceURI===c||null==c)||e.localName===b&&(!e.namespaceURI&&a?.namespaceURI===c||null==c))return e}return null},b.findChildren=i,b.findChilds=function(a,b,c){return i(a,b,c)},b.encodeSpecialCharactersInAttribute=function(a){return a.replace(/([&<"\r\n\t])/g,function(a,b){return j[b]})},b.encodeSpecialCharactersInText=function(a){return a.replace(/([&<>\r])/g,function(a,b){return k[b]})},b.renderProcessingInstruction=function(a){let b=a.data?` ${a.data}`:"";return`<?${a.target}${b}?>`},b.isCanonicalDocumentChild=function(a){return f.isElementNode(a)||f.isProcessingInstructionNode(a)&&"xml"!==a.target.toLowerCase()},b.hasDocumentLevelProcessingInstruction=function(a){for(let b=a.firstChild;null!=b;b=b.nextSibling)if(f.isProcessingInstructionNode(b)&&"xml"!==b.target.toLowerCase())return!0;return!1},b.normalizePem=C,b.pemCertificates=function(a){let b=v(u(a));if(!b.every(A))throw Error("Invalid PEM format.");let c=b.filter(a=>"CERTIFICATE"===a.label).map(a=>a.data);return c.forEach(z),c.map(B)},b.pemToDer=function(a){let b=u(a),c=p.test(b)?v(b):[];if(c.length>1)throw Error(`Expected a single PEM message, but found ${c.length}.`);if(0===c.length||!A(c[0])||c[0].headers)throw Error("Invalid PEM format.");let[{label:d,data:e}]=c;return F(d,e),Buffer.from(e,"base64")},b.bareCertificate=function(a){let b=u(a),c=b.replace(/\n/g,"");if(!r.test(b)||!w(c))throw Error("Invalid PEM format.");return z(c),B(c)},b.toPem=function(a,b){let c=u(function(a){if(!Buffer.isBuffer(a))return a;let b=a.toString("latin1");return b.replace(t,"").trimStart().startsWith("-----BEGIN ")?b:a.toString("base64")}(a));if(p.test(c)){let a=v(c);if(!a.every(A)||a.some(a=>a.headers))throw Error("Invalid PEM format.");return a.map(a=>{var b,c;return F(b=a.label,c=a.data),D(b,c)}).join("")}let d=c.replace(/\n/g,"");if(r.test(c)&&w(d)){if(null==b)throw Error("A PEM label is required to wrap base64 data.");if(!x(b))throw Error("Invalid PEM label.");return F(b,d),D(b,d)}throw Error("Invalid PEM format.")},b.findAncestorXmlAttributes=function(a){let b=new Map,c=a.parentNode;for(;f.isElementNode(c);){for(let a=0;a<c.attributes.length;a++){let d=c.attributes[a];"http://www.w3.org/XML/1998/namespace"!==d.namespaceURI||b.has(d.localName)||b.set(d.localName,d.value)}c=c.parentNode}return Array.from(b,([a,b])=>({localName:a,value:b}))},b.findAncestorNsForElement=G,b.findAncestorNs=function(a,b,c){if(null==b)return[];let d=e.selectWithResolver(b,a,c);if(!h(d))return[];if(!d.every(a=>f.isElementNode(a)))throw Error("Document subset must be list of elements");return G(d[0])},b.isPrefixInScope=function(a,b,c){let d=a.filter(a=>a.prefix===b).pop();return void 0!==d&&d.namespaceURI===c},b.insideProcess=function(a,b,c){["renderNs","processInner"].some(c=>Reflect.get(a,c)!==Reflect.get(b,c))&&H();let d=!I.has(a);I.add(a);try{return c()}finally{d&&I.delete(a)}},b.warnOutsideProcess=function(a){I.has(a)||H()},b.validateDigestValue=function(a,b){let c=Buffer.from(a,"base64"),d=Buffer.from(b,"base64");if("function"==typeof c.equals)return c.equals(d);if(c.length!==d.length)return!1;for(let a=0;a<c.length;a++)if(c[a]!==d[a])return!1;return!0},b.isDescendantOf=function(a,b){if(!a||!b)return!1;let c=a.parentNode;for(;c;){if(c===b)return!0;c=c.parentNode}return!1};let d=c(55511),e=c(42429),f=c(62119),g=c(28354);function h(a){return Array.isArray(a)&&a.length>0}function i(a,b,c){let d=a.documentElement??a,e=[];for(let a=0;a<d.childNodes.length;a++){let g=d.childNodes[a];f.isElementNode(g)&&g.localName===b&&(g.namespaceURI===c||null==c)&&e.push(g)}return e}let j={"&":"&","<":"<",'"':""","\r":"
","\n":"
"," ":"	"},k={"&":"&","<":"<",">":">","\r":"
"},l="[\\x21-\\x2C\\x2E-\\x7E]",m=`${l}(?:[-\\x20]?${l}){0,47}`,n=RegExp(`^${m}$`),o="(?:(?:Proc-Type|DEK-Info):[A-Za-z0-9,-]+\\n)+\\n+",p=RegExp(`^(?:-----BEGIN ${m}-----\\n+(?:${o})?(?:[A-Za-z0-9+/=]+\\n)+-----END ${m}-----\\n*)+$`),q=RegExp(`-----BEGIN (${m})-----\\n+(${o})?((?:[A-Za-z0-9+/=]+\\n)+)-----END (${m})-----`,"g"),r=/^[A-Za-z0-9+/=\n]+$/,s=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,t=/^(?:\uFEFF|\u00EF\u00BB\u00BF)/;function u(a){return a.replace(t,"").replace(/\r\n|\r/g,"\n").split("\n").map(a=>{let b=a.trim();return b.startsWith("-----")?b:a.replace(/[ \t]+/g,"")}).join("\n").trim()}function v(a){let b=[];q.lastIndex=0;let c=q.exec(a);for(;null!==c;){let d=c.index,e=d+c[0].length;(0===d||"\n"===a[d-1])&&(e===a.length||"\n"===a[e])&&b.push({label:c[1],endLabel:c[4],headers:null!=c[2],data:c[3].replace(/\n/g,"")}),c=q.exec(a)}if(a.split("-----BEGIN").length-1!==b.length)throw Error("Invalid PEM format.");return b}function w(a){return s.test(a)}function x(a){return a.length<=48&&n.test(a)}function y(a){try{return new d.X509Certificate(a),!0}catch{return!1}}function z(a){let b=Buffer.from(a,"base64");if(!y(b))throw Error("Invalid PEM format.");if(y(b.subarray(0,-1)))throw Error("Expected a single certificate, but found more data after it.")}function A({label:a,endLabel:b,headers:c,data:d}){let e=c&&"CERTIFICATE"===a;return a===b&&x(a)&&w(d)&&!e}function B(a){return Buffer.from(a,"base64").toString("base64")}function C(a){return`${(a.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g)??[]).join("\n")}
|
|
13
10
|
`}function D(a,b){return`-----BEGIN ${a}-----
|
|
14
11
|
${C(B(b))}-----END ${a}-----
|
|
15
|
-
`}let E=["PRIVATE KEY","RSA PRIVATE KEY"];function F(a,b){"CERTIFICATE"===a&&z(b),E.includes(a)&&function(a,b){try{(0,d.createPrivateKey)(D(a,b))}catch{throw Error("Invalid PEM format.")}}(a,b)}function G(a){let b=function a(b,c=[]){if(!f.isElementNode(b.parentNode))return c;let d=b.parentNode;if(!d)return c;if(d.attributes&&d.attributes.length>0)for(let a=0;a<d.attributes.length;a++){let b=d.attributes[a];b&&("xmlns"===b.nodeName||b.nodeName.startsWith("xmlns:"))&&c.push({prefix:b.nodeName.replace(/^xmlns:?/,""),namespaceURI:b.nodeValue||""})}return a(d,c)}(a),c=[];for(let a of b)c.some(b=>b.prefix===a.prefix)||c.push(a);let d=[],e=function(a){let b=new Set,c=a.attributes;for(let a=0;a<c.length;a++){let d=c[a].nodeName;("xmlns"===d||d.startsWith("xmlns:"))&&b.add(d.replace(/^xmlns:?/,""))}return b.add(a.prefix||""),b}(a);for(let a of c)""===a.namespaceURI||e.has(a.prefix)||d.push(a);return d}let H=(0,g.deprecate)(()=>{},"`renderNs()` and `processInner()` are deprecated and will be private in version 7.0. Call `process()` instead of calling or overriding them.","XML_CRYPTO_CANONICALIZATION_INTERNALS"),I=new WeakSet},62119:(a,b)=>{"use strict";var c,d;function e(a){return a&&"object"==typeof a&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName&&"function"==typeof a.appendChild&&"function"==typeof a.removeChild}function f(a){return Array.isArray(a)&&a.every(e)}function g(a,b){return e(b)&&b.nodeType===a}function h(a,b){let d=Object.keys(c).find(b=>c[b]===a);if(!g(a,b))throw Error(`Value is not of type ${d}`)}Object.defineProperty(b,"__esModule",{value:!0}),b.assertIsDocumentFragmentNode=b.assertIsDocumentTypeNode=b.assertIsDocumentNode=b.assertIsCommentNode=b.assertIsProcessingInstructionNode=b.assertIsCDATASectionNode=b.assertIsTextNode=b.assertIsAttributeNode=b.assertIsElementNode=b.isDocumentFragmentNode=b.isDocumentTypeNode=b.isDocumentNode=b.isCommentNode=b.isProcessingInstructionNode=b.isCDATASectionNode=b.isTextNode=b.isAttributeNode=b.isElementNode=b.assertIsArrayOfNodes=b.isArrayOfNodes=b.assertIsNodeLike=b.isNodeLike=b.NodeTypes=void 0,(d=c||(b.NodeTypes=c={}))[d.ELEMENT_NODE=1]="ELEMENT_NODE",d[d.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",d[d.TEXT_NODE=3]="TEXT_NODE",d[d.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",d[d.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",d[d.COMMENT_NODE=8]="COMMENT_NODE",d[d.DOCUMENT_NODE=9]="DOCUMENT_NODE",d[d.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",d[d.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",b.isNodeLike=e,b.assertIsNodeLike=function(a){if(!e(a))throw Error(`Value is not a Node-like object. Received: ${a}`)},b.isArrayOfNodes=f,b.assertIsArrayOfNodes=function(a){if(!f(a))throw Error("Value is not an array of Nodes")},b.isElementNode=a=>g(c.ELEMENT_NODE,a),b.isAttributeNode=a=>g(c.ATTRIBUTE_NODE,a),b.isTextNode=a=>g(c.TEXT_NODE,a),b.isCDATASectionNode=a=>g(c.CDATA_SECTION_NODE,a),b.isProcessingInstructionNode=a=>g(c.PROCESSING_INSTRUCTION_NODE,a),b.isCommentNode=a=>g(c.COMMENT_NODE,a),b.isDocumentNode=a=>g(c.DOCUMENT_NODE,a),b.isDocumentTypeNode=a=>g(c.DOCUMENT_TYPE_NODE,a),b.isDocumentFragmentNode=a=>g(c.DOCUMENT_FRAGMENT_NODE,a),b.assertIsElementNode=a=>{h(c.ELEMENT_NODE,a)},b.assertIsAttributeNode=a=>h(c.ATTRIBUTE_NODE,a),b.assertIsTextNode=a=>h(c.TEXT_NODE,a),b.assertIsCDATASectionNode=a=>h(c.CDATA_SECTION_NODE,a),b.assertIsProcessingInstructionNode=a=>h(c.PROCESSING_INSTRUCTION_NODE,a),b.assertIsCommentNode=a=>h(c.COMMENT_NODE,a),b.assertIsDocumentNode=a=>h(c.DOCUMENT_NODE,a),b.assertIsDocumentTypeNode=a=>h(c.DOCUMENT_TYPE_NODE,a),b.assertIsDocumentFragmentNode=a=>h(c.DOCUMENT_FRAGMENT_NODE,a)},62669:(a,b,c)=>{var d=c(23849),e=c(81349),f=c(13630),g=c(91729),h=e.DOMImplementation,i=d.NAMESPACE,j=g.ParseError,k=g.XMLReader;function l(a){return a.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function m(a){this.options=a||{locator:{}}}function n(){this.cdata=!1}function o(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function p(a){if(a)return"\n@"+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function q(a,b,c){return"string"==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+"":a}function r(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}m.prototype.parseFromString=function(a,b){var c=this.options,d=new k,e=c.domBuilder||new n,g=c.errorHandler,h=c.locator,j=c.xmlns||{},m=/\/x?html?$/.test(b),o=m?f.HTML_ENTITIES:f.XML_ENTITIES;h&&e.setDocumentLocator(h),d.errorHandler=function(a,b,c){if(!a){if(b instanceof n)return b;a=b}var d={},e=a instanceof Function;function f(b){var f=a[b];!f&&e&&(f=2==a.length?function(c){a(b,c)}:a),d[b]=f&&function(a){f("[xmldom "+b+"] "+a+p(c))}||function(){}}return c=c||{},f("warning"),f("error"),f("fatalError"),d}(g,e,h),d.domBuilder=c.domBuilder||e,m&&(j[""]=i.HTML),j.xml=j.xml||i.XML;var q=c.normalizeLineEndings||l;return a&&"string"==typeof a?d.parse(q(a),j,o):d.errorHandler.error("invalid doc source"),e.doc},n.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,b,c,d){var e=this.doc,f=e.createElementNS(a,c||b),g=d.length;r(this,f),this.currentElement=f,this.locator&&o(this.locator,f);for(var h=0;h<g;h++){var a=d.getURI(h),i=d.getValue(h),c=d.getQName(h),j=e.createAttributeNS(a,c);this.locator&&o(d.getLocator(h),j),j.value=j.nodeValue=i,f.setAttributeNode(j)}},endElement:function(a,b,c){var d=this.currentElement;d.tagName,this.currentElement=d.parentNode},startPrefixMapping:function(a,b){},endPrefixMapping:function(a){},processingInstruction:function(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&o(this.locator,c),r(this,c)},ignorableWhitespace:function(a,b,c){},characters:function(a,b,c){if(a=q.apply(this,arguments)){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&o(this.locator,d)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,b,c){a=q.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&o(this.locator,d),r(this,d)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&o(this.locator,e),r(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,p(this.locator))},error:function(a){console.error("[xmldom error] "+a,p(this.locator))},fatalError:function(a){throw new j(a,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){n.prototype[a]=function(){return null}}),b.DOMParser=m},64564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.EnvelopedSignature=void 0;let d=c(42429),e=c(62119),f=c(61894);class g{constructor(){this.includeComments=!1,this.includeComments=!1}process(a,b){if(null==b.signatureNode){let b=d.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return e.isNodeLike(b)&&b.parentNode&&b.parentNode.removeChild(b),a}let c=b.signatureNode;return(0,f.isDescendantOf)(c,a)&&c.parentNode&&c.parentNode.removeChild(c),a}getAlgorithmName(){return"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}}b.EnvelopedSignature=g},65096:function(a,b,c){(function(){var b;b=c(73067),a.exports=(function(){class a extends b{constructor(a){super(a),this.value=""}clone(){return Object.create(this)}substringData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(a){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){return!!super.isEqualNode(a)&&a.data===this.data}}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),a}).call(this)}).call(this)},65756:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getNameIdAsync=b.promiseWithNameId=b.buildXmlBuilderObject=b.buildXml2JsObject=b.parseXml2JsFromString=b.parseDomFromString=b.signXml=b.validateSignature=b.getVerifiedXml=b.decryptXml=b.xpath=void 0;let d=c(28354),e=c(22859),f=c(35387),g=c(12749),h=c(74832),i=c(24938),j=c(32046),k=c(35312),l=c(86175),m=c(36481),n=c(62119),o=(0,c(46140).default)("node-saml"),p=(a,b,c)=>{let d=(0,j.select)(c,b);if(!a(d))throw Error("Invalid xpath return type");return d},q=a=>n.isArrayOfNodes(a)&&a.every(n.isAttributeNode),r=a=>n.isArrayOfNodes(a)&&a.every(n.isElementNode);b.xpath={selectAttributes:(a,b)=>p(q,a,b),selectElements:(a,b)=>p(r,a,b)},b.decryptXml=async(a,b)=>d.promisify(f.decrypt).bind(f)(a,{key:b}),b.getVerifiedXml=(a,c,d)=>{a=a.replace(/\r\n?/g,"\n");let f=b.xpath.selectElements(c,"./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']");if(f.length<1)return null;if(f.length>1)throw Error("Too many signatures found for this element");let g=f[0];if(b.xpath.selectElements(g,".//*[local-name(.)='Transform' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']").length>2)throw Error("Invalid signature, too many transforms");for(let c of d){let d=new e.SignedXml;d.publicCert=c,d.loadSignature(g);let f=d.getReferences();if(1!==f.length||!g.parentNode)break;let h=f[0].uri,i="#"===h[0]?h.substring(1):h;if((0,m.assertRequired)(i,"signature reference uri not found"),i.includes("'")||i.includes('"'))throw Error("ref URI included quote character ' or \". Not a valid ID, and not allowed");let j=b.xpath.selectElements(g.ownerDocument,`//*[@ID="${i}"]`);if(1!==j.length)throw Error("Invalid signature: ID cannot refer to more than one element");if(j[0]!==g.parentNode)throw Error("Invalid signature: Referenced node does not refer to it's parent element");try{if(!d.checkSignature(a))continue;if(1!==d.getSignedReferences().length)throw Error("Only 1 signed references should be present in signature");return d.getSignedReferences()[0]}catch(a){}}return null},b.validateSignature=(a,c,d)=>{let e=`.//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#' and descendant::*[local-name(.)='Reference' and @URI='#${c.getAttribute("ID")}']]`,f=b.xpath.selectElements(c,e);if(1!==f.length)return!1;let g=".//*[local-name(.)='Transform' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#' and ancestor::*[local-name(.)='Reference' and @URI='#"+c.getAttribute("ID")+"']]";if(b.xpath.selectElements(c,g).length>2)throw Error("Invalid signature, too many transforms");let h=f[0];return d.some(b=>s(h,b,a,c))};let s=(a,c,d,f)=>{let g=new e.SignedXml;if(g.publicCert=c,g.loadSignature(a),1!==g.getReferences().length)return!1;let h=g.getReferences()[0].uri;(0,m.assertRequired)(h,"signature reference uri not found");let i="#"===h[0]?h.substring(1):h,j=f.getAttribute("ID")?"ID":"Id";if(f.getAttribute(j)!=i||b.xpath.selectElements(f.ownerDocument,"//*[@"+j+"='"+i+"']").length>1)return!1;d=d.replace(/\r\n?/g,"\n");try{return g.checkSignature(d)}catch(a){return o("signature check resulted in an error: %s",a),!1}};b.signXml=(a,b,c,d)=>{var f;if(!a)throw Error("samlMessage is required");if(!c)throw Error("location is required");if(!d)throw Error("options is required");if(!(0,k.isValidSamlSigningOptions)(d))throw Error("options.privateKey is required");let g=null!=(f=d.xmlSignatureTransforms)?f:["http://www.w3.org/2000/09/xmldsig#enveloped-signature","http://www.w3.org/2001/10/xml-exc-c14n#"],h=new e.SignedXml;return null!=d.signatureAlgorithm&&(h.signatureAlgorithm=l.getSigningAlgorithm(d.signatureAlgorithm)),h.addReference({xpath:b,transforms:g,digestAlgorithm:l.getDigestAlgorithm(d.digestAlgorithm)}),h.privateKey=d.privateKey,h.publicCert=d.publicCert,h.canonicalizationAlgorithm="http://www.w3.org/2001/10/xml-exc-c14n#",h.computeSignature(a,{location:c}),h.getSignedXml()},b.parseDomFromString=a=>new Promise(function(b,c){function d(a){return c(Error(a))}let e=new g.DOMParser({locator:{},errorHandler:{error:d,fatalError:d}}).parseFromString(a,"text/xml");return Object.prototype.hasOwnProperty.call(e,"documentElement")?b(e):c(Error("Not a valid XML document"))}),b.parseXml2JsFromString=async a=>{let b={explicitRoot:!0,explicitCharkey:!0,tagNameProcessors:[h.processors.stripPrefix]};return new h.Parser(b).parseStringPromise(a)},b.buildXml2JsObject=(a,b)=>new h.Builder({rootName:a,headless:!0}).buildObject(b),b.buildXmlBuilderObject=(a,b)=>i.create(a).end(b?{pretty:!0,indent:" ",newline:"\n"}:{});let t=async a=>{let c=b.xpath.selectAttributes(a,"@Format");return{value:a.textContent,format:c&&c[0]&&c[0].nodeValue}};b.promiseWithNameId=t;let u=async(a,c)=>{let d=b.xpath.selectElements(a,"/*[local-name()='LogoutRequest']/*[local-name()='NameID']"),e=b.xpath.selectElements(a,"/*[local-name()='LogoutRequest']/*[local-name()='EncryptedID']");if(d.length+e.length>1)throw Error("Invalid LogoutRequest: multiple ID elements");if(1===d.length)return(0,b.promiseWithNameId)(d[0]);if(1===e.length){(0,m.assertRequired)(c,"No decryption key found getting name ID for encrypted SAML response");let a=b.xpath.selectElements(e[0],"./*[local-name()='EncryptedData']");if(1!==a.length)throw Error("Invalid LogoutRequest: no EncryptedData element found");let d=a[0].toString(),f=await (0,b.decryptXml)(d,c),g=await (0,b.parseDomFromString)(f),h=b.xpath.selectElements(g,"/*[local-name()='NameID']");if(1!==h.length)throw Error("Invalid EncryptedData content");return await (0,b.promiseWithNameId)(h[0])}throw Error("Missing SAML NameID")};b.getNameIdAsync=u},65904:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},67289:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;({assign:e}=c(43594)),b=c(26468),c(55443),c(33773),c(46898),c(12430),c(84519),c(469),c(5032),c(15890),c(76491),c(77192),c(1243),c(71920),c(48813),d=c(29394),a.exports=class{constructor(a){var b,c,d;for(b in a||(a={}),this.options=a,c=a.writer||{})f.call(c,b)&&(d=c[b],this["_"+b]=this[b],this[b]=d)}filterOptions(a){var b,c,f,g,h,i,j,k,l;return a||(a={}),a=e({},this.options,a),(b={writer:this}).pretty=a.pretty||!1,b.allowEmpty=a.allowEmpty||!1,b.indent=null!=(c=a.indent)?c:" ",b.newline=null!=(f=a.newline)?f:"\n",b.offset=null!=(g=a.offset)?g:0,b.width=null!=(h=a.width)?h:0,b.dontPrettyTextNodes=null!=(i=null!=(j=a.dontPrettyTextNodes)?j:a.dontprettytextnodes)?i:0,b.spaceBeforeSlash=null!=(k=null!=(l=a.spaceBeforeSlash)?l:a.spacebeforeslash)?k:"",!0===b.spaceBeforeSlash&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=d.None,b}indent(a,b,c){var d;if(!b.pretty||b.suppressPrettyCount);else if(b.pretty&&(d=(c||0)+b.offset+1)>0)return Array(d).join(b.indent);return""}endline(a,b,c){return!b.pretty||b.suppressPrettyCount?"":b.newline}attribute(a,b,c){var d;return this.openAttribute(a,b,c),d=b.pretty&&b.width>0?a.name+'="'+a.value+'"':" "+a.name+'="'+a.value+'"',this.closeAttribute(a,b,c),d}cdata(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<![CDATA[",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+="]]>"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}comment(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"\x3c!-- ",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=" --\x3e"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}declaration(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?xml",b.state=d.InsideTag,e+=' version="'+a.version+'"',null!=a.encoding&&(e+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(e+=' standalone="'+a.standalone+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}docType(a,b,c){var e,f,g,h,i;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,h=this.indent(a,b,c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.endline(a,b,c),b.state=d.InsideTag,f=0,g=(i=a.children).length;f<g;f++)e=i[f],h+=this.writeChildNode(e,b,c+1);b.state=d.CloseTag,h+="]"}return b.state=d.CloseTag,h+=b.spaceBeforeSlash+">",h+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),h}element(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;if(e||(e=0),q=!1,this.openNode(a,c,e),c.state=d.OpenTag,r=this.indent(a,c,e)+"<"+a.name,c.pretty&&c.width>0)for(p in m=r.length,t=a.attribs)f.call(t,p)&&(g=t[p],m+(s=this.attribute(g,c,e)).length>c.width?(x=this.indent(a,c,e+1)+s,r+=this.endline(a,c,e)+x,m=x.length):(r+=x=" "+s,m+=x.length));else for(p in u=a.attribs)f.call(u,p)&&(g=u[p],r+=this.attribute(g,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw||a.type===b.CData)&&""===a.value}))c.allowEmpty?(r+=">",c.state=d.CloseTag,r+="</"+a.name+">"+this.endline(a,c,e)):(c.state=d.CloseTag,r+=c.spaceBeforeSlash+"/>"+this.endline(a,c,e));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw||j.type===b.CData)&&null!=j.value)r+=">",c.state=d.InsideTag,c.suppressPrettyCount++,q=!0,r+=this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,q=!1,c.state=d.CloseTag,r+="</"+a.name+">"+this.endline(a,c,e);else{if(c.dontPrettyTextNodes){for(k=0,n=(v=a.children).length;k<n;k++)if(((h=v[k]).type===b.Text||h.type===b.Raw||h.type===b.CData)&&null!=h.value){c.suppressPrettyCount++,q=!0;break}}for(r+=">"+this.endline(a,c,e),c.state=d.InsideTag,l=0,o=(w=a.children).length;l<o;l++)h=w[l],r+=this.writeChildNode(h,c,e+1);c.state=d.CloseTag,r+=this.indent(a,c,e)+"</"+a.name+">",q&&c.suppressPrettyCount--,r+=this.endline(a,c,e),c.state=d.None}return this.closeNode(a,c,e),r}writeChildNode(a,c,d){switch(a.type){case b.CData:return this.cdata(a,c,d);case b.Comment:return this.comment(a,c,d);case b.Element:return this.element(a,c,d);case b.Raw:return this.raw(a,c,d);case b.Text:return this.text(a,c,d);case b.ProcessingInstruction:return this.processingInstruction(a,c,d);case b.Dummy:return"";case b.Declaration:return this.declaration(a,c,d);case b.DocType:return this.docType(a,c,d);case b.AttributeDeclaration:return this.dtdAttList(a,c,d);case b.ElementDeclaration:return this.dtdElement(a,c,d);case b.EntityDeclaration:return this.dtdEntity(a,c,d);case b.NotationDeclaration:return this.dtdNotation(a,c,d);default:throw Error("Unknown XML node type: "+a.constructor.name)}}processingInstruction(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?",b.state=d.InsideTag,e+=a.target,a.value&&(e+=" "+a.value),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}raw(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}text(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdAttList(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ATTLIST",b.state=d.InsideTag,e+=" "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(e+=" "+a.defaultValueType),a.defaultValue&&(e+=' "'+a.defaultValue+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdElement(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ELEMENT",b.state=d.InsideTag,e+=" "+a.name+" "+a.value,b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdEntity(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ENTITY",b.state=d.InsideTag,a.pe&&(e+=" %"),e+=" "+a.name,a.value?e+=' "'+a.value+'"':(a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.nData&&(e+=" NDATA "+a.nData)),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdNotation(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!NOTATION",b.state=d.InsideTag,e+=" "+a.name,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?e+=' PUBLIC "'+a.pubID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}openNode(a,b,c){}closeNode(a,b,c){}openAttribute(a,b,c){}closeAttribute(a,b,c){}}}).call(this)},67925:(a,b,c)=>{var d=c(73669);a.exports=({encryptionPublicCert:a,encryptedKey:b,keyEncryptionMethod:c,keyEncryptionDigest:e})=>`
|
|
12
|
+
`}let E=["PRIVATE KEY","RSA PRIVATE KEY"];function F(a,b){"CERTIFICATE"===a&&z(b),E.includes(a)&&function(a,b){try{(0,d.createPrivateKey)(D(a,b))}catch{throw Error("Invalid PEM format.")}}(a,b)}function G(a){let b=function a(b,c=[]){if(!f.isElementNode(b.parentNode))return c;let d=b.parentNode;if(!d)return c;if(d.attributes&&d.attributes.length>0)for(let a=0;a<d.attributes.length;a++){let b=d.attributes[a];b&&("xmlns"===b.nodeName||b.nodeName.startsWith("xmlns:"))&&c.push({prefix:b.nodeName.replace(/^xmlns:?/,""),namespaceURI:b.nodeValue||""})}return a(d,c)}(a),c=[];for(let a of b)c.some(b=>b.prefix===a.prefix)||c.push(a);let d=[],e=function(a){let b=new Set,c=a.attributes;for(let a=0;a<c.length;a++){let d=c[a].nodeName;("xmlns"===d||d.startsWith("xmlns:"))&&b.add(d.replace(/^xmlns:?/,""))}return b.add(a.prefix||""),b}(a);for(let a of c)""===a.namespaceURI||e.has(a.prefix)||d.push(a);return d}let H=(0,g.deprecate)(()=>{},"`renderNs()` and `processInner()` are deprecated and will be private in version 7.0. Call `process()` instead of calling or overriding them.","XML_CRYPTO_CANONICALIZATION_INTERNALS"),I=new WeakSet},62119:(a,b)=>{"use strict";var c,d;function e(a){return a&&"object"==typeof a&&Number.isInteger(a.nodeType)&&a.nodeType>=1&&a.nodeType<=11&&"string"==typeof a.nodeName&&"function"==typeof a.appendChild&&"function"==typeof a.removeChild}function f(a){return Array.isArray(a)&&a.every(e)}function g(a,b){return e(b)&&b.nodeType===a}function h(a,b){let d=Object.keys(c).find(b=>c[b]===a);if(!g(a,b))throw Error(`Value is not of type ${d}`)}Object.defineProperty(b,"__esModule",{value:!0}),b.assertIsDocumentFragmentNode=b.assertIsDocumentTypeNode=b.assertIsDocumentNode=b.assertIsCommentNode=b.assertIsProcessingInstructionNode=b.assertIsCDATASectionNode=b.assertIsTextNode=b.assertIsAttributeNode=b.assertIsElementNode=b.isDocumentFragmentNode=b.isDocumentTypeNode=b.isDocumentNode=b.isCommentNode=b.isProcessingInstructionNode=b.isCDATASectionNode=b.isTextNode=b.isAttributeNode=b.isElementNode=b.assertIsArrayOfNodes=b.isArrayOfNodes=b.assertIsNodeLike=b.isNodeLike=b.NodeTypes=void 0,(d=c||(b.NodeTypes=c={}))[d.ELEMENT_NODE=1]="ELEMENT_NODE",d[d.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",d[d.TEXT_NODE=3]="TEXT_NODE",d[d.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",d[d.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",d[d.COMMENT_NODE=8]="COMMENT_NODE",d[d.DOCUMENT_NODE=9]="DOCUMENT_NODE",d[d.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",d[d.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",b.isNodeLike=e,b.assertIsNodeLike=function(a){if(!e(a))throw Error(`Value is not a Node-like object. Received: ${a}`)},b.isArrayOfNodes=f,b.assertIsArrayOfNodes=function(a){if(!f(a))throw Error("Value is not an array of Nodes")},b.isElementNode=a=>g(c.ELEMENT_NODE,a),b.isAttributeNode=a=>g(c.ATTRIBUTE_NODE,a),b.isTextNode=a=>g(c.TEXT_NODE,a),b.isCDATASectionNode=a=>g(c.CDATA_SECTION_NODE,a),b.isProcessingInstructionNode=a=>g(c.PROCESSING_INSTRUCTION_NODE,a),b.isCommentNode=a=>g(c.COMMENT_NODE,a),b.isDocumentNode=a=>g(c.DOCUMENT_NODE,a),b.isDocumentTypeNode=a=>g(c.DOCUMENT_TYPE_NODE,a),b.isDocumentFragmentNode=a=>g(c.DOCUMENT_FRAGMENT_NODE,a),b.assertIsElementNode=a=>{h(c.ELEMENT_NODE,a)},b.assertIsAttributeNode=a=>h(c.ATTRIBUTE_NODE,a),b.assertIsTextNode=a=>h(c.TEXT_NODE,a),b.assertIsCDATASectionNode=a=>h(c.CDATA_SECTION_NODE,a),b.assertIsProcessingInstructionNode=a=>h(c.PROCESSING_INSTRUCTION_NODE,a),b.assertIsCommentNode=a=>h(c.COMMENT_NODE,a),b.assertIsDocumentNode=a=>h(c.DOCUMENT_NODE,a),b.assertIsDocumentTypeNode=a=>h(c.DOCUMENT_TYPE_NODE,a),b.assertIsDocumentFragmentNode=a=>h(c.DOCUMENT_FRAGMENT_NODE,a)},62669:(a,b,c)=>{var d=c(23849),e=c(81349),f=c(13630),g=c(91729),h=e.DOMImplementation,i=d.NAMESPACE,j=g.ParseError,k=g.XMLReader;function l(a){return a.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function m(a){this.options=a||{locator:{}}}function n(){this.cdata=!1}function o(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function p(a){if(a)return"\n@"+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function q(a,b,c){return"string"==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+"":a}function r(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}m.prototype.parseFromString=function(a,b){var c=this.options,d=new k,e=c.domBuilder||new n,g=c.errorHandler,h=c.locator,j=c.xmlns||{},m=/\/x?html?$/.test(b),o=m?f.HTML_ENTITIES:f.XML_ENTITIES;h&&e.setDocumentLocator(h),d.errorHandler=function(a,b,c){if(!a){if(b instanceof n)return b;a=b}var d={},e=a instanceof Function;function f(b){var f=a[b];!f&&e&&(f=2==a.length?function(c){a(b,c)}:a),d[b]=f&&function(a){f("[xmldom "+b+"] "+a+p(c))}||function(){}}return c=c||{},f("warning"),f("error"),f("fatalError"),d}(g,e,h),d.domBuilder=c.domBuilder||e,m&&(j[""]=i.HTML),j.xml=j.xml||i.XML;var q=c.normalizeLineEndings||l;return a&&"string"==typeof a?d.parse(q(a),j,o):d.errorHandler.error("invalid doc source"),e.doc},n.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,b,c,d){var e=this.doc,f=e.createElementNS(a,c||b),g=d.length;r(this,f),this.currentElement=f,this.locator&&o(this.locator,f);for(var h=0;h<g;h++){var a=d.getURI(h),i=d.getValue(h),c=d.getQName(h),j=e.createAttributeNS(a,c);this.locator&&o(d.getLocator(h),j),j.value=j.nodeValue=i,f.setAttributeNode(j)}},endElement:function(a,b,c){var d=this.currentElement;d.tagName,this.currentElement=d.parentNode},startPrefixMapping:function(a,b){},endPrefixMapping:function(a){},processingInstruction:function(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&o(this.locator,c),r(this,c)},ignorableWhitespace:function(a,b,c){},characters:function(a,b,c){if(a=q.apply(this,arguments)){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&o(this.locator,d)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,b,c){a=q.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&o(this.locator,d),r(this,d)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&o(this.locator,e),r(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,p(this.locator))},error:function(a){console.error("[xmldom error] "+a,p(this.locator))},fatalError:function(a){throw new j(a,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){n.prototype[a]=function(){return null}}),b.DOMParser=m},64564:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.EnvelopedSignature=void 0;let d=c(42429),e=c(62119),f=c(61894);class g{constructor(){this.includeComments=!1,this.includeComments=!1}process(a,b){if(null==b.signatureNode){let b=d.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a);return e.isNodeLike(b)&&b.parentNode&&b.parentNode.removeChild(b),a}let c=b.signatureNode;return(0,f.isDescendantOf)(c,a)&&c.parentNode&&c.parentNode.removeChild(c),a}getAlgorithmName(){return"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}}b.EnvelopedSignature=g},65096:function(a,b,c){(function(){var b;b=c(73067),a.exports=(function(){class a extends b{constructor(a){super(a),this.value=""}clone(){return Object.create(this)}substringData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(a){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){return!!super.isEqualNode(a)&&a.data===this.data}}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),a}).call(this)}).call(this)},65756:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getNameIdAsync=b.promiseWithNameId=b.buildXmlBuilderObject=b.buildXml2JsObject=b.parseXml2JsFromString=b.parseDomFromString=b.signXml=b.validateSignature=b.getVerifiedXml=b.warnIfDecryptionWillFailInNextMajor=b.decryptXml=b.xpath=void 0;let d=c(62119),e=c(12749),f=c(28354),g=c(22859),h=c(35387),i=c(74832),j=c(24938),k=c(32046),l=c(86175),m=c(35312),n=c(36481),o=c(26884),p=f.debuglog("node-saml"),q=(a,b,c)=>{let d=(0,k.select)(c,b);if(!a(d))throw Error("Invalid xpath return type");return d},r=a=>d.isArrayOfNodes(a)&&a.every(d.isAttributeNode),s=a=>d.isArrayOfNodes(a)&&a.every(d.isElementNode);b.xpath={selectAttributes:(a,b)=>q(r,a,b),selectElements:(a,b)=>q(s,a,b)},b.decryptXml=async(a,b)=>f.promisify(h.decrypt).bind(h)(a,{key:(0,o.decryptionPvkToPem)(b)});let t=a=>b.xpath.selectElements(a,"./*[local-name()='EncryptionMethod' and namespace-uri(.)='http://www.w3.org/2001/04/xmlenc#']")[0],u=new Set(["http://www.w3.org/2001/04/xmlenc#aes128-cbc","http://www.w3.org/2001/04/xmlenc#aes256-cbc","http://www.w3.org/2001/04/xmlenc#tripledes-cbc"]),v=new Set(["http://www.w3.org/2001/04/xmlenc#sha256","http://www.w3.org/2001/04/xmlenc#sha512","http://www.w3.org/2000/09/xmldsig#sha256","http://www.w3.org/2000/09/xmldsig#sha512"]);b.warnIfDecryptionWillFailInNextMajor=a=>{var c,d;if(!p.enabled)return;let e=b.xpath.selectElements(a,"./*[local-name()='EncryptedData' and namespace-uri(.)='http://www.w3.org/2001/04/xmlenc#']")[0];if(!e)return;let f=null==(c=t(e))?void 0:c.getAttribute("Algorithm");f&&u.has(f)&&p('The %s was decrypted with content encryption algorithm "%s", which the next major version does not decrypt. Configure the identity provider to encrypt with aes128-gcm or aes256-gcm, which this version also decrypts. If it offers neither, and the deployment does not need these contents kept confidential, turn off this encryption at the identity provider: node-saml also accepts the unencrypted form and checks the same signatures either way, but signatures do not hide its contents from the browser or any other system that handles the message.',a.localName,f);let g=((a,c)=>{var d;let e="./*[local-name()='KeyInfo' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",f=b.xpath.selectElements(c,`${e}/*[local-name()='EncryptedKey' and namespace-uri(.)='http://www.w3.org/2001/04/xmlenc#']`)[0];if(f)return f;let g=null==(d=b.xpath.selectElements(c,`${e}/*[local-name()='RetrievalMethod' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']`)[0])?void 0:d.getAttribute("URI");if(!(null==g?void 0:g.startsWith("#")))return;let h=g.slice(1);return b.xpath.selectElements(a,"./*[local-name()='EncryptedKey' and namespace-uri(.)='http://www.w3.org/2001/04/xmlenc#']").find(a=>a.getAttribute("Id")===h)})(a,e);if(!g)return;let h=t(g),i=null==h?void 0:h.getAttribute("Algorithm");if("http://www.w3.org/2001/04/xmlenc#rsa-1_5"===i&&p('The %s was decrypted with key transport algorithm "%s", which the next major version does not decrypt. Configure the identity provider to wrap the key with rsa-oaep-mgf1p and its default SHA-1 digest, which this version also decrypts. If it offers no rsa-oaep-mgf1p, and the deployment does not need these contents kept confidential, turn off this encryption at the identity provider: node-saml also accepts the unencrypted form and checks the same signatures either way, but signatures do not hide its contents from the browser or any other system that handles the message.',a.localName,i),"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"===i&&h){let c=null==(d=b.xpath.selectElements(h,"./*[local-name()='DigestMethod' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0])?void 0:d.getAttribute("Algorithm");c&&v.has(c)&&p('The %s was decrypted with key transport algorithm "%s" and DigestMethod "%s", which the next major version does not decrypt: it uses that digest for OAEP and SHA-1 for MGF1, as XML Encryption 1.1 requires, and this key was wrapped another way. Configure the identity provider to use SHA-1, the default rsa-oaep-mgf1p digest, which both versions decrypt.',a.localName,i,c)}},b.getVerifiedXml=(a,c,d)=>{let e=b.xpath.selectElements(c,"./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']");if(e.length<1)return null;if(e.length>1)throw Error("Too many signatures found for this element");let f=e[0];if(b.xpath.selectElements(f,".//*[local-name(.)='Transform' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']").length>2)throw Error("Invalid signature, too many transforms");for(let e of d){let d=new g.SignedXml;d.publicCert=e,d.loadSignature(f);let h=d.getReferences();if(1!==h.length){p("The signature on the %s element has %d references, so it is ignored and the element is treated as unsigned. SAML requires exactly one, to the element signed (SAML core \xa75.4.2), and the next major version rejects the message. Configure the identity provider to sign the %s with a single reference.",c.localName,h.length,c.localName);break}let i=h[0].uri;if((0,n.assertRequired)(i,"signature reference uri not found"),!i.startsWith("#"))throw Error("Invalid signature: reference URI is not a same-document reference");let j=i.substring(1);if((0,n.assertRequired)(j,"signature reference uri not found"),j.includes("'")||j.includes('"'))throw Error("ref URI included quote character ' or \". Not a valid ID, and not allowed");let k=b.xpath.selectElements(f.ownerDocument,`//*[@ID="${j}"]`);if(1!==k.length)throw Error("Invalid signature: ID cannot refer to more than one element");if(k[0]!==f.parentNode)throw Error("Invalid signature: Referenced node does not refer to its parent element");try{if(!d.checkSignature(a))continue;return d.getSignedReferences()[0]}catch(a){}}return null},b.validateSignature=(a,c,d)=>{let e=`.//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#' and descendant::*[local-name(.)='Reference' and @URI='#${c.getAttribute("ID")}']]`,f=b.xpath.selectElements(c,e);if(1!==f.length)return!1;let g=".//*[local-name(.)='Transform' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#' and ancestor::*[local-name(.)='Reference' and @URI='#"+c.getAttribute("ID")+"']]";if(b.xpath.selectElements(c,g).length>2)throw Error("Invalid signature, too many transforms");let h=f[0];return d.some(b=>w(h,b,a,c))};let w=(a,c,d,e)=>{let f=new g.SignedXml;if(f.publicCert=c,f.loadSignature(a),1!==f.getReferences().length)return!1;let h=f.getReferences()[0].uri;(0,n.assertRequired)(h,"signature reference uri not found");let i="#"===h[0]?h.substring(1):h,j=e.getAttribute("ID")?"ID":"Id";if(e.getAttribute(j)!=i||b.xpath.selectElements(e.ownerDocument,"//*[@"+j+"='"+i+"']").length>1)return!1;try{return f.checkSignature(d)}catch(a){return p.enabled&&p("signature check resulted in an error: %s",a),!1}};b.signXml=(a,b,c,d)=>{var e;if(!a)throw Error("samlMessage is required");if(!c)throw Error("location is required");if(!d)throw Error("options is required");if(!(0,m.isValidSamlSigningOptions)(d))throw Error("options.privateKey is required");let f=null!=(e=d.xmlSignatureTransforms)?e:["http://www.w3.org/2000/09/xmldsig#enveloped-signature","http://www.w3.org/2001/10/xml-exc-c14n#"],h=new g.SignedXml;if(null!=d.signatureAlgorithm&&(h.signatureAlgorithm=l.getSigningAlgorithm(d.signatureAlgorithm)),h.addReference({xpath:b,transforms:f,digestAlgorithm:l.getDigestAlgorithm(d.digestAlgorithm)}),h.privateKey=(0,o.privateKeyToPem)(d.privateKey,"privateKey"),null!=d.publicCert){let a=(0,o.keyInfoToPem)(d.publicCert,"CERTIFICATE","publicCert");(0,n.assertRequired)(g.pemCertificates(a).length>0||void 0,"publicCert must hold at least one certificate"),h.publicCert=a}return h.canonicalizationAlgorithm="http://www.w3.org/2001/10/xml-exc-c14n#",h.computeSignature(a,{location:c}),h.getSignedXml()},b.parseDomFromString=a=>new Promise(function(b,c){function d(a){return c(Error(a))}let f=new e.DOMParser({locator:{},errorHandler:{error:d,fatalError:d}}).parseFromString(a,"text/xml");return Object.prototype.hasOwnProperty.call(f,"documentElement")?b(f):c(Error("Not a valid XML document"))}),b.parseXml2JsFromString=async a=>{let b={explicitRoot:!0,explicitCharkey:!0,tagNameProcessors:[i.processors.stripPrefix]};return new i.Parser(b).parseStringPromise(a)},b.buildXml2JsObject=(a,b)=>new i.Builder({rootName:a,headless:!0}).buildObject(b),b.buildXmlBuilderObject=(a,b)=>j.create(a).end(b?{pretty:!0,indent:" ",newline:"\n"}:{});let x=async a=>{let c=b.xpath.selectAttributes(a,"@Format");return{value:a.textContent,format:c&&c[0]&&c[0].nodeValue}};b.promiseWithNameId=x;let y=async(a,c)=>{let d=b.xpath.selectElements(a,"/*[local-name()='LogoutRequest']/*[local-name()='NameID']"),e=b.xpath.selectElements(a,"/*[local-name()='LogoutRequest']/*[local-name()='EncryptedID']");if(d.length+e.length>1)throw Error("Invalid LogoutRequest: multiple ID elements");if(1===d.length)return(0,b.promiseWithNameId)(d[0]);if(1===e.length){(0,n.assertRequired)(c,"No decryption key found getting name ID for encrypted SAML response");let a=b.xpath.selectElements(e[0],"./*[local-name()='EncryptedData']");if(1!==a.length)throw Error("Invalid LogoutRequest: no EncryptedData element found");let d=a[0].toString(),f=await (0,b.decryptXml)(d,c);(0,b.warnIfDecryptionWillFailInNextMajor)(e[0]);let g=await (0,b.parseDomFromString)(f),h=b.xpath.selectElements(g,"/*[local-name()='NameID']");if(1!==h.length)throw Error("Invalid EncryptedData content");return await (0,b.promiseWithNameId)(h[0])}throw Error("Missing SAML NameID")};b.getNameIdAsync=y},65904:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(d)}return d(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},c}(c(92478))}).call(this)},67289:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;({assign:e}=c(43594)),b=c(26468),c(55443),c(33773),c(46898),c(12430),c(84519),c(469),c(5032),c(15890),c(76491),c(77192),c(1243),c(71920),c(48813),d=c(29394),a.exports=class{constructor(a){var b,c,d;for(b in a||(a={}),this.options=a,c=a.writer||{})f.call(c,b)&&(d=c[b],this["_"+b]=this[b],this[b]=d)}filterOptions(a){var b,c,f,g,h,i,j,k,l;return a||(a={}),a=e({},this.options,a),(b={writer:this}).pretty=a.pretty||!1,b.allowEmpty=a.allowEmpty||!1,b.indent=null!=(c=a.indent)?c:" ",b.newline=null!=(f=a.newline)?f:"\n",b.offset=null!=(g=a.offset)?g:0,b.width=null!=(h=a.width)?h:0,b.dontPrettyTextNodes=null!=(i=null!=(j=a.dontPrettyTextNodes)?j:a.dontprettytextnodes)?i:0,b.spaceBeforeSlash=null!=(k=null!=(l=a.spaceBeforeSlash)?l:a.spacebeforeslash)?k:"",!0===b.spaceBeforeSlash&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=d.None,b}indent(a,b,c){var d;if(!b.pretty||b.suppressPrettyCount);else if(b.pretty&&(d=(c||0)+b.offset+1)>0)return Array(d).join(b.indent);return""}endline(a,b,c){return!b.pretty||b.suppressPrettyCount?"":b.newline}attribute(a,b,c){var d;return this.openAttribute(a,b,c),d=b.pretty&&b.width>0?a.name+'="'+a.value+'"':" "+a.name+'="'+a.value+'"',this.closeAttribute(a,b,c),d}cdata(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<![CDATA[",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+="]]>"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}comment(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"\x3c!-- ",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=" --\x3e"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}declaration(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?xml",b.state=d.InsideTag,e+=' version="'+a.version+'"',null!=a.encoding&&(e+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(e+=' standalone="'+a.standalone+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}docType(a,b,c){var e,f,g,h,i;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,h=this.indent(a,b,c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.endline(a,b,c),b.state=d.InsideTag,f=0,g=(i=a.children).length;f<g;f++)e=i[f],h+=this.writeChildNode(e,b,c+1);b.state=d.CloseTag,h+="]"}return b.state=d.CloseTag,h+=b.spaceBeforeSlash+">",h+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),h}element(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x;if(e||(e=0),q=!1,this.openNode(a,c,e),c.state=d.OpenTag,r=this.indent(a,c,e)+"<"+a.name,c.pretty&&c.width>0)for(p in m=r.length,t=a.attribs)f.call(t,p)&&(g=t[p],m+(s=this.attribute(g,c,e)).length>c.width?(x=this.indent(a,c,e+1)+s,r+=this.endline(a,c,e)+x,m=x.length):(r+=x=" "+s,m+=x.length));else for(p in u=a.attribs)f.call(u,p)&&(g=u[p],r+=this.attribute(g,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw||a.type===b.CData)&&""===a.value}))c.allowEmpty?(r+=">",c.state=d.CloseTag,r+="</"+a.name+">"+this.endline(a,c,e)):(c.state=d.CloseTag,r+=c.spaceBeforeSlash+"/>"+this.endline(a,c,e));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw||j.type===b.CData)&&null!=j.value)r+=">",c.state=d.InsideTag,c.suppressPrettyCount++,q=!0,r+=this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,q=!1,c.state=d.CloseTag,r+="</"+a.name+">"+this.endline(a,c,e);else{if(c.dontPrettyTextNodes){for(k=0,n=(v=a.children).length;k<n;k++)if(((h=v[k]).type===b.Text||h.type===b.Raw||h.type===b.CData)&&null!=h.value){c.suppressPrettyCount++,q=!0;break}}for(r+=">"+this.endline(a,c,e),c.state=d.InsideTag,l=0,o=(w=a.children).length;l<o;l++)h=w[l],r+=this.writeChildNode(h,c,e+1);c.state=d.CloseTag,r+=this.indent(a,c,e)+"</"+a.name+">",q&&c.suppressPrettyCount--,r+=this.endline(a,c,e),c.state=d.None}return this.closeNode(a,c,e),r}writeChildNode(a,c,d){switch(a.type){case b.CData:return this.cdata(a,c,d);case b.Comment:return this.comment(a,c,d);case b.Element:return this.element(a,c,d);case b.Raw:return this.raw(a,c,d);case b.Text:return this.text(a,c,d);case b.ProcessingInstruction:return this.processingInstruction(a,c,d);case b.Dummy:return"";case b.Declaration:return this.declaration(a,c,d);case b.DocType:return this.docType(a,c,d);case b.AttributeDeclaration:return this.dtdAttList(a,c,d);case b.ElementDeclaration:return this.dtdElement(a,c,d);case b.EntityDeclaration:return this.dtdEntity(a,c,d);case b.NotationDeclaration:return this.dtdNotation(a,c,d);default:throw Error("Unknown XML node type: "+a.constructor.name)}}processingInstruction(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?",b.state=d.InsideTag,e+=a.target,a.value&&(e+=" "+a.value),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}raw(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}text(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdAttList(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ATTLIST",b.state=d.InsideTag,e+=" "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(e+=" "+a.defaultValueType),a.defaultValue&&(e+=' "'+a.defaultValue+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdElement(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ELEMENT",b.state=d.InsideTag,e+=" "+a.name+" "+a.value,b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdEntity(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ENTITY",b.state=d.InsideTag,a.pe&&(e+=" %"),e+=" "+a.name,a.value?e+=' "'+a.value+'"':(a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.nData&&(e+=" NDATA "+a.nData)),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}dtdNotation(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!NOTATION",b.state=d.InsideTag,e+=" "+a.name,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?e+=' PUBLIC "'+a.pubID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e}openNode(a,b,c){}closeNode(a,b,c){}openAttribute(a,b,c){}closeAttribute(a,b,c){}}}).call(this)},67925:(a,b,c)=>{var d=c(73669);a.exports=({encryptionPublicCert:a,encryptedKey:b,keyEncryptionMethod:c,keyEncryptionDigest:e})=>`
|
|
16
13
|
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
|
|
17
14
|
<e:EncryptedKey xmlns:e="http://www.w3.org/2001/04/xmlenc#">
|
|
18
15
|
<e:EncryptionMethod Algorithm="${d(c)}">
|
|
@@ -26,4 +23,4 @@ ${C(B(b))}-----END ${a}-----
|
|
|
26
23
|
</e:CipherData>
|
|
27
24
|
</e:EncryptedKey>
|
|
28
25
|
</KeyInfo>
|
|
29
|
-
`},71920:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d,f){if(super(a),null==d)throw Error("Missing DTD entity name. "+this.debugInfo(d));if(null==f)throw Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!c,this.name=this.stringify.name(d),this.type=b.EntityDeclaration,e(f)){if(!f.pubID&&!f.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(f.pubID&&!f.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,null!=f.pubID&&(this.pubID=this.stringify.dtdPubID(f.pubID)),null!=f.sysID&&(this.sysID=this.stringify.dtdSysID(f.sysID)),null!=f.nData&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}else this.value=this.stringify.dtdEntityValue(f),this.internal=!0}toString(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return null}}),a}).call(this)}).call(this)},72616:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;b=c(26468),e=c(67289),d=c(29394),a.exports=class extends e{constructor(a,b){super(b),this.stream=a}endline(a,b,c){return a.isLastRootNode&&b.state===d.CloseTag?"":super.endline(a,b,c)}document(a,b){var c,d,e,f,g,h,i,j,k;for(i=a.children,d=e=0,g=i.length;e<g;d=++e)(c=i[d]).isLastRootNode=d===a.children.length-1;for(b=this.filterOptions(b),j=a.children,k=[],f=0,h=j.length;f<h;f++)c=j[f],k.push(this.writeChildNode(c,b,0));return k}cdata(a,b,c){return this.stream.write(super.cdata(a,b,c))}comment(a,b,c){return this.stream.write(super.comment(a,b,c))}declaration(a,b,c){return this.stream.write(super.declaration(a,b,c))}docType(a,b,c){var e,f,g,h;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,this.stream.write(this.indent(a,b,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,b,c)),b.state=d.InsideTag,f=0,g=(h=a.children).length;f<g;f++)e=h[f],this.writeChildNode(e,b,c+1);b.state=d.CloseTag,this.stream.write("]")}return b.state=d.CloseTag,this.stream.write(b.spaceBeforeSlash+">"),this.stream.write(this.endline(a,b,c)),b.state=d.None,this.closeNode(a,b,c)}element(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(e||(e=0),this.openNode(a,c,e),c.state=d.OpenTag,o=this.indent(a,c,e)+"<"+a.name,c.pretty&&c.width>0)for(n in l=o.length,q=a.attribs)f.call(q,n)&&(g=q[n],l+(p=this.attribute(g,c,e)).length>c.width?(t=this.indent(a,c,e+1)+p,o+=this.endline(a,c,e)+t,l=t.length):(o+=t=" "+p,l+=t.length));else for(n in r=a.attribs)f.call(r,n)&&(g=r[n],o+=this.attribute(g,c,e));if(this.stream.write(o),j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw||a.type===b.CData)&&""===a.value}))c.allowEmpty?(this.stream.write(">"),c.state=d.CloseTag,this.stream.write("</"+a.name+">")):(c.state=d.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw||j.type===b.CData)&&null!=j.value)this.stream.write(">"),c.state=d.InsideTag,c.suppressPrettyCount++,this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,c.state=d.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,c,e)),c.state=d.InsideTag,k=0,m=(s=a.children).length;k<m;k++)h=s[k],this.writeChildNode(h,c,e+1);c.state=d.CloseTag,this.stream.write(this.indent(a,c,e)+"</"+a.name+">")}return this.stream.write(this.endline(a,c,e)),c.state=d.None,this.closeNode(a,c,e)}processingInstruction(a,b,c){return this.stream.write(super.processingInstruction(a,b,c))}raw(a,b,c){return this.stream.write(super.raw(a,b,c))}text(a,b,c){return this.stream.write(super.text(a,b,c))}dtdAttList(a,b,c){return this.stream.write(super.dtdAttList(a,b,c))}dtdElement(a,b,c){return this.stream.write(super.dtdElement(a,b,c))}dtdEntity(a,b,c){return this.stream.write(super.dtdEntity(a,b,c))}dtdNotation(a,b,c){return this.stream.write(super.dtdNotation(a,b,c))}}}).call(this)},72707:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD notation name. "+this.debugInfo(d));if(!e.pubID&&!e.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(d));this.name=this.stringify.name(d),this.type=b.NotationDeclaration,null!=e.pubID&&(this.pubID=this.stringify.dtdPubID(e.pubID)),null!=e.sysID&&(this.sysID=this.stringify.dtdSysID(e.sysID))}return e(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),c.prototype.toString=function(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},73067:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s={}.hasOwnProperty,t=[].splice;({isObject:r,isFunction:q,isEmpty:p,getValue:o}=c(43594)),j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=(function(){class a{constructor(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(84519),e=c(46898),f=c(12430),g=c(55443),h=c(33773),m=c(469),n=c(5032),l=c(15890),i=c(76491),d=c(26468),k=c(82307),c(87074),b=c(97410))}setParent(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f}element(a,b,c){var d,e,f,g,h,i,j,k,l;if(i=null,null===b&&null==c&&([b,c]=[{},null]),null==b&&(b={}),r(b=o(b))||([c,b]=[b,c]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(s.call(a,h))if(q(l=a[h])&&(l=l.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),l);else if(!this.options.separateArrayItems&&Array.isArray(l)&&p(l))i=this.dummy();else if(r(l)&&p(l))i=this.element(h);else if(this.options.keepNullNodes||null!=l)if(!this.options.separateArrayItems&&Array.isArray(l))for(g=0,k=l.length;g<k;g++)e=l[g],(d={})[h]=e,i=this.element(d);else r(l)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(l):(i=this.element(h)).element(l):i=this.element(h,l);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i}insertBefore(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d}insertAfter(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d}remove(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),t.apply(this.parent.children,[a,a-a+1].concat([])),this.parent}node(a,b,c){var d;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||([c,b]=[b,c]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d}text(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this}cdata(a){var b;return b=new e(this,a),this.children.push(b),this}comment(a){var b;return b=new f(this,a),this.children.push(b),this}commentBefore(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this}commentAfter(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this}raw(a){var b;return b=new m(this,a),this.children.push(b),this}dummy(){return new i(this)}instruction(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)s.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this}instructionBefore(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this}instructionAfter(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this}declaration(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e}dtd(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e}up(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}}document(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent}end(a){return this.document().end(a)}prev(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]}next(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]}importDocument(a){var b,c,e,f,g;if((c=a.root().clone()).parent=this,c.isRoot=!1,this.children.push(c),this.type===d.Document&&(c.isRoot=!0,c.documentObject=this,this.rootObject=c,this.children)){for(e=0,f=(g=this.children).length;e<f;e++)if((b=g[e]).type===d.DocType){b.name=c.name;break}}return this}debugInfo(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""}ele(a,b,c){return this.element(a,b,c)}nod(a,b,c){return this.node(a,b,c)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,b){return this.instruction(a,b)}doc(){return this.document()}dec(a,b,c){return this.declaration(a,b,c)}e(a,b,c){return this.element(a,b,c)}n(a,b,c){return this.node(a,b,c)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,b){return this.instruction(a,b)}u(){return this.up()}importXMLBuilder(a){return this.importDocument(a)}attribute(a,b){throw Error("attribute() applies to element nodes only.")}att(a,b){return this.attribute(a,b)}a(a,b){return this.attribute(a,b)}removeAttribute(a){throw Error("attribute() applies to element nodes only.")}replaceChild(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(a){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(a){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return 0!==this.children.length}cloneNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(a,b){return!0}hasAttributes(){return 0!==this.attribs.length}compareDocumentPosition(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following}isSameNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(a){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0}getFeature(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(a){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(a){return!!a&&(a===this||this.isDescendant(a))}isDescendant(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1}isAncestor(a){return a.isDescendant(this)}isPreceding(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c}isFollowing(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c}treePosition(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1}foreachTreeNode(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g}}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},73669:a=>{"use strict";var b=/["'&<>]/;a.exports=function(a){var c,d=""+a,e=b.exec(d);if(!e)return d;var f="",g=0,h=0;for(g=e.index;g<d.length;g++){switch(d.charCodeAt(g)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}h!==g&&(f+=d.substring(h,g)),h=g+1,f+=c}return h!==g?f+d.substring(h,g):f}},74519:function(a){(function(){var b=function(a,b){return function(){return a.apply(b,arguments)}},c={}.hasOwnProperty;a.exports=function(){function a(a){var d,e,f;for(d in this.assertLegalName=b(this.assertLegalName,this),this.assertLegalChar=b(this.assertLegalChar,this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),e=a.stringify||{})c.call(e,d)&&(f=e[d],this[d]=f)}return a.prototype.name=function(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")},a.prototype.text=function(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))},a.prototype.cdata=function(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))},a.prototype.comment=function(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)},a.prototype.raw=function(a){return this.options.noValidation?a:""+a||""},a.prototype.attValue=function(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))},a.prototype.insTarget=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.insValue=function(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)},a.prototype.xmlVersion=function(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a},a.prototype.xmlEncoding=function(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)},a.prototype.xmlStandalone=function(a){return this.options.noValidation?a:a?"yes":"no"},a.prototype.dtdPubID=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdSysID=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdElementValue=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdAttType=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdAttDefault=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdEntityValue=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdNData=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a.prototype.assertLegalChar=function(a){var b,c;if(this.options.noValidation)return a;if(b="","1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=a.match(b))throw Error("Invalid character in string: "+a+" at index "+c.index)}else if("1.1"===this.options.version&&(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=a.match(b)))throw Error("Invalid character in string: "+a+" at index "+c.index);return a},a.prototype.assertLegalName=function(a){if(this.options.noValidation)return a;if(this.assertLegalChar(a),!a.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error("Invalid character in name");return a},a.prototype.textEscape=function(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},a.prototype.attEscape=function(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},a}()}).call(this)},74832:function(a,b,c){(function(){"use strict";var a,d,e,f,g=function(a,b){for(var c in b)h.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},h={}.hasOwnProperty;d=c(56068),a=c(86115),e=c(93005),f=c(2847),b.defaults=d.defaults,b.processors=f,b.ValidationError=function(a){function b(a){this.message=a}return g(b,a),b}(Error),b.Builder=a.Builder,b.Parser=e.Parser,b.parseString=e.parseString,b.parseStringPromise=e.parseStringPromise}).call(this)},75546:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createOptionalCallbackFunction=function(a){return(...b)=>{let c=b[b.length-1];if("function"!=typeof c)return a(...b);{let d;try{d=a(...b.slice(0,-1))}catch(a){c(a instanceof Error?a:Error("Unknown error"));return}c(null,d)}}}},76326:function(a,b){(function(){"use strict";b.stripBOM=function(a){return"\uFEFF"===a[0]?a.substring(1):a}}).call(this)},76491:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a){super(a),this.type=b.Dummy}clone(){return Object.create(this)}toString(a){return""}}}).call(this)},77192:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,e,f,g){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());if(null==d)throw Error("Missing DTD attribute name. "+this.debugInfo(c));if(!e)throw Error("Missing DTD attribute type. "+this.debugInfo(c));if(!f)throw Error("Missing DTD attribute default. "+this.debugInfo(c));if(0!==f.indexOf("#")&&(f="#"+f),!f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(g&&!f.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(d),this.attributeType=this.stringify.dtdAttType(e),g&&(this.defaultValue=this.stringify.dtdAttDefault(g)),this.defaultValueType=f}toString(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))}}}).call(this)},78611:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y={}.hasOwnProperty;({isObject:w,isFunction:v,isPlainObject:x,getValue:u}=c(43594)),b=c(26468),n=c(50962),o=c(84519),f=c(46898),g=c(12430),q=c(469),t=c(5032),p=c(15890),l=c(55443),m=c(33773),h=c(77192),j=c(71920),i=c(1243),k=c(48813),e=c(95759),s=c(31753),r=c(44981),d=c(29394),a.exports=class{constructor(a,c,d){var e;this.name="?xml",this.type=b.Document,a||(a={}),e={},a.writer?x(a.writer)&&(e=a.writer,a.writer=new r):a.writer=new r,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new s(a),this.onDataCallback=c||function(){},this.onEndCallback=d||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(a){var c,d,e,f,g,h,i,j;switch(a.type){case b.CData:this.cdata(a.value);break;case b.Comment:this.comment(a.value);break;case b.Element:for(d in e={},i=a.attribs)y.call(i,d)&&(c=i[d],e[d]=c.value);this.node(a.name,e);break;case b.Dummy:this.dummy();break;case b.Raw:this.raw(a.value);break;case b.Text:this.text(a.value);break;case b.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(g=0,h=(j=a.children).length;g<h;g++)f=j[g],this.createChildNode(f),f.type===b.Element&&this.up();return this}dummy(){return this}node(a,b,c){if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=u(a),null==b&&(b={}),w(b=u(b))||([c,b]=[b,c]),this.currentNode=new o(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this}element(a,c,d){var e,f,g,h,i,j;if(this.currentNode&&this.currentNode.type===b.DocType)this.dtdElement(...arguments);else if(Array.isArray(a)||w(a)||v(a))for(h=this.options.noValidation,this.options.noValidation=!0,(j=new n(this.options).element("TEMP_ROOT")).element(a),this.options.noValidation=h,f=0,g=(i=j.children).length;f<g;f++)e=i[f],this.createChildNode(e),e.type===b.Element&&this.up();else this.node(a,c,d);return this}attribute(a,b){var c,d;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=u(a)),w(a))for(c in a)y.call(a,c)&&(d=a[c],this.attribute(c,d));else v(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.currentNode.attribs[a]=new e(this,a,""):null!=b&&(this.currentNode.attribs[a]=new e(this,a,b));return this}text(a){var b;return this.openCurrent(),b=new t(this,a),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(a){var b;return this.openCurrent(),b=new f(this,a),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(a){var b;return this.openCurrent(),b=new g(this,a),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=u(a)),null!=b&&(b=u(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(w(a))for(d in a)y.call(a,d)&&(e=a[d],this.instruction(d,e));else v(b)&&(b=b.apply()),g=new p(this,a,b),this.onData(this.writer.processingInstruction(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new l(this,a,b,c),this.onData(this.writer.declaration(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new m(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdElement(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(a,b,c,d,e){var f;return this.openCurrent(),f=new h(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(a,b){var c;return this.openCurrent(),c=new j(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(a,b){var c;return this.openCurrent(),c=new j(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(a,b){var c;return this.openCurrent(),c=new k(this,a,b),this.onData(this.writer.dtdNotation(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(a){var c,e,f,g;if(!a.isOpen){if(this.root||0!==this.currentLevel||a.type!==b.Element||(this.root=a),e="",a.type===b.Element){for(f in this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,g=a.attribs)y.call(g,f)&&(c=g[f],e+=this.writer.attribute(c,this.writerOptions,this.currentLevel));e+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.children?(e+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,e+=">"),e+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(e,this.currentLevel),a.isOpen=!0}}closeNode(a){var c;if(!a.isClosed)return c="",this.writerOptions.state=d.CloseTag,c=a.type===b.Element?this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(c,this.currentLevel),a.isClosed=!0}onData(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(a){return null==a?"":"node: <"+a+">"}ele(){return this.element(...arguments)}nod(a,b,c){return this.node(a,b,c)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,b){return this.instruction(a,b)}dec(a,b,c){return this.declaration(a,b,c)}dtd(a,b,c){return this.doctype(a,b,c)}e(a,b,c){return this.element(a,b,c)}n(a,b,c){return this.node(a,b,c)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,b){return this.instruction(a,b)}att(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}}}).call(this)},81349:(a,b,c)=>{var d=c(23849),e=d.find,f=d.NAMESPACE,g=d.tagNamePattern;function h(a){return""!==a}function i(a,b){return a.hasOwnProperty(b)||(a[b]=!0),a}function j(a){return a?Object.keys((a?a.split(/[\t\n\f\r ]+/).filter(h):[]).reduce(i,{})):[]}function k(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}function l(a,b){var c=a.prototype;if(!(c instanceof b)){function d(){}d.prototype=b.prototype,k(c,d=new d),a.prototype=c=d}c.constructor!=a&&("function"!=typeof a&&console.error("unknown Class:"+a),c.constructor=a)}var m={},n=m.ELEMENT_NODE=1,o=m.ATTRIBUTE_NODE=2,p=m.TEXT_NODE=3,q=m.CDATA_SECTION_NODE=4,r=m.ENTITY_REFERENCE_NODE=5,s=m.ENTITY_NODE=6,t=m.PROCESSING_INSTRUCTION_NODE=7,u=m.COMMENT_NODE=8,v=m.DOCUMENT_NODE=9,w=m.DOCUMENT_TYPE_NODE=10,x=m.DOCUMENT_FRAGMENT_NODE=11,y=m.NOTATION_NODE=12,z={},A={};A[1]="Index size error",z.INDEX_SIZE_ERR=1,A[2]="DOMString size error",z.DOMSTRING_SIZE_ERR=2;var B=(A[3]="Hierarchy request error",z.HIERARCHY_REQUEST_ERR=3);A[4]="Wrong document",z.WRONG_DOCUMENT_ERR=4;var C=(A[5]="Invalid character",z.INVALID_CHARACTER_ERR=5);A[6]="No data allowed",z.NO_DATA_ALLOWED_ERR=6,A[7]="No modification allowed",z.NO_MODIFICATION_ALLOWED_ERR=7;var D=(A[8]="Not found",z.NOT_FOUND_ERR=8);A[9]="Not supported",z.NOT_SUPPORTED_ERR=9;var E=(A[10]="Attribute in use",z.INUSE_ATTRIBUTE_ERR=10),F=(A[11]="Invalid state",z.INVALID_STATE_ERR=11);function G(a,b){if(b instanceof Error)var c=b;else c=this,Error.call(this,A[a]),this.message=A[a],Error.captureStackTrace&&Error.captureStackTrace(this,G);return c.code=a,b&&(this.message=this.message+": "+b),c}function H(){}function I(a,b){this._node=a,this._refresh=b,J(this)}function J(a){var b=a._node._inc||a._node.ownerDocument._inc;if(a._inc!==b){var c=a._refresh(a._node);if(av(a,"length",c.length),!a.$$length||c.length<a.$$length)for(var d=c.length;d in a;d++)Object.prototype.hasOwnProperty.call(a,d)&&delete a[d];k(c,a),a._inc=b}}function K(){this._nameIndex=Object.create(null)}function L(a,b){for(var c=a.length;c--;)if(a[c]===b)return c}function M(a,b){a._nameIndex[b.nodeName]===b&&delete a._nameIndex[b.nodeName]}function N(a,b,c,d){if(d?(b[L(b,d)]=c,M(b,d)):b[b.length++]=c,b._nameIndex[c.nodeName]=c,a){c.ownerElement=a;var e,g,h,i=a.ownerDocument;i&&(d&&V(i,a,d),e=i,g=a,h=c,e&&e._inc++,h.namespaceURI===f.XMLNS&&(g._nsMap[h.prefix?h.localName:""]=h.value))}}function O(a,b,c){var d=L(b,c);if(d>=0){for(var e=b.length-1;d<e;)b[d]=b[++d];if(b.length=e,M(b,c),a){var f=a.ownerDocument;f&&(V(f,a,c),c.ownerElement=null)}}else throw new G(D,Error(a.tagName+"@"+c))}function P(){}function Q(){}function R(a){return"<"==a&&"<"||">"==a&&">"||"&"==a&&"&"||'"'==a&&"""||"&#"+a.charCodeAt()+";"}function S(a,b){return T(a,null,{enter:function(a){return!b(a)||T.STOP}})===T.STOP}function T(a,b,c){for(var d=[{node:a,context:b,phase:T.ENTER}];d.length>0;){var e=d.pop();if(e.phase===T.ENTER){var f=c.enter(e.node,e.context);if(f===T.STOP)return T.STOP;if(d.push({node:e.node,context:f,phase:T.EXIT}),null==f)continue;for(var g=e.node.lastChild;g;)d.push({node:g,context:f,phase:T.ENTER}),g=g.previousSibling}else c.exit&&c.exit(e.node,e.context)}}function U(){this.ownerDocument=this}function V(a,b,c,d){a&&a._inc++,c.namespaceURI===f.XMLNS&&delete b._nsMap[c.prefix?c.localName:""]}function W(a,b,c){if(a&&a._inc){a._inc++;var d=b.childNodes;if(c)d[d.length++]=c;else{for(var e=b.firstChild,f=0;e;)d[f++]=e,e=e.nextSibling;d.length=f,delete d[d.length]}}}function X(a,b){var c=b.previousSibling,d=b.nextSibling;return c?c.nextSibling=d:a.firstChild=d,d?d.previousSibling=c:a.lastChild=c,b.parentNode=null,b.previousSibling=null,b.nextSibling=null,W(a.ownerDocument,a),b}function Y(a){return a&&a.nodeType===Q.DOCUMENT_TYPE_NODE}function Z(a){return a&&a.nodeType===Q.ELEMENT_NODE}function $(a){return a&&a.nodeType===Q.TEXT_NODE}function _(a,b){var c=a.childNodes||[];if(e(c,Z)||Y(b))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function aa(a,b){var c=a.childNodes||[];if(e(c,function(a){return Z(a)&&a!==b}))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function ab(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!aa(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!aa(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,function(a){return Y(a)&&a!==c}))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element")}}function ac(a,b,c,d){if(!(a&&(a.nodeType===Q.DOCUMENT_NODE||a.nodeType===Q.DOCUMENT_FRAGMENT_NODE||a.nodeType===Q.ELEMENT_NODE)))throw new G(B,"Unexpected parent node type "+a.nodeType);if(c&&c.parentNode!==a)throw new G(D,"child not in parent");if(!(b&&(Z(b)||$(b)||Y(b)||b.nodeType===Q.DOCUMENT_FRAGMENT_NODE||b.nodeType===Q.COMMENT_NODE||b.nodeType===Q.PROCESSING_INSTRUCTION_NODE))||Y(b)&&a.nodeType!==Q.DOCUMENT_NODE)throw new G(B,"Unexpected node type "+b.nodeType+" for parent node type "+a.nodeType);a.nodeType===Q.DOCUMENT_NODE&&(d||function(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!_(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!_(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,Y))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element");if(!c&&h)throw new G(B,"Doctype can not be appended since element is present")}})(a,b,c);var f=b.parentNode;if(f&&f.removeChild(b),b.nodeType===x){var g=b.firstChild;if(null==g)return b;var h=b.lastChild}else g=h=b;var i=c?c.previousSibling:a.lastChild;g.previousSibling=i,h.nextSibling=c,i?i.nextSibling=g:a.firstChild=g,null==c?a.lastChild=h:c.previousSibling=h;do g.parentNode=a,ad(g,a.ownerDocument||a);while(g!==h&&(g=g.nextSibling));return W(a.ownerDocument||a,a),b.nodeType==x&&(b.firstChild=b.lastChild=null),b}function ad(a,b){if(a.ownerDocument!==b){if(a.ownerDocument=b,a.nodeType===n&&a.attributes)for(var c=0;c<a.attributes.length;c++){var d=a.attributes.item(c);d&&(d.ownerDocument=b)}for(var e=a.firstChild;e;)ad(e,b),e=e.nextSibling}}function ae(){this._nsMap={}}function af(){}function ag(){}function ah(){}function ai(){}function aj(){}function ak(){}function al(){}function am(){}function an(){}function ao(){}function ap(){}function aq(){}function ar(a,b,c){var d=!!c&&!!c.requireWellFormed,e=[],f=9==this.nodeType&&this.documentElement||this,g=f.prefix,h=f.namespaceURI;if(h&&null==g){var g=f.lookupPrefix(h);if(null==g)var i=[{namespace:h,prefix:null}]}return au(this,e,a,b,i,d),e.join("")}function as(a,b,c){var d=a.prefix||"",e=a.namespaceURI;if(!e||"xml"===d&&e===f.XML||e===f.XMLNS)return!1;for(var g=c.length;g--;){var h=c[g];if(h.prefix===d)return h.namespace!==e}return!0}function at(a,b,c,d){if(d&&!g.test(b))throw new G(F,'The attribute name "'+b+'" is not a valid XML QName');a.push(" ",b,'="',c.replace(/[<>&"\t\n\r]/g,R),'"')}function au(a,b,c,d,e,h){e||(e=[]),T(a,{ns:e,isHTML:c},{enter:function(a,c){var e=c.ns,i=c.isHTML;if(d){if(!(a=d(a)))return null;if("string"==typeof a)return b.push(a),null}switch(a.nodeType){case n:var j,k=a.attributes,l=k.length,m=a.tagName;i=f.isHTML(a.namespaceURI)||i;var s=m;if(!i&&!a.prefix&&a.namespaceURI){for(var y=0;y<k.length;y++)if("xmlns"===k.item(y).name){j=k.item(y).value;break}if(!j)for(var z=e.length-1;z>=0;z--){var A=e[z];if(""===A.prefix&&A.namespace===a.namespaceURI){j=A.namespace;break}}if(j!==a.namespaceURI)for(var z=e.length-1;z>=0;z--){var A=e[z];if(A.namespace===a.namespaceURI){A.prefix&&(s=A.prefix+":"+m);break}}}if(h&&!g.test(s))throw new G(F,'The element name "'+s+'" is not a valid XML QName');b.push("<",s);for(var B=e.slice(),C=0;C<l;C++){var D=k.item(C);"xmlns"==D.prefix?B.push({prefix:D.localName,namespace:D.value}):"xmlns"==D.nodeName&&B.push({prefix:"",namespace:D.value})}for(var C=0;C<l;C++){var D=k.item(C);if(as(D,i,B)){var E=D.prefix||"",H=D.namespaceURI;at(b,E?"xmlns:"+E:"xmlns",H,h),B.push({prefix:E,namespace:H})}var I=d?d(D):D;I&&("string"==typeof I?b.push(I):at(b,I.name,I.value,h))}if(m===s&&as(a,i,B)){var J=a.prefix||"",H=a.namespaceURI;at(b,J?"xmlns:"+J:"xmlns",H,h),B.push({prefix:J,namespace:H})}var K=a.firstChild;if(!K&&(!i||/^(?:meta|link|img|br|hr|input)$/i.test(m)))return b.push("/>"),null;if(b.push(">"),i&&/^script$/i.test(m)){for(;K;)K.data?b.push(K.data):au(K,b,i,d,B.slice(),h),K=K.nextSibling;return b.push("</",m,">"),null}return{ns:B,isHTML:i,tag:s};case v:case x:return{ns:e.slice(),isHTML:i,tag:null};case o:return at(b,a.name,a.value,h),null;case p:return b.push(a.data.replace(/[<&>]/g,R)),null;case q:if(h&&-1!==a.data.indexOf("]]>"))throw new G(F,'The CDATASection data contains "]]>"');return b.push("<![CDATA[",a.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case u:if(h&&-1!==a.data.indexOf("--\x3e"))throw new G(F,'The comment node data contains "--\x3e"');return b.push("\x3c!--",a.data,"--\x3e"),null;case w:if(h){if(!g.test(a.name))throw new G(F,'The doctype name "'+a.name+'" is not a valid XML Name');if(a.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(a.publicId))throw new G(F,"DocumentType publicId is not a valid PubidLiteral");if(a.systemId&&!/^("[^"]*"|'[^']*')$/.test(a.systemId))throw new G(F,"DocumentType systemId is not a valid SystemLiteral");if(a.internalSubset&&-1!==a.internalSubset.indexOf("]>"))throw new G(F,'DocumentType internalSubset contains "]>"')}var L=a.publicId,M=a.systemId;if(b.push("<!DOCTYPE ",a.name),L)b.push(" PUBLIC ",L),M&&"."!=M&&b.push(" ",M),b.push(">");else if(M&&"."!=M)b.push(" SYSTEM ",M,">");else{var N=a.internalSubset;N&&b.push(" [",N,"]"),b.push(">")}return null;case t:if(h){if(!g.test(a.target)||-1!==a.target.indexOf(":")||"xml"===a.target.toLowerCase())throw new G(F,'The processing instruction target "'+a.target+'" is not a valid XML NCName or is reserved');if(-1!==a.data.indexOf("?>"))throw new G(F,'The ProcessingInstruction data contains "?>"')}return b.push("<?",a.target," ",a.data,"?>"),null;case r:if(h&&!g.test(a.nodeName))throw new G(F,'The entity reference name "'+a.nodeName+'" is not a valid XML Name');return b.push("&",a.nodeName,";"),null;default:return b.push("??",a.nodeName),null}},exit:function(a,c){c&&c.tag&&b.push("</",c.tag,">")}})}function av(a,b,c){a[b]=c}A[12]="Syntax error",z.SYNTAX_ERR=12,A[13]="Invalid modification",z.INVALID_MODIFICATION_ERR=13,A[14]="Invalid namespace",z.NAMESPACE_ERR=14,A[15]="Invalid access",z.INVALID_ACCESS_ERR=15,G.prototype=Error.prototype,k(z,G),H.prototype={length:0,item:function(a){return a>=0&&a<this.length?this[a]:null},toString:function(a,b,c){for(var d=!!c&&!!c.requireWellFormed,e=[],f=0;f<this.length;f++)au(this[f],e,a,b,null,d);return e.join("")},filter:function(a){return Array.prototype.filter.call(this,a)},indexOf:function(a){return Array.prototype.indexOf.call(this,a)}},I.prototype.item=function(a){return J(this),this[a]||null},l(I,H),K.prototype={length:0,item:H.prototype.item,getNamedItem:function(a){for(var b=this.length;b--;){var c=this[b];if(c.nodeName==a)return c}},setNamedItem:function(a){var b=a.ownerElement;if(b&&b!=this._ownerElement)throw new G(E);var c=this._nameIndex[a.nodeName];return N(this._ownerElement,this,a,c),c},setNamedItemNS:function(a){var b,c=a.ownerElement;if(c&&c!=this._ownerElement)throw new G(E);return b=this.getNamedItemNS(a.namespaceURI,a.localName),N(this._ownerElement,this,a,b),b},removeNamedItem:function(a){var b=this.getNamedItem(a);return O(this._ownerElement,this,b),b},removeNamedItemNS:function(a,b){var c=this.getNamedItemNS(a,b);return O(this._ownerElement,this,c),c},getNamedItemNS:function(a,b){for(var c=this.length;c--;){var d=this[c];if(d.localName==b&&d.namespaceURI==a)return d}return null}},P.prototype={hasFeature:function(a,b){return!0},createDocument:function(a,b,c){var d=new U;if(d.implementation=this,d.childNodes=new H,d.doctype=c||null,c&&d.appendChild(c),b){var e=d.createElementNS(a,b);d.appendChild(e)}return d},createDocumentType:function(a,b,c){var d=new ak;return d.name=a,d.nodeName=a,d.publicId=b||"",d.systemId=c||"",d}},Q.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(a,b){return ac(this,a,b)},replaceChild:function(a,b){ac(this,a,b,ab),b&&this.removeChild(b)},removeChild:function(a){return X(this,a)},appendChild:function(a){return this.insertBefore(a,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(a){return function a(b,c,d){var e;return T(c,null,{enter:function(c,f){var g=new c.constructor;for(var h in c)if(Object.prototype.hasOwnProperty.call(c,h)){var i=c[h];"object"!=typeof i&&i!=g[h]&&(g[h]=i)}c.childNodes&&(g.childNodes=new H),g.ownerDocument=b;var j=d;switch(g.nodeType){case n:var k=c.attributes,l=g.attributes=new K,m=k.length;l._ownerElement=g;for(var p=0;p<m;p++)g.setAttributeNode(a(b,k.item(p),!0));break;case o:j=!0}return null!==f?f.appendChild(g):e=g,j?g:null}}),e}(this.ownerDocument||this,this,a)},normalize:function(){T(this,null,{enter:function(a){for(var b=a.firstChild;b;){var c=b.nextSibling;if(null!==c&&c.nodeType===p&&b.nodeType===p){for(var d=[],e=c;null!==e&&e.nodeType===p;)d.push(e.data),e=e.nextSibling;for(var f=b.nextSibling;f!==e;){var g=f.nextSibling;f.parentNode=null,f.previousSibling=null,f.nextSibling=null,f=g}b.nextSibling=e,null!==e?e.previousSibling=b:a.lastChild=b,b.appendData(d.join("")),W(a.ownerDocument,a),b=e}else b=c}return!0}})},isSupported:function(a,b){return this.ownerDocument.implementation.hasFeature(a,b)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(a){for(var b=this;b;){var c=b._nsMap;if(c){for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)&&c[d]===a)return d}b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},lookupNamespaceURI:function(a){for(var b=this;b;){var c=b._nsMap;if(c&&Object.prototype.hasOwnProperty.call(c,a))return c[a];b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},isDefaultNamespace:function(a){return null==this.lookupPrefix(a)}},k(m,Q),k(m,Q.prototype),T.STOP=Symbol("walkDOM.STOP"),T.ENTER=0,T.EXIT=1,U.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(a,b){if(a.nodeType==x){for(var c=a.firstChild;c;){var d=c.nextSibling;this.insertBefore(c,b),c=d}return a}return ac(this,a,b),ad(a,this),null===this.documentElement&&a.nodeType===n&&(this.documentElement=a),a},removeChild:function(a){return this.documentElement==a&&(this.documentElement=null),X(this,a)},replaceChild:function(a,b){ac(this,a,b,ab),ad(a,this),b&&this.removeChild(b),Z(a)&&(this.documentElement=a)},importNode:function(a,b){var c,d,e,f;return c=this,d=a,e=b,T(d,null,{enter:function(a,b){var d=a.cloneNode(!1);return d.ownerDocument=c,d.parentNode=null,null===b?f=d:b.appendChild(d),a.nodeType===o||e?d:null}}),f},getElementById:function(a){var b=null;return S(this.documentElement,function(c){if(c.nodeType==n&&c.getAttribute("id")==a)return b=c,!0}),b},getElementsByClassName:function(a){var b=j(a);return new I(this,function(c){var d=[];return b.length>0&&S(c.documentElement,function(e){if(e!==c&&e.nodeType===n){var f=e.getAttribute("class");if(f){var g=a===f;if(!g){var h=j(f);g=b.every(function(a){return h&&-1!==h.indexOf(a)})}g&&d.push(e)}}}),d})},createElement:function(a){var b=new ae;return b.ownerDocument=this,b.nodeName=a,b.tagName=a,b.localName=a,b.childNodes=new H,(b.attributes=new K)._ownerElement=b,b},createDocumentFragment:function(){var a=new ao;return a.ownerDocument=this,a.childNodes=new H,a},createTextNode:function(a){var b=new ah;return b.ownerDocument=this,b.appendData(a),b},createComment:function(a){var b=new ai;return b.ownerDocument=this,b.appendData(a),b},createCDATASection:function(a){if(-1!==a.indexOf("]]>"))throw new G(C,'data contains "]]>"');var b=new aj;return b.ownerDocument=this,b.appendData(a),b},createProcessingInstruction:function(a,b){var c=new ap;return c.ownerDocument=this,c.tagName=c.nodeName=c.target=a,c.nodeValue=c.data=b,c},createAttribute:function(a){var b=new af;return b.ownerDocument=this,b.name=a,b.nodeName=a,b.localName=a,b.specified=!0,b},createEntityReference:function(a){if(!g.test(a))throw new G(C,'not a valid xml name "'+a+'"');var b=new an;return b.ownerDocument=this,b.nodeName=a,b},createElementNS:function(a,b){var c=new ae,d=b.split(":"),e=c.attributes=new K;return c.childNodes=new H,c.ownerDocument=this,c.nodeName=b,c.tagName=b,c.namespaceURI=a,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,e._ownerElement=c,c},createAttributeNS:function(a,b){var c=new af,d=b.split(":");return c.ownerDocument=this,c.nodeName=b,c.name=b,c.namespaceURI=a,c.specified=!0,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,c}},l(U,Q),ae.prototype={nodeType:n,hasAttribute:function(a){return null!=this.getAttributeNode(a)},getAttribute:function(a){var b=this.getAttributeNode(a);return b&&b.value||""},getAttributeNode:function(a){return this.attributes.getNamedItem(a)},setAttribute:function(a,b){var c=this.ownerDocument.createAttribute(a);c.value=c.nodeValue=""+b,this.setAttributeNode(c)},removeAttribute:function(a){var b=this.getAttributeNode(a);b&&this.removeAttributeNode(b)},appendChild:function(a){return a.nodeType===x?this.insertBefore(a,null):(a.parentNode&&a.parentNode.removeChild(a),a.parentNode=this,a.previousSibling=this.lastChild,a.nextSibling=null,a.previousSibling?a.previousSibling.nextSibling=a:this.firstChild=a,this.lastChild=a,W(this.ownerDocument,this,a),ad(a,this.ownerDocument||this),a)},setAttributeNode:function(a){return this.attributes.setNamedItem(a)},setAttributeNodeNS:function(a){return this.attributes.setNamedItemNS(a)},removeAttributeNode:function(a){return this.attributes.removeNamedItem(a.nodeName)},removeAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);c&&this.removeAttributeNode(c)},hasAttributeNS:function(a,b){return null!=this.getAttributeNodeNS(a,b)},getAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);return c&&c.value||""},setAttributeNS:function(a,b,c){var d=this.ownerDocument.createAttributeNS(a,b);d.value=d.nodeValue=""+c,this.setAttributeNode(d)},getAttributeNodeNS:function(a,b){return this.attributes.getNamedItemNS(a,b)},getElementsByTagName:function(a){return new I(this,function(b){var c=[];return S(b,function(d){d!==b&&d.nodeType==n&&("*"===a||d.tagName==a)&&c.push(d)}),c})},getElementsByTagNameNS:function(a,b){return new I(this,function(c){var d=[];return S(c,function(e){e!==c&&e.nodeType===n&&("*"===a||e.namespaceURI===a)&&("*"===b||e.localName==b)&&d.push(e)}),d})}},U.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,l(ae,Q),af.prototype.nodeType=o,l(af,Q),ag.prototype={data:"",substringData:function(a,b){return this.data.substring(a,a+b)},appendData:function(a){a=this.data+a,this.nodeValue=this.data=a,this.length=a.length},insertData:function(a,b){this.replaceData(a,0,b)},appendChild:function(a){throw Error(A[B])},deleteData:function(a,b){this.replaceData(a,b,"")},replaceData:function(a,b,c){c=this.data.substring(0,a)+c+this.data.substring(a+b),this.nodeValue=this.data=c,this.length=c.length}},l(ag,Q),ah.prototype={nodeName:"#text",nodeType:p,splitText:function(a){var b=this.data,c=b.substring(a);b=b.substring(0,a),this.data=this.nodeValue=b,this.length=b.length;var d=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling),d}},l(ah,ag),ai.prototype={nodeName:"#comment",nodeType:u},l(ai,ag),aj.prototype={nodeName:"#cdata-section",nodeType:q},l(aj,ag),ak.prototype.nodeType=w,l(ak,Q),al.prototype.nodeType=y,l(al,Q),am.prototype.nodeType=s,l(am,Q),an.prototype.nodeType=r,l(an,Q),ao.prototype.nodeName="#document-fragment",ao.prototype.nodeType=x,l(ao,Q),ap.prototype.nodeType=t,l(ap,Q),aq.prototype.serializeToString=function(a,b,c,d){return ar.call(a,b,c,d)},Q.prototype.toString=ar;try{Object.defineProperty&&(Object.defineProperty(I.prototype,"length",{get:function(){return J(this),this.$$length}}),Object.defineProperty(Q.prototype,"textContent",{get:function(){if(this.nodeType===n||this.nodeType===x){var a=[];return T(this,null,{enter:function(b){return b.nodeType===n||b.nodeType===x||(b.nodeType===t||b.nodeType===u?null:void a.push(b.nodeValue))}}),a.join("")}return this.nodeValue},set:function(a){switch(this.nodeType){case n:case x:for(;this.firstChild;)this.removeChild(this.firstChild);(a||String(a))&&this.appendChild(this.ownerDocument.createTextNode(a));break;default:this.data=a,this.value=a,this.nodeValue=a}}}),av=function(a,b,c){a["$$"+b]=c})}catch(a){}b.DocumentType=ak,b.DOMException=G,b.DOMImplementation=P,b.Element=ae,b.Node=Q,b.NodeList=H,b.walkDOM=T,b.XMLSerializer=aq},81654:(a,b,c)=>{!function(a){a.parser=function(a,b){return new h(a,b)},a.SAXParser=h,a.SAXStream=j,a.createStream=function(a,b){return new j(a,b)},a.MAX_BUFFER_LENGTH=65536;var b,d,e,f,g=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function h(b,c){if(!(this instanceof h))return new h(b,c);(function(a){for(var b=0,c=g.length;b<c;b++)a[g[b]]=""})(this),this.q=this.c="",this.bufferCheckPosition=a.MAX_BUFFER_LENGTH,this.encoding=null,this.opt=c||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.opt.maxEntityCount=this.opt.maxEntityCount||512,this.opt.maxEntityDepth=this.opt.maxEntityDepth||4,this.entityCount=this.entityDepth=0,this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!b,this.noscript=!!(b||this.opt.noscript),this.state=w.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(o)),void 0===this.opt.unquotedAttributeValues&&(this.opt.unquotedAttributeValues=!b),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),y(this,"onready")}a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(a){function b(){}return b.prototype=a,new b}),Object.keys||(Object.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b}),h.prototype={end:function(){E(this)},write:function(b){if(this.error)throw this.error;if(this.closed)return D(this,"Cannot write after close. Assign an onready handler.");if(null===b)return E(this);"object"==typeof b&&(b=b.toString());for(var c=0,d="";d=L(b,c++),this.c=d,d;)switch(this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++),this.state){case w.BEGIN:if(this.state=w.BEGIN_WHITESPACE,"\uFEFF"===d)continue;K(this,d);continue;case w.BEGIN_WHITESPACE:K(this,d);continue;case w.TEXT:if(this.sawRoot&&!this.closedRoot){for(var e=c-1;d&&"<"!==d&&"&"!==d;)(d=L(b,c++))&&this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++);this.textNode+=b.substring(e,c-1)}"<"!==d||this.sawRoot&&this.closedRoot&&!this.strict?(t(d)||this.sawRoot&&!this.closedRoot||F(this,"Text data outside of root node."),"&"===d?this.state=w.TEXT_ENTITY:this.textNode+=d):(this.state=w.OPEN_WAKA,this.startTagPosition=this.position);continue;case w.SCRIPT:"<"===d?this.state=w.SCRIPT_ENDING:this.script+=d;continue;case w.SCRIPT_ENDING:"/"===d?this.state=w.CLOSE_TAG:(this.script+="<"+d,this.state=w.SCRIPT);continue;case w.OPEN_WAKA:"!"===d?(this.state=w.SGML_DECL,this.sgmlDecl=""):t(d)||(v(p,d)?(this.state=w.OPEN_TAG,this.tagName=d):"/"===d?(this.state=w.CLOSE_TAG,this.tagName=""):"?"===d?(this.state=w.PROC_INST,this.procInstName=this.procInstBody=""):(F(this,"Unencoded <"),this.startTagPosition+1<this.position&&(d=Array(this.position-this.startTagPosition).join(" ")+d),this.textNode+="<"+d,this.state=w.TEXT));continue;case w.SGML_DECL:if(this.sgmlDecl+d==="--"){this.state=w.COMMENT,this.comment="",this.sgmlDecl="";continue}this.doctype&&!0!==this.doctype&&this.sgmlDecl?(this.state=w.DOCTYPE_DTD,this.doctype+="<!"+this.sgmlDecl+d,this.sgmlDecl=""):k.test(this.sgmlDecl+d)?(A(this,"onopencdata"),this.state=w.CDATA,this.sgmlDecl="",this.cdata=""):l.test(this.sgmlDecl+d)?(this.state=w.DOCTYPE,(this.doctype||this.sawRoot)&&F(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===d?(A(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):(u(d)&&(this.state=w.SGML_DECL_QUOTED),this.sgmlDecl+=d);continue;case w.SGML_DECL_QUOTED:d===this.q&&(this.state=w.SGML_DECL,this.q=""),this.sgmlDecl+=d;continue;case w.DOCTYPE:">"===d?(this.state=w.TEXT,A(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=d,"["===d?this.state=w.DOCTYPE_DTD:u(d)&&(this.state=w.DOCTYPE_QUOTED,this.q=d));continue;case w.DOCTYPE_QUOTED:this.doctype+=d,d===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:"]"===d?(this.doctype+=d,this.state=w.DOCTYPE):"<"===d?(this.state=w.OPEN_WAKA,this.startTagPosition=this.position):u(d)?(this.doctype+=d,this.state=w.DOCTYPE_DTD_QUOTED,this.q=d):this.doctype+=d;continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=d,d===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===d?this.state=w.COMMENT_ENDING:this.comment+=d;continue;case w.COMMENT_ENDING:"-"===d?(this.state=w.COMMENT_ENDED,this.comment=C(this.opt,this.comment),this.comment&&A(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+d,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==d?(F(this,"Malformed comment"),this.comment+="--"+d,this.state=w.COMMENT):this.doctype&&!0!==this.doctype?this.state=w.DOCTYPE_DTD:this.state=w.TEXT;continue;case w.CDATA:for(var e=c-1;d&&"]"!==d;)(d=L(b,c++))&&this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++);this.cdata+=b.substring(e,c-1),"]"===d&&(this.state=w.CDATA_ENDING);continue;case w.CDATA_ENDING:"]"===d?this.state=w.CDATA_ENDING_2:(this.cdata+="]"+d,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===d?(this.cdata&&A(this,"oncdata",this.cdata),A(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===d?this.cdata+="]":(this.cdata+="]]"+d,this.state=w.CDATA);continue;case w.PROC_INST:"?"===d?this.state=w.PROC_INST_ENDING:t(d)?this.state=w.PROC_INST_BODY:this.procInstName+=d;continue;case w.PROC_INST_BODY:!this.procInstBody&&t(d)||("?"===d?this.state=w.PROC_INST_ENDING:this.procInstBody+=d);continue;case w.PROC_INST_ENDING:if(">"===d){let a={name:this.procInstName,body:this.procInstBody};!function(a,b){if(a.strict&&a.encoding&&b&&"xml"===b.name){let g,h;var c,d,e,f=(d=(c=b.body)&&c.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i))?d[2]:null;f&&(e=a.encoding,g=z(e),h=z(f),g&&h&&("utf16"===h?"utf16le"!==g&&"utf16be"!==g:g!==h))&&F(a,"XML declaration encoding "+f+" does not match detected stream encoding "+a.encoding.toUpperCase())}}(this,a),A(this,"onprocessinginstruction",a),this.procInstName=this.procInstBody="",this.state=w.TEXT}else this.procInstBody+="?"+d,this.state=w.PROC_INST_BODY;continue;case w.OPEN_TAG:v(q,d)?this.tagName+=d:(!function(a){a.strict||(a.tagName=a.tagName[a.looseCase]());var b=a.tags[a.tags.length-1]||a,c=a.tag={name:a.tagName,attributes:{}};a.opt.xmlns&&(c.ns=b.ns),a.attribList.length=0,A(a,"onopentagstart",c)}(this),">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:(t(d)||F(this,"Invalid character in tag name"),this.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===d?(I(this,!0),J(this)):(F(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:t(d)||(">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:v(p,d)?(this.attribName=d,this.attribValue="",this.state=w.ATTRIB_NAME):F(this,"Invalid attribute name"));continue;case w.ATTRIB_NAME:"="===d?this.state=w.ATTRIB_VALUE:">"===d?(F(this,"Attribute without value"),this.attribValue=this.attribName,H(this),I(this)):t(d)?this.state=w.ATTRIB_NAME_SAW_WHITE:v(q,d)?this.attribName+=d:F(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===d)this.state=w.ATTRIB_VALUE;else{if(t(d))continue;F(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",A(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===d?I(this):v(p,d)?(this.attribName=d,this.state=w.ATTRIB_NAME):(F(this,"Invalid attribute name"),this.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:t(d)||(u(d)?(this.q=d,this.state=w.ATTRIB_VALUE_QUOTED):(this.opt.unquotedAttributeValues||D(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=d));continue;case w.ATTRIB_VALUE_QUOTED:if(d!==this.q){"&"===d?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=d;continue}H(this),this.q="",this.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:t(d)?this.state=w.ATTRIB:">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:v(p,d)?(F(this,"No whitespace between attributes"),this.attribName=d,this.attribValue="",this.state=w.ATTRIB_NAME):F(this,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!(">"===(f=d)||t(f))){"&"===d?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=d;continue}H(this),">"===d?I(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:this.tagName?">"===d?J(this):v(q,d)?this.tagName+=d:this.script?(this.script+="</"+this.tagName+d,this.tagName="",this.state=w.SCRIPT):(t(d)||F(this,"Invalid tagname in closing tag"),this.state=w.CLOSE_TAG_SAW_WHITE):t(d)||(v(p,d)?this.tagName=d:this.script?(this.script+="</"+d,this.state=w.SCRIPT):F(this,"Invalid tagname in closing tag."));continue;case w.CLOSE_TAG_SAW_WHITE:if(t(d))continue;">"===d?J(this):F(this,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(this.state){case w.TEXT_ENTITY:h=w.TEXT,i="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:h=w.ATTRIB_VALUE_QUOTED,i="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:h=w.ATTRIB_VALUE_UNQUOTED,i="attribValue"}if(";"===d){var f,h,i,j=function(a){var b,c,d=a.entity,e=d.toLowerCase(),f="";return a.ENTITIES[d]?a.ENTITIES[d]:a.ENTITIES[e]?a.ENTITIES[e]:("#"===(d=e).charAt(0)&&(f="x"===d.charAt(1)?(c=parseInt(d=d.slice(2),16)).toString(16):(c=parseInt(d=d.slice(1),10)).toString(10)),d=d.replace(/^0+/,""),isNaN(c)||f.toLowerCase()!==d||c<0||c>1114111||!(9===(b=c)||10===b||13===b||b>=32&&b<=55295||b>=57344&&b<=65533||b>=65536&&b<=1114111))?(F(a,"Invalid character entity"),"&"+a.entity+";"):String.fromCodePoint(c)}(this);this.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes(j)?((this.entityCount+=1)>this.opt.maxEntityCount&&D(this,"Parsed entity count exceeds max entity count"),(this.entityDepth+=1)>this.opt.maxEntityDepth&&D(this,"Parsed entity depth exceeds max entity depth"),this.entity="",this.state=h,this.write(j),this.entityDepth-=1):(this[i]+=j,this.entity="",this.state=h)}else v(this.entity.length?s:r,d)?this.entity+=d:(F(this,"Invalid character in entity name"),this[i]+="&"+this.entity+d,this.entity="",this.state=h);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(b){for(var c=Math.max(a.MAX_BUFFER_LENGTH,10),d=0,e=0,f=g.length;e<f;e++){var h=b[g[e]].length;if(h>c)switch(g[e]){case"textNode":B(b);break;case"cdata":A(b,"oncdata",b.cdata),b.cdata="";break;case"script":A(b,"onscript",b.script),b.script="";break;default:D(b,"Max buffer length exceeded: "+g[e])}d=Math.max(d,h)}b.bufferCheckPosition=a.MAX_BUFFER_LENGTH-d+b.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){B(this),""!==this.cdata&&(A(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(A(this,"onscript",this.script),this.script="")}};try{f=c(27910).Stream}catch(a){f=function(){}}f||(f=function(){});var i=a.EVENTS.filter(function(a){return"error"!==a&&"end"!==a});function j(a,b){if(!(this instanceof j))return new j(a,b);f.apply(this),this._parser=new h(a,b),this.writable=!0,this.readable=!0;var c=this;this._parser.onend=function(){c.emit("end")},this._parser.onerror=function(a){c.emit("error",a),c._parser.error=null},this._decoder=null,this._decoderBuffer=null,i.forEach(function(a){Object.defineProperty(c,"on"+a,{get:function(){return c._parser["on"+a]},set:function(b){if(!b)return c.removeAllListeners(a),c._parser["on"+a]=b,b;c.on(a,b)},enumerable:!0,configurable:!1})})}j.prototype=Object.create(f.prototype,{constructor:{value:j}}),j.prototype._decodeBuffer=function(a,b){if(this._decoderBuffer&&(a=Buffer.concat([this._decoderBuffer,a]),this._decoderBuffer=null),!this._decoder){var c=function(a,b){if(a.length>=2){if(255===a[0]&&254===a[1])return"utf-16le";if(254===a[0]&&255===a[1])return"utf-16be"}return a.length>=3&&239===a[0]&&187===a[1]&&191===a[2]?"utf8":a.length>=4?60===a[0]&&0===a[1]&&63===a[2]&&0===a[3]?"utf-16le":0===a[0]&&60===a[1]&&0===a[2]&&63===a[3]?"utf-16be":"utf8":b?"utf8":null}(a,b);if(!c)return this._decoderBuffer=a,"";this._parser.encoding=c,this._decoder=new TextDecoder(c)}return this._decoder.decode(a,{stream:!b})},j.prototype.write=function(a){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a))a=this._decodeBuffer(a,!1);else if(this._decoderBuffer){var b=this._decodeBuffer(Buffer.alloc(0),!0);b&&(this._parser.write(b),this.emit("data",b))}return this._parser.write(a.toString()),this.emit("data",a),!0},j.prototype.end=function(a){if(a&&a.length&&this.write(a),this._decoderBuffer){var b=this._decodeBuffer(Buffer.alloc(0),!0);b&&(this._parser.write(b),this.emit("data",b))}else if(this._decoder){var c=this._decoder.decode();c&&(this._parser.write(c),this.emit("data",c))}return this._parser.end(),!0},j.prototype.on=function(a,b){var c=this;return c._parser["on"+a]||-1===i.indexOf(a)||(c._parser["on"+a]=function(){var b=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);b.splice(0,0,a),c.emit.apply(c,b)}),f.prototype.on.call(c,a,b)};var k=/^\[CDATA\[$/i,l=/^DOCTYPE$/i,m="http://www.w3.org/XML/1998/namespace",n="http://www.w3.org/2000/xmlns/",o={xml:m,xmlns:n},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,r=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function t(a){return" "===a||"\n"===a||"\r"===a||" "===a}function u(a){return'"'===a||"'"===a}function v(a,b){return a.test(b)}var w=0;for(var x in a.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},a.XML_ENTITIES=Object.assign(Object.create(null),{amp:"&",gt:">",lt:"<",quot:'"',apos:"'"}),a.ENTITIES=Object.assign(Object.create(null),{amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}),Object.keys(a.ENTITIES).forEach(function(b){var c=a.ENTITIES[b],d="number"==typeof c?String.fromCharCode(c):c;a.ENTITIES[b]=d}),a.STATE)a.STATE[a.STATE[x]]=x;function y(a,b,c){a[b]&&a[b](c)}function z(a){return a?a.toLowerCase().replace(/[^a-z0-9]/g,""):null}function A(a,b,c){a.textNode&&B(a),y(a,b,c)}function B(a){a.textNode=C(a.opt,a.textNode),a.textNode&&y(a,"ontext",a.textNode),a.textNode=""}function C(a,b){return a.trim&&(b=b.trim()),a.normalize&&(b=b.replace(/\s+/g," ")),b}function D(a,b){return B(a),a.trackPosition&&(b+="\nLine: "+a.line+"\nColumn: "+a.column+"\nChar: "+a.c),a.error=b=Error(b),y(a,"onerror",b),a}function E(a){return a.sawRoot&&!a.closedRoot&&F(a,"Unclosed root tag"),a.state!==w.BEGIN&&a.state!==w.BEGIN_WHITESPACE&&a.state!==w.TEXT&&D(a,"Unexpected end"),B(a),a.c="",a.closed=!0,y(a,"onend"),h.call(a,a.strict,a.opt),a}function F(a,b){if("object"!=typeof a||!(a instanceof h))throw Error("bad call to strictFail");a.strict&&D(a,b)}function G(a,b){var c=0>a.indexOf(":")?["",a]:a.split(":"),d=c[0],e=c[1];return b&&"xmlns"===a&&(d="xmlns",e=""),{prefix:d,local:e}}function H(a){if(a.strict||(a.attribName=a.attribName[a.looseCase]()),-1!==a.attribList.indexOf(a.attribName)||a.tag.attributes.hasOwnProperty(a.attribName)){a.attribName=a.attribValue="";return}if(a.opt.xmlns){var b=G(a.attribName,!0),c=b.prefix,d=b.local;if("xmlns"===c)if("xml"===d&&a.attribValue!==m)F(a,"xml: prefix must be bound to "+m+"\nActual: "+a.attribValue);else if("xmlns"===d&&a.attribValue!==n)F(a,"xmlns: prefix must be bound to "+n+"\nActual: "+a.attribValue);else{var e=a.tag,f=a.tags[a.tags.length-1]||a;e.ns===f.ns&&(e.ns=Object.create(f.ns)),e.ns[d]=a.attribValue}a.attribList.push([a.attribName,a.attribValue])}else a.tag.attributes[a.attribName]=a.attribValue,A(a,"onattribute",{name:a.attribName,value:a.attribValue});a.attribName=a.attribValue=""}function I(a,b){if(a.opt.xmlns){var c=a.tag,d=G(a.tagName);c.prefix=d.prefix,c.local=d.local,c.uri=c.ns[d.prefix]||"",c.prefix&&!c.uri&&(F(a,"Unbound namespace prefix: "+JSON.stringify(a.tagName)),c.uri=d.prefix);var e=a.tags[a.tags.length-1]||a;c.ns&&e.ns!==c.ns&&Object.keys(c.ns).forEach(function(b){A(a,"onopennamespace",{prefix:b,uri:c.ns[b]})});for(var f=0,g=a.attribList.length;f<g;f++){var h=a.attribList[f],i=h[0],j=h[1],k=G(i,!0),l=k.prefix,m=k.local,n=""===l?"":c.ns[l]||"",o={name:i,value:j,prefix:l,local:m,uri:n};l&&"xmlns"!==l&&!n&&(F(a,"Unbound namespace prefix: "+JSON.stringify(l)),o.uri=l),a.tag.attributes[i]=o,A(a,"onattribute",o)}a.attribList.length=0}a.tag.isSelfClosing=!!b,a.sawRoot=!0,a.tags.push(a.tag),A(a,"onopentag",a.tag),b||(a.noscript||"script"!==a.tagName.toLowerCase()?a.state=w.TEXT:a.state=w.SCRIPT,a.tag=null,a.tagName=""),a.attribName=a.attribValue="",a.attribList.length=0}function J(a){if(!a.tagName){F(a,"Weird empty close tag."),a.textNode+="</>",a.state=w.TEXT;return}if(a.script){if("script"!==a.tagName){a.script+="</"+a.tagName+">",a.tagName="",a.state=w.SCRIPT;return}A(a,"onscript",a.script),a.script=""}var b=a.tags.length,c=a.tagName;a.strict||(c=c[a.looseCase]());for(var d=c;b--;)if(a.tags[b].name!==d)F(a,"Unexpected close tag");else break;if(b<0){F(a,"Unmatched closing tag: "+a.tagName),a.textNode+="</"+a.tagName+">",a.state=w.TEXT;return}a.tagName=c;for(var e=a.tags.length;e-- >b;){var f=a.tag=a.tags.pop();a.tagName=a.tag.name,A(a,"onclosetag",a.tagName);var g={};for(var h in f.ns)g[h]=f.ns[h];var i=a.tags[a.tags.length-1]||a;a.opt.xmlns&&f.ns!==i.ns&&Object.keys(f.ns).forEach(function(b){var c=f.ns[b];A(a,"onclosenamespace",{prefix:b,uri:c})})}0===b&&(a.closedRoot=!0),a.tagName=a.attribValue=a.attribName="",a.attribList.length=0,a.state=w.TEXT}function K(a,b){"<"===b?(a.state=w.OPEN_WAKA,a.startTagPosition=a.position):t(b)||(F(a,"Non-whitespace before first tag."),a.textNode=b,a.state=w.TEXT)}function L(a,b){var c="";return b<a.length&&(c=a.charAt(b)),c}w=a.STATE,String.fromCodePoint||(b=String.fromCharCode,d=Math.floor,e=function(){var a,c,e=[],f=-1,g=arguments.length;if(!g)return"";for(var h="";++f<g;){var i=Number(arguments[f]);if(!isFinite(i)||i<0||i>1114111||d(i)!==i)throw RangeError("Invalid code point: "+i);i<=65535?e.push(i):(i-=65536,a=(i>>10)+55296,c=i%1024+56320,e.push(a,c)),(f+1===g||e.length>16384)&&(h+=b.apply(null,e),e.length=0)}return h},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:e,configurable:!0,writable:!0}):String.fromCodePoint=e)}(b)},82307:function(a){(function(){a.exports=(function(){class a{constructor(a){this.nodes=a}clone(){return this.nodes=null}item(a){return this.nodes[a]||null}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a}).call(this)}).call(this)},84519:function(a,b,c){(function(){var b,d,e,f,g,h,i,j={}.hasOwnProperty;({isObject:i,isFunction:h,getValue:g}=c(43594)),f=c(73067),b=c(26468),d=c(95759),e=c(87074),a.exports=(function(){class a extends f{constructor(a,c,d){var e,f,g,h;if(super(a),null==c)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(c),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=d&&this.attribute(d),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.DocType){e.name=this.name;break}}}clone(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)j.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c}attribute(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)j.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this}removeAttribute(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this}toString(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))}att(a,b){return this.attribute(a,b)}a(a,b){return this.attribute(a,b)}getAttribute(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null}setAttribute(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null}setAttributeNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(a){return this.attribs.hasOwnProperty(a)}hasAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b}setIdAttributeNS(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var b,c,d;if(!super.isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=c=0,d=this.attribs.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0}}return Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),a}).call(this)}).call(this)},84689:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){var h;c.__super__.constructor.call(this,a),e(d)&&(d=(h=d).version,f=h.encoding,g=h.standalone),d||(d="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(d),null!=f&&(this.encoding=this.stringify.xmlEncoding(f)),null!=g&&(this.standalone=this.stringify.xmlStandalone(g))}return f(c,a),c.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},86115:function(a,b,c){(function(){"use strict";var a,d,e,f,g,h={}.hasOwnProperty;a=c(7216),d=c(56068).defaults,f=function(a){return"string"==typeof a&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},g=function(a){return"<![CDATA["+e(a)+"]]>"},e=function(a){return a.replace("]]>","]]]]><![CDATA[>")},b.Builder=function(){function b(a){var b,c,e;for(b in this.options={},c=d["0.2"])h.call(c,b)&&(e=c[b],this.options[b]=e);for(b in a)h.call(a,b)&&(e=a[b],this.options[b]=e)}return b.prototype.buildObject=function(b){var c,e,i,j,k,l;return c=this.options.attrkey,e=this.options.charkey,1===Object.keys(b).length&&this.options.rootName===d["0.2"].rootName?(k=Object.keys(b)[0],b=b[k]):k=this.options.rootName,l=this,i=function(a,b){var d,j,k,m,n,o;if("object"!=typeof b)l.options.cdata&&f(b)?a.raw(g(b)):a.txt(b);else if(Array.isArray(b)){for(m in b)if(h.call(b,m))for(n in j=b[m])k=j[n],a=i(a.ele(n),k).up()}else for(n in b)if(h.call(b,n))if(j=b[n],n===c){if("object"==typeof j)for(d in j)o=j[d],a=a.att(d,o)}else if(n===e)a=l.options.cdata&&f(j)?a.raw(g(j)):a.txt(j);else if(Array.isArray(j))for(m in j)h.call(j,m)&&(a="string"==typeof(k=j[m])?l.options.cdata&&f(k)?a.ele(n).raw(g(k)).up():a.ele(n,k).up():i(a.ele(n),k).up());else"object"==typeof j?a=i(a.ele(n),j).up():"string"==typeof j&&l.options.cdata&&f(j)?a=a.ele(n).raw(g(j)).up():(null==j&&(j=""),a=a.ele(n,j.toString()).up());return a},j=a.create(k,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),i(j,b).end(this.options.renderOpts)},b}()}).call(this)},86175:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getSigningAlgorithm=function(a){switch(a){case"sha256":return"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";case"sha512":return"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";default:return"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}},b.getDigestAlgorithm=function(a){switch(a){case"sha256":return"http://www.w3.org/2001/04/xmlenc#sha256";case"sha512":return"http://www.w3.org/2001/04/xmlenc#sha512";default:return"http://www.w3.org/2000/09/xmldsig#sha1"}},b.getSigner=function(a){switch(a){case"sha256":return d.createSign("RSA-SHA256");case"sha512":return d.createSign("RSA-SHA512");default:return d.createSign("RSA-SHA1")}};let d=c(55511)},86690:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(d)}return d(c,a),Object.defineProperty(c.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},c.prototype.splitText=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceWholeText=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c}(c(92478))}).call(this)},87074:function(a){(function(){a.exports=(function(){class a{constructor(a){this.nodes=a}clone(){return this.nodes=null}getNamedItem(a){return this.nodes[a]}setNamedItem(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null}removeNamedItem(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null}item(a){return this.nodes[Object.keys(this.nodes)[a]]||null}getNamedItemNS(a,b){throw Error("This DOM method is not implemented.")}setNamedItemNS(a){throw Error("This DOM method is not implemented.")}removeNamedItemNS(a,b){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a}).call(this)}).call(this)},88435:function(a){(function(){a.exports=function(){function a(){}return a.prototype.handleError=function(a){throw Error(a)},a}()}).call(this)},88909:function(a){(function(){a.exports=class{hasFeature(a,b){return!0}createDocumentType(a,b,c){throw Error("This DOM method is not implemented.")}createDocument(a,b,c){throw Error("This DOM method is not implemented.")}createHTMLDocument(a){throw Error("This DOM method is not implemented.")}getFeature(a,b){throw Error("This DOM method is not implemented.")}}}).call(this)},91729:(a,b,c)=>{var d=c(23849).NAMESPACE,e=c(23849).tagNamePattern;function f(a,b){this.message=a,this.locator=b,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function g(){}function h(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function i(a,b,c){for(var e=a.tagName,f=null,g=a.length;g--;){var h=a[g],i=h.qName,j=h.value,k=i.indexOf(":");if(k>0)var l=h.prefix=i.slice(0,k),m=i.slice(k+1),n="xmlns"===l&&m;else m=i,l=null,n="xmlns"===i&&"";h.localName=m,!1!==n&&(null==f&&(f={},c=Object.create(c)),c[n]=f[n]=j,h.uri=d.XMLNS,b.startPrefixMapping(n,j))}for(var g=a.length;g--;){var l=(h=a[g]).prefix;l&&("xml"===l&&(h.uri=d.XML),"xmlns"!==l&&(h.uri=c[l||""]))}var k=e.indexOf(":");k>0?(l=a.prefix=e.slice(0,k),m=a.localName=e.slice(k+1)):(l=null,m=a.localName=e);var o=a.uri=c[l||""];if(b.startElement(o,m,e,a),!a.closed)return a.currentNSMap=c,a.localNSMap=f,!0;if(b.endElement(o,m,e),f)for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&b.endPrefixMapping(l)}function j(){this.attributeNames={}}f.prototype=Error(),f.prototype.name=f.name,g.prototype={parse:function(a,b,c){var g=this.domBuilder;g.startDocument(),function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}(b,b={}),function(a,b,c,g,k){function l(a){var b,d=a.slice(1,-1);return Object.hasOwnProperty.call(c,d)?c[d]:"#"===d.charAt(0)?(b=parseInt(d.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((b-=65536)>>10),56320+(1023&b)):String.fromCharCode(b):(k.error("entity not found:"+a),a)}function m(b){if(b>u){var c=a.substring(u,b).replace(/&#?\w+;/g,l);r&&n(u),g.characters(c,0,b-u),u=b}}function n(b,c){for(;b>=p&&(c=q.exec(a));)p=(o=c.index)+c[0].length,r.lineNumber++;r.columnNumber=b-o+1}for(var o=0,p=0,q=/.*(?:\r\n?|\n)|.*$/g,r=g.locator,s=[{currentNSMap:b}],t={},u=0;;){try{var v=a.indexOf("<",u);if(v<0){if(!a.substr(u).match(/^\s*$/)){var w=g.doc,x=w.createTextNode(a.substr(u));w.appendChild(x),g.currentElement=x}return}switch(v>u&&m(v),a.charAt(v+1)){case"/":var y=a.indexOf(">",v+3),z=a.substring(v+2,y).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),A=s.pop();y<0?(z=a.substring(v+2).replace(/[\s<].*/,""),k.error("end tag name: "+z+" is not complete:"+A.tagName),y=v+1+z.length):z.match(/\s</)?(z=z.replace(/[\s<].*/,""),k.error("end tag name: "+z+" maybe not complete"),y=v+1+z.length):/[ \t\n\r]/.test(z)&&e.test(z.split(/[ \t\n\r]/)[0])&&k.error('end tag name is followed by whitespace and trailing content: "'+z+'"');var B=A.localNSMap,C=A.tagName==z;if(C||A.tagName&&A.tagName.toLowerCase()==z.toLowerCase()){if(g.endElement(A.uri,A.localName,z),B)for(var D in B)Object.prototype.hasOwnProperty.call(B,D)&&g.endPrefixMapping(D);C||k.fatalError("end tag name: "+z+" is not match the current start tagName:"+A.tagName)}else s.push(A);y++;break;case"?":r&&n(v),y=function(a,b,c){var d=a.indexOf("?>",b);if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(e)return e[0].length,c.processingInstruction(e[1],e[2]),d+2}return -1}(a,v,g);break;case"!":r&&n(v),y=function(a,b,c,d){if("-"===a.charAt(b+2)){if("-"===a.charAt(b+3)){var e=a.indexOf("--\x3e",b+4);if(e>b)return c.comment(a,b+4,e-b-4),e+3;d.error("Unclosed comment")}}else{if("CDATA["==a.substr(b+3,6)){var e=a.indexOf("]]>",b+9);return c.startCDATA(),c.characters(a,b+9,e-b-9),c.endCDATA(),e+3}var f=function(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}(a,b),g=f.length;if(g>1&&/!doctype/i.test(f[0][0])){var h=f[1][0],i=!1,j=!1;g>3&&(/^public$/i.test(f[2][0])?(i=f[3][0],j=g>4&&f[4][0]):/^system$/i.test(f[2][0])&&(j=f[3][0]));var k=f[g-1];return c.startDTD(h,i,j),c.endDTD(),k.index+k[0].length}}return -1}(a,v,g,k);break;default:r&&n(v);var E=new j,F=s[s.length-1].currentNSMap,y=function(a,b,c,e,f,g){function h(a,b,d){c.attributeNames.hasOwnProperty(a)&&g.fatalError("Attribute "+a+" redefined"),c.addValue(a,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,f),d)}for(var i,j,k=++b,l=0;;){var m=a.charAt(k);if(0===l&&"<"===m)throw Error("unexpected < in tag name: "+a.slice(b,k));switch(m){case"=":if(1===l)i=a.slice(b,k),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l)if(1===l&&(g.warning('attribute value must after "="'),i=a.slice(b,k)),b=k+1,(k=a.indexOf(m,b))>0)h(i,j=a.slice(b,k),b-1),l=5;else throw Error("attribute value no end '"+m+"' match");else if(4==l)h(i,j=a.slice(b,k),b),g.warning('attribute "'+i+'" missed start quot('+m+")!!"),b=k+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:l=7,c.closed=!0;case 4:case 1:break;case 2:c.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return g.error("unexpected end of input"),0==l&&c.setTagName(a.slice(b,k)),k;case">":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:break;case 4:case 1:"/"===(j=a.slice(b,k)).slice(-1)&&(c.closed=!0,j=j.slice(0,-1));case 2:2===l&&(j=i),4==l?(g.warning('attribute "'+j+'" missed quot(")!'),h(i,j,b)):(d.isHTML(e[""])&&j.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),h(j,j,b));break;case 3:throw Error("attribute value missed!!")}return k;case"\x80":m=" ";default:if(m<=" ")switch(l){case 0:c.setTagName(a.slice(b,k)),l=6;break;case 1:i=a.slice(b,k),l=2;break;case 4:var j=a.slice(b,k);g.warning('attribute "'+j+'" missed quot(")!!'),h(i,j,b);case 5:l=6}else switch(l){case 2:c.tagName,d.isHTML(e[""])&&i.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+i+'" missed value!! "'+i+'" instead2!!'),h(i,i,b),b=k,l=1;break;case 5:g.warning('attribute space is required"'+i+'"!!');case 6:l=1,b=k;break;case 3:l=4,b=k;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}k++}}(a,v,E,F,l,k),G=E.length;if(!E.closed&&function(a,b,c,d){var e=d[c];return null==e&&((e=a.lastIndexOf("</"+c+">"))<b&&(e=a.lastIndexOf("</"+c)),d[c]=e),e<b}(a,y,E.tagName,t)&&(E.closed=!0,c.nbsp||k.warning("unclosed xml attribute")),r&&G){for(var H=h(r,{}),I=0;I<G;I++){var J=E[I];n(J.offset),J.locator=h(r,{})}g.locator=H,i(E,g,F)&&s.push(E),g.locator=r}else i(E,g,F)&&s.push(E);d.isHTML(E.uri)&&!E.closed?y=function(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf("</"+c+">",b),g=a.substring(b+1,f);if(/[&<]/.test(g))return/^script$/i.test(c)||(g=g.replace(/&#?\w+;/g,d)),e.characters(g,0,g.length),f}return b+1}(a,y,E.tagName,l,g):y++}}catch(a){if(a instanceof f)throw a;k.error("element parse error: "+a),y=-1}y>u?u=y:m(Math.max(v,u)+1)}}(a,b,c,g,this.errorHandler),g.endDocument()}},j.prototype={setTagName:function(a){if(!e.test(a))throw Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,b,c){if(!e.test(a))throw Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}},b.XMLReader=g,b.ParseError=f},91848:(a,b,c)=>{var d=c(55511),e=c(12749),f=c(58029),g=c(15894);let h=["http://www.w3.org/2001/04/xmlenc#rsa-1_5","http://www.w3.org/2001/04/xmlenc#tripledes-cbc"];function i(a,b,c,e){let f=Buffer.isBuffer(a)?a:Buffer.from(a,"utf-8");try{var h={encryptedKey:d.publicEncrypt({key:b.rsa_pub,oaepHash:c==d.constants.RSA_PKCS1_OAEP_PADDING?b.keyEncryptionDigest:void 0,padding:c},f).toString("base64"),encryptionPublicCert:"<X509Data><X509Certificate>"+g.pemToCert(b.pem.toString())+"</X509Certificate></X509Data>",keyEncryptionMethod:b.keyEncryptionAlgorithm,keyEncryptionDigest:b.keyEncryptionDigest},i=g.renderTemplate("keyinfo",h);e(null,i)}catch(a){e(a)}}function j(a,b,c){if(!b)return c(Error("must provide options"));if(!b.rsa_pub)return c(Error("must provide options.rsa_pub with public key RSA"));if(!b.pem)return c(Error("must provide options.pem with certificate"));if(!b.keyEncryptionAlgorithm)return c(Error("encryption without encrypted key is not supported yet"));if(b.disallowEncryptionWithInsecureAlgorithm&&h.indexOf(b.keyEncryptionAlgorithm)>=0)return c(Error("encryption algorithm "+b.keyEncryptionAlgorithm+"is not secure"));switch(b.keyEncryptionDigest=b.keyEncryptionDigest||"sha1",b.keyEncryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p":return i(a,b,d.constants.RSA_PKCS1_OAEP_PADDING,c);case"http://www.w3.org/2001/04/xmlenc#rsa-1_5":return g.warnInsecureAlgorithm(b.keyEncryptionAlgorithm,b.warnInsecureAlgorithm),i(a,b,d.constants.RSA_PKCS1_PADDING,c);default:return c(Error("encryption key algorithm not supported"))}}function k(a,b){"string"==typeof a&&(a=new e.DOMParser().parseFromString(a));var c,i=f.select("//*[local-name(.)='KeyInfo' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a)[0];i||(i=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='KeyInfo']",a)[0]);var j=f.select("//*[local-name(.)='KeyInfo']/*[local-name(.)='EncryptedKey']/*[local-name(.)='EncryptionMethod']",a)[0];if(!j){var k=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='KeyInfo']/*[local-name(.)='RetrievalMethod']",a)[0];j=(c=k?k.getAttribute("URI"):null)?f.select("//*[local-name(.)='EncryptedKey' and @Id='"+c.substring(1)+"']/*[local-name(.)='EncryptionMethod']",a)[0]:null}if(!j)throw Error("cant find encryption algorithm");let m="sha1",n=f.select("//*[local-name(.)='KeyInfo']/*[local-name(.)='EncryptedKey']/*[local-name(.)='EncryptionMethod']/*[local-name(.)='DigestMethod']",a)[0];if(n)switch(n.getAttribute("Algorithm")){case"http://www.w3.org/2000/09/xmldsig#sha256":m="sha256";break;case"http://www.w3.org/2000/09/xmldsig#sha512":m="sha512"}var o=j.getAttribute("Algorithm");if(b.disallowDecryptionWithInsecureAlgorithm&&h.indexOf(o)>=0)throw Error("encryption algorithm "+o+" is not secure, fail to decrypt");var p=c?f.select("//*[local-name(.)='EncryptedKey' and @Id='"+c.substring(1)+"']/*[local-name(.)='CipherData']/*[local-name(.)='CipherValue']",i)[0]:f.select("//*[local-name(.)='CipherValue']",i)[0];switch(o){case"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p":return l(p,b,d.constants.RSA_PKCS1_OAEP_PADDING,m);case"http://www.w3.org/2001/04/xmlenc#rsa-1_5":return g.warnInsecureAlgorithm(o,b.warnInsecureAlgorithm),l(p,b,d.constants.RSA_PKCS1_PADDING);default:throw Error("key encryption algorithm "+o+" not supported")}}function l(a,b,c,e){let f=Buffer.from(a.textContent,"base64"),g=d.privateDecrypt({key:b.key,padding:c,oaepHash:e},f);return Buffer.from(g,"binary")}function m(a,b,c,e,f,g){d.randomBytes(c,function(c,h){if(c)return g(c);var i=d.createCipheriv(a,b,h),j=i.update(e,f,"binary")+i.final("binary"),k="gcm"===a.slice(-3)?i.getAuthTag():Buffer.from("");return g(null,Buffer.concat([h,Buffer.from(j,"binary"),k]))})}function n(a,b,c,e){var f=d.createDecipheriv(a,b,e.slice(0,c));f.setAutoPadding(!1),"gcm"===a.slice(-3)&&(f.setAuthTag(e.slice(-16)),e=e.slice(0,-16));var g=f.update(e.slice(c),null,"binary")+f.final("binary");if("gcm"!==a.slice(-3)){var h=g.charCodeAt(g.length-1);if(!(1<=h)||!(h<=c))return void callback(Error("padding length invalid"));g=g.substr(0,g.length-h)}return Buffer.from(g,"binary").toString("utf8")}a.exports={decrypt:function(a,b,c){if(!b)return c(Error("must provide options"));if(!a)return c(Error("must provide XML to encrypt"));if(!b.key)return c(Error("key option is mandatory and you should provide a valid RSA private key"));try{var d="string"==typeof a?new e.DOMParser().parseFromString(a):a,i=k(d,b),j=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='EncryptionMethod']",d)[0].getAttribute("Algorithm");if(b.disallowDecryptionWithInsecureAlgorithm&&h.indexOf(j)>=0)return c(Error("encryption algorithm "+j+" is not secure, fail to decrypt"));var l=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='CipherData']/*[local-name(.)='CipherValue']",d)[0],m=Buffer.from(l.textContent,"base64");switch(j){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":return c(null,n("aes-128-cbc",i,16,m));case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":return c(null,n("aes-256-cbc",i,16,m));case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":return g.warnInsecureAlgorithm(j,b.warnInsecureAlgorithm),c(null,n("des-ede3-cbc",i,8,m));case"http://www.w3.org/2009/xmlenc11#aes128-gcm":return c(null,n("aes-128-gcm",i,12,m));case"http://www.w3.org/2009/xmlenc11#aes256-gcm":return c(null,n("aes-256-gcm",i,12,m));default:return c(Error("encryption algorithm "+j+" not supported"))}}catch(a){return c(a)}},encrypt:function(a,b,c){if(!b)return c(Error("must provide options"));if(!a)return c(Error("must provide content to encrypt"));if(!b.rsa_pub)return c(Error("rsa_pub option is mandatory and you should provide a valid RSA public key"));if(!b.pem)return c(Error("pem option is mandatory and you should provide a valid x509 certificate encoded as PEM"));if(b.disallowEncryptionWithInsecureAlgorithm&&(h.indexOf(b.keyEncryptionAlgorithm)>=0||h.indexOf(b.encryptionAlgorithm)>=0))return c(Error("encryption algorithm "+b.keyEncryptionAlgorithm+" is not secure"));b.input_encoding=b.input_encoding||"utf8";var e=function(d,e){if(d)return c(d);var f=function(a,d){var f;if(a)return c(a);f=function(a,b){if(a)return c(a);c(null,b)},j(e,b,function(a,c){if(a)return f(a);f(null,g.renderTemplate("encrypted-key",{encryptedContent:d.toString("base64"),keyInfo:c,contentEncryptionMethod:b.encryptionAlgorithm}))})};switch(b.encryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":m("aes-128-cbc",e,16,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":m("aes-256-cbc",e,16,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2009/xmlenc11#aes128-gcm":m("aes-128-gcm",e,12,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2009/xmlenc11#aes256-gcm":m("aes-256-gcm",e,12,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":g.warnInsecureAlgorithm(b.encryptionAlgorithm,b.warnInsecureAlgorithm),m("des-ede3-cbc",e,8,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;default:f(Error("encryption algorithm not supported"))}};switch(b.encryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":case"http://www.w3.org/2009/xmlenc11#aes128-gcm":d.randomBytes(16,e);break;case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":case"http://www.w3.org/2009/xmlenc11#aes256-gcm":default:d.randomBytes(32,e);break;case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":g.warnInsecureAlgorithm(b.encryptionAlgorithm,b.warnInsecureAlgorithm),d.randomBytes(24,e)}},encryptKeyInfo:j,decryptKeyInfo:k}},92030:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;b=c(24706),e=c(97871),d=c(46780),a.exports=function(a){function c(a,b){this.stream=a,c.__super__.constructor.call(this,b)}return f(c,a),c.prototype.endline=function(a,b,e){return a.isLastRootNode&&b.state===d.CloseTag?"":c.__super__.endline.call(this,a,b,e)},c.prototype.document=function(a,b){var c,d,e,f,g,h,i,j,k;for(i=a.children,d=e=0,g=i.length;e<g;d=++e)(c=i[d]).isLastRootNode=d===a.children.length-1;for(b=this.filterOptions(b),j=a.children,k=[],f=0,h=j.length;f<h;f++)c=j[f],k.push(this.writeChildNode(c,b,0));return k},c.prototype.attribute=function(a,b,d){return this.stream.write(c.__super__.attribute.call(this,a,b,d))},c.prototype.cdata=function(a,b,d){return this.stream.write(c.__super__.cdata.call(this,a,b,d))},c.prototype.comment=function(a,b,d){return this.stream.write(c.__super__.comment.call(this,a,b,d))},c.prototype.declaration=function(a,b,d){return this.stream.write(c.__super__.declaration.call(this,a,b,d))},c.prototype.docType=function(a,b,c){var e,f,g,h;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,this.stream.write(this.indent(a,b,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,b,c)),b.state=d.InsideTag,f=0,g=(h=a.children).length;f<g;f++)e=h[f],this.writeChildNode(e,b,c+1);b.state=d.CloseTag,this.stream.write("]")}return b.state=d.CloseTag,this.stream.write(b.spaceBeforeSlash+">"),this.stream.write(this.endline(a,b,c)),b.state=d.None,this.closeNode(a,b,c)},c.prototype.element=function(a,c,e){var f,h,i,j,k,l,m,n,o;for(m in e||(e=0),this.openNode(a,c,e),c.state=d.OpenTag,this.stream.write(this.indent(a,c,e)+"<"+a.name),n=a.attribs)g.call(n,m)&&(f=n[m],this.attribute(f,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw)&&""===a.value}))c.allowEmpty?(this.stream.write(">"),c.state=d.CloseTag,this.stream.write("</"+a.name+">")):(c.state=d.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw)&&null!=j.value)this.stream.write(">"),c.state=d.InsideTag,c.suppressPrettyCount++,this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,c.state=d.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,c,e)),c.state=d.InsideTag,k=0,l=(o=a.children).length;k<l;k++)h=o[k],this.writeChildNode(h,c,e+1);c.state=d.CloseTag,this.stream.write(this.indent(a,c,e)+"</"+a.name+">")}return this.stream.write(this.endline(a,c,e)),c.state=d.None,this.closeNode(a,c,e)},c.prototype.processingInstruction=function(a,b,d){return this.stream.write(c.__super__.processingInstruction.call(this,a,b,d))},c.prototype.raw=function(a,b,d){return this.stream.write(c.__super__.raw.call(this,a,b,d))},c.prototype.text=function(a,b,d){return this.stream.write(c.__super__.text.call(this,a,b,d))},c.prototype.dtdAttList=function(a,b,d){return this.stream.write(c.__super__.dtdAttList.call(this,a,b,d))},c.prototype.dtdElement=function(a,b,d){return this.stream.write(c.__super__.dtdElement.call(this,a,b,d))},c.prototype.dtdEntity=function(a,b,d){return this.stream.write(c.__super__.dtdEntity.call(this,a,b,d))},c.prototype.dtdNotation=function(a,b,d){return this.stream.write(c.__super__.dtdNotation.call(this,a,b,d))},c}(e)}).call(this)},92478:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.value=""}return b(c,a),Object.defineProperty(c.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(c.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(c.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.substringData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.appendData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.insertData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.deleteData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.data===this.data},c}(c(8957))}).call(this)},93005:function(a,b,c){(function(){"use strict";var a,d,e,f,g,h,i,j,k=function(a,b){return function(){return a.apply(b,arguments)}},l=function(a,b){for(var c in b)m.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},m={}.hasOwnProperty;i=c(81654),f=c(94735),a=c(76326),h=c(2847),j=c(66136).setImmediate,d=c(56068).defaults,g=function(a,b,c){var d,e;for(d=0,e=a.length;d<e;d++)b=(0,a[d])(b,c);return b},e=function(a,b,c){var d;return(d=Object.create(null)).value=c,d.writable=!0,d.enumerable=!0,d.configurable=!0,Object.defineProperty(a,b,d)},b.Parser=function(c){function f(a){var c,e,f;if(this.parseStringPromise=k(this.parseStringPromise,this),this.parseString=k(this.parseString,this),this.reset=k(this.reset,this),this.assignOrPush=k(this.assignOrPush,this),this.processAsync=k(this.processAsync,this),!(this instanceof b.Parser))return new b.Parser(a);for(c in this.options={},e=d["0.2"])m.call(e,c)&&(f=e[c],this.options[c]=f);for(c in a)m.call(a,c)&&(f=a[c],this.options[c]=f);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(h.normalize)),this.reset()}return l(f,c),f.prototype.processAsync=function(){var a;try{if(this.remaining.length<=this.options.chunkSize)return a=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(a),this.saxParser.close();return a=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(a),j(this.processAsync)}catch(a){if(!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(a)}},f.prototype.assignOrPush=function(a,b,c){return b in a?(a[b]instanceof Array||e(a,b,[a[b]]),a[b].push(c)):this.options.explicitArray?e(a,b,[c]):e(a,b,c)},f.prototype.reset=function(){var a,b,c,d,f,h,j,k,l;return this.removeAllListeners(),this.saxParser=i.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(f=this,function(a){if(f.saxParser.resume(),!f.saxParser.errThrown)return f.saxParser.errThrown=!0,f.emit("error",a)}),this.saxParser.onend=(h=this,function(){if(!h.saxParser.ended)return h.saxParser.ended=!0,h.emit("end",h.resultObject)}),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,d=[],a=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=(j=this,function(c){var f,h,i,k,l;if((i={})[b]="",!j.options.ignoreAttrs)for(f in l=c.attributes)m.call(l,f)&&(a in i||j.options.mergeAttrs||(i[a]={}),h=j.options.attrValueProcessors?g(j.options.attrValueProcessors,c.attributes[f],f):c.attributes[f],k=j.options.attrNameProcessors?g(j.options.attrNameProcessors,f):f,j.options.mergeAttrs?j.assignOrPush(i,k,h):e(i[a],k,h));return i["#name"]=j.options.tagNameProcessors?g(j.options.tagNameProcessors,c.name):c.name,j.options.xmlns&&(i[j.options.xmlnskey]={uri:c.uri,local:c.local}),d.push(i)}),this.saxParser.onclosetag=(k=this,function(){var a,c,f,h,i,j,l,n,o,p,q;if(i=(j=d.pop())["#name"],k.options.explicitChildren&&k.options.preserveChildrenOrder||delete j["#name"],!0===j.cdata&&(a=j.cdata,delete j.cdata),o=d[d.length-1],j[b].match(/^\s*$/)&&!a?(c=j[b],delete j[b]):(k.options.trim&&(j[b]=j[b].trim()),k.options.normalize&&(j[b]=j[b].replace(/\s{2,}/g," ").trim()),j[b]=k.options.valueProcessors?g(k.options.valueProcessors,j[b],i):j[b],1===Object.keys(j).length&&b in j&&!k.EXPLICIT_CHARKEY&&(j=j[b])),"object"==typeof(q=j)&&null!=q&&0===Object.keys(q).length&&(j="function"==typeof k.options.emptyTag?k.options.emptyTag():""!==k.options.emptyTag?k.options.emptyTag:c),null!=k.options.validator&&(p="/"+(function(){var a,b,c;for(a=0,c=[],b=d.length;a<b;a++)h=d[a],c.push(h["#name"]);return c})().concat(i).join("/"),!function(){try{j=k.options.validator(p,o&&o[i],j)}catch(a){return k.emit("error",a)}}()),k.options.explicitChildren&&!k.options.mergeAttrs&&"object"==typeof j)if(k.options.preserveChildrenOrder){if(o){for(f in o[k.options.childkey]=o[k.options.childkey]||[],l={},j)m.call(j,f)&&e(l,f,j[f]);o[k.options.childkey].push(l),delete j["#name"],1===Object.keys(j).length&&b in j&&!k.EXPLICIT_CHARKEY&&(j=j[b])}}else h={},k.options.attrkey in j&&(h[k.options.attrkey]=j[k.options.attrkey],delete j[k.options.attrkey]),!k.options.charsAsChildren&&k.options.charkey in j&&(h[k.options.charkey]=j[k.options.charkey],delete j[k.options.charkey]),Object.getOwnPropertyNames(j).length>0&&(h[k.options.childkey]=j),j=h;return d.length>0?k.assignOrPush(o,i,j):(k.options.explicitRoot&&(n=j,e(j={},i,n)),k.resultObject=j,k.saxParser.ended=!0,k.emit("end",k.resultObject))}),l=this,c=function(a){var c,e;if(e=d[d.length-1])return e[b]+=a,l.options.explicitChildren&&l.options.preserveChildrenOrder&&l.options.charsAsChildren&&(l.options.includeWhiteChars||""!==a.replace(/\\n/g,"").trim())&&(e[l.options.childkey]=e[l.options.childkey]||[],(c={"#name":"__text__"})[b]=a,l.options.normalize&&(c[b]=c[b].replace(/\s{2,}/g," ").trim()),e[l.options.childkey].push(c)),e},this.saxParser.ontext=c,this.saxParser.oncdata=function(a){var b;if(b=c(a))return b.cdata=!0}},f.prototype.parseString=function(b,c){null!=c&&"function"==typeof c&&(this.on("end",function(a){return this.reset(),c(null,a)}),this.on("error",function(a){return this.reset(),c(a)}));try{if(b=b.toString(),""===b.trim())return this.emit("end",null),!0;if(b=a.stripBOM(b),this.options.async)return this.remaining=b,j(this.processAsync),this.saxParser;return this.saxParser.write(b).close()}catch(a){if(!(this.saxParser.errThrown||this.saxParser.ended))return this.emit("error",a),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw a}},f.prototype.parseStringPromise=function(a){var b;return new Promise((b=this,function(c,d){return b.parseString(a,function(a,b){return a?d(a):c(b)})}))},f}(f),b.parseString=function(a,c,d){var e,f;return null!=d?("function"==typeof d&&(e=d),"object"==typeof c&&(f=c)):("function"==typeof c&&(e=c),f={}),new b.Parser(f).parseString(a,e)},b.parseStringPromise=function(a,c){var d;return"object"==typeof c&&(d=c),new b.Parser(d).parseStringPromise(a)}}).call(this)},94253:function(a,b,c){(function(){var b;b=c(24706),c(8957),a.exports=function(){function a(a,c,d){if(this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==c)throw Error("Missing attribute name. "+this.debugInfo(c));this.name=this.stringify.name(c),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(a){return this.options.writer.attribute(this,this.options.writer.filterOptions(a))},a.prototype.debugInfo=function(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"},a.prototype.isEqualNode=function(a){return a.namespaceURI===this.namespaceURI&&a.prefix===this.prefix&&a.localName===this.localName&&a.value===this.value},a}()}).call(this)},95280:function(a,b,c){(function(){var b,d,e,f,g,h,i,j=function(a,b){for(var c in b)k.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},k={}.hasOwnProperty;i=c(4700).isPlainObject,e=c(35971),d=c(17395),f=c(8957),b=c(24706),h=c(74519),g=c(13859),a.exports=function(a){function c(a){c.__super__.constructor.call(this,null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}return j(c,a),Object.defineProperty(c.prototype,"implementation",{value:new e}),Object.defineProperty(c.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c.prototype.end=function(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))},c.prototype.toString=function(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))},c.prototype.createElement=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createDocumentFragment=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTextNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createComment=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createCDATASection=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createProcessingInstruction=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttribute=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEntityReference=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.importNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createElementNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementById=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.adoptNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.normalizeDocument=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.renameNode=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEvent=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createRange=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createNodeIterator=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTreeWalker=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c}(f)}).call(this)},95759:function(a,b,c){(function(){var b;b=c(26468),c(73067),a.exports=(function(){class a{constructor(a,c,d){if(this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==c)throw Error("Missing attribute name. "+this.debugInfo(c));this.name=this.stringify.name(c),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(a){return this.options.writer.attribute(this,this.options.writer.filterOptions(a))}debugInfo(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"}isEqualNode(a){return a.namespaceURI===this.namespaceURI&&a.prefix===this.prefix&&a.localName===this.localName&&a.value===this.value}}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a}).call(this)}).call(this)},97410:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},97871:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;e=c(4700).assign,b=c(24706),c(84689),c(99379),c(36700),c(65904),c(43849),c(8859),c(86690),c(58892),c(31777),c(45454),c(4505),c(12570),c(72707),d=c(46780),a.exports=function(){function a(a){var b,c,d;for(b in a||(a={}),this.options=a,c=a.writer||{})f.call(c,b)&&(d=c[b],this["_"+b]=this[b],this[b]=d)}return a.prototype.filterOptions=function(a){var b,c,f,g,h,i,j,k;return a||(a={}),a=e({},this.options,a),(b={writer:this}).pretty=a.pretty||!1,b.allowEmpty=a.allowEmpty||!1,b.indent=null!=(c=a.indent)?c:" ",b.newline=null!=(f=a.newline)?f:"\n",b.offset=null!=(g=a.offset)?g:0,b.dontPrettyTextNodes=null!=(h=null!=(i=a.dontPrettyTextNodes)?i:a.dontprettytextnodes)?h:0,b.spaceBeforeSlash=null!=(j=null!=(k=a.spaceBeforeSlash)?k:a.spacebeforeslash)?j:"",!0===b.spaceBeforeSlash&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=d.None,b},a.prototype.indent=function(a,b,c){var d;if(!b.pretty||b.suppressPrettyCount);else if(b.pretty&&(d=(c||0)+b.offset+1)>0)return Array(d).join(b.indent);return""},a.prototype.endline=function(a,b,c){return!b.pretty||b.suppressPrettyCount?"":b.newline},a.prototype.attribute=function(a,b,c){var d;return this.openAttribute(a,b,c),d=" "+a.name+'="'+a.value+'"',this.closeAttribute(a,b,c),d},a.prototype.cdata=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<![CDATA[",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+="]]>"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.comment=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"\x3c!-- ",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=" --\x3e"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.declaration=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?xml",b.state=d.InsideTag,e+=' version="'+a.version+'"',null!=a.encoding&&(e+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(e+=' standalone="'+a.standalone+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.docType=function(a,b,c){var e,f,g,h,i;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,h=this.indent(a,b,c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.endline(a,b,c),b.state=d.InsideTag,f=0,g=(i=a.children).length;f<g;f++)e=i[f],h+=this.writeChildNode(e,b,c+1);b.state=d.CloseTag,h+="]"}return b.state=d.CloseTag,h+=b.spaceBeforeSlash+">",h+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),h},a.prototype.element=function(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;for(o in e||(e=0),p=!1,q="",this.openNode(a,c,e),c.state=d.OpenTag,q+=this.indent(a,c,e)+"<"+a.name,r=a.attribs)f.call(r,o)&&(g=r[o],q+=this.attribute(g,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw)&&""===a.value}))c.allowEmpty?(q+=">",c.state=d.CloseTag,q+="</"+a.name+">"+this.endline(a,c,e)):(c.state=d.CloseTag,q+=c.spaceBeforeSlash+"/>"+this.endline(a,c,e));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw)&&null!=j.value)q+=">",c.state=d.InsideTag,c.suppressPrettyCount++,p=!0,q+=this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,p=!1,c.state=d.CloseTag,q+="</"+a.name+">"+this.endline(a,c,e);else{if(c.dontPrettyTextNodes){for(k=0,m=(s=a.children).length;k<m;k++)if(((h=s[k]).type===b.Text||h.type===b.Raw)&&null!=h.value){c.suppressPrettyCount++,p=!0;break}}for(q+=">"+this.endline(a,c,e),c.state=d.InsideTag,l=0,n=(t=a.children).length;l<n;l++)h=t[l],q+=this.writeChildNode(h,c,e+1);c.state=d.CloseTag,q+=this.indent(a,c,e)+"</"+a.name+">",p&&c.suppressPrettyCount--,q+=this.endline(a,c,e),c.state=d.None}return this.closeNode(a,c,e),q},a.prototype.writeChildNode=function(a,c,d){switch(a.type){case b.CData:return this.cdata(a,c,d);case b.Comment:return this.comment(a,c,d);case b.Element:return this.element(a,c,d);case b.Raw:return this.raw(a,c,d);case b.Text:return this.text(a,c,d);case b.ProcessingInstruction:return this.processingInstruction(a,c,d);case b.Dummy:return"";case b.Declaration:return this.declaration(a,c,d);case b.DocType:return this.docType(a,c,d);case b.AttributeDeclaration:return this.dtdAttList(a,c,d);case b.ElementDeclaration:return this.dtdElement(a,c,d);case b.EntityDeclaration:return this.dtdEntity(a,c,d);case b.NotationDeclaration:return this.dtdNotation(a,c,d);default:throw Error("Unknown XML node type: "+a.constructor.name)}},a.prototype.processingInstruction=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?",b.state=d.InsideTag,e+=a.target,a.value&&(e+=" "+a.value),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.raw=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.text=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdAttList=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ATTLIST",b.state=d.InsideTag,e+=" "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(e+=" "+a.defaultValueType),a.defaultValue&&(e+=' "'+a.defaultValue+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdElement=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ELEMENT",b.state=d.InsideTag,e+=" "+a.name+" "+a.value,b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdEntity=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ENTITY",b.state=d.InsideTag,a.pe&&(e+=" %"),e+=" "+a.name,a.value?e+=' "'+a.value+'"':(a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.nData&&(e+=" NDATA "+a.nData)),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdNotation=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!NOTATION",b.state=d.InsideTag,e+=" "+a.name,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?e+=' PUBLIC "'+a.pubID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.openNode=function(a,b,c){},a.prototype.closeNode=function(a,b,c){},a.prototype.openAttribute=function(a,b,c){},a.prototype.closeAttribute=function(a,b,c){},a}()}).call(this)},98193:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z={}.hasOwnProperty;w=(y=c(4700)).isObject,v=y.isFunction,x=y.isPlainObject,u=y.getValue,b=c(24706),n=c(95280),o=c(43849),f=c(36700),g=c(65904),q=c(8859),t=c(86690),p=c(58892),l=c(84689),m=c(99379),h=c(45454),j=c(12570),i=c(4505),k=c(72707),e=c(94253),s=c(74519),r=c(13859),d=c(46780),a.exports=function(){function a(a,c,d){var e;this.name="?xml",this.type=b.Document,a||(a={}),e={},a.writer?x(a.writer)&&(e=a.writer,a.writer=new r):a.writer=new r,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new s(a),this.onDataCallback=c||function(){},this.onEndCallback=d||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return a.prototype.createChildNode=function(a){var c,d,e,f,g,h,i,j;switch(a.type){case b.CData:this.cdata(a.value);break;case b.Comment:this.comment(a.value);break;case b.Element:for(d in e={},i=a.attribs)z.call(i,d)&&(c=i[d],e[d]=c.value);this.node(a.name,e);break;case b.Dummy:this.dummy();break;case b.Raw:this.raw(a.value);break;case b.Text:this.text(a.value);break;case b.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(g=0,h=(j=a.children).length;g<h;g++)f=j[g],this.createChildNode(f),f.type===b.Element&&this.up();return this},a.prototype.dummy=function(){return this},a.prototype.node=function(a,b,c){var d;if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=u(a),null==b&&(b={}),w(b=u(b))||(c=(d=[b,c])[0],b=d[1]),this.currentNode=new o(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this},a.prototype.element=function(a,c,d){var e,f,g,h,i,j;if(this.currentNode&&this.currentNode.type===b.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(a)||w(a)||v(a))for(h=this.options.noValidation,this.options.noValidation=!0,(j=new n(this.options).element("TEMP_ROOT")).element(a),this.options.noValidation=h,f=0,g=(i=j.children).length;f<g;f++)e=i[f],this.createChildNode(e),e.type===b.Element&&this.up();else this.node(a,c,d);return this},a.prototype.attribute=function(a,b){var c,d;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=u(a)),w(a))for(c in a)z.call(a,c)&&(d=a[c],this.attribute(c,d));else v(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.currentNode.attribs[a]=new e(this,a,""):null!=b&&(this.currentNode.attribs[a]=new e(this,a,b));return this},a.prototype.text=function(a){var b;return this.openCurrent(),b=new t(this,a),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.cdata=function(a){var b;return this.openCurrent(),b=new f(this,a),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.comment=function(a){var b;return this.openCurrent(),b=new g(this,a),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.raw=function(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=u(a)),null!=b&&(b=u(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(w(a))for(d in a)z.call(a,d)&&(e=a[d],this.instruction(d,e));else v(b)&&(b=b.apply()),g=new p(this,a,b),this.onData(this.writer.processingInstruction(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},a.prototype.declaration=function(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new l(this,a,b,c),this.onData(this.writer.declaration(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.doctype=function(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new m(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},a.prototype.dtdElement=function(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdElement(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.attList=function(a,b,c,d,e){var f;return this.openCurrent(),f=new h(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.entity=function(a,b){var c;return this.openCurrent(),c=new j(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.pEntity=function(a,b){var c;return this.openCurrent(),c=new j(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.notation=function(a,b){var c;return this.openCurrent(),c=new k(this,a,b),this.onData(this.writer.dtdNotation(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},a.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},a.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},a.prototype.openNode=function(a){var c,e,f,g;if(!a.isOpen){if(this.root||0!==this.currentLevel||a.type!==b.Element||(this.root=a),e="",a.type===b.Element){for(f in this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,g=a.attribs)z.call(g,f)&&(c=g[f],e+=this.writer.attribute(c,this.writerOptions,this.currentLevel));e+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.children?(e+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,e+=">"),e+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(e,this.currentLevel),a.isOpen=!0}},a.prototype.closeNode=function(a){var c;if(!a.isClosed)return c="",this.writerOptions.state=d.CloseTag,c=a.type===b.Element?this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(c,this.currentLevel),a.isClosed=!0},a.prototype.onData=function(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)},a.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},a.prototype.debugInfo=function(a){return null==a?"":"node: <"+a+">"},a.prototype.ele=function(){return this.element.apply(this,arguments)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.dtd=function(a,b,c){return this.doctype(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.att=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.a=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.ent=function(a,b){return this.entity(a,b)},a.prototype.pent=function(a,b){return this.pEntity(a,b)},a.prototype.not=function(a,b){return this.notation(a,b)},a}()}).call(this)},99379:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;j=c(4700).isObject,i=c(8957),b=c(24706),d=c(45454),f=c(12570),e=c(4505),g=c(72707),h=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i,k,l;if(c.__super__.constructor.call(this,a),this.type=b.DocType,a.children){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.Element){this.name=f.name;break}}this.documentObject=a,j(d)&&(d=(k=d).pubID,e=k.sysID),null==e&&(e=(l=[d,e])[0],d=l[1]),null!=d&&(this.pubID=this.stringify.dtdPubID(d)),null!=e&&(this.sysID=this.stringify.dtdSysID(e))}return k(c,a),Object.defineProperty(c.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(c.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),c.prototype.element=function(a,b){var c;return c=new e(this,a,b),this.children.push(c),this},c.prototype.attList=function(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this},c.prototype.entity=function(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this},c.prototype.pEntity=function(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this},c.prototype.notation=function(a,b){var c;return c=new g(this,a,b),this.children.push(c),this},c.prototype.toString=function(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))},c.prototype.ele=function(a,b){return this.element(a,b)},c.prototype.att=function(a,b,c,d,e){return this.attList(a,b,c,d,e)},c.prototype.ent=function(a,b){return this.entity(a,b)},c.prototype.pent=function(a,b){return this.pEntity(a,b)},c.prototype.not=function(a,b){return this.notation(a,b)},c.prototype.up=function(){return this.root()||this.documentObject},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId},c}(i)}).call(this)}};
|
|
26
|
+
`},71920:function(a,b,c){(function(){var b,d,e;({isObject:e}=c(43594)),d=c(73067),b=c(26468),a.exports=(function(){class a extends d{constructor(a,c,d,f){if(super(a),null==d)throw Error("Missing DTD entity name. "+this.debugInfo(d));if(null==f)throw Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!c,this.name=this.stringify.name(d),this.type=b.EntityDeclaration,e(f)){if(!f.pubID&&!f.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(f.pubID&&!f.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,null!=f.pubID&&(this.pubID=this.stringify.dtdPubID(f.pubID)),null!=f.sysID&&(this.sysID=this.stringify.dtdSysID(f.sysID)),null!=f.nData&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}else this.value=this.stringify.dtdEntityValue(f),this.internal=!0}toString(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return null}}),a}).call(this)}).call(this)},72616:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;b=c(26468),e=c(67289),d=c(29394),a.exports=class extends e{constructor(a,b){super(b),this.stream=a}endline(a,b,c){return a.isLastRootNode&&b.state===d.CloseTag?"":super.endline(a,b,c)}document(a,b){var c,d,e,f,g,h,i,j,k;for(i=a.children,d=e=0,g=i.length;e<g;d=++e)(c=i[d]).isLastRootNode=d===a.children.length-1;for(b=this.filterOptions(b),j=a.children,k=[],f=0,h=j.length;f<h;f++)c=j[f],k.push(this.writeChildNode(c,b,0));return k}cdata(a,b,c){return this.stream.write(super.cdata(a,b,c))}comment(a,b,c){return this.stream.write(super.comment(a,b,c))}declaration(a,b,c){return this.stream.write(super.declaration(a,b,c))}docType(a,b,c){var e,f,g,h;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,this.stream.write(this.indent(a,b,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,b,c)),b.state=d.InsideTag,f=0,g=(h=a.children).length;f<g;f++)e=h[f],this.writeChildNode(e,b,c+1);b.state=d.CloseTag,this.stream.write("]")}return b.state=d.CloseTag,this.stream.write(b.spaceBeforeSlash+">"),this.stream.write(this.endline(a,b,c)),b.state=d.None,this.closeNode(a,b,c)}element(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(e||(e=0),this.openNode(a,c,e),c.state=d.OpenTag,o=this.indent(a,c,e)+"<"+a.name,c.pretty&&c.width>0)for(n in l=o.length,q=a.attribs)f.call(q,n)&&(g=q[n],l+(p=this.attribute(g,c,e)).length>c.width?(t=this.indent(a,c,e+1)+p,o+=this.endline(a,c,e)+t,l=t.length):(o+=t=" "+p,l+=t.length));else for(n in r=a.attribs)f.call(r,n)&&(g=r[n],o+=this.attribute(g,c,e));if(this.stream.write(o),j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw||a.type===b.CData)&&""===a.value}))c.allowEmpty?(this.stream.write(">"),c.state=d.CloseTag,this.stream.write("</"+a.name+">")):(c.state=d.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw||j.type===b.CData)&&null!=j.value)this.stream.write(">"),c.state=d.InsideTag,c.suppressPrettyCount++,this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,c.state=d.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,c,e)),c.state=d.InsideTag,k=0,m=(s=a.children).length;k<m;k++)h=s[k],this.writeChildNode(h,c,e+1);c.state=d.CloseTag,this.stream.write(this.indent(a,c,e)+"</"+a.name+">")}return this.stream.write(this.endline(a,c,e)),c.state=d.None,this.closeNode(a,c,e)}processingInstruction(a,b,c){return this.stream.write(super.processingInstruction(a,b,c))}raw(a,b,c){return this.stream.write(super.raw(a,b,c))}text(a,b,c){return this.stream.write(super.text(a,b,c))}dtdAttList(a,b,c){return this.stream.write(super.dtdAttList(a,b,c))}dtdElement(a,b,c){return this.stream.write(super.dtdElement(a,b,c))}dtdEntity(a,b,c){return this.stream.write(super.dtdEntity(a,b,c))}dtdNotation(a,b,c){return this.stream.write(super.dtdNotation(a,b,c))}}}).call(this)},72707:function(a,b,c){(function(){var b,d,e=function(a,b){for(var c in b)f.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},f={}.hasOwnProperty;d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,e){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing DTD notation name. "+this.debugInfo(d));if(!e.pubID&&!e.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(d));this.name=this.stringify.name(d),this.type=b.NotationDeclaration,null!=e.pubID&&(this.pubID=this.stringify.dtdPubID(e.pubID)),null!=e.sysID&&(this.sysID=this.stringify.dtdSysID(e.sysID))}return e(c,a),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),c.prototype.toString=function(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},73067:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s={}.hasOwnProperty,t=[].splice;({isObject:r,isFunction:q,isEmpty:p,getValue:o}=c(43594)),j=null,e=null,f=null,g=null,h=null,m=null,n=null,l=null,i=null,d=null,k=null,b=null,a.exports=(function(){class a{constructor(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,j||(j=c(84519),e=c(46898),f=c(12430),g=c(55443),h=c(33773),m=c(469),n=c(5032),l=c(15890),i=c(76491),d=c(26468),k=c(82307),c(87074),b=c(97410))}setParent(a){var b,c,d,e,f;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),e=this.children,f=[],c=0,d=e.length;c<d;c++)b=e[c],f.push(b.setParent(this));return f}element(a,b,c){var d,e,f,g,h,i,j,k,l;if(i=null,null===b&&null==c&&([b,c]=[{},null]),null==b&&(b={}),r(b=o(b))||([c,b]=[b,c]),null!=a&&(a=o(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(q(a))i=this.element(a.apply());else if(r(a)){for(h in a)if(s.call(a,h))if(q(l=a[h])&&(l=l.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),l);else if(!this.options.separateArrayItems&&Array.isArray(l)&&p(l))i=this.dummy();else if(r(l)&&p(l))i=this.element(h);else if(this.options.keepNullNodes||null!=l)if(!this.options.separateArrayItems&&Array.isArray(l))for(g=0,k=l.length;g<k;g++)e=l[g],(d={})[h]=e,i=this.element(d);else r(l)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===h.indexOf(this.stringify.convertTextKey)?i=this.element(l):(i=this.element(h)).element(l):i=this.element(h,l);else i=this.dummy()}else i=this.options.keepNullNodes||null!==c?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c):this.dummy();if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i}insertBefore(a,b,c){var d,e,f;if(null!=a?a.type:void 0)return a.setParent(this),b?(e=children.indexOf(b),f=children.splice(e),children.push(a),Array.prototype.push.apply(children,f)):children.push(a),a;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d}insertAfter(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d}remove(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),t.apply(this.parent.children,[a,a-a+1].concat([])),this.parent}node(a,b,c){var d;return null!=a&&(a=o(a)),b||(b={}),r(b=o(b))||([c,b]=[b,c]),d=new j(this,a,b),null!=c&&d.text(c),this.children.push(d),d}text(a){var b;return r(a)&&this.element(a),b=new n(this,a),this.children.push(b),this}cdata(a){var b;return b=new e(this,a),this.children.push(b),this}comment(a){var b;return b=new f(this,a),this.children.push(b),this}commentBefore(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this}commentAfter(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this}raw(a){var b;return b=new m(this,a),this.children.push(b),this}dummy(){return new i(this)}instruction(a,b){var c,d,e,f,g;if(null!=a&&(a=o(a)),null!=b&&(b=o(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(r(a))for(c in a)s.call(a,c)&&(d=a[c],this.instruction(c,d));else q(b)&&(b=b.apply()),e=new l(this,a,b),this.children.push(e);return this}instructionBefore(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this}instructionAfter(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this}declaration(a,b,c){var e,f;return e=this.document(),f=new g(e,a,b,c),0===e.children.length?e.children.unshift(f):e.children[0].type===d.Declaration?e.children[0]=f:e.children.unshift(f),e.root()||e}dtd(a,b){var c,e,f,g,i,j,k,l,m;for(c=this.document(),e=new h(c,a,b),l=c.children,f=g=0,j=l.length;g<j;f=++g)if(l[f].type===d.DocType)return c.children[f]=e,e;for(m=c.children,f=i=0,k=m.length;i<k;f=++i)if(m[f].isRoot)return c.children.splice(f,0,e),e;return c.children.push(e),e}up(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var a;for(a=this;a;)if(a.type===d.Document)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}}document(){var a;for(a=this;a;)if(a.type===d.Document)return a;else a=a.parent}end(a){return this.document().end(a)}prev(){var a;if((a=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]}next(){var a;if(-1===(a=this.parent.children.indexOf(this))||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]}importDocument(a){var b,c,e,f,g;if((c=a.root().clone()).parent=this,c.isRoot=!1,this.children.push(c),this.type===d.Document&&(c.isRoot=!0,c.documentObject=this,this.rootObject=c,this.children)){for(e=0,f=(g=this.children).length;e<f;e++)if((b=g[e]).type===d.DocType){b.name=c.name;break}}return this}debugInfo(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""}ele(a,b,c){return this.element(a,b,c)}nod(a,b,c){return this.node(a,b,c)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,b){return this.instruction(a,b)}doc(){return this.document()}dec(a,b,c){return this.declaration(a,b,c)}e(a,b,c){return this.element(a,b,c)}n(a,b,c){return this.node(a,b,c)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,b){return this.instruction(a,b)}u(){return this.up()}importXMLBuilder(a){return this.importDocument(a)}attribute(a,b){throw Error("attribute() applies to element nodes only.")}att(a,b){return this.attribute(a,b)}a(a,b){return this.attribute(a,b)}removeAttribute(a){throw Error("attribute() applies to element nodes only.")}replaceChild(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(a){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(a){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return 0!==this.children.length}cloneNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(a,b){return!0}hasAttributes(){return 0!==this.attribs.length}compareDocumentPosition(a){var c;if(this===a)return 0;if(this.document()!==a.document())return c=b.Disconnected|b.ImplementationSpecific,.5>Math.random()?c|=b.Preceding:c|=b.Following,c;if(this.isAncestor(a))return b.Contains|b.Preceding;if(this.isDescendant(a))return b.Contains|b.Following;if(this.isPreceding(a))return b.Preceding;else return b.Following}isSameNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(a){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var b,c,d;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(b=c=0,d=this.children.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.children[b].isEqualNode(a.children[b]))return!1;return!0}getFeature(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(a){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(a){return!!a&&(a===this||this.isDescendant(a))}isDescendant(a){var b,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if(a===(b=e[c])||b.isDescendant(a))return!0;return!1}isAncestor(a){return a.isDescendant(this)}isPreceding(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b<c}isFollowing(a){var b,c;return b=this.treePosition(a),c=this.treePosition(this),-1!==b&&-1!==c&&b>c}treePosition(a){var b,c;return(c=0,b=!1,this.foreachTreeNode(this.document(),function(d){if(c++,!b&&d===a)return b=!0}),b)?c:-1}foreachTreeNode(a,b){var c,d,e,f,g;for(a||(a=this.document()),d=0,e=(f=a.children).length;d<e;d++)if((g=b(c=f[d]))||(g=this.foreachTreeNode(c,b)))return g}}return Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new k(this.children)),this.childNodeList}}),Object.defineProperty(a.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(a.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(a.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(a.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(a.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(a.prototype,"textContent",{get:function(){var a,b,c,e,f;if(this.nodeType!==d.Element&&this.nodeType!==d.DocumentFragment)return null;for(b=0,f="",c=(e=this.children).length;b<c;b++)(a=e[b]).textContent&&(f+=a.textContent);return f},set:function(a){throw Error("This DOM method is not implemented."+this.debugInfo())}}),a}).call(this)}).call(this)},73669:a=>{"use strict";var b=/["'&<>]/;a.exports=function(a){var c,d=""+a,e=b.exec(d);if(!e)return d;var f="",g=0,h=0;for(g=e.index;g<d.length;g++){switch(d.charCodeAt(g)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}h!==g&&(f+=d.substring(h,g)),h=g+1,f+=c}return h!==g?f+d.substring(h,g):f}},74519:function(a){(function(){var b=function(a,b){return function(){return a.apply(b,arguments)}},c={}.hasOwnProperty;a.exports=function(){function a(a){var d,e,f;for(d in this.assertLegalName=b(this.assertLegalName,this),this.assertLegalChar=b(this.assertLegalChar,this),a||(a={}),this.options=a,this.options.version||(this.options.version="1.0"),e=a.stringify||{})c.call(e,d)&&(f=e[d],this[d]=f)}return a.prototype.name=function(a){return this.options.noValidation?a:this.assertLegalName(""+a||"")},a.prototype.text=function(a){return this.options.noValidation?a:this.assertLegalChar(this.textEscape(""+a||""))},a.prototype.cdata=function(a){return this.options.noValidation?a:(a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a))},a.prototype.comment=function(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)},a.prototype.raw=function(a){return this.options.noValidation?a:""+a||""},a.prototype.attValue=function(a){return this.options.noValidation?a:this.assertLegalChar(this.attEscape(a=""+a||""))},a.prototype.insTarget=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.insValue=function(a){if(this.options.noValidation)return a;if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return this.assertLegalChar(a)},a.prototype.xmlVersion=function(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a},a.prototype.xmlEncoding=function(a){if(this.options.noValidation)return a;if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return this.assertLegalChar(a)},a.prototype.xmlStandalone=function(a){return this.options.noValidation?a:a?"yes":"no"},a.prototype.dtdPubID=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdSysID=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdElementValue=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdAttType=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdAttDefault=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdEntityValue=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.dtdNData=function(a){return this.options.noValidation?a:this.assertLegalChar(""+a||"")},a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a.prototype.assertLegalChar=function(a){var b,c;if(this.options.noValidation)return a;if(b="","1.0"===this.options.version){if(b=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=a.match(b))throw Error("Invalid character in string: "+a+" at index "+c.index)}else if("1.1"===this.options.version&&(b=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=a.match(b)))throw Error("Invalid character in string: "+a+" at index "+c.index);return a},a.prototype.assertLegalName=function(a){if(this.options.noValidation)return a;if(this.assertLegalChar(a),!a.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw Error("Invalid character in name");return a},a.prototype.textEscape=function(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},a.prototype.attEscape=function(a){var b;return this.options.noValidation?a:(b=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},a}()}).call(this)},74832:function(a,b,c){(function(){"use strict";var a,d,e,f,g=function(a,b){for(var c in b)h.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},h={}.hasOwnProperty;d=c(56068),a=c(86115),e=c(93005),f=c(2847),b.defaults=d.defaults,b.processors=f,b.ValidationError=function(a){function b(a){this.message=a}return g(b,a),b}(Error),b.Builder=a.Builder,b.Parser=e.Parser,b.parseString=e.parseString,b.parseStringPromise=e.parseStringPromise}).call(this)},75546:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createOptionalCallbackFunction=function(a){return(...b)=>{let c=b[b.length-1];if("function"!=typeof c)return a(...b);{let d;try{d=a(...b.slice(0,-1))}catch(a){c(a instanceof Error?a:Error("Unknown error"));return}c(null,d)}}}},76326:function(a,b){(function(){"use strict";b.stripBOM=function(a){return"\uFEFF"===a[0]?a.substring(1):a}}).call(this)},76491:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a){super(a),this.type=b.Dummy}clone(){return Object.create(this)}toString(a){return""}}}).call(this)},77192:function(a,b,c){(function(){var b,d;d=c(73067),b=c(26468),a.exports=class extends d{constructor(a,c,d,e,f,g){if(super(a),null==c)throw Error("Missing DTD element name. "+this.debugInfo());if(null==d)throw Error("Missing DTD attribute name. "+this.debugInfo(c));if(!e)throw Error("Missing DTD attribute type. "+this.debugInfo(c));if(!f)throw Error("Missing DTD attribute default. "+this.debugInfo(c));if(0!==f.indexOf("#")&&(f="#"+f),!f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(g&&!f.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(d),this.attributeType=this.stringify.dtdAttType(e),g&&(this.defaultValue=this.stringify.dtdAttDefault(g)),this.defaultValueType=f}toString(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))}}}).call(this)},78611:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y={}.hasOwnProperty;({isObject:w,isFunction:v,isPlainObject:x,getValue:u}=c(43594)),b=c(26468),n=c(50962),o=c(84519),f=c(46898),g=c(12430),q=c(469),t=c(5032),p=c(15890),l=c(55443),m=c(33773),h=c(77192),j=c(71920),i=c(1243),k=c(48813),e=c(95759),s=c(31753),r=c(44981),d=c(29394),a.exports=class{constructor(a,c,d){var e;this.name="?xml",this.type=b.Document,a||(a={}),e={},a.writer?x(a.writer)&&(e=a.writer,a.writer=new r):a.writer=new r,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new s(a),this.onDataCallback=c||function(){},this.onEndCallback=d||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(a){var c,d,e,f,g,h,i,j;switch(a.type){case b.CData:this.cdata(a.value);break;case b.Comment:this.comment(a.value);break;case b.Element:for(d in e={},i=a.attribs)y.call(i,d)&&(c=i[d],e[d]=c.value);this.node(a.name,e);break;case b.Dummy:this.dummy();break;case b.Raw:this.raw(a.value);break;case b.Text:this.text(a.value);break;case b.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(g=0,h=(j=a.children).length;g<h;g++)f=j[g],this.createChildNode(f),f.type===b.Element&&this.up();return this}dummy(){return this}node(a,b,c){if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=u(a),null==b&&(b={}),w(b=u(b))||([c,b]=[b,c]),this.currentNode=new o(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this}element(a,c,d){var e,f,g,h,i,j;if(this.currentNode&&this.currentNode.type===b.DocType)this.dtdElement(...arguments);else if(Array.isArray(a)||w(a)||v(a))for(h=this.options.noValidation,this.options.noValidation=!0,(j=new n(this.options).element("TEMP_ROOT")).element(a),this.options.noValidation=h,f=0,g=(i=j.children).length;f<g;f++)e=i[f],this.createChildNode(e),e.type===b.Element&&this.up();else this.node(a,c,d);return this}attribute(a,b){var c,d;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=u(a)),w(a))for(c in a)y.call(a,c)&&(d=a[c],this.attribute(c,d));else v(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.currentNode.attribs[a]=new e(this,a,""):null!=b&&(this.currentNode.attribs[a]=new e(this,a,b));return this}text(a){var b;return this.openCurrent(),b=new t(this,a),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(a){var b;return this.openCurrent(),b=new f(this,a),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(a){var b;return this.openCurrent(),b=new g(this,a),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=u(a)),null!=b&&(b=u(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(w(a))for(d in a)y.call(a,d)&&(e=a[d],this.instruction(d,e));else v(b)&&(b=b.apply()),g=new p(this,a,b),this.onData(this.writer.processingInstruction(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new l(this,a,b,c),this.onData(this.writer.declaration(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new m(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdElement(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(a,b,c,d,e){var f;return this.openCurrent(),f=new h(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(a,b){var c;return this.openCurrent(),c=new j(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(a,b){var c;return this.openCurrent(),c=new j(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(a,b){var c;return this.openCurrent(),c=new k(this,a,b),this.onData(this.writer.dtdNotation(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(a){var c,e,f,g;if(!a.isOpen){if(this.root||0!==this.currentLevel||a.type!==b.Element||(this.root=a),e="",a.type===b.Element){for(f in this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,g=a.attribs)y.call(g,f)&&(c=g[f],e+=this.writer.attribute(c,this.writerOptions,this.currentLevel));e+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.children?(e+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,e+=">"),e+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(e,this.currentLevel),a.isOpen=!0}}closeNode(a){var c;if(!a.isClosed)return c="",this.writerOptions.state=d.CloseTag,c=a.type===b.Element?this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(c,this.currentLevel),a.isClosed=!0}onData(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(a){return null==a?"":"node: <"+a+">"}ele(){return this.element(...arguments)}nod(a,b,c){return this.node(a,b,c)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,b){return this.instruction(a,b)}dec(a,b,c){return this.declaration(a,b,c)}dtd(a,b,c){return this.doctype(a,b,c)}e(a,b,c){return this.element(a,b,c)}n(a,b,c){return this.node(a,b,c)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,b){return this.instruction(a,b)}att(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(a,b){return this.entity(a,b)}pent(a,b){return this.pEntity(a,b)}not(a,b){return this.notation(a,b)}}}).call(this)},81349:(a,b,c)=>{var d=c(23849),e=d.find,f=d.NAMESPACE,g=d.tagNamePattern;function h(a){return""!==a}function i(a,b){return a.hasOwnProperty(b)||(a[b]=!0),a}function j(a){return a?Object.keys((a?a.split(/[\t\n\f\r ]+/).filter(h):[]).reduce(i,{})):[]}function k(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}function l(a,b){var c=a.prototype;if(!(c instanceof b)){function d(){}d.prototype=b.prototype,k(c,d=new d),a.prototype=c=d}c.constructor!=a&&("function"!=typeof a&&console.error("unknown Class:"+a),c.constructor=a)}var m={},n=m.ELEMENT_NODE=1,o=m.ATTRIBUTE_NODE=2,p=m.TEXT_NODE=3,q=m.CDATA_SECTION_NODE=4,r=m.ENTITY_REFERENCE_NODE=5,s=m.ENTITY_NODE=6,t=m.PROCESSING_INSTRUCTION_NODE=7,u=m.COMMENT_NODE=8,v=m.DOCUMENT_NODE=9,w=m.DOCUMENT_TYPE_NODE=10,x=m.DOCUMENT_FRAGMENT_NODE=11,y=m.NOTATION_NODE=12,z={},A={};A[1]="Index size error",z.INDEX_SIZE_ERR=1,A[2]="DOMString size error",z.DOMSTRING_SIZE_ERR=2;var B=(A[3]="Hierarchy request error",z.HIERARCHY_REQUEST_ERR=3);A[4]="Wrong document",z.WRONG_DOCUMENT_ERR=4;var C=(A[5]="Invalid character",z.INVALID_CHARACTER_ERR=5);A[6]="No data allowed",z.NO_DATA_ALLOWED_ERR=6,A[7]="No modification allowed",z.NO_MODIFICATION_ALLOWED_ERR=7;var D=(A[8]="Not found",z.NOT_FOUND_ERR=8);A[9]="Not supported",z.NOT_SUPPORTED_ERR=9;var E=(A[10]="Attribute in use",z.INUSE_ATTRIBUTE_ERR=10),F=(A[11]="Invalid state",z.INVALID_STATE_ERR=11);function G(a,b){if(b instanceof Error)var c=b;else c=this,Error.call(this,A[a]),this.message=A[a],Error.captureStackTrace&&Error.captureStackTrace(this,G);return c.code=a,b&&(this.message=this.message+": "+b),c}function H(){}function I(a,b){this._node=a,this._refresh=b,J(this)}function J(a){var b=a._node._inc||a._node.ownerDocument._inc;if(a._inc!==b){var c=a._refresh(a._node);if(av(a,"length",c.length),!a.$$length||c.length<a.$$length)for(var d=c.length;d in a;d++)Object.prototype.hasOwnProperty.call(a,d)&&delete a[d];k(c,a),a._inc=b}}function K(){this._nameIndex=Object.create(null)}function L(a,b){for(var c=a.length;c--;)if(a[c]===b)return c}function M(a,b){a._nameIndex[b.nodeName]===b&&delete a._nameIndex[b.nodeName]}function N(a,b,c,d){if(d?(b[L(b,d)]=c,M(b,d)):b[b.length++]=c,b._nameIndex[c.nodeName]=c,a){c.ownerElement=a;var e,g,h,i=a.ownerDocument;i&&(d&&V(i,a,d),e=i,g=a,h=c,e&&e._inc++,h.namespaceURI===f.XMLNS&&(g._nsMap[h.prefix?h.localName:""]=h.value))}}function O(a,b,c){var d=L(b,c);if(d>=0){for(var e=b.length-1;d<e;)b[d]=b[++d];if(b.length=e,M(b,c),a){var f=a.ownerDocument;f&&(V(f,a,c),c.ownerElement=null)}}else throw new G(D,Error(a.tagName+"@"+c))}function P(){}function Q(){}function R(a){return"<"==a&&"<"||">"==a&&">"||"&"==a&&"&"||'"'==a&&"""||"&#"+a.charCodeAt()+";"}function S(a,b){return T(a,null,{enter:function(a){return!b(a)||T.STOP}})===T.STOP}function T(a,b,c){for(var d=[{node:a,context:b,phase:T.ENTER}];d.length>0;){var e=d.pop();if(e.phase===T.ENTER){var f=c.enter(e.node,e.context);if(f===T.STOP)return T.STOP;if(d.push({node:e.node,context:f,phase:T.EXIT}),null==f)continue;for(var g=e.node.lastChild;g;)d.push({node:g,context:f,phase:T.ENTER}),g=g.previousSibling}else c.exit&&c.exit(e.node,e.context)}}function U(){this.ownerDocument=this}function V(a,b,c,d){a&&a._inc++,c.namespaceURI===f.XMLNS&&delete b._nsMap[c.prefix?c.localName:""]}function W(a,b,c){if(a&&a._inc){a._inc++;var d=b.childNodes;if(c)d[d.length++]=c;else{for(var e=b.firstChild,f=0;e;)d[f++]=e,e=e.nextSibling;d.length=f,delete d[d.length]}}}function X(a,b){var c=b.previousSibling,d=b.nextSibling;return c?c.nextSibling=d:a.firstChild=d,d?d.previousSibling=c:a.lastChild=c,b.parentNode=null,b.previousSibling=null,b.nextSibling=null,W(a.ownerDocument,a),b}function Y(a){return a&&a.nodeType===Q.DOCUMENT_TYPE_NODE}function Z(a){return a&&a.nodeType===Q.ELEMENT_NODE}function $(a){return a&&a.nodeType===Q.TEXT_NODE}function _(a,b){var c=a.childNodes||[];if(e(c,Z)||Y(b))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function aa(a,b){var c=a.childNodes||[];if(e(c,function(a){return Z(a)&&a!==b}))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function ab(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!aa(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!aa(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,function(a){return Y(a)&&a!==c}))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element")}}function ac(a,b,c,d){if(!(a&&(a.nodeType===Q.DOCUMENT_NODE||a.nodeType===Q.DOCUMENT_FRAGMENT_NODE||a.nodeType===Q.ELEMENT_NODE)))throw new G(B,"Unexpected parent node type "+a.nodeType);if(c&&c.parentNode!==a)throw new G(D,"child not in parent");if(!(b&&(Z(b)||$(b)||Y(b)||b.nodeType===Q.DOCUMENT_FRAGMENT_NODE||b.nodeType===Q.COMMENT_NODE||b.nodeType===Q.PROCESSING_INSTRUCTION_NODE))||Y(b)&&a.nodeType!==Q.DOCUMENT_NODE)throw new G(B,"Unexpected node type "+b.nodeType+" for parent node type "+a.nodeType);a.nodeType===Q.DOCUMENT_NODE&&(d||function(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!_(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!_(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,Y))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element");if(!c&&h)throw new G(B,"Doctype can not be appended since element is present")}})(a,b,c);var f=b.parentNode;if(f&&f.removeChild(b),b.nodeType===x){var g=b.firstChild;if(null==g)return b;var h=b.lastChild}else g=h=b;var i=c?c.previousSibling:a.lastChild;g.previousSibling=i,h.nextSibling=c,i?i.nextSibling=g:a.firstChild=g,null==c?a.lastChild=h:c.previousSibling=h;do g.parentNode=a,ad(g,a.ownerDocument||a);while(g!==h&&(g=g.nextSibling));return W(a.ownerDocument||a,a),b.nodeType==x&&(b.firstChild=b.lastChild=null),b}function ad(a,b){if(a.ownerDocument!==b){if(a.ownerDocument=b,a.nodeType===n&&a.attributes)for(var c=0;c<a.attributes.length;c++){var d=a.attributes.item(c);d&&(d.ownerDocument=b)}for(var e=a.firstChild;e;)ad(e,b),e=e.nextSibling}}function ae(){this._nsMap={}}function af(){}function ag(){}function ah(){}function ai(){}function aj(){}function ak(){}function al(){}function am(){}function an(){}function ao(){}function ap(){}function aq(){}function ar(a,b,c){var d=!!c&&!!c.requireWellFormed,e=[],f=9==this.nodeType&&this.documentElement||this,g=f.prefix,h=f.namespaceURI;if(h&&null==g){var g=f.lookupPrefix(h);if(null==g)var i=[{namespace:h,prefix:null}]}return au(this,e,a,b,i,d),e.join("")}function as(a,b,c){var d=a.prefix||"",e=a.namespaceURI;if(!e||"xml"===d&&e===f.XML||e===f.XMLNS)return!1;for(var g=c.length;g--;){var h=c[g];if(h.prefix===d)return h.namespace!==e}return!0}function at(a,b,c,d){if(d&&!g.test(b))throw new G(F,'The attribute name "'+b+'" is not a valid XML QName');a.push(" ",b,'="',c.replace(/[<>&"\t\n\r]/g,R),'"')}function au(a,b,c,d,e,h){e||(e=[]),T(a,{ns:e,isHTML:c},{enter:function(a,c){var e=c.ns,i=c.isHTML;if(d){if(!(a=d(a)))return null;if("string"==typeof a)return b.push(a),null}switch(a.nodeType){case n:var j,k=a.attributes,l=k.length,m=a.tagName;i=f.isHTML(a.namespaceURI)||i;var s=m;if(!i&&!a.prefix&&a.namespaceURI){for(var y=0;y<k.length;y++)if("xmlns"===k.item(y).name){j=k.item(y).value;break}if(!j)for(var z=e.length-1;z>=0;z--){var A=e[z];if(""===A.prefix&&A.namespace===a.namespaceURI){j=A.namespace;break}}if(j!==a.namespaceURI)for(var z=e.length-1;z>=0;z--){var A=e[z];if(A.namespace===a.namespaceURI){A.prefix&&(s=A.prefix+":"+m);break}}}if(h&&!g.test(s))throw new G(F,'The element name "'+s+'" is not a valid XML QName');b.push("<",s);for(var B=e.slice(),C=0;C<l;C++){var D=k.item(C);"xmlns"==D.prefix?B.push({prefix:D.localName,namespace:D.value}):"xmlns"==D.nodeName&&B.push({prefix:"",namespace:D.value})}for(var C=0;C<l;C++){var D=k.item(C);if(as(D,i,B)){var E=D.prefix||"",H=D.namespaceURI;at(b,E?"xmlns:"+E:"xmlns",H,h),B.push({prefix:E,namespace:H})}var I=d?d(D):D;I&&("string"==typeof I?b.push(I):at(b,I.name,I.value,h))}if(m===s&&as(a,i,B)){var J=a.prefix||"",H=a.namespaceURI;at(b,J?"xmlns:"+J:"xmlns",H,h),B.push({prefix:J,namespace:H})}var K=a.firstChild;if(!K&&(!i||/^(?:meta|link|img|br|hr|input)$/i.test(m)))return b.push("/>"),null;if(b.push(">"),i&&/^script$/i.test(m)){for(;K;)K.data?b.push(K.data):au(K,b,i,d,B.slice(),h),K=K.nextSibling;return b.push("</",m,">"),null}return{ns:B,isHTML:i,tag:s};case v:case x:return{ns:e.slice(),isHTML:i,tag:null};case o:return at(b,a.name,a.value,h),null;case p:return b.push(a.data.replace(/[<&>]/g,R)),null;case q:if(h&&-1!==a.data.indexOf("]]>"))throw new G(F,'The CDATASection data contains "]]>"');return b.push("<![CDATA[",a.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case u:if(h&&-1!==a.data.indexOf("--\x3e"))throw new G(F,'The comment node data contains "--\x3e"');return b.push("\x3c!--",a.data,"--\x3e"),null;case w:if(h){if(!g.test(a.name))throw new G(F,'The doctype name "'+a.name+'" is not a valid XML Name');if(a.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(a.publicId))throw new G(F,"DocumentType publicId is not a valid PubidLiteral");if(a.systemId&&!/^("[^"]*"|'[^']*')$/.test(a.systemId))throw new G(F,"DocumentType systemId is not a valid SystemLiteral");if(a.internalSubset&&-1!==a.internalSubset.indexOf("]>"))throw new G(F,'DocumentType internalSubset contains "]>"')}var L=a.publicId,M=a.systemId;if(b.push("<!DOCTYPE ",a.name),L)b.push(" PUBLIC ",L),M&&"."!=M&&b.push(" ",M),b.push(">");else if(M&&"."!=M)b.push(" SYSTEM ",M,">");else{var N=a.internalSubset;N&&b.push(" [",N,"]"),b.push(">")}return null;case t:if(h){if(!g.test(a.target)||-1!==a.target.indexOf(":")||"xml"===a.target.toLowerCase())throw new G(F,'The processing instruction target "'+a.target+'" is not a valid XML NCName or is reserved');if(-1!==a.data.indexOf("?>"))throw new G(F,'The ProcessingInstruction data contains "?>"')}return b.push("<?",a.target," ",a.data,"?>"),null;case r:if(h&&!g.test(a.nodeName))throw new G(F,'The entity reference name "'+a.nodeName+'" is not a valid XML Name');return b.push("&",a.nodeName,";"),null;default:return b.push("??",a.nodeName),null}},exit:function(a,c){c&&c.tag&&b.push("</",c.tag,">")}})}function av(a,b,c){a[b]=c}A[12]="Syntax error",z.SYNTAX_ERR=12,A[13]="Invalid modification",z.INVALID_MODIFICATION_ERR=13,A[14]="Invalid namespace",z.NAMESPACE_ERR=14,A[15]="Invalid access",z.INVALID_ACCESS_ERR=15,G.prototype=Error.prototype,k(z,G),H.prototype={length:0,item:function(a){return a>=0&&a<this.length?this[a]:null},toString:function(a,b,c){for(var d=!!c&&!!c.requireWellFormed,e=[],f=0;f<this.length;f++)au(this[f],e,a,b,null,d);return e.join("")},filter:function(a){return Array.prototype.filter.call(this,a)},indexOf:function(a){return Array.prototype.indexOf.call(this,a)}},I.prototype.item=function(a){return J(this),this[a]||null},l(I,H),K.prototype={length:0,item:H.prototype.item,getNamedItem:function(a){for(var b=this.length;b--;){var c=this[b];if(c.nodeName==a)return c}},setNamedItem:function(a){var b=a.ownerElement;if(b&&b!=this._ownerElement)throw new G(E);var c=this._nameIndex[a.nodeName];return N(this._ownerElement,this,a,c),c},setNamedItemNS:function(a){var b,c=a.ownerElement;if(c&&c!=this._ownerElement)throw new G(E);return b=this.getNamedItemNS(a.namespaceURI,a.localName),N(this._ownerElement,this,a,b),b},removeNamedItem:function(a){var b=this.getNamedItem(a);return O(this._ownerElement,this,b),b},removeNamedItemNS:function(a,b){var c=this.getNamedItemNS(a,b);return O(this._ownerElement,this,c),c},getNamedItemNS:function(a,b){for(var c=this.length;c--;){var d=this[c];if(d.localName==b&&d.namespaceURI==a)return d}return null}},P.prototype={hasFeature:function(a,b){return!0},createDocument:function(a,b,c){var d=new U;if(d.implementation=this,d.childNodes=new H,d.doctype=c||null,c&&d.appendChild(c),b){var e=d.createElementNS(a,b);d.appendChild(e)}return d},createDocumentType:function(a,b,c){var d=new ak;return d.name=a,d.nodeName=a,d.publicId=b||"",d.systemId=c||"",d}},Q.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(a,b){return ac(this,a,b)},replaceChild:function(a,b){ac(this,a,b,ab),b&&this.removeChild(b)},removeChild:function(a){return X(this,a)},appendChild:function(a){return this.insertBefore(a,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(a){return function a(b,c,d){var e;return T(c,null,{enter:function(c,f){var g=new c.constructor;for(var h in c)if(Object.prototype.hasOwnProperty.call(c,h)){var i=c[h];"object"!=typeof i&&i!=g[h]&&(g[h]=i)}c.childNodes&&(g.childNodes=new H),g.ownerDocument=b;var j=d;switch(g.nodeType){case n:var k=c.attributes,l=g.attributes=new K,m=k.length;l._ownerElement=g;for(var p=0;p<m;p++)g.setAttributeNode(a(b,k.item(p),!0));break;case o:j=!0}return null!==f?f.appendChild(g):e=g,j?g:null}}),e}(this.ownerDocument||this,this,a)},normalize:function(){T(this,null,{enter:function(a){for(var b=a.firstChild;b;){var c=b.nextSibling;if(null!==c&&c.nodeType===p&&b.nodeType===p){for(var d=[],e=c;null!==e&&e.nodeType===p;)d.push(e.data),e=e.nextSibling;for(var f=b.nextSibling;f!==e;){var g=f.nextSibling;f.parentNode=null,f.previousSibling=null,f.nextSibling=null,f=g}b.nextSibling=e,null!==e?e.previousSibling=b:a.lastChild=b,b.appendData(d.join("")),W(a.ownerDocument,a),b=e}else b=c}return!0}})},isSupported:function(a,b){return this.ownerDocument.implementation.hasFeature(a,b)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(a){for(var b=this;b;){var c=b._nsMap;if(c){for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)&&c[d]===a)return d}b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},lookupNamespaceURI:function(a){for(var b=this;b;){var c=b._nsMap;if(c&&Object.prototype.hasOwnProperty.call(c,a))return c[a];b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},isDefaultNamespace:function(a){return null==this.lookupPrefix(a)}},k(m,Q),k(m,Q.prototype),T.STOP=Symbol("walkDOM.STOP"),T.ENTER=0,T.EXIT=1,U.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(a,b){if(a.nodeType==x){for(var c=a.firstChild;c;){var d=c.nextSibling;this.insertBefore(c,b),c=d}return a}return ac(this,a,b),ad(a,this),null===this.documentElement&&a.nodeType===n&&(this.documentElement=a),a},removeChild:function(a){return this.documentElement==a&&(this.documentElement=null),X(this,a)},replaceChild:function(a,b){ac(this,a,b,ab),ad(a,this),b&&this.removeChild(b),Z(a)&&(this.documentElement=a)},importNode:function(a,b){var c,d,e,f;return c=this,d=a,e=b,T(d,null,{enter:function(a,b){var d=a.cloneNode(!1);return d.ownerDocument=c,d.parentNode=null,null===b?f=d:b.appendChild(d),a.nodeType===o||e?d:null}}),f},getElementById:function(a){var b=null;return S(this.documentElement,function(c){if(c.nodeType==n&&c.getAttribute("id")==a)return b=c,!0}),b},getElementsByClassName:function(a){var b=j(a);return new I(this,function(c){var d=[];return b.length>0&&S(c.documentElement,function(e){if(e!==c&&e.nodeType===n){var f=e.getAttribute("class");if(f){var g=a===f;if(!g){var h=j(f);g=b.every(function(a){return h&&-1!==h.indexOf(a)})}g&&d.push(e)}}}),d})},createElement:function(a){var b=new ae;return b.ownerDocument=this,b.nodeName=a,b.tagName=a,b.localName=a,b.childNodes=new H,(b.attributes=new K)._ownerElement=b,b},createDocumentFragment:function(){var a=new ao;return a.ownerDocument=this,a.childNodes=new H,a},createTextNode:function(a){var b=new ah;return b.ownerDocument=this,b.appendData(a),b},createComment:function(a){var b=new ai;return b.ownerDocument=this,b.appendData(a),b},createCDATASection:function(a){if(-1!==a.indexOf("]]>"))throw new G(C,'data contains "]]>"');var b=new aj;return b.ownerDocument=this,b.appendData(a),b},createProcessingInstruction:function(a,b){var c=new ap;return c.ownerDocument=this,c.tagName=c.nodeName=c.target=a,c.nodeValue=c.data=b,c},createAttribute:function(a){var b=new af;return b.ownerDocument=this,b.name=a,b.nodeName=a,b.localName=a,b.specified=!0,b},createEntityReference:function(a){if(!g.test(a))throw new G(C,'not a valid xml name "'+a+'"');var b=new an;return b.ownerDocument=this,b.nodeName=a,b},createElementNS:function(a,b){var c=new ae,d=b.split(":"),e=c.attributes=new K;return c.childNodes=new H,c.ownerDocument=this,c.nodeName=b,c.tagName=b,c.namespaceURI=a,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,e._ownerElement=c,c},createAttributeNS:function(a,b){var c=new af,d=b.split(":");return c.ownerDocument=this,c.nodeName=b,c.name=b,c.namespaceURI=a,c.specified=!0,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,c}},l(U,Q),ae.prototype={nodeType:n,hasAttribute:function(a){return null!=this.getAttributeNode(a)},getAttribute:function(a){var b=this.getAttributeNode(a);return b&&b.value||""},getAttributeNode:function(a){return this.attributes.getNamedItem(a)},setAttribute:function(a,b){var c=this.ownerDocument.createAttribute(a);c.value=c.nodeValue=""+b,this.setAttributeNode(c)},removeAttribute:function(a){var b=this.getAttributeNode(a);b&&this.removeAttributeNode(b)},appendChild:function(a){return a.nodeType===x?this.insertBefore(a,null):(a.parentNode&&a.parentNode.removeChild(a),a.parentNode=this,a.previousSibling=this.lastChild,a.nextSibling=null,a.previousSibling?a.previousSibling.nextSibling=a:this.firstChild=a,this.lastChild=a,W(this.ownerDocument,this,a),ad(a,this.ownerDocument||this),a)},setAttributeNode:function(a){return this.attributes.setNamedItem(a)},setAttributeNodeNS:function(a){return this.attributes.setNamedItemNS(a)},removeAttributeNode:function(a){return this.attributes.removeNamedItem(a.nodeName)},removeAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);c&&this.removeAttributeNode(c)},hasAttributeNS:function(a,b){return null!=this.getAttributeNodeNS(a,b)},getAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);return c&&c.value||""},setAttributeNS:function(a,b,c){var d=this.ownerDocument.createAttributeNS(a,b);d.value=d.nodeValue=""+c,this.setAttributeNode(d)},getAttributeNodeNS:function(a,b){return this.attributes.getNamedItemNS(a,b)},getElementsByTagName:function(a){return new I(this,function(b){var c=[];return S(b,function(d){d!==b&&d.nodeType==n&&("*"===a||d.tagName==a)&&c.push(d)}),c})},getElementsByTagNameNS:function(a,b){return new I(this,function(c){var d=[];return S(c,function(e){e!==c&&e.nodeType===n&&("*"===a||e.namespaceURI===a)&&("*"===b||e.localName==b)&&d.push(e)}),d})}},U.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,l(ae,Q),af.prototype.nodeType=o,l(af,Q),ag.prototype={data:"",substringData:function(a,b){return this.data.substring(a,a+b)},appendData:function(a){a=this.data+a,this.nodeValue=this.data=a,this.length=a.length},insertData:function(a,b){this.replaceData(a,0,b)},appendChild:function(a){throw Error(A[B])},deleteData:function(a,b){this.replaceData(a,b,"")},replaceData:function(a,b,c){c=this.data.substring(0,a)+c+this.data.substring(a+b),this.nodeValue=this.data=c,this.length=c.length}},l(ag,Q),ah.prototype={nodeName:"#text",nodeType:p,splitText:function(a){var b=this.data,c=b.substring(a);b=b.substring(0,a),this.data=this.nodeValue=b,this.length=b.length;var d=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling),d}},l(ah,ag),ai.prototype={nodeName:"#comment",nodeType:u},l(ai,ag),aj.prototype={nodeName:"#cdata-section",nodeType:q},l(aj,ag),ak.prototype.nodeType=w,l(ak,Q),al.prototype.nodeType=y,l(al,Q),am.prototype.nodeType=s,l(am,Q),an.prototype.nodeType=r,l(an,Q),ao.prototype.nodeName="#document-fragment",ao.prototype.nodeType=x,l(ao,Q),ap.prototype.nodeType=t,l(ap,Q),aq.prototype.serializeToString=function(a,b,c,d){return ar.call(a,b,c,d)},Q.prototype.toString=ar;try{Object.defineProperty&&(Object.defineProperty(I.prototype,"length",{get:function(){return J(this),this.$$length}}),Object.defineProperty(Q.prototype,"textContent",{get:function(){if(this.nodeType===n||this.nodeType===x){var a=[];return T(this,null,{enter:function(b){return b.nodeType===n||b.nodeType===x||(b.nodeType===t||b.nodeType===u?null:void a.push(b.nodeValue))}}),a.join("")}return this.nodeValue},set:function(a){switch(this.nodeType){case n:case x:for(;this.firstChild;)this.removeChild(this.firstChild);(a||String(a))&&this.appendChild(this.ownerDocument.createTextNode(a));break;default:this.data=a,this.value=a,this.nodeValue=a}}}),av=function(a,b,c){a["$$"+b]=c})}catch(a){}b.DocumentType=ak,b.DOMException=G,b.DOMImplementation=P,b.Element=ae,b.Node=Q,b.NodeList=H,b.walkDOM=T,b.XMLSerializer=aq},81654:(a,b,c)=>{!function(a){a.parser=function(a,b){return new h(a,b)},a.SAXParser=h,a.SAXStream=j,a.createStream=function(a,b){return new j(a,b)},a.MAX_BUFFER_LENGTH=65536;var b,d,e,f,g=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function h(b,c){if(!(this instanceof h))return new h(b,c);(function(a){for(var b=0,c=g.length;b<c;b++)a[g[b]]=""})(this),this.q=this.c="",this.bufferCheckPosition=a.MAX_BUFFER_LENGTH,this.encoding=null,this.opt=c||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.opt.maxEntityCount=this.opt.maxEntityCount||512,this.opt.maxEntityDepth=this.opt.maxEntityDepth||4,this.entityCount=this.entityDepth=0,this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!b,this.noscript=!!(b||this.opt.noscript),this.state=w.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(o)),void 0===this.opt.unquotedAttributeValues&&(this.opt.unquotedAttributeValues=!b),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),y(this,"onready")}a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(a){function b(){}return b.prototype=a,new b}),Object.keys||(Object.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b}),h.prototype={end:function(){E(this)},write:function(b){if(this.error)throw this.error;if(this.closed)return D(this,"Cannot write after close. Assign an onready handler.");if(null===b)return E(this);"object"==typeof b&&(b=b.toString());for(var c=0,d="";d=L(b,c++),this.c=d,d;)switch(this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++),this.state){case w.BEGIN:if(this.state=w.BEGIN_WHITESPACE,"\uFEFF"===d)continue;K(this,d);continue;case w.BEGIN_WHITESPACE:K(this,d);continue;case w.TEXT:if(this.sawRoot&&!this.closedRoot){for(var e=c-1;d&&"<"!==d&&"&"!==d;)(d=L(b,c++))&&this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++);this.textNode+=b.substring(e,c-1)}"<"!==d||this.sawRoot&&this.closedRoot&&!this.strict?(t(d)||this.sawRoot&&!this.closedRoot||F(this,"Text data outside of root node."),"&"===d?this.state=w.TEXT_ENTITY:this.textNode+=d):(this.state=w.OPEN_WAKA,this.startTagPosition=this.position);continue;case w.SCRIPT:"<"===d?this.state=w.SCRIPT_ENDING:this.script+=d;continue;case w.SCRIPT_ENDING:"/"===d?this.state=w.CLOSE_TAG:(this.script+="<"+d,this.state=w.SCRIPT);continue;case w.OPEN_WAKA:"!"===d?(this.state=w.SGML_DECL,this.sgmlDecl=""):t(d)||(v(p,d)?(this.state=w.OPEN_TAG,this.tagName=d):"/"===d?(this.state=w.CLOSE_TAG,this.tagName=""):"?"===d?(this.state=w.PROC_INST,this.procInstName=this.procInstBody=""):(F(this,"Unencoded <"),this.startTagPosition+1<this.position&&(d=Array(this.position-this.startTagPosition).join(" ")+d),this.textNode+="<"+d,this.state=w.TEXT));continue;case w.SGML_DECL:if(this.sgmlDecl+d==="--"){this.state=w.COMMENT,this.comment="",this.sgmlDecl="";continue}this.doctype&&!0!==this.doctype&&this.sgmlDecl?(this.state=w.DOCTYPE_DTD,this.doctype+="<!"+this.sgmlDecl+d,this.sgmlDecl=""):k.test(this.sgmlDecl+d)?(A(this,"onopencdata"),this.state=w.CDATA,this.sgmlDecl="",this.cdata=""):l.test(this.sgmlDecl+d)?(this.state=w.DOCTYPE,(this.doctype||this.sawRoot)&&F(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===d?(A(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):(u(d)&&(this.state=w.SGML_DECL_QUOTED),this.sgmlDecl+=d);continue;case w.SGML_DECL_QUOTED:d===this.q&&(this.state=w.SGML_DECL,this.q=""),this.sgmlDecl+=d;continue;case w.DOCTYPE:">"===d?(this.state=w.TEXT,A(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=d,"["===d?this.state=w.DOCTYPE_DTD:u(d)&&(this.state=w.DOCTYPE_QUOTED,this.q=d));continue;case w.DOCTYPE_QUOTED:this.doctype+=d,d===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:"]"===d?(this.doctype+=d,this.state=w.DOCTYPE):"<"===d?(this.state=w.OPEN_WAKA,this.startTagPosition=this.position):u(d)?(this.doctype+=d,this.state=w.DOCTYPE_DTD_QUOTED,this.q=d):this.doctype+=d;continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=d,d===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===d?this.state=w.COMMENT_ENDING:this.comment+=d;continue;case w.COMMENT_ENDING:"-"===d?(this.state=w.COMMENT_ENDED,this.comment=C(this.opt,this.comment),this.comment&&A(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+d,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==d?(F(this,"Malformed comment"),this.comment+="--"+d,this.state=w.COMMENT):this.doctype&&!0!==this.doctype?this.state=w.DOCTYPE_DTD:this.state=w.TEXT;continue;case w.CDATA:for(var e=c-1;d&&"]"!==d;)(d=L(b,c++))&&this.trackPosition&&(this.position++,"\n"===d?(this.line++,this.column=0):this.column++);this.cdata+=b.substring(e,c-1),"]"===d&&(this.state=w.CDATA_ENDING);continue;case w.CDATA_ENDING:"]"===d?this.state=w.CDATA_ENDING_2:(this.cdata+="]"+d,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===d?(this.cdata&&A(this,"oncdata",this.cdata),A(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===d?this.cdata+="]":(this.cdata+="]]"+d,this.state=w.CDATA);continue;case w.PROC_INST:"?"===d?this.state=w.PROC_INST_ENDING:t(d)?this.state=w.PROC_INST_BODY:this.procInstName+=d;continue;case w.PROC_INST_BODY:!this.procInstBody&&t(d)||("?"===d?this.state=w.PROC_INST_ENDING:this.procInstBody+=d);continue;case w.PROC_INST_ENDING:if(">"===d){let a={name:this.procInstName,body:this.procInstBody};!function(a,b){if(a.strict&&a.encoding&&b&&"xml"===b.name){let g,h;var c,d,e,f=(d=(c=b.body)&&c.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i))?d[2]:null;f&&(e=a.encoding,g=z(e),h=z(f),g&&h&&("utf16"===h?"utf16le"!==g&&"utf16be"!==g:g!==h))&&F(a,"XML declaration encoding "+f+" does not match detected stream encoding "+a.encoding.toUpperCase())}}(this,a),A(this,"onprocessinginstruction",a),this.procInstName=this.procInstBody="",this.state=w.TEXT}else this.procInstBody+="?"+d,this.state=w.PROC_INST_BODY;continue;case w.OPEN_TAG:v(q,d)?this.tagName+=d:(!function(a){a.strict||(a.tagName=a.tagName[a.looseCase]());var b=a.tags[a.tags.length-1]||a,c=a.tag={name:a.tagName,attributes:{}};a.opt.xmlns&&(c.ns=b.ns),a.attribList.length=0,A(a,"onopentagstart",c)}(this),">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:(t(d)||F(this,"Invalid character in tag name"),this.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:">"===d?(I(this,!0),J(this)):(F(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:t(d)||(">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:v(p,d)?(this.attribName=d,this.attribValue="",this.state=w.ATTRIB_NAME):F(this,"Invalid attribute name"));continue;case w.ATTRIB_NAME:"="===d?this.state=w.ATTRIB_VALUE:">"===d?(F(this,"Attribute without value"),this.attribValue=this.attribName,H(this),I(this)):t(d)?this.state=w.ATTRIB_NAME_SAW_WHITE:v(q,d)?this.attribName+=d:F(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===d)this.state=w.ATTRIB_VALUE;else{if(t(d))continue;F(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",A(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===d?I(this):v(p,d)?(this.attribName=d,this.state=w.ATTRIB_NAME):(F(this,"Invalid attribute name"),this.state=w.ATTRIB)}continue;case w.ATTRIB_VALUE:t(d)||(u(d)?(this.q=d,this.state=w.ATTRIB_VALUE_QUOTED):(this.opt.unquotedAttributeValues||D(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=d));continue;case w.ATTRIB_VALUE_QUOTED:if(d!==this.q){"&"===d?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=d;continue}H(this),this.q="",this.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:t(d)?this.state=w.ATTRIB:">"===d?I(this):"/"===d?this.state=w.OPEN_TAG_SLASH:v(p,d)?(F(this,"No whitespace between attributes"),this.attribName=d,this.attribValue="",this.state=w.ATTRIB_NAME):F(this,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!(">"===(f=d)||t(f))){"&"===d?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=d;continue}H(this),">"===d?I(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:this.tagName?">"===d?J(this):v(q,d)?this.tagName+=d:this.script?(this.script+="</"+this.tagName+d,this.tagName="",this.state=w.SCRIPT):(t(d)||F(this,"Invalid tagname in closing tag"),this.state=w.CLOSE_TAG_SAW_WHITE):t(d)||(v(p,d)?this.tagName=d:this.script?(this.script+="</"+d,this.state=w.SCRIPT):F(this,"Invalid tagname in closing tag."));continue;case w.CLOSE_TAG_SAW_WHITE:if(t(d))continue;">"===d?J(this):F(this,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(this.state){case w.TEXT_ENTITY:h=w.TEXT,i="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:h=w.ATTRIB_VALUE_QUOTED,i="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:h=w.ATTRIB_VALUE_UNQUOTED,i="attribValue"}if(";"===d){var f,h,i,j=function(a){var b,c,d=a.entity,e=d.toLowerCase(),f="";return a.ENTITIES[d]?a.ENTITIES[d]:a.ENTITIES[e]?a.ENTITIES[e]:("#"===(d=e).charAt(0)&&(f="x"===d.charAt(1)?(c=parseInt(d=d.slice(2),16)).toString(16):(c=parseInt(d=d.slice(1),10)).toString(10)),d=d.replace(/^0+/,""),isNaN(c)||f.toLowerCase()!==d||c<0||c>1114111||!(9===(b=c)||10===b||13===b||b>=32&&b<=55295||b>=57344&&b<=65533||b>=65536&&b<=1114111))?(F(a,"Invalid character entity"),"&"+a.entity+";"):String.fromCodePoint(c)}(this);this.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes(j)?((this.entityCount+=1)>this.opt.maxEntityCount&&D(this,"Parsed entity count exceeds max entity count"),(this.entityDepth+=1)>this.opt.maxEntityDepth&&D(this,"Parsed entity depth exceeds max entity depth"),this.entity="",this.state=h,this.write(j),this.entityDepth-=1):(this[i]+=j,this.entity="",this.state=h)}else v(this.entity.length?s:r,d)?this.entity+=d:(F(this,"Invalid character in entity name"),this[i]+="&"+this.entity+d,this.entity="",this.state=h);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(b){for(var c=Math.max(a.MAX_BUFFER_LENGTH,10),d=0,e=0,f=g.length;e<f;e++){var h=b[g[e]].length;if(h>c)switch(g[e]){case"textNode":B(b);break;case"cdata":A(b,"oncdata",b.cdata),b.cdata="";break;case"script":A(b,"onscript",b.script),b.script="";break;default:D(b,"Max buffer length exceeded: "+g[e])}d=Math.max(d,h)}b.bufferCheckPosition=a.MAX_BUFFER_LENGTH-d+b.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){B(this),""!==this.cdata&&(A(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(A(this,"onscript",this.script),this.script="")}};try{f=c(27910).Stream}catch(a){f=function(){}}f||(f=function(){});var i=a.EVENTS.filter(function(a){return"error"!==a&&"end"!==a});function j(a,b){if(!(this instanceof j))return new j(a,b);f.apply(this),this._parser=new h(a,b),this.writable=!0,this.readable=!0;var c=this;this._parser.onend=function(){c.emit("end")},this._parser.onerror=function(a){c.emit("error",a),c._parser.error=null},this._decoder=null,this._decoderBuffer=null,i.forEach(function(a){Object.defineProperty(c,"on"+a,{get:function(){return c._parser["on"+a]},set:function(b){if(!b)return c.removeAllListeners(a),c._parser["on"+a]=b,b;c.on(a,b)},enumerable:!0,configurable:!1})})}j.prototype=Object.create(f.prototype,{constructor:{value:j}}),j.prototype._decodeBuffer=function(a,b){if(this._decoderBuffer&&(a=Buffer.concat([this._decoderBuffer,a]),this._decoderBuffer=null),!this._decoder){var c=function(a,b){if(a.length>=2){if(255===a[0]&&254===a[1])return"utf-16le";if(254===a[0]&&255===a[1])return"utf-16be"}return a.length>=3&&239===a[0]&&187===a[1]&&191===a[2]?"utf8":a.length>=4?60===a[0]&&0===a[1]&&63===a[2]&&0===a[3]?"utf-16le":0===a[0]&&60===a[1]&&0===a[2]&&63===a[3]?"utf-16be":"utf8":b?"utf8":null}(a,b);if(!c)return this._decoderBuffer=a,"";this._parser.encoding=c,this._decoder=new TextDecoder(c)}return this._decoder.decode(a,{stream:!b})},j.prototype.write=function(a){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(a))a=this._decodeBuffer(a,!1);else if(this._decoderBuffer){var b=this._decodeBuffer(Buffer.alloc(0),!0);b&&(this._parser.write(b),this.emit("data",b))}return this._parser.write(a.toString()),this.emit("data",a),!0},j.prototype.end=function(a){if(a&&a.length&&this.write(a),this._decoderBuffer){var b=this._decodeBuffer(Buffer.alloc(0),!0);b&&(this._parser.write(b),this.emit("data",b))}else if(this._decoder){var c=this._decoder.decode();c&&(this._parser.write(c),this.emit("data",c))}return this._parser.end(),!0},j.prototype.on=function(a,b){var c=this;return c._parser["on"+a]||-1===i.indexOf(a)||(c._parser["on"+a]=function(){var b=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);b.splice(0,0,a),c.emit.apply(c,b)}),f.prototype.on.call(c,a,b)};var k=/^\[CDATA\[$/i,l=/^DOCTYPE$/i,m="http://www.w3.org/XML/1998/namespace",n="http://www.w3.org/2000/xmlns/",o={xml:m,xmlns:n},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,r=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function t(a){return" "===a||"\n"===a||"\r"===a||" "===a}function u(a){return'"'===a||"'"===a}function v(a,b){return a.test(b)}var w=0;for(var x in a.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},a.XML_ENTITIES=Object.assign(Object.create(null),{amp:"&",gt:">",lt:"<",quot:'"',apos:"'"}),a.ENTITIES=Object.assign(Object.create(null),{amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}),Object.keys(a.ENTITIES).forEach(function(b){var c=a.ENTITIES[b],d="number"==typeof c?String.fromCharCode(c):c;a.ENTITIES[b]=d}),a.STATE)a.STATE[a.STATE[x]]=x;function y(a,b,c){a[b]&&a[b](c)}function z(a){return a?a.toLowerCase().replace(/[^a-z0-9]/g,""):null}function A(a,b,c){a.textNode&&B(a),y(a,b,c)}function B(a){a.textNode=C(a.opt,a.textNode),a.textNode&&y(a,"ontext",a.textNode),a.textNode=""}function C(a,b){return a.trim&&(b=b.trim()),a.normalize&&(b=b.replace(/\s+/g," ")),b}function D(a,b){return B(a),a.trackPosition&&(b+="\nLine: "+a.line+"\nColumn: "+a.column+"\nChar: "+a.c),a.error=b=Error(b),y(a,"onerror",b),a}function E(a){return a.sawRoot&&!a.closedRoot&&F(a,"Unclosed root tag"),a.state!==w.BEGIN&&a.state!==w.BEGIN_WHITESPACE&&a.state!==w.TEXT&&D(a,"Unexpected end"),B(a),a.c="",a.closed=!0,y(a,"onend"),h.call(a,a.strict,a.opt),a}function F(a,b){if("object"!=typeof a||!(a instanceof h))throw Error("bad call to strictFail");a.strict&&D(a,b)}function G(a,b){var c=0>a.indexOf(":")?["",a]:a.split(":"),d=c[0],e=c[1];return b&&"xmlns"===a&&(d="xmlns",e=""),{prefix:d,local:e}}function H(a){if(a.strict||(a.attribName=a.attribName[a.looseCase]()),-1!==a.attribList.indexOf(a.attribName)||a.tag.attributes.hasOwnProperty(a.attribName)){a.attribName=a.attribValue="";return}if(a.opt.xmlns){var b=G(a.attribName,!0),c=b.prefix,d=b.local;if("xmlns"===c)if("xml"===d&&a.attribValue!==m)F(a,"xml: prefix must be bound to "+m+"\nActual: "+a.attribValue);else if("xmlns"===d&&a.attribValue!==n)F(a,"xmlns: prefix must be bound to "+n+"\nActual: "+a.attribValue);else{var e=a.tag,f=a.tags[a.tags.length-1]||a;e.ns===f.ns&&(e.ns=Object.create(f.ns)),e.ns[d]=a.attribValue}a.attribList.push([a.attribName,a.attribValue])}else a.tag.attributes[a.attribName]=a.attribValue,A(a,"onattribute",{name:a.attribName,value:a.attribValue});a.attribName=a.attribValue=""}function I(a,b){if(a.opt.xmlns){var c=a.tag,d=G(a.tagName);c.prefix=d.prefix,c.local=d.local,c.uri=c.ns[d.prefix]||"",c.prefix&&!c.uri&&(F(a,"Unbound namespace prefix: "+JSON.stringify(a.tagName)),c.uri=d.prefix);var e=a.tags[a.tags.length-1]||a;c.ns&&e.ns!==c.ns&&Object.keys(c.ns).forEach(function(b){A(a,"onopennamespace",{prefix:b,uri:c.ns[b]})});for(var f=0,g=a.attribList.length;f<g;f++){var h=a.attribList[f],i=h[0],j=h[1],k=G(i,!0),l=k.prefix,m=k.local,n=""===l?"":c.ns[l]||"",o={name:i,value:j,prefix:l,local:m,uri:n};l&&"xmlns"!==l&&!n&&(F(a,"Unbound namespace prefix: "+JSON.stringify(l)),o.uri=l),a.tag.attributes[i]=o,A(a,"onattribute",o)}a.attribList.length=0}a.tag.isSelfClosing=!!b,a.sawRoot=!0,a.tags.push(a.tag),A(a,"onopentag",a.tag),b||(a.noscript||"script"!==a.tagName.toLowerCase()?a.state=w.TEXT:a.state=w.SCRIPT,a.tag=null,a.tagName=""),a.attribName=a.attribValue="",a.attribList.length=0}function J(a){if(!a.tagName){F(a,"Weird empty close tag."),a.textNode+="</>",a.state=w.TEXT;return}if(a.script){if("script"!==a.tagName){a.script+="</"+a.tagName+">",a.tagName="",a.state=w.SCRIPT;return}A(a,"onscript",a.script),a.script=""}var b=a.tags.length,c=a.tagName;a.strict||(c=c[a.looseCase]());for(var d=c;b--;)if(a.tags[b].name!==d)F(a,"Unexpected close tag");else break;if(b<0){F(a,"Unmatched closing tag: "+a.tagName),a.textNode+="</"+a.tagName+">",a.state=w.TEXT;return}a.tagName=c;for(var e=a.tags.length;e-- >b;){var f=a.tag=a.tags.pop();a.tagName=a.tag.name,A(a,"onclosetag",a.tagName);var g={};for(var h in f.ns)g[h]=f.ns[h];var i=a.tags[a.tags.length-1]||a;a.opt.xmlns&&f.ns!==i.ns&&Object.keys(f.ns).forEach(function(b){var c=f.ns[b];A(a,"onclosenamespace",{prefix:b,uri:c})})}0===b&&(a.closedRoot=!0),a.tagName=a.attribValue=a.attribName="",a.attribList.length=0,a.state=w.TEXT}function K(a,b){"<"===b?(a.state=w.OPEN_WAKA,a.startTagPosition=a.position):t(b)||(F(a,"Non-whitespace before first tag."),a.textNode=b,a.state=w.TEXT)}function L(a,b){var c="";return b<a.length&&(c=a.charAt(b)),c}w=a.STATE,String.fromCodePoint||(b=String.fromCharCode,d=Math.floor,e=function(){var a,c,e=[],f=-1,g=arguments.length;if(!g)return"";for(var h="";++f<g;){var i=Number(arguments[f]);if(!isFinite(i)||i<0||i>1114111||d(i)!==i)throw RangeError("Invalid code point: "+i);i<=65535?e.push(i):(i-=65536,a=(i>>10)+55296,c=i%1024+56320,e.push(a,c)),(f+1===g||e.length>16384)&&(h+=b.apply(null,e),e.length=0)}return h},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:e,configurable:!0,writable:!0}):String.fromCodePoint=e)}(b)},82307:function(a){(function(){a.exports=(function(){class a{constructor(a){this.nodes=a}clone(){return this.nodes=null}item(a){return this.nodes[a]||null}}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a}).call(this)}).call(this)},84519:function(a,b,c){(function(){var b,d,e,f,g,h,i,j={}.hasOwnProperty;({isObject:i,isFunction:h,getValue:g}=c(43594)),f=c(73067),b=c(26468),d=c(95759),e=c(87074),a.exports=(function(){class a extends f{constructor(a,c,d){var e,f,g,h;if(super(a),null==c)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(c),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,null!=d&&this.attribute(d),a.type===b.Document&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this,a.children)){for(f=0,g=(h=a.children).length;f<g;f++)if((e=h[f]).type===b.DocType){e.name=this.name;break}}}clone(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attribs={},d=this.attribs)j.call(d,b)&&(a=d[b],c.attribs[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c}attribute(a,b){var c,e;if(null!=a&&(a=g(a)),i(a))for(c in a)j.call(a,c)&&(e=a[c],this.attribute(c,e));else h(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.attribs[a]=new d(this,a,""):null!=b&&(this.attribs[a]=new d(this,a,b));return this}removeAttribute(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=g(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attribs[b];else delete this.attribs[a];return this}toString(a){return this.options.writer.element(this,this.options.writer.filterOptions(a))}att(a,b){return this.attribute(a,b)}a(a,b){return this.attribute(a,b)}getAttribute(a){return this.attribs.hasOwnProperty(a)?this.attribs[a].value:null}setAttribute(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(a){return this.attribs.hasOwnProperty(a)?this.attribs[a]:null}setAttributeNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(a){return this.attribs.hasOwnProperty(a)}hasAttributeNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(a,b){return this.attribs.hasOwnProperty(a)?this.attribs[a].isId:b}setIdAttributeNS(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(a){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var b,c,d;if(!super.isEqualNode(a)||a.namespaceURI!==this.namespaceURI||a.prefix!==this.prefix||a.localName!==this.localName||a.attribs.length!==this.attribs.length)return!1;for(b=c=0,d=this.attribs.length-1;0<=d?c<=d:c>=d;b=0<=d?++c:--c)if(!this.attribs[b].isEqualNode(a.attribs[b]))return!1;return!0}}return Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new e(this.attribs)),this.attributeMap}}),a}).call(this)}).call(this)},84689:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;e=c(4700).isObject,d=c(8957),b=c(24706),a.exports=function(a){function c(a,d,f,g){var h;c.__super__.constructor.call(this,a),e(d)&&(d=(h=d).version,f=h.encoding,g=h.standalone),d||(d="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(d),null!=f&&(this.encoding=this.stringify.xmlEncoding(f)),null!=g&&(this.standalone=this.stringify.xmlStandalone(g))}return f(c,a),c.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},c}(d)}).call(this)},86115:function(a,b,c){(function(){"use strict";var a,d,e,f,g,h={}.hasOwnProperty;a=c(7216),d=c(56068).defaults,f=function(a){return"string"==typeof a&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},g=function(a){return"<![CDATA["+e(a)+"]]>"},e=function(a){return a.replace("]]>","]]]]><![CDATA[>")},b.Builder=function(){function b(a){var b,c,e;for(b in this.options={},c=d["0.2"])h.call(c,b)&&(e=c[b],this.options[b]=e);for(b in a)h.call(a,b)&&(e=a[b],this.options[b]=e)}return b.prototype.buildObject=function(b){var c,e,i,j,k,l;return c=this.options.attrkey,e=this.options.charkey,1===Object.keys(b).length&&this.options.rootName===d["0.2"].rootName?(k=Object.keys(b)[0],b=b[k]):k=this.options.rootName,l=this,i=function(a,b){var d,j,k,m,n,o;if("object"!=typeof b)l.options.cdata&&f(b)?a.raw(g(b)):a.txt(b);else if(Array.isArray(b)){for(m in b)if(h.call(b,m))for(n in j=b[m])k=j[n],a=i(a.ele(n),k).up()}else for(n in b)if(h.call(b,n))if(j=b[n],n===c){if("object"==typeof j)for(d in j)o=j[d],a=a.att(d,o)}else if(n===e)a=l.options.cdata&&f(j)?a.raw(g(j)):a.txt(j);else if(Array.isArray(j))for(m in j)h.call(j,m)&&(a="string"==typeof(k=j[m])?l.options.cdata&&f(k)?a.ele(n).raw(g(k)).up():a.ele(n,k).up():i(a.ele(n),k).up());else"object"==typeof j?a=i(a.ele(n),j).up():"string"==typeof j&&l.options.cdata&&f(j)?a=a.ele(n).raw(g(j)).up():(null==j&&(j=""),a=a.ele(n,j.toString()).up());return a},j=a.create(k,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),i(j,b).end(this.options.renderOpts)},b}()}).call(this)},86175:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.findSignatureAlgorithm=function(a){let b=new f.SignedXml().SignatureAlgorithms;return Object.prototype.hasOwnProperty.call(b,a)?new b[a]:void 0},b.assertDigestAlgorithmChosen=function(a,b){if("sha256-mgf1"===a){if(null==b)throw TypeError('digestAlgorithm is required when signatureAlgorithm is "sha256-mgf1"');if(!h.digestAlgorithm.includes(b))throw TypeError(`digestAlgorithm "${b}" is not recognized; use one of ${h.digestAlgorithm.join(", ")}`)}},b.warnAlgorithmNotSet=function(a){g("`%s` is not set, so it defaults to `sha1`, which is no longer considered safe for signatures. The next major version requires it whenever `privateKey` is set; set it now.",a)},b.warnIfAlgorithmNotRecognized=function(a,b){void 0===b||h[a].includes(b)||g('`%s` is set to "%s", which is not recognized, so SHA-1 is used instead. Use one of %s. The next major version rejects an unrecognized value rather than downgrading.',a,b,h[a].join(", "))},b.getSigningAlgorithm=function(a){switch(a){case"sha256":return"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";case"sha256-mgf1":return"http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1";case"sha512":return"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";default:return"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}},b.getDigestAlgorithm=function(a){switch(a){case"sha256":return"http://www.w3.org/2001/04/xmlenc#sha256";case"sha512":return"http://www.w3.org/2001/04/xmlenc#sha512";default:return"http://www.w3.org/2000/09/xmldsig#sha1"}},b.getSigner=function(a){switch(a){case"sha256":return d.createSign("RSA-SHA256");case"sha512":return d.createSign("RSA-SHA512");default:return d.createSign("RSA-SHA1")}};let d=c(55511),e=c(28354),f=c(22859),g=e.debuglog("node-saml"),h={signatureAlgorithm:["sha1","sha256","sha256-mgf1","sha512"],digestAlgorithm:["sha1","sha256","sha512"]}},86690:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(24706),a.exports=function(a){function c(a,d){if(c.__super__.constructor.call(this,a),null==d)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=b.Text,this.value=this.stringify.text(d)}return d(c,a),Object.defineProperty(c.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"wholeText",{get:function(){var a,b,c;for(c="",b=this.previousSibling;b;)c=b.data+c,b=b.previousSibling;for(c+=this.data,a=this.nextSibling;a;)c+=a.data,a=a.nextSibling;return c}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},c.prototype.splitText=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceWholeText=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c}(c(92478))}).call(this)},87074:function(a){(function(){a.exports=(function(){class a{constructor(a){this.nodes=a}clone(){return this.nodes=null}getNamedItem(a){return this.nodes[a]}setNamedItem(a){var b;return b=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,b||null}removeNamedItem(a){var b;return b=this.nodes[a],delete this.nodes[a],b||null}item(a){return this.nodes[Object.keys(this.nodes)[a]]||null}getNamedItemNS(a,b){throw Error("This DOM method is not implemented.")}setNamedItemNS(a){throw Error("This DOM method is not implemented.")}removeNamedItemNS(a,b){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(a.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),a}).call(this)}).call(this)},88435:function(a){(function(){a.exports=function(){function a(){}return a.prototype.handleError=function(a){throw Error(a)},a}()}).call(this)},88909:function(a){(function(){a.exports=class{hasFeature(a,b){return!0}createDocumentType(a,b,c){throw Error("This DOM method is not implemented.")}createDocument(a,b,c){throw Error("This DOM method is not implemented.")}createHTMLDocument(a){throw Error("This DOM method is not implemented.")}getFeature(a,b){throw Error("This DOM method is not implemented.")}}}).call(this)},91729:(a,b,c)=>{var d=c(23849).NAMESPACE,e=c(23849).tagNamePattern;function f(a,b){this.message=a,this.locator=b,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function g(){}function h(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function i(a,b,c){for(var e=a.tagName,f=null,g=a.length;g--;){var h=a[g],i=h.qName,j=h.value,k=i.indexOf(":");if(k>0)var l=h.prefix=i.slice(0,k),m=i.slice(k+1),n="xmlns"===l&&m;else m=i,l=null,n="xmlns"===i&&"";h.localName=m,!1!==n&&(null==f&&(f={},c=Object.create(c)),c[n]=f[n]=j,h.uri=d.XMLNS,b.startPrefixMapping(n,j))}for(var g=a.length;g--;){var l=(h=a[g]).prefix;l&&("xml"===l&&(h.uri=d.XML),"xmlns"!==l&&(h.uri=c[l||""]))}var k=e.indexOf(":");k>0?(l=a.prefix=e.slice(0,k),m=a.localName=e.slice(k+1)):(l=null,m=a.localName=e);var o=a.uri=c[l||""];if(b.startElement(o,m,e,a),!a.closed)return a.currentNSMap=c,a.localNSMap=f,!0;if(b.endElement(o,m,e),f)for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&b.endPrefixMapping(l)}function j(){this.attributeNames={}}f.prototype=Error(),f.prototype.name=f.name,g.prototype={parse:function(a,b,c){var g=this.domBuilder;g.startDocument(),function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}(b,b={}),function(a,b,c,g,k){function l(a){var b,d=a.slice(1,-1);return Object.hasOwnProperty.call(c,d)?c[d]:"#"===d.charAt(0)?(b=parseInt(d.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((b-=65536)>>10),56320+(1023&b)):String.fromCharCode(b):(k.error("entity not found:"+a),a)}function m(b){if(b>u){var c=a.substring(u,b).replace(/&#?\w+;/g,l);r&&n(u),g.characters(c,0,b-u),u=b}}function n(b,c){for(;b>=p&&(c=q.exec(a));)p=(o=c.index)+c[0].length,r.lineNumber++;r.columnNumber=b-o+1}for(var o=0,p=0,q=/.*(?:\r\n?|\n)|.*$/g,r=g.locator,s=[{currentNSMap:b}],t={},u=0;;){try{var v=a.indexOf("<",u);if(v<0){if(!a.substr(u).match(/^\s*$/)){var w=g.doc,x=w.createTextNode(a.substr(u));w.appendChild(x),g.currentElement=x}return}switch(v>u&&m(v),a.charAt(v+1)){case"/":var y=a.indexOf(">",v+3),z=a.substring(v+2,y).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),A=s.pop();y<0?(z=a.substring(v+2).replace(/[\s<].*/,""),k.error("end tag name: "+z+" is not complete:"+A.tagName),y=v+1+z.length):z.match(/\s</)?(z=z.replace(/[\s<].*/,""),k.error("end tag name: "+z+" maybe not complete"),y=v+1+z.length):/[ \t\n\r]/.test(z)&&e.test(z.split(/[ \t\n\r]/)[0])&&k.error('end tag name is followed by whitespace and trailing content: "'+z+'"');var B=A.localNSMap,C=A.tagName==z;if(C||A.tagName&&A.tagName.toLowerCase()==z.toLowerCase()){if(g.endElement(A.uri,A.localName,z),B)for(var D in B)Object.prototype.hasOwnProperty.call(B,D)&&g.endPrefixMapping(D);C||k.fatalError("end tag name: "+z+" is not match the current start tagName:"+A.tagName)}else s.push(A);y++;break;case"?":r&&n(v),y=function(a,b,c){var d=a.indexOf("?>",b);if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(e)return e[0].length,c.processingInstruction(e[1],e[2]),d+2}return -1}(a,v,g);break;case"!":r&&n(v),y=function(a,b,c,d){if("-"===a.charAt(b+2)){if("-"===a.charAt(b+3)){var e=a.indexOf("--\x3e",b+4);if(e>b)return c.comment(a,b+4,e-b-4),e+3;d.error("Unclosed comment")}}else{if("CDATA["==a.substr(b+3,6)){var e=a.indexOf("]]>",b+9);return c.startCDATA(),c.characters(a,b+9,e-b-9),c.endCDATA(),e+3}var f=function(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}(a,b),g=f.length;if(g>1&&/!doctype/i.test(f[0][0])){var h=f[1][0],i=!1,j=!1;g>3&&(/^public$/i.test(f[2][0])?(i=f[3][0],j=g>4&&f[4][0]):/^system$/i.test(f[2][0])&&(j=f[3][0]));var k=f[g-1];return c.startDTD(h,i,j),c.endDTD(),k.index+k[0].length}}return -1}(a,v,g,k);break;default:r&&n(v);var E=new j,F=s[s.length-1].currentNSMap,y=function(a,b,c,e,f,g){function h(a,b,d){c.attributeNames.hasOwnProperty(a)&&g.fatalError("Attribute "+a+" redefined"),c.addValue(a,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,f),d)}for(var i,j,k=++b,l=0;;){var m=a.charAt(k);if(0===l&&"<"===m)throw Error("unexpected < in tag name: "+a.slice(b,k));switch(m){case"=":if(1===l)i=a.slice(b,k),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l)if(1===l&&(g.warning('attribute value must after "="'),i=a.slice(b,k)),b=k+1,(k=a.indexOf(m,b))>0)h(i,j=a.slice(b,k),b-1),l=5;else throw Error("attribute value no end '"+m+"' match");else if(4==l)h(i,j=a.slice(b,k),b),g.warning('attribute "'+i+'" missed start quot('+m+")!!"),b=k+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:l=7,c.closed=!0;case 4:case 1:break;case 2:c.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return g.error("unexpected end of input"),0==l&&c.setTagName(a.slice(b,k)),k;case">":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:break;case 4:case 1:"/"===(j=a.slice(b,k)).slice(-1)&&(c.closed=!0,j=j.slice(0,-1));case 2:2===l&&(j=i),4==l?(g.warning('attribute "'+j+'" missed quot(")!'),h(i,j,b)):(d.isHTML(e[""])&&j.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),h(j,j,b));break;case 3:throw Error("attribute value missed!!")}return k;case"\x80":m=" ";default:if(m<=" ")switch(l){case 0:c.setTagName(a.slice(b,k)),l=6;break;case 1:i=a.slice(b,k),l=2;break;case 4:var j=a.slice(b,k);g.warning('attribute "'+j+'" missed quot(")!!'),h(i,j,b);case 5:l=6}else switch(l){case 2:c.tagName,d.isHTML(e[""])&&i.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+i+'" missed value!! "'+i+'" instead2!!'),h(i,i,b),b=k,l=1;break;case 5:g.warning('attribute space is required"'+i+'"!!');case 6:l=1,b=k;break;case 3:l=4,b=k;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}k++}}(a,v,E,F,l,k),G=E.length;if(!E.closed&&function(a,b,c,d){var e=d[c];return null==e&&((e=a.lastIndexOf("</"+c+">"))<b&&(e=a.lastIndexOf("</"+c)),d[c]=e),e<b}(a,y,E.tagName,t)&&(E.closed=!0,c.nbsp||k.warning("unclosed xml attribute")),r&&G){for(var H=h(r,{}),I=0;I<G;I++){var J=E[I];n(J.offset),J.locator=h(r,{})}g.locator=H,i(E,g,F)&&s.push(E),g.locator=r}else i(E,g,F)&&s.push(E);d.isHTML(E.uri)&&!E.closed?y=function(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf("</"+c+">",b),g=a.substring(b+1,f);if(/[&<]/.test(g))return/^script$/i.test(c)||(g=g.replace(/&#?\w+;/g,d)),e.characters(g,0,g.length),f}return b+1}(a,y,E.tagName,l,g):y++}}catch(a){if(a instanceof f)throw a;k.error("element parse error: "+a),y=-1}y>u?u=y:m(Math.max(v,u)+1)}}(a,b,c,g,this.errorHandler),g.endDocument()}},j.prototype={setTagName:function(a){if(!e.test(a))throw Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,b,c){if(!e.test(a))throw Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}},b.XMLReader=g,b.ParseError=f},91848:(a,b,c)=>{var d=c(55511),e=c(12749),f=c(58029),g=c(15894);let h=["http://www.w3.org/2001/04/xmlenc#rsa-1_5","http://www.w3.org/2001/04/xmlenc#tripledes-cbc"];function i(a,b,c,e){let f=Buffer.isBuffer(a)?a:Buffer.from(a,"utf-8");try{var h={encryptedKey:d.publicEncrypt({key:b.rsa_pub,oaepHash:c==d.constants.RSA_PKCS1_OAEP_PADDING?b.keyEncryptionDigest:void 0,padding:c},f).toString("base64"),encryptionPublicCert:"<X509Data><X509Certificate>"+g.pemToCert(b.pem.toString())+"</X509Certificate></X509Data>",keyEncryptionMethod:b.keyEncryptionAlgorithm,keyEncryptionDigest:b.keyEncryptionDigest},i=g.renderTemplate("keyinfo",h);e(null,i)}catch(a){e(a)}}function j(a,b,c){if(!b)return c(Error("must provide options"));if(!b.rsa_pub)return c(Error("must provide options.rsa_pub with public key RSA"));if(!b.pem)return c(Error("must provide options.pem with certificate"));if(!b.keyEncryptionAlgorithm)return c(Error("encryption without encrypted key is not supported yet"));if(b.disallowEncryptionWithInsecureAlgorithm&&h.indexOf(b.keyEncryptionAlgorithm)>=0)return c(Error("encryption algorithm "+b.keyEncryptionAlgorithm+"is not secure"));switch(b.keyEncryptionDigest=b.keyEncryptionDigest||"sha1",b.keyEncryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p":return i(a,b,d.constants.RSA_PKCS1_OAEP_PADDING,c);case"http://www.w3.org/2001/04/xmlenc#rsa-1_5":return g.warnInsecureAlgorithm(b.keyEncryptionAlgorithm,b.warnInsecureAlgorithm),i(a,b,d.constants.RSA_PKCS1_PADDING,c);default:return c(Error("encryption key algorithm not supported"))}}function k(a,b){"string"==typeof a&&(a=new e.DOMParser().parseFromString(a));var c,i=f.select("//*[local-name(.)='KeyInfo' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",a)[0];i||(i=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='KeyInfo']",a)[0]);var j=f.select("//*[local-name(.)='KeyInfo']/*[local-name(.)='EncryptedKey']/*[local-name(.)='EncryptionMethod']",a)[0];if(!j){var k=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='KeyInfo']/*[local-name(.)='RetrievalMethod']",a)[0];j=(c=k?k.getAttribute("URI"):null)?f.select("//*[local-name(.)='EncryptedKey' and @Id='"+c.substring(1)+"']/*[local-name(.)='EncryptionMethod']",a)[0]:null}if(!j)throw Error("cant find encryption algorithm");let m="sha1",n=f.select("//*[local-name(.)='KeyInfo']/*[local-name(.)='EncryptedKey']/*[local-name(.)='EncryptionMethod']/*[local-name(.)='DigestMethod']",a)[0];if(n)switch(n.getAttribute("Algorithm")){case"http://www.w3.org/2000/09/xmldsig#sha256":m="sha256";break;case"http://www.w3.org/2000/09/xmldsig#sha512":m="sha512"}var o=j.getAttribute("Algorithm");if(b.disallowDecryptionWithInsecureAlgorithm&&h.indexOf(o)>=0)throw Error("encryption algorithm "+o+" is not secure, fail to decrypt");var p=c?f.select("//*[local-name(.)='EncryptedKey' and @Id='"+c.substring(1)+"']/*[local-name(.)='CipherData']/*[local-name(.)='CipherValue']",i)[0]:f.select("//*[local-name(.)='CipherValue']",i)[0];switch(o){case"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p":return l(p,b,d.constants.RSA_PKCS1_OAEP_PADDING,m);case"http://www.w3.org/2001/04/xmlenc#rsa-1_5":return g.warnInsecureAlgorithm(o,b.warnInsecureAlgorithm),l(p,b,d.constants.RSA_PKCS1_PADDING);default:throw Error("key encryption algorithm "+o+" not supported")}}function l(a,b,c,e){let f=Buffer.from(a.textContent,"base64"),g=d.privateDecrypt({key:b.key,padding:c,oaepHash:e},f);return Buffer.from(g,"binary")}function m(a,b,c,e,f,g){d.randomBytes(c,function(c,h){if(c)return g(c);var i=d.createCipheriv(a,b,h),j=i.update(e,f,"binary")+i.final("binary"),k="gcm"===a.slice(-3)?i.getAuthTag():Buffer.from("");return g(null,Buffer.concat([h,Buffer.from(j,"binary"),k]))})}function n(a,b,c,e){var f=d.createDecipheriv(a,b,e.slice(0,c));f.setAutoPadding(!1),"gcm"===a.slice(-3)&&(f.setAuthTag(e.slice(-16)),e=e.slice(0,-16));var g=f.update(e.slice(c),null,"binary")+f.final("binary");if("gcm"!==a.slice(-3)){var h=g.charCodeAt(g.length-1);if(!(1<=h)||!(h<=c))return void callback(Error("padding length invalid"));g=g.substr(0,g.length-h)}return Buffer.from(g,"binary").toString("utf8")}a.exports={decrypt:function(a,b,c){if(!b)return c(Error("must provide options"));if(!a)return c(Error("must provide XML to encrypt"));if(!b.key)return c(Error("key option is mandatory and you should provide a valid RSA private key"));try{var d="string"==typeof a?new e.DOMParser().parseFromString(a):a,i=k(d,b),j=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='EncryptionMethod']",d)[0].getAttribute("Algorithm");if(b.disallowDecryptionWithInsecureAlgorithm&&h.indexOf(j)>=0)return c(Error("encryption algorithm "+j+" is not secure, fail to decrypt"));var l=f.select("//*[local-name(.)='EncryptedData']/*[local-name(.)='CipherData']/*[local-name(.)='CipherValue']",d)[0],m=Buffer.from(l.textContent,"base64");switch(j){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":return c(null,n("aes-128-cbc",i,16,m));case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":return c(null,n("aes-256-cbc",i,16,m));case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":return g.warnInsecureAlgorithm(j,b.warnInsecureAlgorithm),c(null,n("des-ede3-cbc",i,8,m));case"http://www.w3.org/2009/xmlenc11#aes128-gcm":return c(null,n("aes-128-gcm",i,12,m));case"http://www.w3.org/2009/xmlenc11#aes256-gcm":return c(null,n("aes-256-gcm",i,12,m));default:return c(Error("encryption algorithm "+j+" not supported"))}}catch(a){return c(a)}},encrypt:function(a,b,c){if(!b)return c(Error("must provide options"));if(!a)return c(Error("must provide content to encrypt"));if(!b.rsa_pub)return c(Error("rsa_pub option is mandatory and you should provide a valid RSA public key"));if(!b.pem)return c(Error("pem option is mandatory and you should provide a valid x509 certificate encoded as PEM"));if(b.disallowEncryptionWithInsecureAlgorithm&&(h.indexOf(b.keyEncryptionAlgorithm)>=0||h.indexOf(b.encryptionAlgorithm)>=0))return c(Error("encryption algorithm "+b.keyEncryptionAlgorithm+" is not secure"));b.input_encoding=b.input_encoding||"utf8";var e=function(d,e){if(d)return c(d);var f=function(a,d){var f;if(a)return c(a);f=function(a,b){if(a)return c(a);c(null,b)},j(e,b,function(a,c){if(a)return f(a);f(null,g.renderTemplate("encrypted-key",{encryptedContent:d.toString("base64"),keyInfo:c,contentEncryptionMethod:b.encryptionAlgorithm}))})};switch(b.encryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":m("aes-128-cbc",e,16,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":m("aes-256-cbc",e,16,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2009/xmlenc11#aes128-gcm":m("aes-128-gcm",e,12,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2009/xmlenc11#aes256-gcm":m("aes-256-gcm",e,12,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":g.warnInsecureAlgorithm(b.encryptionAlgorithm,b.warnInsecureAlgorithm),m("des-ede3-cbc",e,8,a,b.input_encoding,function(a,b){if(a)return f(a);f(null,b)});break;default:f(Error("encryption algorithm not supported"))}};switch(b.encryptionAlgorithm){case"http://www.w3.org/2001/04/xmlenc#aes128-cbc":case"http://www.w3.org/2009/xmlenc11#aes128-gcm":d.randomBytes(16,e);break;case"http://www.w3.org/2001/04/xmlenc#aes256-cbc":case"http://www.w3.org/2009/xmlenc11#aes256-gcm":default:d.randomBytes(32,e);break;case"http://www.w3.org/2001/04/xmlenc#tripledes-cbc":g.warnInsecureAlgorithm(b.encryptionAlgorithm,b.warnInsecureAlgorithm),d.randomBytes(24,e)}},encryptKeyInfo:j,decryptKeyInfo:k}},92030:function(a,b,c){(function(){var b,d,e,f=function(a,b){for(var c in b)g.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},g={}.hasOwnProperty;b=c(24706),e=c(97871),d=c(46780),a.exports=function(a){function c(a,b){this.stream=a,c.__super__.constructor.call(this,b)}return f(c,a),c.prototype.endline=function(a,b,e){return a.isLastRootNode&&b.state===d.CloseTag?"":c.__super__.endline.call(this,a,b,e)},c.prototype.document=function(a,b){var c,d,e,f,g,h,i,j,k;for(i=a.children,d=e=0,g=i.length;e<g;d=++e)(c=i[d]).isLastRootNode=d===a.children.length-1;for(b=this.filterOptions(b),j=a.children,k=[],f=0,h=j.length;f<h;f++)c=j[f],k.push(this.writeChildNode(c,b,0));return k},c.prototype.attribute=function(a,b,d){return this.stream.write(c.__super__.attribute.call(this,a,b,d))},c.prototype.cdata=function(a,b,d){return this.stream.write(c.__super__.cdata.call(this,a,b,d))},c.prototype.comment=function(a,b,d){return this.stream.write(c.__super__.comment.call(this,a,b,d))},c.prototype.declaration=function(a,b,d){return this.stream.write(c.__super__.declaration.call(this,a,b,d))},c.prototype.docType=function(a,b,c){var e,f,g,h;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,this.stream.write(this.indent(a,b,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,b,c)),b.state=d.InsideTag,f=0,g=(h=a.children).length;f<g;f++)e=h[f],this.writeChildNode(e,b,c+1);b.state=d.CloseTag,this.stream.write("]")}return b.state=d.CloseTag,this.stream.write(b.spaceBeforeSlash+">"),this.stream.write(this.endline(a,b,c)),b.state=d.None,this.closeNode(a,b,c)},c.prototype.element=function(a,c,e){var f,h,i,j,k,l,m,n,o;for(m in e||(e=0),this.openNode(a,c,e),c.state=d.OpenTag,this.stream.write(this.indent(a,c,e)+"<"+a.name),n=a.attribs)g.call(n,m)&&(f=n[m],this.attribute(f,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw)&&""===a.value}))c.allowEmpty?(this.stream.write(">"),c.state=d.CloseTag,this.stream.write("</"+a.name+">")):(c.state=d.CloseTag,this.stream.write(c.spaceBeforeSlash+"/>"));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw)&&null!=j.value)this.stream.write(">"),c.state=d.InsideTag,c.suppressPrettyCount++,this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,c.state=d.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,c,e)),c.state=d.InsideTag,k=0,l=(o=a.children).length;k<l;k++)h=o[k],this.writeChildNode(h,c,e+1);c.state=d.CloseTag,this.stream.write(this.indent(a,c,e)+"</"+a.name+">")}return this.stream.write(this.endline(a,c,e)),c.state=d.None,this.closeNode(a,c,e)},c.prototype.processingInstruction=function(a,b,d){return this.stream.write(c.__super__.processingInstruction.call(this,a,b,d))},c.prototype.raw=function(a,b,d){return this.stream.write(c.__super__.raw.call(this,a,b,d))},c.prototype.text=function(a,b,d){return this.stream.write(c.__super__.text.call(this,a,b,d))},c.prototype.dtdAttList=function(a,b,d){return this.stream.write(c.__super__.dtdAttList.call(this,a,b,d))},c.prototype.dtdElement=function(a,b,d){return this.stream.write(c.__super__.dtdElement.call(this,a,b,d))},c.prototype.dtdEntity=function(a,b,d){return this.stream.write(c.__super__.dtdEntity.call(this,a,b,d))},c.prototype.dtdNotation=function(a,b,d){return this.stream.write(c.__super__.dtdNotation.call(this,a,b,d))},c}(e)}).call(this)},92478:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.value=""}return b(c,a),Object.defineProperty(c.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(c.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(c.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),c.prototype.clone=function(){return Object.create(this)},c.prototype.substringData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.appendData=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.insertData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.deleteData=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.replaceData=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.data===this.data},c}(c(8957))}).call(this)},93005:function(a,b,c){(function(){"use strict";var a,d,e,f,g,h,i,j,k=function(a,b){return function(){return a.apply(b,arguments)}},l=function(a,b){for(var c in b)m.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},m={}.hasOwnProperty;i=c(81654),f=c(94735),a=c(76326),h=c(2847),j=c(66136).setImmediate,d=c(56068).defaults,g=function(a,b,c){var d,e;for(d=0,e=a.length;d<e;d++)b=(0,a[d])(b,c);return b},e=function(a,b,c){var d;return(d=Object.create(null)).value=c,d.writable=!0,d.enumerable=!0,d.configurable=!0,Object.defineProperty(a,b,d)},b.Parser=function(c){function f(a){var c,e,f;if(this.parseStringPromise=k(this.parseStringPromise,this),this.parseString=k(this.parseString,this),this.reset=k(this.reset,this),this.assignOrPush=k(this.assignOrPush,this),this.processAsync=k(this.processAsync,this),!(this instanceof b.Parser))return new b.Parser(a);for(c in this.options={},e=d["0.2"])m.call(e,c)&&(f=e[c],this.options[c]=f);for(c in a)m.call(a,c)&&(f=a[c],this.options[c]=f);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(h.normalize)),this.reset()}return l(f,c),f.prototype.processAsync=function(){var a;try{if(this.remaining.length<=this.options.chunkSize)return a=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(a),this.saxParser.close();return a=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(a),j(this.processAsync)}catch(a){if(!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(a)}},f.prototype.assignOrPush=function(a,b,c){return b in a?(a[b]instanceof Array||e(a,b,[a[b]]),a[b].push(c)):this.options.explicitArray?e(a,b,[c]):e(a,b,c)},f.prototype.reset=function(){var a,b,c,d,f,h,j,k,l;return this.removeAllListeners(),this.saxParser=i.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(f=this,function(a){if(f.saxParser.resume(),!f.saxParser.errThrown)return f.saxParser.errThrown=!0,f.emit("error",a)}),this.saxParser.onend=(h=this,function(){if(!h.saxParser.ended)return h.saxParser.ended=!0,h.emit("end",h.resultObject)}),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,d=[],a=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=(j=this,function(c){var f,h,i,k,l;if((i={})[b]="",!j.options.ignoreAttrs)for(f in l=c.attributes)m.call(l,f)&&(a in i||j.options.mergeAttrs||(i[a]={}),h=j.options.attrValueProcessors?g(j.options.attrValueProcessors,c.attributes[f],f):c.attributes[f],k=j.options.attrNameProcessors?g(j.options.attrNameProcessors,f):f,j.options.mergeAttrs?j.assignOrPush(i,k,h):e(i[a],k,h));return i["#name"]=j.options.tagNameProcessors?g(j.options.tagNameProcessors,c.name):c.name,j.options.xmlns&&(i[j.options.xmlnskey]={uri:c.uri,local:c.local}),d.push(i)}),this.saxParser.onclosetag=(k=this,function(){var a,c,f,h,i,j,l,n,o,p,q;if(i=(j=d.pop())["#name"],k.options.explicitChildren&&k.options.preserveChildrenOrder||delete j["#name"],!0===j.cdata&&(a=j.cdata,delete j.cdata),o=d[d.length-1],j[b].match(/^\s*$/)&&!a?(c=j[b],delete j[b]):(k.options.trim&&(j[b]=j[b].trim()),k.options.normalize&&(j[b]=j[b].replace(/\s{2,}/g," ").trim()),j[b]=k.options.valueProcessors?g(k.options.valueProcessors,j[b],i):j[b],1===Object.keys(j).length&&b in j&&!k.EXPLICIT_CHARKEY&&(j=j[b])),"object"==typeof(q=j)&&null!=q&&0===Object.keys(q).length&&(j="function"==typeof k.options.emptyTag?k.options.emptyTag():""!==k.options.emptyTag?k.options.emptyTag:c),null!=k.options.validator&&(p="/"+(function(){var a,b,c;for(a=0,c=[],b=d.length;a<b;a++)h=d[a],c.push(h["#name"]);return c})().concat(i).join("/"),!function(){try{j=k.options.validator(p,o&&o[i],j)}catch(a){return k.emit("error",a)}}()),k.options.explicitChildren&&!k.options.mergeAttrs&&"object"==typeof j)if(k.options.preserveChildrenOrder){if(o){for(f in o[k.options.childkey]=o[k.options.childkey]||[],l={},j)m.call(j,f)&&e(l,f,j[f]);o[k.options.childkey].push(l),delete j["#name"],1===Object.keys(j).length&&b in j&&!k.EXPLICIT_CHARKEY&&(j=j[b])}}else h={},k.options.attrkey in j&&(h[k.options.attrkey]=j[k.options.attrkey],delete j[k.options.attrkey]),!k.options.charsAsChildren&&k.options.charkey in j&&(h[k.options.charkey]=j[k.options.charkey],delete j[k.options.charkey]),Object.getOwnPropertyNames(j).length>0&&(h[k.options.childkey]=j),j=h;return d.length>0?k.assignOrPush(o,i,j):(k.options.explicitRoot&&(n=j,e(j={},i,n)),k.resultObject=j,k.saxParser.ended=!0,k.emit("end",k.resultObject))}),l=this,c=function(a){var c,e;if(e=d[d.length-1])return e[b]+=a,l.options.explicitChildren&&l.options.preserveChildrenOrder&&l.options.charsAsChildren&&(l.options.includeWhiteChars||""!==a.replace(/\\n/g,"").trim())&&(e[l.options.childkey]=e[l.options.childkey]||[],(c={"#name":"__text__"})[b]=a,l.options.normalize&&(c[b]=c[b].replace(/\s{2,}/g," ").trim()),e[l.options.childkey].push(c)),e},this.saxParser.ontext=c,this.saxParser.oncdata=function(a){var b;if(b=c(a))return b.cdata=!0}},f.prototype.parseString=function(b,c){null!=c&&"function"==typeof c&&(this.on("end",function(a){return this.reset(),c(null,a)}),this.on("error",function(a){return this.reset(),c(a)}));try{if(b=b.toString(),""===b.trim())return this.emit("end",null),!0;if(b=a.stripBOM(b),this.options.async)return this.remaining=b,j(this.processAsync),this.saxParser;return this.saxParser.write(b).close()}catch(a){if(!(this.saxParser.errThrown||this.saxParser.ended))return this.emit("error",a),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw a}},f.prototype.parseStringPromise=function(a){var b;return new Promise((b=this,function(c,d){return b.parseString(a,function(a,b){return a?d(a):c(b)})}))},f}(f),b.parseString=function(a,c,d){var e,f;return null!=d?("function"==typeof d&&(e=d),"object"==typeof c&&(f=c)):("function"==typeof c&&(e=c),f={}),new b.Parser(f).parseString(a,e)},b.parseStringPromise=function(a,c){var d;return"object"==typeof c&&(d=c),new b.Parser(d).parseStringPromise(a)}}).call(this)},93267:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.warnIfRequestExtensionsInvalid=void 0,b.assertElement=function(a,b,c,d,e){var g,h;let j="object"==typeof a&&null!==a?Object.keys(a).filter(a=>A.test(a)):[];(0,f.assertObject)(a,b,[...c,...j]);let k={};for(let c of j){if("string"!=typeof a[c])throw TypeError(`${b}["${c}"] must be a string`);k[c]=a[c]}let o=j.length>0?y("Element",{...d,...k},b):null;for(let{prefix:a,namespaceURI:c,localName:d,nodeName:f,value:j}of Array.from(null!=(g=null==o?void 0:o.attributes)?g:[])){if(!a||"xmlns"===a)continue;let g=`${b}["@${f}"]`;if(null!==c&&l.includes(c))throw TypeError(`${g} must be in a namespace that SAML does not define`);if(c===n&&"nil"===d)throw TypeError(`${g} must be left out: the element cannot be nil`);if(c===n&&"type"===d){let[,a,b]=null!=(h=B.exec(j))?h:[],c=null==o?void 0:o.getAttribute(a?`xmlns:${a}`:"xmlns"),d=c===i&&b===e;if(!c||l.includes(c)&&!d)throw TypeError(`${g} must name the element's own type, ${e}, or a type from a namespace that SAML does not define, whose prefix is declared`)}let k=C.find(([a])=>c===m&&a===d);if(k&&!k[1].test(j))throw TypeError(`${g} must be ${k[2]}`)}if(null!=a.Extensions){let c={...d};for(let b of Object.keys(a).filter(a=>a.startsWith("@xmlns:")))c[b]=a[b];z(a.Extensions,`${b}.Extensions`,"Extensions",c)}};let d=c(12749),e=c(28354),f=c(36481),g=c(65756),h=e.debuglog("node-saml"),i="urn:oasis:names:tc:SAML:2.0:metadata",j="urn:oasis:names:tc:SAML:2.0:assertion",k="urn:oasis:names:tc:SAML:2.0:protocol",l=[i,j,k],m="http://www.w3.org/XML/1998/namespace",n="http://www.w3.org/2001/XMLSchema-instance",o="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u{10000}-\\u{EFFFF}",p=`\\u0300-\\u036F${o}.0-9\\u00B7\\u203F-\\u2040\\-`,q=`[${o}][${p}]*`,r="[A-Za-z0-9._~!$&'()*+,;=-]|%[0-9A-Fa-f]{2}",s=`(?:${r}|[:@])`,t=`(?:/${s}*)*`,u=`//(?:(?:${r}|:)*@)?(?:\\[(?:${r}|:)+\\]|(?:${r})*)(?::[0-9]*)?`,v=a=>`(?:${u}${t}|/(?:${s}+${t})?|${a}${t})?`,w=`(?:${s}|[/?])*`,x=RegExp(`^(?:[A-Za-z][A-Za-z0-9+.-]*:${v(`${s}+`)}|${v(`(?:${r}|@)+`)})(?:\\?${w})?(?:#${w})?$`);function y(a,b,c){let e,f=(0,g.buildXmlBuilderObject)({[a]:b},!1),h=!0,i=()=>{h=!1};try{e=new d.DOMParser({errorHandler:{warning:i,error:i,fatalError:i}}).parseFromString(f,"text/xml").documentElement}catch(a){i()}if(!h||null==e)throw TypeError(`${c} must be well-formed XML`);return!function a(b,c){let d=Array.from(b.attributes),e=[];for(let a of d){let{prefix:b,localName:d,nodeName:h,value:i}=a;if("xmlns"===b||"xmlns"===h){var f=b?d:"",g=`${c}["@${h}"]`;if(!x.test(i)||f&&!i)throw TypeError(`${g} must be a URI`);if("xmlns"===f||"http://www.w3.org/2000/xmlns/"===i||"xml"===f!=(i===m))throw TypeError(`${g} must leave the "xml" and "xmlns" prefixes and their namespaces as XML defines them`)}else b&&e.push(a)}let h=[b,...e].find(a=>a.prefix&&!a.namespaceURI);if(h)throw TypeError(`${c}["${h===b?"":"@"}${h.nodeName}"] uses the prefix "${h.prefix}", which is not declared`);for(let d of(e.forEach((a,b)=>{let d=e.slice(0,b).find(b=>b.namespaceURI===a.namespaceURI&&b.localName===a.localName);if(d)throw TypeError(`${c}["@${a.nodeName}"] repeats "@${d.nodeName}": both prefixes name one namespace`)}),Array.from(b.childNodes)))d.nodeType===d.ELEMENT_NODE&&a(d,c)}(e,c),e}function z(a,b,c,d){if("object"!=typeof a||null===a||Array.isArray(a))throw TypeError(`${b} must be an object of namespace-qualified elements`);let e=y(c,{...d,...a},b),f=Array.from(e.childNodes),g=f.filter(a=>a.nodeType===a.ELEMENT_NODE),[h]=c.includes(":")?c.split(":"):[""];if(e.namespaceURI!==d[h?`@xmlns:${h}`:"@xmlns"])throw TypeError(`${b} must not redeclare the namespace that ${c} itself is in`);if(f.some(a=>{var b;return(a.nodeType===a.TEXT_NODE||a.nodeType===a.CDATA_SECTION_NODE)&&/\S/.test(null!=(b=a.nodeValue)?b:"")}))throw TypeError(`${b} must not hold text`);if(0===g.length)throw TypeError(`${b} must hold at least one element`);for(let a of g)if(!a.namespaceURI||l.includes(a.namespaceURI))throw TypeError(`${b}["${a.nodeName}"] must be in a namespace that SAML does not define`)}let A=RegExp(`^@(${q}):(${q})$`,"u"),B=RegExp(`^(?:(${q}):)?(${q})$`,"u"),C=[["lang",/^(?:[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*)?$/,'a language tag, such as "en" or "en-GB"'],["space",/^(?:default|preserve)$/,'"default" or "preserve"'],["id",RegExp(`^${q}$`,"u"),"an XML name without a colon"]],D={samlAuthnRequestExtensions:{"@xmlns:samlp":k},samlLogoutRequestExtensions:{"@xmlns:samlp":k,"@xmlns:saml":j}};b.warnIfRequestExtensionsInvalid=a=>{for(let b of Object.keys(D))try{null!=a[b]&&z(a[b],b,"samlp:Extensions",D[b])}catch(a){h("%s. The request is still built from the option as given, and may not follow SAML. The next major version rejects this instead.",a.message)}}},94253:function(a,b,c){(function(){var b;b=c(24706),c(8957),a.exports=function(){function a(a,c,d){if(this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==c)throw Error("Missing attribute name. "+this.debugInfo(c));this.name=this.stringify.name(c),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(a){return this.options.writer.attribute(this,this.options.writer.filterOptions(a))},a.prototype.debugInfo=function(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"},a.prototype.isEqualNode=function(a){return a.namespaceURI===this.namespaceURI&&a.prefix===this.prefix&&a.localName===this.localName&&a.value===this.value},a}()}).call(this)},95280:function(a,b,c){(function(){var b,d,e,f,g,h,i,j=function(a,b){for(var c in b)k.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},k={}.hasOwnProperty;i=c(4700).isPlainObject,e=c(35971),d=c(17395),f=c(8957),b=c(24706),h=c(74519),g=c(13859),a.exports=function(a){function c(a){c.__super__.constructor.call(this,null),this.name="#document",this.type=b.Document,this.documentURI=null,this.domConfig=new d,a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new h(a)}return j(c,a),Object.defineProperty(c.prototype,"implementation",{value:new e}),Object.defineProperty(c.prototype,"doctype",{get:function(){var a,c,d,e;for(c=0,d=(e=this.children).length;c<d;c++)if((a=e[c]).type===b.DocType)return a;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===b.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c.prototype.end=function(a){var b;return b={},a?i(a)&&(b=a,a=this.options.writer):a=this.options.writer,a.document(this,a.filterOptions(b))},c.prototype.toString=function(a){return this.options.writer.document(this,this.options.writer.filterOptions(a))},c.prototype.createElement=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createDocumentFragment=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTextNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createComment=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createCDATASection=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createProcessingInstruction=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttribute=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEntityReference=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.importNode=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createElementNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createAttributeNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByTagNameNS=function(a,b){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementById=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.adoptNode=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.normalizeDocument=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.renameNode=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getElementsByClassName=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createEvent=function(a){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createRange=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createNodeIterator=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.createTreeWalker=function(a,b,c){throw Error("This DOM method is not implemented."+this.debugInfo())},c}(f)}).call(this)},95759:function(a,b,c){(function(){var b;b=c(26468),c(73067),a.exports=(function(){class a{constructor(a,c,d){if(this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==c)throw Error("Missing attribute name. "+this.debugInfo(c));this.name=this.stringify.name(c),this.value=this.stringify.attValue(d),this.type=b.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(a){return this.options.writer.attribute(this,this.options.writer.filterOptions(a))}debugInfo(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"}isEqualNode(a){return a.namespaceURI===this.namespaceURI&&a.prefix===this.prefix&&a.localName===this.localName&&a.value===this.value}}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(a.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"specified",{get:function(){return!0}}),a}).call(this)}).call(this)},97410:function(a){(function(){a.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},97871:function(a,b,c){(function(){var b,d,e,f={}.hasOwnProperty;e=c(4700).assign,b=c(24706),c(84689),c(99379),c(36700),c(65904),c(43849),c(8859),c(86690),c(58892),c(31777),c(45454),c(4505),c(12570),c(72707),d=c(46780),a.exports=function(){function a(a){var b,c,d;for(b in a||(a={}),this.options=a,c=a.writer||{})f.call(c,b)&&(d=c[b],this["_"+b]=this[b],this[b]=d)}return a.prototype.filterOptions=function(a){var b,c,f,g,h,i,j,k;return a||(a={}),a=e({},this.options,a),(b={writer:this}).pretty=a.pretty||!1,b.allowEmpty=a.allowEmpty||!1,b.indent=null!=(c=a.indent)?c:" ",b.newline=null!=(f=a.newline)?f:"\n",b.offset=null!=(g=a.offset)?g:0,b.dontPrettyTextNodes=null!=(h=null!=(i=a.dontPrettyTextNodes)?i:a.dontprettytextnodes)?h:0,b.spaceBeforeSlash=null!=(j=null!=(k=a.spaceBeforeSlash)?k:a.spacebeforeslash)?j:"",!0===b.spaceBeforeSlash&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=d.None,b},a.prototype.indent=function(a,b,c){var d;if(!b.pretty||b.suppressPrettyCount);else if(b.pretty&&(d=(c||0)+b.offset+1)>0)return Array(d).join(b.indent);return""},a.prototype.endline=function(a,b,c){return!b.pretty||b.suppressPrettyCount?"":b.newline},a.prototype.attribute=function(a,b,c){var d;return this.openAttribute(a,b,c),d=" "+a.name+'="'+a.value+'"',this.closeAttribute(a,b,c),d},a.prototype.cdata=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<![CDATA[",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+="]]>"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.comment=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"\x3c!-- ",b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=" --\x3e"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.declaration=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?xml",b.state=d.InsideTag,e+=' version="'+a.version+'"',null!=a.encoding&&(e+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(e+=' standalone="'+a.standalone+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.docType=function(a,b,c){var e,f,g,h,i;if(c||(c=0),this.openNode(a,b,c),b.state=d.OpenTag,h=this.indent(a,b,c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.endline(a,b,c),b.state=d.InsideTag,f=0,g=(i=a.children).length;f<g;f++)e=i[f],h+=this.writeChildNode(e,b,c+1);b.state=d.CloseTag,h+="]"}return b.state=d.CloseTag,h+=b.spaceBeforeSlash+">",h+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),h},a.prototype.element=function(a,c,e){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;for(o in e||(e=0),p=!1,q="",this.openNode(a,c,e),c.state=d.OpenTag,q+=this.indent(a,c,e)+"<"+a.name,r=a.attribs)f.call(r,o)&&(g=r[o],q+=this.attribute(g,c,e));if(j=0===(i=a.children.length)?null:a.children[0],0===i||a.children.every(function(a){return(a.type===b.Text||a.type===b.Raw)&&""===a.value}))c.allowEmpty?(q+=">",c.state=d.CloseTag,q+="</"+a.name+">"+this.endline(a,c,e)):(c.state=d.CloseTag,q+=c.spaceBeforeSlash+"/>"+this.endline(a,c,e));else if(c.pretty&&1===i&&(j.type===b.Text||j.type===b.Raw)&&null!=j.value)q+=">",c.state=d.InsideTag,c.suppressPrettyCount++,p=!0,q+=this.writeChildNode(j,c,e+1),c.suppressPrettyCount--,p=!1,c.state=d.CloseTag,q+="</"+a.name+">"+this.endline(a,c,e);else{if(c.dontPrettyTextNodes){for(k=0,m=(s=a.children).length;k<m;k++)if(((h=s[k]).type===b.Text||h.type===b.Raw)&&null!=h.value){c.suppressPrettyCount++,p=!0;break}}for(q+=">"+this.endline(a,c,e),c.state=d.InsideTag,l=0,n=(t=a.children).length;l<n;l++)h=t[l],q+=this.writeChildNode(h,c,e+1);c.state=d.CloseTag,q+=this.indent(a,c,e)+"</"+a.name+">",p&&c.suppressPrettyCount--,q+=this.endline(a,c,e),c.state=d.None}return this.closeNode(a,c,e),q},a.prototype.writeChildNode=function(a,c,d){switch(a.type){case b.CData:return this.cdata(a,c,d);case b.Comment:return this.comment(a,c,d);case b.Element:return this.element(a,c,d);case b.Raw:return this.raw(a,c,d);case b.Text:return this.text(a,c,d);case b.ProcessingInstruction:return this.processingInstruction(a,c,d);case b.Dummy:return"";case b.Declaration:return this.declaration(a,c,d);case b.DocType:return this.docType(a,c,d);case b.AttributeDeclaration:return this.dtdAttList(a,c,d);case b.ElementDeclaration:return this.dtdElement(a,c,d);case b.EntityDeclaration:return this.dtdEntity(a,c,d);case b.NotationDeclaration:return this.dtdNotation(a,c,d);default:throw Error("Unknown XML node type: "+a.constructor.name)}},a.prototype.processingInstruction=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<?",b.state=d.InsideTag,e+=a.target,a.value&&(e+=" "+a.value),b.state=d.CloseTag,e+=b.spaceBeforeSlash+"?>",e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.raw=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.text=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c),b.state=d.InsideTag,e+=a.value,b.state=d.CloseTag,e+=this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdAttList=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ATTLIST",b.state=d.InsideTag,e+=" "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(e+=" "+a.defaultValueType),a.defaultValue&&(e+=' "'+a.defaultValue+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdElement=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ELEMENT",b.state=d.InsideTag,e+=" "+a.name+" "+a.value,b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdEntity=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!ENTITY",b.state=d.InsideTag,a.pe&&(e+=" %"),e+=" "+a.name,a.value?e+=' "'+a.value+'"':(a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.nData&&(e+=" NDATA "+a.nData)),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.dtdNotation=function(a,b,c){var e;return this.openNode(a,b,c),b.state=d.OpenTag,e=this.indent(a,b,c)+"<!NOTATION",b.state=d.InsideTag,e+=" "+a.name,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?e+=' PUBLIC "'+a.pubID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),b.state=d.CloseTag,e+=b.spaceBeforeSlash+">"+this.endline(a,b,c),b.state=d.None,this.closeNode(a,b,c),e},a.prototype.openNode=function(a,b,c){},a.prototype.closeNode=function(a,b,c){},a.prototype.openAttribute=function(a,b,c){},a.prototype.closeAttribute=function(a,b,c){},a}()}).call(this)},98193:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z={}.hasOwnProperty;w=(y=c(4700)).isObject,v=y.isFunction,x=y.isPlainObject,u=y.getValue,b=c(24706),n=c(95280),o=c(43849),f=c(36700),g=c(65904),q=c(8859),t=c(86690),p=c(58892),l=c(84689),m=c(99379),h=c(45454),j=c(12570),i=c(4505),k=c(72707),e=c(94253),s=c(74519),r=c(13859),d=c(46780),a.exports=function(){function a(a,c,d){var e;this.name="?xml",this.type=b.Document,a||(a={}),e={},a.writer?x(a.writer)&&(e=a.writer,a.writer=new r):a.writer=new r,this.options=a,this.writer=a.writer,this.writerOptions=this.writer.filterOptions(e),this.stringify=new s(a),this.onDataCallback=c||function(){},this.onEndCallback=d||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return a.prototype.createChildNode=function(a){var c,d,e,f,g,h,i,j;switch(a.type){case b.CData:this.cdata(a.value);break;case b.Comment:this.comment(a.value);break;case b.Element:for(d in e={},i=a.attribs)z.call(i,d)&&(c=i[d],e[d]=c.value);this.node(a.name,e);break;case b.Dummy:this.dummy();break;case b.Raw:this.raw(a.value);break;case b.Text:this.text(a.value);break;case b.ProcessingInstruction:this.instruction(a.target,a.value);break;default:throw Error("This XML node type is not supported in a JS object: "+a.constructor.name)}for(g=0,h=(j=a.children).length;g<h;g++)f=j[g],this.createChildNode(f),f.type===b.Element&&this.up();return this},a.prototype.dummy=function(){return this},a.prototype.node=function(a,b,c){var d;if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=u(a),null==b&&(b={}),w(b=u(b))||(c=(d=[b,c])[0],b=d[1]),this.currentNode=new o(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this},a.prototype.element=function(a,c,d){var e,f,g,h,i,j;if(this.currentNode&&this.currentNode.type===b.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(a)||w(a)||v(a))for(h=this.options.noValidation,this.options.noValidation=!0,(j=new n(this.options).element("TEMP_ROOT")).element(a),this.options.noValidation=h,f=0,g=(i=j.children).length;f<g;f++)e=i[f],this.createChildNode(e),e.type===b.Element&&this.up();else this.node(a,c,d);return this},a.prototype.attribute=function(a,b){var c,d;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=u(a)),w(a))for(c in a)z.call(a,c)&&(d=a[c],this.attribute(c,d));else v(b)&&(b=b.apply()),this.options.keepNullAttributes&&null==b?this.currentNode.attribs[a]=new e(this,a,""):null!=b&&(this.currentNode.attribs[a]=new e(this,a,b));return this},a.prototype.text=function(a){var b;return this.openCurrent(),b=new t(this,a),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.cdata=function(a){var b;return this.openCurrent(),b=new f(this,a),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.comment=function(a){var b;return this.openCurrent(),b=new g(this,a),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.raw=function(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=u(a)),null!=b&&(b=u(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(w(a))for(d in a)z.call(a,d)&&(e=a[d],this.instruction(d,e));else v(b)&&(b=b.apply()),g=new p(this,a,b),this.onData(this.writer.processingInstruction(g,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},a.prototype.declaration=function(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new l(this,a,b,c),this.onData(this.writer.declaration(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.doctype=function(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new m(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},a.prototype.dtdElement=function(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdElement(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.attList=function(a,b,c,d,e){var f;return this.openCurrent(),f=new h(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.entity=function(a,b){var c;return this.openCurrent(),c=new j(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.pEntity=function(a,b){var c;return this.openCurrent(),c=new j(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.notation=function(a,b){var c;return this.openCurrent(),c=new k(this,a,b),this.onData(this.writer.dtdNotation(c,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},a.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},a.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},a.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},a.prototype.openNode=function(a){var c,e,f,g;if(!a.isOpen){if(this.root||0!==this.currentLevel||a.type!==b.Element||(this.root=a),e="",a.type===b.Element){for(f in this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<"+a.name,g=a.attribs)z.call(g,f)&&(c=g[f],e+=this.writer.attribute(c,this.writerOptions,this.currentLevel));e+=(a.children?">":"/>")+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.InsideTag}else this.writerOptions.state=d.OpenTag,e=this.writer.indent(a,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),a.children?(e+=" [",this.writerOptions.state=d.InsideTag):(this.writerOptions.state=d.CloseTag,e+=">"),e+=this.writer.endline(a,this.writerOptions,this.currentLevel);return this.onData(e,this.currentLevel),a.isOpen=!0}},a.prototype.closeNode=function(a){var c;if(!a.isClosed)return c="",this.writerOptions.state=d.CloseTag,c=a.type===b.Element?this.writer.indent(a,this.writerOptions,this.currentLevel)+"</"+a.name+">"+this.writer.endline(a,this.writerOptions,this.currentLevel):this.writer.indent(a,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(a,this.writerOptions,this.currentLevel),this.writerOptions.state=d.None,this.onData(c,this.currentLevel),a.isClosed=!0},a.prototype.onData=function(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)},a.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},a.prototype.debugInfo=function(a){return null==a?"":"node: <"+a+">"},a.prototype.ele=function(){return this.element.apply(this,arguments)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.dtd=function(a,b,c){return this.doctype(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.att=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.a=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.ent=function(a,b){return this.entity(a,b)},a.prototype.pent=function(a,b){return this.pEntity(a,b)},a.prototype.not=function(a,b){return this.notation(a,b)},a}()}).call(this)},99379:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k=function(a,b){for(var c in b)l.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l={}.hasOwnProperty;j=c(4700).isObject,i=c(8957),b=c(24706),d=c(45454),f=c(12570),e=c(4505),g=c(72707),h=c(7832),a.exports=function(a){function c(a,d,e){var f,g,h,i,k,l;if(c.__super__.constructor.call(this,a),this.type=b.DocType,a.children){for(g=0,h=(i=a.children).length;g<h;g++)if((f=i[g]).type===b.Element){this.name=f.name;break}}this.documentObject=a,j(d)&&(d=(k=d).pubID,e=k.sysID),null==e&&(e=(l=[d,e])[0],d=l[1]),null!=d&&(this.pubID=this.stringify.dtdPubID(d)),null!=e&&(this.sysID=this.stringify.dtdSysID(e))}return k(c,a),Object.defineProperty(c.prototype,"entities",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type!==b.EntityDeclaration||a.pe||(e[a.name]=a);return new h(e)}}),Object.defineProperty(c.prototype,"notations",{get:function(){var a,c,d,e,f;for(c=0,e={},d=(f=this.children).length;c<d;c++)(a=f[c]).type===b.NotationDeclaration&&(e[a.name]=a);return new h(e)}}),Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),c.prototype.element=function(a,b){var c;return c=new e(this,a,b),this.children.push(c),this},c.prototype.attList=function(a,b,c,e,f){var g;return g=new d(this,a,b,c,e,f),this.children.push(g),this},c.prototype.entity=function(a,b){var c;return c=new f(this,!1,a,b),this.children.push(c),this},c.prototype.pEntity=function(a,b){var c;return c=new f(this,!0,a,b),this.children.push(c),this},c.prototype.notation=function(a,b){var c;return c=new g(this,a,b),this.children.push(c),this},c.prototype.toString=function(a){return this.options.writer.docType(this,this.options.writer.filterOptions(a))},c.prototype.ele=function(a,b){return this.element(a,b)},c.prototype.att=function(a,b,c,d,e){return this.attList(a,b,c,d,e)},c.prototype.ent=function(a,b){return this.entity(a,b)},c.prototype.pent=function(a,b){return this.pEntity(a,b)},c.prototype.not=function(a,b){return this.notation(a,b)},c.prototype.up=function(){return this.root()||this.documentObject},c.prototype.isEqualNode=function(a){return!!c.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.name===this.name&&a.publicId===this.publicId&&a.systemId===this.systemId},c}(i)}).call(this)}};
|