@attalabs/vinaya 0.23.0 → 0.24.0
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/README.md +1 -0
- package/dist/checks/bin/check-body-bare-digits.js +7 -1
- package/dist/checks/bin/check-branch-topology.js +27 -1
- package/dist/checks/bin/check-brief-shape.js +7 -1
- package/dist/checks/bin/check-changeset-coverage.js +7 -1
- package/dist/checks/bin/check-closes-n.js +27 -1
- package/dist/checks/bin/check-coherence.js +27 -1
- package/dist/checks/bin/check-dead-branch-push.js +7 -1
- package/dist/checks/bin/check-dispatch-readiness.js +27 -1
- package/dist/checks/bin/check-doc-coverage-push.js +7 -1
- package/dist/checks/bin/check-doc-coverage.js +7 -1
- package/dist/checks/bin/check-doctrine-no-procedures.js +7 -1
- package/dist/checks/bin/check-doctrine-portability.js +7 -1
- package/dist/checks/bin/check-evidence-fresh.js +7 -1
- package/dist/checks/bin/check-exec-bits.js +7 -1
- package/dist/checks/bin/check-first-push-dispatch.js +27 -1
- package/dist/checks/bin/check-issue-assignment.js +27 -1
- package/dist/checks/bin/check-main-branch-refusal.js +13 -2
- package/dist/checks/bin/check-no-disk-state.js +7 -1
- package/dist/checks/bin/check-pr-report-density.js +7 -1
- package/dist/checks/bin/check-quoted-command.js +38 -12
- package/dist/checks/bin/check-reader-resolvable-prose.js +38 -12
- package/dist/checks/bin/check-registry-gates.js +7 -1
- package/dist/checks/bin/check-retired-vocabulary.js +38 -12
- package/dist/checks/bin/check-review-gate.js +7 -1
- package/dist/checks/bin/check-single-plan-pr.js +7 -1
- package/dist/checks/bin/check-test-plan.js +7 -1
- package/dist/checks/bin/check-token-collection-wired.js +7 -1
- package/dist/checks/bin/check-token-report.js +7 -1
- package/dist/checks/bin/check-workspace-escape.js +7 -1
- package/dist/index.js +362 -87
- package/package.json +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/anchored-region.ts +9 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/blast-radius-domains.ts +7 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-render.ts +462 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-validation.ts +405 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/coherence-checks.ts +19 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/consumer-enumeration.ts +75 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dispatch-gate.ts +44 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doctrine-no-procedures.ts +94 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doctrine-portability.ts +128 -5
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/gate-audience.ts +3 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/index.ts +25 -3
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/parse-token-report.ts +17 -5
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/pr-report-density.ts +116 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/premise-check.ts +35 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/quoted-command.ts +3 -3
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-gate.ts +116 -7
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-status.ts +200 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/test-plan-gate.ts +25 -12
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/verdict-extraction.ts +70 -11
- package/studio-standalone/apps/vinaya-studio/web/.next/BUILD_ID +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/build-manifest.json +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/prerender-manifest.json +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.html +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/[root-of-the-server]__02a-3g8._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/1q96_modules_@clerk_nextjs_dist_esm_app-router_client_keyless-creator-reader_0lom2js.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0053k9k._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0112h-k._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0o771t1._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0puovz5._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1hs0dcu._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__1mcitst._.js → [root-of-the-server]__1pndh3_._.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1wc4-ip._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_03x_w6q._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0gvm3og._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0lwxg63._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1fqw88f._.js +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1n0cnq-._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/apps_vinaya-studio_web_src_app_studio_projects_[name]_tranches_[slug]_05ufo8i._.js +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/node_modules_1vo08dj._.js +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/middleware-build-manifest.js +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/pages/500.html +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/server-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/server-reference-manifest.json +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{0jer_drkl1e4r.js → 0zebsmmk1bvnb.js} +4 -4
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{20x-t0a0v129z.js → 1uogpj5w2n5ju.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{2ou_81ahqw31e.js → 3m1kgax7j2vgs.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/package.json +2 -2
- /package/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/{aeg-core → vinaya/studio-standalone/_node_modules/@attalabs/aeg-core}/bin/verify-coherence.ts +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{5xy_GA7G5KRuE3HDumIiw → QY2GhiI47-765D9DHGy1I}/_buildManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{5xy_GA7G5KRuE3HDumIiw → QY2GhiI47-765D9DHGy1I}/_clientMiddlewareManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{5xy_GA7G5KRuE3HDumIiw → QY2GhiI47-765D9DHGy1I}/_ssgManifest.js +0 -0
|
@@ -10,6 +10,6 @@ ${t}`))}function M(){if(!m)throw Object.defineProperty(Error("Invariant: React.u
|
|
|
10
10
|
- Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.
|
|
11
11
|
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function ea(e,t,r,n){if(n.syncDynamicErrorWithStack)throw ei(e,n.syncDynamicErrorWithStack),new a.StaticGenBailoutError;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t<n.length;t++)ei(e,n[t]);throw new a.StaticGenBailoutError}if(r.hasDynamicViewport)throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new a.StaticGenBailoutError;if(1===t)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new a.StaticGenBailoutError}else if(!1===r.hasAllowedDynamic&&r.hasDynamicMetadata)throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new a.StaticGenBailoutError}function es(e,t,r,n){if(n||r.hasSuspenseAboveBody)return[];if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return[Object.defineProperty(new p.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(!1===r.hasAllowedDynamic&&0===r.dynamicErrors.length&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function eo(e,t,r,n,i){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:a}=r;if(a.length>0)return a;if(i.renderedIds.size<i.expectedIds.size){let{thrownErrorsOutsideBoundary:t,createInstantStack:n}=r;if(0===t.length){let t=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`,r=null!==n?n():Error();return r.name="Error",r.message=t,[r]}if(1===t.length){let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`,i=null!==n?n():Error();return i.name="Error",i.message=r,[i,t[0]]}{let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,i=null!==n?n():Error();return i.name="Error",i.message=r,[i,...t]}}if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new p.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},543824,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{isRequestAPICallableInsideAfter:function(){return o},throwForSearchParamsAccessInUseCache:function(){return s},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return a}});let n=e.r(97573),i=e.r(324725);function a(e,t){throw Object.defineProperty(new n.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function s(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function o(){let e=i.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},375674,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"connection",{enumerable:!0,get:function(){return l}});let n=e.r(556704),i=e.r(832319),a=e.r(868665),s=e.r(97573),o=e.r(204642),u=e.r(543824);e.r(518185);let c=e.r(276414);function l(){let e="connection",t=n.workAsyncStorage.getStore(),r=i.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,u.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${t.route} used \`connection()\` inside \`after()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E827",enumerable:!1,configurable:!0});if(t.forceStatic)return Promise.resolve(void 0);if(t.dynamicShouldError)throw Object.defineProperty(new s.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E847",enumerable:!1,configurable:!0});if(r)switch(r.type){case"cache":{let e=Object.defineProperty(Error(`Route ${t.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E841",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,l),t.invalidDynamicUsageError??=e,e}case"private-cache":{let e=Object.defineProperty(Error(`Route ${t.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E837",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,l),t.invalidDynamicUsageError??=e,e}case"unstable-cache":throw Object.defineProperty(Error(`Route ${t.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E840",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`connection()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1125",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,o.makeHangingPromise)(r.renderSignal,t.route,"`connection()`");case"validation-client":{let e="`connection`";throw Object.defineProperty(new c.InvariantError(`${e} must not be used within a Client Component. Next.js should be preventing ${e} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1063",enumerable:!1,configurable:!0})}case"prerender-ppr":return(0,a.postponeWithTracking)(t.route,"connection",r.dynamicTracking);case"prerender-legacy":return(0,a.throwToInterruptStaticGeneration)("connection",t,r);case"request":if((0,a.trackDynamicDataInDynamicRender)(r),r.asyncApiPromises)return r.asyncApiPromises.connection;return Promise.resolve(void 0)}}(0,i.throwForMissingRequestStore)(e)}},89171,(e,t,r)=>{let n={NextRequest:e.r(929666).NextRequest,NextResponse:e.r(546633).NextResponse,ImageResponse:e.r(887963).ImageResponse,userAgentFromString:e.r(504386).userAgentFromString,userAgent:e.r(504386).userAgent,URLPattern:e.r(779187).URLPattern,after:e.r(381053).after,connection:e.r(375674).connection};t.exports=n,r.NextRequest=n.NextRequest,r.NextResponse=n.NextResponse,r.ImageResponse=n.ImageResponse,r.userAgentFromString=n.userAgentFromString,r.userAgent=n.userAgent,r.URLPattern=n.URLPattern,r.after=n.after,r.connection=n.connection},618232,(e,t,r)=>{var n=Object.prototype.toString;function i(e){return"function"==typeof e.constructor?e.constructor.name:null}function a(e){return Array.isArray?Array.isArray(e):e instanceof Array}function s(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}function o(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}function u(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}function c(e,t){return"GeneratorFunction"===i(e)}function l(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}function h(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}function p(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return c(e)?"generatorfunction":"function";if(a(e))return"array";if(p(e))return"buffer";if(h(e))return"arguments";if(o(e))return"date";if(s(e))return"error";if(u(e))return"regexp";switch(i(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(l(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},701991,(e,t,r)=>{"use strict";t.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},655254,(e,t,r)=>{"use strict";var n=e.r(701991);function i(e,t){for(var r in t)a(t,r)&&(e[r]=t[r])}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e){n(e)||(e={});for(var t=arguments.length,r=1;r<t;r++){var a=arguments[r];n(a)&&i(e,a)}return e}},735063,(e,t,r)=>{"use strict";var n=e.r(618232),i=e.r(655254);function a(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function s(e){if("object"!==n(e)&&(e={content:e}),"string"!=typeof e.content&&!l(e.content))throw TypeError("expected a buffer or string");return e.content=e.content.toString(),e.sections=[],e}function o(e,t){return e?e.slice(t.length).trim():""}function u(){return{key:"",data:"",content:""}}function c(e){return e}function l(e){return!!e&&!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e,t){"function"==typeof t&&(t={parse:t});var r=s(e),n=i({},{section_delimiter:"---",parse:c},t),l=n.section_delimiter,h=r.content.split(/\r?\n/),p=null,d=u(),f=[],m=[];function g(e){r.content=e,p=[],f=[]}function y(e){m.length&&(d.key=o(m[0],l),d.content=e,n.parse(d,p),p.push(d),d=u(),f=[],m=[])}for(var x=0;x<h.length;x++){var v=h[x],b=m.length,E=v.trim();if(a(E,l)){if(3===E.length&&0!==x){if(0===b||2===b){f.push(v);continue}m.push(E),d.data=f.join("\n"),f=[];continue}null===p&&g(f.join("\n")),2===b&&y(f.join("\n")),m.push(E);continue}f.push(v)}return null===p?g(f.join("\n")):y(f.join("\n")),r.sections=p,r}},828942,(e,t,r)=>{"use strict";function n(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},t.exports=n},544710,(e,t,r)=>{"use strict";var n=e.r(828942),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];function s(e){var t={};return null!==e&&Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})}),t}t.exports=function(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===i.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=s(t.styleAliases||null),-1===a.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},323187,(e,t,r)=>{"use strict";function n(e){return null==e}function i(e){return"object"==typeof e&&null!==e}function a(e){return Array.isArray(e)?e:n(e)?[]:[e]}function s(e,t){var r,n,i,a;if(t)for(r=0,n=(a=Object.keys(t)).length;r<n;r+=1)e[i=a[r]]=t[i];return e}function o(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n}function u(e){return 0===e&&-1/0==1/e}t.exports.isNothing=n,t.exports.isObject=i,t.exports.toArray=a,t.exports.repeat=o,t.exports.isNegativeZero=u,t.exports.extend=s},754772,(e,t,r)=>{"use strict";var n=e.r(323187),i=e.r(828942),a=e.r(544710);function s(e,t,r){var n=[];return e.include.forEach(function(e){r=s(e,t,r)}),e[t].forEach(function(e){r.forEach(function(t,r){t.tag===e.tag&&t.kind===e.kind&&n.push(r)}),r.push(e)}),r.filter(function(e,t){return -1===n.indexOf(t)})}function o(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}function u(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=o(this.compiledImplicit,this.compiledExplicit)}u.DEFAULT=null,u.create=function(){var e,t;switch(arguments.length){case 1:e=u.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(e=n.toArray(e),t=n.toArray(t),!e.every(function(e){return e instanceof u}))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every(function(e){return e instanceof a}))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new u({include:e,explicit:t})},t.exports=u},489893,(e,t,r)=>{"use strict";t.exports=new(e.r(544710))("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},429348,(e,t,r)=>{"use strict";t.exports=new(e.r(544710))("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},801705,(e,t,r)=>{"use strict";t.exports=new(e.r(544710))("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},885516,(e,t,r)=>{"use strict";t.exports=new(e.r(754772))({explicit:[e.r(489893),e.r(429348),e.r(801705)]})},604839,(e,t,r)=>{"use strict";function n(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function i(){return null}function a(e){return null===e}t.exports=new(e.r(544710))("tag:yaml.org,2002:null",{kind:"scalar",resolve:n,construct:i,predicate:a,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},501920,(e,t,r)=>{"use strict";function n(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function i(e){return"true"===e||"True"===e||"TRUE"===e}function a(e){return"[object Boolean]"===Object.prototype.toString.call(e)}t.exports=new(e.r(544710))("tag:yaml.org,2002:bool",{kind:"scalar",resolve:n,construct:i,predicate:a,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},923011,(e,t,r)=>{"use strict";var n=e.r(323187);function i(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function a(e){return 48<=e&&e<=55}function s(e){return 48<=e&&e<=57}function o(e){if(null===e)return!1;var t,r=e.length,n=0,o=!1;if(!r)return!1;if(("-"===(t=e[n])||"+"===t)&&(t=e[++n]),"0"===t){if(n+1===r)return!0;if("b"===(t=e[++n])){for(n++;n<r;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!i(e.charCodeAt(n)))return!1;o=!0}return o&&"_"!==t}for(;n<r;n++)if("_"!==(t=e[n])){if(!a(e.charCodeAt(n)))return!1;o=!0}return o&&"_"!==t}if("_"===t)return!1;for(;n<r;n++)if("_"!==(t=e[n])){if(":"===t)break;if(!s(e.charCodeAt(n)))return!1;o=!0}return!!o&&"_"!==t&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(n)))}function u(e){var t,r,n=e,i=1,a=[];return(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n)?0:"0"===t?"b"===n[1]?i*parseInt(n.slice(2),2):"x"===n[1]?i*parseInt(n,16):i*parseInt(n,8):-1!==n.indexOf(":")?(n.split(":").forEach(function(e){a.unshift(parseInt(e,10))}),n=0,r=1,a.forEach(function(e){n+=e*r,r*=60}),i*n):i*parseInt(n,10)}function c(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!n.isNegativeZero(e)}t.exports=new(e.r(544710))("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:u,predicate:c,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},863901,(e,t,r)=>{"use strict";var n=e.r(323187),i=e.r(544710),a=RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=/^[-+]?[0-9]+e/;t.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!a.test(e)&&"_"!==e[e.length-1]},construct:function(e){var t,r,n,i;return(r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?1/0:-1/0:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,n=1,i.forEach(function(e){t+=e*n,n*=60}),r*t):r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),s.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},321057,(e,t,r)=>{"use strict";t.exports=new(e.r(754772))({include:[e.r(885516)],implicit:[e.r(604839),e.r(501920),e.r(923011),e.r(863901)]})},809541,(e,t,r)=>{"use strict";t.exports=new(e.r(754772))({include:[e.r(321057)]})},618134,(e,t,r)=>{"use strict";var n=e.r(544710),i=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),a=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==i.exec(e)||null!==a.exec(e))},construct:function(e){var t,r,n,s,o,u,c,l,h=0,p=null;if(null===(t=i.exec(e))&&(t=a.exec(e)),null===t)throw Error("Date resolve error");if(r=+t[1],n=t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,n,s));if(o=+t[4],u=+t[5],c=+t[6],t[7]){for(h=t[7].slice(0,3);h.length<3;)h+="0";h*=1}return t[9]&&(p=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(p=-p)),l=new Date(Date.UTC(r,n,s,o,u,c,h)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(e){return e.toISOString()}})},123987,(e,t,r)=>{"use strict";function n(e){return"<<"===e||null===e}t.exports=new(e.r(544710))("tag:yaml.org,2002:merge",{kind:"scalar",resolve:n})},239762,(e,t,r)=>{"use strict";try{e.t,n=e.r(500874).Buffer}catch(e){}var n,i=e.r(544710),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,i=e.length,s=a;for(r=0;r<i;r++)if(!((t=s.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,i=e.replace(/[\r\n=]/g,""),s=i.length,o=a,u=0,c=[];for(t=0;t<s;t++)t%4==0&&t&&(c.push(u>>16&255),c.push(u>>8&255),c.push(255&u)),u=u<<6|o.indexOf(i.charAt(t));return(0==(r=s%4*6)?(c.push(u>>16&255),c.push(u>>8&255),c.push(255&u)):18===r?(c.push(u>>10&255),c.push(u>>2&255)):12===r&&c.push(u>>4&255),n)?n.from?n.from(c):new n(c):c},predicate:function(e){return n&&n.isBuffer(e)},represent:function(e){var t,r,n="",i=0,s=e.length,o=a;for(t=0;t<s;t++)t%3==0&&t&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]),i=(i<<8)+e[t];return 0==(r=s%3)?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]):2===r?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):1===r&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}})},594709,(e,t,r)=>{"use strict";var n=e.r(544710),i=Object.prototype.hasOwnProperty,a=Object.prototype.toString;t.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,o,u={},c=e;for(t=0,r=c.length;t<r;t+=1){if(n=c[t],o=!1,"[object Object]"!==a.call(n))return!1;for(s in n)if(i.call(n,s))if(o)return!1;else o=!0;if(!o||i.call(u,s))return!1;Object.defineProperty(u,s,{value:!0})}return!0},construct:function(e){return null!==e?e:[]}})},379857,(e,t,r)=>{"use strict";var n=e.r(544710),i=Object.prototype.toString;t.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,a,s,o=e;for(t=0,s=Array(o.length),r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==i.call(n)||1!==(a=Object.keys(n)).length)return!1;s[t]=[a[0],n[a[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,i,a,s=e;for(t=0,a=Array(s.length),r=s.length;t<r;t+=1)i=Object.keys(n=s[t]),a[t]=[i[0],n[i[0]]];return a}})},342792,(e,t,r)=>{"use strict";var n=e.r(544710),i=Object.prototype.hasOwnProperty;t.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(i.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},753270,(e,t,r)=>{"use strict";t.exports=new(e.r(754772))({include:[e.r(809541)],implicit:[e.r(618134),e.r(123987)],explicit:[e.r(239762),e.r(594709),e.r(379857),e.r(342792)]})},336881,(e,t,r)=>{"use strict";function n(){return!0}function i(){}function a(){return""}function s(e){return void 0===e}t.exports=new(e.r(544710))("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:a})},929294,(e,t,r)=>{"use strict";function n(e){if(null===e||0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return("/"!==t[0]||(r&&(n=r[1]),!(n.length>3)&&"/"===t[t.length-n.length-1]))&&!0}function i(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function a(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function s(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports=new(e.r(544710))("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:a})},49482,(e,t,r)=>{!function(e,r){t.exports=r()}(e.e,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(3),a=r(8),s=r(15);function o(e,t,r){var s,o=null,u=function(e,t){r&&r(e,t),o&&o.visit(e,t)},c="function"==typeof r?u:null,l=!1;if(t){l="boolean"==typeof t.comment&&t.comment;var h="boolean"==typeof t.attachComment&&t.attachComment;(l||h)&&((o=new n.CommentHandler).attach=h,t.comment=!0,c=u)}var p=!1;t&&"string"==typeof t.sourceType&&(p="module"===t.sourceType),s=t&&"boolean"==typeof t.jsx&&t.jsx?new i.JSXParser(e,t,c):new a.Parser(e,t,c);var d=p?s.parseModule():s.parseScript();return l&&o&&(d.comments=o.comments),s.config.tokens&&(d.tokens=s.tokens),s.config.tolerant&&(d.errors=s.errorHandler.errors),d}t.parse=o,t.parseModule=function(e,t,r){var n=t||{};return n.sourceType="module",o(e,n,r)},t.parseScript=function(e,t,r){var n=t||{};return n.sourceType="script",o(e,n,r)},t.tokenize=function(e,t,r){var n,i=new s.Tokenizer(e,t);n=[];try{for(;;){var a=i.getNextToken();if(!a)break;r&&(a=r(a)),n.push(a)}}catch(e){i.errorHandler.tolerate(e)}return i.errorHandler.tolerant&&(n.errors=i.errors()),n},t.Syntax=r(2).Syntax,t.version="4.0.1"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.CommentHandler=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===n.Syntax.BlockStatement&&0===e.body.length){for(var r=[],i=this.leading.length-1;i>=0;--i){var a=this.leading[i];t.end.offset>=a.start&&(r.unshift(a.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}r.length&&(e.innerComments=r)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var r=this.trailing.length-1;r>=0;--r){var n=this.trailing[r];n.start>=e.end.offset&&t.unshift(n.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var a=i.node.trailingComments[0];a&&a.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,r=[];this.stack.length>0;){var n=this.stack[this.stack.length-1];if(n&&n.start>=e.start.offset)t=n.node,this.stack.pop();else break}if(t){for(var i=t.leadingComments?t.leadingComments.length:0,a=i-1;a>=0;--a){var s=t.leadingComments[a];s.range[1]<=e.start.offset&&(r.unshift(s),t.leadingComments.splice(a,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,r}for(var a=this.leading.length-1;a>=0;--a){var n=this.leading[a];n.start<=e.start.offset&&(r.unshift(n.comment),this.leading.splice(a,1))}return r},e.prototype.visitNode=function(e,t){if(e.type!==n.Syntax.Program||!(e.body.length>0)){this.insertInnerComments(e,t);var r=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),r.length>0&&(e.trailingComments=r),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var r="L"===e.type[0]?"Line":"Block",n={type:r,value:e.value};if(e.range&&(n.range=e.range),e.loc&&(n.loc=e.loc),this.comments.push(n),this.attach){var i={comment:{type:r,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=r,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),a=r(5),s=r(6),o=r(7),u=r(8),c=r(13),l=r(14);function h(e){var t;switch(e.type){case s.JSXSyntax.JSXIdentifier:t=e.name;break;case s.JSXSyntax.JSXNamespacedName:var r=e;t=h(r.namespace)+":"+h(r.name);break;case s.JSXSyntax.JSXMemberExpression:var n=e;t=h(n.object)+"."+h(n.property)}return t}c.TokenName[100]="JSXIdentifier",c.TokenName[101]="JSXText",t.JSXParser=function(e){function t(t,r,n){return e.call(this,t,r,n)||this}return n(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",r=!0,n=!1,a=!1,s=!1;!this.scanner.eof()&&r&&!n;){var o=this.scanner.source[this.scanner.index];if(o===e)break;if(n=";"===o,t+=o,++this.scanner.index,!n)switch(t.length){case 2:a="#"===o;break;case 3:a&&(r=(s="x"===o)||i.Character.isDecimalDigit(o.charCodeAt(0)),a=a&&!s);break;default:r=(r=r&&!(a&&!i.Character.isDecimalDigit(o.charCodeAt(0))))&&!(s&&!i.Character.isHexDigit(o.charCodeAt(0)))}}if(r&&n&&t.length>2){var u=t.substr(1,t.length-2);a&&u.length>1?t=String.fromCharCode(parseInt(u.substr(1),10)):s&&u.length>2?t=String.fromCharCode(parseInt("0"+u.substr(1),16)):a||s||!l.XHTMLEntities[u]||(t=l.XHTMLEntities[u])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e){var t=this.scanner.source[this.scanner.index++];return{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(34===e||39===e){for(var r=this.scanner.index,n=this.scanner.source[this.scanner.index++],a="";!this.scanner.eof();){var s=this.scanner.source[this.scanner.index++];if(s===n)break;"&"===s?a+=this.scanXHTMLEntity(n):a+=s}return{type:8,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:r,end:this.scanner.index}}if(46===e){var o=this.scanner.source.charCodeAt(this.scanner.index+1),u=this.scanner.source.charCodeAt(this.scanner.index+2),t=46===o&&46===u?"...":".",r=this.scanner.index;return this.scanner.index+=t.length,{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:r,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&92!==e){var r=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var s=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(s)&&92!==s)++this.scanner.index;else if(45===s)++this.scanner.index;else break}return{type:100,value:this.scanner.source.slice(r,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:r,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var r=this.scanner.source[this.scanner.index];if("{"===r||"<"===r)break;++this.scanner.index,t+=r,i.Character.isLineTerminator(r.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===r&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var n={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(n)),n},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();(7!==t.type||t.value!==e)&&this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new a.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=t;this.expectJSX(":");var n=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXNamespacedName(r,n))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=t;this.expectJSX(".");var s=this.parseJSXIdentifier();t=this.finalize(e,new a.JSXMemberExpression(i,s))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=r;this.expectJSX(":");var i=this.parseJSXIdentifier();e=this.finalize(t,new a.JSXNamespacedName(n,i))}else e=r;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var r=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,r))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),r=null;return this.matchJSX("=")&&(this.expectJSX("="),r=this.parseJSXAttributeValue()),this.finalize(e,new a.JSXAttribute(t,r))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new a.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),r=this.parseJSXAttributes(),n=this.matchJSX("/");return n&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(t,n,r))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new a.JSXClosingElement(t))}var r=this.parseJSXElementName(),n=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new a.JSXOpeningElement(r,i,n))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new a.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new a.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),r=this.nextJSXText();if(r.start<r.end){var n=this.getTokenRaw(r),i=this.finalize(t,new a.JSXText(r.value,n));e.push(i)}if("{"===this.scanner.source[this.scanner.index]){var s=this.parseJSXExpressionContainer();e.push(s)}else break}return e},t.prototype.parseComplexJSXElement=function(e){for(var t=[];!this.scanner.eof();){e.children=e.children.concat(this.parseJSXChildren());var r=this.createJSXChildNode(),n=this.parseJSXBoundaryElement();if(n.type===s.JSXSyntax.JSXOpeningElement){var i=n;if(i.selfClosing){var o=this.finalize(r,new a.JSXElement(i,[],null));e.children.push(o)}else t.push(e),e={node:r,opening:i,closing:null,children:[]}}if(n.type===s.JSXSyntax.JSXClosingElement){e.closing=n;var u=h(e.opening.name);if(u!==h(e.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",u),t.length>0){var o=this.finalize(e.node,new a.JSXElement(e.opening,e.children,e.closing));(e=t[t.length-1]).children.push(o),t.pop()}else break}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),r=[],n=null;if(!t.selfClosing){var i=this.parseComplexJSXElement({node:e,opening:t,closing:n,children:r});r=i.children,n=i.closing}return this.finalize(e,new a.JSXElement(t,r,n))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(u.Parser)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,n=/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&r.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6);t.JSXClosingElement=function(){return function(e){this.type=n.JSXSyntax.JSXClosingElement,this.name=e}}(),t.JSXElement=function(){return function(e,t,r){this.type=n.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=r}}(),t.JSXEmptyExpression=function(){return function(){this.type=n.JSXSyntax.JSXEmptyExpression}}(),t.JSXExpressionContainer=function(){return function(e){this.type=n.JSXSyntax.JSXExpressionContainer,this.expression=e}}(),t.JSXIdentifier=function(){return function(e){this.type=n.JSXSyntax.JSXIdentifier,this.name=e}}(),t.JSXMemberExpression=function(){return function(e,t){this.type=n.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t}}(),t.JSXAttribute=function(){return function(e,t){this.type=n.JSXSyntax.JSXAttribute,this.name=e,this.value=t}}(),t.JSXNamespacedName=function(){return function(e,t){this.type=n.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t}}(),t.JSXOpeningElement=function(){return function(e,t,r){this.type=n.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=r}}(),t.JSXSpreadAttribute=function(){return function(e){this.type=n.JSXSyntax.JSXSpreadAttribute,this.argument=e}}(),t.JSXText=function(){return function(e,t){this.type=n.JSXSyntax.JSXText,this.value=e,this.raw=t}}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.ArrayExpression=function(){return function(e){this.type=n.Syntax.ArrayExpression,this.elements=e}}(),t.ArrayPattern=function(){return function(e){this.type=n.Syntax.ArrayPattern,this.elements=e}}(),t.ArrowFunctionExpression=function(){return function(e,t,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!1}}(),t.AssignmentExpression=function(){return function(e,t,r){this.type=n.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=r}}(),t.AssignmentPattern=function(){return function(e,t){this.type=n.Syntax.AssignmentPattern,this.left=e,this.right=t}}(),t.AsyncArrowFunctionExpression=function(){return function(e,t,r){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=r,this.async=!0}}(),t.AsyncFunctionDeclaration=function(){return function(e,t,r){this.type=n.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0}}(),t.AsyncFunctionExpression=function(){return function(e,t,r){this.type=n.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=!1,this.expression=!1,this.async=!0}}(),t.AwaitExpression=function(){return function(e){this.type=n.Syntax.AwaitExpression,this.argument=e}}(),t.BinaryExpression=function(){return function(e,t,r){var i="||"===e||"&&"===e;this.type=i?n.Syntax.LogicalExpression:n.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=r}}(),t.BlockStatement=function(){return function(e){this.type=n.Syntax.BlockStatement,this.body=e}}(),t.BreakStatement=function(){return function(e){this.type=n.Syntax.BreakStatement,this.label=e}}(),t.CallExpression=function(){return function(e,t){this.type=n.Syntax.CallExpression,this.callee=e,this.arguments=t}}(),t.CatchClause=function(){return function(e,t){this.type=n.Syntax.CatchClause,this.param=e,this.body=t}}(),t.ClassBody=function(){return function(e){this.type=n.Syntax.ClassBody,this.body=e}}(),t.ClassDeclaration=function(){return function(e,t,r){this.type=n.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=r}}(),t.ClassExpression=function(){return function(e,t,r){this.type=n.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=r}}(),t.ComputedMemberExpression=function(){return function(e,t){this.type=n.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t}}(),t.ConditionalExpression=function(){return function(e,t,r){this.type=n.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=r}}(),t.ContinueStatement=function(){return function(e){this.type=n.Syntax.ContinueStatement,this.label=e}}(),t.DebuggerStatement=function(){return function(){this.type=n.Syntax.DebuggerStatement}}(),t.Directive=function(){return function(e,t){this.type=n.Syntax.ExpressionStatement,this.expression=e,this.directive=t}}(),t.DoWhileStatement=function(){return function(e,t){this.type=n.Syntax.DoWhileStatement,this.body=e,this.test=t}}(),t.EmptyStatement=function(){return function(){this.type=n.Syntax.EmptyStatement}}(),t.ExportAllDeclaration=function(){return function(e){this.type=n.Syntax.ExportAllDeclaration,this.source=e}}(),t.ExportDefaultDeclaration=function(){return function(e){this.type=n.Syntax.ExportDefaultDeclaration,this.declaration=e}}(),t.ExportNamedDeclaration=function(){return function(e,t,r){this.type=n.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=r}}(),t.ExportSpecifier=function(){return function(e,t){this.type=n.Syntax.ExportSpecifier,this.exported=t,this.local=e}}(),t.ExpressionStatement=function(){return function(e){this.type=n.Syntax.ExpressionStatement,this.expression=e}}(),t.ForInStatement=function(){return function(e,t,r){this.type=n.Syntax.ForInStatement,this.left=e,this.right=t,this.body=r,this.each=!1}}(),t.ForOfStatement=function(){return function(e,t,r){this.type=n.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=r}}(),t.ForStatement=function(){return function(e,t,r,i){this.type=n.Syntax.ForStatement,this.init=e,this.test=t,this.update=r,this.body=i}}(),t.FunctionDeclaration=function(){return function(e,t,r,i){this.type=n.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=r,this.generator=i,this.expression=!1,this.async=!1}}(),t.FunctionExpression=function(){return function(e,t,r,i){this.type=n.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=r,this.generator=i,this.expression=!1,this.async=!1}}(),t.Identifier=function(){return function(e){this.type=n.Syntax.Identifier,this.name=e}}(),t.IfStatement=function(){return function(e,t,r){this.type=n.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=r}}(),t.ImportDeclaration=function(){return function(e,t){this.type=n.Syntax.ImportDeclaration,this.specifiers=e,this.source=t}}(),t.ImportDefaultSpecifier=function(){return function(e){this.type=n.Syntax.ImportDefaultSpecifier,this.local=e}}(),t.ImportNamespaceSpecifier=function(){return function(e){this.type=n.Syntax.ImportNamespaceSpecifier,this.local=e}}(),t.ImportSpecifier=function(){return function(e,t){this.type=n.Syntax.ImportSpecifier,this.local=e,this.imported=t}}(),t.LabeledStatement=function(){return function(e,t){this.type=n.Syntax.LabeledStatement,this.label=e,this.body=t}}(),t.Literal=function(){return function(e,t){this.type=n.Syntax.Literal,this.value=e,this.raw=t}}(),t.MetaProperty=function(){return function(e,t){this.type=n.Syntax.MetaProperty,this.meta=e,this.property=t}}(),t.MethodDefinition=function(){return function(e,t,r,i,a){this.type=n.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=r,this.kind=i,this.static=a}}(),t.Module=function(){return function(e){this.type=n.Syntax.Program,this.body=e,this.sourceType="module"}}(),t.NewExpression=function(){return function(e,t){this.type=n.Syntax.NewExpression,this.callee=e,this.arguments=t}}(),t.ObjectExpression=function(){return function(e){this.type=n.Syntax.ObjectExpression,this.properties=e}}(),t.ObjectPattern=function(){return function(e){this.type=n.Syntax.ObjectPattern,this.properties=e}}(),t.Property=function(){return function(e,t,r,i,a,s){this.type=n.Syntax.Property,this.key=t,this.computed=r,this.value=i,this.kind=e,this.method=a,this.shorthand=s}}(),t.RegexLiteral=function(){return function(e,t,r,i){this.type=n.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:r,flags:i}}}(),t.RestElement=function(){return function(e){this.type=n.Syntax.RestElement,this.argument=e}}(),t.ReturnStatement=function(){return function(e){this.type=n.Syntax.ReturnStatement,this.argument=e}}(),t.Script=function(){return function(e){this.type=n.Syntax.Program,this.body=e,this.sourceType="script"}}(),t.SequenceExpression=function(){return function(e){this.type=n.Syntax.SequenceExpression,this.expressions=e}}(),t.SpreadElement=function(){return function(e){this.type=n.Syntax.SpreadElement,this.argument=e}}(),t.StaticMemberExpression=function(){return function(e,t){this.type=n.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t}}(),t.Super=function(){return function(){this.type=n.Syntax.Super}}(),t.SwitchCase=function(){return function(e,t){this.type=n.Syntax.SwitchCase,this.test=e,this.consequent=t}}(),t.SwitchStatement=function(){return function(e,t){this.type=n.Syntax.SwitchStatement,this.discriminant=e,this.cases=t}}(),t.TaggedTemplateExpression=function(){return function(e,t){this.type=n.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t}}(),t.TemplateElement=function(){return function(e,t){this.type=n.Syntax.TemplateElement,this.value=e,this.tail=t}}(),t.TemplateLiteral=function(){return function(e,t){this.type=n.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t}}(),t.ThisExpression=function(){return function(){this.type=n.Syntax.ThisExpression}}(),t.ThrowStatement=function(){return function(e){this.type=n.Syntax.ThrowStatement,this.argument=e}}(),t.TryStatement=function(){return function(e,t,r){this.type=n.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=r}}(),t.UnaryExpression=function(){return function(e,t){this.type=n.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0}}(),t.UpdateExpression=function(){return function(e,t,r){this.type=n.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=r}}(),t.VariableDeclaration=function(){return function(e,t){this.type=n.Syntax.VariableDeclaration,this.declarations=e,this.kind=t}}(),t.VariableDeclarator=function(){return function(e,t){this.type=n.Syntax.VariableDeclarator,this.id=e,this.init=t}}(),t.WhileStatement=function(){return function(e,t){this.type=n.Syntax.WhileStatement,this.test=e,this.body=t}}(),t.WithStatement=function(){return function(e,t){this.type=n.Syntax.WithStatement,this.object=e,this.body=t}}(),t.YieldExpression=function(){return function(e,t){this.type=n.Syntax.YieldExpression,this.argument=e,this.delegate=t}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(10),a=r(11),s=r(7),o=r(12),u=r(2),c=r(13),l="ArrowParameterPlaceHolder";t.Parser=function(){function e(e,t,r){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=r,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new o.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.prototype.slice.call(arguments,1),a=e.replace(/%(\d)/g,function(e,t){return n.assert(t<i.length,"Message reference must be in range"),i[t]}),s=this.lastMarker.index,o=this.lastMarker.line,u=this.lastMarker.column+1;throw this.errorHandler.createError(s,o,u,a)},e.prototype.tolerateError=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.prototype.slice.call(arguments,1),a=e.replace(/%(\d)/g,function(e,t){return n.assert(t<i.length,"Message reference must be in range"),i[t]}),s=this.lastMarker.index,o=this.scanner.lineNumber,u=this.lastMarker.column+1;this.errorHandler.tolerateError(s,o,u,a)},e.prototype.unexpectedTokenError=function(e,t){var r,n=t||a.Messages.UnexpectedToken;if(e?(!t&&(n=2===e.type?a.Messages.UnexpectedEOS:3===e.type?a.Messages.UnexpectedIdentifier:6===e.type?a.Messages.UnexpectedNumber:8===e.type?a.Messages.UnexpectedString:10===e.type?a.Messages.UnexpectedTemplate:a.Messages.UnexpectedToken,4===e.type&&(this.scanner.isFutureReservedWord(e.value)?n=a.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(n=a.Messages.StrictReservedWord))),r=e.value):r="ILLEGAL",n=n.replace("%0",r),e&&"number"==typeof e.lineNumber){var i=e.start,s=e.lineNumber,o=this.lastMarker.index-this.lastMarker.column,u=e.start-o+1;return this.errorHandler.createError(i,s,u,n)}var i=this.lastMarker.index,s=this.lastMarker.line,u=this.lastMarker.column+1;return this.errorHandler.createError(i,s,u,n)},e.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},e.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},e.prototype.collectComments=function(){if(this.config.comment){var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var r=e[t],n=void 0;n={type:r.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(r.slice[0],r.slice[1])},this.config.range&&(n.range=r.range),this.config.loc&&(n.loc=r.loc);var i={start:{line:r.loc.start.line,column:r.loc.start.column,offset:r.range[0]},end:{line:r.loc.end.line,column:r.loc.end.column,offset:r.range[1]}};this.delegate(n,i)}}else this.scanner.scanComments()},e.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},e.prototype.convertToken=function(e){var t={type:c.TokenName[e.type],value:this.getTokenRaw(e)};return this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===e.type&&(t.regex={pattern:e.pattern,flags:e.flags}),t},e.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&3===t.type&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&2!==t.type&&this.tokens.push(this.convertToken(t)),e},e.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},e.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},e.prototype.startNode=function(e,t){void 0===t&&(t=0);var r=e.start-e.lineStart,n=e.lineNumber;return r<0&&(r+=t,n--),{index:e.start,line:n,column:r}},e.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var r={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,r)}return t},e.prototype.expect=function(e){var t=this.nextToken();(7!==t.type||t.value!==e)&&this.throwUnexpectedToken(t)},e.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;7===e.type&&","===e.value?this.nextToken():7===e.type&&";"===e.value?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,a.Messages.UnexpectedToken)}else this.expect(",")},e.prototype.expectKeyword=function(e){var t=this.nextToken();(4!==t.type||t.value!==e)&&this.throwUnexpectedToken(t)},e.prototype.match=function(e){return 7===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchKeyword=function(e){return 4===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchContextualKeyword=function(e){return 3===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var e=this.lookahead.value;return"="===e||"*="===e||"**="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=r,this.context.firstCoverInitializedNameError=n,i},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,r=this.context.isAssignmentTarget,n=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&r,this.context.firstCoverInitializedNameError=n||this.context.firstCoverInitializedNameError,i},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,r,n=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(n,new s.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,a.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new s.Literal(t.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new s.Literal("true"===t.value,r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),r=this.getTokenRaw(t),e=this.finalize(n,new s.Literal(null,r));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),r=this.getTokenRaw(t),e=this.finalize(n,new s.RegexLiteral(t.regex,r,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(n,new s.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(n,new s.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new s.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var r=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(r)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new s.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,r=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var n=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=r,n},e.prototype.parsePropertyMethodFunction=function(){var e=!1,t=this.createNode(),r=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=r,this.finalize(t,new s.FunctionExpression(null,n.params,i,e))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,r=this.context.await;this.context.allowYield=!1,this.context.await=!0;var n=this.parseFormalParameters(),i=this.parsePropertyMethod(n);return this.context.allowYield=t,this.context.await=r,this.finalize(e,new s.AsyncFunctionExpression(null,n.params,i))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),r=this.nextToken();switch(r.type){case 8:case 6:this.context.strict&&r.octal&&this.tolerateUnexpectedToken(r,a.Messages.StrictOctalLiteral);var n=this.getTokenRaw(r);e=this.finalize(t,new s.Literal(r.value,n));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new s.Identifier(r.value));break;case 7:"["===r.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(r);break;default:e=this.throwUnexpectedToken(r)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===u.Syntax.Identifier&&e.name===t||e.type===u.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,r=this.createNode(),n=this.lookahead,i=null,o=null,u=!1,c=!1,l=!1,h=!1;if(3===n.type){var p=n.value;this.nextToken(),u=this.match("["),i=(h=!this.hasLineTerminator&&"async"===p&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","))?this.parseObjectPropertyKey():this.finalize(r,new s.Identifier(p))}else this.match("*")?this.nextToken():(u=this.match("["),i=this.parseObjectPropertyKey());var d=this.qualifiedPropertyName(this.lookahead);if(3===n.type&&!h&&"get"===n.value&&d)t="get",u=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,o=this.parseGetterMethod();else if(3===n.type&&!h&&"set"===n.value&&d)t="set",u=this.match("["),i=this.parseObjectPropertyKey(),o=this.parseSetterMethod();else if(7===n.type&&"*"===n.value&&d)t="init",u=this.match("["),i=this.parseObjectPropertyKey(),o=this.parseGeneratorMethod(),c=!0;else if(i||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!h)!u&&this.isPropertyKey(i,"__proto__")&&(e.value&&this.tolerateError(a.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),o=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))o=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0;else if(3===n.type){var p=this.finalize(r,new s.Identifier(n.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),l=!0;var f=this.isolateCoverGrammar(this.parseAssignmentExpression);o=this.finalize(r,new s.AssignmentPattern(p,f))}else l=!0,o=p}else this.throwUnexpectedToken(this.nextToken());return this.finalize(r,new s.Property(t,i,u,o,c,l))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],r={value:!1};!this.match("}");)t.push(this.parseObjectProperty(r)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new s.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){n.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),r=t.value,i=t.cooked;return this.finalize(e,new s.TemplateElement({raw:r,cooked:i},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),r=t.value,n=t.cooked;return this.finalize(e,new s.TemplateElement({raw:r,cooked:n},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],r=[],n=this.parseTemplateHead();for(r.push(n);!n.tail;)t.push(this.parseExpression()),n=this.parseTemplateElement(),r.push(n);return this.finalize(e,new s.TemplateLiteral(r,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:e.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case u.Syntax.ArrayExpression:e.type=u.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)null!==e.elements[t]&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case u.Syntax.ObjectExpression:e.type=u.Syntax.ObjectPattern;for(var t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case u.Syntax.AssignmentExpression:e.type=u.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left)}},e.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:l,params:[],async:!1};else{var t=this.lookahead,r=[];if(this.match("..."))e=this.parseRestElement(r),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:l,params:[e],async:!1};else{var n=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var a=0;a<i.length;a++)this.reinterpretExpressionAsPattern(i[a]);n=!0,e={type:l,params:i,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.push(this.parseRestElement(r)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var a=0;a<i.length;a++)this.reinterpretExpressionAsPattern(i[a]);n=!0,e={type:l,params:i,async:!1}}else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(n)break}n||(e=this.finalize(this.startNode(t),new s.SequenceExpression(i)))}if(!n){if(this.expect(")"),this.match("=>")&&(e.type===u.Syntax.Identifier&&"yield"===e.name&&(n=!0,e={type:l,params:[e],async:!1}),!n)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===u.Syntax.SequenceExpression)for(var a=0;a<e.expressions.length;a++)this.reinterpretExpressionAsPattern(e.expressions[a]);else this.reinterpretExpressionAsPattern(e);e={type:l,params:e.type===u.Syntax.SequenceExpression?e.expressions:[e],async:!1}}this.context.isBindingElement=!1}}}return e},e.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},e.prototype.isIdentifierName=function(e){return 3===e.type||4===e.type||1===e.type||5===e.type},e.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new s.Identifier(t.value))},e.prototype.parseNewExpression=function(){var e,t=this.createNode(),r=this.parseIdentifierName();if(n.assert("new"===r.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var i=this.parseIdentifierName();e=new s.MetaProperty(r,i)}else this.throwUnexpectedToken(this.lookahead);else{var a=this.isolateCoverGrammar(this.parseLeftHandSideExpression),o=this.match("(")?this.parseArguments():[];e=new s.NewExpression(a,o),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(t,e)},e.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},e.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},e.prototype.parseLeftHandSideExpressionAllowCall=function(){var e,t=this.lookahead,r=this.matchContextualKeyword("async"),n=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(e=this.createNode(),this.nextToken(),e=this.finalize(e,new s.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):e=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();e=this.finalize(this.startNode(t),new s.StaticMemberExpression(e,i))}else if(this.match("(")){var a=r&&t.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var o=a?this.parseAsyncArguments():this.parseArguments();if(e=this.finalize(this.startNode(t),new s.CallExpression(e,o)),a&&this.match("=>")){for(var u=0;u<o.length;++u)this.reinterpretExpressionAsPattern(o[u]);e={type:l,params:o,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var i=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),e=this.finalize(this.startNode(t),new s.ComputedMemberExpression(e,i))}else if(10===this.lookahead.type&&this.lookahead.head){var c=this.parseTemplateLiteral();e=this.finalize(this.startNode(t),new s.TaggedTemplateExpression(e,c))}else break;return this.context.allowIn=n,e},e.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(e,new s.Super)},e.prototype.parseLeftHandSideExpression=function(){n.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var r=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new s.ComputedMemberExpression(t,r))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var r=this.parseIdentifierName();t=this.finalize(e,new s.StaticMemberExpression(t,r))}else if(10===this.lookahead.type&&this.lookahead.head){var i=this.parseTemplateLiteral();t=this.finalize(e,new s.TaggedTemplateExpression(t,i))}else break;return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var r=this.startNode(t),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(a.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(a.Messages.InvalidLHSInAssignment);var i=!0;e=this.finalize(r,new s.UpdateExpression(n.value,e,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(a.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(a.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var o=this.nextToken().value,i=!1;e=this.finalize(this.startNode(t),new s.UpdateExpression(o,e,i))}return e},e.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new s.AwaitExpression(t))},e.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new s.UnaryExpression(r.value,e)),this.context.strict&&"delete"===e.operator&&e.argument.type===u.Syntax.Identifier&&this.tolerateError(a.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else e=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return e},e.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==u.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var r=t,n=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new s.BinaryExpression("**",r,n))}return t},e.prototype.binaryPrecedence=function(e){var t=e.value;return 7===e.type?this.operatorPrecedence[t]||0:4===e.type&&("instanceof"===t||this.context.allowIn&&"in"===t)?7:0},e.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),r=this.lookahead,n=this.binaryPrecedence(r);if(n>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[e,this.lookahead],a=t,o=this.isolateCoverGrammar(this.parseExponentiationExpression),u=[a,r.value,o],c=[n];!((n=this.binaryPrecedence(this.lookahead))<=0);){for(;u.length>2&&n<=c[c.length-1];){o=u.pop();var l=u.pop();c.pop(),a=u.pop(),i.pop();var h=this.startNode(i[i.length-1]);u.push(this.finalize(h,new s.BinaryExpression(l,a,o)))}u.push(this.nextToken().value),c.push(n),i.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var p=u.length-1;t=u[p];for(var d=i.pop();p>1;){var f=i.pop(),m=d&&d.lineStart,h=this.startNode(f,m),l=u[p-1];t=this.finalize(h,new s.BinaryExpression(l,u[p-2],t)),p-=2,d=f}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var r=this.context.allowIn;this.context.allowIn=!0;var n=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=r,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new s.ConditionalExpression(t,n,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case u.Syntax.Identifier:this.validateParam(e,t,t.name);break;case u.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case u.Syntax.ArrayPattern:for(var r=0;r<t.elements.length;r++)null!==t.elements[r]&&this.checkPatternParam(e,t.elements[r]);break;case u.Syntax.ObjectPattern:for(var r=0;r<t.properties.length;r++)this.checkPatternParam(e,t.properties[r].value)}e.simple=e.simple&&t instanceof s.Identifier},e.prototype.reinterpretAsCoverFormalsList=function(e){var t,r=[e],n=!1;switch(e.type){case u.Syntax.Identifier:break;case l:r=e.params,n=e.async;break;default:return null}t={simple:!0,paramSet:{}};for(var i=0;i<r.length;++i){var s=r[i];s.type===u.Syntax.AssignmentPattern?s.right.type===u.Syntax.YieldExpression&&(s.right.argument&&this.throwUnexpectedToken(this.lookahead),s.right.type=u.Syntax.Identifier,s.right.name="yield",delete s.right.argument,delete s.right.delegate):n&&s.type===u.Syntax.Identifier&&"await"===s.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(t,s),r[i]=s}if(this.context.strict||!this.context.allowYield)for(var i=0;i<r.length;++i){var s=r[i];s.type===u.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(t.message===a.Messages.StrictParamDupe){var o=this.context.strict?t.stricted:t.firstRestricted;this.throwUnexpectedToken(o,t.message)}return{simple:t.simple,params:r,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,r=t;if(e=this.parseConditionalExpression(),3===r.type&&r.lineNumber===this.lookahead.lineNumber&&"async"===r.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var n=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(n),e={type:l,params:[n],async:!0}}if(e.type===l||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=e.async,o=this.reinterpretAsCoverFormalsList(e);if(o){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var c=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=o.simple;var p=this.context.allowYield,d=this.context.await;this.context.allowYield=!0,this.context.await=i;var f=this.startNode(t);this.expect("=>");var m=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,m=this.parseFunctionSourceElements(),this.context.allowIn=g}else m=this.isolateCoverGrammar(this.parseAssignmentExpression);var y=m.type!==u.Syntax.BlockStatement;this.context.strict&&o.firstRestricted&&this.throwUnexpectedToken(o.firstRestricted,o.message),this.context.strict&&o.stricted&&this.tolerateUnexpectedToken(o.stricted,o.message),e=i?this.finalize(f,new s.AsyncArrowFunctionExpression(o.params,m,y)):this.finalize(f,new s.ArrowFunctionExpression(o.params,m,y)),this.context.strict=c,this.context.allowStrictDirective=h,this.context.allowYield=p,this.context.await=d}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(a.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===u.Syntax.Identifier){var x=e;this.scanner.isRestrictedWord(x.name)&&this.tolerateUnexpectedToken(r,a.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(x.name)&&this.tolerateUnexpectedToken(r,a.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var v=(r=this.nextToken()).value,b=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new s.AssignmentExpression(v,e,b)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var r=[];for(r.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),r.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new s.SequenceExpression(r))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,a.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,a.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new s.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var r=this.createNode(),n=[],i=this.parsePattern(n,e);this.context.strict&&i.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(a.Messages.StrictVarName);var o=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),o=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(a.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&i.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),o=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(r,new s.VariableDeclarator(i,o))},e.prototype.parseBindingList=function(e,t){for(var r=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),r.push(this.parseLexicalBinding(e,t));return r},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),r=this.nextToken().value;n.assert("let"===r||"const"===r,"Lexical declaration must be either let or const");var i=this.parseBindingList(r,e);return this.consumeSemicolon(),this.finalize(t,new s.VariableDeclaration(i,r))},e.prototype.parseBindingRestElement=function(e,t){var r=this.createNode();this.expect("...");var n=this.parsePattern(e,t);return this.finalize(r,new s.RestElement(n))},e.prototype.parseArrayPattern=function(e,t){var r=this.createNode();this.expect("[");for(var n=[];!this.match("]");)if(this.match(","))this.nextToken(),n.push(null);else{if(this.match("...")){n.push(this.parseBindingRestElement(e,t));break}n.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(r,new s.ArrayPattern(n))},e.prototype.parsePropertyPattern=function(e,t){var r,n,i=this.createNode(),a=!1,o=!1,u=!1;if(3===this.lookahead.type){var c=this.lookahead;r=this.parseVariableIdentifier();var l=this.finalize(i,new s.Identifier(c.value));if(this.match("=")){e.push(c),o=!0,this.nextToken();var h=this.parseAssignmentExpression();n=this.finalize(this.startNode(c),new s.AssignmentPattern(l,h))}else this.match(":")?(this.expect(":"),n=this.parsePatternWithDefault(e,t)):(e.push(c),o=!0,n=l)}else a=this.match("["),r=this.parseObjectPropertyKey(),this.expect(":"),n=this.parsePatternWithDefault(e,t);return this.finalize(i,new s.Property("init",r,a,n,u,o))},e.prototype.parseObjectPattern=function(e,t){var r=this.createNode(),n=[];for(this.expect("{");!this.match("}");)n.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(r,new s.ObjectPattern(n))},e.prototype.parsePattern=function(e,t){var r;return this.match("[")?r=this.parseArrayPattern(e,t):this.match("{")?r=this.parseObjectPattern(e,t):(this.matchKeyword("let")&&("const"===t||"let"===t)&&this.tolerateUnexpectedToken(this.lookahead,a.Messages.LetInLexicalBinding),e.push(this.lookahead),r=this.parseVariableIdentifier(t)),r},e.prototype.parsePatternWithDefault=function(e,t){var r=this.lookahead,n=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var a=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,n=this.finalize(this.startNode(r),new s.AssignmentPattern(n,a))}return n},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),r=this.nextToken();return 4===r.type&&"yield"===r.value?this.context.strict?this.tolerateUnexpectedToken(r,a.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(r):3!==r.type?this.context.strict&&4===r.type&&this.scanner.isStrictModeReservedWord(r.value)?this.tolerateUnexpectedToken(r,a.Messages.StrictReservedWord):(this.context.strict||"let"!==r.value||"var"!==e)&&this.throwUnexpectedToken(r):(this.context.isModule||this.context.await)&&3===r.type&&"await"===r.value&&this.tolerateUnexpectedToken(r),this.finalize(t,new s.Identifier(r.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),r=[],n=this.parsePattern(r,"var");this.context.strict&&n.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(a.Messages.StrictVarName);var i=null;return this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===u.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new s.VariableDeclarator(n,i))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},r=[];for(r.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),r.push(this.parseVariableDeclaration(t));return r},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new s.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new s.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(a.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),r=null;this.expectKeyword("if"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),r=this.parseIfClause())),this.finalize(t,new s.IfStatement(n,e,r))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var r=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new s.DoWhileStatement(r,n))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var n=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=n}return this.finalize(t,new s.WhileStatement(r,e))},e.prototype.parseForStatement=function(){var e,t,r,n=null,i=null,o=null,c=!0,l=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){n=this.createNode(),this.nextToken();var h=this.context.allowIn;this.context.allowIn=!1;var p=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=h,1===p.length&&this.matchKeyword("in")){var d=p[0];d.init&&(d.id.type===u.Syntax.ArrayPattern||d.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(a.Messages.ForInOfLoopInitializer,"for-in"),n=this.finalize(n,new s.VariableDeclaration(p,"var")),this.nextToken(),e=n,t=this.parseExpression(),n=null}else 1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new s.VariableDeclaration(p,"var")),this.nextToken(),e=n,t=this.parseAssignmentExpression(),n=null,c=!1):(n=this.finalize(n,new s.VariableDeclaration(p,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){n=this.createNode();var f=this.nextToken().value;if(this.context.strict||"in"!==this.lookahead.value){var h=this.context.allowIn;this.context.allowIn=!1;var p=this.parseBindingList(f,{inFor:!0});this.context.allowIn=h,1===p.length&&null===p[0].init&&this.matchKeyword("in")?(n=this.finalize(n,new s.VariableDeclaration(p,f)),this.nextToken(),e=n,t=this.parseExpression(),n=null):1===p.length&&null===p[0].init&&this.matchContextualKeyword("of")?(n=this.finalize(n,new s.VariableDeclaration(p,f)),this.nextToken(),e=n,t=this.parseAssignmentExpression(),n=null,c=!1):(this.consumeSemicolon(),n=this.finalize(n,new s.VariableDeclaration(p,f)))}else n=this.finalize(n,new s.Identifier(f)),this.nextToken(),e=n,t=this.parseExpression(),n=null}else{var m=this.lookahead,h=this.context.allowIn;if(this.context.allowIn=!1,n=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=h,this.matchKeyword("in"))this.context.isAssignmentTarget&&n.type!==u.Syntax.AssignmentExpression||this.tolerateError(a.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(n),e=n,t=this.parseExpression(),n=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&n.type!==u.Syntax.AssignmentExpression||this.tolerateError(a.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(n),e=n,t=this.parseAssignmentExpression(),n=null,c=!1;else{if(this.match(",")){for(var g=[n];this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));n=this.finalize(this.startNode(m),new s.SequenceExpression(g))}this.expect(";")}}if(void 0===e&&(this.match(";")||(i=this.parseExpression()),this.expect(";"),this.match(")")||(o=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),r=this.finalize(this.createNode(),new s.EmptyStatement);else{this.expect(")");var y=this.context.inIteration;this.context.inIteration=!0,r=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=y}return void 0===e?this.finalize(l,new s.ForStatement(n,i,o,r)):c?this.finalize(l,new s.ForInStatement(e,t,r)):this.finalize(l,new s.ForOfStatement(e,t,r))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier();t=r;var n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(a.Messages.UnknownLabel,r.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(a.Messages.IllegalContinue),this.finalize(e,new s.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var r=this.parseVariableIdentifier(),n="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,n)||this.throwError(a.Messages.UnknownLabel,r.name),t=r}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(a.Messages.IllegalBreak),this.finalize(e,new s.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(a.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(a.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new s.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new s.WithStatement(r,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var r=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)r.push(this.parseStatementListItem());return this.finalize(t,new s.SwitchCase(e,r))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var r=this.context.inSwitch;this.context.inSwitch=!0;var n=[],i=!1;for(this.expect("{");!this.match("}");){var o=this.parseSwitchCase();null===o.test&&(i&&this.throwError(a.Messages.MultipleDefaultsInSwitch),i=!0),n.push(o)}return this.expect("}"),this.context.inSwitch=r,this.finalize(e,new s.SwitchStatement(t,n))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),r=this.parseExpression();if(r.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var n=r,i="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(a.Messages.Redeclaration,"Label",n.name),this.context.labelSet[i]=!0;var o=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),o=this.parseClassDeclaration();else if(this.matchKeyword("function")){var c=this.lookahead,l=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(c,a.Messages.StrictFunction):l.generator&&this.tolerateUnexpectedToken(c,a.Messages.GeneratorInLegacyContext),o=l}else o=this.parseStatement();delete this.context.labelSet[i],e=new s.LabeledStatement(n,o)}else this.consumeSemicolon(),e=new s.ExpressionStatement(r);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(a.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new s.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],r=this.parsePattern(t),n={},i=0;i<t.length;i++){var o="$"+t[i].value;Object.prototype.hasOwnProperty.call(n,o)&&this.tolerateError(a.Messages.DuplicateBinding,t[i].value),n[o]=!0}this.context.strict&&r.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(a.Messages.StrictCatchVariable),this.expect(")");var c=this.parseBlock();return this.finalize(e,new s.CatchClause(r,c))},e.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},e.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),r=this.matchKeyword("catch")?this.parseCatchClause():null,n=this.matchKeyword("finally")?this.parseFinallyClause():null;return r||n||this.throwError(a.Messages.NoCatchOrFinally),this.finalize(e,new s.TryStatement(t,r,n))},e.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new s.DebuggerStatement)},e.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;e="{"===t?this.parseBlock():"("===t?this.parseExpressionStatement():";"===t?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement()}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},e.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),r=this.context.labelSet,n=this.context.inIteration,i=this.context.inSwitch,a=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=r,this.context.inIteration=n,this.context.inSwitch=i,this.context.inFunctionBody=a,this.finalize(e,new s.BlockStatement(t))},e.prototype.validateParam=function(e,t,r){var n="$"+r;this.context.strict?(this.scanner.isRestrictedWord(r)&&(e.stricted=t,e.message=a.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,n)&&(e.stricted=t,e.message=a.Messages.StrictParamDupe)):!e.firstRestricted&&(this.scanner.isRestrictedWord(r)?(e.firstRestricted=t,e.message=a.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(r)?(e.firstRestricted=t,e.message=a.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,n)&&(e.stricted=t,e.message=a.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(e.paramSet,n,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[n]=!0},e.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var r=this.parsePattern(e);return this.match("=")&&this.throwError(a.Messages.DefaultRestParameter),this.match(")")||this.throwError(a.Messages.ParameterAfterRestParameter),this.finalize(t,new s.RestElement(r))},e.prototype.parseFormalParameter=function(e){for(var t=[],r=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),n=0;n<t.length;n++)this.validateParam(e,t[n],t[n].value);e.simple=e.simple&&r instanceof s.Identifier,e.params.push(r)},e.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(t),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var r=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===r.lineNumber&&4===r.type&&"function"===r.value}return e},e.prototype.parseFunctionDeclaration=function(e){var t,r=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var i=!n&&this.match("*");i&&this.nextToken();var o=null,u=null;if(!e||!this.match("(")){var c=this.lookahead;o=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(c.value)&&this.tolerateUnexpectedToken(c,a.Messages.StrictFunctionName):this.scanner.isRestrictedWord(c.value)?(u=c,t=a.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(c.value)&&(u=c,t=a.Messages.StrictReservedWord)}var l=this.context.await,h=this.context.allowYield;this.context.await=n,this.context.allowYield=!i;var p=this.parseFormalParameters(u),d=p.params,f=p.stricted;u=p.firstRestricted,p.message&&(t=p.message);var m=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var y=this.parseFunctionSourceElements();return this.context.strict&&u&&this.throwUnexpectedToken(u,t),this.context.strict&&f&&this.tolerateUnexpectedToken(f,t),this.context.strict=m,this.context.allowStrictDirective=g,this.context.await=l,this.context.allowYield=h,n?this.finalize(r,new s.AsyncFunctionDeclaration(o,d,y)):this.finalize(r,new s.FunctionDeclaration(o,d,y,i))},e.prototype.parseFunctionExpression=function(){var e,t,r=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var i=!n&&this.match("*");i&&this.nextToken();var o=null,u=this.context.await,c=this.context.allowYield;if(this.context.await=n,this.context.allowYield=!i,!this.match("(")){var l=this.lookahead;o=!this.context.strict&&!i&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,a.Messages.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(t=l,e=a.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(t=l,e=a.Messages.StrictReservedWord)}var h=this.parseFormalParameters(t),p=h.params,d=h.stricted;t=h.firstRestricted,h.message&&(e=h.message);var f=this.context.strict,m=this.context.allowStrictDirective;this.context.allowStrictDirective=h.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&t&&this.throwUnexpectedToken(t,e),this.context.strict&&d&&this.tolerateUnexpectedToken(d,e),this.context.strict=f,this.context.allowStrictDirective=m,this.context.await=u,this.context.allowYield=c,n?this.finalize(r,new s.AsyncFunctionExpression(o,p,g)):this.finalize(r,new s.FunctionExpression(o,p,g,i))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),r=this.parseExpression(),n=r.type===u.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,n?new s.Directive(r,n):new s.ExpressionStatement(r))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var r=this.lookahead;if(8!==r.type)break;var n=this.parseDirective();t.push(n);var i=n.directive;if("string"!=typeof i)break;"use strict"===i?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,a.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(r,a.Messages.IllegalLanguageModeDirective)):!e&&r.octal&&(e=r)}return t},e.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===e.value}return!1},e.prototype.parseGetterMethod=function(){var e=this.createNode(),t=!1,r=this.context.allowYield;this.context.allowYield=!t;var n=this.parseFormalParameters();n.params.length>0&&this.tolerateError(a.Messages.BadGetterArity);var i=this.parsePropertyMethod(n);return this.context.allowYield=r,this.finalize(e,new s.FunctionExpression(null,n.params,i,t))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,r=this.context.allowYield;this.context.allowYield=!t;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(a.Messages.BadSetterArity):n.params[0]instanceof s.RestElement&&this.tolerateError(a.Messages.BadSetterRestParameter);var i=this.parsePropertyMethod(n);return this.context.allowYield=r,this.finalize(e,new s.FunctionExpression(null,n.params,i,t))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=!0,r=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var i=this.parsePropertyMethod(n);return this.context.allowYield=r,this.finalize(e,new s.FunctionExpression(null,n.params,i,t))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,r=!1;if(!this.hasLineTerminator){var n=this.context.allowYield;this.context.allowYield=!1,(r=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=n}return this.finalize(e,new s.YieldExpression(t,r))},e.prototype.parseClassElement=function(e){var t=this.lookahead,r=this.createNode(),n="",i=null,o=null,u=!1,c=!1,l=!1,h=!1;if(this.match("*"))this.nextToken();else if(u=this.match("["),"static"===(i=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,l=!0,u=this.match("["),this.match("*")?this.nextToken():i=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var p=this.lookahead.value;":"!==p&&"("!==p&&"*"!==p&&(h=!0,t=this.lookahead,i=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,a.Messages.ConstructorIsAsync))}var d=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&d?(n="get",u=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,o=this.parseGetterMethod()):"set"===t.value&&d&&(n="set",u=this.match("["),i=this.parseObjectPropertyKey(),o=this.parseSetterMethod()):7===t.type&&"*"===t.value&&d&&(n="init",u=this.match("["),i=this.parseObjectPropertyKey(),o=this.parseGeneratorMethod(),c=!0),!n&&i&&this.match("(")&&(n="init",o=h?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),c=!0),n||this.throwUnexpectedToken(this.lookahead),"init"===n&&(n="method"),!u&&(l&&this.isPropertyKey(i,"prototype")&&this.throwUnexpectedToken(t,a.Messages.StaticPrototype),!l&&this.isPropertyKey(i,"constructor")&&(("method"!==n||!c||o&&o.generator)&&this.throwUnexpectedToken(t,a.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,a.Messages.DuplicateConstructor):e.value=!0,n="constructor")),this.finalize(r,new s.MethodDefinition(i,u,o,n,l))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new s.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),r=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var a=this.parseClassBody();return this.context.strict=r,this.finalize(t,new s.ClassDeclaration(n,i,a))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=3===this.lookahead.type?this.parseVariableIdentifier():null,n=null;this.matchKeyword("extends")&&(this.nextToken(),n=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=t,this.finalize(e,new s.ClassExpression(r,n,i))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new s.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(a.Messages.InvalidModuleSpecifier);var t=this.nextToken(),r=this.getTokenRaw(t);return this.finalize(e,new s.Literal(t.value,r))},e.prototype.parseImportSpecifier=function(){var e,t,r=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(r,new s.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new s.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(a.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new s.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(a.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var r=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?r=r.concat(this.parseNamedImports()):this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(r.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?r.push(this.parseImportNamespaceSpecifier()):this.match("{")?r=r.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var n=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new s.ImportDeclaration(r,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),r=t;return this.matchContextualKeyword("as")&&(this.nextToken(),r=this.parseIdentifierName()),this.finalize(e,new s.ExportSpecifier(t,r))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(a.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var r=this.parseFunctionDeclaration(!0);e=this.finalize(t,new s.ExportDefaultDeclaration(r))}else if(this.matchKeyword("class")){var r=this.parseClassDeclaration(!0);e=this.finalize(t,new s.ExportDefaultDeclaration(r))}else if(this.matchContextualKeyword("async")){var r=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();e=this.finalize(t,new s.ExportDefaultDeclaration(r))}else{this.matchContextualKeyword("from")&&this.throwError(a.Messages.UnexpectedToken,this.lookahead.value);var r=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),e=this.finalize(t,new s.ExportDefaultDeclaration(r))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var n=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new s.ExportAllDeclaration(i))}else if(4===this.lookahead.type){var r=void 0;switch(this.lookahead.value){case"let":case"const":r=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":r=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new s.ExportNamedDeclaration(r,[],null))}else if(this.matchAsyncFunction()){var r=this.parseFunctionDeclaration();e=this.finalize(t,new s.ExportNamedDeclaration(r,[],null))}else{var o=[],u=null,c=!1;for(this.expect("{");!this.match("}");)c=c||this.matchKeyword("default"),o.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),u=this.parseModuleSpecifier(),this.consumeSemicolon();else if(c){var n=this.lookahead.value?a.Messages.UnexpectedToken:a.Messages.MissingFromClause;this.throwError(n,this.lookahead.value)}else this.consumeSemicolon();e=this.finalize(t,new s.ExportNamedDeclaration(null,o,u))}return e},e}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorHandler=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(this.tolerant)this.recordError(e);else throw e},e.prototype.constructError=function(e,t){var r=Error(e);try{throw r}catch(e){Object.create&&Object.defineProperty&&Object.defineProperty(r=Object.create(e),"column",{value:t})}return r},e.prototype.createError=function(e,t,r,n){var i="Line "+t+": "+n,a=this.constructError(i,r);return a.index=e,a.lineNumber=t,a.description=n,a},e.prototype.throwError=function(e,t,r,n){throw this.createError(e,t,r,n)},e.prototype.tolerateError=function(e,t,r,n){var i=this.createError(e,t,r,n);if(this.tolerant)this.recordError(i);else throw i},e}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(4),a=r(11);function s(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function o(e){return"01234567".indexOf(e)}t.Scanner=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=+(e.length>0),this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=a.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=a.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,r,n=[];for(this.trackComment&&(n=[],t=this.index-e,r={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var a=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(a)){if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart-1};var s={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:r};n.push(s)}return 13===a&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,n}}if(this.trackComment){r.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:r};n.push(s)}return n},e.prototype.skipMultiLineComment=function(){var e,t,r=[];for(this.trackComment&&(r=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(n))13===n&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===n){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var a={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};r.push(a)}return r}++this.index}else++this.index}if(this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var a={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t};r.push(a)}return this.tolerateUnexpectedToken(),r},e.prototype.scanComments=function(){this.trackComment&&(e=[]);for(var e,t=0===this.index;!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(r))++this.index;else if(i.Character.isLineTerminator(r))++this.index,13===r&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===r)if(47===(r=this.source.charCodeAt(this.index+1))){this.index+=2;var n=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(n)),t=!0}else if(42===r){this.index+=2;var n=this.skipMultiLineComment();this.trackComment&&(e=e.concat(n))}else break;else if(t&&45===r)if(45===this.source.charCodeAt(this.index+1)&&62===this.source.charCodeAt(this.index+2)){this.index+=3;var n=this.skipSingleLineComment(3);this.trackComment&&(e=e.concat(n))}else break;else if(60!==r||this.isModule)break;else if("!--"===this.source.slice(this.index+1,this.index+4)){this.index+=4;var n=this.skipSingleLineComment(4);this.trackComment&&(e=e.concat(n))}else break}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var r=this.source.charCodeAt(e+1);r>=56320&&r<=57343&&(t=(t-55296)*1024+r-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,r=0,n=0;n<t;++n)if(!(!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index))))return null;else r=16*r+s(this.source[this.index++]);return String.fromCharCode(r)},e.prototype.scanUnicodeCodePointEscape=function(){var e=this.source[this.index],t=0;for("}"===e&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index++],i.Character.isHexDigit(e.charCodeAt(0)));)t=16*t+s(e);return(t>1114111||"}"!==e)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t||t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(i.Character.isIdentifierPart(t))++this.index;else break}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),r=i.Character.fromCodePoint(t);for(this.index+=r.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),r=e);!this.eof()&&(t=this.codePointAt(this.index),i.Character.isIdentifierPart(t));)r+=e=i.Character.fromCodePoint(t),this.index+=e.length,92===t&&(r=r.substr(0,r.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),r+=e);return r},e.prototype.octalToDecimal=function(e){var t="0"!==e,r=o(e);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,r=8*r+o(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(r=8*r+o(this.source[this.index++]))),{code:r,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,r=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===r.length?3:this.isKeyword(r)?4:"null"===r?5:"true"===r||"false"===r?1:3)&&t+r.length!==this.index){var n=this.index;this.index=t,this.tolerateUnexpectedToken(a.Messages.InvalidEscapedReservedWord),this.index=n}return{type:e,value:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,r="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)r+=this.source[this.index++];return 0===r.length&&this.throwUnexpectedToken(),!this.eof()&&(t=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(t)||i.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(r,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var r="",n=!1;for(i.Character.isOctalDigit(e.charCodeAt(0))?(n=!0,r="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];return n||0!==r.length||this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(r,8),octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e<this.length;++e){var t=this.source[e];if("8"===t||"9"===t)return!1;if(!i.Character.isOctalDigit(t.charCodeAt(0)))break}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];n.assert(i.Character.isDecimalDigit(t.charCodeAt(0))||"."===t,"Numeric literal must start with a decimal digit or a decimal point");var r="";if("."!==t){if(r=this.source[this.index++],t=this.source[this.index],"0"===r){if("x"===t||"X"===t)return++this.index,this.scanHexLiteral(e);if("b"===t||"B"===t)return++this.index,this.scanBinaryLiteral(e);if("o"===t||"O"===t||t&&i.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];t=this.source[this.index]}if("."===t){for(r+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];t=this.source[this.index]}if("e"===t||"E"===t)if(r+=this.source[this.index++],("+"===(t=this.source[this.index])||"-"===t)&&(r+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)r+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(r),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanStringLiteral=function(){var e=this.index,t=this.source[e];n.assert("'"===t||'"'===t,"String literal must starts with a quote"),++this.index;for(var r=!1,s="";!this.eof();){var o=this.source[this.index++];if(o===t){t="";break}if("\\"===o)if((o=this.source[this.index++])&&i.Character.isLineTerminator(o.charCodeAt(0)))++this.lineNumber,"\r"===o&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(o){case"u":if("{"===this.source[this.index])++this.index,s+=this.scanUnicodeCodePointEscape();else{var u=this.scanHexEscape(o);null===u&&this.throwUnexpectedToken(),s+=u}break;case"x":var c=this.scanHexEscape(o);null===c&&this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence),s+=c;break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+=" ";break;case"b":s+="\b";break;case"f":s+="\f";break;case"v":s+="\v";break;case"8":case"9":s+=o,this.tolerateUnexpectedToken();break;default:if(o&&i.Character.isOctalDigit(o.charCodeAt(0))){var l=this.octalToDecimal(o);r=l.octal||r,s+=String.fromCharCode(l.code)}else s+=o}else if(i.Character.isLineTerminator(o.charCodeAt(0)))break;else s+=o}return""!==t&&(this.index=e,this.throwUnexpectedToken()),{type:8,value:s,octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanTemplate=function(){var e="",t=!1,r=this.index,n="`"===this.source[r],s=!1,o=2;for(++this.index;!this.eof();){var u=this.source[this.index++];if("`"===u){o=1,s=!0,t=!0;break}if("$"===u){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,t=!0;break}e+=u}else if("\\"===u)if(u=this.source[this.index++],i.Character.isLineTerminator(u.charCodeAt(0)))++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(u){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+=" ";break;case"u":if("{"===this.source[this.index])++this.index,e+=this.scanUnicodeCodePointEscape();else{var c=this.index,l=this.scanHexEscape(u);null!==l?e+=l:(this.index=c,e+=u)}break;case"x":var h=this.scanHexEscape(u);null===h&&this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence),e+=h;break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:"0"===u?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(a.Messages.TemplateOctalLiteral),e+="\0"):i.Character.isOctalDigit(u.charCodeAt(0))?this.throwUnexpectedToken(a.Messages.TemplateOctalLiteral):e+=u}else i.Character.isLineTerminator(u.charCodeAt(0))?(++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,e+="\n"):e+=u}return t||this.throwUnexpectedToken(),n||this.curlyStack.pop(),{type:10,value:this.source.slice(r+1,this.index-o),cooked:e,head:n,tail:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:r,end:this.index}},e.prototype.testRegExp=function(e,t){var r="",n=e,i=this;t.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,n){var s=parseInt(t||n,16);return(s>1114111&&i.throwUnexpectedToken(a.Messages.InvalidRegExp),s<=65535)?String.fromCharCode(s):r}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,r));try{RegExp(n)}catch(e){this.throwUnexpectedToken(a.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];n.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],r=!1,s=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(a.Messages.UnterminatedRegExp);else if(r)"]"===e&&(r=!1);else if("/"===e){s=!0;break}else"["===e&&(r=!0);return s||this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="",t="";!this.eof();){var r=this.source[this.index];if(!i.Character.isIdentifierPart(r.charCodeAt(0)))break;if(++this.index,"\\"!==r||this.eof())t+=r,e+=r;else if("u"===(r=this.source[this.index])){++this.index;var n=this.index,a=this.scanHexEscape("u");if(null!==a)for(t+=a,e+="\\u";n<this.index;++n)e+=this.source[n];else this.index=n,t+="u",e+="\\u";this.tolerateUnexpectedToken()}else e+="\\",this.tolerateUnexpectedToken()}return t},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),r=this.scanRegExpFlags(),n=this.testRegExp(t,r);return{type:9,value:"",pattern:t,flags:r,regex:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(e)?this.scanIdentifier():40===e||41===e||59===e?this.scanPunctuator():39===e||34===e?this.scanStringLiteral():46===e?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(e)?this.scanNumericLiteral():96===e||125===e&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():e>=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}()},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(10),i=r(12),a=r(13),s=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var r=this.values[this.paren-1];t="if"===r||"while"===r||"for"===r||"with"===r;break;case"}":if(t=!1,"function"===this.values[this.curly-3]){var n=this.values[this.curly-4];t=!!n&&!this.beforeFunctionExpression(n)}else if("function"===this.values[this.curly-4]){var n=this.values[this.curly-5];t=!n||!this.beforeFunctionExpression(n)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}();t.Tokenizer=function(){function e(e,t){this.errorHandler=new n.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new s}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var r=e[t],n=this.scanner.source.slice(r.slice[0],r.slice[1]),i={type:r.multiLine?"BlockComment":"LineComment",value:n};this.trackRange&&(i.range=r.range),this.trackLoc&&(i.loc=r.loc),this.buffer.push(i)}if(!this.scanner.eof()){var s=void 0;this.trackLoc&&(s={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var o="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(o);var u={type:a.TokenName[o.type],value:this.scanner.source.slice(o.start,o.end)};this.trackRange&&(u.range=[o.start,o.end]),this.trackLoc&&(s.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},u.loc=s),9===o.type&&(u.regex={pattern:o.pattern,flags:o.flags}),this.buffer.push(u)}}return this.buffer.shift()},e}()}])})},912815,(e,t,r)=>{"use strict";var n;try{e.t,n=e.r(49482)}catch(e){}function i(e){if(null===e)return!1;try{var t="("+e+")",r=n.parse(t,{range:!0});if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"ArrowFunctionExpression"!==r.body[0].expression.type&&"FunctionExpression"!==r.body[0].expression.type)return!1;return!0}catch(e){return!1}}function a(e){var t,r="("+e+")",i=n.parse(r,{range:!0}),a=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw Error("Failed to resolve function");return(i.body[0].expression.params.forEach(function(e){a.push(e.name)}),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type)?Function(a,r.slice(t[0]+1,t[1]-1)):Function(a,"return "+r.slice(t[0],t[1]))}function s(e){return e.toString()}function o(e){return"[object Function]"===Object.prototype.toString.call(e)}t.exports=new(e.r(544710))("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:i,construct:a,predicate:o,represent:s})},203262,(e,t,r)=>{"use strict";var n=e.r(754772);t.exports=n.DEFAULT=new n({include:[e.r(753270)],explicit:[e.r(336881),e.r(929294),e.r(912815)]})},236589,(e,t,r)=>{"use strict";var n=e.r(323187);function i(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}i.prototype.getSnippet=function(e,t){var r,i,a,s,o;if(!this.buffer)return null;for(e=e||4,t=t||75,r="",i=this.position;i>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){r=" ... ",i+=5;break}for(a="",s=this.position;s<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(s));)if((s+=1)-this.position>t/2-1){a=" ... ",s-=5;break}return o=this.buffer.slice(i,s),n.repeat(" ",e)+r+o+a+"\n"+n.repeat(" ",e+this.position-i+r.length)+"^"},i.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),!e&&(t=this.getSnippet())&&(r+=":\n"+t),r},t.exports=i},736672,(e,t,r)=>{"use strict";var n=e.r(323187),i=e.r(828942),a=e.r(236589),s=e.r(753270),o=e.r(203262),u=Object.prototype.hasOwnProperty,c=1,l=2,h=3,p=4,d=1,f=2,m=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y=/[\x85\u2028\u2029]/,x=/[,\[\]\{\}]/,v=/^(?:!|!!|![a-z\-]+!)$/i,b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function E(e){return Object.prototype.toString.call(e)}function D(e){return 10===e||13===e}function S(e){return 9===e||32===e}function w(e){return 9===e||32===e||10===e||13===e}function C(e){return 44===e||91===e||93===e||123===e||125===e}function A(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function _(e){return 120===e?2:117===e?4:8*(85===e)}function T(e){return 48<=e&&e<=57?e-48:-1}function k(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function R(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function P(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var O=Array(256),F=Array(256),N=0;N<256;N++)O[N]=+!!k(N),F[N]=k(N);function I(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||o,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.totalMergeKeys=0,this.documents=[]}function M(e,t){return new i(t,new a(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function B(e,t){throw M(e,t)}function j(e,t){e.onWarning&&e.onWarning.call(null,M(e,t))}var L={YAML:function(e,t,r){var n,i,a;null!==e.version&&B(e,"duplication of %YAML directive"),1!==r.length&&B(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&B(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),a=parseInt(n[2],10),1!==i&&B(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&j(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;2!==r.length&&B(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],v.test(n)||B(e,"ill-formed tag handle (first argument) of the TAG directive"),u.call(e.tagMap,n)&&B(e,'there is a previously declared suffix for "'+n+'" tag handle'),b.test(i)||B(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function U(e,t,r,n){var i,a,s,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,a=o.length;i<a;i+=1)9===(s=o.charCodeAt(i))||32<=s&&s<=1114111||B(e,"expected valid JSON character");else g.test(o)&&B(e,"the stream contains non-printable characters");e.result+=o}}function X(e,t,r,i){var a,s,o,c;for(n.isObject(r)||B(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,c=(a=Object.keys(r)).length;o<c;o+=1)s=a[o],-1!==e.maxTotalMergeKeys&&++e.totalMergeKeys>e.maxTotalMergeKeys&&B(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),u.call(t,s)||(P(t,s,r[s]),i[s]=!0)}function $(e,t,r,n,i,a,s,o){var c,l;if(Array.isArray(i))for(c=0,l=(i=Array.prototype.slice.call(i)).length;c<l;c+=1)Array.isArray(i[c])&&B(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===E(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===E(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(a))for(c=0,l=a.length;c<l;c+=1)X(e,t,a[c],r);else X(e,t,a,r);else!e.json&&!u.call(r,i)&&u.call(t,i)&&(e.line=s||e.line,e.position=o||e.position,B(e,"duplicated mapping key")),P(t,i,a),delete r[i];return t}function z(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):B(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function H(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;S(i);)i=e.input.charCodeAt(++e.position);if(t&&35===i)do i=e.input.charCodeAt(++e.position);while(10!==i&&13!==i&&0!==i)if(D(i))for(z(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&j(e,"deficient indentation"),n}function G(e){var t,r=e.position;return!!((45===(t=e.input.charCodeAt(r))||46===t)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,0===(t=e.input.charCodeAt(r))||w(t)))||!1}function J(e,t){1===t?e.result+=" ":t>1&&(e.result+=n.repeat("\n",t-1))}function V(e,t,r){var n,i,a,s,o,u,c,l,h=e.kind,p=e.result;if(w(l=e.input.charCodeAt(e.position))||C(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l||(63===l||45===l)&&(w(n=e.input.charCodeAt(e.position+1))||r&&C(n)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,s=!1;0!==l;){if(58===l){if(w(n=e.input.charCodeAt(e.position+1))||r&&C(n))break}else if(35===l){if(w(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&G(e)||r&&C(l))break;else if(D(l)){if(o=e.line,u=e.lineStart,c=e.lineIndent,H(e,!1,-1),e.lineIndent>=t){s=!0,l=e.input.charCodeAt(e.position);continue}e.position=a,e.line=o,e.lineStart=u,e.lineIndent=c;break}s&&(U(e,i,a,!1),J(e,e.line-o),i=a=e.position,s=!1),S(l)||(a=e.position+1),l=e.input.charCodeAt(++e.position)}return U(e,i,a,!1),!!e.result||(e.kind=h,e.result=p,!1)}function q(e,t){var r,n,i;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(U(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else D(r)?(U(e,n,i,!0),J(e,H(e,!1,t)),n=i=e.position):e.position===e.lineStart&&G(e)?B(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);B(e,"unexpected end of the stream within a single quoted scalar")}function W(e,t){var r,n,i,a,s,o;if(34!==(o=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(o=e.input.charCodeAt(e.position));)if(34===o)return U(e,r,e.position,!0),e.position++,!0;else if(92===o){if(U(e,r,e.position,!0),D(o=e.input.charCodeAt(++e.position)))H(e,!1,t);else if(o<256&&O[o])e.result+=F[o],e.position++;else if((s=_(o))>0){for(i=s,a=0;i>0;i--)(s=A(o=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+s:B(e,"expected hexadecimal character");e.result+=R(a),e.position++}else B(e,"unknown escape sequence");r=n=e.position}else D(o)?(U(e,r,n,!0),J(e,H(e,!1,t)),r=n=e.position):e.position===e.lineStart&&G(e)?B(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);B(e,"unexpected end of the stream within a double quoted scalar")}function K(e,t){var r,n,i,a,s,o,u,l,h,p,d=!0,f=e.tag,m=e.anchor,g={};if(91===(p=e.input.charCodeAt(e.position)))i=93,o=!1,n=[];else{if(123!==p)return!1;i=125,o=!0,n={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=n),p=e.input.charCodeAt(++e.position);0!==p;){if(H(e,!0,t),(p=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=f,e.anchor=m,e.kind=o?"mapping":"sequence",e.result=n,!0;d||B(e,"missed comma between flow collection entries"),l=u=h=null,a=s=!1,63===p&&w(e.input.charCodeAt(e.position+1))&&(a=s=!0,e.position++,H(e,!0,t)),r=e.line,en(e,t,c,!1,!0),l=e.tag,u=e.result,H(e,!0,t),p=e.input.charCodeAt(e.position),(s||e.line===r)&&58===p&&(a=!0,p=e.input.charCodeAt(++e.position),H(e,!0,t),en(e,t,c,!1,!0),h=e.result),o?$(e,n,g,l,u,h):a?n.push($(e,null,g,l,u,h)):n.push(u),H(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(d=!0,p=e.input.charCodeAt(++e.position)):d=!1}B(e,"unexpected end of the stream within a flow collection")}function Y(e,t){var r,i,a,s,o=d,u=!1,c=!1,l=t,h=0,p=!1;if(124===(s=e.input.charCodeAt(e.position)))i=!1;else{if(62!==s)return!1;i=!0}for(e.kind="scalar",e.result="";0!==s;)if(43===(s=e.input.charCodeAt(++e.position))||45===s)d===o?o=43===s?m:f:B(e,"repeat of a chomping mode identifier");else if((a=T(s))>=0)0===a?B(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?B(e,"repeat of an indentation width identifier"):(l=t+a-1,c=!0);else break;if(S(s)){do s=e.input.charCodeAt(++e.position);while(S(s))if(35===s)do s=e.input.charCodeAt(++e.position);while(!D(s)&&0!==s)}for(;0!==s;){for(z(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!c||e.lineIndent<l)&&32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>l&&(l=e.lineIndent),D(s)){h++;continue}if(e.lineIndent<l){o===m?e.result+=n.repeat("\n",u?1+h:h):o===d&&u&&(e.result+="\n");break}for(i?S(s)?(p=!0,e.result+=n.repeat("\n",u?1+h:h)):p?(p=!1,e.result+=n.repeat("\n",h+1)):0===h?u&&(e.result+=" "):e.result+=n.repeat("\n",h):e.result+=n.repeat("\n",u?1+h:h),u=!0,c=!0,h=0,r=e.position;!D(s)&&0!==s;)s=e.input.charCodeAt(++e.position);U(e,r,e.position,!1)}return!0}function Z(e,t){var r,n,i=e.tag,a=e.anchor,s=[],o=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&45===n&&w(e.input.charCodeAt(e.position+1));){if(o=!0,e.position++,H(e,!0,-1)&&e.lineIndent<=t){s.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,en(e,t,h,!1,!0),s.push(e.result),H(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)B(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!o&&(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,!0)}function Q(e,t,r){var n,i,a,s,o,u=e.tag,c=e.anchor,h={},d={},f=null,m=null,g=null,y=!1,x=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),o=e.input.charCodeAt(e.position);0!==o;){if(n=e.input.charCodeAt(e.position+1),a=e.line,s=e.position,(63===o||58===o)&&w(n))63===o?(y&&($(e,h,d,f,m,null),f=m=g=null),x=!0,y=!0,i=!0):y?(y=!1,i=!0):B(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,o=n;else if(en(e,r,l,!1,!0))if(e.line===a){for(o=e.input.charCodeAt(e.position);S(o);)o=e.input.charCodeAt(++e.position);if(58===o)w(o=e.input.charCodeAt(++e.position))||B(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&($(e,h,d,f,m,null),f=m=g=null),x=!0,y=!1,i=!1,f=e.tag,m=e.result;else{if(!x)return e.tag=u,e.anchor=c,!0;B(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return e.tag=u,e.anchor=c,!0;B(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else break;if((e.line===a||e.lineIndent>t)&&(en(e,t,p,!0,i)&&(y?m=e.result:g=e.result),y||($(e,h,d,f,m,g,a,s),f=m=g=null),H(e,!0,-1),o=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==o)B(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&$(e,h,d,f,m,null),x&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=h),x}function ee(e){var t,r,n,i,a=!1,s=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&B(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(a=!0,i=e.input.charCodeAt(++e.position)):33===i?(s=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",t=e.position,a){do i=e.input.charCodeAt(++e.position);while(0!==i&&62!==i)e.position<e.length?(n=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):B(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!w(i);)33===i&&(s?B(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),v.test(r)||B(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),x.test(n)&&B(e,"tag suffix cannot contain flow indicator characters")}return n&&!b.test(n)&&B(e,"tag name cannot contain such characters: "+n),a?e.tag=n:u.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:B(e,'undeclared tag handle "'+r+'"'),!0}function et(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&B(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!w(r)&&!C(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&B(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function er(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!w(n)&&!C(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&B(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),u.call(e.anchorMap,r)||B(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],H(e,!0,-1),!0}function en(e,t,r,n,i){var a,s,o,d,f,m,g,y,x=1,v=!1,b=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=p===r||h===r,n&&H(e,!0,-1)&&(v=!0,e.lineIndent>t?x=1:e.lineIndent===t?x=0:e.lineIndent<t&&(x=-1)),1===x)for(;ee(e)||et(e);)H(e,!0,-1)?(v=!0,o=a,e.lineIndent>t?x=1:e.lineIndent===t?x=0:e.lineIndent<t&&(x=-1)):o=!1;if(o&&(o=v||i),(1===x||p===r)&&(g=c===r||l===r?t:t+1,y=e.position-e.lineStart,1===x?o&&(Z(e,y)||Q(e,y,g))||K(e,g)?b=!0:(s&&Y(e,g)||q(e,g)||W(e,g)?b=!0:er(e)?(b=!0,(null!==e.tag||null!==e.anchor)&&B(e,"alias node should not have any properties")):V(e,g,c===r)&&(b=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===x&&(b=o&&Z(e,y))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&B(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,f=e.implicitTypes.length;d<f;d+=1)if((m=e.implicitTypes[d]).resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else u.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&m.kind!==e.kind&&B(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):B(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):B(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||b}function ei(e){var t,r,n,i,a=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(H(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===i);){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!w(i);)i=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&B(e,"directive name must not be less than one character in length");0!==i;){for(;S(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!D(i))break}if(D(i))break;for(t=e.position;0!==i&&!w(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&z(e),u.call(L,r)?L[r](e,r,n):j(e,'unknown document directive "'+r+'"')}if(H(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,H(e,!0,-1)):s&&B(e,"directives end mark is expected"),en(e,e.lineIndent-1,p,!1,!0),H(e,!0,-1),e.checkLineBreaks&&y.test(e.input.slice(a,e.position))&&j(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&G(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,H(e,!0,-1));return}e.position<e.length-1&&B(e,"end of the stream or a document separator is expected")}function ea(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new I(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,B(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ei(r);return r.documents}function es(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=ea(e,r);if("function"!=typeof t)return n;for(var i=0,a=n.length;i<a;i+=1)t(n[i])}function eo(e,t){var r=ea(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new i("expected a single document in the stream, but found more")}}function eu(e,t,r){return"object"==typeof t&&null!==t&&void 0===r&&(r=t,t=null),es(e,t,n.extend({schema:s},r))}function ec(e,t){return eo(e,n.extend({schema:s},t))}t.exports.loadAll=es,t.exports.load=eo,t.exports.safeLoadAll=eu,t.exports.safeLoad=ec},899732,(e,t,r)=>{"use strict";var n=e.r(323187),i=e.r(828942),a=e.r(203262),s=e.r(753270),o=Object.prototype.toString,u=Object.prototype.hasOwnProperty,c=9,l=10,h=13,p=32,d=33,f=34,m=35,g=37,y=38,x=39,v=42,b=44,E=45,D=58,S=61,w=62,C=63,A=64,_=91,T=93,k=96,R=123,P=124,O=125,F={};F[0]="\\0",F[7]="\\a",F[8]="\\b",F[9]="\\t",F[10]="\\n",F[11]="\\v",F[12]="\\f",F[13]="\\r",F[27]="\\e",F[34]='\\"',F[92]="\\\\",F[133]="\\N",F[160]="\\_",F[8232]="\\L",F[8233]="\\P";var N=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function I(e,t){var r,n,i,a,s,o,c;if(null===t)return{};for(i=0,r={},a=(n=Object.keys(t)).length;i<a;i+=1)o=String(t[s=n[i]]),"!!"===s.slice(0,2)&&(s="tag:yaml.org,2002:"+s.slice(2)),(c=e.compiledTypeMap.fallback[s])&&u.call(c.styleAliases,o)&&(o=c.styleAliases[o]),r[s]=o;return r}function M(e){var t,r,a;if(t=e.toString(16).toUpperCase(),e<=255)r="x",a=2;else if(e<=65535)r="u",a=4;else if(e<=0xffffffff)r="U",a=8;else throw new i("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+n.repeat("0",a-t.length)+t}function B(e){this.schema=e.schema||a,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=I(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function j(e,t){for(var r,i=n.repeat(" ",t),a=0,s=-1,o="",u=e.length;a<u;)-1===(s=e.indexOf("\n",a))?(r=e.slice(a),a=u):(r=e.slice(a,s+1),a=s+1),r.length&&"\n"!==r&&(o+=i),o+=r;return o}function L(e,t){return"\n"+n.repeat(" ",e.indent*t)}function U(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}function X(e){return e===p||e===c}function $(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function z(e){return $(e)&&!X(e)&&65279!==e&&e!==h&&e!==l}function H(e,t){return $(e)&&65279!==e&&e!==b&&e!==_&&e!==T&&e!==R&&e!==O&&e!==D&&(e!==m||t&&z(t))}function G(e){return $(e)&&65279!==e&&!X(e)&&e!==E&&e!==C&&e!==D&&e!==b&&e!==_&&e!==T&&e!==R&&e!==O&&e!==m&&e!==y&&e!==v&&e!==d&&e!==P&&e!==S&&e!==w&&e!==x&&e!==f&&e!==g&&e!==A&&e!==k}function J(e){return/^\n* /.test(e)}var V=1,q=2,W=3,K=4,Y=5;function Z(e,t,r,n,i){var a,s,o,u=!1,c=!1,h=-1!==n,p=-1,d=G(e.charCodeAt(0))&&!X(e.charCodeAt(e.length-1));if(t)for(a=0;a<e.length;a++){if(!$(s=e.charCodeAt(a)))return Y;o=a>0?e.charCodeAt(a-1):null,d=d&&H(s,o)}else{for(a=0;a<e.length;a++){if((s=e.charCodeAt(a))===l)u=!0,h&&(c=c||a-p-1>n&&" "!==e[p+1],p=a);else if(!$(s))return Y;o=a>0?e.charCodeAt(a-1):null,d=d&&H(s,o)}c=c||h&&a-p-1>n&&" "!==e[p+1]}return u||c?r>9&&J(e)?Y:c?K:W:d&&!i(e)?V:q}function Q(e,t,r,n){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==N.indexOf(t))return"'"+t+"'";var a=e.indent*Math.max(1,r),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a);function o(t){return U(e,t)}switch(Z(t,n||e.flowLevel>-1&&r>=e.flowLevel,e.indent,s,o)){case V:return t;case q:return"'"+t.replace(/'/g,"''")+"'";case W:return"|"+ee(t,e.indent)+et(j(t,a));case K:return">"+ee(t,e.indent)+et(j(er(t,s),a));case Y:return'"'+ei(t,s)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function ee(e,t){var r=J(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function et(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function er(e,t){for(var r,n,i=/(\n+)([^\n]*)/g,a=function(){var r=e.indexOf("\n");return i.lastIndex=r=-1!==r?r:e.length,en(e.slice(0,r),t)}(),s="\n"===e[0]||" "===e[0];n=i.exec(e);){var o=n[1],u=n[2];r=" "===u[0],a+=o+(s||r||""===u?"":"\n")+en(u,t),s=r}return a}function en(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,a=0,s=0,o=0,u="";r=i.exec(e);)(o=r.index)-a>t&&(n=s>a?s:o,u+="\n"+e.slice(a,n),a=n+1),s=o;return u+="\n",e.length-a>t&&s>a?u+=e.slice(a,s)+"\n"+e.slice(s+1):u+=e.slice(a),u.slice(1)}function ei(e){for(var t,r,n,i="",a=0;a<e.length;a++){if((t=e.charCodeAt(a))>=55296&&t<=56319&&(r=e.charCodeAt(a+1))>=56320&&r<=57343){i+=M((t-55296)*1024+r-56320+65536),a++;continue}i+=!(n=F[t])&&$(t)?e[a]:n||M(t)}return i}function ea(e,t,r){var n,i,a="",s=e.tag;for(n=0,i=r.length;n<i;n+=1)el(e,t,r[n],!1,!1)&&(0!==n&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}function es(e,t,r,n){var i,a,s="",o=e.tag;for(i=0,a=r.length;i<a;i+=1)el(e,t+1,r[i],!0,!0)&&(n&&0===i||(s+=L(e,t)),e.dump&&l===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=o,e.dump=s||"[]"}function eo(e,t,r){var n,i,a,s,o,u="",c=e.tag,l=Object.keys(r);for(n=0,i=l.length;n<i;n+=1)o="",0!==n&&(o+=", "),e.condenseFlow&&(o+='"'),s=r[a=l[n]],el(e,t,a,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),el(e,t,s,!1,!1)&&(o+=e.dump,u+=o));e.tag=c,e.dump="{"+u+"}"}function eu(e,t,r,n){var a,s,o,u,c,h,p="",d=e.tag,f=Object.keys(r);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(a=0,s=f.length;a<s;a+=1)h="",n&&0===a||(h+=L(e,t)),u=r[o=f[a]],el(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&l===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,c&&(h+=L(e,t)),el(e,t+1,u,!0,c)&&(e.dump&&l===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,p+=h));e.tag=d,e.dump=p||"{}"}function ec(e,t,r){var n,a,s,c,l,h;for(s=0,c=(a=r?e.explicitTypes:e.implicitTypes).length;s<c;s+=1)if(((l=a[s]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof t&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(e.tag=r?l.tag:"?",l.represent){if(h=e.styleMap[l.tag]||l.defaultStyle,"[object Function]"===o.call(l.represent))n=l.represent(t,h);else if(u.call(l.represent,h))n=l.represent[h](t,h);else throw new i("!<"+l.tag+'> tag resolver accepts not "'+h+'" style');e.dump=n}return!0}return!1}function el(e,t,r,n,a,s){e.tag=null,e.dump=r,ec(e,r,!1)||ec(e,r,!0);var u=o.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var c,l,h="[object Object]"===u||"[object Array]"===u;if(h&&(l=-1!==(c=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||l||2!==e.indent&&t>0)&&(a=!1),l&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(h&&l&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),"[object Object]"===u)n&&0!==Object.keys(e.dump).length?(eu(e,t,e.dump,a),l&&(e.dump="&ref_"+c+e.dump)):(eo(e,t,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump));else if("[object Array]"===u){var p=e.noArrayIndent&&t>0?t-1:t;n&&0!==e.dump.length?(es(e,p,e.dump,a),l&&(e.dump="&ref_"+c+e.dump)):(ea(e,p,e.dump),l&&(e.dump="&ref_"+c+" "+e.dump))}else if("[object String]"===u)"?"!==e.tag&&Q(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+u)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function eh(e,t){var r,n,i=[],a=[];for(ep(e,i,a),r=0,n=a.length;r<n;r+=1)t.duplicates.push(i[a[r]]);t.usedDuplicates=Array(n)}function ep(e,t,r){var n,i,a;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)ep(e[i],t,r);else for(i=0,a=(n=Object.keys(e)).length;i<a;i+=1)ep(e[n[i]],t,r)}function ed(e,t){var r=new B(t=t||{});return(r.noRefs||eh(e,r),el(r,0,e,!0,!0))?r.dump+"\n":""}function ef(e,t){return ed(e,n.extend({schema:s},t))}t.exports.dump=ed,t.exports.safeDump=ef},785255,(e,t,r)=>{"use strict";var n=e.r(736672),i=e.r(899732);function a(e){return function(){throw Error("Function "+e+" is deprecated and cannot be used.")}}t.exports.Type=e.r(544710),t.exports.Schema=e.r(754772),t.exports.FAILSAFE_SCHEMA=e.r(885516),t.exports.JSON_SCHEMA=e.r(321057),t.exports.CORE_SCHEMA=e.r(809541),t.exports.DEFAULT_SAFE_SCHEMA=e.r(753270),t.exports.DEFAULT_FULL_SCHEMA=e.r(203262),t.exports.load=n.load,t.exports.loadAll=n.loadAll,t.exports.safeLoad=n.safeLoad,t.exports.safeLoadAll=n.safeLoadAll,t.exports.dump=i.dump,t.exports.safeDump=i.safeDump,t.exports.YAMLException=e.r(828942),t.exports.MINIMAL_SCHEMA=e.r(885516),t.exports.SAFE_SCHEMA=e.r(753270),t.exports.DEFAULT_SCHEMA=e.r(203262),t.exports.scan=a("scan"),t.exports.parse=a("parse"),t.exports.compose=a("compose"),t.exports.addConstructor=a("addConstructor")},792147,(e,t,r)=>{"use strict";t.exports=e.r(785255)},897203,(__turbopack_context__,module,exports)=>{"use strict";let yaml=__turbopack_context__.r(792147),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){let r=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,r.replacer,r.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(err){if(!1!==wrap&&/(unexpected|identifier)/i.test(err.message))return parse(str,options,!1);throw SyntaxError(err)}},stringify:function(){throw Error("stringifying JavaScript is not supported")}}},846843,(e,t,r)=>{"use strict";t.exports=function(e){return"string"==typeof e&&"\uFEFF"===e.charAt(0)?e.slice(1):e}},734281,(e,t,r)=>{"use strict";let n=e.r(846843),i=e.r(618232);r.define=function(e,t,r){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})},r.isBuffer=function(e){return"buffer"===i(e)},r.isObject=function(e){return"object"===i(e)},r.toBuffer=function(e){return"string"==typeof e?Buffer.from(e):e},r.toString=function(e){if(r.isBuffer(e))return n(String(e));if("string"!=typeof e)throw TypeError("expected input to be a string or buffer");return n(e)},r.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},r.startsWith=function(e,t,r){return"number"!=typeof r&&(r=t.length),e.slice(0,r)===t}},322689,(e,t,r)=>{"use strict";let n=e.r(897203),i=e.r(734281);t.exports=function(e){let t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},n,t.parsers,t.engines),t}},415192,(e,t,r)=>{"use strict";function n(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}t.exports=function(e,t){let r=t.engines[e]||t.engines[n(e)];if(void 0===r)throw Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof r&&(r={parse:r}),r}},968169,(e,t,r)=>{"use strict";let n=e.r(618232),i=e.r(415192),a=e.r(322689);function s(e){return"\n"!==e.slice(-1)?e+"\n":e}t.exports=function(e,t,r){if(null==t&&null==r)switch(n(e)){case"object":t=e.data,r={};break;case"string":return e;default:throw TypeError("expected file to be a string or object")}let o=e.content,u=a(r);if(null==t){if(!u.data)return e;t=u.data}let c=e.language||u.language,l=i(c,u);if("function"!=typeof l.stringify)throw TypeError('expected "'+c+'.stringify" to be a function');t=Object.assign({},e.data,t);let h=u.delimiters[0],p=u.delimiters[1],d=l.stringify(t,r).trim(),f="";return"{}"!==d&&(f=s(h)+s(d)+s(p)),"string"==typeof e.excerpt&&""!==e.excerpt&&-1===o.indexOf(e.excerpt.trim())&&(f+=s(e.excerpt)+s(p)),f+s(o)}},644654,(e,t,r)=>{"use strict";let n=e.r(322689);t.exports=function(e,t){let r=n(t);if(null==e.data&&(e.data={}),"function"==typeof r.excerpt)return r.excerpt(e,r);let i=e.data.excerpt_separator||r.excerpt_separator;if(null==i&&(!1===r.excerpt||null==r.excerpt))return e;let a="string"==typeof r.excerpt?r.excerpt:i||r.delimiters[0],s=e.content.indexOf(a);return -1!==s&&(e.excerpt=e.content.slice(0,s)),e}},184180,(e,t,r)=>{"use strict";let n=e.r(618232),i=e.r(968169),a=e.r(734281);t.exports=function(e){return"object"!==n(e)&&(e={content:e}),"object"!==n(e.data)&&(e.data={}),e.contents&&null==e.content&&(e.content=e.contents),a.define(e,"orig",a.toBuffer(e.content)),a.define(e,"language",e.language||""),a.define(e,"matter",e.matter||""),a.define(e,"stringify",function(t,r){return r&&r.language&&(e.language=r.language),i(e,t,r)}),e.content=a.toString(e.content),e.isEmpty=!1,e.excerpt="",e}},21601,(e,t,r)=>{"use strict";let n=e.r(415192),i=e.r(322689);t.exports=function(e,t,r){let a=i(r),s=n(e,a);if("function"!=typeof s.parse)throw TypeError('expected "'+e+'.parse" to be a function');return s.parse(t,a)}},714827,(e,t,r)=>{"use strict";let n=e.r(522734),i=e.r(735063),a=e.r(322689),s=e.r(968169),o=e.r(644654),u=e.r(897203),c=e.r(184180),l=e.r(21601),h=e.r(734281);function p(e,t){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let r=c(e),n=p.cache[r.content];if(!t){if(n)return(r=Object.assign({},n)).orig=n.orig,r;p.cache[r.content]=r}return d(r,t)}function d(e,t){let r=a(t),n=r.delimiters[0],s="\n"+r.delimiters[1],u=e.content;r.language&&(e.language=r.language);let c=n.length;if(!h.startsWith(u,n,c))return o(e,r),e;if(u.charAt(c)===n.slice(-1))return e;let d=(u=u.slice(c)).length,f=p.language(u,r);f.name&&(e.language=f.name,u=u.slice(f.raw.length));let m=u.indexOf(s);return -1===m&&(m=d),e.matter=u.slice(0,m),""===e.matter.replace(/^\s*#[^\n]+/gm,"").trim()?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=l(e.language,e.matter,r),m===d?e.content="":(e.content=u.slice(m+s.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1))),o(e,r),(!0===r.sections||"function"==typeof r.section)&&i(e,r.section),e}p.engines=u,p.stringify=function(e,t,r){return"string"==typeof e&&(e=p(e,r)),s(e,t,r)},p.read=function(e,t){let r=p(n.readFileSync(e,"utf8"),t);return r.path=e,r},p.test=function(e,t){return h.startsWith(e,a(t).delimiters[0])},p.language=function(e,t){let r=a(t).delimiters[0];p.test(e)&&(e=e.slice(r.length));let n=e.slice(0,e.search(/\r?\n/));return{raw:n,name:n?n.trim():""}},p.cache={},p.clearCache=function(){p.cache={}},t.exports=p},194772,e=>{"use strict";let t,r,n,i,a;var s,o,u=e.i(747909),c=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({}),l=function(e){return e.handleRequest="BaseServer.handleRequest",e.run="BaseServer.run",e.pipe="BaseServer.pipe",e.getStaticHTML="BaseServer.getStaticHTML",e.render="BaseServer.render",e.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",e.renderToResponse="BaseServer.renderToResponse",e.renderToHTML="BaseServer.renderToHTML",e.renderError="BaseServer.renderError",e.renderErrorToResponse="BaseServer.renderErrorToResponse",e.renderErrorToHTML="BaseServer.renderErrorToHTML",e.render404="BaseServer.render404",e}(l||{}),h=function(e){return e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents",e}(h||{}),p=function(e){return e.getRequestHandler="NextServer.getRequestHandler",e.getRequestHandlerWithMetadata="NextServer.getRequestHandlerWithMetadata",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer",e}(p||{}),d=function(e){return e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",e.createComponentTree="NextNodeServer.createComponentTree",e.clientComponentLoading="NextNodeServer.clientComponentLoading",e.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",e.generateStaticRoutes="NextNodeServer.generateStaticRoutes",e.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",e.generatePublicRoutes="NextNodeServer.generatePublicRoutes",e.generateImageRoutes="NextNodeServer.generateImageRoutes.route",e.sendRenderResult="NextNodeServer.sendRenderResult",e.proxyRequest="NextNodeServer.proxyRequest",e.runApi="NextNodeServer.runApi",e.render="NextNodeServer.render",e.renderHTML="NextNodeServer.renderHTML",e.imageOptimizer="NextNodeServer.imageOptimizer",e.getPagePath="NextNodeServer.getPagePath",e.getRoutesManifest="NextNodeServer.getRoutesManifest",e.findPageComponents="NextNodeServer.findPageComponents",e.getFontManifest="NextNodeServer.getFontManifest",e.getServerComponentManifest="NextNodeServer.getServerComponentManifest",e.getRequestHandler="NextNodeServer.getRequestHandler",e.renderToHTML="NextNodeServer.renderToHTML",e.renderError="NextNodeServer.renderError",e.renderErrorToHTML="NextNodeServer.renderErrorToHTML",e.render404="NextNodeServer.render404",e.startResponse="NextNodeServer.startResponse",e.route="route",e.onProxyReq="onProxyReq",e.apiResolver="apiResolver",e.internalFetch="internalFetch",e}(d||{}),f=function(e){return e.startServer="startServer.startServer",e}(f||{}),m=function(e){return e.getServerSideProps="Render.getServerSideProps",e.getStaticProps="Render.getStaticProps",e.renderToString="Render.renderToString",e.renderDocument="Render.renderDocument",e.createBodyResult="Render.createBodyResult",e}(m||{}),g=function(e){return e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch",e}(g||{}),y=function(e){return e.executeRoute="Router.executeRoute",e}(y||{}),x=function(e){return e.runHandler="Node.runHandler",e}(x||{}),v=function(e){return e.runHandler="AppRouteRouteHandlers.runHandler",e}(v||{}),b=function(e){return e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport",e}(b||{}),E=function(e){return e.execute="Middleware.execute",e}(E||{});let D=new Set(["Middleware.execute","BaseServer.handleRequest","Render.getServerSideProps","Render.getStaticProps","AppRender.fetch","AppRender.getBodyResult","Render.renderDocument","Node.runHandler","AppRouteRouteHandlers.runHandler","ResolveMetadata.generateMetadata","ResolveMetadata.generateViewport","NextNodeServer.createComponentTree","NextNodeServer.findPageComponents","NextNodeServer.getLayoutOrPageModule","NextNodeServer.startResponse","NextNodeServer.clientComponentLoading"]),S=new Set(["NextNodeServer.findPageComponents","NextNodeServer.createComponentTree","NextNodeServer.clientComponentLoading"]);function w(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}let C=process.env.NEXT_OTEL_PERFORMANCE_PREFIX;try{t=e.r(407896)}catch(r){t=e.r(317413)}let{context:A,propagation:_,trace:T,SpanStatusCode:k,SpanKind:R,ROOT_CONTEXT:P}=t;class O extends Error{constructor(e,t){super(),this.bubble=e,this.result=t}}function F(e){return"object"==typeof e&&null!==e&&e instanceof O}let N=(e,t)=>{F(t)&&t.bubble?e.setAttribute("next.bubble",!0):(t&&(e.recordException(t),e.setAttribute("error.type",t.name)),e.setStatus({code:k.ERROR,message:null==t?void 0:t.message})),e.end()},I=new Map,M=t.createContextKey("next.rootSpanId"),B=0,j=()=>B++,L={set(e,t,r){e.push({key:t,value:r})}};class U{getTracerInstance(){return T.getTracer("next.js","0.0.1")}getContext(){return A}getTracePropagationData(){let e=A.active(),t=[];return _.inject(e,t,L),t}getActiveScopeSpan(){return T.getSpan(null==A?void 0:A.active())}withPropagatedContext(e,t,r,n=!1){let i=A.active();if(n){let n=_.extract(P,e,r);if(T.getSpanContext(n))return A.with(n,t);let a=_.extract(i,e,r);return A.with(a,t)}if(T.getSpanContext(i))return t();let a=_.extract(i,e,r);return A.with(a,t)}trace(...e){let[t,r,n]=e,{fn:i,options:a}="function"==typeof r?{fn:r,options:{}}:{fn:n,options:{...r}},s=a.spanName??t;if(!D.has(t)&&"1"!==process.env.NEXT_OTEL_VERBOSE||a.hideSpan)return i();let o=this.getSpanContext((null==a?void 0:a.parentSpan)??this.getActiveScopeSpan());o||(o=(null==A?void 0:A.active())??P);let u=o.getValue(M),c="number"!=typeof u||!I.has(u),l=j();return a.attributes={"next.span_name":s,"next.span_type":t,...a.attributes},A.with(o.setValue(M,l),()=>this.getTracerInstance().startActiveSpan(s,a,e=>{let r;C&&t&&S.has(t)&&(r="performance"in globalThis&&"measure"in performance?globalThis.performance.now():void 0);let n=!1,s=()=>{!n&&(n=!0,I.delete(l),r&&performance.measure(`${C}:next-${(t.split(".").pop()||"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}`,{start:r,end:performance.now()}))};if(c&&I.set(l,new Map(Object.entries(a.attributes??{}))),i.length>1)try{return i(e,t=>N(e,t))}catch(t){throw N(e,t),t}finally{s()}try{let t=i(e);if(w(t))return t.then(t=>(e.end(),t)).catch(t=>{throw N(e,t),t}).finally(s);return e.end(),s(),t}catch(t){throw N(e,t),s(),t}}))}wrap(...e){let t=this,[r,n,i]=3===e.length?e:[e[0],{},e[1]];return D.has(r)||"1"===process.env.NEXT_OTEL_VERBOSE?function(){let e=n;"function"==typeof e&&"function"==typeof i&&(e=e.apply(this,arguments));let a=arguments.length-1,s=arguments[a];if("function"!=typeof s)return t.trace(r,e,()=>i.apply(this,arguments));{let n=t.getContext().bind(A.active(),s);return t.trace(r,e,(e,t)=>(arguments[a]=function(e){return null==t||t(e),n.apply(this,arguments)},i.apply(this,arguments)))}}:i}startSpan(...e){let[t,r]=e,n=this.getSpanContext((null==r?void 0:r.parentSpan)??this.getActiveScopeSpan());return this.getTracerInstance().startSpan(t,r,n)}getSpanContext(e){return e?T.setSpan(A.active(),e):void 0}getRootSpanAttributes(){let e=A.active().getValue(M);return I.get(e)}setRootSpanAttribute(e,t){let r=A.active().getValue(M),n=I.get(r);n&&!n.has(e)&&n.set(e,t)}withSpan(e,t){let r=T.setSpan(A.active(),e);return A.with(r,t)}}let X=(()=>{let e=new U;return()=>e})(),$="x-next-cache-tags",z=128,H=256,G=31536e3,J=0xfffffffe,V={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"};({...V,GROUP:{builtinReact:[V.reactServerComponents,V.actionBrowser],serverOnly:[V.reactServerComponents,V.actionBrowser,V.instrument,V.middleware],neutralTarget:[V.apiNode,V.apiEdge],clientOnly:[V.serverSideRendering,V.appPagesBrowser],bundled:[V.reactServerComponents,V.actionBrowser,V.serverSideRendering,V.appPagesBrowser,V.shared,V.instrument,V.middleware],appPages:[V.reactServerComponents,V.serverSideRendering,V.appPagesBrowser,V.actionBrowser]}});var q=e.i(347540);let W="DYNAMIC_SERVER_USAGE";class K extends Error{constructor(e){super(`Dynamic server usage: ${e}`),this.description=e,this.digest=W}}let Y="NEXT_STATIC_GEN_BAILOUT";class Z extends Error{constructor(...e){super(...e),this.code=Y}}var Q=e.i(832319),ee=e.i(556704);let et="__next_metadata_boundary__",er="__next_viewport_boundary__",en="__next_outlet_boundary__",ei="__next_root_layout_boundary__",ea="__next_instant_validation_boundary__",es="function"==typeof q.default.unstable_postpone;function eo(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new Z(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return eu(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new K(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function eu(e,t,r){el(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),q.default.unstable_postpone(ec(e,t))}function ec(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}if(!1===function(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}(ec("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});function el(){if(!es)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}let eh="body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6";RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${eh}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${ei} \\([^\\n]*\\)`),RegExp(`\\n\\s+at ${et}[\\n\\s]`),RegExp(`\\n\\s+at ${er}[\\n\\s]`),RegExp(`\\n\\s+at ${en}[\\n\\s]`),RegExp(`\\n\\s+at ${ea}[\\n\\s]`);let ep="HANGING_PROMISE_REJECTION";class ed extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`),this.route=e,this.expression=t,this.digest=ep}}let ef=new WeakMap;function em(e,t,r){if(e.aborted)return Promise.reject(new ed(t,r));{let n=new Promise((n,i)=>{let a=i.bind(null,new ed(t,r)),s=ef.get(e);if(s)s.push(a);else{let t=[a];ef.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e<t.length;e++)t[e]()},{once:!0})}});return n.catch(eg),n}}function eg(){}var ey=q;let ex=()=>{};function ev(e){if(!e.body)return[e,e];let[t,n]=e.body.tee(),i=new Response(t,{status:e.status,statusText:e.statusText,headers:e.headers});Object.defineProperty(i,"url",{value:e.url,configurable:!0,enumerable:!0,writable:!1});let a=new Response(n,{status:e.status,statusText:e.statusText,headers:e.headers});return Object.defineProperty(a,"url",{value:e.url,configurable:!0,enumerable:!0,writable:!1}),r&&(i.body&&r.register(i,new WeakRef(i.body)),a.body&&r.register(a,new WeakRef(a.body))),[i,a]}globalThis.FinalizationRegistry&&(r=new FinalizationRegistry(e=>{let t=e.deref();t&&!t.locked&&t.cancel("Response object has been garbage collected").then(ex)}));class eb extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}let eE='["GET",[],null,"follow",null,null,null,null]',eD=new Set(["traceparent","tracestate"]);function eS(e){let t=Array.from(e.headers.entries()).filter(([e])=>!eD.has(e.toLowerCase()));return JSON.stringify([e.method,t,e.mode,e.redirect,e.credentials,e.referrer,e.referrerPolicy,e.integrity])}function ew(e){let t=ey.cache(e=>[]);return function(r,n){let i,a;if(n&&n.signal)return e(r,n);if("string"!=typeof r||n){let t="string"==typeof r||r instanceof URL?new Request(r,n):r;if("GET"!==t.method&&"HEAD"!==t.method||t.keepalive)return e(r,n);a=eS(t),i=t.url}else a=eE,i=r;let s=t(i);for(let e=0,t=s.length;e<t;e+=1){let[t,r]=s[e];if(t===a)return r.then(()=>{let t=s[e][2];if(!t)throw Object.defineProperty(new eb("No cached response"),"__NEXT_ERROR_CODE",{value:"E579",enumerable:!1,configurable:!0});let[r,n]=ev(t);return s[e][2]=n,r})}let o=e(r,n),u=[a,o,null];return s.push(u),o.then(e=>{let[t,r]=ev(e);return u[2]=r,t})}}var eC=Q;class eA{constructor(){let e,t;this.promise=new Promise((r,n)=>{e=r,t=n}),this.resolve=e,this.reject=t}}class e_{constructor(e,t,r){this.prev=null,this.next=null,this.key=e,this.data=t,this.size=r}}class eT{constructor(){this.prev=null,this.next=null}}class ek{constructor(e,t,r){this.cache=new Map,this.totalSize=0,this.maxSize=e,this.calculateSize=t,this.onEvict=r,this.head=new eT,this.tail=new eT,this.head.next=this.tail,this.tail.prev=this.head}addToHead(e){e.prev=this.head,e.next=this.head.next,this.head.next.prev=e,this.head.next=e}removeNode(e){e.prev.next=e.next,e.next.prev=e.prev}moveToHead(e){this.removeNode(e),this.addToHead(e)}removeTail(){let e=this.tail.prev;return this.removeNode(e),e}set(e,t){let r=(null==this.calculateSize?void 0:this.calculateSize.call(this,t))??1;if(r<=0)throw Object.defineProperty(Error(`LRUCache: calculateSize returned ${r}, but size must be > 0. Items with size 0 would never be evicted, causing unbounded cache growth.`),"__NEXT_ERROR_CODE",{value:"E1045",enumerable:!1,configurable:!0});if(r>this.maxSize)return console.warn("Single item size exceeds maxSize"),!1;let n=this.cache.get(e);if(n)n.data=t,this.totalSize=this.totalSize-n.size+r,n.size=r,this.moveToHead(n);else{let n=new e_(e,t,r);this.cache.set(e,n),this.addToHead(n),this.totalSize+=r}for(;this.totalSize>this.maxSize&&this.cache.size>0;){let e=this.removeTail();this.cache.delete(e.key),this.totalSize-=e.size,null==this.onEvict||this.onEvict.call(this,e.key,e.data)}return!0}has(e){return this.cache.has(e)}get(e){let t=this.cache.get(e);if(t)return this.moveToHead(t),t.data}*[Symbol.iterator](){let e=this.head.next;for(;e&&e!==this.tail;){let t=e;yield[t.key,t.data],e=e.next}}remove(e){let t=this.cache.get(e);t&&(this.removeNode(t),this.cache.delete(e),this.totalSize-=t.size)}get size(){return this.cache.size}get currentSize(){return this.totalSize}}let{env:eR,stdout:eP}=(null==(s=globalThis)?void 0:s.process)??{},eO=eR&&!eR.NO_COLOR&&(eR.FORCE_COLOR||(null==eP?void 0:eP.isTTY)&&!eR.CI&&"dumb"!==eR.TERM),eF=(e,t,r,n)=>{let i=e.substring(0,n)+r,a=e.substring(n+t.length),s=a.indexOf(t);return~s?i+eF(a,t,r,s):i+a},eN=(e,t,r=e)=>eO?n=>{let i=""+n,a=i.indexOf(t,e.length);return~a?e+eF(i,t,r,a)+t:e+i+t}:String,eI=eN("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m");eN("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),eN("\x1b[3m","\x1b[23m"),eN("\x1b[4m","\x1b[24m"),eN("\x1b[7m","\x1b[27m"),eN("\x1b[8m","\x1b[28m"),eN("\x1b[9m","\x1b[29m"),eN("\x1b[30m","\x1b[39m");let eM=eN("\x1b[31m","\x1b[39m"),eB=eN("\x1b[32m","\x1b[39m"),ej=eN("\x1b[33m","\x1b[39m");eN("\x1b[34m","\x1b[39m");let eL=eN("\x1b[35m","\x1b[39m");eN("\x1b[38;2;173;127;168m","\x1b[39m"),eN("\x1b[36m","\x1b[39m");let eU=eN("\x1b[37m","\x1b[39m");eN("\x1b[90m","\x1b[39m"),eN("\x1b[40m","\x1b[49m"),eN("\x1b[41m","\x1b[49m"),eN("\x1b[42m","\x1b[49m"),eN("\x1b[43m","\x1b[49m"),eN("\x1b[44m","\x1b[49m"),eN("\x1b[45m","\x1b[49m"),eN("\x1b[46m","\x1b[49m"),eN("\x1b[47m","\x1b[49m"),eU(eI("○")),eM(eI("⨯")),ej(eI("⚠")),eU(eI(" ")),eB(eI("✓")),eL(eI("»")),new ek(1e4,e=>e.length),new ek(1e4,e=>e.length);var eX=function(e){return e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.PAGES="PAGES",e.FETCH="FETCH",e.REDIRECT="REDIRECT",e.IMAGE="IMAGE",e}({}),e$=function(e){return e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.PAGES="PAGES",e.FETCH="FETCH",e.IMAGE="IMAGE",e}({});function ez(){}new TextEncoder;let eH=new TextEncoder;function eG(...e){if(0===e.length)return new ReadableStream({start(e){e.close()}});if(1===e.length)return e[0];let{readable:t,writable:r}=new TransformStream,n=e[0].pipeTo(r,{preventClose:!0}),i=1;for(;i<e.length-1;i++){let t=e[i];n=n.then(()=>t.pipeTo(r,{preventClose:!0}))}let a=e[i];return(n=n.then(()=>a.pipeTo(r))).catch(ez),t}function eJ(e){return new ReadableStream({start(t){t.enqueue(eH.encode(e)),t.close()}})}function eV(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}async function eq(e,t){let r=new TextDecoder("utf-8",{fatal:!0}),n="";for await(let i of e){if(null==t?void 0:t.aborted)return n;n+=r.decode(i,{stream:!0})}return n+r.decode()}let eW=Symbol.for("NextInternalRequestMeta");function eK(e,t){let r=e[eW]||{};return"string"==typeof t?r[t]:r}function eY(e,t){return e[eW]=t,t}function eZ(e,t,r){let n=eK(e);return n[t]=r,eY(e,n)}function eQ(e){let t=new Headers;for(let[r,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function e0(e){var t,r,n,i,a,s=[],o=0;function u(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}function c(){return"="!==(r=e.charAt(o))&&";"!==r&&","!==r}for(;o<e.length;){for(t=o,a=!1;u();)if(","===(r=e.charAt(o))){for(n=o,o+=1,u(),i=o;o<e.length&&c();)o+=1;o<e.length&&"="===e.charAt(o)?(a=!0,o=i,s.push(e.substring(t,n)),t=o):o=n+1}else o+=1;(!a||o>=e.length)&&s.push(e.substring(t,e.length))}return s}function e1(e){let t={},r=[];if(e)for(let[n,i]of e.entries())"set-cookie"===n.toLowerCase()?(r.push(...e0(i)),t[n]=1===r.length?r[0]:r):t[n]=i;return t}function e2(e){try{return String(new URL(String(e)))}catch(t){throw Object.defineProperty(Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function e3(e,t,r){if(e){for(let n of(r&&(r=r.toLowerCase()),e))if(t===n.domain?.split(":",1)[0].toLowerCase()||r===n.defaultLocale.toLowerCase()||n.locales?.some(e=>e.toLowerCase()===r))return n}}function e8(e){return e.replace(/\/$/,"")||"/"}function e4(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function e9(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:i}=e4(e);return`${t}${r}${n}${i}`}function e6(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:i}=e4(e);return`${r}${t}${n}${i}`}function e5(e,t){if("string"!=typeof e)return!1;let{pathname:r}=e4(e);return r===t||r.startsWith(t+"/")}function e7(e,t,r,n){if(!t||t===r)return e;let i=e.toLowerCase();return!n&&(e5(i,"/api")||e5(i,`/${t.toLowerCase()}`))?e:e9(e,`/${t}`)}function te(e){let t=e7(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=e8(t)),e.buildId&&(t=e6(e9(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=e9(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:e6(t,"/"):e8(t)}function tt(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}let tr=new WeakMap;function tn(e,t){let r;if(!t)return{pathname:e};let n=tr.get(t);n||(n=t.map(e=>e.toLowerCase()),tr.set(t,n));let i=e.split("/",2);if(!i[1])return{pathname:e};let a=i[1].toLowerCase(),s=n.indexOf(a);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}function ti(e,t){if(!e5(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}function ta(e,t){let{basePath:r,i18n:n,trailingSlash:i}=t.nextConfig??{},a={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):i};r&&e5(a.pathname,r)&&(a.pathname=ti(a.pathname,r),a.basePath=r);let s=a.pathname;if(a.pathname.startsWith("/_next/data/")&&a.pathname.endsWith(".json")){let e=a.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");a.buildId=e[0],s="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(a.pathname=s)}if(n){let e=t.i18nProvider?t.i18nProvider.analyze(a.pathname):tn(a.pathname,n.locales);a.locale=e.detectedLocale,a.pathname=e.pathname??a.pathname,!e.detectedLocale&&a.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(s):tn(s,n.locales)).detectedLocale&&(a.locale=e.detectedLocale)}return a}let ts=/^(?:127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)$/;function to(e,t){let r=new URL(String(e),t&&String(t));return ts.test(r.hostname)&&(r.hostname="localhost"),r}let tu=Symbol("NextURLInternal");class tc{constructor(e,t,r){let n,i;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,i=r||{}):i=r||t||{},this[tu]={url:to(e,n??i.base),options:i,basePath:""},this.analyze()}analyze(){var e,t,r,n,i;let a=ta(this[tu].url.pathname,{nextConfig:this[tu].options.nextConfig,parseData:!0,i18nProvider:this[tu].options.i18nProvider}),s=tt(this[tu].url,this[tu].options.headers);this[tu].domainLocale=this[tu].options.i18nProvider?this[tu].options.i18nProvider.detectDomainLocale(s):e3(null==(t=this[tu].options.nextConfig)||null==(e=t.i18n)?void 0:e.domains,s);let o=(null==(r=this[tu].domainLocale)?void 0:r.defaultLocale)||(null==(i=this[tu].options.nextConfig)||null==(n=i.i18n)?void 0:n.defaultLocale);this[tu].url.pathname=a.pathname,this[tu].defaultLocale=o,this[tu].basePath=a.basePath??"",this[tu].buildId=a.buildId,this[tu].locale=a.locale??o,this[tu].trailingSlash=a.trailingSlash}formatPathname(){return te({basePath:this[tu].basePath,buildId:this[tu].buildId,defaultLocale:this[tu].options.forceLocale?void 0:this[tu].defaultLocale,locale:this[tu].locale,pathname:this[tu].url.pathname,trailingSlash:this[tu].trailingSlash})}formatSearch(){return this[tu].url.search}get buildId(){return this[tu].buildId}set buildId(e){this[tu].buildId=e}get locale(){return this[tu].locale??""}set locale(e){var t,r;if(!this[tu].locale||!(null==(r=this[tu].options.nextConfig)||null==(t=r.i18n)?void 0:t.locales.includes(e)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${e}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[tu].locale=e}get defaultLocale(){return this[tu].defaultLocale}get domainLocale(){return this[tu].domainLocale}get searchParams(){return this[tu].url.searchParams}get host(){return this[tu].url.host}set host(e){this[tu].url.host=e}get hostname(){return this[tu].url.hostname}set hostname(e){this[tu].url.hostname=e}get port(){return this[tu].url.port}set port(e){this[tu].url.port=e}get protocol(){return this[tu].url.protocol}set protocol(e){this[tu].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[tu].url=to(e),this.analyze()}get origin(){return this[tu].url.origin}get pathname(){return this[tu].url.pathname}set pathname(e){this[tu].url.pathname=e}get hash(){return this[tu].url.hash}set hash(e){this[tu].url.hash=e}get search(){return this[tu].url.search}set search(e){this[tu].url.search=e}get password(){return this[tu].url.password}set password(e){this[tu].url.password=e}get username(){return this[tu].url.username}set username(e){this[tu].url.username=e}get basePath(){return this[tu].basePath}set basePath(e){this[tu].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new tc(String(this),this[tu].options)}}class tl extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ")}}class th extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ")}}var tp=e.i(819481);let td=Symbol("internal request");class tf extends Request{constructor(e,t={}){const r="string"!=typeof e&&"url"in e?e.url:String(e);e2(r),t.body&&"half"!==t.duplex&&(t.duplex="half"),e instanceof Request?super(e,t):super(r,t);const n=new tc(r,{headers:e1(this.headers),nextConfig:t.nextConfig});this[td]={cookies:new tp.RequestCookies(this.headers),nextUrl:n,url:n.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[td].cookies}get nextUrl(){return this[td].nextUrl}get page(){throw new tl}get ua(){throw new th}get url(){return this[td].url}}let tm=e=>!0,tg=e=>!0,ty="ResponseAborted";class tx extends Error{constructor(...e){super(...e),this.name=ty}}function tv(e){let t=new AbortController;return e.once("close",()=>{e.writableFinished||t.abort(new tx)}),t}function tb(e){let{errored:t,destroyed:r}=e;if(t||r)return AbortSignal.abort(t??new tx);let{signal:n}=tv(e);return n}class tE{static fromBaseNextRequest(e,t){if(tm(e))return tE.fromNodeNextRequest(e,t);throw Object.defineProperty(Error("Invariant: Unsupported NextRequest type"),"__NEXT_ERROR_CODE",{value:"E345",enumerable:!1,configurable:!0})}static fromNodeNextRequest(e,t){let r,n=null;if("GET"!==e.method&&"HEAD"!==e.method&&e.body&&(n=e.body),e.url.startsWith("http"))r=new URL(e.url);else{let t=eK(e,"initURL");r=t&&t.startsWith("http")?new URL(e.url,t):new URL(e.url,"http://n")}return new tf(r,{method:e.method,headers:eQ(e.headers),duplex:"half",signal:t,...t.aborted?{}:{body:n}})}static fromWebNextRequest(e){let t=null;return"GET"!==e.method&&"HEAD"!==e.method&&(t=e.body),new tf(e.url,{method:e.method,headers:eQ(e.headers),duplex:"half",signal:e.request.signal,...e.request.signal.aborted?{}:{body:t}})}}let tD=0,tS=0,tw=0;function tC(e={}){let t=0===tD?void 0:{clientComponentLoadStart:tD,clientComponentLoadTimes:tS,clientComponentLoadCount:tw};return e.reset&&(tD=0,tS=0,tw=0),t}function tA(e){return(null==e?void 0:e.name)==="AbortError"||(null==e?void 0:e.name)===ty}function t_(e,t){let r=!1,n=new eA;function i(){n.resolve()}e.on("drain",i),e.once("close",()=>{e.off("drain",i),n.resolve()});let a=new eA;return e.once("finish",()=>{a.resolve()}),new WritableStream({write:async t=>{if(!r){if(r=!0,"performance"in globalThis&&process.env.NEXT_OTEL_PERFORMANCE_PREFIX){let e=tC();e&&performance.measure(`${process.env.NEXT_OTEL_PERFORMANCE_PREFIX}:next-client-component-loading`,{start:e.clientComponentLoadStart,end:e.clientComponentLoadStart+e.clientComponentLoadTimes})}e.flushHeaders(),X().trace(d.startResponse,{spanName:"start response"},()=>void 0)}try{let r=e.write(t);"flush"in e&&"function"==typeof e.flush&&e.flush(),r||(await n.promise,n=new eA)}catch(t){throw e.end(),Object.defineProperty(Error("failed to write chunk to response",{cause:t}),"__NEXT_ERROR_CODE",{value:"E321",enumerable:!1,configurable:!0})}},abort:t=>{e.writableFinished||e.destroy(t)},close:async()=>{if(t&&await t,!e.writableFinished)return e.end(),a.promise}})}async function tT(e,t,r){try{let{errored:n,destroyed:i}=t;if(n||i)return;let a=tv(t),s=t_(t,r);await e.pipeTo(s,{signal:a.signal})}catch(e){if(tA(e))return;throw Object.defineProperty(Error("failed to pipe response",{cause:e}),"__NEXT_ERROR_CODE",{value:"E180",enumerable:!1,configurable:!0})}}class tk{static #e=this.EMPTY=new tk(null,{metadata:{},contentType:null});static fromStatic(e,t){return new tk(e,{metadata:{},contentType:t})}constructor(e,{contentType:t,waitUntil:r,metadata:n}){this.response=e,this.contentType=t,this.metadata=n,this.waitUntil=r}assignMetadata(e){Object.assign(this.metadata,e)}get isNull(){return null===this.response}get isDynamic(){return"string"!=typeof this.response}toUnchunkedString(e=!1){if(null===this.response)return"";if("string"!=typeof this.response){if(!e)throw Object.defineProperty(new eb("dynamic responses cannot be unchunked. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E732",enumerable:!1,configurable:!0});return eq(this.readable)}return this.response}get readable(){return null===this.response?new ReadableStream({start(e){e.close()}}):"string"==typeof this.response?eJ(this.response):Buffer.isBuffer(this.response)?eV(this.response):Array.isArray(this.response)?eG(...this.response):this.response}coerce(){return null===this.response?[]:"string"==typeof this.response?[eJ(this.response)]:Array.isArray(this.response)?this.response:Buffer.isBuffer(this.response)?[eV(this.response)]:[this.response]}pipeThrough(e){this.response=this.readable.pipeThrough(e)}unshift(e){this.response=this.coerce(),this.response.unshift(e)}push(e){this.response=this.coerce(),this.response.push(e)}async pipeTo(e){try{await this.readable.pipeTo(e,{preventClose:!0}),this.waitUntil&&await this.waitUntil,await e.close()}catch(t){if(tA(t))return void await e.abort(t);throw t}}async pipeToNodeResponse(e){await tT(this.readable,e,this.waitUntil)}}function tR(e,t){if(!e)return t;let r=parseInt(e,10);return Number.isFinite(r)&&r>0?r:t}tR(process.env.NEXT_PRIVATE_RESPONSE_CACHE_TTL,1e4),tR(process.env.NEXT_PRIVATE_RESPONSE_CACHE_MAX_SIZE,150);let tP=/[^\t\x20-\x7e]/,tO=/[^\t\x20-\x7e]+/g;function tF(e){return tP.test(e)?e.replace(tO,e=>encodeURIComponent(e)):e}let tN=Symbol.for("next-patch");function tI(){return!0===globalThis[tN]}function tM(e,t){try{let r;if(!1===e)r=J;else if("number"==typeof e&&!isNaN(e)&&e>-1)r=e;else if(void 0!==e)throw Object.defineProperty(Error(`Invalid revalidate value "${e}" on "${t}", must be a non-negative number or false`),"__NEXT_ERROR_CODE",{value:"E179",enumerable:!1,configurable:!0});return r}catch(e){if(e instanceof Error&&e.message.includes("Invalid revalidate"))throw e;return}}function tB(e,t){let r=[],n=[];for(let i=0;i<e.length;i++){let a=e[i];if("string"!=typeof a?n.push({tag:a,reason:"invalid type, must be a string"}):a.length>H?n.push({tag:a,reason:`exceeded max length of ${H}`}):r.push(tF(a)),r.length>z){console.warn(`Warning: exceeded max tag count for ${t}, dropped tags:`,e.slice(i).join(", "));break}}if(n.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),n))console.log(`tag: "${e}" ${r}`);return r}function tj(e,t){e.shouldTrackFetchMetrics&&(e.fetchMetrics??=[],e.fetchMetrics.push({...t,end:performance.timeOrigin+performance.now(),idx:e.nextFetchId||0}))}async function tL(e,t,r,n,i,a){let s=await e.arrayBuffer(),o={headers:Object.fromEntries(e.headers.entries()),body:Buffer.from(s).toString("base64"),status:e.status,url:e.url};return r&&await n.set(t,{kind:eX.FETCH,data:o,revalidate:i},r),await a(),new Response(s,{headers:e.headers,status:e.status,statusText:e.statusText})}async function tU(e,t,r,n,i,a,s,o,u,c){let[l,h]=ev(t),p=l.arrayBuffer().then(async e=>{let t=Buffer.from(e),o={headers:Object.fromEntries(l.headers.entries()),body:t.toString("base64"),status:l.status,url:l.url};null==a||a.set(r,o),n&&await i.set(r,{kind:eX.FETCH,data:o,revalidate:s},n)}).catch(e=>{(null==c?void 0:c.aborted)||console.warn("Failed to set fetch cache",o,e)}).finally(u),d=`cache-set-${r}`,f=e.pendingRevalidates??={},m=Promise.resolve();return d in f&&(m=f[d]),f[d]=m.then(()=>p).finally(()=>{(null==f?void 0:f[d])&&delete f[d]}),h}function tX(e,{workAsyncStorage:t,workUnitAsyncStorage:r}){let n=async function(n,i){var a,s;let o;try{(o=new URL(n instanceof Request?n.url:n)).username="",o.password=""}catch{o=void 0}let u=(null==o?void 0:o.href)??"",c=(null==i||null==(a=i.method)?void 0:a.toUpperCase())||"GET",l=(null==i||null==(s=i.next)?void 0:s.internal)===!0,h="1"===process.env.NEXT_OTEL_FETCH_DISABLED,p=l?void 0:performance.timeOrigin+performance.now(),f=t.getStore(),m=r.getStore(),y=m?(0,eC.getCacheSignal)(m):null;y&&y.beginRead();let x=X().trace(l?d.internalFetch:g.fetch,{hideSpan:h,kind:R.CLIENT,spanName:["fetch",c,u].filter(Boolean).join(" "),attributes:{"http.url":u,"http.method":c,"net.peer.name":null==o?void 0:o.hostname,"net.peer.port":(null==o?void 0:o.port)||void 0}},async()=>{var t;let r,a,s,o,c,h;if(l||!f||f.isDraftMode)return e(n,i);let d=n&&"object"==typeof n&&"string"==typeof n.method;if(d&&i){let{next:e,...t}=i;n=new Request(n,t),i=e?{next:e}:void 0}let g=e=>(null==i?void 0:i[e])||(d?n[e]:null),x=e=>{var t,r,a;return void 0!==(null==i||null==(t=i.next)?void 0:t[e])?null==i||null==(r=i.next)?void 0:r[e]:d?null==(a=n.next)?void 0:a[e]:void 0},v=x("revalidate"),b=v,E=tB(x("tags")||[],`fetch ${n.toString()}`);if(m)switch(m.type){case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":r=m}if(r&&Array.isArray(E)){let e=r.tags??(r.tags=[]);for(let t of E)e.includes(t)||e.push(t)}let D=null==m?void 0:m.implicitTags,S=f.fetchCache;m&&"unstable-cache"===m.type&&(S="force-no-store");let w=!!f.isUnstableNoStore,C=g("cache"),A="";"string"==typeof C&&void 0!==b&&("force-cache"===C&&0===b||"no-store"===C&&(b>0||!1===b))&&(a=`Specified "cache: ${C}" and "revalidate: ${b}", only one should be specified.`,C=void 0,b=void 0);let _="no-cache"===C||"no-store"===C||"force-no-store"===S||"only-no-store"===S,T=!S&&!C&&!b&&f.forceDynamic;"force-cache"===C&&void 0===b?b=!1:(_||T)&&(b=0),("no-cache"===C||"no-store"===C)&&(A=`cache: ${C}`),h=tM(b,f.route);let k=g("headers"),R="function"==typeof(null==k?void 0:k.get)?k:new Headers(k||{}),P=R.get("authorization")||R.get("cookie"),O=!["get","head"].includes((null==(t=g("method"))?void 0:t.toLowerCase())||"get"),F=void 0==S&&(void 0==C||"default"===C)&&void 0==b,N=!!((P||O)&&(null==r?void 0:r.revalidate)===0),I=!1;if(!N&&F&&(f.isBuildTimePrerendering?I=!0:N=!0),F&&void 0!==m)switch(m.type){case"prerender":case"prerender-runtime":case"prerender-client":return y&&(y.endRead(),y=null),em(m.renderSignal,f.route,"fetch()")}switch(S){case"force-no-store":A="fetchCache = force-no-store";break;case"only-no-store":if("force-cache"===C||void 0!==h&&h>0)throw Object.defineProperty(Error(`cache: 'force-cache' used on fetch for ${u} with 'export const fetchCache = 'only-no-store'`),"__NEXT_ERROR_CODE",{value:"E448",enumerable:!1,configurable:!0});A="fetchCache = only-no-store";break;case"only-cache":if("no-store"===C)throw Object.defineProperty(Error(`cache: 'no-store' used on fetch for ${u} with 'export const fetchCache = 'only-cache'`),"__NEXT_ERROR_CODE",{value:"E521",enumerable:!1,configurable:!0});break;case"force-cache":(void 0===b||0===b)&&(A="fetchCache = force-cache",h=J)}if(void 0===h?"default-cache"!==S||w?"default-no-store"===S?(h=0,A="fetchCache = default-no-store"):w?(h=0,A="noStore call"):N?(h=0,A="auto no cache"):(A="auto cache",h=r?r.revalidate:J):(h=J,A="fetchCache = default-cache"):A||(A=`revalidate: ${h}`),!(f.forceStatic&&0===h)&&!N&&r&&h<r.revalidate){if(0===h){if(m)switch(m.type){case"prerender":case"prerender-client":case"prerender-runtime":case"validation-client":return y&&(y.endRead(),y=null),em(m.renderSignal,f.route,"fetch()")}eo(f,m,`revalidate: 0 fetch ${n} ${f.route}`)}r&&v===h&&(r.revalidate=h)}let M="number"==typeof h&&h>0,{incrementalCache:B}=f,j=!1;if(m)switch(m.type){case"request":case"cache":case"private-cache":j=m.isHmrRefresh??!1,o=m.serverComponentsHmrCache}if(B&&(M||o))try{s=await B.generateCacheKey(u,d?n:i)}catch(e){console.error("Failed to generate cache key for",n,e)}let L=f.nextFetchId??1;f.nextFetchId=L+1;let U=()=>{},X=async(t,r)=>{let c=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(d){let e=n,t={body:e._ogBody||e.body};for(let r of c)t[r]=e[r];n=new Request(e.url,t)}else if(i){let{_ogBody:e,body:r,signal:n,...a}=i;i={...a,body:e||r,signal:t?void 0:n}}let l={...i,next:{...null==i?void 0:i.next,fetchType:"origin",fetchIdx:L}};return e(n,l).then(async e=>{if(!t&&p&&tj(f,{start:p,url:u,cacheReason:r||A,cacheStatus:0===h||r?"skip":"miss",cacheWarning:a,status:e.status,method:l.method||"GET"}),200===e.status&&B&&s&&(M||o)){let t=h>=J?G:h,r=M?{fetchCache:!0,fetchUrl:u,fetchIdx:L,tags:E,isImplicitBuildTimeCache:I}:void 0;switch(null==m?void 0:m.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return tL(e,s,r,B,t,U);case"request":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":case void 0:return tU(f,e,s,r,B,o,t,n,U,g("signal"))}}return await U(),e}).catch(e=>{throw U(),e})},$=!1,z=!1;if(s&&B){let e;if(j&&o&&(e=o.get(s),z=!0),M&&!e){U=await B.lock(s);let t=f.isOnDemandRevalidate?null:await B.get(s,{kind:e$.FETCH,revalidate:h,fetchUrl:u,fetchIdx:L,tags:E,softTags:null==D?void 0:D.tags});if(F&&m)switch(m.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":await tH()}if(t?await U():c="cache-control: no-cache (hard refresh)",(null==t?void 0:t.value)&&t.value.kind===eX.FETCH)if(f.isStaticGeneration&&t.isStale)$=!0;else{if(t.isStale&&(f.pendingRevalidates??={},!f.pendingRevalidates[s])){let e=X(!0).then(async e=>({body:await e.arrayBuffer(),headers:e.headers,status:e.status,statusText:e.statusText})).finally(()=>{f.pendingRevalidates??={},delete f.pendingRevalidates[s||""]});e.catch(console.error),f.pendingRevalidates[s]=e}e=t.value.data}}if(e){p&&tj(f,{start:p,url:u,cacheReason:A,cacheStatus:z?"hmr":"hit",cacheWarning:a,status:e.status||200,method:(null==i?void 0:i.method)||"GET"});let t=new Response(Buffer.from(e.body,"base64"),{headers:e.headers,status:e.status});return Object.defineProperty(t,"url",{value:e.url}),t}}if(f.isStaticGeneration&&i&&"object"==typeof i){let{cache:e}=i;if("no-store"===e){if(m)switch(m.type){case"prerender":case"prerender-client":case"prerender-runtime":case"validation-client":return y&&(y.endRead(),y=null),em(m.renderSignal,f.route,"fetch()")}eo(f,m,`no-store fetch ${n} ${f.route}`)}let t="next"in i,{next:a={}}=i;if("number"==typeof a.revalidate&&r&&a.revalidate<r.revalidate){if(0===a.revalidate){if(m)switch(m.type){case"prerender":case"prerender-client":case"prerender-runtime":case"validation-client":return em(m.renderSignal,f.route,"fetch()")}eo(f,m,`revalidate: 0 fetch ${n} ${f.route}`)}f.forceStatic&&0===a.revalidate||(r.revalidate=a.revalidate)}t&&delete i.next}if(!s||!$)return X(!1,c);{let e=s;f.pendingRevalidates??={};let t=f.pendingRevalidates[e];if(t){let e=await t;return new Response(e.body,{headers:e.headers,status:e.status,statusText:e.statusText})}let r=X(!0,c).then(ev);return(t=r.then(async e=>{let t=e[0];return{body:await t.arrayBuffer(),headers:t.headers,status:t.status,statusText:t.statusText}}).finally(()=>{var t;(null==(t=f.pendingRevalidates)?void 0:t[e])&&delete f.pendingRevalidates[e]})).catch(()=>{}),f.pendingRevalidates[e]=t,r.then(e=>e[1])}});if(y)try{return await x}finally{y&&y.endRead()}return x};return n.__nextPatched=!0,n.__nextGetStaticStore=()=>t,n._nextOriginalFetch=e,globalThis[tN]=!0,Object.defineProperty(n,"name",{value:"fetch",writable:!1}),n}function t$(e){if(tI())return;let t=ew(globalThis.fetch);globalThis.fetch=tX(t,e)}let tz=null;function tH(){return tz||(tz=new Promise(e=>{setTimeout(()=>{tz=null,e()},0)})),tz}function tG(e){return e.startsWith("/")?e:`/${e}`}function tJ(e){return"("===e[0]&&e.endsWith(")")}function tV(e){return tG(e.split("/").reduce((e,t,r,n)=>!t||tJ(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:`${e}/${t}`,""))}let tq=42;function tW(e){return e.length===tq}let tK=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule","@@iterator"]);var tY=ee;function tZ(e){return Object.defineProperty(Error(`Failed to find Server Action${e?` "${e}"`:""}. This request might be from an older or newer deployment.
|
|
12
12
|
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E974",enumerable:!1,configurable:!0})}function tQ(e){let t=JSON.stringify(e.length>t0?e.slice(0,t1)+"…":e);return Object.defineProperty(Error(`The Server Reference ID did not match the expected format. Received ${t}.
|
|
13
|
-
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E1144",enumerable:!1,configurable:!0})}let t0=100,t1=90,t2=Symbol.for("next.server.manifests"),t3=globalThis;function t8(e){let t=t=>new Proxy({},{get(r,n){let i=tY.workAsyncStorage.getStore();if(i){let r=e.get(i.route);if(null==r?void 0:r[t][n])return r[t][n]}else for(let r of e.values()){let e=r[t][n];if(void 0!==e)return e}}}),r=new Map;return new Proxy({},{get(n,i){let a=tY.workAsyncStorage.getStore();switch(i){case"moduleLoading":case"entryCSSFiles":case"entryJSFiles":{if(!a)throw Object.defineProperty(new eb(`Cannot access "${i}" without a work store.`),"__NEXT_ERROR_CODE",{value:"E952",enumerable:!1,configurable:!0});let t=e.get(a.route);if(!t)throw Object.defineProperty(new eb(`The client reference manifest for route "${a.route}" does not exist.`),"__NEXT_ERROR_CODE",{value:"E951",enumerable:!1,configurable:!0});return t[i]}case"clientModules":case"rscModuleMapping":case"edgeRscModuleMapping":case"ssrModuleMapping":case"edgeSSRModuleMapping":{let e=r.get(i);return e||(e=t(i),r.set(i,e)),e}default:throw Object.defineProperty(new eb(`This is a proxied client reference manifest. The property "${String(i)}" is not handled.`),"__NEXT_ERROR_CODE",{value:"E953",enumerable:!1,configurable:!0})}}})}function t4(){return new Proxy(Object.create(null),{get:(e,t,r)=>{var n,i;let a;if("string"!=typeof t||tK.has(t))return Reflect.get(e,t,r);if(!tW(t))throw tQ(t);let s=null==(i=t7().node)||null==(n=i[t])?void 0:n.workers;if(!s)throw tZ(t);let o=tY.workAsyncStorage.getStore();if(!(a=o?s[t9(o.page)]:Object.values(s).at(0)))throw tZ(t);let{moduleId:u,async:c}=a;return{id:u,name:t,chunks:[],async:c}}})}function t9(e){return e5(e,"app")?e:"app"+e}function t6({page:e,clientReferenceManifest:t,serverActionsManifest:r}){let n=t3[t2],i={encryptionKey:r.encryptionKey,node:Object.assign(Object.create(null),r.node),edge:Object.assign(Object.create(null),r.edge)};if(n)n.clientReferenceManifestsPerRoute.set(tV(e),t),n.serverActionsManifest=i;else{let r=new Map([[tV(e),t]]),n=t8(r);t3[t2]={clientReferenceManifestsPerRoute:r,proxiedClientReferenceManifest:n,serverActionsManifest:i,serverModuleMap:t4()}}}function t5(){let e=t3[t2];if(!e)throw Object.defineProperty(new eb("The manifests singleton was not initialized."),"__NEXT_ERROR_CODE",{value:"E950",enumerable:!1,configurable:!0});return e}function t7(){return t5().serverActionsManifest}let re="__prerender_bypass";Symbol("__next_preview_data");let rt=Symbol(re);var rr=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});function rn(t){return function(){let{cookie:r}=t;if(!r)return{};let{parse:n}=e.r(93118);return n(Array.isArray(r)?r.join("; "):r)}}class ri{constructor(e,t,r){this.method=e,this.url=t,this.body=r}get cookies(){return this._cookies?this._cookies:this._cookies=rn(this.headers)()}}class ra{constructor(e){this.destination=e}redirect(e,t){return this.setHeader("Location",e),this.statusCode=t,t===rr.PermanentRedirect&&this.setHeader("Refresh",`0;url=${e}`),this}}class rs extends ri{static #e=n=o=eW;constructor(e){var t;super(e.method.toUpperCase(),e.url,e),this._req=e,this.headers=this._req.headers,this.fetchMetrics=null==(t=this._req)?void 0:t.fetchMetrics,this[o]=this._req[eW]||{},this.streaming=!1}get originalRequest(){return this._req[eW]=this[eW],this._req.url=this.url,this._req.cookies=this.cookies,this._req}set originalRequest(e){this._req=e}stream(){if(this.streaming)throw Object.defineProperty(Error("Invariant: NodeNextRequest.stream() can only be called once"),"__NEXT_ERROR_CODE",{value:"E467",enumerable:!1,configurable:!0});return this.streaming=!0,new ReadableStream({start:e=>{this._req.on("data",t=>{e.enqueue(new Uint8Array(t))}),this._req.on("end",()=>{e.close()}),this._req.on("error",t=>{e.error(t)})}})}}class ro extends ra{get originalResponse(){return rt in this&&(this._res[rt]=this[rt]),this._res}constructor(e){super(e),this._res=e,this.textBody=void 0}get sent(){return this._res.finished||this._res.headersSent}get statusCode(){return this._res.statusCode}set statusCode(e){this._res.statusCode=e}get statusMessage(){return this._res.statusMessage}set statusMessage(e){this._res.statusMessage=e}setHeader(e,t){return this._res.setHeader(e,t),this}removeHeader(e){return this._res.removeHeader(e),this}getHeaderValues(e){let t=this._res.getHeader(e);if(void 0!==t)return(Array.isArray(t)?t:[t]).map(e=>e.toString())}hasHeader(e){return this._res.hasHeader(e)}getHeader(e){let t=this.getHeaderValues(e);return Array.isArray(t)?t.join(","):void 0}getHeaders(){return this._res.getHeaders()}appendHeader(e,t){let r=this.getHeaderValues(e)??[];return r.includes(t)||this._res.setHeader(e,[...r,t]),this}body(e){return this.textBody=e,this}send(){this._res.end(this.textBody)}onClose(e){this.originalResponse.on("close",e)}}function ru(e){return e.isOnDemandRevalidate?"on-demand":e.isStaticGeneration?"stale":void 0}async function rc(e,t,r,n){if(tg(t)){var i;t.statusCode=r.status,t.statusMessage=r.statusText;let a=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(i=r.headers)||i.forEach((e,r)=>{if("x-middleware-set-cookie"!==r.toLowerCase())if("set-cookie"===r.toLowerCase())for(let n of e0(e))t.appendHeader(r,n);else{let n=void 0!==t.getHeader(r);(a.includes(r.toLowerCase())||!n)&&t.appendHeader(r,e)}});let{originalResponse:s}=t;r.body&&"HEAD"!==e.method?await tT(r.body,s,n):s.end()}}function rl({revalidate:e,expire:t}){let r="number"==typeof e&&void 0!==t&&e<t?`, stale-while-revalidate=${t-e}`:"";return 0===e?"private, no-cache, no-store, max-age=0, must-revalidate":"number"==typeof e?`s-maxage=${e}${r}`:`s-maxage=${G}${r}`}var rh=e.i(193695),rp=e.i(89171),rd=e.i(874533),rf=e.i(902157),rm=e.i(750227),rg=e.i(812057),ry=rf,rx=rm,rv=q,rb=rd;let rE=(0,rg.promisify)(rb.execFile),rD={...process.env,PATH:[process.env.PATH,"/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin"].filter(Boolean).join(":")};function rS(e){return(0,rb.execFileSync)("gh",e,{encoding:"utf8",env:rD})}async function rw(e){let{stdout:t}=await rE("gh",e,{encoding:"utf8",env:rD,maxBuffer:0x1000000});return t}function rC(e){return JSON.parse(rS(["api",e]))}let rA=100,r_=100;async function rT(e){let[t=e,r=""]=e.split("?"),n=new URLSearchParams(r);n.set("per_page",String(rA));let i=[];for(let e=1;e<=r_;e++){n.set("page",String(e));let r=JSON.parse(await rw(["api",`${t}?${n.toString()}`]));if(i.push(...r),r.length<rA)return i}throw Error(`ghApiGetAllPagesAsync: "${e}" did not terminate within ${r_} pages (${r_*rA} items) — refusing to keep walking.`)}function rk(e,t,r){return["issue","list","--repo",`${e}/${t}`,"--label",r,"--state","all","--json","number,title,body,state,labels,milestone","--limit","200"]}function rR(e,t,r){return JSON.parse(rS(rk(e,t,r)))}async function rP(e,t,r){return JSON.parse(await rw(rk(e,t,r)))}function rO(e){let t=new Map;for(let r of e)t.has(r.number)||t.set(r.number,r);return[...t.values()]}async function rF(e,t,r){return rO((await Promise.all(r.map(r=>rP(e,t,r)))).flat())}let rN=[{key:"blocked",id:"vinaya/blocked",category:"state",form:"literal",carries:"Execution is halted pending an external unblock; wins over every other derived status."},{key:"backlog",id:"vinaya/backlog",category:"state",form:"literal",carries:"The Issue is deliberately unplanned — belongs to no tranche and is excluded from dispatch, until a Planner promotes it."},{key:"tier-0",id:"vinaya/tier:0",category:"tier",form:"literal",carries:"Lowest governance weight — typecheck, lint, tests, and a conforming PR body."},{key:"tier-1",id:"vinaya/tier:1",category:"tier",form:"literal",carries:"Tier 0 plus spec/skill coverage and a passing verify-docs run."},{key:"tier-3",id:"vinaya/tier:3",category:"tier",form:"literal",carries:"Tier 1 plus the reasoning for the change, stated in the pull request that makes it."},{key:"tranche",id:"vinaya/tranche:",category:"tranche",form:"prefix",carries:"The tranche slug this task Issue belongs to — the forge's grouping key, matched by prefix."},{key:"needs-execution-input",id:"vinaya/needs:execution-input",category:"needs",form:"literal",carries:"Waiting on a missing execution detail — a flag, a dependency, a value the brief did not carry."},{key:"needs-strategy-input",id:"vinaya/needs:strategy-input",category:"needs",form:"literal",carries:"Waiting on a strategy call — the brief assumes an approach the codebase has moved away from."},{key:"needs-principal-input",id:"vinaya/needs:principal-input",category:"needs",form:"literal",carries:"Waiting on the Principal — a product-level call no agent may make."},{key:"needs-brief-correction",id:"vinaya/needs:brief-correction",category:"needs",form:"literal",carries:"Waiting on the Brief Author — the brief contradicts the surface it describes."},{key:"waiver-docs",id:"vinaya/waiver:docs",category:"waiver",form:"literal",carries:"Doc-coverage gate excused for this PR — honored only when a principal applied it."},{key:"waiver-review",id:"vinaya/waiver:review",category:"waiver",form:"literal",carries:"Review gate excused for this PR — honored only when a principal applied it."},{key:"override-docs",id:"vinaya/override:docs",category:"waiver",form:"literal",carries:"The whole verify-docs gate suppressed for this PR — a Principal-only blunt override, wider than a waiver."},{key:"incoherent",id:"vinaya/incoherent",category:"flag",form:"literal",carries:"Closed COMPLETED with no merged-PR link — done-but-unprovable, surfaced for a human."},{key:"direct-main-push",id:"vinaya/direct-main-push",category:"flag",form:"literal",carries:"A commit reached main with no associated merged PR — ring-2 detection, never a mutation."},{key:"dead-branch-push",id:"vinaya/dead-branch-push",category:"flag",form:"literal",carries:"Commits landed on a branch after its PR had already resolved — daily-drift detection."},{key:"state-object",id:"vinaya/state-object",category:"kind",form:"literal",carries:"A permanent forge-native storage object, never actionable work — excluded from every backlog."},{key:"type-build",id:"vinaya/type:build",category:"type",form:"literal",carries:"The task changes the build system, packaging, or an external dependency rather than product behavior."},{key:"type-chore",id:"vinaya/type:chore",category:"type",form:"literal",carries:"The task is maintenance or repo housekeeping with no functional, user-facing change."},{key:"type-docs",id:"vinaya/type:docs",category:"type",form:"literal",carries:"The task changes documentation only, with no code behavior affected."},{key:"type-feat",id:"vinaya/type:feat",category:"type",form:"literal",carries:"The task adds a capability that did not exist before."},{key:"type-fix",id:"vinaya/type:fix",category:"type",form:"literal",carries:"The task corrects incorrect behavior — a bug, not a missing capability."},{key:"type-perf",id:"vinaya/type:perf",category:"type",form:"literal",carries:"The task improves performance or resource use without changing observable behavior."},{key:"type-refactor",id:"vinaya/type:refactor",category:"type",form:"literal",carries:"The task restructures existing code without changing its external behavior."},{key:"type-revert",id:"vinaya/type:revert",category:"type",form:"literal",carries:"The task undoes a previous change that shipped in error or is no longer wanted."},{key:"type-style",id:"vinaya/type:style",category:"type",form:"literal",carries:"The task changes formatting, naming, or non-semantic code shape with no logic change."},{key:"type-test",id:"vinaya/type:test",category:"type",form:"literal",carries:"The task adds or corrects test coverage with no production-code behavior change."}],rI=new Map(rN.map(e=>[e.key,e]));function rM(e){let t=rI.get(e);if(!t)throw Error(`labels.ts: no LABELS entry for key '${e}'`);return t}function rB(e){return rM(e).id}function rj(e){return`${rB("tranche")}${e}`}function rL(e){let t=rM("tranche").id;return e.startsWith(t)?e.slice(t.length):null}let rU=/\*\*Dependency rationale\*\*/i,rX=/\*\*[A-Z][^*]*\*\*/,r$=/^(Depends-on|Conflicts-with)\s*:\s*(.*)$/i,rz=/^(?:[\w.-]+\s+)?#?\d+[a-z]?$/i,rH=/^([\w.-]+)\s+(#?\d+[a-z]?)$/i;function rG(e){let t=e.trim();return""===t||"—"===t||"-"===t||"–"===t}function rJ(e,t){for(let r of t)e.includes(r)||e.push(r)}function rV(e){return rG(e)?[]:e.split(",").map(e=>e.trim()).filter(e=>e.length>0&&!rG(e)&&rz.test(e))}function rq(e,t){let r=rV(e),n=[];for(let e of r){let r=e.match(rH);r?(t.current=r[1]??null,n.push(e)):t.current?(n.push(`${t.current} ${e}`),t.current=null):n.push(e)}return n}function rW(e){let t=e.match(rU);if(!t||void 0===t.index)return"";let r=e.slice(t.index+t[0].length),n=r.match(rX),i=n&&void 0!==n.index?n.index:r.length;return r.slice(0,i)}function rK(e){let t=rW(e),r=[],n=[],i=null,a=new Set,s={dependsOn:{current:null},conflictsWith:{current:null}},o=/`([^`]*)`/g,u=o.exec(t);for(;null!==u;){let e=(u[1]??"").trim(),c=e.match(r$);if(c){let e=c[1]?.toLowerCase()==="conflicts-with"?"conflictsWith":"dependsOn";if(!a.has(e)){a.add(e),i=e;let t=rq(c[2]??"",s[e]);rJ("dependsOn"===e?r:n,t)}}else if(i){let t=rq(e,s[i]);rJ("dependsOn"===i?r:n,t)}u=o.exec(t)}return{dependsOn:r,conflictsWith:n}}function rY(e,t={}){let r=e.replace(/\r\n?/g,"\n"),n=()=>"",i=r9(r1(r,n),n);return"keep"===t.inlineSpans?i:i.split("\n").map(e=>rZ(e,()=>"")).join("\n")}function rZ(e,t){let r="",n=0,i=t=>{let r=t;for(;r<e.length&&"`"===e[r];)r++;return r-t};for(;n<e.length;){if("`"!==e[n]){r+=e[n],n++;continue}let a=i(n),s=n+a,o=s,u=-1;for(;o<e.length;){if("`"!==e[o]){o++;continue}let t=i(o);if(t===a){u=o+t;break}o+=t}-1===u?(r+=e.slice(n,s),n=s):(r+=t(e.slice(n,u)),n=u)}return r}let rQ=/^ {0,3}(`{3,}|~{3,})([^\r\n]*)\r?$/,r0=/^ {0,3}(`+|~+)[ \t]*\r?$/;function r1(e,t){let{lines:r}=r2(e);return r.map(({line:e,inCode:r})=>r?t(e):e).join("\n")}function r2(e){let t=null,r=0;return{lines:e.split("\n").map(e=>{if(null===t){let n=e.match(rQ);if(!n)return{line:e,inCode:!1};let i=n[1];return"`"===i[0]&&n[2].includes("`")?{line:e,inCode:!1}:(t=i[0],r=i.length,{line:e,inCode:!0})}let n=e.match(r0);return n&&n[1][0]===t&&n[1].length>=r&&(t=null,r=0),{line:e,inCode:!0}}),unterminated:null!==t}}function r3(e){return r2(e.replace(/\r\n?/g,"\n")).unterminated}let r8=/^ {0,3}(?:[-*+]|\d{1,9}[.)])(?:\s|$)/;function r4(e){let t=0;for(let r of e)if(" "===r)t+=1;else if(" "===r)t+=4;else break;return t}function r9(e,t){let r=e.split("\n"),n=!1,i=!1,a=!0;return r.map(e=>{if(""===e.trim())return a=!0,e;let r=r4(e);return r>=4&&(i||a&&!n)?(i=!0,a=!1,t(e)):(i=!1,r<4&&r8.test(e)?n=!0:0===r&&(n=!1),a=!1,e)}).join("\n")}let r6=/^\[([^\]]+)]\s*(\S+)\s*—\s*(.+)$/,r5=/^[a-z0-9][a-z0-9-]*$/i,r7=/^\s*(?:\*\*)?Project(?:\(s\))?(?:\*\*)?\s*:\s*(?:\*\*)?\s*(.+)$/im,ne=/^[`.;\s]+|[`.;\s]+$/g;function nt(e){return e.replace(/\*\*/g,"").replace(ne,"")}function nr(e){let t=rY(e,{inlineSpans:"keep"}).match(r7);if(t)return nn(t[1]??"");if(r3(e)){let t=e.match(r7);if(t)return{declared:!0,names:[],unparsed:[(t[1]??"").trim()],unreadable:!0}}return{declared:!1,names:[],unparsed:[],unreadable:!1}}function nn(e){let t=[],r=[];for(let n of e.split(",")){let e=nt(n);0!==e.length&&(r5.test(e)?t.push(e):r.push(n.trim()))}return{declared:!0,names:[...new Set(t)],unparsed:r,unreadable:!1}}function ni(e){return nr(e).names}function na(e){let t=e.title.match(r6);if(!t)return null;let r=(t[2]??"").trim(),n=(t[3]??"").trim();if(!r||!n)return null;let i=e.body??"",{dependsOn:a,conflictsWith:s}=rK(i);return{id:r,title:n,issue:e.number,projects:ni(i),dependsOn:a,conflictsWith:s,rationaleMarkdown:i}}function ns(e,t){let r=e.match(/^(\d+)(.*)$/),n=t.match(/^(\d+)(.*)$/);if(r&&n){let e=Number(r[1])-Number(n[1]);return 0!==e?e:(r[2]??"").localeCompare(n[2]??"")}return e.localeCompare(t)}function no(e){let t=[];for(let r of e){let e=na(r);e&&t.push(e)}return t.sort((e,t)=>ns(e.id,t.id))}async function nu(e,t,r){return rF(e,t,[rj(r)])}let nc=/^#{1,6}\s*Tranche intents\s*$/im,nl=/^#{1,6}\s+\S/m,nh=/^-\s+([a-z0-9][a-z0-9-]*)\s*:\s*(.+)$/i;function np(e,t){let r=rY(e,{inlineSpans:"keep"}),n=r.match(nc);if(!n||void 0===n.index)return"";let i=r.slice(n.index+n[0].length),a=i.match(nl);for(let e of i.slice(0,a&&void 0!==a.index?a.index:i.length).split("\n")){let r=e.trim();if(0===r.length)continue;let n=r.match(nh);if(n&&(n[1]??"").toLowerCase()===t.toLowerCase())return(n[2]??"").trim()}return""}function nd(e,t){return e.find(e=>e.title===t)??null}let nf=/^[a-z0-9]+(?:-[a-z0-9]+)*-v\d+$/;function nm(e){return e.map(e=>e.title).filter(e=>nf.test(e))}function ng(e){return{goal:e.description??"",lifecycle:"closed"===e.state?"complete":"active"}}function ny(e,t){return"closed"===e.state&&t.length>0?{goal:e.description??"",lifecycle:nx(t)}:ng(e)}function nx(e){return 0===e.length?"planned":e.some(e=>"OPEN"===e.state)?"active":"complete"}function nv(e,t){for(let r of e){let e=np(r.description??"",t);if(e)return e}return""}function nb(e,t,r){let n=rC(`repos/${e}/${t}/milestones?state=all&per_page=100`),i=nd(n,r),a=rR(e,t,rj(r));return i?ny(i,a):{goal:nv(n,r),lifecycle:nx(a)}}function nE(e){let t=[];for(let r of e){let e=rL(r.name);null!==e&&t.push(e)}return t}async function nD(e,t){let[r,n]=await Promise.all([rT(`repos/${e}/${t}/milestones?state=all&per_page=100`),rT(`repos/${e}/${t}/labels?per_page=100`)]),i=[],a=[],s=new Map,o=new Set(nm(r)),u=new Map(r.filter(e=>o.has(e.title)).map(e=>[e.title,e])),c=[...new Set(nE(n).filter(e=>!o.has(e)))],l=[...o],[h,p]=await Promise.all([Promise.all(l.map(r=>rP(e,t,rj(r)))),Promise.all(c.map(r=>rP(e,t,rj(r))))]);return l.forEach((e,t)=>{let r=u.get(e);if(!r)return;let n={slug:e,goal:r.description??""},o=ny(r,h[t]??[]);"complete"===o.lifecycle?a.push(n):"active"===o.lifecycle&&i.push(n),s.set(e,o)}),c.forEach((e,t)=>{let n=nx(p[t]??[]),o=nv(r,e),u={goal:o,lifecycle:n};s.set(e,u),"active"===n?i.push({slug:e,goal:o}):"complete"===n&&a.push({slug:e,goal:o})}),{active:i,archived:a,facts:s,legacySlugs:o}}async function nS(e,t){return(await nD(e,t)).active}async function nw(e,t){return(await nD(e,t)).archived}function nC(e,t,r){return{name:e,lifecycle:r?.lifecycle??"active",goal:r?.goal??"",tasks:no(t),backlog:[]}}async function nA(e,t,r,n){let i=n??nb(e,t,r),a=await nu(e,t,r);return nC(r,a,i)}var n_=rd;(0,rg.promisify)(n_.execFile),process.env,[process.env.PATH,"/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin"].filter(Boolean).join(":");var nT=rd;let nk=(0,rg.promisify)(nT.execFile),nR={...process.env,PATH:[process.env.PATH,"/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin"].filter(Boolean).join(":")},nP=()=>nk("git",["remote","get-url","origin"],{env:nR,timeout:5e3});async function nO(e=nP){if(void 0!==i)return i;let t=process.env.AEG_REPO;if(t){let e=nN(t);if(e)return i=e}return a||(a=(async()=>{try{let{stdout:t}=await e();return i=nF(t.trim())}catch(t){let e=t instanceof Error?t.message:String(t);return console.warn(`[aeg-forge-state] resolveRepo: git remote lookup failed (will retry): ${e}`),null}finally{a=void 0}})())}function nF(e){let t=e.match(/^git@github\.com:([^/]+)\/(.+?)(?:\.git)?$/);if(t?.[1]&&t[2])return{owner:t[1],repo:t[2]};let r=e.match(/^https?:\/\/(?:[^@]+@)?github\.com\/([^/]+)\/(.+?)(?:\.git)?\/?$/);return r?.[1]&&r[2]?{owner:r[1],repo:r[2]}:null}function nN(e){let t=e.match(/^([^/]+)\/(.+)$/);return t?.[1]&&t[2]?{owner:t[1],repo:t[2]}:null}rB("blocked"),["backlog","todo","in-flight","in-review","changes-requested","merged","blocked","dropped","incoherent"].filter(e=>"backlog"!==e),e.i(666680);var nI=rf;nI.constants.O_RDONLY,nI.constants.O_NONBLOCK,nI.constants.O_NOFOLLOW,rB("waiver-docs"),rB("waiver-review"),/(?:[ \t]*[—–][ \t]*|[ \t]+-[ \t]+)/.source,rB("override-docs");let nM=["Build","Chore","Docs","Feat","Fix","Perf","Plan","Refactor","Revert","Style","Test"];RegExp(`^(${nM.join("|")})(\\([a-z0-9-]+\\))?: \\S`),rN.filter(e=>"type"===e.category).map(e=>e.id),e.i(714827),(0,rv.cache)(nS),(0,rv.cache)(nw),(0,rv.cache)(nA),(0,rv.cache)((e,t,r,n,i)=>nA(e,t,r,{goal:n,lifecycle:i}));let nB="projects.md",nj=".vinaya",nL=null;function nU(e=process.env.VINAYA_REPO_ROOT??process.cwd()){if(nL)return nL;let t=e;for(let e=0;e<8;e++){let e=rx.default.join(t,nj,nB);if((0,ry.existsSync)(e))return nL=t;let r=rx.default.dirname(t);if(r===t)break;t=r}return null}let nX=(0,rg.promisify)(rd.execFile);function n$(){let e=[process.env.HOME?rm.default.join(process.env.HOME,".bun","bin"):null,"/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin"].filter(Boolean);return{...process.env,PATH:[process.env.PATH,...e].filter(Boolean).join(":")}}async function nz(){let e,t,r=nU();if(null===r)return rp.NextResponse.json({summary:{passed:0,failed:0,info:0},forgeUnavailable:!0,checks:[],repo:null,oracleError:"Could not locate the repo root — Studio not running inside the repo."});let n=rm.default.join(r,"node_modules","@attalabs","aeg-core","bin","verify-coherence.ts"),i=n$();if(!(0,rf.existsSync)(n))return rp.NextResponse.json({summary:{passed:0,failed:0,info:0},forgeUnavailable:!0,checks:[],repo:null,oracleError:`Coherence oracle unavailable: ${n} does not exist. @attalabs/aeg-core may not be installed — run \`npm install @attalabs/aeg-core\` (or reinstall this package) to enable the coherence panel.`});try{e=(await nX("bun",[n,"--json"],{env:i,timeout:6e4,maxBuffer:4194304})).stdout}catch(r){let t=r&&"object"==typeof r&&"stdout"in r?String(r.stdout).trim():"";if(t.startsWith("{"))e=t;else{let e=r instanceof Error?r.message:"oracle subprocess failed";return rp.NextResponse.json({summary:{passed:0,failed:0,info:0},forgeUnavailable:!0,checks:[],repo:null,oracleError:e})}}try{t=JSON.parse(e)}catch{return rp.NextResponse.json({summary:{passed:0,failed:0,info:0},forgeUnavailable:!0,checks:[],repo:null,oracleError:"oracle output was not valid JSON"})}let a=await nO();return rp.NextResponse.json({...t,repo:a})}e.s(["GET",0,nz],101791);var nH=e.i(101791);let nG="standalone",nJ=new u.AppRouteRouteModule({definition:{kind:c.APP_ROUTE,page:"/api/coherence/route",pathname:"/api/coherence",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/apps/vinaya-studio/web/src/app/api/coherence/route.ts",nextConfigOutput:nG,userland:nH,...{}}),{workAsyncStorage:nV,workUnitAsyncStorage:nq,serverHooks:nW}=nJ;function nK(){return t$({workAsyncStorage:nV,workUnitAsyncStorage:nq})}async function nY(e,t,r){r.requestMeta&&eY(e,r.requestMeta),nJ.isDev&&eZ(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let n="/api/coherence/route";n=n.replace(/\/index$/,"")||"/";let i=!1,a=await nJ.prepare(e,t,{srcPage:n,multiZoneDraftMode:i});if(!a)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:s,deploymentId:o,params:u,nextConfig:h,parsedUrl:p,isDraftMode:d,prerenderManifest:f,routerServerContext:m,isOnDemandRevalidate:g,revalidateOnlyGenerated:y,resolvedPathname:x,clientReferenceManifest:v,serverActionsManifest:b}=a,E=tV(n),D=!!(f.dynamicRoutes[E]||f.routes[x]),S=async()=>((null==m?void 0:m.render404)?await m.render404(e,t,p,!1):t.end("This page could not be found"),null);if(D&&!d){let e=!!f.routes[x],t=f.dynamicRoutes[E];if(t&&!1===t.fallback&&!e){if(h.adapterPath)return await S();throw new rh.NoFallbackError}}let w=null;!D||nJ.isDev||d||(w="/index"===(w=x)?"/":w);let C=!0===nJ.isDev||!D,A=D&&!C;b&&v&&t6({page:n,clientReferenceManifest:v,serverActionsManifest:b});let _=e.method||"GET",T=X(),k=T.getActiveScopeSpan(),P=!!(null==m?void 0:m.isWrappedByNextServer),O=!!eK(e,"minimalMode"),F=eK(e,"incrementalCache")||await nJ.getIncrementalCache(e,h,f,O);null==F||F.resetRequestCache(),globalThis.__incrementalCache=F;let N={params:u,previewProps:f.preview,renderOpts:{experimental:{authInterrupts:!!h.experimental.authInterrupts},cacheComponents:!!h.cacheComponents,supportsDynamicResponse:C,incrementalCache:F,cacheLifeProfiles:h.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,i)=>nJ.onRequestError(e,t,n,i,m)},sharedContext:{buildId:s,deploymentId:o}},I=new rs(e),M=new ro(t),B=tE.fromNodeNextRequest(I,tb(t));try{let i,a=async e=>nJ.handle(B,N).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=T.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==l.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${_} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",a),i.updateName(t))}else e.updateName(`${_} ${n}`)}),s=async i=>{var s,o;let u=async({previousCacheEntry:s})=>{try{if(!O&&g&&y&&!s)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await a(i);e.fetchMetrics=N.renderOpts.fetchMetrics;let o=N.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let u=N.renderOpts.collectedTags;if(!D)return await rc(I,M,n,N.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=e1(n.headers);u&&(t[$]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==N.renderOpts.collectedRevalidate&&!(N.renderOpts.collectedRevalidate>=J)&&N.renderOpts.collectedRevalidate,i=void 0===N.renderOpts.collectedExpire||N.renderOpts.collectedExpire>=J?void 0:N.renderOpts.collectedExpire;return{value:{kind:eX.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:i}}}}catch(t){if(null==s?void 0:s.isStale){let r=!1;await nJ.onRequestError(e,t,{routerKind:"App Router",routePath:n,routeType:"route",revalidateReason:ru({isStaticGeneration:A,isOnDemandRevalidate:g})},r,m)}throw t}},l=await nJ.handleResponse({req:e,nextConfig:h,cacheKey:w,routeKind:c.APP_ROUTE,isFallback:!1,prerenderManifest:f,isRoutePPREnabled:!1,isOnDemandRevalidate:g,revalidateOnlyGenerated:y,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:O});if(!D)return null;if((null==l||null==(s=l.value)?void 0:s.kind)!==eX.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(o=l.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});O||t.setHeader("x-nextjs-cache",g?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),d&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=eQ(l.value.headers);return O&&D||p.delete($),!l.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",rl(l.cacheControl)),await rc(I,M,new Response(l.value.body,{headers:p,status:l.value.status||200})),null};P&&k?await s(k):(i=T.getActiveScopeSpan(),await T.withPropagatedContext(e.headers,()=>T.trace(l.handleRequest,{spanName:`${_} ${n}`,kind:R.SERVER,attributes:{"http.method":_,"http.target":e.url}},s),void 0,!P))}catch(t){if(!(t instanceof rh.NoFallbackError)){let r=!1;await nJ.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:ru({isStaticGeneration:A,isOnDemandRevalidate:g})},r,m)}if(D)throw t;return await rc(I,M,new Response(null,{status:500})),null}}e.s(["handler",0,nY,"patchFetch",0,nK,"routeModule",0,nJ,"serverHooks",0,nW,"workAsyncStorage",0,nV,"workUnitAsyncStorage",0,nq],194772)}];
|
|
13
|
+
Read more: https://nextjs.org/docs/messages/failed-to-find-server-action`),"__NEXT_ERROR_CODE",{value:"E1144",enumerable:!1,configurable:!0})}let t0=100,t1=90,t2=Symbol.for("next.server.manifests"),t3=globalThis;function t8(e){let t=t=>new Proxy({},{get(r,n){let i=tY.workAsyncStorage.getStore();if(i){let r=e.get(i.route);if(null==r?void 0:r[t][n])return r[t][n]}else for(let r of e.values()){let e=r[t][n];if(void 0!==e)return e}}}),r=new Map;return new Proxy({},{get(n,i){let a=tY.workAsyncStorage.getStore();switch(i){case"moduleLoading":case"entryCSSFiles":case"entryJSFiles":{if(!a)throw Object.defineProperty(new eb(`Cannot access "${i}" without a work store.`),"__NEXT_ERROR_CODE",{value:"E952",enumerable:!1,configurable:!0});let t=e.get(a.route);if(!t)throw Object.defineProperty(new eb(`The client reference manifest for route "${a.route}" does not exist.`),"__NEXT_ERROR_CODE",{value:"E951",enumerable:!1,configurable:!0});return t[i]}case"clientModules":case"rscModuleMapping":case"edgeRscModuleMapping":case"ssrModuleMapping":case"edgeSSRModuleMapping":{let e=r.get(i);return e||(e=t(i),r.set(i,e)),e}default:throw Object.defineProperty(new eb(`This is a proxied client reference manifest. The property "${String(i)}" is not handled.`),"__NEXT_ERROR_CODE",{value:"E953",enumerable:!1,configurable:!0})}}})}function t4(){return new Proxy(Object.create(null),{get:(e,t,r)=>{var n,i;let a;if("string"!=typeof t||tK.has(t))return Reflect.get(e,t,r);if(!tW(t))throw tQ(t);let s=null==(i=t7().node)||null==(n=i[t])?void 0:n.workers;if(!s)throw tZ(t);let o=tY.workAsyncStorage.getStore();if(!(a=o?s[t9(o.page)]:Object.values(s).at(0)))throw tZ(t);let{moduleId:u,async:c}=a;return{id:u,name:t,chunks:[],async:c}}})}function t9(e){return e5(e,"app")?e:"app"+e}function t6({page:e,clientReferenceManifest:t,serverActionsManifest:r}){let n=t3[t2],i={encryptionKey:r.encryptionKey,node:Object.assign(Object.create(null),r.node),edge:Object.assign(Object.create(null),r.edge)};if(n)n.clientReferenceManifestsPerRoute.set(tV(e),t),n.serverActionsManifest=i;else{let r=new Map([[tV(e),t]]),n=t8(r);t3[t2]={clientReferenceManifestsPerRoute:r,proxiedClientReferenceManifest:n,serverActionsManifest:i,serverModuleMap:t4()}}}function t5(){let e=t3[t2];if(!e)throw Object.defineProperty(new eb("The manifests singleton was not initialized."),"__NEXT_ERROR_CODE",{value:"E950",enumerable:!1,configurable:!0});return e}function t7(){return t5().serverActionsManifest}let re="__prerender_bypass";Symbol("__next_preview_data");let rt=Symbol(re);var rr=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});function rn(t){return function(){let{cookie:r}=t;if(!r)return{};let{parse:n}=e.r(93118);return n(Array.isArray(r)?r.join("; "):r)}}class ri{constructor(e,t,r){this.method=e,this.url=t,this.body=r}get cookies(){return this._cookies?this._cookies:this._cookies=rn(this.headers)()}}class ra{constructor(e){this.destination=e}redirect(e,t){return this.setHeader("Location",e),this.statusCode=t,t===rr.PermanentRedirect&&this.setHeader("Refresh",`0;url=${e}`),this}}class rs extends ri{static #e=n=o=eW;constructor(e){var t;super(e.method.toUpperCase(),e.url,e),this._req=e,this.headers=this._req.headers,this.fetchMetrics=null==(t=this._req)?void 0:t.fetchMetrics,this[o]=this._req[eW]||{},this.streaming=!1}get originalRequest(){return this._req[eW]=this[eW],this._req.url=this.url,this._req.cookies=this.cookies,this._req}set originalRequest(e){this._req=e}stream(){if(this.streaming)throw Object.defineProperty(Error("Invariant: NodeNextRequest.stream() can only be called once"),"__NEXT_ERROR_CODE",{value:"E467",enumerable:!1,configurable:!0});return this.streaming=!0,new ReadableStream({start:e=>{this._req.on("data",t=>{e.enqueue(new Uint8Array(t))}),this._req.on("end",()=>{e.close()}),this._req.on("error",t=>{e.error(t)})}})}}class ro extends ra{get originalResponse(){return rt in this&&(this._res[rt]=this[rt]),this._res}constructor(e){super(e),this._res=e,this.textBody=void 0}get sent(){return this._res.finished||this._res.headersSent}get statusCode(){return this._res.statusCode}set statusCode(e){this._res.statusCode=e}get statusMessage(){return this._res.statusMessage}set statusMessage(e){this._res.statusMessage=e}setHeader(e,t){return this._res.setHeader(e,t),this}removeHeader(e){return this._res.removeHeader(e),this}getHeaderValues(e){let t=this._res.getHeader(e);if(void 0!==t)return(Array.isArray(t)?t:[t]).map(e=>e.toString())}hasHeader(e){return this._res.hasHeader(e)}getHeader(e){let t=this.getHeaderValues(e);return Array.isArray(t)?t.join(","):void 0}getHeaders(){return this._res.getHeaders()}appendHeader(e,t){let r=this.getHeaderValues(e)??[];return r.includes(t)||this._res.setHeader(e,[...r,t]),this}body(e){return this.textBody=e,this}send(){this._res.end(this.textBody)}onClose(e){this.originalResponse.on("close",e)}}function ru(e){return e.isOnDemandRevalidate?"on-demand":e.isStaticGeneration?"stale":void 0}async function rc(e,t,r,n){if(tg(t)){var i;t.statusCode=r.status,t.statusMessage=r.statusText;let a=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(i=r.headers)||i.forEach((e,r)=>{if("x-middleware-set-cookie"!==r.toLowerCase())if("set-cookie"===r.toLowerCase())for(let n of e0(e))t.appendHeader(r,n);else{let n=void 0!==t.getHeader(r);(a.includes(r.toLowerCase())||!n)&&t.appendHeader(r,e)}});let{originalResponse:s}=t;r.body&&"HEAD"!==e.method?await tT(r.body,s,n):s.end()}}function rl({revalidate:e,expire:t}){let r="number"==typeof e&&void 0!==t&&e<t?`, stale-while-revalidate=${t-e}`:"";return 0===e?"private, no-cache, no-store, max-age=0, must-revalidate":"number"==typeof e?`s-maxage=${e}${r}`:`s-maxage=${G}${r}`}var rh=e.i(193695),rp=e.i(89171),rd=e.i(874533),rf=e.i(902157),rm=e.i(750227),rg=e.i(812057),ry=rf,rx=rm,rv=q,rb=rd;let rE=(0,rg.promisify)(rb.execFile),rD={...process.env,PATH:[process.env.PATH,"/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin"].filter(Boolean).join(":")};function rS(e){return(0,rb.execFileSync)("gh",e,{encoding:"utf8",env:rD})}async function rw(e){let{stdout:t}=await rE("gh",e,{encoding:"utf8",env:rD,maxBuffer:0x1000000});return t}function rC(e){return JSON.parse(rS(["api",e]))}let rA=100,r_=100;async function rT(e){let[t=e,r=""]=e.split("?"),n=new URLSearchParams(r);n.set("per_page",String(rA));let i=[];for(let e=1;e<=r_;e++){n.set("page",String(e));let r=JSON.parse(await rw(["api",`${t}?${n.toString()}`]));if(i.push(...r),r.length<rA)return i}throw Error(`ghApiGetAllPagesAsync: "${e}" did not terminate within ${r_} pages (${r_*rA} items) — refusing to keep walking.`)}function rk(e,t,r){return["issue","list","--repo",`${e}/${t}`,"--label",r,"--state","all","--json","number,title,body,state,labels,milestone","--limit","200"]}function rR(e,t,r){return JSON.parse(rS(rk(e,t,r)))}async function rP(e,t,r){return JSON.parse(await rw(rk(e,t,r)))}function rO(e){let t=new Map;for(let r of e)t.has(r.number)||t.set(r.number,r);return[...t.values()]}async function rF(e,t,r){return rO((await Promise.all(r.map(r=>rP(e,t,r)))).flat())}let rN=[{key:"blocked",id:"vinaya/blocked",category:"state",form:"literal",carries:"Execution is halted pending an external unblock; wins over every other derived status."},{key:"backlog",id:"vinaya/backlog",category:"state",form:"literal",carries:"The Issue is deliberately unplanned — belongs to no tranche and is excluded from dispatch, until a Planner promotes it."},{key:"tier-0",id:"vinaya/tier:0",category:"tier",form:"literal",carries:"Lowest governance weight — typecheck, lint, tests, and a conforming PR body."},{key:"tier-1",id:"vinaya/tier:1",category:"tier",form:"literal",carries:"Tier 0 plus spec/skill coverage and a passing verify-docs run."},{key:"tier-3",id:"vinaya/tier:3",category:"tier",form:"literal",carries:"Tier 1 plus the reasoning for the change, stated in the pull request that makes it."},{key:"tranche",id:"vinaya/tranche:",category:"tranche",form:"prefix",carries:"The tranche slug this task Issue belongs to — the forge's grouping key, matched by prefix."},{key:"needs-execution-input",id:"vinaya/needs:execution-input",category:"needs",form:"literal",carries:"Waiting on a missing execution detail — a flag, a dependency, a value the brief did not carry."},{key:"needs-strategy-input",id:"vinaya/needs:strategy-input",category:"needs",form:"literal",carries:"Waiting on a strategy call — the brief assumes an approach the codebase has moved away from."},{key:"needs-principal-input",id:"vinaya/needs:principal-input",category:"needs",form:"literal",carries:"Waiting on the Principal — a product-level call no agent may make."},{key:"needs-brief-correction",id:"vinaya/needs:brief-correction",category:"needs",form:"literal",carries:"Waiting on the Brief Author — the brief contradicts the surface it describes."},{key:"waiver-docs",id:"vinaya/waiver:docs",category:"waiver",form:"literal",carries:"Doc-coverage gate excused for this PR — honored only when a principal applied it."},{key:"waiver-review",id:"vinaya/waiver:review",category:"waiver",form:"literal",carries:"Review gate excused for this PR — honored only when a principal applied it."},{key:"override-docs",id:"vinaya/override:docs",category:"waiver",form:"literal",carries:"The whole verify-docs gate suppressed for this PR — a Principal-only blunt override, wider than a waiver."},{key:"incoherent",id:"vinaya/incoherent",category:"flag",form:"literal",carries:"Closed COMPLETED with no merged-PR link — done-but-unprovable, surfaced for a human."},{key:"direct-main-push",id:"vinaya/direct-main-push",category:"flag",form:"literal",carries:"A commit reached main with no associated merged PR — ring-2 detection, never a mutation."},{key:"dead-branch-push",id:"vinaya/dead-branch-push",category:"flag",form:"literal",carries:"Commits landed on a branch after its PR had already resolved — daily-drift detection."},{key:"state-object",id:"vinaya/state-object",category:"kind",form:"literal",carries:"A permanent forge-native storage object, never actionable work — excluded from every backlog."},{key:"type-build",id:"vinaya/type:build",category:"type",form:"literal",carries:"The task changes the build system, packaging, or an external dependency rather than product behavior."},{key:"type-chore",id:"vinaya/type:chore",category:"type",form:"literal",carries:"The task is maintenance or repo housekeeping with no functional, user-facing change."},{key:"type-docs",id:"vinaya/type:docs",category:"type",form:"literal",carries:"The task changes documentation only, with no code behavior affected."},{key:"type-feat",id:"vinaya/type:feat",category:"type",form:"literal",carries:"The task adds a capability that did not exist before."},{key:"type-fix",id:"vinaya/type:fix",category:"type",form:"literal",carries:"The task corrects incorrect behavior — a bug, not a missing capability."},{key:"type-perf",id:"vinaya/type:perf",category:"type",form:"literal",carries:"The task improves performance or resource use without changing observable behavior."},{key:"type-refactor",id:"vinaya/type:refactor",category:"type",form:"literal",carries:"The task restructures existing code without changing its external behavior."},{key:"type-revert",id:"vinaya/type:revert",category:"type",form:"literal",carries:"The task undoes a previous change that shipped in error or is no longer wanted."},{key:"type-style",id:"vinaya/type:style",category:"type",form:"literal",carries:"The task changes formatting, naming, or non-semantic code shape with no logic change."},{key:"type-test",id:"vinaya/type:test",category:"type",form:"literal",carries:"The task adds or corrects test coverage with no production-code behavior change."}],rI=new Map(rN.map(e=>[e.key,e]));function rM(e){let t=rI.get(e);if(!t)throw Error(`labels.ts: no LABELS entry for key '${e}'`);return t}function rB(e){return rM(e).id}function rj(e){return`${rB("tranche")}${e}`}function rL(e){let t=rM("tranche").id;return e.startsWith(t)?e.slice(t.length):null}let rU=/\*\*Dependency rationale\*\*/i,rX=/\*\*[A-Z][^*]*\*\*/,r$=/^(Depends-on|Conflicts-with)\s*:\s*(.*)$/i,rz=/^(?:[\w.-]+\s+)?#?\d+[a-z]?$/i,rH=/^([\w.-]+)\s+(#?\d+[a-z]?)$/i;function rG(e){let t=e.trim();return""===t||"—"===t||"-"===t||"–"===t}function rJ(e,t){for(let r of t)e.includes(r)||e.push(r)}function rV(e){return rG(e)?[]:e.split(",").map(e=>e.trim()).filter(e=>e.length>0&&!rG(e)&&rz.test(e))}function rq(e){let t=rV(e),r=[],n=null;for(let e of t){let t=e.match(rH);t?(n=t[1]??null,r.push(e)):n?(r.push(`${n} ${e}`),n=null):r.push(e)}return r}function rW(e){let t=e.match(rU);if(!t||void 0===t.index)return"";let r=e.slice(t.index+t[0].length),n=r.match(rX),i=n&&void 0!==n.index?n.index:r.length;return r.slice(0,i)}function rK(e){let t=rW(e),r=[],n=[],i=new Set,a=/`([^`]*)`/g,s=a.exec(t);for(;null!==s;){let e=(s[1]??"").trim().match(r$);if(e){let t=e[1]?.toLowerCase()==="conflicts-with"?"conflictsWith":"dependsOn";i.has(t)||(i.add(t),rJ("dependsOn"===t?r:n,rq(e[2]??"")))}s=a.exec(t)}return{dependsOn:r,conflictsWith:n}}function rY(e,t={}){let r=e.replace(/\r\n?/g,"\n"),n=()=>"",i=r9(r1(r,n),n);return"keep"===t.inlineSpans?i:i.split("\n").map(e=>rZ(e,()=>"")).join("\n")}function rZ(e,t){let r="",n=0,i=t=>{let r=t;for(;r<e.length&&"`"===e[r];)r++;return r-t};for(;n<e.length;){if("`"!==e[n]){r+=e[n],n++;continue}let a=i(n),s=n+a,o=s,u=-1;for(;o<e.length;){if("`"!==e[o]){o++;continue}let t=i(o);if(t===a){u=o+t;break}o+=t}-1===u?(r+=e.slice(n,s),n=s):(r+=t(e.slice(n,u)),n=u)}return r}let rQ=/^ {0,3}(`{3,}|~{3,})([^\r\n]*)\r?$/,r0=/^ {0,3}(`+|~+)[ \t]*\r?$/;function r1(e,t){let{lines:r}=r2(e);return r.map(({line:e,inCode:r})=>r?t(e):e).join("\n")}function r2(e){let t=null,r=0;return{lines:e.split("\n").map(e=>{if(null===t){let n=e.match(rQ);if(!n)return{line:e,inCode:!1};let i=n[1];return"`"===i[0]&&n[2].includes("`")?{line:e,inCode:!1}:(t=i[0],r=i.length,{line:e,inCode:!0})}let n=e.match(r0);return n&&n[1][0]===t&&n[1].length>=r&&(t=null,r=0),{line:e,inCode:!0}}),unterminated:null!==t}}function r3(e){return r2(e.replace(/\r\n?/g,"\n")).unterminated}let r8=/^ {0,3}(?:[-*+]|\d{1,9}[.)])(?:\s|$)/;function r4(e){let t=0;for(let r of e)if(" "===r)t+=1;else if(" "===r)t+=4;else break;return t}function r9(e,t){let r=e.split("\n"),n=!1,i=!1,a=!0;return r.map(e=>{if(""===e.trim())return a=!0,e;let r=r4(e);return r>=4&&(i||a&&!n)?(i=!0,a=!1,t(e)):(i=!1,r<4&&r8.test(e)?n=!0:0===r&&(n=!1),a=!1,e)}).join("\n")}let r6=/^\[([^\]]+)]\s*(\S+)\s*—\s*(.+)$/,r5=/^[a-z0-9][a-z0-9-]*$/i,r7=/^\s*(?:\*\*)?Project(?:\(s\))?(?:\*\*)?\s*:\s*(?:\*\*)?\s*(.+)$/im,ne=/^[`.;\s]+|[`.;\s]+$/g;function nt(e){return e.replace(/\*\*/g,"").replace(ne,"")}function nr(e){let t=rY(e,{inlineSpans:"keep"}).match(r7);if(t)return nn(t[1]??"");if(r3(e)){let t=e.match(r7);if(t)return{declared:!0,names:[],unparsed:[(t[1]??"").trim()],unreadable:!0}}return{declared:!1,names:[],unparsed:[],unreadable:!1}}function nn(e){let t=[],r=[];for(let n of e.split(",")){let e=nt(n);0!==e.length&&(r5.test(e)?t.push(e):r.push(n.trim()))}return{declared:!0,names:[...new Set(t)],unparsed:r,unreadable:!1}}function ni(e){return nr(e).names}function na(e){let t=e.title.match(r6);if(!t)return null;let r=(t[2]??"").trim(),n=(t[3]??"").trim();if(!r||!n)return null;let i=e.body??"",{dependsOn:a,conflictsWith:s}=rK(i);return{id:r,title:n,issue:e.number,projects:ni(i),dependsOn:a,conflictsWith:s,rationaleMarkdown:i}}function ns(e,t){let r=e.match(/^(\d+)(.*)$/),n=t.match(/^(\d+)(.*)$/);if(r&&n){let e=Number(r[1])-Number(n[1]);return 0!==e?e:(r[2]??"").localeCompare(n[2]??"")}return e.localeCompare(t)}function no(e){let t=[];for(let r of e){let e=na(r);e&&t.push(e)}return t.sort((e,t)=>ns(e.id,t.id))}async function nu(e,t,r){return rF(e,t,[rj(r)])}let nc=/^#{1,6}\s*Tranche intents\s*$/im,nl=/^#{1,6}\s+\S/m,nh=/^-\s+([a-z0-9][a-z0-9-]*)\s*:\s*(.+)$/i;function np(e,t){let r=rY(e,{inlineSpans:"keep"}),n=r.match(nc);if(!n||void 0===n.index)return"";let i=r.slice(n.index+n[0].length),a=i.match(nl);for(let e of i.slice(0,a&&void 0!==a.index?a.index:i.length).split("\n")){let r=e.trim();if(0===r.length)continue;let n=r.match(nh);if(n&&(n[1]??"").toLowerCase()===t.toLowerCase())return(n[2]??"").trim()}return""}function nd(e,t){return e.find(e=>e.title===t)??null}let nf=/^[a-z0-9]+(?:-[a-z0-9]+)*-v\d+$/;function nm(e){return e.map(e=>e.title).filter(e=>nf.test(e))}function ng(e){return{goal:e.description??"",lifecycle:"closed"===e.state?"complete":"active"}}function ny(e,t){return"closed"===e.state&&t.length>0?{goal:e.description??"",lifecycle:nx(t)}:ng(e)}function nx(e){return 0===e.length?"planned":e.some(e=>"OPEN"===e.state)?"active":"complete"}function nv(e,t){for(let r of e){let e=np(r.description??"",t);if(e)return e}return""}function nb(e,t,r){let n=rC(`repos/${e}/${t}/milestones?state=all&per_page=100`),i=nd(n,r),a=rR(e,t,rj(r));return i?ny(i,a):{goal:nv(n,r),lifecycle:nx(a)}}function nE(e){let t=[];for(let r of e){let e=rL(r.name);null!==e&&t.push(e)}return t}async function nD(e,t){let[r,n]=await Promise.all([rT(`repos/${e}/${t}/milestones?state=all&per_page=100`),rT(`repos/${e}/${t}/labels?per_page=100`)]),i=[],a=[],s=new Map,o=new Set(nm(r)),u=new Map(r.filter(e=>o.has(e.title)).map(e=>[e.title,e])),c=[...new Set(nE(n).filter(e=>!o.has(e)))],l=[...o],[h,p]=await Promise.all([Promise.all(l.map(r=>rP(e,t,rj(r)))),Promise.all(c.map(r=>rP(e,t,rj(r))))]);return l.forEach((e,t)=>{let r=u.get(e);if(!r)return;let n={slug:e,goal:r.description??""},o=ny(r,h[t]??[]);"complete"===o.lifecycle?a.push(n):"active"===o.lifecycle&&i.push(n),s.set(e,o)}),c.forEach((e,t)=>{let n=nx(p[t]??[]),o=nv(r,e),u={goal:o,lifecycle:n};s.set(e,u),"active"===n?i.push({slug:e,goal:o}):"complete"===n&&a.push({slug:e,goal:o})}),{active:i,archived:a,facts:s,legacySlugs:o}}async function nS(e,t){return(await nD(e,t)).active}async function nw(e,t){return(await nD(e,t)).archived}function nC(e,t,r){return{name:e,lifecycle:r?.lifecycle??"active",goal:r?.goal??"",tasks:no(t),backlog:[]}}async function nA(e,t,r,n){let i=n??nb(e,t,r),a=await nu(e,t,r);return nC(r,a,i)}var n_=rd;(0,rg.promisify)(n_.execFile),process.env,[process.env.PATH,"/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin"].filter(Boolean).join(":");var nT=rd;let nk=(0,rg.promisify)(nT.execFile),nR={...process.env,PATH:[process.env.PATH,"/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin"].filter(Boolean).join(":")},nP=()=>nk("git",["remote","get-url","origin"],{env:nR,timeout:5e3});async function nO(e=nP){if(void 0!==i)return i;let t=process.env.AEG_REPO;if(t){let e=nN(t);if(e)return i=e}return a||(a=(async()=>{try{let{stdout:t}=await e();return i=nF(t.trim())}catch(t){let e=t instanceof Error?t.message:String(t);return console.warn(`[aeg-forge-state] resolveRepo: git remote lookup failed (will retry): ${e}`),null}finally{a=void 0}})())}function nF(e){let t=e.match(/^git@github\.com:([^/]+)\/(.+?)(?:\.git)?$/);if(t?.[1]&&t[2])return{owner:t[1],repo:t[2]};let r=e.match(/^https?:\/\/(?:[^@]+@)?github\.com\/([^/]+)\/(.+?)(?:\.git)?\/?$/);return r?.[1]&&r[2]?{owner:r[1],repo:r[2]}:null}function nN(e){let t=e.match(/^([^/]+)\/(.+)$/);return t?.[1]&&t[2]?{owner:t[1],repo:t[2]}:null}rB("blocked"),["backlog","todo","in-flight","in-review","changes-requested","merged","blocked","dropped","incoherent"].filter(e=>"backlog"!==e),rB("waiver-docs"),rB("waiver-review"),e.i(666680);var nI=rf;nI.constants.O_RDONLY,nI.constants.O_NONBLOCK,nI.constants.O_NOFOLLOW,/(?:[ \t]*[—–][ \t]*|[ \t]+-[ \t]+)/.source,rB("override-docs");let nM=["Build","Chore","Docs","Feat","Fix","Perf","Plan","Refactor","Revert","Style","Test"];RegExp(`^(${nM.join("|")})(\\([a-z0-9-]+\\))?: \\S`),rN.filter(e=>"type"===e.category).map(e=>e.id),e.i(714827),(0,rv.cache)(nS),(0,rv.cache)(nw),(0,rv.cache)(nA),(0,rv.cache)((e,t,r,n,i)=>nA(e,t,r,{goal:n,lifecycle:i}));let nB="projects.md",nj=".vinaya",nL=null;function nU(e=process.env.VINAYA_REPO_ROOT??process.cwd()){if(nL)return nL;let t=e;for(let e=0;e<8;e++){let e=rx.default.join(t,nj,nB);if((0,ry.existsSync)(e))return nL=t;let r=rx.default.dirname(t);if(r===t)break;t=r}return null}let nX=(0,rg.promisify)(rd.execFile);function n$(){let e=[process.env.HOME?rm.default.join(process.env.HOME,".bun","bin"):null,"/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin"].filter(Boolean);return{...process.env,PATH:[process.env.PATH,...e].filter(Boolean).join(":")}}async function nz(){let e,t,r=nU();if(null===r)return rp.NextResponse.json({summary:{passed:0,failed:0,info:0},forgeUnavailable:!0,checks:[],repo:null,oracleError:"Could not locate the repo root — Studio not running inside the repo."});let n=rm.default.join(r,"node_modules","@attalabs","aeg-core","bin","verify-coherence.ts"),i=n$();if(!(0,rf.existsSync)(n))return rp.NextResponse.json({summary:{passed:0,failed:0,info:0},forgeUnavailable:!0,checks:[],repo:null,oracleError:`Coherence oracle unavailable: ${n} does not exist. @attalabs/aeg-core may not be installed — run \`npm install @attalabs/aeg-core\` (or reinstall this package) to enable the coherence panel.`});try{e=(await nX("bun",[n,"--json"],{env:i,timeout:6e4,maxBuffer:4194304})).stdout}catch(r){let t=r&&"object"==typeof r&&"stdout"in r?String(r.stdout).trim():"";if(t.startsWith("{"))e=t;else{let e=r instanceof Error?r.message:"oracle subprocess failed";return rp.NextResponse.json({summary:{passed:0,failed:0,info:0},forgeUnavailable:!0,checks:[],repo:null,oracleError:e})}}try{t=JSON.parse(e)}catch{return rp.NextResponse.json({summary:{passed:0,failed:0,info:0},forgeUnavailable:!0,checks:[],repo:null,oracleError:"oracle output was not valid JSON"})}let a=await nO();return rp.NextResponse.json({...t,repo:a})}e.s(["GET",0,nz],101791);var nH=e.i(101791);let nG="standalone",nJ=new u.AppRouteRouteModule({definition:{kind:c.APP_ROUTE,page:"/api/coherence/route",pathname:"/api/coherence",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/apps/vinaya-studio/web/src/app/api/coherence/route.ts",nextConfigOutput:nG,userland:nH,...{}}),{workAsyncStorage:nV,workUnitAsyncStorage:nq,serverHooks:nW}=nJ;function nK(){return t$({workAsyncStorage:nV,workUnitAsyncStorage:nq})}async function nY(e,t,r){r.requestMeta&&eY(e,r.requestMeta),nJ.isDev&&eZ(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let n="/api/coherence/route";n=n.replace(/\/index$/,"")||"/";let i=!1,a=await nJ.prepare(e,t,{srcPage:n,multiZoneDraftMode:i});if(!a)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:s,deploymentId:o,params:u,nextConfig:h,parsedUrl:p,isDraftMode:d,prerenderManifest:f,routerServerContext:m,isOnDemandRevalidate:g,revalidateOnlyGenerated:y,resolvedPathname:x,clientReferenceManifest:v,serverActionsManifest:b}=a,E=tV(n),D=!!(f.dynamicRoutes[E]||f.routes[x]),S=async()=>((null==m?void 0:m.render404)?await m.render404(e,t,p,!1):t.end("This page could not be found"),null);if(D&&!d){let e=!!f.routes[x],t=f.dynamicRoutes[E];if(t&&!1===t.fallback&&!e){if(h.adapterPath)return await S();throw new rh.NoFallbackError}}let w=null;!D||nJ.isDev||d||(w="/index"===(w=x)?"/":w);let C=!0===nJ.isDev||!D,A=D&&!C;b&&v&&t6({page:n,clientReferenceManifest:v,serverActionsManifest:b});let _=e.method||"GET",T=X(),k=T.getActiveScopeSpan(),P=!!(null==m?void 0:m.isWrappedByNextServer),O=!!eK(e,"minimalMode"),F=eK(e,"incrementalCache")||await nJ.getIncrementalCache(e,h,f,O);null==F||F.resetRequestCache(),globalThis.__incrementalCache=F;let N={params:u,previewProps:f.preview,renderOpts:{experimental:{authInterrupts:!!h.experimental.authInterrupts},cacheComponents:!!h.cacheComponents,supportsDynamicResponse:C,incrementalCache:F,cacheLifeProfiles:h.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,i)=>nJ.onRequestError(e,t,n,i,m)},sharedContext:{buildId:s,deploymentId:o}},I=new rs(e),M=new ro(t),B=tE.fromNodeNextRequest(I,tb(t));try{let i,a=async e=>nJ.handle(B,N).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=T.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==l.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${_} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",a),i.updateName(t))}else e.updateName(`${_} ${n}`)}),s=async i=>{var s,o;let u=async({previousCacheEntry:s})=>{try{if(!O&&g&&y&&!s)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await a(i);e.fetchMetrics=N.renderOpts.fetchMetrics;let o=N.renderOpts.pendingWaitUntil;o&&r.waitUntil&&(r.waitUntil(o),o=void 0);let u=N.renderOpts.collectedTags;if(!D)return await rc(I,M,n,N.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=e1(n.headers);u&&(t[$]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==N.renderOpts.collectedRevalidate&&!(N.renderOpts.collectedRevalidate>=J)&&N.renderOpts.collectedRevalidate,i=void 0===N.renderOpts.collectedExpire||N.renderOpts.collectedExpire>=J?void 0:N.renderOpts.collectedExpire;return{value:{kind:eX.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:i}}}}catch(t){if(null==s?void 0:s.isStale){let r=!1;await nJ.onRequestError(e,t,{routerKind:"App Router",routePath:n,routeType:"route",revalidateReason:ru({isStaticGeneration:A,isOnDemandRevalidate:g})},r,m)}throw t}},l=await nJ.handleResponse({req:e,nextConfig:h,cacheKey:w,routeKind:c.APP_ROUTE,isFallback:!1,prerenderManifest:f,isRoutePPREnabled:!1,isOnDemandRevalidate:g,revalidateOnlyGenerated:y,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:O});if(!D)return null;if((null==l||null==(s=l.value)?void 0:s.kind)!==eX.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(o=l.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});O||t.setHeader("x-nextjs-cache",g?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),d&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=eQ(l.value.headers);return O&&D||p.delete($),!l.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",rl(l.cacheControl)),await rc(I,M,new Response(l.value.body,{headers:p,status:l.value.status||200})),null};P&&k?await s(k):(i=T.getActiveScopeSpan(),await T.withPropagatedContext(e.headers,()=>T.trace(l.handleRequest,{spanName:`${_} ${n}`,kind:R.SERVER,attributes:{"http.method":_,"http.target":e.url}},s),void 0,!P))}catch(t){if(!(t instanceof rh.NoFallbackError)){let r=!1;await nJ.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:ru({isStaticGeneration:A,isOnDemandRevalidate:g})},r,m)}if(D)throw t;return await rc(I,M,new Response(null,{status:500})),null}}e.s(["handler",0,nY,"patchFetch",0,nK,"routeModule",0,nJ,"serverHooks",0,nW,"workAsyncStorage",0,nV,"workUnitAsyncStorage",0,nq],194772)}];
|
|
14
14
|
|
|
15
15
|
//# sourceMappingURL=%5Broot-of-the-server%5D__02a-3g8._.js.map
|