@skyramp/mcp 0.2.7 → 0.2.8-rc.1
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/build/index.js +5 -2
- package/build/prompts/enhance-assertions/uiAssertionsPrompt.js +24 -5
- package/build/prompts/sut-setup/modes/adaptWorkflowPrompt.d.ts +2 -0
- package/build/prompts/sut-setup/modes/adaptWorkflowPrompt.js +114 -0
- package/build/prompts/sut-setup/modes/dockerComposePrompt.d.ts +2 -0
- package/build/prompts/sut-setup/modes/dockerComposePrompt.js +292 -0
- package/build/prompts/sut-setup/shared.d.ts +39 -0
- package/build/prompts/sut-setup/shared.js +132 -0
- package/build/prompts/test-maintenance/driftAnalysisSections.js +9 -3
- package/build/prompts/test-recommendation/analysisOutputPrompt.js +1 -1
- package/build/prompts/test-recommendation/diffExecutionPlan.js +76 -2
- package/build/prompts/test-recommendation/test-recommendation-prompt.test.js +91 -0
- package/build/prompts/testbot/testbot-prompts.d.ts +16 -1
- package/build/prompts/testbot/testbot-prompts.js +113 -22
- package/build/prompts/testbot/testbot-prompts.test.js +95 -45
- package/build/resources/sutSetupResource.d.ts +2 -0
- package/build/resources/sutSetupResource.js +45 -0
- package/build/resources/testbotResource.js +2 -2
- package/build/services/TestDiscoveryService.d.ts +2 -2
- package/build/services/TestDiscoveryService.js +22 -12
- package/build/services/TestExecutionService.d.ts +10 -1
- package/build/services/TestExecutionService.js +158 -26
- package/build/services/TestExecutionService.test.js +306 -0
- package/build/tools/executeSkyrampTestTool.js +26 -7
- package/build/tools/generate-tests/generateBatchScenarioRestTool.js +1 -1
- package/build/tools/submitReportTool.d.ts +10 -0
- package/build/tools/submitReportTool.js +106 -39
- package/build/tools/submitReportTool.test.js +296 -50
- package/build/tools/test-management/actionsTool.js +21 -7
- package/build/tools/test-management/analyzeChangesTool.d.ts +1 -1
- package/build/tools/test-management/analyzeChangesTool.js +106 -41
- package/build/tools/test-management/analyzeChangesTool.test.js +21 -41
- package/build/tools/test-management/analyzeTestHealthTool.js +16 -9
- package/build/tools/workspace/initializeWorkspaceTool.js +39 -22
- package/build/tools/workspace/serviceUpsert.d.ts +12 -0
- package/build/tools/workspace/serviceUpsert.js +23 -0
- package/build/tools/workspace/serviceUpsert.test.d.ts +1 -0
- package/build/tools/workspace/serviceUpsert.test.js +50 -0
- package/build/types/TestAnalysis.d.ts +2 -1
- package/build/types/TestExecution.d.ts +12 -2
- package/build/types/TestExecution.js +11 -1
- package/build/types/TestbotReport.d.ts +68 -0
- package/build/types/TestbotReport.js +1 -0
- package/build/types/index.d.ts +4 -0
- package/build/types/index.js +3 -0
- package/build/utils/AnalysisStateManager.d.ts +61 -1
- package/build/utils/AnalysisStateManager.js +144 -3
- package/build/utils/AnalysisStateManager.test.js +98 -0
- package/build/utils/docker.test.js +1 -1
- package/build/utils/routeParsers.d.ts +0 -10
- package/build/utils/routeParsers.js +31 -38
- package/build/utils/scenarioDrafting.d.ts +1 -1
- package/build/utils/scenarioDrafting.js +23 -1
- package/build/utils/utils.d.ts +7 -1
- package/build/utils/utils.js +10 -0
- package/build/utils/versions.d.ts +3 -3
- package/build/utils/versions.js +1 -1
- package/build/workspace/workspace.d.ts +10 -10
- package/build/workspace/workspace.js +7 -7
- package/build/workspace/workspace.test.js +6 -6
- package/node_modules/playwright/lib/mcp/skyramp/loadTraceTool.js +31 -13
- package/node_modules/playwright/lib/mcp/skyramp/traceRecordingBackend.js +88 -15
- package/node_modules/playwright/lib/mcp/test/skyRampExport.js +4 -3
- package/node_modules/playwright/node_modules/playwright-core/ThirdPartyNotices.txt +23 -126
- package/node_modules/playwright/node_modules/playwright-core/lib/generated/injectedScriptSource.js +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder/recorderApp.js +79 -19
- package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder/skyramp/aliasRemapper.js +84 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder/skyramp/replayEngine.js +15 -4
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/{codeMirrorModule-CPZKmjFR.js → codeMirrorModule-D0BjbCb7.js} +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/index-lvTRGFx-.js +193 -0
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/index.html +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/assets/{codeMirrorModule-B0JOjboO.js → codeMirrorModule-Cqp3cwEJ.js} +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/assets/{defaultSettingsView-1anWeyDf.js → defaultSettingsView-CYf9adZh.js} +79 -79
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/{index.Cc5029a3.js → index.B_7ywgmr.js} +1 -1
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.html +2 -2
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +2 -2
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/{uiMode.Wo5yvvVh.js → uiMode.u4_8VnCV.js} +1 -1
- package/node_modules/playwright/node_modules/playwright-core/package.json +1 -1
- package/node_modules/playwright/node_modules/playwright-core/src/generated/injectedScriptSource.ts +1 -1
- package/node_modules/playwright/node_modules/playwright-core/src/server/recorder/recorderApp.ts +129 -43
- package/node_modules/playwright/node_modules/playwright-core/src/server/recorder/skyramp/aliasRemapper.ts +119 -0
- package/node_modules/playwright/node_modules/playwright-core/src/server/recorder/skyramp/replayEngine.ts +33 -10
- package/node_modules/playwright/package.json +1 -1
- package/package.json +10 -3
- package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/.bin/node-which +0 -52
- package/node_modules/playwright/node_modules/playwright-core/bundles/utils/node_modules/.bin/is-docker +0 -5
- package/node_modules/playwright/node_modules/playwright-core/bundles/utils/node_modules/.bin/mime +0 -46
- package/node_modules/playwright/node_modules/playwright-core/bundles/utils/node_modules/.bin/yaml +0 -11
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/index-CsgPR2wy.js +0 -193
- package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.CP3Y8Zsb.js +0 -2
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-CPZKmjFR.js","assets/codeMirrorModule-DYBRYzYX.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const o of c)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function i(c){const o={};return c.integrity&&(o.integrity=c.integrity),c.referrerPolicy&&(o.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?o.credentials="include":c.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(c){if(c.ep)return;c.ep=!0;const o=i(c);fetch(c.href,o)}})();function S1(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var lf={exports:{}},Oi={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Fm;function T1(){if(Fm)return Oi;Fm=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(s,c,o){var h=null;if(o!==void 0&&(h=""+o),c.key!==void 0&&(h=""+c.key),"key"in c){o={};for(var m in c)m!=="key"&&(o[m]=c[m])}else o=c;return c=o.ref,{$$typeof:u,type:s,key:h,ref:c!==void 0?c:null,props:o}}return Oi.Fragment=l,Oi.jsx=i,Oi.jsxs=i,Oi}var Im;function w1(){return Im||(Im=1,lf.exports=T1()),lf.exports}var K=w1(),af={exports:{}},re={};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Pm;function E1(){if(Pm)return re;Pm=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function E(b){return b===null||typeof b!="object"?null:(b=N&&b[N]||b["@@iterator"],typeof b=="function"?b:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,A={};function M(b,R,X){this.props=b,this.context=R,this.refs=A,this.updater=X||x}M.prototype.isReactComponent={},M.prototype.setState=function(b,R){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,R,"setState")},M.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function U(){}U.prototype=M.prototype;function $(b,R,X){this.props=b,this.context=R,this.refs=A,this.updater=X||x}var Z=$.prototype=new U;Z.constructor=$,S(Z,M.prototype),Z.isPureReactComponent=!0;var W=Array.isArray;function J(){}var G={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function L(b,R,X){var F=X.ref;return{$$typeof:u,type:b,key:R,ref:F!==void 0?F:null,props:X}}function se(b,R){return L(b.type,R,b.props)}function ae(b){return typeof b=="object"&&b!==null&&b.$$typeof===u}function Y(b){var R={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(X){return R[X]})}var P=/\/+/g;function ue(b,R){return typeof b=="object"&&b!==null&&b.key!=null?Y(""+b.key):R.toString(36)}function Ye(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(J,J):(b.status="pending",b.then(function(R){b.status==="pending"&&(b.status="fulfilled",b.value=R)},function(R){b.status==="pending"&&(b.status="rejected",b.reason=R)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function k(b,R,X,F,ie){var oe=typeof b;(oe==="undefined"||oe==="boolean")&&(b=null);var be=!1;if(b===null)be=!0;else switch(oe){case"bigint":case"string":case"number":be=!0;break;case"object":switch(b.$$typeof){case u:case l:be=!0;break;case w:return be=b._init,k(be(b._payload),R,X,F,ie)}}if(be)return ie=ie(b),be=F===""?"."+ue(b,0):F,W(ie)?(X="",be!=null&&(X=be.replace(P,"$&/")+"/"),k(ie,R,X,"",function(Da){return Da})):ie!=null&&(ae(ie)&&(ie=se(ie,X+(ie.key==null||b&&b.key===ie.key?"":(""+ie.key).replace(P,"$&/")+"/")+be)),R.push(ie)),1;be=0;var $e=F===""?".":F+":";if(W(b))for(var Ue=0;Ue<b.length;Ue++)F=b[Ue],oe=$e+ue(F,Ue),be+=k(F,R,X,oe,ie);else if(Ue=E(b),typeof Ue=="function")for(b=Ue.call(b),Ue=0;!(F=b.next()).done;)F=F.value,oe=$e+ue(F,Ue++),be+=k(F,R,X,oe,ie);else if(oe==="object"){if(typeof b.then=="function")return k(Ye(b),R,X,F,ie);throw R=String(b),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(b,R,X){if(b==null)return b;var F=[],ie=0;return k(b,F,"","",function(oe){return R.call(X,oe,ie++)}),F}function le(b){if(b._status===-1){var R=b._result;R=R(),R.then(function(X){(b._status===0||b._status===-1)&&(b._status=1,b._result=X)},function(X){(b._status===0||b._status===-1)&&(b._status=2,b._result=X)}),b._status===-1&&(b._status=0,b._result=R)}if(b._status===1)return b._result.default;throw b._result}var Ae=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},we={map:Q,forEach:function(b,R,X){Q(b,function(){R.apply(this,arguments)},X)},count:function(b){var R=0;return Q(b,function(){R++}),R},toArray:function(b){return Q(b,function(R){return R})||[]},only:function(b){if(!ae(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return re.Activity=v,re.Children=we,re.Component=M,re.Fragment=i,re.Profiler=c,re.PureComponent=$,re.StrictMode=s,re.Suspense=g,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,re.__COMPILER_RUNTIME={__proto__:null,c:function(b){return G.H.useMemoCache(b)}},re.cache=function(b){return function(){return b.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(b,R,X){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var F=S({},b.props),ie=b.key;if(R!=null)for(oe in R.key!==void 0&&(ie=""+R.key),R)!V.call(R,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&R.ref===void 0||(F[oe]=R[oe]);var oe=arguments.length-2;if(oe===1)F.children=X;else if(1<oe){for(var be=Array(oe),$e=0;$e<oe;$e++)be[$e]=arguments[$e+2];F.children=be}return L(b.type,ie,F)},re.createContext=function(b){return b={$$typeof:h,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:o,_context:b},b},re.createElement=function(b,R,X){var F,ie={},oe=null;if(R!=null)for(F in R.key!==void 0&&(oe=""+R.key),R)V.call(R,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ie[F]=R[F]);var be=arguments.length-2;if(be===1)ie.children=X;else if(1<be){for(var $e=Array(be),Ue=0;Ue<be;Ue++)$e[Ue]=arguments[Ue+2];ie.children=$e}if(b&&b.defaultProps)for(F in be=b.defaultProps,be)ie[F]===void 0&&(ie[F]=be[F]);return L(b,oe,ie)},re.createRef=function(){return{current:null}},re.forwardRef=function(b){return{$$typeof:m,render:b}},re.isValidElement=ae,re.lazy=function(b){return{$$typeof:w,_payload:{_status:-1,_result:b},_init:le}},re.memo=function(b,R){return{$$typeof:p,type:b,compare:R===void 0?null:R}},re.startTransition=function(b){var R=G.T,X={};G.T=X;try{var F=b(),ie=G.S;ie!==null&&ie(X,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(J,Ae)}catch(oe){Ae(oe)}finally{R!==null&&X.types!==null&&(R.types=X.types),G.T=R}},re.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},re.use=function(b){return G.H.use(b)},re.useActionState=function(b,R,X){return G.H.useActionState(b,R,X)},re.useCallback=function(b,R){return G.H.useCallback(b,R)},re.useContext=function(b){return G.H.useContext(b)},re.useDebugValue=function(){},re.useDeferredValue=function(b,R){return G.H.useDeferredValue(b,R)},re.useEffect=function(b,R){return G.H.useEffect(b,R)},re.useEffectEvent=function(b){return G.H.useEffectEvent(b)},re.useId=function(){return G.H.useId()},re.useImperativeHandle=function(b,R,X){return G.H.useImperativeHandle(b,R,X)},re.useInsertionEffect=function(b,R){return G.H.useInsertionEffect(b,R)},re.useLayoutEffect=function(b,R){return G.H.useLayoutEffect(b,R)},re.useMemo=function(b,R){return G.H.useMemo(b,R)},re.useOptimistic=function(b,R){return G.H.useOptimistic(b,R)},re.useReducer=function(b,R,X){return G.H.useReducer(b,R,X)},re.useRef=function(b){return G.H.useRef(b)},re.useState=function(b){return G.H.useState(b)},re.useSyncExternalStore=function(b,R,X){return G.H.useSyncExternalStore(b,R,X)},re.useTransition=function(){return G.H.useTransition()},re.version="19.2.1",re}var eg;function Df(){return eg||(eg=1,af.exports=E1()),af.exports}var ce=Df();const Fn=S1(ce);function xg(){const u=Fn.useRef(null),[l]=Sf(u);return[l,u]}function Sf(u){const[l,i]=Fn.useState(new DOMRect(0,0,10,10)),s=Fn.useCallback(()=>{const c=u==null?void 0:u.current;c&&i(c.getBoundingClientRect())},[u]);return Fn.useLayoutEffect(()=>{const c=u==null?void 0:u.current;if(!c)return;s();const o=new ResizeObserver(s);return o.observe(c),window.addEventListener("resize",s),()=>{o.disconnect(),window.removeEventListener("resize",s)}},[s,u]),[l,s]}function A1(u){if(u<0||!isFinite(u))return"-";if(u===0)return"0";if(u<1e3)return u.toFixed(0)+"ms";const l=u/1e3;if(l<60)return l.toFixed(1)+"s";const i=l/60;if(i<60)return i.toFixed(1)+"m";const s=i/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}function tg(u){const l=document.createElement("textarea");l.style.position="absolute",l.style.zIndex="-1000",l.value=u,document.body.appendChild(l),l.select(),document.execCommand("copy"),l.remove()}function Tf(u,l){u&&(l=da.getObject(u,l));const[i,s]=Fn.useState(l),c=Fn.useCallback(o=>{u?da.setObject(u,o):s(o)},[u,s]);return Fn.useEffect(()=>{if(u){const o=()=>s(da.getObject(u,l));return da.onChangeEmitter.addEventListener(u,o),()=>da.onChangeEmitter.removeEventListener(u,o)}},[l,u]),[i,c]}class O1{constructor(){this.onChangeEmitter=new EventTarget}getString(l,i){return localStorage[l]||i}setString(l,i){var s;localStorage[l]=i,this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}getObject(l,i){if(!localStorage[l])return i;try{return JSON.parse(localStorage[l])}catch{return i}}setObject(l,i){var s;localStorage[l]=JSON.stringify(i),this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}}const da=new O1;function El(...u){return u.filter(Boolean).join(" ")}const ng="\\u0000-\\u0020\\u007f-\\u009f",N1=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+ng+'"]{2,}[^\\s'+ng+`"')}\\],:;.!?]`,"ug"),_1="system",M1="theme",zg=window.matchMedia("(prefers-color-scheme: dark)");function C1(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",u=>{u.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",u=>{document.body.classList.add("inactive")},!1),wf(lg()),zg.addEventListener("change",()=>{wf(lg())}))}const x1=new Set;function wf(u){const l=Ef(),i=u==="system"?zg.matches?"dark-mode":"light-mode":u;if(l!==i){l&&document.documentElement.classList.remove(l),document.documentElement.classList.add(i);for(const s of x1)s(i)}}function lg(){return da.getString(M1,_1)}function Ef(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function z1(){const[u,l]=Fn.useState(Ef()==="dark-mode");return[u,i=>{Ef()==="dark-mode"!==i&&wf(i?"dark-mode":"light-mode"),l(i)}]}var sf={exports:{}},Ni={},uf={exports:{}},cf={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var ag;function D1(){return ag||(ag=1,(function(u){function l(k,Q){var le=k.length;k.push(Q);e:for(;0<le;){var Ae=le-1>>>1,we=k[Ae];if(0<c(we,Q))k[Ae]=Q,k[le]=we,le=Ae;else break e}}function i(k){return k.length===0?null:k[0]}function s(k){if(k.length===0)return null;var Q=k[0],le=k.pop();if(le!==Q){k[0]=le;e:for(var Ae=0,we=k.length,b=we>>>1;Ae<b;){var R=2*(Ae+1)-1,X=k[R],F=R+1,ie=k[F];if(0>c(X,le))F<we&&0>c(ie,X)?(k[Ae]=ie,k[F]=le,Ae=F):(k[Ae]=X,k[R]=le,Ae=R);else if(F<we&&0>c(ie,le))k[Ae]=ie,k[F]=le,Ae=F;else break e}}return Q}function c(k,Q){var le=k.sortIndex-Q.sortIndex;return le!==0?le:k.id-Q.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;u.unstable_now=function(){return o.now()}}else{var h=Date,m=h.now();u.unstable_now=function(){return h.now()-m}}var g=[],p=[],w=1,v=null,N=3,E=!1,x=!1,S=!1,A=!1,M=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function Z(k){for(var Q=i(p);Q!==null;){if(Q.callback===null)s(p);else if(Q.startTime<=k)s(p),Q.sortIndex=Q.expirationTime,l(g,Q);else break;Q=i(p)}}function W(k){if(S=!1,Z(k),!x)if(i(g)!==null)x=!0,J||(J=!0,Y());else{var Q=i(p);Q!==null&&Ye(W,Q.startTime-k)}}var J=!1,G=-1,V=5,L=-1;function se(){return A?!0:!(u.unstable_now()-L<V)}function ae(){if(A=!1,J){var k=u.unstable_now();L=k;var Q=!0;try{e:{x=!1,S&&(S=!1,U(G),G=-1),E=!0;var le=N;try{t:{for(Z(k),v=i(g);v!==null&&!(v.expirationTime>k&&se());){var Ae=v.callback;if(typeof Ae=="function"){v.callback=null,N=v.priorityLevel;var we=Ae(v.expirationTime<=k);if(k=u.unstable_now(),typeof we=="function"){v.callback=we,Z(k),Q=!0;break t}v===i(g)&&s(g),Z(k)}else s(g);v=i(g)}if(v!==null)Q=!0;else{var b=i(p);b!==null&&Ye(W,b.startTime-k),Q=!1}}break e}finally{v=null,N=le,E=!1}Q=void 0}}finally{Q?Y():J=!1}}}var Y;if(typeof $=="function")Y=function(){$(ae)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,ue=P.port2;P.port1.onmessage=ae,Y=function(){ue.postMessage(null)}}else Y=function(){M(ae,0)};function Ye(k,Q){G=M(function(){k(u.unstable_now())},Q)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(k){k.callback=null},u.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<k?Math.floor(1e3/k):5},u.unstable_getCurrentPriorityLevel=function(){return N},u.unstable_next=function(k){switch(N){case 1:case 2:case 3:var Q=3;break;default:Q=N}var le=N;N=Q;try{return k()}finally{N=le}},u.unstable_requestPaint=function(){A=!0},u.unstable_runWithPriority=function(k,Q){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var le=N;N=k;try{return Q()}finally{N=le}},u.unstable_scheduleCallback=function(k,Q,le){var Ae=u.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Ae+le:Ae):le=Ae,k){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=le+we,k={id:w++,callback:Q,priorityLevel:k,startTime:le,expirationTime:we,sortIndex:-1},le>Ae?(k.sortIndex=le,l(p,k),i(g)===null&&k===i(p)&&(S?(U(G),G=-1):S=!0,Ye(W,le-Ae))):(k.sortIndex=we,l(g,k),x||E||(x=!0,J||(J=!0,Y()))),k},u.unstable_shouldYield=se,u.unstable_wrapCallback=function(k){var Q=N;return function(){var le=N;N=Q;try{return k.apply(this,arguments)}finally{N=le}}}})(cf)),cf}var ig;function L1(){return ig||(ig=1,uf.exports=D1()),uf.exports}var rf={exports:{}},ct={};/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var sg;function U1(){if(sg)return ct;sg=1;var u=Df();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)p+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function o(g,p,w){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:g,containerInfo:p,implementation:w}}var h=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ct.createPortal=function(g,p){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return o(g,p,null,w)},ct.flushSync=function(g){var p=h.T,w=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=p,s.p=w,s.d.f()}},ct.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},ct.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},ct.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var w=p.as,v=m(w,p.crossOrigin),N=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;w==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:N,fetchPriority:E}):w==="script"&&s.d.X(g,{crossOrigin:v,integrity:N,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ct.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var w=m(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(g)},ct.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var w=p.as,v=m(w,p.crossOrigin);s.d.L(g,w,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ct.preloadModule=function(g,p){if(typeof g=="string")if(p){var w=m(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(g)},ct.requestFormReset=function(g){s.d.r(g)},ct.unstable_batchedUpdates=function(g,p){return g(p)},ct.useFormState=function(g,p,w){return h.H.useFormState(g,p,w)},ct.useFormStatus=function(){return h.H.useHostTransitionStatus()},ct.version="19.2.1",ct}var ug;function j1(){if(ug)return rf.exports;ug=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),rf.exports=U1(),rf.exports}/**
|
|
35
|
-
* @license React
|
|
36
|
-
* react-dom-client.production.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var cg;function k1(){if(cg)return Ni;cg=1;var u=L1(),l=Df(),i=j1();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(o(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var f=r.alternate;if(f===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===f.child){for(f=r.child;f;){if(f===n)return g(r),e;if(f===a)return g(r),t;f=f.sibling}throw Error(s(188))}if(n.return!==a.return)n=r,a=f;else{for(var d=!1,y=r.child;y;){if(y===n){d=!0,n=r,a=f;break}if(y===a){d=!0,a=r,n=f;break}y=y.sibling}if(!d){for(y=f.child;y;){if(y===n){d=!0,n=f,a=r;break}if(y===a){d=!0,a=f,n=r;break}y=y.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,N=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),$=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var P=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===P?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case M:return"Profiler";case A:return"StrictMode";case W:return"Suspense";case J:return"SuspenseList";case L:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case $:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var Ye=Array.isArray,k=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Ae=[],we=-1;function b(e){return{current:e}}function R(e){0>we||(e.current=Ae[we],Ae[we]=null,we--)}function X(e,t){we++,Ae[we]=e.current,e.current=t}var F=b(null),ie=b(null),oe=b(null),be=b(null);function $e(e,t){switch(X(oe,t),X(ie,e),X(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sm(t),e=Tm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(F),X(F,e)}function Ue(){R(F),R(ie),R(oe)}function Da(e){e.memoizedState!==null&&X(be,e);var t=F.current,n=Tm(t,e.type);t!==n&&(X(ie,e),X(F,n))}function Bi(e){ie.current===e&&(R(F),R(ie)),be.current===e&&(R(be),Ti._currentValue=le)}var qu,Jf;function tl(e){if(qu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qu=t&&t[1]||"",Jf=-1<n.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+qu+e+Jf}var Hu=!1;function Yu(e,t){if(!e||Hu)return"";Hu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(j){var D=j}Reflect.construct(e,[],H)}else{try{H.call()}catch(j){D=j}e.call(H.prototype)}}else{try{throw Error()}catch(j){D=j}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(j){if(j&&D&&typeof j.stack=="string")return[j.stack,D.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=a.DetermineComponentFrameRoot(),d=f[0],y=f[1];if(d&&y){var T=d.split(`
|
|
45
|
-
`),z=y.split(`
|
|
46
|
-
`);for(r=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(a===T.length||r===z.length)for(a=T.length-1,r=z.length-1;1<=a&&0<=r&&T[a]!==z[r];)r--;for(;1<=a&&0<=r;a--,r--)if(T[a]!==z[r]){if(a!==1||r!==1)do if(a--,r--,0>r||T[a]!==z[r]){var B=`
|
|
47
|
-
`+T[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=r);break}}}finally{Hu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?tl(n):""}function Fp(e,t){switch(e.tag){case 26:case 27:case 5:return tl(e.type);case 16:return tl("Lazy");case 13:return e.child!==t&&t!==null?tl("Suspense Fallback"):tl("Suspense");case 19:return tl("SuspenseList");case 0:case 15:return Yu(e.type,!1);case 11:return Yu(e.type.render,!1);case 1:return Yu(e.type,!0);case 31:return tl("Activity");default:return""}}function Wf(e){try{var t="",n=null;do t+=Fp(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
48
|
-
Error generating stack: `+a.message+`
|
|
49
|
-
`+a.stack}}var $u=Object.prototype.hasOwnProperty,Gu=u.unstable_scheduleCallback,Ku=u.unstable_cancelCallback,Ip=u.unstable_shouldYield,Pp=u.unstable_requestPaint,Et=u.unstable_now,ey=u.unstable_getCurrentPriorityLevel,Ff=u.unstable_ImmediatePriority,If=u.unstable_UserBlockingPriority,qi=u.unstable_NormalPriority,ty=u.unstable_LowPriority,Pf=u.unstable_IdlePriority,ny=u.log,ly=u.unstable_setDisableYieldValue,La=null,At=null;function On(e){if(typeof ny=="function"&&ly(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(La,e)}catch{}}var Ot=Math.clz32?Math.clz32:sy,ay=Math.log,iy=Math.LN2;function sy(e){return e>>>=0,e===0?32:31-(ay(e)/iy|0)|0}var Hi=256,Yi=262144,$i=4194304;function nl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Gi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,f=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~f,a!==0?r=nl(a):(d&=y,d!==0?r=nl(d):n||(n=y&~e,n!==0&&(r=nl(n))))):(y=a&~f,y!==0?r=nl(y):d!==0?r=nl(d):n||(n=a&~e,n!==0&&(r=nl(n)))),r===0?0:t!==0&&t!==r&&(t&f)===0&&(f=r&-r,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:r}function Ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function uy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eo(){var e=$i;return $i<<=1,($i&62914560)===0&&($i=4194304),e}function Vu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cy(e,t,n,a,r,f){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,T=e.expirationTimes,z=e.hiddenUpdates;for(n=d&~n;0<n;){var B=31-Ot(n),H=1<<B;y[B]=0,T[B]=-1;var D=z[B];if(D!==null)for(z[B]=null,B=0;B<D.length;B++){var j=D[B];j!==null&&(j.lane&=-536870913)}n&=~H}a!==0&&to(e,a,0),f!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=f&~(d&~t))}function to(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ot(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function no(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ot(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function lo(e,t){var n=t&-t;return n=(n&42)!==0?1:Qu(n),(n&(e.suspendedLanes|t))!==0?0:n}function Qu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ao(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Km(e.type))}function io(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var Nn=Math.random().toString(36).slice(2),lt="__reactFiber$"+Nn,dt="__reactProps$"+Nn,_l="__reactContainer$"+Nn,Zu="__reactEvents$"+Nn,ry="__reactListeners$"+Nn,fy="__reactHandles$"+Nn,so="__reactResources$"+Nn,ka="__reactMarker$"+Nn;function Ju(e){delete e[lt],delete e[dt],delete e[Zu],delete e[ry],delete e[fy]}function Ml(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_l]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mm(e);e!==null;){if(n=e[lt])return n;e=Mm(e)}return t}e=n,n=e.parentNode}return null}function Cl(e){if(e=e[lt]||e[_l]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ra(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function xl(e){var t=e[so];return t||(t=e[so]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tt(e){e[ka]=!0}var uo=new Set,co={};function ll(e,t){zl(e,t),zl(e+"Capture",t)}function zl(e,t){for(co[e]=t,e=0;e<t.length;e++)uo.add(t[e])}var oy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ro={},fo={};function hy(e){return $u.call(fo,e)?!0:$u.call(ro,e)?!1:oy.test(e)?fo[e]=!0:(ro[e]=!0,!1)}function Ki(e,t,n){if(hy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Vi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ln(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,f.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wu(e){if(!e._valueTracker){var t=oo(e)?"checked":"value";e._valueTracker=dy(e,t,""+e[t])}}function ho(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=oo(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Qi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var my=/[\n"\\]/g;function jt(e){return e.replace(my,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fu(e,t,n,a,r,f,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Iu(e,d,Ut(t)):n!=null?Iu(e,d,Ut(n)):a!=null&&e.removeAttribute("value"),r==null&&f!=null&&(e.defaultChecked=!!f),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Ut(y):e.removeAttribute("name")}function mo(e,t,n,a,r,f,d,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Wu(e);return}n=n!=null?""+Ut(n):"",t=t!=null?""+Ut(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Wu(e)}function Iu(e,t,n){t==="number"&&Qi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Dl(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Ut(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function go(e,t,n){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ut(n):""}function po(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Ye(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Ut(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Wu(e)}function Ll(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yo(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||gy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function vo(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&yo(e,r,a)}else for(var f in t)t.hasOwnProperty(f)&&yo(e,f,t[f])}function Pu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var py=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),yy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xi(e){return yy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function an(){}var ec=null;function tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ul=null,jl=null;function bo(e){var t=Cl(e);if(t&&(e=t.stateNode)){var n=e[dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[dt]||null;if(!r)throw Error(s(90));Fu(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ho(a)}break e;case"textarea":go(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Dl(e,!!n.multiple,t,!1)}}}var nc=!1;function So(e,t,n){if(nc)return e(t,n);nc=!0;try{var a=e(t);return a}finally{if(nc=!1,(Ul!==null||jl!==null)&&(Us(),Ul&&(t=Ul,e=jl,jl=Ul=null,bo(t),e)))for(t=0;t<e.length;t++)bo(e[t])}}function Ba(e,t){var n=e.stateNode;if(n===null)return null;var a=n[dt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=!1;if(sn)try{var qa={};Object.defineProperty(qa,"passive",{get:function(){lc=!0}}),window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{lc=!1}var _n=null,ac=null,Zi=null;function To(){if(Zi)return Zi;var e,t=ac,n=t.length,a,r="value"in _n?_n.value:_n.textContent,f=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===r[f-a];a++);return Zi=r.slice(e,1<a?1-a:void 0)}function Ji(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wi(){return!0}function wo(){return!1}function mt(e){function t(n,a,r,f,d){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=f,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Wi:wo,this.isPropagationStopped=wo,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wi)},persist:function(){},isPersistent:Wi}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fi=mt(al),Ha=v({},al,{view:0,detail:0}),vy=mt(Ha),ic,sc,Ya,Ii=v({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ya&&(Ya&&e.type==="mousemove"?(ic=e.screenX-Ya.screenX,sc=e.screenY-Ya.screenY):sc=ic=0,Ya=e),ic)},movementY:function(e){return"movementY"in e?e.movementY:sc}}),Eo=mt(Ii),by=v({},Ii,{dataTransfer:0}),Sy=mt(by),Ty=v({},Ha,{relatedTarget:0}),uc=mt(Ty),wy=v({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),Ey=mt(wy),Ay=v({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Oy=mt(Ay),Ny=v({},al,{data:0}),Ao=mt(Ny),_y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},My={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cy[e])?!!t[e]:!1}function cc(){return xy}var zy=v({},Ha,{key:function(e){if(e.key){var t=_y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?My[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cc,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dy=mt(zy),Ly=v({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oo=mt(Ly),Uy=v({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cc}),jy=mt(Uy),ky=v({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ry=mt(ky),By=v({},Ii,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qy=mt(By),Hy=v({},al,{newState:0,oldState:0}),Yy=mt(Hy),$y=[9,13,27,32],rc=sn&&"CompositionEvent"in window,$a=null;sn&&"documentMode"in document&&($a=document.documentMode);var Gy=sn&&"TextEvent"in window&&!$a,No=sn&&(!rc||$a&&8<$a&&11>=$a),_o=" ",Mo=!1;function Co(e,t){switch(e){case"keyup":return $y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kl=!1;function Ky(e,t){switch(e){case"compositionend":return xo(t);case"keypress":return t.which!==32?null:(Mo=!0,_o);case"textInput":return e=t.data,e===_o&&Mo?null:e;default:return null}}function Vy(e,t){if(kl)return e==="compositionend"||!rc&&Co(e,t)?(e=To(),Zi=ac=_n=null,kl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return No&&t.locale!=="ko"?null:t.data;default:return null}}var Qy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qy[e.type]:t==="textarea"}function Do(e,t,n,a){Ul?jl?jl.push(a):jl=[a]:Ul=a,t=Ys(t,"onChange"),0<t.length&&(n=new Fi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Ga=null,Ka=null;function Xy(e){mm(e,0)}function Pi(e){var t=Ra(e);if(ho(t))return e}function Lo(e,t){if(e==="change")return t}var Uo=!1;if(sn){var fc;if(sn){var oc="oninput"in document;if(!oc){var jo=document.createElement("div");jo.setAttribute("oninput","return;"),oc=typeof jo.oninput=="function"}fc=oc}else fc=!1;Uo=fc&&(!document.documentMode||9<document.documentMode)}function ko(){Ga&&(Ga.detachEvent("onpropertychange",Ro),Ka=Ga=null)}function Ro(e){if(e.propertyName==="value"&&Pi(Ka)){var t=[];Do(t,Ka,e,tc(e)),So(Xy,t)}}function Zy(e,t,n){e==="focusin"?(ko(),Ga=t,Ka=n,Ga.attachEvent("onpropertychange",Ro)):e==="focusout"&&ko()}function Jy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pi(Ka)}function Wy(e,t){if(e==="click")return Pi(t)}function Fy(e,t){if(e==="input"||e==="change")return Pi(t)}function Iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Iy;function Va(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!$u.call(t,r)||!Nt(e[r],t[r]))return!1}return!0}function Bo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qo(e,t){var n=Bo(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bo(n)}}function Ho(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ho(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qi(e.document)}return t}function hc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Py=sn&&"documentMode"in document&&11>=document.documentMode,Rl=null,dc=null,Qa=null,mc=!1;function $o(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mc||Rl==null||Rl!==Qi(a)||(a=Rl,"selectionStart"in a&&hc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Qa&&Va(Qa,a)||(Qa=a,a=Ys(dc,"onSelect"),0<a.length&&(t=new Fi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Rl)))}function il(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Bl={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionrun:il("Transition","TransitionRun"),transitionstart:il("Transition","TransitionStart"),transitioncancel:il("Transition","TransitionCancel"),transitionend:il("Transition","TransitionEnd")},gc={},Go={};sn&&(Go=document.createElement("div").style,"AnimationEvent"in window||(delete Bl.animationend.animation,delete Bl.animationiteration.animation,delete Bl.animationstart.animation),"TransitionEvent"in window||delete Bl.transitionend.transition);function sl(e){if(gc[e])return gc[e];if(!Bl[e])return e;var t=Bl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Go)return gc[e]=t[n];return e}var Ko=sl("animationend"),Vo=sl("animationiteration"),Qo=sl("animationstart"),e0=sl("transitionrun"),t0=sl("transitionstart"),n0=sl("transitioncancel"),Xo=sl("transitionend"),Zo=new Map,pc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");pc.push("scrollEnd");function Qt(e,t){Zo.set(e,t),ll(t,[e])}var es=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kt=[],ql=0,yc=0;function ts(){for(var e=ql,t=yc=ql=0;t<e;){var n=kt[t];kt[t++]=null;var a=kt[t];kt[t++]=null;var r=kt[t];kt[t++]=null;var f=kt[t];if(kt[t++]=null,a!==null&&r!==null){var d=a.pending;d===null?r.next=r:(r.next=d.next,d.next=r),a.pending=r}f!==0&&Jo(n,r,f)}}function ns(e,t,n,a){kt[ql++]=e,kt[ql++]=t,kt[ql++]=n,kt[ql++]=a,yc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function vc(e,t,n,a){return ns(e,t,n,a),ls(e)}function ul(e,t){return ns(e,null,null,t),ls(e)}function Jo(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,f=e.return;f!==null;)f.childLanes|=n,a=f.alternate,a!==null&&(a.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(r=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,r&&t!==null&&(r=31-Ot(n),e=f.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),f):null}function ls(e){if(50<mi)throw mi=0,_r=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Hl={};function l0(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,a){return new l0(e,t,n,a)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Wo(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function as(e,t,n,a,r,f){var d=0;if(a=e,typeof e=="function")bc(e)&&(d=1);else if(typeof e=="string")d=c1(e,n,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case L:return e=_t(31,n,t,r),e.elementType=L,e.lanes=f,e;case S:return cl(n.children,r,f,t);case A:d=8,r|=24;break;case M:return e=_t(12,n,t,r|2),e.elementType=M,e.lanes=f,e;case W:return e=_t(13,n,t,r),e.elementType=W,e.lanes=f,e;case J:return e=_t(19,n,t,r),e.elementType=J,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:d=10;break e;case U:d=9;break e;case Z:d=11;break e;case G:d=14;break e;case V:d=16,a=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=_t(d,n,t,r),t.elementType=e,t.type=a,t.lanes=f,t}function cl(e,t,n,a){return e=_t(7,e,a,t),e.lanes=n,e}function Sc(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Fo(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Tc(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Io=new WeakMap;function Rt(e,t){if(typeof e=="object"&&e!==null){var n=Io.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Wf(t)},Io.set(e,t),t)}return{value:e,source:t,stack:Wf(t)}}var Yl=[],$l=0,is=null,Xa=0,Bt=[],qt=0,Mn=null,Ft=1,It="";function cn(e,t){Yl[$l++]=Xa,Yl[$l++]=is,is=e,Xa=t}function Po(e,t,n){Bt[qt++]=Ft,Bt[qt++]=It,Bt[qt++]=Mn,Mn=e;var a=Ft;e=It;var r=32-Ot(a)-1;a&=~(1<<r),n+=1;var f=32-Ot(t)+r;if(30<f){var d=r-r%5;f=(a&(1<<d)-1).toString(32),a>>=d,r-=d,Ft=1<<32-Ot(t)+r|n<<r|a,It=f+e}else Ft=1<<f|n<<r|a,It=e}function wc(e){e.return!==null&&(cn(e,1),Po(e,1,0))}function Ec(e){for(;e===is;)is=Yl[--$l],Yl[$l]=null,Xa=Yl[--$l],Yl[$l]=null;for(;e===Mn;)Mn=Bt[--qt],Bt[qt]=null,It=Bt[--qt],Bt[qt]=null,Ft=Bt[--qt],Bt[qt]=null}function eh(e,t){Bt[qt++]=Ft,Bt[qt++]=It,Bt[qt++]=Mn,Ft=t.id,It=t.overflow,Mn=e}var at=null,De=null,ve=!1,Cn=null,Ht=!1,Ac=Error(s(519));function xn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Za(Rt(t,e)),Ac}function th(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[lt]=e,t[dt]=a,n){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(n=0;n<pi.length;n++)ge(pi[n],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),mo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),po(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||vm(t.textContent,n)?(a.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),a.onScroll!=null&&ge("scroll",t),a.onScrollEnd!=null&&ge("scrollend",t),a.onClick!=null&&(t.onclick=an),t=!0):t=!1,t||xn(e,!0)}function nh(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:at=at.return}}function Gl(e){if(e!==at)return!1;if(!ve)return nh(e),ve=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||$r(e.type,e.memoizedProps)),n=!n),n&&De&&xn(e),nh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=_m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=_m(e)}else t===27?(t=De,Kn(e.type)?(e=Xr,Xr=null,De=e):De=t):De=at?$t(e.stateNode.nextSibling):null;return!0}function rl(){De=at=null,ve=!1}function Oc(){var e=Cn;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Cn=null),e}function Za(e){Cn===null?Cn=[e]:Cn.push(e)}var Nc=b(null),fl=null,rn=null;function zn(e,t,n){X(Nc,t._currentValue),t._currentValue=n}function fn(e){e._currentValue=Nc.current,R(Nc)}function _c(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Mc(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var f=r.dependencies;if(f!==null){var d=r.child;f=f.firstContext;e:for(;f!==null;){var y=f;f=r;for(var T=0;T<t.length;T++)if(y.context===t[T]){f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),_c(f.return,n,e),a||(d=null);break e}f=y.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(s(341));d.lanes|=n,f=d.alternate,f!==null&&(f.lanes|=n),_c(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Kl(e,t,n,a){e=null;for(var r=t,f=!1;r!==null;){if(!f){if((r.flags&524288)!==0)f=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var y=r.type;Nt(r.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(r===be.current){if(d=r.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ti):e=[Ti])}r=r.return}e!==null&&Mc(t,e,n,a),t.flags|=262144}function ss(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){fl=e,rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return lh(fl,e)}function us(e,t){return fl===null&&ol(e),lh(e,t)}function lh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},rn===null){if(e===null)throw Error(s(308));rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else rn=rn.next=t;return n}var a0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},i0=u.unstable_scheduleCallback,s0=u.unstable_NormalPriority,Xe={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cc(){return{controller:new a0,data:new Map,refCount:0}}function Ja(e){e.refCount--,e.refCount===0&&i0(s0,function(){e.controller.abort()})}var Wa=null,xc=0,Vl=0,Ql=null;function u0(e,t){if(Wa===null){var n=Wa=[];xc=0,Vl=Lr(),Ql={status:"pending",value:void 0,then:function(a){n.push(a)}}}return xc++,t.then(ah,ah),t}function ah(){if(--xc===0&&Wa!==null){Ql!==null&&(Ql.status="fulfilled");var e=Wa;Wa=null,Vl=0,Ql=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function c0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var ih=k.S;k.S=function(e,t){$d=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&u0(e,t),ih!==null&&ih(e,t)};var hl=b(null);function zc(){var e=hl.current;return e!==null?e:xe.pooledCache}function cs(e,t){t===null?X(hl,hl.current):X(hl,t.pool)}function sh(){var e=zc();return e===null?null:{parent:Xe._currentValue,pool:e}}var Xl=Error(s(460)),Dc=Error(s(474)),rs=Error(s(542)),fs={then:function(){}};function uh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ch(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(an,an),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fh(e),e;default:if(typeof t.status=="string")t.then(an,an);else{if(e=xe,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fh(e),e}throw ml=t,Xl}}function dl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ml=n,Xl):n}}var ml=null;function rh(){if(ml===null)throw Error(s(459));var e=ml;return ml=null,e}function fh(e){if(e===Xl||e===rs)throw Error(s(483))}var Zl=null,Fa=0;function os(e){var t=Fa;return Fa+=1,Zl===null&&(Zl=[]),ch(Zl,e,t)}function Ia(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hs(e,t){throw t.$$typeof===N?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function oh(e){function t(_,O){if(e){var C=_.deletions;C===null?(_.deletions=[O],_.flags|=16):C.push(O)}}function n(_,O){if(!e)return null;for(;O!==null;)t(_,O),O=O.sibling;return null}function a(_){for(var O=new Map;_!==null;)_.key!==null?O.set(_.key,_):O.set(_.index,_),_=_.sibling;return O}function r(_,O){return _=un(_,O),_.index=0,_.sibling=null,_}function f(_,O,C){return _.index=C,e?(C=_.alternate,C!==null?(C=C.index,C<O?(_.flags|=67108866,O):C):(_.flags|=67108866,O)):(_.flags|=1048576,O)}function d(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function y(_,O,C,q){return O===null||O.tag!==6?(O=Sc(C,_.mode,q),O.return=_,O):(O=r(O,C),O.return=_,O)}function T(_,O,C,q){var te=C.type;return te===S?B(_,O,C.props.children,q,C.key):O!==null&&(O.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===V&&dl(te)===O.type)?(O=r(O,C.props),Ia(O,C),O.return=_,O):(O=as(C.type,C.key,C.props,null,_.mode,q),Ia(O,C),O.return=_,O)}function z(_,O,C,q){return O===null||O.tag!==4||O.stateNode.containerInfo!==C.containerInfo||O.stateNode.implementation!==C.implementation?(O=Tc(C,_.mode,q),O.return=_,O):(O=r(O,C.children||[]),O.return=_,O)}function B(_,O,C,q,te){return O===null||O.tag!==7?(O=cl(C,_.mode,q,te),O.return=_,O):(O=r(O,C),O.return=_,O)}function H(_,O,C){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Sc(""+O,_.mode,C),O.return=_,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return C=as(O.type,O.key,O.props,null,_.mode,C),Ia(C,O),C.return=_,C;case x:return O=Tc(O,_.mode,C),O.return=_,O;case V:return O=dl(O),H(_,O,C)}if(Ye(O)||Y(O))return O=cl(O,_.mode,C,null),O.return=_,O;if(typeof O.then=="function")return H(_,os(O),C);if(O.$$typeof===$)return H(_,us(_,O),C);hs(_,O)}return null}function D(_,O,C,q){var te=O!==null?O.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return te!==null?null:y(_,O,""+C,q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case E:return C.key===te?T(_,O,C,q):null;case x:return C.key===te?z(_,O,C,q):null;case V:return C=dl(C),D(_,O,C,q)}if(Ye(C)||Y(C))return te!==null?null:B(_,O,C,q,null);if(typeof C.then=="function")return D(_,O,os(C),q);if(C.$$typeof===$)return D(_,O,us(_,C),q);hs(_,C)}return null}function j(_,O,C,q,te){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return _=_.get(C)||null,y(O,_,""+q,te);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case E:return _=_.get(q.key===null?C:q.key)||null,T(O,_,q,te);case x:return _=_.get(q.key===null?C:q.key)||null,z(O,_,q,te);case V:return q=dl(q),j(_,O,C,q,te)}if(Ye(q)||Y(q))return _=_.get(C)||null,B(O,_,q,te,null);if(typeof q.then=="function")return j(_,O,C,os(q),te);if(q.$$typeof===$)return j(_,O,C,us(O,q),te);hs(O,q)}return null}function I(_,O,C,q){for(var te=null,Se=null,ee=O,de=O=0,ye=null;ee!==null&&de<C.length;de++){ee.index>de?(ye=ee,ee=null):ye=ee.sibling;var Te=D(_,ee,C[de],q);if(Te===null){ee===null&&(ee=ye);break}e&&ee&&Te.alternate===null&&t(_,ee),O=f(Te,O,de),Se===null?te=Te:Se.sibling=Te,Se=Te,ee=ye}if(de===C.length)return n(_,ee),ve&&cn(_,de),te;if(ee===null){for(;de<C.length;de++)ee=H(_,C[de],q),ee!==null&&(O=f(ee,O,de),Se===null?te=ee:Se.sibling=ee,Se=ee);return ve&&cn(_,de),te}for(ee=a(ee);de<C.length;de++)ye=j(ee,_,de,C[de],q),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?de:ye.key),O=f(ye,O,de),Se===null?te=ye:Se.sibling=ye,Se=ye);return e&&ee.forEach(function(Jn){return t(_,Jn)}),ve&&cn(_,de),te}function ne(_,O,C,q){if(C==null)throw Error(s(151));for(var te=null,Se=null,ee=O,de=O=0,ye=null,Te=C.next();ee!==null&&!Te.done;de++,Te=C.next()){ee.index>de?(ye=ee,ee=null):ye=ee.sibling;var Jn=D(_,ee,Te.value,q);if(Jn===null){ee===null&&(ee=ye);break}e&&ee&&Jn.alternate===null&&t(_,ee),O=f(Jn,O,de),Se===null?te=Jn:Se.sibling=Jn,Se=Jn,ee=ye}if(Te.done)return n(_,ee),ve&&cn(_,de),te;if(ee===null){for(;!Te.done;de++,Te=C.next())Te=H(_,Te.value,q),Te!==null&&(O=f(Te,O,de),Se===null?te=Te:Se.sibling=Te,Se=Te);return ve&&cn(_,de),te}for(ee=a(ee);!Te.done;de++,Te=C.next())Te=j(ee,_,de,Te.value,q),Te!==null&&(e&&Te.alternate!==null&&ee.delete(Te.key===null?de:Te.key),O=f(Te,O,de),Se===null?te=Te:Se.sibling=Te,Se=Te);return e&&ee.forEach(function(b1){return t(_,b1)}),ve&&cn(_,de),te}function Ce(_,O,C,q){if(typeof C=="object"&&C!==null&&C.type===S&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case E:e:{for(var te=C.key;O!==null;){if(O.key===te){if(te=C.type,te===S){if(O.tag===7){n(_,O.sibling),q=r(O,C.props.children),q.return=_,_=q;break e}}else if(O.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===V&&dl(te)===O.type){n(_,O.sibling),q=r(O,C.props),Ia(q,C),q.return=_,_=q;break e}n(_,O);break}else t(_,O);O=O.sibling}C.type===S?(q=cl(C.props.children,_.mode,q,C.key),q.return=_,_=q):(q=as(C.type,C.key,C.props,null,_.mode,q),Ia(q,C),q.return=_,_=q)}return d(_);case x:e:{for(te=C.key;O!==null;){if(O.key===te)if(O.tag===4&&O.stateNode.containerInfo===C.containerInfo&&O.stateNode.implementation===C.implementation){n(_,O.sibling),q=r(O,C.children||[]),q.return=_,_=q;break e}else{n(_,O);break}else t(_,O);O=O.sibling}q=Tc(C,_.mode,q),q.return=_,_=q}return d(_);case V:return C=dl(C),Ce(_,O,C,q)}if(Ye(C))return I(_,O,C,q);if(Y(C)){if(te=Y(C),typeof te!="function")throw Error(s(150));return C=te.call(C),ne(_,O,C,q)}if(typeof C.then=="function")return Ce(_,O,os(C),q);if(C.$$typeof===$)return Ce(_,O,us(_,C),q);hs(_,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,O!==null&&O.tag===6?(n(_,O.sibling),q=r(O,C),q.return=_,_=q):(n(_,O),q=Sc(C,_.mode,q),q.return=_,_=q),d(_)):n(_,O)}return function(_,O,C,q){try{Fa=0;var te=Ce(_,O,C,q);return Zl=null,te}catch(ee){if(ee===Xl||ee===rs)throw ee;var Se=_t(29,ee,null,_.mode);return Se.lanes=q,Se.return=_,Se}finally{}}}var gl=oh(!0),hh=oh(!1),Dn=!1;function Lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ln(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ee&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=ls(e),Jo(e,null,n),t}return ns(e,a,t,n),ls(e)}function Pa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,no(e,n)}}function jc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?r=f=d:f=f.next=d,n=n.next}while(n!==null);f===null?r=f=t:f=f.next=t}else r=f=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:f,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var kc=!1;function ei(){if(kc){var e=Ql;if(e!==null)throw e}}function ti(e,t,n,a){kc=!1;var r=e.updateQueue;Dn=!1;var f=r.firstBaseUpdate,d=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var T=y,z=T.next;T.next=null,d===null?f=z:d.next=z,d=T;var B=e.alternate;B!==null&&(B=B.updateQueue,y=B.lastBaseUpdate,y!==d&&(y===null?B.firstBaseUpdate=z:y.next=z,B.lastBaseUpdate=T))}if(f!==null){var H=r.baseState;d=0,B=z=T=null,y=f;do{var D=y.lane&-536870913,j=D!==y.lane;if(j?(pe&D)===D:(a&D)===D){D!==0&&D===Vl&&(kc=!0),B!==null&&(B=B.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var I=e,ne=y;D=t;var Ce=n;switch(ne.tag){case 1:if(I=ne.payload,typeof I=="function"){H=I.call(Ce,H,D);break e}H=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ne.payload,D=typeof I=="function"?I.call(Ce,H,D):I,D==null)break e;H=v({},H,D);break e;case 2:Dn=!0}}D=y.callback,D!==null&&(e.flags|=64,j&&(e.flags|=8192),j=r.callbacks,j===null?r.callbacks=[D]:j.push(D))}else j={lane:D,tag:y.tag,payload:y.payload,callback:y.callback,next:null},B===null?(z=B=j,T=H):B=B.next=j,d|=D;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;j=y,y=j.next,j.next=null,r.lastBaseUpdate=j,r.shared.pending=null}}while(!0);B===null&&(T=H),r.baseState=T,r.firstBaseUpdate=z,r.lastBaseUpdate=B,f===null&&(r.shared.lanes=0),qn|=d,e.lanes=d,e.memoizedState=H}}function dh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function mh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)dh(n[e],t)}var Jl=b(null),ds=b(0);function gh(e,t){e=bn,X(ds,e),X(Jl,t),bn=e|t.baseLanes}function Rc(){X(ds,bn),X(Jl,Jl.current)}function Bc(){bn=ds.current,R(Jl),R(ds)}var Mt=b(null),Yt=null;function jn(e){var t=e.alternate;X(Ge,Ge.current&1),X(Mt,e),Yt===null&&(t===null||Jl.current!==null||t.memoizedState!==null)&&(Yt=e)}function qc(e){X(Ge,Ge.current),X(Mt,e),Yt===null&&(Yt=e)}function ph(e){e.tag===22?(X(Ge,Ge.current),X(Mt,e),Yt===null&&(Yt=e)):kn()}function kn(){X(Ge,Ge.current),X(Mt,Mt.current)}function Ct(e){R(Mt),Yt===e&&(Yt=null),R(Ge)}var Ge=b(0);function ms(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Vr(n)||Qr(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var on=0,he=null,_e=null,Ze=null,gs=!1,Wl=!1,pl=!1,ps=0,ni=0,Fl=null,r0=0;function qe(){throw Error(s(321))}function Hc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function Yc(e,t,n,a,r,f){return on=f,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Ph:nr,pl=!1,f=n(a,r),pl=!1,Wl&&(f=vh(t,n,a,r)),yh(e),f}function yh(e){k.H=ii;var t=_e!==null&&_e.next!==null;if(on=0,Ze=_e=he=null,gs=!1,ni=0,Fl=null,t)throw Error(s(300));e===null||Je||(e=e.dependencies,e!==null&&ss(e)&&(Je=!0))}function vh(e,t,n,a){he=e;var r=0;do{if(Wl&&(Fl=null),ni=0,Wl=!1,25<=r)throw Error(s(301));if(r+=1,Ze=_e=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=ed,f=t(n,a)}while(Wl);return f}function f0(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?li(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(he.flags|=1024),t}function $c(){var e=ps!==0;return ps=0,e}function Gc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Kc(e){if(gs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gs=!1}on=0,Ze=_e=he=null,Wl=!1,ni=ps=0,Fl=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?he.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Ke(){if(_e===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ze===null?he.memoizedState:Ze.next;if(t!==null)Ze=t,_e=e;else{if(e===null)throw he.alternate===null?Error(s(467)):Error(s(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ze===null?he.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function ys(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function li(e){var t=ni;return ni+=1,Fl===null&&(Fl=[]),e=ch(Fl,e,t),t=he,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Ph:nr),e}function vs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return li(e);if(e.$$typeof===$)return it(e)}throw Error(s(438,String(e)))}function Vc(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ys(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=se;return t.index++,n}function hn(e,t){return typeof t=="function"?t(e):t}function bs(e){var t=Ke();return Qc(t,_e,e)}function Qc(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var r=e.baseQueue,f=a.pending;if(f!==null){if(r!==null){var d=r.next;r.next=f.next,f.next=d}t.baseQueue=r=f,a.pending=null}if(f=e.baseState,r===null)e.memoizedState=f;else{t=r.next;var y=d=null,T=null,z=t,B=!1;do{var H=z.lane&-536870913;if(H!==z.lane?(pe&H)===H:(on&H)===H){var D=z.revertLane;if(D===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),H===Vl&&(B=!0);else if((on&D)===D){z=z.next,D===Vl&&(B=!0);continue}else H={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(y=T=H,d=f):T=T.next=H,he.lanes|=D,qn|=D;H=z.action,pl&&n(f,H),f=z.hasEagerState?z.eagerState:n(f,H)}else D={lane:H,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(y=T=D,d=f):T=T.next=D,he.lanes|=H,qn|=H;z=z.next}while(z!==null&&z!==t);if(T===null?d=f:T.next=y,!Nt(f,e.memoizedState)&&(Je=!0,B&&(n=Ql,n!==null)))throw n;e.memoizedState=f,e.baseState=d,e.baseQueue=T,a.lastRenderedState=f}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Xc(e){var t=Ke(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,f=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do f=e(f,d.action),d=d.next;while(d!==r);Nt(f,t.memoizedState)||(Je=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,a]}function bh(e,t,n){var a=he,r=Ke(),f=ve;if(f){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!Nt((_e||r).memoizedState,n);if(d&&(r.memoizedState=n,Je=!0),r=r.queue,Wc(wh.bind(null,a,r,e),[e]),r.getSnapshot!==t||d||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,Il(9,{destroy:void 0},Th.bind(null,a,r,n,t),null),xe===null)throw Error(s(349));f||(on&127)!==0||Sh(a,t,n)}return n}function Sh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=ys(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Th(e,t,n,a){t.value=n,t.getSnapshot=a,Eh(t)&&Ah(e)}function wh(e,t,n){return n(function(){Eh(t)&&Ah(e)})}function Eh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function Ah(e){var t=ul(e,2);t!==null&&bt(t,e,2)}function Zc(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),pl){On(!0);try{n()}finally{On(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:e},t}function Oh(e,t,n,a){return e.baseState=n,Qc(e,_e,typeof a=="function"?a:hn)}function o0(e,t,n,a,r){if(ws(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){f.listeners.push(d)}};k.T!==null?n(!0):f.isTransition=!1,a(f),n=t.pending,n===null?(f.next=t.pending=f,Nh(t,f)):(f.next=n.next,t.pending=n.next=f)}}function Nh(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var f=k.T,d={};k.T=d;try{var y=n(r,a),T=k.S;T!==null&&T(d,y),_h(e,t,y)}catch(z){Jc(e,t,z)}finally{f!==null&&d.types!==null&&(f.types=d.types),k.T=f}}else try{f=n(r,a),_h(e,t,f)}catch(z){Jc(e,t,z)}}function _h(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Mh(e,t,a)},function(a){return Jc(e,t,a)}):Mh(e,t,n)}function Mh(e,t,n){t.status="fulfilled",t.value=n,Ch(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Nh(e,n)))}function Jc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Ch(t),t=t.next;while(t!==a)}e.action=null}function Ch(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xh(e,t){return t}function zh(e,t){if(ve){var n=xe.formState;if(n!==null){e:{var a=he;if(ve){if(De){t:{for(var r=De,f=Ht;r.nodeType!==8;){if(!f){r=null;break t}if(r=$t(r.nextSibling),r===null){r=null;break t}}f=r.data,r=f==="F!"||f==="F"?r:null}if(r){De=$t(r.nextSibling),a=r.data==="F!";break e}}xn(a)}a=!1}a&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xh,lastRenderedState:t},n.queue=a,n=Wh.bind(null,he,a),a.dispatch=n,a=Zc(!1),f=tr.bind(null,he,!1,a.queue),a=ot(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=o0.bind(null,he,r,f,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Dh(e){var t=Ke();return Lh(t,_e,e)}function Lh(e,t,n){if(t=Qc(e,t,xh)[0],e=bs(hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=li(t)}catch(d){throw d===Xl?rs:d}else a=t;t=Ke();var r=t.queue,f=r.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Il(9,{destroy:void 0},h0.bind(null,r,n),null)),[a,f,e]}function h0(e,t){e.action=t}function Uh(e){var t=Ke(),n=_e;if(n!==null)return Lh(t,n,e);Ke(),t=t.memoizedState,n=Ke();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Il(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=ys(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function jh(){return Ke().memoizedState}function Ss(e,t,n,a){var r=ot();he.flags|=e,r.memoizedState=Il(1|t,{destroy:void 0},n,a===void 0?null:a)}function Ts(e,t,n,a){var r=Ke();a=a===void 0?null:a;var f=r.memoizedState.inst;_e!==null&&a!==null&&Hc(a,_e.memoizedState.deps)?r.memoizedState=Il(t,f,n,a):(he.flags|=e,r.memoizedState=Il(1|t,f,n,a))}function kh(e,t){Ss(8390656,8,e,t)}function Wc(e,t){Ts(2048,8,e,t)}function d0(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=ys(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rh(e){var t=Ke().memoizedState;return d0({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Bh(e,t){return Ts(4,2,e,t)}function qh(e,t){return Ts(4,4,e,t)}function Hh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yh(e,t,n){n=n!=null?n.concat([e]):null,Ts(4,4,Hh.bind(null,t,e),n)}function Fc(){}function $h(e,t){var n=Ke();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Hc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Gh(e,t){var n=Ke();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Hc(t,a[1]))return a[0];if(a=e(),pl){On(!0);try{e()}finally{On(!1)}}return n.memoizedState=[a,t],a}function Ic(e,t,n){return n===void 0||(on&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Kd(),he.lanes|=e,qn|=e,n)}function Kh(e,t,n,a){return Nt(n,t)?n:Jl.current!==null?(e=Ic(e,n,a),Nt(e,t)||(Je=!0),e):(on&42)===0||(on&1073741824)!==0&&(pe&261930)===0?(Je=!0,e.memoizedState=n):(e=Kd(),he.lanes|=e,qn|=e,t)}function Vh(e,t,n,a,r){var f=Q.p;Q.p=f!==0&&8>f?f:8;var d=k.T,y={};k.T=y,tr(e,!1,t,n);try{var T=r(),z=k.S;if(z!==null&&z(y,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var B=c0(T,a);ai(e,t,B,Dt(e))}else ai(e,t,a,Dt(e))}catch(H){ai(e,t,{then:function(){},status:"rejected",reason:H},Dt())}finally{Q.p=f,d!==null&&y.types!==null&&(d.types=y.types),k.T=d}}function m0(){}function Pc(e,t,n,a){if(e.tag!==5)throw Error(s(476));var r=Qh(e).queue;Vh(e,r,t,le,n===null?m0:function(){return Xh(e),n(a)})}function Qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Xh(e){var t=Qh(e);t.next===null&&(t=e.alternate.memoizedState),ai(e,t.next.queue,{},Dt())}function er(){return it(Ti)}function Zh(){return Ke().memoizedState}function Jh(){return Ke().memoizedState}function g0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Dt();e=Ln(n);var a=Un(t,e,n);a!==null&&(bt(a,t,n),Pa(a,t,n)),t={cache:Cc()},e.payload=t;return}t=t.return}}function p0(e,t,n){var a=Dt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ws(e)?Fh(t,n):(n=vc(e,t,n,a),n!==null&&(bt(n,e,a),Ih(n,t,a)))}function Wh(e,t,n){var a=Dt();ai(e,t,n,a)}function ai(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ws(e))Fh(t,r);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var d=t.lastRenderedState,y=f(d,n);if(r.hasEagerState=!0,r.eagerState=y,Nt(y,d))return ns(e,t,r,0),xe===null&&ts(),!1}catch{}finally{}if(n=vc(e,t,r,a),n!==null)return bt(n,e,a),Ih(n,t,a),!0}return!1}function tr(e,t,n,a){if(a={lane:2,revertLane:Lr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ws(e)){if(t)throw Error(s(479))}else t=vc(e,n,a,2),t!==null&&bt(t,e,2)}function ws(e){var t=e.alternate;return e===he||t!==null&&t===he}function Fh(e,t){Wl=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ih(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,no(e,n)}}var ii={readContext:it,use:vs,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};ii.useEffectEvent=qe;var Ph={readContext:it,use:vs,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:kh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ss(4194308,4,Hh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){Ss(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var a=e();if(pl){On(!0);try{e()}finally{On(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ot();if(n!==void 0){var r=n(t);if(pl){On(!0);try{n(t)}finally{On(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=p0.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Zc(e);var t=e.queue,n=Wh.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Fc,useDeferredValue:function(e,t){var n=ot();return Ic(n,e,t)},useTransition:function(){var e=Zc(!1);return e=Vh.bind(null,he,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=he,r=ot();if(ve){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),xe===null)throw Error(s(349));(pe&127)!==0||Sh(a,t,n)}r.memoizedState=n;var f={value:n,getSnapshot:t};return r.queue=f,kh(wh.bind(null,a,f,e),[e]),a.flags|=2048,Il(9,{destroy:void 0},Th.bind(null,a,f,n,t),null),n},useId:function(){var e=ot(),t=xe.identifierPrefix;if(ve){var n=It,a=Ft;n=(a&~(1<<32-Ot(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ps++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=r0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:er,useFormState:zh,useActionState:zh,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=tr.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vc,useCacheRefresh:function(){return ot().memoizedState=g0.bind(null,he)},useEffectEvent:function(e){var t=ot(),n={impl:e};return t.memoizedState=n,function(){if((Ee&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},nr={readContext:it,use:vs,useCallback:$h,useContext:it,useEffect:Wc,useImperativeHandle:Yh,useInsertionEffect:Bh,useLayoutEffect:qh,useMemo:Gh,useReducer:bs,useRef:jh,useState:function(){return bs(hn)},useDebugValue:Fc,useDeferredValue:function(e,t){var n=Ke();return Kh(n,_e.memoizedState,e,t)},useTransition:function(){var e=bs(hn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:li(e),t]},useSyncExternalStore:bh,useId:Zh,useHostTransitionStatus:er,useFormState:Dh,useActionState:Dh,useOptimistic:function(e,t){var n=Ke();return Oh(n,_e,e,t)},useMemoCache:Vc,useCacheRefresh:Jh};nr.useEffectEvent=Rh;var ed={readContext:it,use:vs,useCallback:$h,useContext:it,useEffect:Wc,useImperativeHandle:Yh,useInsertionEffect:Bh,useLayoutEffect:qh,useMemo:Gh,useReducer:Xc,useRef:jh,useState:function(){return Xc(hn)},useDebugValue:Fc,useDeferredValue:function(e,t){var n=Ke();return _e===null?Ic(n,e,t):Kh(n,_e.memoizedState,e,t)},useTransition:function(){var e=Xc(hn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:li(e),t]},useSyncExternalStore:bh,useId:Zh,useHostTransitionStatus:er,useFormState:Uh,useActionState:Uh,useOptimistic:function(e,t){var n=Ke();return _e!==null?Oh(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Vc,useCacheRefresh:Jh};ed.useEffectEvent=Rh;function lr(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ar={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Dt(),r=Ln(a);r.payload=t,n!=null&&(r.callback=n),t=Un(e,r,a),t!==null&&(bt(t,e,a),Pa(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Dt(),r=Ln(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Un(e,r,a),t!==null&&(bt(t,e,a),Pa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dt(),a=Ln(n);a.tag=2,t!=null&&(a.callback=t),t=Un(e,a,n),t!==null&&(bt(t,e,n),Pa(t,e,n))}};function td(e,t,n,a,r,f,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,f,d):t.prototype&&t.prototype.isPureReactComponent?!Va(n,a)||!Va(r,f):!0}function nd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&ar.enqueueReplaceState(t,t.state,null)}function yl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function ld(e){es(e)}function ad(e){console.error(e)}function id(e){es(e)}function Es(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function sd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function ir(e,t,n){return n=Ln(n),n.tag=3,n.payload={element:null},n.callback=function(){Es(e,t)},n}function ud(e){return e=Ln(e),e.tag=3,e}function cd(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var f=a.value;e.payload=function(){return r(f)},e.callback=function(){sd(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){sd(t,n,a),typeof r!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function y0(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Kl(t,n,r,!0),n=Mt.current,n!==null){switch(n.tag){case 31:case 13:return Yt===null?js():n.alternate===null&&He===0&&(He=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===fs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),xr(e,a,r)),!1;case 22:return n.flags|=65536,a===fs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),xr(e,a,r)),!1}throw Error(s(435,n.tag))}return xr(e,a,r),js(),!1}if(ve)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==Ac&&(e=Error(s(422),{cause:a}),Za(Rt(e,n)))):(a!==Ac&&(t=Error(s(423),{cause:a}),Za(Rt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Rt(a,n),r=ir(e.stateNode,a,r),jc(e,r),He!==4&&(He=2)),!1;var f=Error(s(520),{cause:a});if(f=Rt(f,n),di===null?di=[f]:di.push(f),He!==4&&(He=2),t===null)return!0;a=Rt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=ir(n.stateNode,a,e),jc(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Hn===null||!Hn.has(f))))return n.flags|=65536,r&=-r,n.lanes|=r,r=ud(r),cd(r,e,n,a),jc(n,r),!1}n=n.return}while(n!==null);return!1}var sr=Error(s(461)),Je=!1;function st(e,t,n,a){t.child=e===null?hh(t,null,n,a):gl(t,e.child,n,a)}function rd(e,t,n,a,r){n=n.render;var f=t.ref;if("ref"in a){var d={};for(var y in a)y!=="ref"&&(d[y]=a[y])}else d=a;return ol(t),a=Yc(e,t,n,d,f,r),y=$c(),e!==null&&!Je?(Gc(e,t,r),dn(e,t,r)):(ve&&y&&wc(t),t.flags|=1,st(e,t,a,r),t.child)}function fd(e,t,n,a,r){if(e===null){var f=n.type;return typeof f=="function"&&!bc(f)&&f.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=f,od(e,t,f,a,r)):(e=as(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!mr(e,r)){var d=f.memoizedProps;if(n=n.compare,n=n!==null?n:Va,n(d,a)&&e.ref===t.ref)return dn(e,t,r)}return t.flags|=1,e=un(f,a),e.ref=t.ref,e.return=t,t.child=e}function od(e,t,n,a,r){if(e!==null){var f=e.memoizedProps;if(Va(f,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=f,mr(e,r))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,dn(e,t,r)}return ur(e,t,n,a,r)}function hd(e,t,n,a){var r=a.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~f}else a=0,t.child=null;return dd(e,t,f,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cs(t,f!==null?f.cachePool:null),f!==null?gh(t,f):Rc(),ph(t);else return a=t.lanes=536870912,dd(e,t,f!==null?f.baseLanes|n:n,n,a)}else f!==null?(cs(t,f.cachePool),gh(t,f),kn(),t.memoizedState=null):(e!==null&&cs(t,null),Rc(),kn());return st(e,t,r,n),t.child}function si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dd(e,t,n,a,r){var f=zc();return f=f===null?null:{parent:Xe._currentValue,pool:f},t.memoizedState={baseLanes:n,cachePool:f},e!==null&&cs(t,null),Rc(),ph(t),e!==null&&Kl(e,t,a,!0),t.childLanes=r,null}function As(e,t){return t=Ns({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function md(e,t,n){return gl(t,e.child,null,n),e=As(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function v0(e,t,n){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=As(t,a),t.lanes=536870912,si(null,e);if(qc(t),(e=De)?(e=Nm(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},n=Fo(e),n.return=t,t.child=n,at=t,De=null)):e=null,e===null)throw xn(t);return t.lanes=536870912,null}return As(t,a)}var f=e.memoizedState;if(f!==null){var d=f.dehydrated;if(qc(t),r)if(t.flags&256)t.flags&=-257,t=md(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Je||Kl(e,t,n,!1),r=(n&e.childLanes)!==0,Je||r){if(a=xe,a!==null&&(d=lo(a,n),d!==0&&d!==f.retryLane))throw f.retryLane=d,ul(e,d),bt(a,e,d),sr;js(),t=md(e,t,n)}else e=f.treeContext,De=$t(d.nextSibling),at=t,ve=!0,Cn=null,Ht=!1,e!==null&&eh(t,e),t=As(t,a),t.flags|=4096;return t}return e=un(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Os(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ur(e,t,n,a,r){return ol(t),n=Yc(e,t,n,a,void 0,r),a=$c(),e!==null&&!Je?(Gc(e,t,r),dn(e,t,r)):(ve&&a&&wc(t),t.flags|=1,st(e,t,n,r),t.child)}function gd(e,t,n,a,r,f){return ol(t),t.updateQueue=null,n=vh(t,a,n,r),yh(e),a=$c(),e!==null&&!Je?(Gc(e,t,f),dn(e,t,f)):(ve&&a&&wc(t),t.flags|=1,st(e,t,n,f),t.child)}function pd(e,t,n,a,r){if(ol(t),t.stateNode===null){var f=Hl,d=n.contextType;typeof d=="object"&&d!==null&&(f=it(d)),f=new n(a,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ar,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=a,f.state=t.memoizedState,f.refs={},Lc(t),d=n.contextType,f.context=typeof d=="object"&&d!==null?it(d):Hl,f.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(lr(t,n,d,a),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(d=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),d!==f.state&&ar.enqueueReplaceState(f,f.state,null),ti(t,a,f,r),ei(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){f=t.stateNode;var y=t.memoizedProps,T=yl(n,y);f.props=T;var z=f.context,B=n.contextType;d=Hl,typeof B=="object"&&B!==null&&(d=it(B));var H=n.getDerivedStateFromProps;B=typeof H=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,B||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||z!==d)&&nd(t,f,a,d),Dn=!1;var D=t.memoizedState;f.state=D,ti(t,a,f,r),ei(),z=t.memoizedState,y||D!==z||Dn?(typeof H=="function"&&(lr(t,n,H,a),z=t.memoizedState),(T=Dn||td(t,n,T,a,D,z,d))?(B||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),f.props=a,f.state=z,f.context=d,a=T):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{f=t.stateNode,Uc(e,t),d=t.memoizedProps,B=yl(n,d),f.props=B,H=t.pendingProps,D=f.context,z=n.contextType,T=Hl,typeof z=="object"&&z!==null&&(T=it(z)),y=n.getDerivedStateFromProps,(z=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(d!==H||D!==T)&&nd(t,f,a,T),Dn=!1,D=t.memoizedState,f.state=D,ti(t,a,f,r),ei();var j=t.memoizedState;d!==H||D!==j||Dn||e!==null&&e.dependencies!==null&&ss(e.dependencies)?(typeof y=="function"&&(lr(t,n,y,a),j=t.memoizedState),(B=Dn||td(t,n,B,a,D,j,T)||e!==null&&e.dependencies!==null&&ss(e.dependencies))?(z||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(a,j,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(a,j,T)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),f.props=a,f.state=j,f.context=T,a=B):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return f=a,Os(e,t),a=(t.flags&128)!==0,f||a?(f=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&a?(t.child=gl(t,e.child,null,r),t.child=gl(t,null,n,r)):st(e,t,n,r),t.memoizedState=f.state,e=t.child):e=dn(e,t,r),e}function yd(e,t,n,a){return rl(),t.flags|=256,st(e,t,n,a),t.child}var cr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rr(e){return{baseLanes:e,cachePool:sh()}}function fr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function vd(e,t,n){var a=t.pendingProps,r=!1,f=(t.flags&128)!==0,d;if((d=f)||(d=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(r?jn(t):kn(),(e=De)?(e=Nm(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},n=Fo(e),n.return=t,t.child=n,at=t,De=null)):e=null,e===null)throw xn(t);return Qr(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,r?(kn(),r=t.mode,y=Ns({mode:"hidden",children:y},r),a=cl(a,r,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=rr(n),a.childLanes=fr(e,d,n),t.memoizedState=cr,si(null,a)):(jn(t),or(t,y))}var T=e.memoizedState;if(T!==null&&(y=T.dehydrated,y!==null)){if(f)t.flags&256?(jn(t),t.flags&=-257,t=hr(e,t,n)):t.memoizedState!==null?(kn(),t.child=e.child,t.flags|=128,t=null):(kn(),y=a.fallback,r=t.mode,a=Ns({mode:"visible",children:a.children},r),y=cl(y,r,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,gl(t,e.child,null,n),a=t.child,a.memoizedState=rr(n),a.childLanes=fr(e,d,n),t.memoizedState=cr,t=si(null,a));else if(jn(t),Qr(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var z=d.dgst;d=z,a=Error(s(419)),a.stack="",a.digest=d,Za({value:a,source:null,stack:null}),t=hr(e,t,n)}else if(Je||Kl(e,t,n,!1),d=(n&e.childLanes)!==0,Je||d){if(d=xe,d!==null&&(a=lo(d,n),a!==0&&a!==T.retryLane))throw T.retryLane=a,ul(e,a),bt(d,e,a),sr;Vr(y)||js(),t=hr(e,t,n)}else Vr(y)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,De=$t(y.nextSibling),at=t,ve=!0,Cn=null,Ht=!1,e!==null&&eh(t,e),t=or(t,a.children),t.flags|=4096);return t}return r?(kn(),y=a.fallback,r=t.mode,T=e.child,z=T.sibling,a=un(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,z!==null?y=un(z,y):(y=cl(y,r,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,si(null,a),a=t.child,y=e.child.memoizedState,y===null?y=rr(n):(r=y.cachePool,r!==null?(T=Xe._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=sh(),y={baseLanes:y.baseLanes|n,cachePool:r}),a.memoizedState=y,a.childLanes=fr(e,d,n),t.memoizedState=cr,si(e.child,a)):(jn(t),n=e.child,e=n.sibling,n=un(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function or(e,t){return t=Ns({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ns(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function hr(e,t,n){return gl(t,e.child,null,n),e=or(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bd(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),_c(e.return,t,n)}function dr(e,t,n,a,r,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:f}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=r,d.treeForkCount=f)}function Sd(e,t,n){var a=t.pendingProps,r=a.revealOrder,f=a.tail;a=a.children;var d=Ge.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,X(Ge,d),st(e,t,a,n),a=ve?Xa:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,n,t);else if(e.tag===19)bd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ms(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),dr(t,!1,r,n,f,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&ms(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}dr(t,!0,n,null,f,a);break;case"together":dr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function dn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Kl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ss(e)))}function b0(e,t,n){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),zn(t,Xe,e.memoizedState.cache),rl();break;case 27:case 5:Da(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(jn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?vd(e,t,n):(jn(t),e=dn(e,t,n),e!==null?e.sibling:null);jn(t);break;case 19:var r=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Kl(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return Sd(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),X(Ge,Ge.current),a)break;return null;case 22:return t.lanes=0,hd(e,t,n,t.pendingProps);case 24:zn(t,Xe,e.memoizedState.cache)}return dn(e,t,n)}function Td(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!mr(e,n)&&(t.flags&128)===0)return Je=!1,b0(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,ve&&(t.flags&1048576)!==0&&Po(t,Xa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=dl(t.elementType),t.type=e,typeof e=="function")bc(e)?(a=yl(e,a),t.tag=1,t=pd(null,t,e,a,n)):(t.tag=0,t=ur(null,t,e,a,n));else{if(e!=null){var r=e.$$typeof;if(r===Z){t.tag=11,t=rd(null,t,e,a,n);break e}else if(r===G){t.tag=14,t=fd(null,t,e,a,n);break e}}throw t=ue(e)||e,Error(s(306,t,""))}}return t;case 0:return ur(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=yl(a,t.pendingProps),pd(e,t,a,r,n);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var f=t.memoizedState;r=f.element,Uc(e,t),ti(t,a,null,n);var d=t.memoizedState;if(a=d.cache,zn(t,Xe,a),a!==f.cache&&Mc(t,[Xe],n,!0),ei(),a=d.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=yd(e,t,a,n);break e}else if(a!==r){r=Rt(Error(s(424)),t),Za(r),t=yd(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=$t(e.firstChild),at=t,ve=!0,Cn=null,Ht=!0,n=hh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(rl(),a===r){t=dn(e,t,n);break e}st(e,t,a,n)}t=t.child}return t;case 26:return Os(e,t),e===null?(n=Dm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ve||(n=t.type,e=t.pendingProps,a=$s(oe.current).createElement(n),a[lt]=t,a[dt]=e,ut(a,n,e),tt(a),t.stateNode=a):t.memoizedState=Dm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Da(t),e===null&&ve&&(a=t.stateNode=Cm(t.type,t.pendingProps,oe.current),at=t,Ht=!0,r=De,Kn(t.type)?(Xr=r,De=$t(a.firstChild)):De=r),st(e,t,t.pendingProps.children,n),Os(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((r=a=De)&&(a=J0(a,t.type,t.pendingProps,Ht),a!==null?(t.stateNode=a,at=t,De=$t(a.firstChild),Ht=!1,r=!0):r=!1),r||xn(t)),Da(t),r=t.type,f=t.pendingProps,d=e!==null?e.memoizedProps:null,a=f.children,$r(r,f)?a=null:d!==null&&$r(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Yc(e,t,f0,null,null,n),Ti._currentValue=r),Os(e,t),st(e,t,a,n),t.child;case 6:return e===null&&ve&&((e=n=De)&&(n=W0(n,t.pendingProps,Ht),n!==null?(t.stateNode=n,at=t,De=null,e=!0):e=!1),e||xn(t)),null;case 13:return vd(e,t,n);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=gl(t,null,a,n):st(e,t,a,n),t.child;case 11:return rd(e,t,t.type,t.pendingProps,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,zn(t,t.type,a.value),st(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,ol(t),r=it(r),a=a(r),t.flags|=1,st(e,t,a,n),t.child;case 14:return fd(e,t,t.type,t.pendingProps,n);case 15:return od(e,t,t.type,t.pendingProps,n);case 19:return Sd(e,t,n);case 31:return v0(e,t,n);case 22:return hd(e,t,n,t.pendingProps);case 24:return ol(t),a=it(Xe),e===null?(r=zc(),r===null&&(r=xe,f=Cc(),r.pooledCache=f,f.refCount++,f!==null&&(r.pooledCacheLanes|=n),r=f),t.memoizedState={parent:a,cache:r},Lc(t),zn(t,Xe,r)):((e.lanes&n)!==0&&(Uc(e,t),ti(t,null,null,n),ei()),r=e.memoizedState,f=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),zn(t,Xe,a)):(a=f.cache,zn(t,Xe,a),a!==r.cache&&Mc(t,[Xe],n,!0))),st(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function mn(e){e.flags|=4}function gr(e,t,n,a,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Zd())e.flags|=8192;else throw ml=fs,Dc}else e.flags&=-16777217}function wd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Rm(t))if(Zd())e.flags|=8192;else throw ml=fs,Dc}function _s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?eo():536870912,e.lanes|=t,na|=t)}function ui(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function S0(e,t,n){var a=t.pendingProps;switch(Ec(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fn(Xe),Ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gl(t)?mn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oc())),Le(t),null;case 26:var r=t.type,f=t.memoizedState;return e===null?(mn(t),f!==null?(Le(t),wd(t,f)):(Le(t),gr(t,r,null,a,n))):f?f!==e.memoizedState?(mn(t),Le(t),wd(t,f)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&mn(t),Le(t),gr(t,r,e,a,n)),null;case 27:if(Bi(t),n=oe.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&mn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Le(t),null}e=F.current,Gl(t)?th(t):(e=Cm(r,a,n),t.stateNode=e,mn(t))}return Le(t),null;case 5:if(Bi(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&mn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Le(t),null}if(f=F.current,Gl(t))th(t);else{var d=$s(oe.current);switch(f){case 1:f=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:f=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":f=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":f=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":f=d.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?f.multiple=!0:a.size&&(f.size=a.size);break;default:f=typeof a.is=="string"?d.createElement(r,{is:a.is}):d.createElement(r)}}f[lt]=t,f[dt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)f.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=f;e:switch(ut(f,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&mn(t)}}return Le(t),gr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&mn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=oe.current,Gl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=at,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||vm(e.nodeValue,n)),e||xn(t,!0)}else e=$s(e).createTextNode(a),e[lt]=t,t.stateNode=e}return Le(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Gl(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[lt]=t}else rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else n=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Le(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Gl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[lt]=t}else rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),r=!1}else r=Oc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_s(t,t.updateQueue),Le(t),null);case 4:return Ue(),e===null&&Rr(t.stateNode.containerInfo),Le(t),null;case 10:return fn(t.type),Le(t),null;case 19:if(R(Ge),a=t.memoizedState,a===null)return Le(t),null;if(r=(t.flags&128)!==0,f=a.rendering,f===null)if(r)ui(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=ms(e),f!==null){for(t.flags|=128,ui(a,!1),e=f.updateQueue,t.updateQueue=e,_s(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Wo(n,e),n=n.sibling;return X(Ge,Ge.current&1|2),ve&&cn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Et()>Ds&&(t.flags|=128,r=!0,ui(a,!1),t.lanes=4194304)}else{if(!r)if(e=ms(f),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,_s(t,e),ui(a,!0),a.tail===null&&a.tailMode==="hidden"&&!f.alternate&&!ve)return Le(t),null}else 2*Et()-a.renderingStartTime>Ds&&n!==536870912&&(t.flags|=128,r=!0,ui(a,!1),t.lanes=4194304);a.isBackwards?(f.sibling=t.child,t.child=f):(e=a.last,e!==null?e.sibling=f:t.child=f,a.last=f)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Et(),e.sibling=null,n=Ge.current,X(Ge,r?n&1|2:n&1),ve&&cn(t,a.treeForkCount),e):(Le(t),null);case 22:case 23:return Ct(t),Bc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),n=t.updateQueue,n!==null&&_s(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&R(hl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Xe),Le(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function T0(e,t){switch(Ec(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(Xe),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Bi(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(s(340));rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(Ge),null;case 4:return Ue(),null;case 10:return fn(t.type),null;case 22:case 23:return Ct(t),Bc(),e!==null&&R(hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Xe),null;case 25:return null;default:return null}}function Ed(e,t){switch(Ec(t),t.tag){case 3:fn(Xe),Ue();break;case 26:case 27:case 5:Bi(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:R(Ge);break;case 10:fn(t.type);break;case 22:case 23:Ct(t),Bc(),e!==null&&R(hl);break;case 24:fn(Xe)}}function ci(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var f=n.create,d=n.inst;a=f(),d.destroy=a}n=n.next}while(n!==r)}}catch(y){Ne(t,t.return,y)}}function Rn(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var f=r.next;a=f;do{if((a.tag&e)===e){var d=a.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,r=t;var T=n,z=y;try{z()}catch(B){Ne(r,T,B)}}}a=a.next}while(a!==f)}}catch(B){Ne(t,t.return,B)}}function Ad(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{mh(t,n)}catch(a){Ne(e,e.return,a)}}}function Od(e,t,n){n.props=yl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ne(e,t,a)}}function ri(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){Ne(e,t,r)}}function Pt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){Ne(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function Nd(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){Ne(e,e.return,r)}}function pr(e,t,n){try{var a=e.stateNode;G0(a,e.type,n,t),a[dt]=t}catch(r){Ne(e,e.return,r)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kn(e.type)||e.tag===4}function yr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(a!==4&&(a===27&&Kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(vr(e,t,n),e=e.sibling;e!==null;)vr(e,t,n),e=e.sibling}function Ms(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Kn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function Md(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);ut(t,a,n),t[lt]=e,t[dt]=n}catch(f){Ne(e,e.return,f)}}var gn=!1,We=!1,br=!1,Cd=typeof WeakSet=="function"?WeakSet:Set,nt=null;function w0(e,t){if(e=e.containerInfo,Hr=Js,e=Yo(e),hc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var d=0,y=-1,T=-1,z=0,B=0,H=e,D=null;t:for(;;){for(var j;H!==n||r!==0&&H.nodeType!==3||(y=d+r),H!==f||a!==0&&H.nodeType!==3||(T=d+a),H.nodeType===3&&(d+=H.nodeValue.length),(j=H.firstChild)!==null;)D=H,H=j;for(;;){if(H===e)break t;if(D===n&&++z===r&&(y=d),D===f&&++B===a&&(T=d),(j=H.nextSibling)!==null)break;H=D,D=H.parentNode}H=j}n=y===-1||T===-1?null:{start:y,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yr={focusedElem:e,selectionRange:n},Js=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,n=t,r=f.memoizedProps,f=f.memoizedState,a=n.stateNode;try{var I=yl(n.type,r);e=a.getSnapshotBeforeUpdate(I,f),a.__reactInternalSnapshotBeforeUpdate=e}catch(ne){Ne(n,n.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Kr(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function xd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:yn(e,n),a&4&&ci(5,n);break;case 1:if(yn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Ne(n,n.return,d)}else{var r=yl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ne(n,n.return,d)}}a&64&&Ad(n),a&512&&ri(n,n.return);break;case 3:if(yn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{mh(e,t)}catch(d){Ne(n,n.return,d)}}break;case 27:t===null&&a&4&&Md(n);case 26:case 5:yn(e,n),t===null&&a&4&&Nd(n),a&512&&ri(n,n.return);break;case 12:yn(e,n);break;case 31:yn(e,n),a&4&&Ld(e,n);break;case 13:yn(e,n),a&4&&Ud(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=z0.bind(null,n),F0(e,n))));break;case 22:if(a=n.memoizedState!==null||gn,!a){t=t!==null&&t.memoizedState!==null||We,r=gn;var f=We;gn=a,(We=t)&&!f?vn(e,n,(n.subtreeFlags&8772)!==0):yn(e,n),gn=r,We=f}break;case 30:break;default:yn(e,n)}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ju(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var je=null,gt=!1;function pn(e,t,n){for(n=n.child;n!==null;)Dd(e,t,n),n=n.sibling}function Dd(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(La,n)}catch{}switch(n.tag){case 26:We||Pt(n,t),pn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:We||Pt(n,t);var a=je,r=gt;Kn(n.type)&&(je=n.stateNode,gt=!1),pn(e,t,n),vi(n.stateNode),je=a,gt=r;break;case 5:We||Pt(n,t);case 6:if(a=je,r=gt,je=null,pn(e,t,n),je=a,gt=r,je!==null)if(gt)try{(je.nodeType===9?je.body:je.nodeName==="HTML"?je.ownerDocument.body:je).removeChild(n.stateNode)}catch(f){Ne(n,t,f)}else try{je.removeChild(n.stateNode)}catch(f){Ne(n,t,f)}break;case 18:je!==null&&(gt?(e=je,Am(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),fa(e)):Am(je,n.stateNode));break;case 4:a=je,r=gt,je=n.stateNode.containerInfo,gt=!0,pn(e,t,n),je=a,gt=r;break;case 0:case 11:case 14:case 15:Rn(2,n,t),We||Rn(4,n,t),pn(e,t,n);break;case 1:We||(Pt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Od(n,t,a)),pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:We=(a=We)||n.memoizedState!==null,pn(e,t,n),We=a;break;default:pn(e,t,n)}}function Ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fa(e)}catch(n){Ne(t,t.return,n)}}}function Ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fa(e)}catch(n){Ne(t,t.return,n)}}function E0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Cd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Cd),t;default:throw Error(s(435,e.tag))}}function Cs(e,t){var n=E0(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var r=D0.bind(null,e,a);a.then(r,r)}})}function pt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a],f=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Kn(y.type)){je=y.stateNode,gt=!1;break e}break;case 5:je=y.stateNode,gt=!1;break e;case 3:case 4:je=y.stateNode.containerInfo,gt=!0;break e}y=y.return}if(je===null)throw Error(s(160));Dd(f,d,r),je=null,gt=!1,f=r.alternate,f!==null&&(f.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jd(t,e),t=t.sibling}var Xt=null;function jd(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),yt(e),a&4&&(Rn(3,e,e.return),ci(3,e),Rn(5,e,e.return));break;case 1:pt(t,e),yt(e),a&512&&(We||n===null||Pt(n,n.return)),a&64&&gn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var r=Xt;if(pt(t,e),yt(e),a&512&&(We||n===null||Pt(n,n.return)),a&4){var f=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":f=r.getElementsByTagName("title")[0],(!f||f[ka]||f[lt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=r.createElement(a),r.head.insertBefore(f,r.querySelector("head > title"))),ut(f,a,n),f[lt]=e,tt(f),a=f;break e;case"link":var d=jm("link","href",r).get(a+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(f=d[y],f.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&f.getAttribute("rel")===(n.rel==null?null:n.rel)&&f.getAttribute("title")===(n.title==null?null:n.title)&&f.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break t}}f=r.createElement(a),ut(f,a,n),r.head.appendChild(f);break;case"meta":if(d=jm("meta","content",r).get(a+(n.content||""))){for(y=0;y<d.length;y++)if(f=d[y],f.getAttribute("content")===(n.content==null?null:""+n.content)&&f.getAttribute("name")===(n.name==null?null:n.name)&&f.getAttribute("property")===(n.property==null?null:n.property)&&f.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&f.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break t}}f=r.createElement(a),ut(f,a,n),r.head.appendChild(f);break;default:throw Error(s(468,a))}f[lt]=e,tt(f),a=f}e.stateNode=a}else km(r,e.type,e.stateNode);else e.stateNode=Um(r,a,e.memoizedProps);else f!==a?(f===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):f.count--,a===null?km(r,e.type,e.stateNode):Um(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&pr(e,e.memoizedProps,n.memoizedProps)}break;case 27:pt(t,e),yt(e),a&512&&(We||n===null||Pt(n,n.return)),n!==null&&a&4&&pr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(pt(t,e),yt(e),a&512&&(We||n===null||Pt(n,n.return)),e.flags&32){r=e.stateNode;try{Ll(r,"")}catch(I){Ne(e,e.return,I)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,pr(e,r,n!==null?n.memoizedProps:r)),a&1024&&(br=!0);break;case 6:if(pt(t,e),yt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(I){Ne(e,e.return,I)}}break;case 3:if(Vs=null,r=Xt,Xt=Gs(t.containerInfo),pt(t,e),Xt=r,yt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{fa(t.containerInfo)}catch(I){Ne(e,e.return,I)}br&&(br=!1,kd(e));break;case 4:a=Xt,Xt=Gs(e.stateNode.containerInfo),pt(t,e),yt(e),Xt=a;break;case 12:pt(t,e),yt(e);break;case 31:pt(t,e),yt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cs(e,a)));break;case 13:pt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(zs=Et()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cs(e,a)));break;case 22:r=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,z=gn,B=We;if(gn=z||r,We=B||T,pt(t,e),We=B,gn=z,yt(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||T||gn||We||vl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(f=T.stateNode,r)d=f.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=T.stateNode;var H=T.memoizedProps.style,D=H!=null&&H.hasOwnProperty("display")?H.display:null;y.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(I){Ne(T,T.return,I)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(I){Ne(T,T.return,I)}}}else if(t.tag===18){if(n===null){T=t;try{var j=T.stateNode;r?Om(j,!0):Om(T.stateNode,!1)}catch(I){Ne(T,T.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Cs(e,n))));break;case 19:pt(t,e),yt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cs(e,a)));break;case 30:break;case 21:break;default:pt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(_d(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var r=n.stateNode,f=yr(e);Ms(e,f,r);break;case 5:var d=n.stateNode;n.flags&32&&(Ll(d,""),n.flags&=-33);var y=yr(e);Ms(e,y,d);break;case 3:case 4:var T=n.stateNode.containerInfo,z=yr(e);vr(e,z,T);break;default:throw Error(s(161))}}catch(B){Ne(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xd(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rn(4,t,t.return),vl(t);break;case 1:Pt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Od(t,t.return,n),vl(t);break;case 27:vi(t.stateNode);case 26:case 5:Pt(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function vn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,f=t,d=f.flags;switch(f.tag){case 0:case 11:case 15:vn(r,f,n),ci(4,f);break;case 1:if(vn(r,f,n),a=f,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){Ne(a,a.return,z)}if(a=f,r=a.updateQueue,r!==null){var y=a.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)dh(T[r],y)}catch(z){Ne(a,a.return,z)}}n&&d&64&&Ad(f),ri(f,f.return);break;case 27:Md(f);case 26:case 5:vn(r,f,n),n&&a===null&&d&4&&Nd(f),ri(f,f.return);break;case 12:vn(r,f,n);break;case 31:vn(r,f,n),n&&d&4&&Ld(r,f);break;case 13:vn(r,f,n),n&&d&4&&Ud(r,f);break;case 22:f.memoizedState===null&&vn(r,f,n),ri(f,f.return);break;case 30:break;default:vn(r,f,n)}t=t.sibling}}function Sr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ja(n))}function Tr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ja(e))}function Zt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rd(e,t,n,a),t=t.sibling}function Rd(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,n,a),r&2048&&ci(9,t);break;case 1:Zt(e,t,n,a);break;case 3:Zt(e,t,n,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ja(e)));break;case 12:if(r&2048){Zt(e,t,n,a),e=t.stateNode;try{var f=t.memoizedProps,d=f.id,y=f.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ne(t,t.return,T)}}else Zt(e,t,n,a);break;case 31:Zt(e,t,n,a);break;case 13:Zt(e,t,n,a);break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState!==null?f._visibility&2?Zt(e,t,n,a):fi(e,t):f._visibility&2?Zt(e,t,n,a):(f._visibility|=2,Pl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Sr(d,t);break;case 24:Zt(e,t,n,a),r&2048&&Tr(t.alternate,t);break;default:Zt(e,t,n,a)}}function Pl(e,t,n,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,d=t,y=n,T=a,z=d.flags;switch(d.tag){case 0:case 11:case 15:Pl(f,d,y,T,r),ci(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?Pl(f,d,y,T,r):fi(f,d):(B._visibility|=2,Pl(f,d,y,T,r)),r&&z&2048&&Sr(d.alternate,d);break;case 24:Pl(f,d,y,T,r),r&&z&2048&&Tr(d.alternate,d);break;default:Pl(f,d,y,T,r)}t=t.sibling}}function fi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:fi(n,a),r&2048&&Sr(a.alternate,a);break;case 24:fi(n,a),r&2048&&Tr(a.alternate,a);break;default:fi(n,a)}t=t.sibling}}var oi=8192;function ea(e,t,n){if(e.subtreeFlags&oi)for(e=e.child;e!==null;)Bd(e,t,n),e=e.sibling}function Bd(e,t,n){switch(e.tag){case 26:ea(e,t,n),e.flags&oi&&e.memoizedState!==null&&r1(n,Xt,e.memoizedState,e.memoizedProps);break;case 5:ea(e,t,n);break;case 3:case 4:var a=Xt;Xt=Gs(e.stateNode.containerInfo),ea(e,t,n),Xt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=oi,oi=16777216,ea(e,t,n),oi=a):ea(e,t,n));break;default:ea(e,t,n)}}function qd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];nt=a,Yd(a,e)}qd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Hd(e),e=e.sibling}function Hd(e){switch(e.tag){case 0:case 11:case 15:hi(e),e.flags&2048&&Rn(9,e,e.return);break;case 3:hi(e);break;case 12:hi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xs(e)):hi(e);break;default:hi(e)}}function xs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];nt=a,Yd(a,e)}qd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rn(8,t,t.return),xs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,xs(t));break;default:xs(t)}e=e.sibling}}function Yd(e,t){for(;nt!==null;){var n=nt;switch(n.tag){case 0:case 11:case 15:Rn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ja(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,nt=a;else e:for(n=e;nt!==null;){a=nt;var r=a.sibling,f=a.return;if(zd(a),a===n){nt=null;break e}if(r!==null){r.return=f,nt=r;break e}nt=f}}}var A0={getCacheForType:function(e){var t=it(Xe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return it(Xe).controller.signal}},O0=typeof WeakMap=="function"?WeakMap:Map,Ee=0,xe=null,me=null,pe=0,Oe=0,xt=null,Bn=!1,ta=!1,wr=!1,bn=0,He=0,qn=0,bl=0,Er=0,zt=0,na=0,di=null,vt=null,Ar=!1,zs=0,$d=0,Ds=1/0,Ls=null,Hn=null,Pe=0,Yn=null,la=null,Sn=0,Or=0,Nr=null,Gd=null,mi=0,_r=null;function Dt(){return(Ee&2)!==0&&pe!==0?pe&-pe:k.T!==null?Lr():ao()}function Kd(){if(zt===0)if((pe&536870912)===0||ve){var e=Yi;Yi<<=1,(Yi&3932160)===0&&(Yi=262144),zt=e}else zt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),zt}function bt(e,t,n){(e===xe&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(aa(e,0),$n(e,pe,zt,!1)),ja(e,n),((Ee&2)===0||e!==xe)&&(e===xe&&((Ee&2)===0&&(bl|=n),He===4&&$n(e,pe,zt,!1)),en(e))}function Vd(e,t,n){if((Ee&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ua(e,t),r=a?M0(e,t):Cr(e,t,!0),f=a;do{if(r===0){ta&&!a&&$n(e,t,0,!1);break}else{if(n=e.current.alternate,f&&!N0(n)){r=Cr(e,t,!1),f=!1;continue}if(r===2){if(f=t,e.errorRecoveryDisabledLanes&f)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;r=di;var T=y.current.memoizedState.isDehydrated;if(T&&(aa(y,d).flags|=256),d=Cr(y,d,!1),d!==2){if(wr&&!T){y.errorRecoveryDisabledLanes|=f,bl|=f,r=4;break e}f=vt,vt=r,f!==null&&(vt===null?vt=f:vt.push.apply(vt,f))}r=d}if(f=!1,r!==2)continue}}if(r===1){aa(e,0),$n(e,t,0,!0);break}e:{switch(a=e,f=r,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:$n(a,t,zt,!Bn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=zs+300-Et(),10<r)){if($n(a,t,zt,!Bn),Gi(a,0,!0)!==0)break e;Sn=t,a.timeoutHandle=wm(Qd.bind(null,a,n,vt,Ls,Ar,t,zt,bl,na,Bn,f,"Throttled",-0,0),r);break e}Qd(a,n,vt,Ls,Ar,t,zt,bl,na,Bn,f,null,-0,0)}}break}while(!0);en(e)}function Qd(e,t,n,a,r,f,d,y,T,z,B,H,D,j){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},Bd(t,f,H);var I=(f&62914560)===f?zs-Et():(f&4194048)===f?$d-Et():0;if(I=f1(H,I),I!==null){Sn=f,e.cancelPendingCommit=I(em.bind(null,e,t,f,n,a,r,d,y,T,B,H,null,D,j)),$n(e,f,d,!z);return}}em(e,t,f,n,a,r,d,y,T)}function N0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var r=n[a],f=r.getSnapshot;r=r.value;try{if(!Nt(f(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t,n,a){t&=~Er,t&=~bl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var f=31-Ot(r),d=1<<f;a[f]=-1,r&=~d}n!==0&&to(e,n,t)}function Us(){return(Ee&6)===0?(gi(0),!1):!0}function Mr(){if(me!==null){if(Oe===0)var e=me.return;else e=me,rn=fl=null,Kc(e),Zl=null,Fa=0,e=me;for(;e!==null;)Ed(e.alternate,e),e=e.return;me=null}}function aa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Q0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sn=0,Mr(),xe=e,me=n=un(e.current,null),pe=t,Oe=0,xt=null,Bn=!1,ta=Ua(e,t),wr=!1,na=zt=Er=bl=qn=He=0,vt=di=null,Ar=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var r=31-Ot(a),f=1<<r;t|=e[r],a&=~f}return bn=t,ts(),n}function Xd(e,t){he=null,k.H=ii,t===Xl||t===rs?(t=rh(),Oe=3):t===Dc?(t=rh(),Oe=4):Oe=t===sr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,xt=t,me===null&&(He=1,Es(e,Rt(t,e.current)))}function Zd(){var e=Mt.current;return e===null?!0:(pe&4194048)===pe?Yt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Yt:!1}function Jd(){var e=k.H;return k.H=ii,e===null?ii:e}function Wd(){var e=k.A;return k.A=A0,e}function js(){He=4,Bn||(pe&4194048)!==pe&&Mt.current!==null||(ta=!0),(qn&134217727)===0&&(bl&134217727)===0||xe===null||$n(xe,pe,zt,!1)}function Cr(e,t,n){var a=Ee;Ee|=2;var r=Jd(),f=Wd();(xe!==e||pe!==t)&&(Ls=null,aa(e,t)),t=!1;var d=He;e:do try{if(Oe!==0&&me!==null){var y=me,T=xt;switch(Oe){case 8:Mr(),d=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var z=Oe;if(Oe=0,xt=null,ia(e,y,T,z),n&&ta){d=0;break e}break;default:z=Oe,Oe=0,xt=null,ia(e,y,T,z)}}_0(),d=He;break}catch(B){Xd(e,B)}while(!0);return t&&e.shellSuspendCounter++,rn=fl=null,Ee=a,k.H=r,k.A=f,me===null&&(xe=null,pe=0,ts()),d}function _0(){for(;me!==null;)Fd(me)}function M0(e,t){var n=Ee;Ee|=2;var a=Jd(),r=Wd();xe!==e||pe!==t?(Ls=null,Ds=Et()+500,aa(e,t)):ta=Ua(e,t);e:do try{if(Oe!==0&&me!==null){t=me;var f=xt;t:switch(Oe){case 1:Oe=0,xt=null,ia(e,t,f,1);break;case 2:case 9:if(uh(f)){Oe=0,xt=null,Id(t);break}t=function(){Oe!==2&&Oe!==9||xe!==e||(Oe=7),en(e)},f.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:uh(f)?(Oe=0,xt=null,Id(t)):(Oe=0,xt=null,ia(e,t,f,7));break;case 5:var d=null;switch(me.tag){case 26:d=me.memoizedState;case 5:case 27:var y=me;if(d?Rm(d):y.stateNode.complete){Oe=0,xt=null;var T=y.sibling;if(T!==null)me=T;else{var z=y.return;z!==null?(me=z,ks(z)):me=null}break t}}Oe=0,xt=null,ia(e,t,f,5);break;case 6:Oe=0,xt=null,ia(e,t,f,6);break;case 8:Mr(),He=6;break e;default:throw Error(s(462))}}C0();break}catch(B){Xd(e,B)}while(!0);return rn=fl=null,k.H=a,k.A=r,Ee=n,me!==null?0:(xe=null,pe=0,ts(),He)}function C0(){for(;me!==null&&!Ip();)Fd(me)}function Fd(e){var t=Td(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?ks(e):me=t}function Id(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gd(n,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=gd(n,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Kc(t);default:Ed(n,t),t=me=Wo(t,bn),t=Td(n,t,bn)}e.memoizedProps=e.pendingProps,t===null?ks(e):me=t}function ia(e,t,n,a){rn=fl=null,Kc(t),Zl=null,Fa=0;var r=t.return;try{if(y0(e,r,t,n,pe)){He=1,Es(e,Rt(n,e.current)),me=null;return}}catch(f){if(r!==null)throw me=r,f;He=1,Es(e,Rt(n,e.current)),me=null;return}t.flags&32768?(ve||a===1?e=!0:ta||(pe&536870912)!==0?e=!1:(Bn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Pd(t,e)):ks(t)}function ks(e){var t=e;do{if((t.flags&32768)!==0){Pd(t,Bn);return}e=t.return;var n=S0(t.alternate,t,bn);if(n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);He===0&&(He=5)}function Pd(e,t){do{var n=T0(e.alternate,e);if(n!==null){n.flags&=32767,me=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=n}while(e!==null);He=6,me=null}function em(e,t,n,a,r,f,d,y,T){e.cancelPendingCommit=null;do Rs();while(Pe!==0);if((Ee&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=yc,cy(e,n,f,d,y,T),e===xe&&(me=xe=null,pe=0),la=t,Yn=e,Sn=n,Or=f,Nr=r,Gd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,L0(qi,function(){return im(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null,r=Q.p,Q.p=2,d=Ee,Ee|=4;try{w0(e,t,n)}finally{Ee=d,Q.p=r,k.T=a}}Pe=1,tm(),nm(),lm()}}function tm(){if(Pe===1){Pe=0;var e=Yn,t=la,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=k.T,k.T=null;var a=Q.p;Q.p=2;var r=Ee;Ee|=4;try{jd(t,e);var f=Yr,d=Yo(e.containerInfo),y=f.focusedElem,T=f.selectionRange;if(d!==y&&y&&y.ownerDocument&&Ho(y.ownerDocument.documentElement,y)){if(T!==null&&hc(y)){var z=T.start,B=T.end;if(B===void 0&&(B=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(B,y.value.length);else{var H=y.ownerDocument||document,D=H&&H.defaultView||window;if(D.getSelection){var j=D.getSelection(),I=y.textContent.length,ne=Math.min(T.start,I),Ce=T.end===void 0?ne:Math.min(T.end,I);!j.extend&&ne>Ce&&(d=Ce,Ce=ne,ne=d);var _=qo(y,ne),O=qo(y,Ce);if(_&&O&&(j.rangeCount!==1||j.anchorNode!==_.node||j.anchorOffset!==_.offset||j.focusNode!==O.node||j.focusOffset!==O.offset)){var C=H.createRange();C.setStart(_.node,_.offset),j.removeAllRanges(),ne>Ce?(j.addRange(C),j.extend(O.node,O.offset)):(C.setEnd(O.node,O.offset),j.addRange(C))}}}}for(H=[],j=y;j=j.parentNode;)j.nodeType===1&&H.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<H.length;y++){var q=H[y];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Js=!!Hr,Yr=Hr=null}finally{Ee=r,Q.p=a,k.T=n}}e.current=t,Pe=2}}function nm(){if(Pe===2){Pe=0;var e=Yn,t=la,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=k.T,k.T=null;var a=Q.p;Q.p=2;var r=Ee;Ee|=4;try{xd(e,t.alternate,t)}finally{Ee=r,Q.p=a,k.T=n}}Pe=3}}function lm(){if(Pe===4||Pe===3){Pe=0,Pp();var e=Yn,t=la,n=Sn,a=Gd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Pe=5:(Pe=0,la=Yn=null,am(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Hn=null),Xu(n),t=t.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(La,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=k.T,r=Q.p,Q.p=2,k.T=null;try{for(var f=e.onRecoverableError,d=0;d<a.length;d++){var y=a[d];f(y.value,{componentStack:y.stack})}}finally{k.T=t,Q.p=r}}(Sn&3)!==0&&Rs(),en(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===_r?mi++:(mi=0,_r=e):mi=0,gi(0)}}function am(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ja(t)))}function Rs(){return tm(),nm(),lm(),im()}function im(){if(Pe!==5)return!1;var e=Yn,t=Or;Or=0;var n=Xu(Sn),a=k.T,r=Q.p;try{Q.p=32>n?32:n,k.T=null,n=Nr,Nr=null;var f=Yn,d=Sn;if(Pe=0,la=Yn=null,Sn=0,(Ee&6)!==0)throw Error(s(331));var y=Ee;if(Ee|=4,Hd(f.current),Rd(f,f.current,d,n),Ee=y,gi(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(La,f)}catch{}return!0}finally{Q.p=r,k.T=a,am(e,t)}}function sm(e,t,n){t=Rt(n,t),t=ir(e.stateNode,t,2),e=Un(e,t,2),e!==null&&(ja(e,2),en(e))}function Ne(e,t,n){if(e.tag===3)sm(e,e,n);else for(;t!==null;){if(t.tag===3){sm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hn===null||!Hn.has(a))){e=Rt(n,e),n=ud(2),a=Un(t,n,2),a!==null&&(cd(n,a,t,e),ja(a,2),en(a));break}}t=t.return}}function xr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new O0;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(wr=!0,r.add(n),e=x0.bind(null,e,t,n),t.then(e,e))}function x0(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,xe===e&&(pe&n)===n&&(He===4||He===3&&(pe&62914560)===pe&&300>Et()-zs?(Ee&2)===0&&aa(e,0):Er|=n,na===pe&&(na=0)),en(e)}function um(e,t){t===0&&(t=eo()),e=ul(e,t),e!==null&&(ja(e,t),en(e))}function z0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),um(e,n)}function D0(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),um(e,n)}function L0(e,t){return Gu(e,t)}var Bs=null,sa=null,zr=!1,qs=!1,Dr=!1,Gn=0;function en(e){e!==sa&&e.next===null&&(sa===null?Bs=sa=e:sa=sa.next=e),qs=!0,zr||(zr=!0,j0())}function gi(e,t){if(!Dr&&qs){Dr=!0;do for(var n=!1,a=Bs;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var f=0;else{var d=a.suspendedLanes,y=a.pingedLanes;f=(1<<31-Ot(42|e)+1)-1,f&=r&~(d&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,om(a,f))}else f=pe,f=Gi(a,a===xe?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(f&3)===0||Ua(a,f)||(n=!0,om(a,f));a=a.next}while(n);Dr=!1}}function U0(){cm()}function cm(){qs=zr=!1;var e=0;Gn!==0&&V0()&&(e=Gn);for(var t=Et(),n=null,a=Bs;a!==null;){var r=a.next,f=rm(a,t);f===0?(a.next=null,n===null?Bs=r:n.next=r,r===null&&(sa=n)):(n=a,(e!==0||(f&3)!==0)&&(qs=!0)),a=r}Pe!==0&&Pe!==5||gi(e),Gn!==0&&(Gn=0)}function rm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var d=31-Ot(f),y=1<<d,T=r[d];T===-1?((y&n)===0||(y&a)!==0)&&(r[d]=uy(y,t)):T<=t&&(e.expiredLanes|=y),f&=~y}if(t=xe,n=pe,n=Gi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ku(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ua(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Ku(a),Xu(n)){case 2:case 8:n=If;break;case 32:n=qi;break;case 268435456:n=Pf;break;default:n=qi}return a=fm.bind(null,e),n=Gu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Ku(a),e.callbackPriority=2,e.callbackNode=null,2}function fm(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Rs()&&e.callbackNode!==n)return null;var a=pe;return a=Gi(e,e===xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Vd(e,a,t),rm(e,Et()),e.callbackNode!=null&&e.callbackNode===n?fm.bind(null,e):null)}function om(e,t){if(Rs())return null;Vd(e,t,!0)}function j0(){X0(function(){(Ee&6)!==0?Gu(Ff,U0):cm()})}function Lr(){if(Gn===0){var e=Vl;e===0&&(e=Hi,Hi<<=1,(Hi&261888)===0&&(Hi=256)),Gn=e}return Gn}function hm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xi(""+e)}function dm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function k0(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var f=hm((r[dt]||null).action),d=a.submitter;d&&(t=(t=d[dt]||null)?hm(t.formAction):d.getAttribute("formAction"),t!==null&&(f=t,d=null));var y=new Fi("action","action",null,a,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Gn!==0){var T=d?dm(r,d):new FormData(r);Pc(n,{pending:!0,data:T,method:r.method,action:f},null,T)}}else typeof f=="function"&&(y.preventDefault(),T=d?dm(r,d):new FormData(r),Pc(n,{pending:!0,data:T,method:r.method,action:f},f,T))},currentTarget:r}]})}}for(var Ur=0;Ur<pc.length;Ur++){var jr=pc[Ur],R0=jr.toLowerCase(),B0=jr[0].toUpperCase()+jr.slice(1);Qt(R0,"on"+B0)}Qt(Ko,"onAnimationEnd"),Qt(Vo,"onAnimationIteration"),Qt(Qo,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(e0,"onTransitionRun"),Qt(t0,"onTransitionStart"),Qt(n0,"onTransitionCancel"),Qt(Xo,"onTransitionEnd"),zl("onMouseEnter",["mouseout","mouseover"]),zl("onMouseLeave",["mouseout","mouseover"]),zl("onPointerEnter",["pointerout","pointerover"]),zl("onPointerLeave",["pointerout","pointerover"]),ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),q0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pi));function mm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var f=void 0;if(t)for(var d=a.length-1;0<=d;d--){var y=a[d],T=y.instance,z=y.currentTarget;if(y=y.listener,T!==f&&r.isPropagationStopped())break e;f=y,r.currentTarget=z;try{f(r)}catch(B){es(B)}r.currentTarget=null,f=T}else for(d=0;d<a.length;d++){if(y=a[d],T=y.instance,z=y.currentTarget,y=y.listener,T!==f&&r.isPropagationStopped())break e;f=y,r.currentTarget=z;try{f(r)}catch(B){es(B)}r.currentTarget=null,f=T}}}}function ge(e,t){var n=t[Zu];n===void 0&&(n=t[Zu]=new Set);var a=e+"__bubble";n.has(a)||(gm(t,e,2,!1),n.add(a))}function kr(e,t,n){var a=0;t&&(a|=4),gm(n,e,a,t)}var Hs="_reactListening"+Math.random().toString(36).slice(2);function Rr(e){if(!e[Hs]){e[Hs]=!0,uo.forEach(function(n){n!=="selectionchange"&&(q0.has(n)||kr(n,!1,e),kr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hs]||(t[Hs]=!0,kr("selectionchange",!1,t))}}function gm(e,t,n,a){switch(Km(t)){case 2:var r=d1;break;case 8:r=m1;break;default:r=Ir}n=r.bind(null,t,n,e),r=void 0,!lc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Br(e,t,n,a,r){var f=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var y=a.stateNode.containerInfo;if(y===r)break;if(d===4)for(d=a.return;d!==null;){var T=d.tag;if((T===3||T===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;y!==null;){if(d=Ml(y),d===null)return;if(T=d.tag,T===5||T===6||T===26||T===27){a=f=d;continue e}y=y.parentNode}}a=a.return}So(function(){var z=f,B=tc(n),H=[];e:{var D=Zo.get(e);if(D!==void 0){var j=Fi,I=e;switch(e){case"keypress":if(Ji(n)===0)break e;case"keydown":case"keyup":j=Dy;break;case"focusin":I="focus",j=uc;break;case"focusout":I="blur",j=uc;break;case"beforeblur":case"afterblur":j=uc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Eo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=jy;break;case Ko:case Vo:case Qo:j=Ey;break;case Xo:j=Ry;break;case"scroll":case"scrollend":j=vy;break;case"wheel":j=qy;break;case"copy":case"cut":case"paste":j=Oy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Oo;break;case"toggle":case"beforetoggle":j=Yy}var ne=(t&4)!==0,Ce=!ne&&(e==="scroll"||e==="scrollend"),_=ne?D!==null?D+"Capture":null:D;ne=[];for(var O=z,C;O!==null;){var q=O;if(C=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||C===null||_===null||(q=Ba(O,_),q!=null&&ne.push(yi(O,q,C))),Ce)break;O=O.return}0<ne.length&&(D=new j(D,I,null,n,B),H.push({event:D,listeners:ne}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",D&&n!==ec&&(I=n.relatedTarget||n.fromElement)&&(Ml(I)||I[_l]))break e;if((j||D)&&(D=B.window===B?B:(D=B.ownerDocument)?D.defaultView||D.parentWindow:window,j?(I=n.relatedTarget||n.toElement,j=z,I=I?Ml(I):null,I!==null&&(Ce=o(I),ne=I.tag,I!==Ce||ne!==5&&ne!==27&&ne!==6)&&(I=null)):(j=null,I=z),j!==I)){if(ne=Eo,q="onMouseLeave",_="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ne=Oo,q="onPointerLeave",_="onPointerEnter",O="pointer"),Ce=j==null?D:Ra(j),C=I==null?D:Ra(I),D=new ne(q,O+"leave",j,n,B),D.target=Ce,D.relatedTarget=C,q=null,Ml(B)===z&&(ne=new ne(_,O+"enter",I,n,B),ne.target=C,ne.relatedTarget=Ce,q=ne),Ce=q,j&&I)t:{for(ne=H0,_=j,O=I,C=0,q=_;q;q=ne(q))C++;q=0;for(var te=O;te;te=ne(te))q++;for(;0<C-q;)_=ne(_),C--;for(;0<q-C;)O=ne(O),q--;for(;C--;){if(_===O||O!==null&&_===O.alternate){ne=_;break t}_=ne(_),O=ne(O)}ne=null}else ne=null;j!==null&&pm(H,D,j,ne,!1),I!==null&&Ce!==null&&pm(H,Ce,I,ne,!0)}}e:{if(D=z?Ra(z):window,j=D.nodeName&&D.nodeName.toLowerCase(),j==="select"||j==="input"&&D.type==="file")var Se=Lo;else if(zo(D))if(Uo)Se=Fy;else{Se=Jy;var ee=Zy}else j=D.nodeName,!j||j.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?z&&Pu(z.elementType)&&(Se=Lo):Se=Wy;if(Se&&(Se=Se(e,z))){Do(H,Se,n,B);break e}ee&&ee(e,D,z),e==="focusout"&&z&&D.type==="number"&&z.memoizedProps.value!=null&&Iu(D,"number",D.value)}switch(ee=z?Ra(z):window,e){case"focusin":(zo(ee)||ee.contentEditable==="true")&&(Rl=ee,dc=z,Qa=null);break;case"focusout":Qa=dc=Rl=null;break;case"mousedown":mc=!0;break;case"contextmenu":case"mouseup":case"dragend":mc=!1,$o(H,n,B);break;case"selectionchange":if(Py)break;case"keydown":case"keyup":$o(H,n,B)}var de;if(rc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else kl?Co(e,n)&&(ye="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ye="onCompositionStart");ye&&(No&&n.locale!=="ko"&&(kl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&kl&&(de=To()):(_n=B,ac="value"in _n?_n.value:_n.textContent,kl=!0)),ee=Ys(z,ye),0<ee.length&&(ye=new Ao(ye,e,null,n,B),H.push({event:ye,listeners:ee}),de?ye.data=de:(de=xo(n),de!==null&&(ye.data=de)))),(de=Gy?Ky(e,n):Vy(e,n))&&(ye=Ys(z,"onBeforeInput"),0<ye.length&&(ee=new Ao("onBeforeInput","beforeinput",null,n,B),H.push({event:ee,listeners:ye}),ee.data=de)),k0(H,e,z,n,B)}mm(H,t)})}function yi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ys(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,f=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||f===null||(r=Ba(e,n),r!=null&&a.unshift(yi(e,r,f)),r=Ba(e,t),r!=null&&a.push(yi(e,r,f))),e.tag===3)return a;e=e.return}return[]}function H0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pm(e,t,n,a,r){for(var f=t._reactName,d=[];n!==null&&n!==a;){var y=n,T=y.alternate,z=y.stateNode;if(y=y.tag,T!==null&&T===a)break;y!==5&&y!==26&&y!==27||z===null||(T=z,r?(z=Ba(n,f),z!=null&&d.unshift(yi(n,z,T))):r||(z=Ba(n,f),z!=null&&d.push(yi(n,z,T)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var Y0=/\r\n?/g,$0=/\u0000|\uFFFD/g;function ym(e){return(typeof e=="string"?e:""+e).replace(Y0,`
|
|
50
|
-
`).replace($0,"")}function vm(e,t){return t=ym(t),ym(e)===t}function Me(e,t,n,a,r,f){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ll(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ll(e,""+a);break;case"className":Vi(e,"class",a);break;case"tabIndex":Vi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vi(e,n,a);break;case"style":vo(e,a,f);break;case"data":if(t!=="object"){Vi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",r.name,r,null),Me(e,t,"formEncType",r.formEncType,r,null),Me(e,t,"formMethod",r.formMethod,r,null),Me(e,t,"formTarget",r.formTarget,r,null)):(Me(e,t,"encType",r.encType,r,null),Me(e,t,"method",r.method,r,null),Me(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Xi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=an);break;case"onScroll":a!=null&&ge("scroll",e);break;case"onScrollEnd":a!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Xi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ge("beforetoggle",e),ge("toggle",e),Ki(e,"popover",a);break;case"xlinkActuate":ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ln(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ln(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ln(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ln(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ki(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=py.get(n)||n,Ki(e,n,a))}}function qr(e,t,n,a,r,f){switch(n){case"style":vo(e,a,f);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ll(e,a):(typeof a=="number"||typeof a=="bigint")&&Ll(e,""+a);break;case"onScroll":a!=null&&ge("scroll",e);break;case"onScrollEnd":a!=null&&ge("scrollend",e);break;case"onClick":a!=null&&(e.onclick=an);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!co.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),f=e[dt]||null,f=f!=null?f[n]:null,typeof f=="function"&&e.removeEventListener(t,f,r),typeof a=="function")){typeof f!="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ki(e,n,a)}}}function ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var a=!1,r=!1,f;for(f in n)if(n.hasOwnProperty(f)){var d=n[f];if(d!=null)switch(f){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,f,d,n,null)}}r&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":ge("invalid",e);var y=f=d=r=null,T=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var B=n[a];if(B!=null)switch(a){case"name":r=B;break;case"type":d=B;break;case"checked":T=B;break;case"defaultChecked":z=B;break;case"value":f=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Me(e,t,a,B,n,null)}}mo(e,f,y,T,z,d,r,!1);return;case"select":ge("invalid",e),a=d=f=null;for(r in n)if(n.hasOwnProperty(r)&&(y=n[r],y!=null))switch(r){case"value":f=y;break;case"defaultValue":d=y;break;case"multiple":a=y;default:Me(e,t,r,y,n,null)}t=f,n=d,e.multiple=!!a,t!=null?Dl(e,!!a,t,!1):n!=null&&Dl(e,!!a,n,!0);return;case"textarea":ge("invalid",e),f=r=a=null;for(d in n)if(n.hasOwnProperty(d)&&(y=n[d],y!=null))switch(d){case"value":a=y;break;case"defaultValue":r=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Me(e,t,d,y,n,null)}po(e,a,r,f);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(a=n[T],a!=null))switch(T){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,T,a,n,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(a=0;a<pi.length;a++)ge(pi[a],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,z,a,n,null)}return;default:if(Pu(t)){for(B in n)n.hasOwnProperty(B)&&(a=n[B],a!==void 0&&qr(e,t,B,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Me(e,t,y,a,n,null))}function G0(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,f=null,d=null,y=null,T=null,z=null,B=null;for(j in n){var H=n[j];if(n.hasOwnProperty(j)&&H!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":T=H;default:a.hasOwnProperty(j)||Me(e,t,j,null,a,H)}}for(var D in a){var j=a[D];if(H=n[D],a.hasOwnProperty(D)&&(j!=null||H!=null))switch(D){case"type":f=j;break;case"name":r=j;break;case"checked":z=j;break;case"defaultChecked":B=j;break;case"value":d=j;break;case"defaultValue":y=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==H&&Me(e,t,D,j,a,H)}}Fu(e,d,y,T,z,B,f,r);return;case"select":j=d=y=D=null;for(f in n)if(T=n[f],n.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":j=T;default:a.hasOwnProperty(f)||Me(e,t,f,null,a,T)}for(r in a)if(f=a[r],T=n[r],a.hasOwnProperty(r)&&(f!=null||T!=null))switch(r){case"value":D=f;break;case"defaultValue":y=f;break;case"multiple":d=f;default:f!==T&&Me(e,t,r,f,a,T)}t=y,n=d,a=j,D!=null?Dl(e,!!n,D,!1):!!a!=!!n&&(t!=null?Dl(e,!!n,t,!0):Dl(e,!!n,n?[]:"",!1));return;case"textarea":j=D=null;for(y in n)if(r=n[y],n.hasOwnProperty(y)&&r!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Me(e,t,y,null,a,r)}for(d in a)if(r=a[d],f=n[d],a.hasOwnProperty(d)&&(r!=null||f!=null))switch(d){case"value":D=r;break;case"defaultValue":j=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==f&&Me(e,t,d,r,a,f)}go(e,D,j);return;case"option":for(var I in n)if(D=n[I],n.hasOwnProperty(I)&&D!=null&&!a.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Me(e,t,I,null,a,D)}for(T in a)if(D=a[T],j=n[T],a.hasOwnProperty(T)&&D!==j&&(D!=null||j!=null))switch(T){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Me(e,t,T,D,a,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ne in n)D=n[ne],n.hasOwnProperty(ne)&&D!=null&&!a.hasOwnProperty(ne)&&Me(e,t,ne,null,a,D);for(z in a)if(D=a[z],j=n[z],a.hasOwnProperty(z)&&D!==j&&(D!=null||j!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:Me(e,t,z,D,a,j)}return;default:if(Pu(t)){for(var Ce in n)D=n[Ce],n.hasOwnProperty(Ce)&&D!==void 0&&!a.hasOwnProperty(Ce)&&qr(e,t,Ce,void 0,a,D);for(B in a)D=a[B],j=n[B],!a.hasOwnProperty(B)||D===j||D===void 0&&j===void 0||qr(e,t,B,D,a,j);return}}for(var _ in n)D=n[_],n.hasOwnProperty(_)&&D!=null&&!a.hasOwnProperty(_)&&Me(e,t,_,null,a,D);for(H in a)D=a[H],j=n[H],!a.hasOwnProperty(H)||D===j||D==null&&j==null||Me(e,t,H,D,a,j)}function bm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function K0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],f=r.transferSize,d=r.initiatorType,y=r.duration;if(f&&y&&bm(d)){for(d=0,y=r.responseEnd,a+=1;a<n.length;a++){var T=n[a],z=T.startTime;if(z>y)break;var B=T.transferSize,H=T.initiatorType;B&&bm(H)&&(T=T.responseEnd,d+=B*(T<y?1:(y-z)/(T-z)))}if(--a,t+=8*(f+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hr=null,Yr=null;function $s(e){return e.nodeType===9?e:e.ownerDocument}function Sm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function $r(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gr=null;function V0(){var e=window.event;return e&&e.type==="popstate"?e===Gr?!1:(Gr=e,!0):(Gr=null,!1)}var wm=typeof setTimeout=="function"?setTimeout:void 0,Q0=typeof clearTimeout=="function"?clearTimeout:void 0,Em=typeof Promise=="function"?Promise:void 0,X0=typeof queueMicrotask=="function"?queueMicrotask:typeof Em<"u"?function(e){return Em.resolve(null).then(e).catch(Z0)}:wm;function Z0(e){setTimeout(function(){throw e})}function Kn(e){return e==="head"}function Am(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(r),fa(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")vi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,vi(n);for(var f=n.firstChild;f;){var d=f.nextSibling,y=f.nodeName;f[ka]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&f.rel.toLowerCase()==="stylesheet"||n.removeChild(f),f=d}}else n==="body"&&vi(e.ownerDocument.body);n=r}while(n);fa(t)}function Om(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Kr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Kr(n),Ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function J0(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function W0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=$t(e.nextSibling),e===null))return null;return e}function Nm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function Vr(e){return e.data==="$?"||e.data==="$~"}function Qr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function F0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Xr=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return $t(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Cm(e,t,n){switch(t=$s(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function vi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ju(e)}var Gt=new Map,xm=new Set;function Gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tn=Q.d;Q.d={f:I0,r:P0,D:e1,C:t1,L:n1,m:l1,X:i1,S:a1,M:s1};function I0(){var e=Tn.f(),t=Us();return e||t}function P0(e){var t=Cl(e);t!==null&&t.tag===5&&t.type==="form"?Xh(t):Tn.r(e)}var ua=typeof document>"u"?null:document;function zm(e,t,n){var a=ua;if(a&&typeof t=="string"&&t){var r=jt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),xm.has(r)||(xm.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),ut(t,"link",e),tt(t),a.head.appendChild(t)))}}function e1(e){Tn.D(e),zm("dns-prefetch",e,null)}function t1(e,t){Tn.C(e,t),zm("preconnect",e,t)}function n1(e,t,n){Tn.L(e,t,n);var a=ua;if(a&&e&&t){var r='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+jt(n.imageSizes)+'"]')):r+='[href="'+jt(e)+'"]';var f=r;switch(t){case"style":f=ca(e);break;case"script":f=ra(e)}Gt.has(f)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(f,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(bi(f))||t==="script"&&a.querySelector(Si(f))||(t=a.createElement("link"),ut(t,"link",e),tt(t),a.head.appendChild(t)))}}function l1(e,t){Tn.m(e,t);var n=ua;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',f=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ra(e)}if(!Gt.has(f)&&(e=v({rel:"modulepreload",href:e},t),Gt.set(f,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Si(f)))return}a=n.createElement("link"),ut(a,"link",e),tt(a),n.head.appendChild(a)}}}function a1(e,t,n){Tn.S(e,t,n);var a=ua;if(a&&e){var r=xl(a).hoistableStyles,f=ca(e);t=t||"default";var d=r.get(f);if(!d){var y={loading:0,preload:null};if(d=a.querySelector(bi(f)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(f))&&Zr(e,n);var T=d=a.createElement("link");tt(T),ut(T,"link",e),T._p=new Promise(function(z,B){T.onload=z,T.onerror=B}),T.addEventListener("load",function(){y.loading|=1}),T.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Ks(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:y},r.set(f,d)}}}function i1(e,t){Tn.X(e,t);var n=ua;if(n&&e){var a=xl(n).hoistableScripts,r=ra(e),f=a.get(r);f||(f=n.querySelector(Si(r)),f||(e=v({src:e,async:!0},t),(t=Gt.get(r))&&Jr(e,t),f=n.createElement("script"),tt(f),ut(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},a.set(r,f))}}function s1(e,t){Tn.M(e,t);var n=ua;if(n&&e){var a=xl(n).hoistableScripts,r=ra(e),f=a.get(r);f||(f=n.querySelector(Si(r)),f||(e=v({src:e,async:!0,type:"module"},t),(t=Gt.get(r))&&Jr(e,t),f=n.createElement("script"),tt(f),ut(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},a.set(r,f))}}function Dm(e,t,n,a){var r=(r=oe.current)?Gs(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ca(n.href),n=xl(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ca(n.href);var f=xl(r).hoistableStyles,d=f.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,d),(f=r.querySelector(bi(e)))&&!f._p&&(d.instance=f,d.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),f||u1(r,e,n,d.state))),t&&a===null)throw Error(s(528,""));return d}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ra(n),n=xl(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ca(e){return'href="'+jt(e)+'"'}function bi(e){return'link[rel="stylesheet"]['+e+"]"}function Lm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function u1(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ut(t,"link",n),tt(t),e.head.appendChild(t))}function ra(e){return'[src="'+jt(e)+'"]'}function Si(e){return"script[async]"+e}function Um(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(n.href)+'"]');if(a)return t.instance=a,tt(a),a;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),tt(a),ut(a,"style",r),Ks(a,n.precedence,e),t.instance=a;case"stylesheet":r=ca(n.href);var f=e.querySelector(bi(r));if(f)return t.state.loading|=4,t.instance=f,tt(f),f;a=Lm(n),(r=Gt.get(r))&&Zr(a,r),f=(e.ownerDocument||e).createElement("link"),tt(f);var d=f;return d._p=new Promise(function(y,T){d.onload=y,d.onerror=T}),ut(f,"link",a),t.state.loading|=4,Ks(f,n.precedence,e),t.instance=f;case"script":return f=ra(n.src),(r=e.querySelector(Si(f)))?(t.instance=r,tt(r),r):(a=n,(r=Gt.get(f))&&(a=v({},n),Jr(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),tt(r),ut(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ks(a,n.precedence,e));return t.instance}function Ks(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,f=r,d=0;d<a.length;d++){var y=a[d];if(y.dataset.precedence===t)f=y;else if(f!==r)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Jr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vs=null;function jm(e,t,n){if(Vs===null){var a=new Map,r=Vs=new Map;r.set(n,a)}else r=Vs,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var f=n[r];if(!(f[ka]||f[lt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var d=f.getAttribute(t)||"";d=e+d;var y=a.get(d);y?y.push(f):a.set(d,[f])}}return a}function km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function c1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Rm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function r1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=ca(a.href),f=t.querySelector(bi(r));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=f,tt(f);return}f=t.ownerDocument||t,a=Lm(a),(r=Gt.get(r))&&Zr(a,r),f=f.createElement("link"),tt(f);var d=f;d._p=new Promise(function(y,T){d.onload=y,d.onerror=T}),ut(f,"link",a),n.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Qs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wr=0;function f1(e,t){return e.stylesheets&&e.count===0&&Zs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Zs(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Wr===0&&(Wr=62500*K0());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zs(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Wr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function Qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xs=null;function Zs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xs=new Map,t.forEach(o1,e),Xs=null,Qs.call(e))}function o1(e,t){if(!(t.state.loading&4)){var n=Xs.get(e);if(n)var a=n.get(null);else{n=new Map,Xs.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<r.length;f++){var d=r[f];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}r=t.instance,d=r.getAttribute("data-precedence"),f=n.get(d)||a,f===a&&n.set(null,r),n.set(d,r),this.count++,a=Qs.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),f?f.parentNode.insertBefore(r,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ti={$$typeof:$,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function h1(e,t,n,a,r,f,d,y,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vu(0),this.hiddenUpdates=Vu(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=f,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Bm(e,t,n,a,r,f,d,y,T,z,B,H){return e=new h1(e,t,n,d,T,z,B,H,y),t=1,f===!0&&(t|=24),f=_t(3,null,null,t),e.current=f,f.stateNode=e,t=Cc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:a,isDehydrated:n,cache:t},Lc(f),e}function qm(e){return e?(e=Hl,e):Hl}function Hm(e,t,n,a,r,f){r=qm(r),a.context===null?a.context=r:a.pendingContext=r,a=Ln(t),a.payload={element:n},f=f===void 0?null:f,f!==null&&(a.callback=f),n=Un(e,a,t),n!==null&&(bt(n,e,t),Pa(n,e,t))}function Ym(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fr(e,t){Ym(e,t),(e=e.alternate)&&Ym(e,t)}function $m(e){if(e.tag===13||e.tag===31){var t=ul(e,67108864);t!==null&&bt(t,e,67108864),Fr(e,67108864)}}function Gm(e){if(e.tag===13||e.tag===31){var t=Dt();t=Qu(t);var n=ul(e,t);n!==null&&bt(n,e,t),Fr(e,t)}}var Js=!0;function d1(e,t,n,a){var r=k.T;k.T=null;var f=Q.p;try{Q.p=2,Ir(e,t,n,a)}finally{Q.p=f,k.T=r}}function m1(e,t,n,a){var r=k.T;k.T=null;var f=Q.p;try{Q.p=8,Ir(e,t,n,a)}finally{Q.p=f,k.T=r}}function Ir(e,t,n,a){if(Js){var r=Pr(a);if(r===null)Br(e,t,a,Ws,n),Vm(e,a);else if(p1(r,e,t,n,a))a.stopPropagation();else if(Vm(e,a),t&4&&-1<g1.indexOf(e)){for(;r!==null;){var f=Cl(r);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var d=nl(f.pendingLanes);if(d!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var T=1<<31-Ot(d);y.entanglements[1]|=T,d&=~T}en(f),(Ee&6)===0&&(Ds=Et()+500,gi(0))}}break;case 31:case 13:y=ul(f,2),y!==null&&bt(y,f,2),Us(),Fr(f,2)}if(f=Pr(a),f===null&&Br(e,t,a,Ws,n),f===r)break;r=f}r!==null&&a.stopPropagation()}else Br(e,t,a,null,n)}}function Pr(e){return e=tc(e),ef(e)}var Ws=null;function ef(e){if(Ws=null,e=Ml(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ws=e,null}function Km(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ey()){case Ff:return 2;case If:return 8;case qi:case ty:return 32;case Pf:return 268435456;default:return 32}default:return 32}}var tf=!1,Vn=null,Qn=null,Xn=null,wi=new Map,Ei=new Map,Zn=[],g1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vm(e,t){switch(e){case"focusin":case"focusout":Vn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ei.delete(t.pointerId)}}function Ai(e,t,n,a,r,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:f,targetContainers:[r]},t!==null&&(t=Cl(t),t!==null&&$m(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function p1(e,t,n,a,r){switch(t){case"focusin":return Vn=Ai(Vn,e,t,n,a,r),!0;case"dragenter":return Qn=Ai(Qn,e,t,n,a,r),!0;case"mouseover":return Xn=Ai(Xn,e,t,n,a,r),!0;case"pointerover":var f=r.pointerId;return wi.set(f,Ai(wi.get(f)||null,e,t,n,a,r)),!0;case"gotpointercapture":return f=r.pointerId,Ei.set(f,Ai(Ei.get(f)||null,e,t,n,a,r)),!0}return!1}function Qm(e){var t=Ml(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,io(e.priority,function(){Gm(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,io(e.priority,function(){Gm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pr(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ec=a,n.target.dispatchEvent(a),ec=null}else return t=Cl(n),t!==null&&$m(t),e.blockedOn=n,!1;t.shift()}return!0}function Xm(e,t,n){Fs(e)&&n.delete(t)}function y1(){tf=!1,Vn!==null&&Fs(Vn)&&(Vn=null),Qn!==null&&Fs(Qn)&&(Qn=null),Xn!==null&&Fs(Xn)&&(Xn=null),wi.forEach(Xm),Ei.forEach(Xm)}function Is(e,t){e.blockedOn===t&&(e.blockedOn=null,tf||(tf=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,y1)))}var Ps=null;function Zm(e){Ps!==e&&(Ps=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Ps===e&&(Ps=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(ef(a||n)===null)continue;break}var f=Cl(n);f!==null&&(e.splice(t,3),t-=3,Pc(f,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function fa(e){function t(T){return Is(T,e)}Vn!==null&&Is(Vn,e),Qn!==null&&Is(Qn,e),Xn!==null&&Is(Xn,e),wi.forEach(t),Ei.forEach(t);for(var n=0;n<Zn.length;n++){var a=Zn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Zn.length&&(n=Zn[0],n.blockedOn===null);)Qm(n),n.blockedOn===null&&Zn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],f=n[a+1],d=r[dt]||null;if(typeof f=="function")d||Zm(n);else if(d){var y=null;if(f&&f.hasAttribute("formAction")){if(r=f,d=f[dt]||null)y=d.formAction;else if(ef(r)!==null)continue}else y=d.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),Zm(n)}}}function Jm(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function nf(e){this._internalRoot=e}eu.prototype.render=nf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Dt();Hm(n,a,e,t,null,null)},eu.prototype.unmount=nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hm(e.current,2,null,e,null,null),Us(),t[_l]=null}};function eu(e){this._internalRoot=e}eu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ao();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zn.length&&t!==0&&t<Zn[n].priority;n++);Zn.splice(n,0,e),n===0&&Qm(e)}};var Wm=l.version;if(Wm!=="19.2.1")throw Error(s(527,Wm,"19.2.1"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var v1={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tu.isDisabled&&tu.supportsFiber)try{La=tu.inject(v1),At=tu}catch{}}return Ni.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",r=ld,f=ad,d=id;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Bm(e,1,!1,null,null,n,a,null,r,f,d,Jm),e[_l]=t.current,Rr(e),new nf(t)},Ni.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,r="",f=ld,d=ad,y=id,T=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=Bm(e,1,!0,t,n??null,a,r,T,f,d,y,Jm),t.context=qm(null),n=t.current,a=Dt(),a=Qu(a),r=Ln(a),r.callback=null,Un(n,r,a),n=a,t.current.lanes=n,ja(t,n),en(t),e[_l]=t.current,Rr(e),new eu(t)},Ni.version="19.2.1",Ni}var rg;function R1(){if(rg)return sf.exports;rg=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),sf.exports=k1(),sf.exports}var B1=R1();async function q1(u,l){const i=new DataView(u),s=new Uint8Array(u),c=101010256;let o=-1;for(let v=u.byteLength-22;v>=0;v--)if(i.getUint32(v,!0)===c){o=v;break}if(o===-1)throw new Error("Not a valid ZIP file (no EOCD record found)");const h=i.getUint32(o+16,!0),m=i.getUint16(o+8,!0),g=33639248,p=new TextDecoder;let w=h;for(let v=0;v<m;v++){if(i.getUint32(w,!0)!==g)throw new Error("Malformed ZIP central directory");const N=i.getUint16(w+10,!0),E=i.getUint32(w+20,!0),x=i.getUint16(w+28,!0),S=i.getUint16(w+30,!0),A=i.getUint16(w+32,!0),M=i.getUint32(w+42,!0);if(p.decode(s.subarray(w+46,w+46+x))===l){if(i.getUint32(M,!0)!==67324752)throw new Error("Malformed ZIP local file header");const Z=i.getUint16(M+26,!0),W=i.getUint16(M+28,!0),J=M+30+Z+W,G=s.subarray(J,J+E);if(N===0)return p.decode(G);if(N===8){const V=new DecompressionStream("deflate-raw"),L=V.writable.getWriter(),se=V.readable.getReader();L.write(G),L.close();const ae=[];let Y=!1;for(;!Y;){const{value:k,done:Q}=await se.read();k&&ae.push(k),Y=Q}const P=ae.reduce((k,Q)=>k+Q.length,0),ue=new Uint8Array(P);let Ye=0;for(const k of ae)ue.set(k,Ye),Ye+=k.length;return p.decode(ue)}else throw new Error(`Unsupported ZIP compression method: ${N}`)}w+=46+x+S+A}return null}const H1="modulepreload",Y1=function(u){return"/"+u},fg={},$1=function(l,i,s){let c=Promise.resolve();if(i&&i.length>0){let h=function(p){return Promise.all(p.map(w=>Promise.resolve(w).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));c=h(i.map(p=>{if(p=Y1(p),p in fg)return;fg[p]=!0;const w=p.endsWith(".css"),v=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const N=document.createElement("link");if(N.rel=w?"stylesheet":H1,w||(N.as="script"),N.crossOrigin="",N.href=p,g&&N.setAttribute("nonce",g),document.head.appendChild(N),w)return new Promise((E,x)=>{N.addEventListener("load",E),N.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return c.then(h=>{for(const m of h||[])m.status==="rejected"&&o(m.reason);return l().catch(o)})};function G1(u,l){const i=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let c,o={},h=!1,m=l==null?void 0:l.fg,g=l==null?void 0:l.bg;for(;(c=i.exec(u))!==null;){const[,,p,,w]=c;if(p){const v=+p;switch(v){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:h=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:h=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:m=og[v-30];break;case 39:m=l==null?void 0:l.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:g=og[v-40];break;case 49:g=l==null?void 0:l.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:m=hg[v-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:g=hg[v-100];break}}else if(w){const v={...o},N=h?g:m;N!==void 0&&(v.color=N);const E=h?m:g;E!==void 0&&(v["background-color"]=E),s.push(`<span style="${V1(v)}">${K1(w)}</span>`)}}return s.join("")}const og={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},hg={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function K1(u){return u.replace(/[&"<>]/g,l=>({"&":"&",'"':""","<":"<",">":">"})[l])}function V1(u){return Object.entries(u).map(([l,i])=>`${l}: ${i}`).join("; ")}const ff=({text:u,highlighter:l,mimeType:i,linkify:s,readOnly:c,highlight:o,revealLine:h,lineNumbers:m,isFocused:g,focusOnChange:p,wrapLines:w,onChange:v,dataTestId:N,placeholder:E})=>{const[x,S]=xg(),[A]=ce.useState($1(()=>import("./codeMirrorModule-CPZKmjFR.js"),__vite__mapDeps([0,1])).then(Z=>Z.default)),M=ce.useRef(null),[U,$]=ce.useState();return ce.useEffect(()=>{(async()=>{var V,L;const Z=await A;X1(Z);const W=S.current;if(!W)return;const J=J1(l)||Z1(i)||(s?"text/linkified":"");if(M.current&&J===M.current.cm.getOption("mode")&&!!c===M.current.cm.getOption("readOnly")&&m===M.current.cm.getOption("lineNumbers")&&w===M.current.cm.getOption("lineWrapping")&&E===M.current.cm.getOption("placeholder"))return;(L=(V=M.current)==null?void 0:V.cm)==null||L.getWrapperElement().remove();const G=Z(W,{value:"",mode:J,readOnly:!!c,lineNumbers:m,lineWrapping:w,placeholder:E,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return M.current={cm:G},g&&G.focus(),$(G),G})()},[A,U,S,l,i,s,m,w,c,g,E]),ce.useEffect(()=>{M.current&&M.current.cm.setSize(x.width,x.height)},[x]),ce.useLayoutEffect(()=>{var J;if(!U)return;let Z=!1;if(U.getValue()!==u&&(U.setValue(u),Z=!0,p&&(U.execCommand("selectAll"),U.focus())),Z||JSON.stringify(o)!==JSON.stringify(M.current.highlight)){for(const L of M.current.highlight||[])U.removeLineClass(L.line-1,"wrap");for(const L of o||[])U.addLineClass(L.line-1,"wrap",`source-line-${L.type}`);for(const L of M.current.widgets||[])U.removeLineWidget(L);for(const L of M.current.markers||[])L.clear();const G=[],V=[];for(const L of o||[]){if(L.type!=="subtle-error"&&L.type!=="error")continue;const se=(J=M.current)==null?void 0:J.cm.getLine(L.line-1);if(se){const ae={};ae.title=L.message||"",V.push(U.markText({line:L.line-1,ch:0},{line:L.line-1,ch:L.column||se.length},{className:"source-line-error-underline",attributes:ae}))}if(L.type==="error"){const ae=document.createElement("div");ae.innerHTML=G1(L.message||""),ae.className="source-line-error-widget",G.push(U.addLineWidget(L.line,ae,{above:!0,coverGutter:!1}))}}M.current.highlight=o,M.current.widgets=G,M.current.markers=V}typeof h=="number"&&M.current.cm.lineCount()>=h&&U.scrollIntoView({line:Math.max(0,h-1),ch:0},50);let W;return v&&(W=()=>v(U.getValue()),U.on("change",W)),()=>{W&&U.off("change",W)}},[U,u,o,h,p,v]),K.jsx("div",{"data-testid":N,className:"cm-wrapper",ref:S,onClick:Q1})};function Q1(u){var i;if(!(u.target instanceof HTMLElement))return;let l;u.target.classList.contains("cm-linkified")?l=u.target.textContent:u.target.classList.contains("cm-link")&&((i=u.target.nextElementSibling)!=null&&i.classList.contains("cm-url"))&&(l=u.target.nextElementSibling.textContent.slice(1,-1)),l&&(u.preventDefault(),u.stopPropagation(),window.open(l,"_blank"))}let dg=!1;function X1(u){dg||(dg=!0,u.defineSimpleMode("text/linkified",{start:[{regex:N1,token:"linkified"}]}))}function Z1(u){if(u){if(u.includes("javascript")||u.includes("json"))return"javascript";if(u.includes("python"))return"python";if(u.includes("csharp"))return"text/x-csharp";if(u.includes("java"))return"text/x-java";if(u.includes("markdown"))return"markdown";if(u.includes("html")||u.includes("svg"))return"htmlmixed";if(u.includes("css"))return"css"}}function J1(u){if(u)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[u]}const W1=50,F1=({sidebarSize:u,sidebarHidden:l=!1,sidebarIsFirst:i=!1,orientation:s="vertical",minSidebarSize:c=W1,settingName:o,sidebar:h,main:m})=>{const g=Math.max(c,u)*window.devicePixelRatio,[p,w]=Tf(o?o+"."+s+":size":void 0,g),[v,N]=Tf(o?o+"."+s+":size":void 0,g),[E,x]=ce.useState(null),[S,A]=xg();let M;s==="vertical"?(M=v/window.devicePixelRatio,S&&S.height<M&&(M=S.height-10)):(M=p/window.devicePixelRatio,S&&S.width<M&&(M=S.width-10)),document.body.style.userSelect=E?"none":"inherit";let U={};return s==="vertical"?i?U={top:E?0:M-4,bottom:E?0:void 0,height:E?"initial":8}:U={bottom:E?0:M-4,top:E?0:void 0,height:E?"initial":8}:i?U={left:E?0:M-4,right:E?0:void 0,width:E?"initial":8}:U={right:E?0:M-4,left:E?0:void 0,width:E?"initial":8},K.jsxs("div",{className:El("split-view",s,i&&"sidebar-first"),ref:A,children:[K.jsx("div",{className:"split-view-main",children:m}),!l&&K.jsx("div",{style:{flexBasis:M},className:"split-view-sidebar",children:h}),!l&&K.jsx("div",{style:U,className:"split-view-resizer",onMouseDown:$=>x({offset:s==="vertical"?$.clientY:$.clientX,size:M}),onMouseUp:()=>x(null),onMouseMove:$=>{if(!$.buttons)x(null);else if(E){const W=(s==="vertical"?$.clientY:$.clientX)-E.offset,J=i?E.size+W:E.size-W,V=$.target.parentElement.getBoundingClientRect(),L=Math.min(Math.max(c,J),(s==="vertical"?V.height:V.width)-c);s==="vertical"?N(L*window.devicePixelRatio):w(L*window.devicePixelRatio)}}})]})},Dg=({noShadow:u,children:l,noMinHeight:i,className:s,sidebarBackground:c,onClick:o})=>K.jsx("div",{className:El("toolbar",u&&"no-shadow",i&&"no-min-height",s,c&&"toolbar-sidebar-background"),onClick:o,children:l}),I1=({tabs:u,selectedTab:l,setSelectedTab:i,leftToolbar:s,rightToolbar:c,dataTestId:o,mode:h})=>{const m=ce.useId();return l||(l=u[0].id),h||(h="default"),K.jsx("div",{className:"tabbed-pane","data-testid":o,children:K.jsxs("div",{className:"vbox",children:[K.jsxs(Dg,{children:[s&&K.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]}),h==="default"&&K.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...u.map(g=>K.jsx(P1,{id:g.id,ariaControls:`${m}-${g.id}`,title:g.title,count:g.count,errorCount:g.errorCount,selected:l===g.id,onSelect:i},g.id))]}),h==="select"&&K.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:K.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:l,onChange:g=>{i==null||i(u[g.currentTarget.selectedIndex].id)},children:u.map(g=>{let p="";return g.count&&(p=` (${g.count})`),g.errorCount&&(p=` (${g.errorCount})`),K.jsxs("option",{value:g.id,role:"tab","aria-controls":`${m}-${g.id}`,children:[g.title,p]},g.id)})})}),c&&K.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...c]})]}),u.map(g=>{const p="tab-content tab-"+g.id;if(g.component)return K.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,style:{display:l===g.id?"inherit":"none"},children:g.component},g.id);if(l===g.id)return K.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,children:g.render()},g.id)})]})})},P1=({id:u,title:l,count:i,errorCount:s,selected:c,onSelect:o,ariaControls:h})=>K.jsxs("div",{className:El("tabbed-pane-tab",c&&"selected"),onClick:()=>o==null?void 0:o(u),role:"tab",title:l,"aria-controls":h,"aria-selected":c,children:[K.jsx("div",{className:"tabbed-pane-tab-label",children:l}),!!i&&K.jsx("div",{className:"tabbed-pane-tab-counter",children:i}),!!s&&K.jsx("div",{className:"tabbed-pane-tab-counter error",children:s})]}),ev=({sources:u,fileId:l,setFileId:i})=>K.jsx("select",{className:"source-chooser",hidden:!u.length,title:"Source chooser",value:l,onChange:s=>{i(s.target.selectedOptions[0].value)},children:tv(u)});function tv(u){const l=c=>c.replace(/.*[/\\]([^/\\]+)/,"$1"),i=c=>K.jsx("option",{value:c.id,children:l(c.label)},c.id),s=new Map;for(const c of u){let o=s.get(c.group||"Debugger");o||(o=[],s.set(c.group||"Debugger",o)),o.push(c)}return[...s.entries()].map(([c,o])=>K.jsx("optgroup",{label:c,children:o.filter(h=>(h.group||"Debugger")===c).map(h=>i(h))},c))}function nv(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const Fe=ce.forwardRef(function({children:l,title:i="",icon:s,disabled:c=!1,toggled:o=!1,onClick:h=()=>{},style:m,testId:g,className:p,ariaLabel:w},v){return K.jsxs("button",{ref:v,className:El(p,"toolbar-button",s,o&&"toggled"),onMouseDown:gg,onClick:h,onDoubleClick:gg,title:i,disabled:!!c,style:m,"data-testid":g,"aria-label":w||i,children:[s&&K.jsx("span",{className:`codicon codicon-${s}`,style:l?{marginRight:5}:{}}),l]})}),mg=({style:u})=>K.jsx("div",{className:"toolbar-separator",style:u}),gg=u=>{u.stopPropagation(),u.preventDefault()},Ie=function(u,l,i){return u>=l&&u<=i};function St(u){return Ie(u,48,57)}function pg(u){return St(u)||Ie(u,65,70)||Ie(u,97,102)}function lv(u){return Ie(u,65,90)}function av(u){return Ie(u,97,122)}function iv(u){return lv(u)||av(u)}function sv(u){return u>=128}function uu(u){return iv(u)||sv(u)||u===95}function yg(u){return uu(u)||St(u)||u===45}function uv(u){return Ie(u,0,8)||u===11||Ie(u,14,31)||u===127}function cu(u){return u===10}function wn(u){return cu(u)||u===9||u===32}const cv=1114111;class Lf extends Error{constructor(l){super(l),this.name="InvalidCharacterError"}}function rv(u){const l=[];for(let i=0;i<u.length;i++){let s=u.charCodeAt(i);if(s===13&&u.charCodeAt(i+1)===10&&(s=10,i++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Ie(s,55296,56319)&&Ie(u.charCodeAt(i+1),56320,57343)){const c=s-55296,o=u.charCodeAt(i+1)-56320;s=Math.pow(2,16)+c*Math.pow(2,10)+o,i++}l.push(s)}return l}function et(u){if(u<=65535)return String.fromCharCode(u);u-=Math.pow(2,16);const l=Math.floor(u/Math.pow(2,10))+55296,i=u%Math.pow(2,10)+56320;return String.fromCharCode(l)+String.fromCharCode(i)}function fv(u){const l=rv(u);let i=-1;const s=[];let c;const o=function(Y){return Y>=l.length?-1:l[Y]},h=function(Y){if(Y===void 0&&(Y=1),Y>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(i+Y)},m=function(Y){return Y===void 0&&(Y=1),i+=Y,c=o(i),!0},g=function(){return i-=1,!0},p=function(Y){return Y===void 0&&(Y=c),Y===-1},w=function(){if(v(),m(),wn(c)){for(;wn(h());)m();return new Af}else{if(c===34)return x();if(c===35)if(yg(h())||M(h(1),h(2))){const Y=new Xg("");return $(h(1),h(2),h(3))&&(Y.type="id"),Y.value=G(),Y}else return new rt(c);else return c===36?h()===61?(m(),new mv):new rt(c):c===39?x():c===40?new $g:c===41?new Gg:c===42?h()===61?(m(),new gv):new rt(c):c===43?J()?(g(),N()):new rt(c):c===44?new Bg:c===45?J()?(g(),N()):h(1)===45&&h(2)===62?(m(2),new jg):Z()?(g(),E()):new rt(c):c===46?J()?(g(),N()):new rt(c):c===58?new kg:c===59?new Rg:c===60?h(1)===33&&h(2)===45&&h(3)===45?(m(3),new Ug):new rt(c):c===64?$(h(1),h(2),h(3))?new Qg(G()):new rt(c):c===91?new Yg:c===92?U()?(g(),E()):new rt(c):c===93?new Of:c===94?h()===61?(m(),new dv):new rt(c):c===123?new qg:c===124?h()===61?(m(),new hv):h()===124?(m(),new Kg):new rt(c):c===125?new Hg:c===126?h()===61?(m(),new ov):new rt(c):St(c)?(g(),N()):uu(c)?(g(),E()):p()?new fu:new rt(c)}},v=function(){for(;h(1)===47&&h(2)===42;)for(m(2);;)if(m(),c===42&&h()===47){m();break}else if(p())return},N=function(){const Y=V();if($(h(1),h(2),h(3))){const P=new pv;return P.value=Y.value,P.repr=Y.repr,P.type=Y.type,P.unit=G(),P}else if(h()===37){m();const P=new Fg;return P.value=Y.value,P.repr=Y.repr,P}else{const P=new Wg;return P.value=Y.value,P.repr=Y.repr,P.type=Y.type,P}},E=function(){const Y=G();if(Y.toLowerCase()==="url"&&h()===40){for(m();wn(h(1))&&wn(h(2));)m();return h()===34||h()===39?new ou(Y):wn(h())&&(h(2)===34||h(2)===39)?new ou(Y):S()}else return h()===40?(m(),new ou(Y)):new Vg(Y)},x=function(Y){Y===void 0&&(Y=c);let P="";for(;m();){if(c===Y||p())return new Zg(P);if(cu(c))return g(),new Lg;c===92?p(h())||(cu(h())?m():P+=et(A())):P+=et(c)}throw new Error("Internal error")},S=function(){const Y=new Jg("");for(;wn(h());)m();if(p(h()))return Y;for(;m();){if(c===41||p())return Y;if(wn(c)){for(;wn(h());)m();return h()===41||p(h())?(m(),Y):(se(),new ru)}else{if(c===34||c===39||c===40||uv(c))return se(),new ru;if(c===92)if(U())Y.value+=et(A());else return se(),new ru;else Y.value+=et(c)}}throw new Error("Internal error")},A=function(){if(m(),pg(c)){const Y=[c];for(let ue=0;ue<5&&pg(h());ue++)m(),Y.push(c);wn(h())&&m();let P=parseInt(Y.map(function(ue){return String.fromCharCode(ue)}).join(""),16);return P>cv&&(P=65533),P}else return p()?65533:c},M=function(Y,P){return!(Y!==92||cu(P))},U=function(){return M(c,h())},$=function(Y,P,ue){return Y===45?uu(P)||P===45||M(P,ue):uu(Y)?!0:Y===92?M(Y,P):!1},Z=function(){return $(c,h(1),h(2))},W=function(Y,P,ue){return Y===43||Y===45?!!(St(P)||P===46&&St(ue)):Y===46?!!St(P):!!St(Y)},J=function(){return W(c,h(1),h(2))},G=function(){let Y="";for(;m();)if(yg(c))Y+=et(c);else if(U())Y+=et(A());else return g(),Y;throw new Error("Internal parse error")},V=function(){let Y="",P="integer";for((h()===43||h()===45)&&(m(),Y+=et(c));St(h());)m(),Y+=et(c);if(h(1)===46&&St(h(2)))for(m(),Y+=et(c),m(),Y+=et(c),P="number";St(h());)m(),Y+=et(c);const ue=h(1),Ye=h(2),k=h(3);if((ue===69||ue===101)&&St(Ye))for(m(),Y+=et(c),m(),Y+=et(c),P="number";St(h());)m(),Y+=et(c);else if((ue===69||ue===101)&&(Ye===43||Ye===45)&&St(k))for(m(),Y+=et(c),m(),Y+=et(c),m(),Y+=et(c),P="number";St(h());)m(),Y+=et(c);const Q=L(Y);return{type:P,value:Q,repr:Y}},L=function(Y){return+Y},se=function(){for(;m();){if(c===41||p())return;U()&&A()}};let ae=0;for(;!p(h());)if(s.push(w()),ae++,ae>l.length*2)throw new Error("I'm infinite-looping!");return s}class Qe{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Lg extends Qe{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class ru extends Qe{constructor(){super(...arguments),this.tokenType="BADURL"}}class Af extends Qe{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Ug extends Qe{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class jg extends Qe{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class kg extends Qe{constructor(){super(...arguments),this.tokenType=":"}}class Rg extends Qe{constructor(){super(...arguments),this.tokenType=";"}}class Bg extends Qe{constructor(){super(...arguments),this.tokenType=","}}class Aa extends Qe{constructor(){super(...arguments),this.value="",this.mirror=""}}class qg extends Aa{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class Hg extends Aa{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Yg extends Aa{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class Of extends Aa{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class $g extends Aa{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Gg extends Aa{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class ov extends Qe{constructor(){super(...arguments),this.tokenType="~="}}class hv extends Qe{constructor(){super(...arguments),this.tokenType="|="}}class dv extends Qe{constructor(){super(...arguments),this.tokenType="^="}}class mv extends Qe{constructor(){super(...arguments),this.tokenType="$="}}class gv extends Qe{constructor(){super(...arguments),this.tokenType="*="}}class Kg extends Qe{constructor(){super(...arguments),this.tokenType="||"}}class fu extends Qe{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class rt extends Qe{constructor(l){super(),this.tokenType="DELIM",this.value="",this.value=et(l)}toString(){return"DELIM("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}toSource(){return this.value==="\\"?`\\
|
|
51
|
-
`:this.value}}class Oa extends Qe{constructor(){super(...arguments),this.value=""}ASCIIMatch(l){return this.value.toLowerCase()===l.toLowerCase()}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}}class Vg extends Oa{constructor(l){super(),this.tokenType="IDENT",this.value=l}toString(){return"IDENT("+this.value+")"}toSource(){return Ui(this.value)}}class ou extends Oa{constructor(l){super(),this.tokenType="FUNCTION",this.value=l,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Ui(this.value)+"("}}class Qg extends Oa{constructor(l){super(),this.tokenType="AT-KEYWORD",this.value=l}toString(){return"AT("+this.value+")"}toSource(){return"@"+Ui(this.value)}}class Xg extends Oa{constructor(l){super(),this.tokenType="HASH",this.value=l,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l}toSource(){return this.type==="id"?"#"+Ui(this.value):"#"+yv(this.value)}}class Zg extends Oa{constructor(l){super(),this.tokenType="STRING",this.value=l}toString(){return'"'+Ig(this.value)+'"'}}class Jg extends Oa{constructor(l){super(),this.tokenType="URL",this.value=l}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Ig(this.value)+'")'}}class Wg extends Qe{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const l=super.toJSON();return l.value=this.value,l.type=this.type,l.repr=this.repr,l}toSource(){return this.repr}}class Fg extends Qe{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.repr=this.repr,l}toSource(){return this.repr+"%"}}class pv extends Qe{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l.repr=this.repr,l.unit=this.unit,l}toSource(){const l=this.repr;let i=Ui(this.unit);return i[0].toLowerCase()==="e"&&(i[1]==="-"||Ie(i.charCodeAt(1),48,57))&&(i="\\65 "+i.slice(1,i.length)),l+i}}function Ui(u){u=""+u;let l="";const i=u.charCodeAt(0);for(let s=0;s<u.length;s++){const c=u.charCodeAt(s);if(c===0)throw new Lf("Invalid character: the input contains U+0000.");Ie(c,1,31)||c===127||s===0&&Ie(c,48,57)||s===1&&Ie(c,48,57)&&i===45?l+="\\"+c.toString(16)+" ":c>=128||c===45||c===95||Ie(c,48,57)||Ie(c,65,90)||Ie(c,97,122)?l+=u[s]:l+="\\"+u[s]}return l}function yv(u){u=""+u;let l="";for(let i=0;i<u.length;i++){const s=u.charCodeAt(i);if(s===0)throw new Lf("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Ie(s,48,57)||Ie(s,65,90)||Ie(s,97,122)?l+=u[i]:l+="\\"+s.toString(16)+" "}return l}function Ig(u){u=""+u;let l="";for(let i=0;i<u.length;i++){const s=u.charCodeAt(i);if(s===0)throw new Lf("Invalid character: the input contains U+0000.");Ie(s,1,31)||s===127?l+="\\"+s.toString(16)+" ":s===34||s===92?l+="\\"+u[i]:l+=u[i]}return l}class Tt extends Error{}function vv(u,l){let i;try{i=fv(u),i[i.length-1]instanceof fu||i.push(new fu)}catch(L){const se=L.message+` while parsing css selector "${u}". Did you mean to CSS.escape it?`,ae=(L.stack||"").indexOf(L.message);throw ae!==-1&&(L.stack=L.stack.substring(0,ae)+se+L.stack.substring(ae+L.message.length)),L.message=se,L}const s=i.find(L=>L instanceof Qg||L instanceof Lg||L instanceof ru||L instanceof Kg||L instanceof Ug||L instanceof jg||L instanceof Rg||L instanceof qg||L instanceof Hg||L instanceof Jg||L instanceof Fg);if(s)throw new Tt(`Unsupported token "${s.toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`);let c=0;const o=new Set;function h(){return new Tt(`Unexpected token "${i[c].toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`)}function m(){for(;i[c]instanceof Af;)c++}function g(L=c){return i[L]instanceof Vg}function p(L=c){return i[L]instanceof Zg}function w(L=c){return i[L]instanceof Wg}function v(L=c){return i[L]instanceof Bg}function N(L=c){return i[L]instanceof $g}function E(L=c){return i[L]instanceof Gg}function x(L=c){return i[L]instanceof ou}function S(L=c){return i[L]instanceof rt&&i[L].value==="*"}function A(L=c){return i[L]instanceof fu}function M(L=c){return i[L]instanceof rt&&[">","+","~"].includes(i[L].value)}function U(L=c){return v(L)||E(L)||A(L)||M(L)||i[L]instanceof Af}function $(){const L=[Z()];for(;m(),!!v();)c++,L.push(Z());return L}function Z(){return m(),w()||p()?i[c++].value:W()}function W(){const L={simples:[]};for(m(),M()?L.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):L.simples.push({selector:J(),combinator:""});;){if(m(),M())L.simples[L.simples.length-1].combinator=i[c++].value,m();else if(U())break;L.simples.push({combinator:"",selector:J()})}return L}function J(){let L="";const se=[];for(;!U();)if(g()||S())L+=i[c++].toSource();else if(i[c]instanceof Xg)L+=i[c++].toSource();else if(i[c]instanceof rt&&i[c].value===".")if(c++,g())L+="."+i[c++].toSource();else throw h();else if(i[c]instanceof kg)if(c++,g())if(!l.has(i[c].value.toLowerCase()))L+=":"+i[c++].toSource();else{const ae=i[c++].value.toLowerCase();se.push({name:ae,args:[]}),o.add(ae)}else if(x()){const ae=i[c++].value.toLowerCase();if(l.has(ae)?(se.push({name:ae,args:$()}),o.add(ae)):L+=`:${ae}(${G()})`,m(),!E())throw h();c++}else throw h();else if(i[c]instanceof Yg){for(L+="[",c++;!(i[c]instanceof Of)&&!A();)L+=i[c++].toSource();if(!(i[c]instanceof Of))throw h();L+="]",c++}else throw h();if(!L&&!se.length)throw h();return{css:L||void 0,functions:se}}function G(){let L="",se=1;for(;!A()&&((N()||x())&&se++,E()&&se--,!!se);)L+=i[c++].toSource();return L}const V=$();if(!A())throw h();if(V.some(L=>typeof L!="object"||!("simples"in L)))throw new Tt(`Error while parsing css selector "${u}". Did you mean to CSS.escape it?`);return{selector:V,names:Array.from(o)}}const vg=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),bv=new Set(["left-of","right-of","above","below","near"]),Sv=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Pg(u){const l=wv(u),i=[];for(const s of l.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const c=vv(s.body,Sv);i.push({name:"css",body:c.selector,source:s.body});continue}if(vg.has(s.name)){let c,o;try{const p=JSON.parse("["+s.body+"]");if(!Array.isArray(p)||p.length<1||p.length>2||typeof p[0]!="string")throw new Tt(`Malformed selector: ${s.name}=`+s.body);if(c=p[0],p.length===2){if(typeof p[1]!="number"||!bv.has(s.name))throw new Tt(`Malformed selector: ${s.name}=`+s.body);o=p[1]}}catch{throw new Tt(`Malformed selector: ${s.name}=`+s.body)}const h={name:s.name,source:s.body,body:{parsed:Pg(c),distance:o}},m=[...h.body.parsed.parts].reverse().find(p=>p.name==="internal:control"&&p.body==="enter-frame"),g=m?h.body.parsed.parts.indexOf(m):-1;g!==-1&&Tv(h.body.parsed.parts.slice(0,g+1),i.slice(0,g+1))&&h.body.parsed.parts.splice(0,g+1),i.push(h);continue}i.push({...s,source:s.body})}if(vg.has(i[0].name))throw new Tt(`"${i[0].name}" selector cannot be first`);return{capture:l.capture,parts:i}}function Tv(u,l){return ga({parts:u})===ga({parts:l})}function ga(u,l){return typeof u=="string"?u:u.parts.map((i,s)=>{let c=!0;!l&&s!==u.capture&&(i.name==="css"||i.name==="xpath"&&i.source.startsWith("//")||i.source.startsWith(".."))&&(c=!1);const o=c?i.name+"=":"";return`${s===u.capture?"*":""}${o}${i.source}`}).join(" >> ")}function wv(u){let l=0,i,s=0;const c={parts:[]},o=()=>{const m=u.substring(s,l).trim(),g=m.indexOf("=");let p,w;g!==-1&&m.substring(0,g).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=m.substring(0,g).trim(),w=m.substring(g+1)):m.length>1&&m[0]==='"'&&m[m.length-1]==='"'||m.length>1&&m[0]==="'"&&m[m.length-1]==="'"?(p="text",w=m):/^\(*\/\//.test(m)||m.startsWith("..")?(p="xpath",w=m):(p="css",w=m);let v=!1;if(p[0]==="*"&&(v=!0,p=p.substring(1)),c.parts.push({name:p,body:w}),v){if(c.capture!==void 0)throw new Tt("Only one of the selectors can capture using * modifier");c.capture=c.parts.length-1}};if(!u.includes(">>"))return l=u.length,o(),c;const h=()=>{const g=u.substring(s,l).match(/^\s*text\s*=(.*)$/);return!!g&&!!g[1]};for(;l<u.length;){const m=u[l];m==="\\"&&l+1<u.length?l+=2:m===i?(i=void 0,l++):!i&&(m==='"'||m==="'"||m==="`")&&!h()?(i=m,l++):!i&&m===">"&&u[l+1]===">"?(o(),l+=2,s=l):l++}return o(),c}function of(u,l){let i=0,s=u.length===0;const c=()=>u[i]||"",o=()=>{const A=c();return++i,s=i>=u.length,A},h=A=>{throw s?new Tt(`Unexpected end of selector while parsing selector \`${u}\``):new Tt(`Error while parsing selector \`${u}\` - unexpected symbol "${c()}" at position ${i}`+(A?" during "+A:""))};function m(){for(;!s&&/\s/.test(c());)o()}function g(A){return A>=""||A>="0"&&A<="9"||A>="A"&&A<="Z"||A>="a"&&A<="z"||A>="0"&&A<="9"||A==="_"||A==="-"}function p(){let A="";for(m();!s&&g(c());)A+=o();return A}function w(A){let M=o();for(M!==A&&h("parsing quoted string");!s&&c()!==A;)c()==="\\"&&o(),M+=o();return c()!==A&&h("parsing quoted string"),M+=o(),M}function v(){o()!=="/"&&h("parsing regular expression");let A="",M=!1;for(;!s;){if(c()==="\\")A+=o(),s&&h("parsing regular expression");else if(M&&c()==="]")M=!1;else if(!M&&c()==="[")M=!0;else if(!M&&c()==="/")break;A+=o()}o()!=="/"&&h("parsing regular expression");let U="";for(;!s&&c().match(/[dgimsuy]/);)U+=o();try{return new RegExp(A,U)}catch($){throw new Tt(`Error while parsing selector \`${u}\`: ${$.message}`)}}function N(){let A="";return m(),c()==="'"||c()==='"'?A=w(c()).slice(1,-1):A=p(),A||h("parsing property path"),A}function E(){m();let A="";return s||(A+=o()),!s&&A!=="="&&(A+=o()),["=","*=","^=","$=","|=","~="].includes(A)||h("parsing operator"),A}function x(){o();const A=[];for(A.push(N()),m();c()===".";)o(),A.push(N()),m();if(c()==="]")return o(),{name:A.join("."),jsonPath:A,op:"<truthy>",value:null,caseSensitive:!1};const M=E();let U,$=!0;if(m(),c()==="/"){if(M!=="=")throw new Tt(`Error while parsing selector \`${u}\` - cannot use ${M} in attribute with regular expression`);U=v()}else if(c()==="'"||c()==='"')U=w(c()).slice(1,-1),m(),c()==="i"||c()==="I"?($=!1,o()):(c()==="s"||c()==="S")&&($=!0,o());else{for(U="";!s&&(g(c())||c()==="+"||c()===".");)U+=o();U==="true"?U=!0:U==="false"&&(U=!1)}if(m(),c()!=="]"&&h("parsing attribute value"),o(),M!=="="&&typeof U!="string")throw new Tt(`Error while parsing selector \`${u}\` - cannot use ${M} in attribute with non-string matching value - ${U}`);return{name:A.join("."),jsonPath:A,op:M,value:U,caseSensitive:$}}const S={name:"",attributes:[]};for(S.name=p(),m();c()==="[";)S.attributes.push(x()),m();if(s||h(void 0),!S.name&&!S.attributes.length)throw new Tt(`Error while parsing selector \`${u}\` - selector cannot be empty`);return S}function Eu(u,l="'"){const i=JSON.stringify(u),s=i.substring(1,i.length-1).replace(/\\"/g,'"');if(l==="'")return l+s.replace(/[']/g,"\\'")+l;if(l==='"')return l+s.replace(/["]/g,'\\"')+l;if(l==="`")return l+s.replace(/[`]/g,"\\`")+l;throw new Error("Invalid escape char")}function yu(u){return u.charAt(0).toUpperCase()+u.substring(1)}function ep(u){return u.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function Au(u){return u.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function tp(u,l,i=!1){return Ev(u,l,i,1)[0]}function Ev(u,l,i=!1,s=20,c){try{return ma(new zv[u](c),Pg(l),i,s)}catch{return[l]}}function ma(u,l,i=!1,s=20){const c=[...l.parts],o=[];let h=i?"frame-locator":"page";for(let m=0;m<c.length;m++){const g=c[m],p=h;if(h="locator",g.name==="internal:describe")continue;if(g.name==="nth"){g.body==="0"?o.push([u.generateLocator(p,"first",""),u.generateLocator(p,"nth","0")]):g.body==="-1"?o.push([u.generateLocator(p,"last",""),u.generateLocator(p,"nth","-1")]):o.push([u.generateLocator(p,"nth",g.body)]);continue}if(g.name==="visible"){o.push([u.generateLocator(p,"visible",g.body),u.generateLocator(p,"default",`visible=${g.body}`)]);continue}if(g.name==="internal:text"){const{exact:x,text:S}=_i(g.body);o.push([u.generateLocator(p,"text",S,{exact:x})]);continue}if(g.name==="internal:has-text"){const{exact:x,text:S}=_i(g.body);if(!x){o.push([u.generateLocator(p,"has-text",S,{exact:x})]);continue}}if(g.name==="internal:has-not-text"){const{exact:x,text:S}=_i(g.body);if(!x){o.push([u.generateLocator(p,"has-not-text",S,{exact:x})]);continue}}if(g.name==="internal:has"){const x=ma(u,g.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(p,"has",S)));continue}if(g.name==="internal:has-not"){const x=ma(u,g.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(p,"hasNot",S)));continue}if(g.name==="internal:and"){const x=ma(u,g.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(p,"and",S)));continue}if(g.name==="internal:or"){const x=ma(u,g.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(p,"or",S)));continue}if(g.name==="internal:chain"){const x=ma(u,g.body.parsed,!1,s);o.push(x.map(S=>u.generateLocator(p,"chain",S)));continue}if(g.name==="internal:label"){const{exact:x,text:S}=_i(g.body);o.push([u.generateLocator(p,"label",S,{exact:x})]);continue}if(g.name==="internal:role"){const x=of(g.body),S={attrs:[]};for(const A of x.attributes)A.name==="name"?(S.exact=A.caseSensitive,S.name=A.value):(A.name==="level"&&typeof A.value=="string"&&(A.value=+A.value),S.attrs.push({name:A.name==="include-hidden"?"includeHidden":A.name,value:A.value}));o.push([u.generateLocator(p,"role",x.name,S)]);continue}if(g.name==="internal:testid"){const x=of(g.body),{value:S}=x.attributes[0];o.push([u.generateLocator(p,"test-id",S)]);continue}if(g.name==="internal:attr"){const x=of(g.body),{name:S,value:A,caseSensitive:M}=x.attributes[0],U=A,$=!!M;if(S==="placeholder"){o.push([u.generateLocator(p,"placeholder",U,{exact:$})]);continue}if(S==="alt"){o.push([u.generateLocator(p,"alt",U,{exact:$})]);continue}if(S==="title"){o.push([u.generateLocator(p,"title",U,{exact:$})]);continue}}if(g.name==="internal:control"&&g.body==="enter-frame"){const x=o[o.length-1],S=c[m-1],A=x.map(M=>u.chainLocators([M,u.generateLocator(p,"frame","")]));["xpath","css"].includes(S.name)&&A.push(u.generateLocator(p,"frame-locator",ga({parts:[S]})),u.generateLocator(p,"frame-locator",ga({parts:[S]},!0))),x.splice(0,x.length,...A),h="frame-locator";continue}const w=c[m+1],v=ga({parts:[g]}),N=u.generateLocator(p,"default",v);if(w&&["internal:has-text","internal:has-not-text"].includes(w.name)){const{exact:x,text:S}=_i(w.body);if(!x){const A=u.generateLocator("locator",w.name==="internal:has-text"?"has-text":"has-not-text",S,{exact:x}),M={};w.name==="internal:has-text"?M.hasText=S:M.hasNotText=S;const U=u.generateLocator(p,"default",v,M);o.push([u.chainLocators([N,A]),U]),m++;continue}}let E;if(["xpath","css"].includes(g.name)){const x=ga({parts:[g]},!0);E=u.generateLocator(p,"default",x)}o.push([N,E].filter(Boolean))}return Av(u,o,s)}function Av(u,l,i){const s=l.map(()=>""),c=[],o=h=>{if(h===l.length)return c.push(u.chainLocators(s)),c.length<i;for(const m of l[h])if(s[h]=m,!o(h+1))return!1;return!0};return o(0),c}function _i(u){let l=!1;const i=u.match(/^\/(.*)\/([igm]*)$/);return i?{text:new RegExp(i[1],i[2])}:(u.endsWith('"')?(u=JSON.parse(u),l=!0):u.endsWith('"s')?(u=JSON.parse(u.substring(0,u.length-1)),l=!0):u.endsWith('"i')&&(u=JSON.parse(u.substring(0,u.length-1)),l=!1),{exact:l,text:u})}class Ov{constructor(l){this.preferredQuote=l}generateLocator(l,i,s,c={}){switch(i){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(c.hasText)} })`:c.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(c.hasNotText)} })`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${s==="true"?"true":"false"} })`;case"role":const o=[];Ve(c.name)?o.push(`name: ${this.regexToSourceString(c.name)}`):typeof c.name=="string"&&(o.push(`name: ${this.quote(c.name)}`),c.exact&&o.push("exact: true"));for(const{name:m,value:g}of c.attrs)o.push(`${m}: ${typeof g=="string"?this.quote(g):g}`);const h=o.length?`, { ${o.join(", ")} }`:"";return`getByRole(${this.quote(s)}${h})`;case"has-text":return`filter({ hasText: ${this.toHasText(s)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(s)} })`;case"has":return`filter({ has: page.${s} })`;case"hasNot":return`filter({ hasNot: page.${s} })`;case"and":return`and(page.${s})`;case"or":return`or(page.${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("getByText",s,!!c.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact("getByLabel",s,!!c.exact);case"title":return this.toCallWithExact("getByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(l){return l.join(".")}regexToSourceString(l){return Au(String(l))}toCallWithExact(l,i,s){return Ve(i)?`${l}(${this.regexToSourceString(i)})`:s?`${l}(${this.quote(i)}, { exact: true })`:`${l}(${this.quote(i)})`}toHasText(l){return Ve(l)?this.regexToSourceString(l):this.quote(l)}toTestIdValue(l){return Ve(l)?this.regexToSourceString(l):this.quote(l)}quote(l){return Eu(l,this.preferredQuote??"'")}}class Nv{generateLocator(l,i,s,c={}){switch(i){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(c.hasText)})`:c.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(c.hasNotText)})`:`locator(${this.quote(s)})`;case"frame-locator":return`frame_locator(${this.quote(s)})`;case"frame":return"content_frame";case"nth":return`nth(${s})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${s==="true"?"True":"False"})`;case"role":const o=[];Ve(c.name)?o.push(`name=${this.regexToString(c.name)}`):typeof c.name=="string"&&(o.push(`name=${this.quote(c.name)}`),c.exact&&o.push("exact=True"));for(const{name:m,value:g}of c.attrs){let p=typeof g=="string"?this.quote(g):g;typeof g=="boolean"&&(p=g?"True":"False"),o.push(`${ep(m)}=${p}`)}const h=o.length?`, ${o.join(", ")}`:"";return`get_by_role(${this.quote(s)}${h})`;case"has-text":return`filter(has_text=${this.toHasText(s)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(s)})`;case"has":return`filter(has=page.${s})`;case"hasNot":return`filter(has_not=page.${s})`;case"and":return`and_(page.${s})`;case"or":return`or_(page.${s})`;case"chain":return`locator(${s})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("get_by_text",s,!!c.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!c.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!c.exact);case"label":return this.toCallWithExact("get_by_label",s,!!c.exact);case"title":return this.toCallWithExact("get_by_title",s,!!c.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(l){return l.join(".")}regexToString(l){const i=l.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${Au(l.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${i})`}toCallWithExact(l,i,s){return Ve(i)?`${l}(${this.regexToString(i)})`:s?`${l}(${this.quote(i)}, exact=True)`:`${l}(${this.quote(i)})`}toHasText(l){return Ve(l)?this.regexToString(l):`${this.quote(l)}`}toTestIdValue(l){return Ve(l)?this.regexToString(l):this.quote(l)}quote(l){return Eu(l,'"')}}class _v{generateLocator(l,i,s,c={}){let o;switch(l){case"page":o="Page";break;case"frame-locator":o="FrameLocator";break;case"locator":o="Locator";break}switch(i){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(c.hasText)}))`:c.hasNotText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(c.hasNotText)}))`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${o}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const h=[];Ve(c.name)?h.push(`.setName(${this.regexToString(c.name)})`):typeof c.name=="string"&&(h.push(`.setName(${this.quote(c.name)})`),c.exact&&h.push(".setExact(true)"));for(const{name:g,value:p}of c.attrs)h.push(`.set${yu(g)}(${typeof p=="string"?this.quote(p):p})`);const m=h.length?`, new ${o}.GetByRoleOptions()${h.join("")}`:"";return`getByRole(AriaRole.${ep(s).toUpperCase()}${m})`;case"has-text":return`filter(new ${o}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${o}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${o}.FilterOptions().setHas(page.${s}))`;case"hasNot":return`filter(new ${o}.FilterOptions().setHasNot(page.${s}))`;case"and":return`and(page.${s})`;case"or":return`or(page.${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact(o,"getByText",s,!!c.exact);case"alt":return this.toCallWithExact(o,"getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact(o,"getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact(o,"getByLabel",s,!!c.exact);case"title":return this.toCallWithExact(o,"getByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(l){return l.join(".")}regexToString(l){const i=l.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(Au(l.source))}${i})`}toCallWithExact(l,i,s,c){return Ve(s)?`${i}(${this.regexToString(s)})`:c?`${i}(${this.quote(s)}, new ${l}.${yu(i)}Options().setExact(true))`:`${i}(${this.quote(s)})`}toHasText(l){return Ve(l)?this.regexToString(l):this.quote(l)}toTestIdValue(l){return Ve(l)?this.regexToString(l):this.quote(l)}quote(l){return Eu(l,'"')}}class Mv{generateLocator(l,i,s,c={}){switch(i){case"default":return c.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(c.hasText)} })`:c.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(c.hasNotText)} })`:`Locator(${this.quote(s)})`;case"frame-locator":return`FrameLocator(${this.quote(s)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${s})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${s==="true"?"true":"false"} })`;case"role":const o=[];Ve(c.name)?o.push(`NameRegex = ${this.regexToString(c.name)}`):typeof c.name=="string"&&(o.push(`Name = ${this.quote(c.name)}`),c.exact&&o.push("Exact = true"));for(const{name:m,value:g}of c.attrs)o.push(`${yu(m)} = ${typeof g=="string"?this.quote(g):g}`);const h=o.length?`, new() { ${o.join(", ")} }`:"";return`GetByRole(AriaRole.${yu(s)}${h})`;case"has-text":return`Filter(new() { ${this.toHasText(s)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(s)} })`;case"has":return`Filter(new() { Has = Page.${s} })`;case"hasNot":return`Filter(new() { HasNot = Page.${s} })`;case"and":return`And(Page.${s})`;case"or":return`Or(Page.${s})`;case"chain":return`Locator(${s})`;case"test-id":return`GetByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("GetByText",s,!!c.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!c.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(l){return l.join(".")}regexToString(l){const i=l.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(Au(l.source))}${i})`}toCallWithExact(l,i,s){return Ve(i)?`${l}(${this.regexToString(i)})`:s?`${l}(${this.quote(i)}, new() { Exact = true })`:`${l}(${this.quote(i)})`}toHasText(l){return Ve(l)?`HasTextRegex = ${this.regexToString(l)}`:`HasText = ${this.quote(l)}`}toTestIdValue(l){return Ve(l)?this.regexToString(l):this.quote(l)}toHasNotText(l){return Ve(l)?`HasNotTextRegex = ${this.regexToString(l)}`:`HasNotText = ${this.quote(l)}`}quote(l){return Eu(l,'"')}}class Cv{generateLocator(l,i,s,c={}){return JSON.stringify({kind:i,body:hu(s),options:xv(c)})}chainLocators(l){const i=l.map(s=>JSON.parse(s));for(let s=0;s<i.length-1;++s)i[s].next=i[s+1];return JSON.stringify(i[0])}}function hu(u){return Ve(u)?`/${u.source}/${u.flags}`:u}function xv(u){const l={...u};return Ve(l.name)&&(l.name=hu(l.name)),Ve(l.hasText)&&(l.hasText=hu(l.hasText)),Ve(l.hasNotText)&&(l.hasNotText=hu(l.hasNotText)),l}const zv={javascript:Ov,python:Nv,java:_v,csharp:Mv,jsonl:Cv};function Ve(u){return u instanceof RegExp}const Dv=({language:u,log:l})=>{const i=ce.useRef(null),[s,c]=ce.useState(new Map);return ce.useLayoutEffect(()=>{var o;l.find(h=>h.reveal)&&((o=i.current)==null||o.scrollIntoView({block:"center",inline:"nearest"}))},[i,l]),K.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[l.map(o=>{const h=s.get(o.id),m=typeof h=="boolean"?h:o.status!=="done",g=o.params.selector?tp(u,o.params.selector):null;let p=o.title,w="";return o.title.startsWith("expect.to")||o.title.startsWith("expect.not.to")?(p="expect(",w=`).${o.title.substring(7)}()`):o.title.startsWith("locator.")?(p="",w=`.${o.title.substring(8)}()`):(g||o.params.url)&&(p=o.title+"(",w=")"),K.jsxs("div",{className:El("call-log-call",o.status),children:[K.jsxs("div",{className:"call-log-call-header",children:[K.jsx("span",{className:El("codicon",`codicon-chevron-${m?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const v=new Map(s);v.set(o.id,!m),c(v)}}),p,o.params.url?K.jsx("span",{className:"call-log-details",children:K.jsx("span",{className:"call-log-url",title:o.params.url,children:o.params.url})}):void 0,g?K.jsx("span",{className:"call-log-details",children:K.jsx("span",{className:"call-log-selector",title:`page.${g}`,children:`page.${g}`})}):void 0,w,K.jsx("span",{className:El("codicon",Lv(o))}),typeof o.duration=="number"?K.jsxs("span",{className:"call-log-time",children:["— ",A1(o.duration)]}):void 0]}),(m?o.messages:[]).map((v,N)=>K.jsx("div",{className:"call-log-message",children:v.trim()},N)),!!o.error&&K.jsx("div",{className:"call-log-message error",hidden:!m,children:o.error})]},o.id)}),K.jsx("div",{ref:i})]})};function Lv(u){switch(u.status){case"done":return"codicon-check";case"in-progress":return"codicon-clock";case"paused":return"codicon-debug-pause";case"error":return"codicon-error"}}const Uf=Symbol.for("yaml.alias"),Nf=Symbol.for("yaml.document"),In=Symbol.for("yaml.map"),np=Symbol.for("yaml.pair"),nn=Symbol.for("yaml.scalar"),Na=Symbol.for("yaml.seq"),Vt=Symbol.for("yaml.node.type"),el=u=>!!u&&typeof u=="object"&&u[Vt]===Uf,Ol=u=>!!u&&typeof u=="object"&&u[Vt]===Nf,_a=u=>!!u&&typeof u=="object"&&u[Vt]===In,ke=u=>!!u&&typeof u=="object"&&u[Vt]===np,ze=u=>!!u&&typeof u=="object"&&u[Vt]===nn,Ma=u=>!!u&&typeof u=="object"&&u[Vt]===Na;function Re(u){if(u&&typeof u=="object")switch(u[Vt]){case In:case Na:return!0}return!1}function Be(u){if(u&&typeof u=="object")switch(u[Vt]){case Uf:case In:case nn:case Na:return!0}return!1}const lp=u=>(ze(u)||Re(u))&&!!u.anchor,wt=Symbol("break visit"),ap=Symbol("skip children"),tn=Symbol("remove node");function Nl(u,l){const i=ip(l);Ol(u)?pa(null,u.contents,i,Object.freeze([u]))===tn&&(u.contents=null):pa(null,u,i,Object.freeze([]))}Nl.BREAK=wt;Nl.SKIP=ap;Nl.REMOVE=tn;function pa(u,l,i,s){const c=sp(u,l,i,s);if(Be(c)||ke(c))return up(u,s,c),pa(u,c,i,s);if(typeof c!="symbol"){if(Re(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=pa(o,l.items[o],i,s);if(typeof h=="number")o=h-1;else{if(h===wt)return wt;h===tn&&(l.items.splice(o,1),o-=1)}}}else if(ke(l)){s=Object.freeze(s.concat(l));const o=pa("key",l.key,i,s);if(o===wt)return wt;o===tn&&(l.key=null);const h=pa("value",l.value,i,s);if(h===wt)return wt;h===tn&&(l.value=null)}}return c}async function Ou(u,l){const i=ip(l);Ol(u)?await ya(null,u.contents,i,Object.freeze([u]))===tn&&(u.contents=null):await ya(null,u,i,Object.freeze([]))}Ou.BREAK=wt;Ou.SKIP=ap;Ou.REMOVE=tn;async function ya(u,l,i,s){const c=await sp(u,l,i,s);if(Be(c)||ke(c))return up(u,s,c),ya(u,c,i,s);if(typeof c!="symbol"){if(Re(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=await ya(o,l.items[o],i,s);if(typeof h=="number")o=h-1;else{if(h===wt)return wt;h===tn&&(l.items.splice(o,1),o-=1)}}}else if(ke(l)){s=Object.freeze(s.concat(l));const o=await ya("key",l.key,i,s);if(o===wt)return wt;o===tn&&(l.key=null);const h=await ya("value",l.value,i,s);if(h===wt)return wt;h===tn&&(l.value=null)}}return c}function ip(u){return typeof u=="object"&&(u.Collection||u.Node||u.Value)?Object.assign({Alias:u.Node,Map:u.Node,Scalar:u.Node,Seq:u.Node},u.Value&&{Map:u.Value,Scalar:u.Value,Seq:u.Value},u.Collection&&{Map:u.Collection,Seq:u.Collection},u):u}function sp(u,l,i,s){var c,o,h,m,g;if(typeof i=="function")return i(u,l,s);if(_a(l))return(c=i.Map)==null?void 0:c.call(i,u,l,s);if(Ma(l))return(o=i.Seq)==null?void 0:o.call(i,u,l,s);if(ke(l))return(h=i.Pair)==null?void 0:h.call(i,u,l,s);if(ze(l))return(m=i.Scalar)==null?void 0:m.call(i,u,l,s);if(el(l))return(g=i.Alias)==null?void 0:g.call(i,u,l,s)}function up(u,l,i){const s=l[l.length-1];if(Re(s))s.items[u]=i;else if(ke(s))u==="key"?s.key=i:s.value=i;else if(Ol(s))s.contents=i;else{const c=el(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${c} parent`)}}const Uv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},jv=u=>u.replace(/[!,[\]{}]/g,l=>Uv[l]);class ht{constructor(l,i){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ht.defaultYaml,l),this.tags=Object.assign({},ht.defaultTags,i)}clone(){const l=new ht(this.yaml,this.tags);return l.docStart=this.docStart,l}atDocument(){const l=new ht(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ht.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ht.defaultTags);break}return l}add(l,i){this.atNextDocument&&(this.yaml={explicit:ht.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ht.defaultTags),this.atNextDocument=!1);const s=l.trim().split(/[ \t]+/),c=s.shift();switch(c){case"%TAG":{if(s.length!==2&&(i(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[o,h]=s;return this.tags[o]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return i(0,"%YAML directive should contain exactly one part"),!1;const[o]=s;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const h=/^\d+\.\d+$/.test(o);return i(6,`Unsupported YAML version ${o}`,h),!1}}default:return i(0,`Unknown directive ${c}`,!0),!1}}tagName(l,i){if(l==="!")return"!";if(l[0]!=="!")return i(`Not a valid tag: ${l}`),null;if(l[1]==="<"){const h=l.slice(2,-1);return h==="!"||h==="!!"?(i(`Verbatim tags aren't resolved, so ${l} is invalid.`),null):(l[l.length-1]!==">"&&i("Verbatim tags must end with a >"),h)}const[,s,c]=l.match(/^(.*!)([^!]*)$/s);c||i(`The ${l} tag has no suffix`);const o=this.tags[s];if(o)try{return o+decodeURIComponent(c)}catch(h){return i(String(h)),null}return s==="!"?l:(i(`Could not resolve tag: ${l}`),null)}tagString(l){for(const[i,s]of Object.entries(this.tags))if(l.startsWith(s))return i+jv(l.substring(s.length));return l[0]==="!"?l:`!<${l}>`}toString(l){const i=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let c;if(l&&s.length>0&&Be(l.contents)){const o={};Nl(l.contents,(h,m)=>{Be(m)&&m.tag&&(o[m.tag]=!0)}),c=Object.keys(o)}else c=[];for(const[o,h]of s)o==="!!"&&h==="tag:yaml.org,2002:"||(!l||c.some(m=>m.startsWith(h)))&&i.push(`%TAG ${o} ${h}`);return i.join(`
|
|
52
|
-
`)}}ht.defaultYaml={explicit:!1,version:"1.2"};ht.defaultTags={"!!":"tag:yaml.org,2002:"};function cp(u){if(/[\x00-\x19\s,[\]{}]/.test(u)){const i=`Anchor must not contain whitespace or control characters: ${JSON.stringify(u)}`;throw new Error(i)}return!0}function rp(u){const l=new Set;return Nl(u,{Value(i,s){s.anchor&&l.add(s.anchor)}}),l}function fp(u,l){for(let i=1;;++i){const s=`${u}${i}`;if(!l.has(s))return s}}function kv(u,l){const i=[],s=new Map;let c=null;return{onAnchor:o=>{i.push(o),c??(c=rp(u));const h=fp(l,c);return c.add(h),h},setAnchors:()=>{for(const o of i){const h=s.get(o);if(typeof h=="object"&&h.anchor&&(ze(h.node)||Re(h.node)))h.node.anchor=h.anchor;else{const m=new Error("Failed to resolve repeated object (this should not happen)");throw m.source=o,m}}},sourceObjects:s}}function va(u,l,i,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let c=0,o=s.length;c<o;++c){const h=s[c],m=va(u,s,String(c),h);m===void 0?delete s[c]:m!==h&&(s[c]=m)}else if(s instanceof Map)for(const c of Array.from(s.keys())){const o=s.get(c),h=va(u,s,c,o);h===void 0?s.delete(c):h!==o&&s.set(c,h)}else if(s instanceof Set)for(const c of Array.from(s)){const o=va(u,s,c,c);o===void 0?s.delete(c):o!==c&&(s.delete(c),s.add(o))}else for(const[c,o]of Object.entries(s)){const h=va(u,s,c,o);h===void 0?delete s[c]:h!==o&&(s[c]=h)}return u.call(l,i,s)}function Kt(u,l,i){if(Array.isArray(u))return u.map((s,c)=>Kt(s,String(c),i));if(u&&typeof u.toJSON=="function"){if(!i||!lp(u))return u.toJSON(l,i);const s={aliasCount:0,count:1,res:void 0};i.anchors.set(u,s),i.onCreate=o=>{s.res=o,delete i.onCreate};const c=u.toJSON(l,i);return i.onCreate&&i.onCreate(c),c}return typeof u=="bigint"&&!(i!=null&&i.keep)?Number(u):u}class jf{constructor(l){Object.defineProperty(this,Vt,{value:l})}clone(){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(l.range=this.range.slice()),l}toJS(l,{mapAsMap:i,maxAliasCount:s,onAnchor:c,reviver:o}={}){if(!Ol(l))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:l,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},m=Kt(this,"",h);if(typeof c=="function")for(const{count:g,res:p}of h.anchors.values())c(p,g);return typeof o=="function"?va(o,{"":m},"",m):m}}class Nu extends jf{constructor(l){super(Uf),this.source=l,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(l,i){let s;i!=null&&i.aliasResolveCache?s=i.aliasResolveCache:(s=[],Nl(l,{Node:(o,h)=>{(el(h)||lp(h))&&s.push(h)}}),i&&(i.aliasResolveCache=s));let c;for(const o of s){if(o===this)break;o.anchor===this.source&&(c=o)}return c}toJSON(l,i){if(!i)return{source:this.source};const{anchors:s,doc:c,maxAliasCount:o}=i,h=this.resolve(c,i);if(!h){const g=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(g)}let m=s.get(h);if(m||(Kt(h,null,i),m=s.get(h)),(m==null?void 0:m.res)===void 0){const g="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(g)}if(o>=0&&(m.count+=1,m.aliasCount===0&&(m.aliasCount=du(c,h,s)),m.count*m.aliasCount>o)){const g="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(g)}return m.res}toString(l,i,s){const c=`*${this.source}`;if(l){if(cp(this.source),l.options.verifyAliasOrder&&!l.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(l.implicitKey)return`${c} `}return c}}function du(u,l,i){if(el(l)){const s=l.resolve(u),c=i&&s&&i.get(s);return c?c.count*c.aliasCount:0}else if(Re(l)){let s=0;for(const c of l.items){const o=du(u,c,i);o>s&&(s=o)}return s}else if(ke(l)){const s=du(u,l.key,i),c=du(u,l.value,i);return Math.max(s,c)}return 1}const op=u=>!u||typeof u!="function"&&typeof u!="object";class fe extends jf{constructor(l){super(nn),this.value=l}toJSON(l,i){return i!=null&&i.keep?this.value:Kt(this.value,l,i)}toString(){return String(this.value)}}fe.BLOCK_FOLDED="BLOCK_FOLDED";fe.BLOCK_LITERAL="BLOCK_LITERAL";fe.PLAIN="PLAIN";fe.QUOTE_DOUBLE="QUOTE_DOUBLE";fe.QUOTE_SINGLE="QUOTE_SINGLE";const Rv="tag:yaml.org,2002:";function Bv(u,l,i){if(l){const s=i.filter(o=>o.tag===l),c=s.find(o=>!o.format)??s[0];if(!c)throw new Error(`Tag ${l} not found`);return c}return i.find(s=>{var c;return((c=s.identify)==null?void 0:c.call(s,u))&&!s.format})}function zi(u,l,i){var v,N,E;if(Ol(u)&&(u=u.contents),Be(u))return u;if(ke(u)){const x=(N=(v=i.schema[In]).createNode)==null?void 0:N.call(v,i.schema,null,i);return x.items.push(u),x}(u instanceof String||u instanceof Number||u instanceof Boolean||typeof BigInt<"u"&&u instanceof BigInt)&&(u=u.valueOf());const{aliasDuplicateObjects:s,onAnchor:c,onTagObj:o,schema:h,sourceObjects:m}=i;let g;if(s&&u&&typeof u=="object"){if(g=m.get(u),g)return g.anchor??(g.anchor=c(u)),new Nu(g.anchor);g={anchor:null,node:null},m.set(u,g)}l!=null&&l.startsWith("!!")&&(l=Rv+l.slice(2));let p=Bv(u,l,h.tags);if(!p){if(u&&typeof u.toJSON=="function"&&(u=u.toJSON()),!u||typeof u!="object"){const x=new fe(u);return g&&(g.node=x),x}p=u instanceof Map?h[In]:Symbol.iterator in Object(u)?h[Na]:h[In]}o&&(o(p),delete i.onTagObj);const w=p!=null&&p.createNode?p.createNode(i.schema,u,i):typeof((E=p==null?void 0:p.nodeClass)==null?void 0:E.from)=="function"?p.nodeClass.from(i.schema,u,i):new fe(u);return l?w.tag=l:p.default||(w.tag=p.tag),g&&(g.node=w),w}function vu(u,l,i){let s=i;for(let c=l.length-1;c>=0;--c){const o=l[c];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const h=[];h[o]=s,s=h}else s=new Map([[o,s]])}return zi(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:u,sourceObjects:new Map})}const Ci=u=>u==null||typeof u=="object"&&!!u[Symbol.iterator]().next().done;class hp extends jf{constructor(l,i){super(l),Object.defineProperty(this,"schema",{value:i,configurable:!0,enumerable:!1,writable:!0})}clone(l){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return l&&(i.schema=l),i.items=i.items.map(s=>Be(s)||ke(s)?s.clone(l):s),this.range&&(i.range=this.range.slice()),i}addIn(l,i){if(Ci(l))this.add(i);else{const[s,...c]=l,o=this.get(s,!0);if(Re(o))o.addIn(c,i);else if(o===void 0&&this.schema)this.set(s,vu(this.schema,c,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}deleteIn(l){const[i,...s]=l;if(s.length===0)return this.delete(i);const c=this.get(i,!0);if(Re(c))return c.deleteIn(s);throw new Error(`Expected YAML collection at ${i}. Remaining path: ${s}`)}getIn(l,i){const[s,...c]=l,o=this.get(s,!0);return c.length===0?!i&&ze(o)?o.value:o:Re(o)?o.getIn(c,i):void 0}hasAllNullValues(l){return this.items.every(i=>{if(!ke(i))return!1;const s=i.value;return s==null||l&&ze(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(l){const[i,...s]=l;if(s.length===0)return this.has(i);const c=this.get(i,!0);return Re(c)?c.hasIn(s):!1}setIn(l,i){const[s,...c]=l;if(c.length===0)this.set(s,i);else{const o=this.get(s,!0);if(Re(o))o.setIn(c,i);else if(o===void 0&&this.schema)this.set(s,vu(this.schema,c,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}}const qv=u=>u.replace(/^(?!$)(?: $)?/gm,"#");function En(u,l){return/^\n+$/.test(u)?u.substring(1):l?u.replace(/^(?! *$)/gm,l):u}const Sl=(u,l,i)=>u.endsWith(`
|
|
53
|
-
`)?En(i,l):i.includes(`
|
|
54
|
-
`)?`
|
|
55
|
-
`+En(i,l):(u.endsWith(" ")?"":" ")+i,dp="flow",_f="block",mu="quoted";function _u(u,l,i="flow",{indentAtStart:s,lineWidth:c=80,minContentWidth:o=20,onFold:h,onOverflow:m}={}){if(!c||c<0)return u;c<o&&(o=0);const g=Math.max(1+o,1+c-l.length);if(u.length<=g)return u;const p=[],w={};let v=c-l.length;typeof s=="number"&&(s>c-Math.max(2,o)?p.push(0):v=c-s);let N,E,x=!1,S=-1,A=-1,M=-1;i===_f&&(S=bg(u,S,l.length),S!==-1&&(v=S+g));for(let $;$=u[S+=1];){if(i===mu&&$==="\\"){switch(A=S,u[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}M=S}if($===`
|
|
56
|
-
`)i===_f&&(S=bg(u,S,l.length)),v=S+l.length+g,N=void 0;else{if($===" "&&E&&E!==" "&&E!==`
|
|
57
|
-
`&&E!==" "){const Z=u[S+1];Z&&Z!==" "&&Z!==`
|
|
58
|
-
`&&Z!==" "&&(N=S)}if(S>=v)if(N)p.push(N),v=N+g,N=void 0;else if(i===mu){for(;E===" "||E===" ";)E=$,$=u[S+=1],x=!0;const Z=S>M+1?S-2:A-1;if(w[Z])return u;p.push(Z),w[Z]=!0,v=Z+g,N=void 0}else x=!0}E=$}if(x&&m&&m(),p.length===0)return u;h&&h();let U=u.slice(0,p[0]);for(let $=0;$<p.length;++$){const Z=p[$],W=p[$+1]||u.length;Z===0?U=`
|
|
59
|
-
${l}${u.slice(0,W)}`:(i===mu&&w[Z]&&(U+=`${u[Z]}\\`),U+=`
|
|
60
|
-
${l}${u.slice(Z+1,W)}`)}return U}function bg(u,l,i){let s=l,c=l+1,o=u[c];for(;o===" "||o===" ";)if(l<c+i)o=u[++l];else{do o=u[++l];while(o&&o!==`
|
|
61
|
-
`);s=l,c=l+1,o=u[c]}return s}const Mu=(u,l)=>({indentAtStart:l?u.indent.length:u.indentAtStart,lineWidth:u.options.lineWidth,minContentWidth:u.options.minContentWidth}),Cu=u=>/^(%|---|\.\.\.)/m.test(u);function Hv(u,l,i){if(!l||l<0)return!1;const s=l-i,c=u.length;if(c<=s)return!1;for(let o=0,h=0;o<c;++o)if(u[o]===`
|
|
62
|
-
`){if(o-h>s)return!0;if(h=o+1,c-h<=s)return!1}return!0}function xi(u,l){const i=JSON.stringify(u);if(l.options.doubleQuotedAsJSON)return i;const{implicitKey:s}=l,c=l.options.doubleQuotedMinMultiLineLength,o=l.indent||(Cu(u)?" ":"");let h="",m=0;for(let g=0,p=i[g];p;p=i[++g])if(p===" "&&i[g+1]==="\\"&&i[g+2]==="n"&&(h+=i.slice(m,g)+"\\ ",g+=1,m=g,p="\\"),p==="\\")switch(i[g+1]){case"u":{h+=i.slice(m,g);const w=i.substr(g+2,4);switch(w){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:w.substr(0,2)==="00"?h+="\\x"+w.substr(2):h+=i.substr(g,6)}g+=5,m=g+1}break;case"n":if(s||i[g+2]==='"'||i.length<c)g+=1;else{for(h+=i.slice(m,g)+`
|
|
63
|
-
|
|
64
|
-
`;i[g+2]==="\\"&&i[g+3]==="n"&&i[g+4]!=='"';)h+=`
|
|
65
|
-
`,g+=2;h+=o,i[g+2]===" "&&(h+="\\"),g+=1,m=g+1}break;default:g+=1}return h=m?h+i.slice(m):i,s?h:_u(h,o,mu,Mu(l,!1))}function Mf(u,l){if(l.options.singleQuote===!1||l.implicitKey&&u.includes(`
|
|
66
|
-
`)||/[ \t]\n|\n[ \t]/.test(u))return xi(u,l);const i=l.indent||(Cu(u)?" ":""),s="'"+u.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
67
|
-
${i}`)+"'";return l.implicitKey?s:_u(s,i,dp,Mu(l,!1))}function ba(u,l){const{singleQuote:i}=l.options;let s;if(i===!1)s=xi;else{const c=u.includes('"'),o=u.includes("'");c&&!o?s=Mf:o&&!c?s=xi:s=i?Mf:xi}return s(u,l)}let Cf;try{Cf=new RegExp(`(^|(?<!
|
|
68
|
-
))
|
|
69
|
-
+(?!
|
|
70
|
-
|$)`,"g")}catch{Cf=/\n+(?!\n|$)/g}function gu({comment:u,type:l,value:i},s,c,o){const{blockQuote:h,commentString:m,lineWidth:g}=s.options;if(!h||/\n[\t ]+$/.test(i))return ba(i,s);const p=s.indent||(s.forceBlockIndent||Cu(i)?" ":""),w=h==="literal"?!0:h==="folded"||l===fe.BLOCK_FOLDED?!1:l===fe.BLOCK_LITERAL?!0:!Hv(i,g,p.length);if(!i)return w?`|
|
|
71
|
-
`:`>
|
|
72
|
-
`;let v,N;for(N=i.length;N>0;--N){const W=i[N-1];if(W!==`
|
|
73
|
-
`&&W!==" "&&W!==" ")break}let E=i.substring(N);const x=E.indexOf(`
|
|
74
|
-
`);x===-1?v="-":i===E||x!==E.length-1?(v="+",o&&o()):v="",E&&(i=i.slice(0,-E.length),E[E.length-1]===`
|
|
75
|
-
`&&(E=E.slice(0,-1)),E=E.replace(Cf,`$&${p}`));let S=!1,A,M=-1;for(A=0;A<i.length;++A){const W=i[A];if(W===" ")S=!0;else if(W===`
|
|
76
|
-
`)M=A;else break}let U=i.substring(0,M<A?M+1:A);U&&(i=i.substring(U.length),U=U.replace(/\n+/g,`$&${p}`));let Z=(S?p?"2":"1":"")+v;if(u&&(Z+=" "+m(u.replace(/ ?[\r\n]+/g," ")),c&&c()),!w){const W=i.replace(/\n+/g,`
|
|
77
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let J=!1;const G=Mu(s,!0);h!=="folded"&&l!==fe.BLOCK_FOLDED&&(G.onOverflow=()=>{J=!0});const V=_u(`${U}${W}${E}`,p,_f,G);if(!J)return`>${Z}
|
|
78
|
-
${p}${V}`}return i=i.replace(/\n+/g,`$&${p}`),`|${Z}
|
|
79
|
-
${p}${U}${i}${E}`}function Yv(u,l,i,s){const{type:c,value:o}=u,{actualString:h,implicitKey:m,indent:g,indentStep:p,inFlow:w}=l;if(m&&o.includes(`
|
|
80
|
-
`)||w&&/[[\]{},]/.test(o))return ba(o,l);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return m||w||!o.includes(`
|
|
81
|
-
`)?ba(o,l):gu(u,l,i,s);if(!m&&!w&&c!==fe.PLAIN&&o.includes(`
|
|
82
|
-
`))return gu(u,l,i,s);if(Cu(o)){if(g==="")return l.forceBlockIndent=!0,gu(u,l,i,s);if(m&&g===p)return ba(o,l)}const v=o.replace(/\n+/g,`$&
|
|
83
|
-
${g}`);if(h){const N=S=>{var A;return S.default&&S.tag!=="tag:yaml.org,2002:str"&&((A=S.test)==null?void 0:A.test(v))},{compat:E,tags:x}=l.doc.schema;if(x.some(N)||E!=null&&E.some(N))return ba(o,l)}return m?v:_u(v,g,dp,Mu(l,!1))}function ji(u,l,i,s){const{implicitKey:c,inFlow:o}=l,h=typeof u.value=="string"?u:Object.assign({},u,{value:String(u.value)});let{type:m}=u;m!==fe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(m=fe.QUOTE_DOUBLE);const g=w=>{switch(w){case fe.BLOCK_FOLDED:case fe.BLOCK_LITERAL:return c||o?ba(h.value,l):gu(h,l,i,s);case fe.QUOTE_DOUBLE:return xi(h.value,l);case fe.QUOTE_SINGLE:return Mf(h.value,l);case fe.PLAIN:return Yv(h,l,i,s);default:return null}};let p=g(m);if(p===null){const{defaultKeyType:w,defaultStringType:v}=l.options,N=c&&w||v;if(p=g(N),p===null)throw new Error(`Unsupported default string type ${N}`)}return p}function mp(u,l){const i=Object.assign({blockQuote:!0,commentString:qv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},u.schema.toStringOptions,l);let s;switch(i.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:u,flowCollectionPadding:i.flowCollectionPadding?" ":"",indent:"",indentStep:typeof i.indent=="number"?" ".repeat(i.indent):" ",inFlow:s,options:i}}function $v(u,l){var c;if(l.tag){const o=u.filter(h=>h.tag===l.tag);if(o.length>0)return o.find(h=>h.format===l.format)??o[0]}let i,s;if(ze(l)){s=l.value;let o=u.filter(h=>{var m;return(m=h.identify)==null?void 0:m.call(h,s)});if(o.length>1){const h=o.filter(m=>m.test);h.length>0&&(o=h)}i=o.find(h=>h.format===l.format)??o.find(h=>!h.format)}else s=l,i=u.find(o=>o.nodeClass&&s instanceof o.nodeClass);if(!i){const o=((c=s==null?void 0:s.constructor)==null?void 0:c.name)??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${o} value`)}return i}function Gv(u,l,{anchors:i,doc:s}){if(!s.directives)return"";const c=[],o=(ze(u)||Re(u))&&u.anchor;o&&cp(o)&&(i.add(o),c.push(`&${o}`));const h=u.tag??(l.default?null:l.tag);return h&&c.push(s.directives.tagString(h)),c.join(" ")}function wa(u,l,i,s){var g;if(ke(u))return u.toString(l,i,s);if(el(u)){if(l.doc.directives)return u.toString(l);if((g=l.resolvedAliases)!=null&&g.has(u))throw new TypeError("Cannot stringify circular structure without alias nodes");l.resolvedAliases?l.resolvedAliases.add(u):l.resolvedAliases=new Set([u]),u=u.resolve(l.doc)}let c;const o=Be(u)?u:l.doc.createNode(u,{onTagObj:p=>c=p});c??(c=$v(l.doc.schema.tags,o));const h=Gv(o,c,l);h.length>0&&(l.indentAtStart=(l.indentAtStart??0)+h.length+1);const m=typeof c.stringify=="function"?c.stringify(o,l,i,s):ze(o)?ji(o,l,i,s):o.toString(l,i,s);return h?ze(o)||m[0]==="{"||m[0]==="["?`${h} ${m}`:`${h}
|
|
84
|
-
${l.indent}${m}`:m}function Kv({key:u,value:l},i,s,c){const{allNullValues:o,doc:h,indent:m,indentStep:g,options:{commentString:p,indentSeq:w,simpleKeys:v}}=i;let N=Be(u)&&u.comment||null;if(v){if(N)throw new Error("With simple keys, key nodes cannot have comments");if(Re(u)||!Be(u)&&typeof u=="object"){const G="With simple keys, collection cannot be used as a key value";throw new Error(G)}}let E=!v&&(!u||N&&l==null&&!i.inFlow||Re(u)||(ze(u)?u.type===fe.BLOCK_FOLDED||u.type===fe.BLOCK_LITERAL:typeof u=="object"));i=Object.assign({},i,{allNullValues:!1,implicitKey:!E&&(v||!o),indent:m+g});let x=!1,S=!1,A=wa(u,i,()=>x=!0,()=>S=!0);if(!E&&!i.inFlow&&A.length>1024){if(v)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=!0}if(i.inFlow){if(o||l==null)return x&&s&&s(),A===""?"?":E?`? ${A}`:A}else if(o&&!v||l==null&&E)return A=`? ${A}`,N&&!x?A+=Sl(A,i.indent,p(N)):S&&c&&c(),A;x&&(N=null),E?(N&&(A+=Sl(A,i.indent,p(N))),A=`? ${A}
|
|
85
|
-
${m}:`):(A=`${A}:`,N&&(A+=Sl(A,i.indent,p(N))));let M,U,$;Be(l)?(M=!!l.spaceBefore,U=l.commentBefore,$=l.comment):(M=!1,U=null,$=null,l&&typeof l=="object"&&(l=h.createNode(l))),i.implicitKey=!1,!E&&!N&&ze(l)&&(i.indentAtStart=A.length+1),S=!1,!w&&g.length>=2&&!i.inFlow&&!E&&Ma(l)&&!l.flow&&!l.tag&&!l.anchor&&(i.indent=i.indent.substring(2));let Z=!1;const W=wa(l,i,()=>Z=!0,()=>S=!0);let J=" ";if(N||M||U){if(J=M?`
|
|
86
|
-
`:"",U){const G=p(U);J+=`
|
|
87
|
-
${En(G,i.indent)}`}W===""&&!i.inFlow?J===`
|
|
88
|
-
`&&$&&(J=`
|
|
89
|
-
|
|
90
|
-
`):J+=`
|
|
91
|
-
${i.indent}`}else if(!E&&Re(l)){const G=W[0],V=W.indexOf(`
|
|
92
|
-
`),L=V!==-1,se=i.inFlow??l.flow??l.items.length===0;if(L||!se){let ae=!1;if(L&&(G==="&"||G==="!")){let Y=W.indexOf(" ");G==="&"&&Y!==-1&&Y<V&&W[Y+1]==="!"&&(Y=W.indexOf(" ",Y+1)),(Y===-1||V<Y)&&(ae=!0)}ae||(J=`
|
|
93
|
-
${i.indent}`)}}else(W===""||W[0]===`
|
|
94
|
-
`)&&(J="");return A+=J+W,i.inFlow?Z&&s&&s():$&&!Z?A+=Sl(A,i.indent,p($)):S&&c&&c(),A}function gp(u,l){(u==="debug"||u==="warn")&&console.warn(l)}const nu="<<",An={identify:u=>u===nu||typeof u=="symbol"&&u.description===nu,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new fe(Symbol(nu)),{addToJSMap:pp}),stringify:()=>nu},Vv=(u,l)=>(An.identify(l)||ze(l)&&(!l.type||l.type===fe.PLAIN)&&An.identify(l.value))&&(u==null?void 0:u.doc.schema.tags.some(i=>i.tag===An.tag&&i.default));function pp(u,l,i){if(i=u&&el(i)?i.resolve(u.doc):i,Ma(i))for(const s of i.items)hf(u,l,s);else if(Array.isArray(i))for(const s of i)hf(u,l,s);else hf(u,l,i)}function hf(u,l,i){const s=u&&el(i)?i.resolve(u.doc):i;if(!_a(s))throw new Error("Merge sources must be maps or map aliases");const c=s.toJSON(null,u,Map);for(const[o,h]of c)l instanceof Map?l.has(o)||l.set(o,h):l instanceof Set?l.add(o):Object.prototype.hasOwnProperty.call(l,o)||Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0});return l}function yp(u,l,{key:i,value:s}){if(Be(i)&&i.addToJSMap)i.addToJSMap(u,l,s);else if(Vv(u,i))pp(u,l,s);else{const c=Kt(i,"",u);if(l instanceof Map)l.set(c,Kt(s,c,u));else if(l instanceof Set)l.add(c);else{const o=Qv(i,c,u),h=Kt(s,o,u);o in l?Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0}):l[o]=h}}return l}function Qv(u,l,i){if(l===null)return"";if(typeof l!="object")return String(l);if(Be(u)&&(i!=null&&i.doc)){const s=mp(i.doc,{});s.anchors=new Set;for(const o of i.anchors.keys())s.anchors.add(o.anchor);s.inFlow=!0,s.inStringifyKey=!0;const c=u.toString(s);if(!i.mapKeyWarned){let o=JSON.stringify(c);o.length>40&&(o=o.substring(0,36)+'..."'),gp(i.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),i.mapKeyWarned=!0}return c}return JSON.stringify(l)}function kf(u,l,i){const s=zi(u,void 0,i),c=zi(l,void 0,i);return new ft(s,c)}class ft{constructor(l,i=null){Object.defineProperty(this,Vt,{value:np}),this.key=l,this.value=i}clone(l){let{key:i,value:s}=this;return Be(i)&&(i=i.clone(l)),Be(s)&&(s=s.clone(l)),new ft(i,s)}toJSON(l,i){const s=i!=null&&i.mapAsMap?new Map:{};return yp(i,s,this)}toString(l,i,s){return l!=null&&l.doc?Kv(this,l,i,s):JSON.stringify(this)}}function vp(u,l,i){return(l.inFlow??u.flow?Zv:Xv)(u,l,i)}function Xv({comment:u,items:l},i,{blockItemPrefix:s,flowChars:c,itemIndent:o,onChompKeep:h,onComment:m}){const{indent:g,options:{commentString:p}}=i,w=Object.assign({},i,{indent:o,type:null});let v=!1;const N=[];for(let x=0;x<l.length;++x){const S=l[x];let A=null;if(Be(S))!v&&S.spaceBefore&&N.push(""),bu(i,N,S.commentBefore,v),S.comment&&(A=S.comment);else if(ke(S)){const U=Be(S.key)?S.key:null;U&&(!v&&U.spaceBefore&&N.push(""),bu(i,N,U.commentBefore,v))}v=!1;let M=wa(S,w,()=>A=null,()=>v=!0);A&&(M+=Sl(M,o,p(A))),v&&A&&(v=!1),N.push(s+M)}let E;if(N.length===0)E=c.start+c.end;else{E=N[0];for(let x=1;x<N.length;++x){const S=N[x];E+=S?`
|
|
95
|
-
${g}${S}`:`
|
|
96
|
-
`}}return u?(E+=`
|
|
97
|
-
`+En(p(u),g),m&&m()):v&&h&&h(),E}function Zv({items:u},l,{flowChars:i,itemIndent:s}){const{indent:c,indentStep:o,flowCollectionPadding:h,options:{commentString:m}}=l;s+=o;const g=Object.assign({},l,{indent:s,inFlow:!0,type:null});let p=!1,w=0;const v=[];for(let x=0;x<u.length;++x){const S=u[x];let A=null;if(Be(S))S.spaceBefore&&v.push(""),bu(l,v,S.commentBefore,!1),S.comment&&(A=S.comment);else if(ke(S)){const U=Be(S.key)?S.key:null;U&&(U.spaceBefore&&v.push(""),bu(l,v,U.commentBefore,!1),U.comment&&(p=!0));const $=Be(S.value)?S.value:null;$?($.comment&&(A=$.comment),$.commentBefore&&(p=!0)):S.value==null&&(U!=null&&U.comment)&&(A=U.comment)}A&&(p=!0);let M=wa(S,g,()=>A=null);p||(p=v.length>w||M.includes(`
|
|
98
|
-
`)),x<u.length-1?M+=",":l.options.trailingComma&&(l.options.lineWidth>0&&(p||(p=v.reduce((U,$)=>U+$.length+2,2)+(M.length+2)>l.options.lineWidth)),p&&(M+=",")),A&&(M+=Sl(M,s,m(A))),v.push(M),w=v.length}const{start:N,end:E}=i;if(v.length===0)return N+E;if(!p){const x=v.reduce((S,A)=>S+A.length+2,2);p=l.options.lineWidth>0&&x>l.options.lineWidth}if(p){let x=N;for(const S of v)x+=S?`
|
|
99
|
-
${o}${c}${S}`:`
|
|
100
|
-
`;return`${x}
|
|
101
|
-
${c}${E}`}else return`${N}${h}${v.join(" ")}${h}${E}`}function bu({indent:u,options:{commentString:l}},i,s,c){if(s&&c&&(s=s.replace(/^\n+/,"")),s){const o=En(l(s),u);i.push(o.trimStart())}}function Tl(u,l){const i=ze(l)?l.value:l;for(const s of u)if(ke(s)&&(s.key===l||s.key===i||ze(s.key)&&s.key.value===i))return s}class Lt extends hp{static get tagName(){return"tag:yaml.org,2002:map"}constructor(l){super(In,l),this.items=[]}static from(l,i,s){const{keepUndefined:c,replacer:o}=s,h=new this(l),m=(g,p)=>{if(typeof o=="function")p=o.call(i,g,p);else if(Array.isArray(o)&&!o.includes(g))return;(p!==void 0||c)&&h.items.push(kf(g,p,s))};if(i instanceof Map)for(const[g,p]of i)m(g,p);else if(i&&typeof i=="object")for(const g of Object.keys(i))m(g,i[g]);return typeof l.sortMapEntries=="function"&&h.items.sort(l.sortMapEntries),h}add(l,i){var h;let s;ke(l)?s=l:!l||typeof l!="object"||!("key"in l)?s=new ft(l,l==null?void 0:l.value):s=new ft(l.key,l.value);const c=Tl(this.items,s.key),o=(h=this.schema)==null?void 0:h.sortMapEntries;if(c){if(!i)throw new Error(`Key ${s.key} already set`);ze(c.value)&&op(s.value)?c.value.value=s.value:c.value=s.value}else if(o){const m=this.items.findIndex(g=>o(s,g)<0);m===-1?this.items.push(s):this.items.splice(m,0,s)}else this.items.push(s)}delete(l){const i=Tl(this.items,l);return i?this.items.splice(this.items.indexOf(i),1).length>0:!1}get(l,i){const s=Tl(this.items,l),c=s==null?void 0:s.value;return(!i&&ze(c)?c.value:c)??void 0}has(l){return!!Tl(this.items,l)}set(l,i){this.add(new ft(l,i),!0)}toJSON(l,i,s){const c=s?new s:i!=null&&i.mapAsMap?new Map:{};i!=null&&i.onCreate&&i.onCreate(c);for(const o of this.items)yp(i,c,o);return c}toString(l,i,s){if(!l)return JSON.stringify(this);for(const c of this.items)if(!ke(c))throw new Error(`Map items must all be pairs; found ${JSON.stringify(c)} instead`);return!l.allNullValues&&this.hasAllNullValues(!1)&&(l=Object.assign({},l,{allNullValues:!0})),vp(this,l,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:l.indent||"",onChompKeep:s,onComment:i})}}const Ca={collection:"map",default:!0,nodeClass:Lt,tag:"tag:yaml.org,2002:map",resolve(u,l){return _a(u)||l("Expected a mapping for this tag"),u},createNode:(u,l,i)=>Lt.from(u,l,i)};class Pn extends hp{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(l){super(Na,l),this.items=[]}add(l){this.items.push(l)}delete(l){const i=lu(l);return typeof i!="number"?!1:this.items.splice(i,1).length>0}get(l,i){const s=lu(l);if(typeof s!="number")return;const c=this.items[s];return!i&&ze(c)?c.value:c}has(l){const i=lu(l);return typeof i=="number"&&i<this.items.length}set(l,i){const s=lu(l);if(typeof s!="number")throw new Error(`Expected a valid index, not ${l}.`);const c=this.items[s];ze(c)&&op(i)?c.value=i:this.items[s]=i}toJSON(l,i){const s=[];i!=null&&i.onCreate&&i.onCreate(s);let c=0;for(const o of this.items)s.push(Kt(o,String(c++),i));return s}toString(l,i,s){return l?vp(this,l,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(l.indent||"")+" ",onChompKeep:s,onComment:i}):JSON.stringify(this)}static from(l,i,s){const{replacer:c}=s,o=new this(l);if(i&&Symbol.iterator in Object(i)){let h=0;for(let m of i){if(typeof c=="function"){const g=i instanceof Set?m:String(h++);m=c.call(i,g,m)}o.items.push(zi(m,void 0,s))}}return o}}function lu(u){let l=ze(u)?u.value:u;return l&&typeof l=="string"&&(l=Number(l)),typeof l=="number"&&Number.isInteger(l)&&l>=0?l:null}const xa={collection:"seq",default:!0,nodeClass:Pn,tag:"tag:yaml.org,2002:seq",resolve(u,l){return Ma(u)||l("Expected a sequence for this tag"),u},createNode:(u,l,i)=>Pn.from(u,l,i)},xu={identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify(u,l,i,s){return l=Object.assign({actualString:!0},l),ji(u,l,i,s)}},zu={identify:u=>u==null,createNode:()=>new fe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new fe(null),stringify:({source:u},l)=>typeof u=="string"&&zu.test.test(u)?u:l.options.nullStr},Rf={identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:u=>new fe(u[0]==="t"||u[0]==="T"),stringify({source:u,value:l},i){if(u&&Rf.test.test(u)){const s=u[0]==="t"||u[0]==="T";if(l===s)return u}return l?i.options.trueStr:i.options.falseStr}};function Wt({format:u,minFractionDigits:l,tag:i,value:s}){if(typeof s=="bigint")return String(s);const c=typeof s=="number"?s:Number(s);if(!isFinite(c))return isNaN(c)?".nan":c<0?"-.inf":".inf";let o=Object.is(s,-0)?"-0":JSON.stringify(s);if(!u&&l&&(!i||i==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let h=o.indexOf(".");h<0&&(h=o.length,o+=".");let m=l-(o.length-h-1);for(;m-- >0;)o+="0"}return o}const bp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt},Sp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Wt(u)}},Tp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(u){const l=new fe(parseFloat(u)),i=u.indexOf(".");return i!==-1&&u[u.length-1]==="0"&&(l.minFractionDigits=u.length-i-1),l},stringify:Wt},Du=u=>typeof u=="bigint"||Number.isInteger(u),Bf=(u,l,i,{intAsBigInt:s})=>s?BigInt(u):parseInt(u.substring(l),i);function wp(u,l,i){const{value:s}=u;return Du(s)&&s>=0?i+s.toString(l):Wt(u)}const Ep={identify:u=>Du(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(u,l,i)=>Bf(u,2,8,i),stringify:u=>wp(u,8,"0o")},Ap={identify:Du,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(u,l,i)=>Bf(u,0,10,i),stringify:Wt},Op={identify:u=>Du(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(u,l,i)=>Bf(u,2,16,i),stringify:u=>wp(u,16,"0x")},Jv=[Ca,xa,xu,zu,Rf,Ep,Ap,Op,bp,Sp,Tp];function Sg(u){return typeof u=="bigint"||Number.isInteger(u)}const au=({value:u})=>JSON.stringify(u),Wv=[{identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify:au},{identify:u=>u==null,createNode:()=>new fe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:au},{identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:u=>u==="true",stringify:au},{identify:Sg,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(u,l,{intAsBigInt:i})=>i?BigInt(u):parseInt(u,10),stringify:({value:u})=>Sg(u)?u.toString():JSON.stringify(u)},{identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:u=>parseFloat(u),stringify:au}],Fv={default:!0,tag:"",test:/^/,resolve(u,l){return l(`Unresolved plain scalar ${JSON.stringify(u)}`),u}},Iv=[Ca,xa].concat(Wv,Fv),qf={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(u,l){if(typeof atob=="function"){const i=atob(u.replace(/[\n\r]/g,"")),s=new Uint8Array(i.length);for(let c=0;c<i.length;++c)s[c]=i.charCodeAt(c);return s}else return l("This environment does not support reading binary tags; either Buffer or atob is required"),u},stringify({comment:u,type:l,value:i},s,c,o){if(!i)return"";const h=i;let m;if(typeof btoa=="function"){let g="";for(let p=0;p<h.length;++p)g+=String.fromCharCode(h[p]);m=btoa(g)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(l??(l=fe.BLOCK_LITERAL),l!==fe.QUOTE_DOUBLE){const g=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),p=Math.ceil(m.length/g),w=new Array(p);for(let v=0,N=0;v<p;++v,N+=g)w[v]=m.substr(N,g);m=w.join(l===fe.BLOCK_LITERAL?`
|
|
102
|
-
`:" ")}return ji({comment:u,type:l,value:m},s,c,o)}};function Np(u,l){if(Ma(u))for(let i=0;i<u.items.length;++i){let s=u.items[i];if(!ke(s)){if(_a(s)){s.items.length>1&&l("Each pair must have its own sequence indicator");const c=s.items[0]||new ft(new fe(null));if(s.commentBefore&&(c.key.commentBefore=c.key.commentBefore?`${s.commentBefore}
|
|
103
|
-
${c.key.commentBefore}`:s.commentBefore),s.comment){const o=c.value??c.key;o.comment=o.comment?`${s.comment}
|
|
104
|
-
${o.comment}`:s.comment}s=c}u.items[i]=ke(s)?s:new ft(s)}}else l("Expected a sequence for this tag");return u}function _p(u,l,i){const{replacer:s}=i,c=new Pn(u);c.tag="tag:yaml.org,2002:pairs";let o=0;if(l&&Symbol.iterator in Object(l))for(let h of l){typeof s=="function"&&(h=s.call(l,String(o++),h));let m,g;if(Array.isArray(h))if(h.length===2)m=h[0],g=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const p=Object.keys(h);if(p.length===1)m=p[0],g=h[m];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else m=h;c.items.push(kf(m,g,i))}return c}const Hf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Np,createNode:_p};class Sa extends Pn{constructor(){super(),this.add=Lt.prototype.add.bind(this),this.delete=Lt.prototype.delete.bind(this),this.get=Lt.prototype.get.bind(this),this.has=Lt.prototype.has.bind(this),this.set=Lt.prototype.set.bind(this),this.tag=Sa.tag}toJSON(l,i){if(!i)return super.toJSON(l);const s=new Map;i!=null&&i.onCreate&&i.onCreate(s);for(const c of this.items){let o,h;if(ke(c)?(o=Kt(c.key,"",i),h=Kt(c.value,o,i)):o=Kt(c,"",i),s.has(o))throw new Error("Ordered maps must not include duplicate keys");s.set(o,h)}return s}static from(l,i,s){const c=_p(l,i,s),o=new this;return o.items=c.items,o}}Sa.tag="tag:yaml.org,2002:omap";const Yf={collection:"seq",identify:u=>u instanceof Map,nodeClass:Sa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(u,l){const i=Np(u,l),s=[];for(const{key:c}of i.items)ze(c)&&(s.includes(c.value)?l(`Ordered maps must not include duplicate keys: ${c.value}`):s.push(c.value));return Object.assign(new Sa,i)},createNode:(u,l,i)=>Sa.from(u,l,i)};function Mp({value:u,source:l},i){return l&&(u?Cp:xp).test.test(l)?l:u?i.options.trueStr:i.options.falseStr}const Cp={identify:u=>u===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new fe(!0),stringify:Mp},xp={identify:u=>u===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new fe(!1),stringify:Mp},Pv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt},eb={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u.replace(/_/g,"")),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Wt(u)}},tb={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(u){const l=new fe(parseFloat(u.replace(/_/g,""))),i=u.indexOf(".");if(i!==-1){const s=u.substring(i+1).replace(/_/g,"");s[s.length-1]==="0"&&(l.minFractionDigits=s.length)}return l},stringify:Wt},ki=u=>typeof u=="bigint"||Number.isInteger(u);function Lu(u,l,i,{intAsBigInt:s}){const c=u[0];if((c==="-"||c==="+")&&(l+=1),u=u.substring(l).replace(/_/g,""),s){switch(i){case 2:u=`0b${u}`;break;case 8:u=`0o${u}`;break;case 16:u=`0x${u}`;break}const h=BigInt(u);return c==="-"?BigInt(-1)*h:h}const o=parseInt(u,i);return c==="-"?-1*o:o}function $f(u,l,i){const{value:s}=u;if(ki(s)){const c=s.toString(l);return s<0?"-"+i+c.substr(1):i+c}return Wt(u)}const nb={identify:ki,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(u,l,i)=>Lu(u,2,2,i),stringify:u=>$f(u,2,"0b")},lb={identify:ki,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(u,l,i)=>Lu(u,1,8,i),stringify:u=>$f(u,8,"0")},ab={identify:ki,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(u,l,i)=>Lu(u,0,10,i),stringify:Wt},ib={identify:ki,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(u,l,i)=>Lu(u,2,16,i),stringify:u=>$f(u,16,"0x")};class Ta extends Lt{constructor(l){super(l),this.tag=Ta.tag}add(l){let i;ke(l)?i=l:l&&typeof l=="object"&&"key"in l&&"value"in l&&l.value===null?i=new ft(l.key,null):i=new ft(l,null),Tl(this.items,i.key)||this.items.push(i)}get(l,i){const s=Tl(this.items,l);return!i&&ke(s)?ze(s.key)?s.key.value:s.key:s}set(l,i){if(typeof i!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof i}`);const s=Tl(this.items,l);s&&!i?this.items.splice(this.items.indexOf(s),1):!s&&i&&this.items.push(new ft(l))}toJSON(l,i){return super.toJSON(l,i,Set)}toString(l,i,s){if(!l)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},l,{allNullValues:!0}),i,s);throw new Error("Set items must all have null values")}static from(l,i,s){const{replacer:c}=s,o=new this(l);if(i&&Symbol.iterator in Object(i))for(let h of i)typeof c=="function"&&(h=c.call(i,h,h)),o.items.push(kf(h,null,s));return o}}Ta.tag="tag:yaml.org,2002:set";const Gf={collection:"map",identify:u=>u instanceof Set,nodeClass:Ta,default:!1,tag:"tag:yaml.org,2002:set",createNode:(u,l,i)=>Ta.from(u,l,i),resolve(u,l){if(_a(u)){if(u.hasAllNullValues(!0))return Object.assign(new Ta,u);l("Set items must all have null values")}else l("Expected a mapping for this tag");return u}};function Kf(u,l){const i=u[0],s=i==="-"||i==="+"?u.substring(1):u,c=h=>l?BigInt(h):Number(h),o=s.replace(/_/g,"").split(":").reduce((h,m)=>h*c(60)+c(m),c(0));return i==="-"?c(-1)*o:o}function zp(u){let{value:l}=u,i=h=>h;if(typeof l=="bigint")i=h=>BigInt(h);else if(isNaN(l)||!isFinite(l))return Wt(u);let s="";l<0&&(s="-",l*=i(-1));const c=i(60),o=[l%c];return l<60?o.unshift(0):(l=(l-o[0])/c,o.unshift(l%c),l>=60&&(l=(l-o[0])/c,o.unshift(l))),s+o.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Dp={identify:u=>typeof u=="bigint"||Number.isInteger(u),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(u,l,{intAsBigInt:i})=>Kf(u,i),stringify:zp},Lp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:u=>Kf(u,!1),stringify:zp},Uu={identify:u=>u instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(u){const l=u.match(Uu.test);if(!l)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,i,s,c,o,h,m]=l.map(Number),g=l[7]?Number((l[7]+"00").substr(1,3)):0;let p=Date.UTC(i,s-1,c,o||0,h||0,m||0,g);const w=l[8];if(w&&w!=="Z"){let v=Kf(w,!1);Math.abs(v)<30&&(v*=60),p-=6e4*v}return new Date(p)},stringify:({value:u})=>(u==null?void 0:u.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},Tg=[Ca,xa,xu,zu,Cp,xp,nb,lb,ab,ib,Pv,eb,tb,qf,An,Yf,Hf,Gf,Dp,Lp,Uu],wg=new Map([["core",Jv],["failsafe",[Ca,xa,xu]],["json",Iv],["yaml11",Tg],["yaml-1.1",Tg]]),Eg={binary:qf,bool:Rf,float:Tp,floatExp:Sp,floatNaN:bp,floatTime:Lp,int:Ap,intHex:Op,intOct:Ep,intTime:Dp,map:Ca,merge:An,null:zu,omap:Yf,pairs:Hf,seq:xa,set:Gf,timestamp:Uu},sb={"tag:yaml.org,2002:binary":qf,"tag:yaml.org,2002:merge":An,"tag:yaml.org,2002:omap":Yf,"tag:yaml.org,2002:pairs":Hf,"tag:yaml.org,2002:set":Gf,"tag:yaml.org,2002:timestamp":Uu};function df(u,l,i){const s=wg.get(l);if(s&&!u)return i&&!s.includes(An)?s.concat(An):s.slice();let c=s;if(!c)if(Array.isArray(u))c=[];else{const o=Array.from(wg.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${l}"; use one of ${o} or define customTags array`)}if(Array.isArray(u))for(const o of u)c=c.concat(o);else typeof u=="function"&&(c=u(c.slice()));return i&&(c=c.concat(An)),c.reduce((o,h)=>{const m=typeof h=="string"?Eg[h]:h;if(!m){const g=JSON.stringify(h),p=Object.keys(Eg).map(w=>JSON.stringify(w)).join(", ");throw new Error(`Unknown custom tag ${g}; use one of ${p}`)}return o.includes(m)||o.push(m),o},[])}const ub=(u,l)=>u.key<l.key?-1:u.key>l.key?1:0;class ju{constructor({compat:l,customTags:i,merge:s,resolveKnownTags:c,schema:o,sortMapEntries:h,toStringDefaults:m}){this.compat=Array.isArray(l)?df(l,"compat"):l?df(null,l):null,this.name=typeof o=="string"&&o||"core",this.knownTags=c?sb:{},this.tags=df(i,this.name,s),this.toStringOptions=m??null,Object.defineProperty(this,In,{value:Ca}),Object.defineProperty(this,nn,{value:xu}),Object.defineProperty(this,Na,{value:xa}),this.sortMapEntries=typeof h=="function"?h:h===!0?ub:null}clone(){const l=Object.create(ju.prototype,Object.getOwnPropertyDescriptors(this));return l.tags=this.tags.slice(),l}}function cb(u,l){var g;const i=[];let s=l.directives===!0;if(l.directives!==!1&&u.directives){const p=u.directives.toString(u);p?(i.push(p),s=!0):u.directives.docStart&&(s=!0)}s&&i.push("---");const c=mp(u,l),{commentString:o}=c.options;if(u.commentBefore){i.length!==1&&i.unshift("");const p=o(u.commentBefore);i.unshift(En(p,""))}let h=!1,m=null;if(u.contents){if(Be(u.contents)){if(u.contents.spaceBefore&&s&&i.push(""),u.contents.commentBefore){const v=o(u.contents.commentBefore);i.push(En(v,""))}c.forceBlockIndent=!!u.comment,m=u.contents.comment}const p=m?void 0:()=>h=!0;let w=wa(u.contents,c,()=>m=null,p);m&&(w+=Sl(w,"",o(m))),(w[0]==="|"||w[0]===">")&&i[i.length-1]==="---"?i[i.length-1]=`--- ${w}`:i.push(w)}else i.push(wa(u.contents,c));if((g=u.directives)!=null&&g.docEnd)if(u.comment){const p=o(u.comment);p.includes(`
|
|
105
|
-
`)?(i.push("..."),i.push(En(p,""))):i.push(`... ${p}`)}else i.push("...");else{let p=u.comment;p&&h&&(p=p.replace(/^\n+/,"")),p&&((!h||m)&&i[i.length-1]!==""&&i.push(""),i.push(En(o(p),"")))}return i.join(`
|
|
106
|
-
`)+`
|
|
107
|
-
`}class za{constructor(l,i,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Vt,{value:Nf});let c=null;typeof i=="function"||Array.isArray(i)?c=i:s===void 0&&i&&(s=i,i=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=o;let{version:h}=o;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new ht({version:h}),this.setSchema(h,s),this.contents=l===void 0?null:this.createNode(l,c,s)}clone(){const l=Object.create(za.prototype,{[Vt]:{value:Nf}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=Be(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){oa(this.contents)&&this.contents.add(l)}addIn(l,i){oa(this.contents)&&this.contents.addIn(l,i)}createAlias(l,i){if(!l.anchor){const s=rp(this);l.anchor=!i||s.has(i)?fp(i||"a",s):i}return new Nu(l.anchor)}createNode(l,i,s){let c;if(typeof i=="function")l=i.call({"":l},"",l),c=i;else if(Array.isArray(i)){const A=U=>typeof U=="number"||U instanceof String||U instanceof Number,M=i.filter(A).map(String);M.length>0&&(i=i.concat(M)),c=i}else s===void 0&&i&&(s=i,i=void 0);const{aliasDuplicateObjects:o,anchorPrefix:h,flow:m,keepUndefined:g,onTagObj:p,tag:w}=s??{},{onAnchor:v,setAnchors:N,sourceObjects:E}=kv(this,h||"a"),x={aliasDuplicateObjects:o??!0,keepUndefined:g??!1,onAnchor:v,onTagObj:p,replacer:c,schema:this.schema,sourceObjects:E},S=zi(l,w,x);return m&&Re(S)&&(S.flow=!0),N(),S}createPair(l,i,s={}){const c=this.createNode(l,null,s),o=this.createNode(i,null,s);return new ft(c,o)}delete(l){return oa(this.contents)?this.contents.delete(l):!1}deleteIn(l){return Ci(l)?this.contents==null?!1:(this.contents=null,!0):oa(this.contents)?this.contents.deleteIn(l):!1}get(l,i){return Re(this.contents)?this.contents.get(l,i):void 0}getIn(l,i){return Ci(l)?!i&&ze(this.contents)?this.contents.value:this.contents:Re(this.contents)?this.contents.getIn(l,i):void 0}has(l){return Re(this.contents)?this.contents.has(l):!1}hasIn(l){return Ci(l)?this.contents!==void 0:Re(this.contents)?this.contents.hasIn(l):!1}set(l,i){this.contents==null?this.contents=vu(this.schema,[l],i):oa(this.contents)&&this.contents.set(l,i)}setIn(l,i){Ci(l)?this.contents=i:this.contents==null?this.contents=vu(this.schema,Array.from(l),i):oa(this.contents)&&this.contents.setIn(l,i)}setSchema(l,i={}){typeof l=="number"&&(l=String(l));let s;switch(l){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ht({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=l:this.directives=new ht({version:l}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const c=JSON.stringify(l);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${c}`)}}if(i.schema instanceof Object)this.schema=i.schema;else if(s)this.schema=new ju(Object.assign(s,i));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:l,jsonArg:i,mapAsMap:s,maxAliasCount:c,onAnchor:o,reviver:h}={}){const m={anchors:new Map,doc:this,keep:!l,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof c=="number"?c:100},g=Kt(this.contents,i??"",m);if(typeof o=="function")for(const{count:p,res:w}of m.anchors.values())o(w,p);return typeof h=="function"?va(h,{"":g},"",g):g}toJSON(l,i){return this.toJS({json:!0,jsonArg:l,mapAsMap:!1,onAnchor:i})}toString(l={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in l&&(!Number.isInteger(l.indent)||Number(l.indent)<=0)){const i=JSON.stringify(l.indent);throw new Error(`"indent" option must be a positive integer, not ${i}`)}return cb(this,l)}}function oa(u){if(Re(u))return!0;throw new Error("Expected a YAML collection as document contents")}class Vf extends Error{constructor(l,i,s,c){super(),this.name=l,this.code=s,this.message=c,this.pos=i}}class wl extends Vf{constructor(l,i,s){super("YAMLParseError",l,i,s)}}class Up extends Vf{constructor(l,i,s){super("YAMLWarning",l,i,s)}}const Su=(u,l)=>i=>{if(i.pos[0]===-1)return;i.linePos=i.pos.map(m=>l.linePos(m));const{line:s,col:c}=i.linePos[0];i.message+=` at line ${s}, column ${c}`;let o=c-1,h=u.substring(l.lineStarts[s-1],l.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&h.length>80){const m=Math.min(o-39,h.length-79);h="…"+h.substring(m),o-=m-1}if(h.length>80&&(h=h.substring(0,79)+"…"),s>1&&/^ *$/.test(h.substring(0,o))){let m=u.substring(l.lineStarts[s-2],l.lineStarts[s-1]);m.length>80&&(m=m.substring(0,79)+`…
|
|
108
|
-
`),h=m+h}if(/[^ ]/.test(h)){let m=1;const g=i.linePos[1];(g==null?void 0:g.line)===s&&g.col>c&&(m=Math.max(1,Math.min(g.col-c,80-o)));const p=" ".repeat(o)+"^".repeat(m);i.message+=`:
|
|
109
|
-
|
|
110
|
-
${h}
|
|
111
|
-
${p}
|
|
112
|
-
`}};function Ea(u,{flow:l,indicator:i,next:s,offset:c,onError:o,parentIndent:h,startOnNewline:m}){let g=!1,p=m,w=m,v="",N="",E=!1,x=!1,S=null,A=null,M=null,U=null,$=null,Z=null,W=null;for(const V of u)switch(x&&(V.type!=="space"&&V.type!=="newline"&&V.type!=="comma"&&o(V.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),x=!1),S&&(p&&V.type!=="comment"&&V.type!=="newline"&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),V.type){case"space":!l&&(i!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&V.source.includes(" ")&&(S=V),w=!0;break;case"comment":{w||o(V,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const L=V.source.substring(1)||" ";v?v+=N+L:v=L,N="",p=!1;break}case"newline":p?v?v+=V.source:(!Z||i!=="seq-item-ind")&&(g=!0):N+=V.source,p=!0,E=!0,(A||M)&&(U=V),w=!0;break;case"anchor":A&&o(V,"MULTIPLE_ANCHORS","A node can have at most one anchor"),V.source.endsWith(":")&&o(V.offset+V.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),A=V,W??(W=V.offset),p=!1,w=!1,x=!0;break;case"tag":{M&&o(V,"MULTIPLE_TAGS","A node can have at most one tag"),M=V,W??(W=V.offset),p=!1,w=!1,x=!0;break}case i:(A||M)&&o(V,"BAD_PROP_ORDER",`Anchors and tags must be after the ${V.source} indicator`),Z&&o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.source} in ${l??"collection"}`),Z=V,p=i==="seq-item-ind"||i==="explicit-key-ind",w=!1;break;case"comma":if(l){$&&o(V,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`),$=V,p=!1,w=!1;break}default:o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.type} token`),p=!1,w=!1}const J=u[u.length-1],G=J?J.offset+J.source.length:c;return x&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=h||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:$,found:Z,spaceBefore:g,comment:v,hasNewline:E,anchor:A,tag:M,newlineAfterProp:U,end:G,start:W??G}}function Di(u){if(!u)return null;switch(u.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(u.source.includes(`
|
|
113
|
-
`))return!0;if(u.end){for(const l of u.end)if(l.type==="newline")return!0}return!1;case"flow-collection":for(const l of u.items){for(const i of l.start)if(i.type==="newline")return!0;if(l.sep){for(const i of l.sep)if(i.type==="newline")return!0}if(Di(l.key)||Di(l.value))return!0}return!1;default:return!0}}function xf(u,l,i){if((l==null?void 0:l.type)==="flow-collection"){const s=l.end[0];s.indent===u&&(s.source==="]"||s.source==="}")&&Di(l)&&i(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function jp(u,l,i){const{uniqueKeys:s}=u.options;if(s===!1)return!1;const c=typeof s=="function"?s:(o,h)=>o===h||ze(o)&&ze(h)&&o.value===h.value;return l.some(o=>c(o.key,i))}const Ag="All mapping items must start at the same column";function rb({composeNode:u,composeEmptyNode:l},i,s,c,o){var w;const h=(o==null?void 0:o.nodeClass)??Lt,m=new h(i.schema);i.atRoot&&(i.atRoot=!1);let g=s.offset,p=null;for(const v of s.items){const{start:N,key:E,sep:x,value:S}=v,A=Ea(N,{indicator:"explicit-key-ind",next:E??(x==null?void 0:x[0]),offset:g,onError:c,parentIndent:s.indent,startOnNewline:!0}),M=!A.found;if(M){if(E&&(E.type==="block-seq"?c(g,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in E&&E.indent!==s.indent&&c(g,"BAD_INDENT",Ag)),!A.anchor&&!A.tag&&!x){p=A.end,A.comment&&(m.comment?m.comment+=`
|
|
114
|
-
`+A.comment:m.comment=A.comment);continue}(A.newlineAfterProp||Di(E))&&c(E??N[N.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((w=A.found)==null?void 0:w.indent)!==s.indent&&c(g,"BAD_INDENT",Ag);i.atKey=!0;const U=A.end,$=E?u(i,E,A,c):l(i,U,N,null,A,c);i.schema.compat&&xf(s.indent,E,c),i.atKey=!1,jp(i,m.items,$)&&c(U,"DUPLICATE_KEY","Map keys must be unique");const Z=Ea(x??[],{indicator:"map-value-ind",next:S,offset:$.range[2],onError:c,parentIndent:s.indent,startOnNewline:!E||E.type==="block-scalar"});if(g=Z.end,Z.found){M&&((S==null?void 0:S.type)==="block-map"&&!Z.hasNewline&&c(g,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),i.options.strict&&A.start<Z.found.offset-1024&&c($.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const W=S?u(i,S,Z,c):l(i,g,x,null,Z,c);i.schema.compat&&xf(s.indent,S,c),g=W.range[2];const J=new ft($,W);i.options.keepSourceTokens&&(J.srcToken=v),m.items.push(J)}else{M&&c($.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Z.comment&&($.comment?$.comment+=`
|
|
115
|
-
`+Z.comment:$.comment=Z.comment);const W=new ft($);i.options.keepSourceTokens&&(W.srcToken=v),m.items.push(W)}}return p&&p<g&&c(p,"IMPOSSIBLE","Map comment with trailing content"),m.range=[s.offset,g,p??g],m}function fb({composeNode:u,composeEmptyNode:l},i,s,c,o){const h=(o==null?void 0:o.nodeClass)??Pn,m=new h(i.schema);i.atRoot&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let g=s.offset,p=null;for(const{start:w,value:v}of s.items){const N=Ea(w,{indicator:"seq-item-ind",next:v,offset:g,onError:c,parentIndent:s.indent,startOnNewline:!0});if(!N.found)if(N.anchor||N.tag||v)(v==null?void 0:v.type)==="block-seq"?c(N.end,"BAD_INDENT","All sequence items must start at the same column"):c(g,"MISSING_CHAR","Sequence item without - indicator");else{p=N.end,N.comment&&(m.comment=N.comment);continue}const E=v?u(i,v,N,c):l(i,N.end,w,null,N,c);i.schema.compat&&xf(s.indent,v,c),g=E.range[2],m.items.push(E)}return m.range=[s.offset,g,p??g],m}function Ri(u,l,i,s){let c="";if(u){let o=!1,h="";for(const m of u){const{source:g,type:p}=m;switch(p){case"space":o=!0;break;case"comment":{i&&!o&&s(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const w=g.substring(1)||" ";c?c+=h+w:c=w,h="";break}case"newline":c&&(h+=g),o=!0;break;default:s(m,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}l+=g.length}}return{comment:c,offset:l}}const mf="Block collections are not allowed within flow collections",gf=u=>u&&(u.type==="block-map"||u.type==="block-seq");function ob({composeNode:u,composeEmptyNode:l},i,s,c,o){var A;const h=s.start.source==="{",m=h?"flow map":"flow sequence",g=(o==null?void 0:o.nodeClass)??(h?Lt:Pn),p=new g(i.schema);p.flow=!0;const w=i.atRoot;w&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let v=s.offset+s.start.source.length;for(let M=0;M<s.items.length;++M){const U=s.items[M],{start:$,key:Z,sep:W,value:J}=U,G=Ea($,{flow:m,indicator:"explicit-key-ind",next:Z??(W==null?void 0:W[0]),offset:v,onError:c,parentIndent:s.indent,startOnNewline:!1});if(!G.found){if(!G.anchor&&!G.tag&&!W&&!J){M===0&&G.comma?c(G.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`):M<s.items.length-1&&c(G.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${m}`),G.comment&&(p.comment?p.comment+=`
|
|
116
|
-
`+G.comment:p.comment=G.comment),v=G.end;continue}!h&&i.options.strict&&Di(Z)&&c(Z,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(M===0)G.comma&&c(G.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`);else if(G.comma||c(G.start,"MISSING_CHAR",`Missing , between ${m} items`),G.comment){let V="";e:for(const L of $)switch(L.type){case"comma":case"space":break;case"comment":V=L.source.substring(1);break e;default:break e}if(V){let L=p.items[p.items.length-1];ke(L)&&(L=L.value??L.key),L.comment?L.comment+=`
|
|
117
|
-
`+V:L.comment=V,G.comment=G.comment.substring(V.length+1)}}if(!h&&!W&&!G.found){const V=J?u(i,J,G,c):l(i,G.end,W,null,G,c);p.items.push(V),v=V.range[2],gf(J)&&c(V.range,"BLOCK_IN_FLOW",mf)}else{i.atKey=!0;const V=G.end,L=Z?u(i,Z,G,c):l(i,V,$,null,G,c);gf(Z)&&c(L.range,"BLOCK_IN_FLOW",mf),i.atKey=!1;const se=Ea(W??[],{flow:m,indicator:"map-value-ind",next:J,offset:L.range[2],onError:c,parentIndent:s.indent,startOnNewline:!1});if(se.found){if(!h&&!G.found&&i.options.strict){if(W)for(const P of W){if(P===se.found)break;if(P.type==="newline"){c(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}G.start<se.found.offset-1024&&c(se.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else J&&("source"in J&&((A=J.source)==null?void 0:A[0])===":"?c(J,"MISSING_CHAR",`Missing space after : in ${m}`):c(se.start,"MISSING_CHAR",`Missing , or : between ${m} items`));const ae=J?u(i,J,se,c):se.found?l(i,se.end,W,null,se,c):null;ae?gf(J)&&c(ae.range,"BLOCK_IN_FLOW",mf):se.comment&&(L.comment?L.comment+=`
|
|
118
|
-
`+se.comment:L.comment=se.comment);const Y=new ft(L,ae);if(i.options.keepSourceTokens&&(Y.srcToken=U),h){const P=p;jp(i,P.items,L)&&c(V,"DUPLICATE_KEY","Map keys must be unique"),P.items.push(Y)}else{const P=new Lt(i.schema);P.flow=!0,P.items.push(Y);const ue=(ae??L).range;P.range=[L.range[0],ue[1],ue[2]],p.items.push(P)}v=ae?ae.range[2]:se.end}}const N=h?"}":"]",[E,...x]=s.end;let S=v;if((E==null?void 0:E.source)===N)S=E.offset+E.source.length;else{const M=m[0].toUpperCase()+m.substring(1),U=w?`${M} must end with a ${N}`:`${M} in block collection must be sufficiently indented and end with a ${N}`;c(v,w?"MISSING_CHAR":"BAD_INDENT",U),E&&E.source.length!==1&&x.unshift(E)}if(x.length>0){const M=Ri(x,S,i.options.strict,c);M.comment&&(p.comment?p.comment+=`
|
|
119
|
-
`+M.comment:p.comment=M.comment),p.range=[s.offset,S,M.offset]}else p.range=[s.offset,S,S];return p}function pf(u,l,i,s,c,o){const h=i.type==="block-map"?rb(u,l,i,s,o):i.type==="block-seq"?fb(u,l,i,s,o):ob(u,l,i,s,o),m=h.constructor;return c==="!"||c===m.tagName?(h.tag=m.tagName,h):(c&&(h.tag=c),h)}function hb(u,l,i,s,c){var N;const o=s.tag,h=o?l.directives.tagName(o.source,E=>c(o,"TAG_RESOLVE_FAILED",E)):null;if(i.type==="block-seq"){const{anchor:E,newlineAfterProp:x}=s,S=E&&o?E.offset>o.offset?E:o:E??o;S&&(!x||x.offset<S.offset)&&c(S,"MISSING_CHAR","Missing newline after block sequence props")}const m=i.type==="block-map"?"map":i.type==="block-seq"?"seq":i.start.source==="{"?"map":"seq";if(!o||!h||h==="!"||h===Lt.tagName&&m==="map"||h===Pn.tagName&&m==="seq")return pf(u,l,i,c,h);let g=l.schema.tags.find(E=>E.tag===h&&E.collection===m);if(!g){const E=l.schema.knownTags[h];if((E==null?void 0:E.collection)===m)l.schema.tags.push(Object.assign({},E,{default:!1})),g=E;else return E?c(o,"BAD_COLLECTION_TYPE",`${E.tag} used for ${m} collection, but expects ${E.collection??"scalar"}`,!0):c(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),pf(u,l,i,c,h)}const p=pf(u,l,i,c,h,g),w=((N=g.resolve)==null?void 0:N.call(g,p,E=>c(o,"TAG_RESOLVE_FAILED",E),l.options))??p,v=Be(w)?w:new fe(w);return v.range=p.range,v.tag=h,g!=null&&g.format&&(v.format=g.format),v}function kp(u,l,i){const s=l.offset,c=db(l,u.options.strict,i);if(!c)return{value:"",type:null,comment:"",range:[s,s,s]};const o=c.mode===">"?fe.BLOCK_FOLDED:fe.BLOCK_LITERAL,h=l.source?mb(l.source):[];let m=h.length;for(let S=h.length-1;S>=0;--S){const A=h[S][1];if(A===""||A==="\r")m=S;else break}if(m===0){const S=c.chomp==="+"&&h.length>0?`
|
|
120
|
-
`.repeat(Math.max(1,h.length-1)):"";let A=s+c.length;return l.source&&(A+=l.source.length),{value:S,type:o,comment:c.comment,range:[s,A,A]}}let g=l.indent+c.indent,p=l.offset+c.length,w=0;for(let S=0;S<m;++S){const[A,M]=h[S];if(M===""||M==="\r")c.indent===0&&A.length>g&&(g=A.length);else{A.length<g&&i(p+A.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),c.indent===0&&(g=A.length),w=S,g===0&&!u.atRoot&&i(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=A.length+M.length+1}for(let S=h.length-1;S>=m;--S)h[S][0].length>g&&(m=S+1);let v="",N="",E=!1;for(let S=0;S<w;++S)v+=h[S][0].slice(g)+`
|
|
121
|
-
`;for(let S=w;S<m;++S){let[A,M]=h[S];p+=A.length+M.length+1;const U=M[M.length-1]==="\r";if(U&&(M=M.slice(0,-1)),M&&A.length<g){const Z=`Block scalar lines must not be less indented than their ${c.indent?"explicit indentation indicator":"first line"}`;i(p-M.length-(U?2:1),"BAD_INDENT",Z),A=""}o===fe.BLOCK_LITERAL?(v+=N+A.slice(g)+M,N=`
|
|
122
|
-
`):A.length>g||M[0]===" "?(N===" "?N=`
|
|
123
|
-
`:!E&&N===`
|
|
124
|
-
`&&(N=`
|
|
125
|
-
|
|
126
|
-
`),v+=N+A.slice(g)+M,N=`
|
|
127
|
-
`,E=!0):M===""?N===`
|
|
128
|
-
`?v+=`
|
|
129
|
-
`:N=`
|
|
130
|
-
`:(v+=N+M,N=" ",E=!1)}switch(c.chomp){case"-":break;case"+":for(let S=m;S<h.length;++S)v+=`
|
|
131
|
-
`+h[S][0].slice(g);v[v.length-1]!==`
|
|
132
|
-
`&&(v+=`
|
|
133
|
-
`);break;default:v+=`
|
|
134
|
-
`}const x=s+c.length+l.source.length;return{value:v,type:o,comment:c.comment,range:[s,x,x]}}function db({offset:u,props:l},i,s){if(l[0].type!=="block-scalar-header")return s(l[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:c}=l[0],o=c[0];let h=0,m="",g=-1;for(let N=1;N<c.length;++N){const E=c[N];if(!m&&(E==="-"||E==="+"))m=E;else{const x=Number(E);!h&&x?h=x:g===-1&&(g=u+N)}}g!==-1&&s(g,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${c}`);let p=!1,w="",v=c.length;for(let N=1;N<l.length;++N){const E=l[N];switch(E.type){case"space":p=!0;case"newline":v+=E.source.length;break;case"comment":i&&!p&&s(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),v+=E.source.length,w=E.source.substring(1);break;case"error":s(E,"UNEXPECTED_TOKEN",E.message),v+=E.source.length;break;default:{const x=`Unexpected token in block scalar header: ${E.type}`;s(E,"UNEXPECTED_TOKEN",x);const S=E.source;S&&typeof S=="string"&&(v+=S.length)}}}return{mode:o,indent:h,chomp:m,comment:w,length:v}}function mb(u){const l=u.split(/\n( *)/),i=l[0],s=i.match(/^( *)/),o=[s!=null&&s[1]?[s[1],i.slice(s[1].length)]:["",i]];for(let h=1;h<l.length;h+=2)o.push([l[h],l[h+1]]);return o}function Rp(u,l,i){const{offset:s,type:c,source:o,end:h}=u;let m,g;const p=(N,E,x)=>i(s+N,E,x);switch(c){case"scalar":m=fe.PLAIN,g=gb(o,p);break;case"single-quoted-scalar":m=fe.QUOTE_SINGLE,g=pb(o,p);break;case"double-quoted-scalar":m=fe.QUOTE_DOUBLE,g=yb(o,p);break;default:return i(u,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${c}`),{value:"",type:null,comment:"",range:[s,s+o.length,s+o.length]}}const w=s+o.length,v=Ri(h,w,l,i);return{value:g,type:m,comment:v.comment,range:[s,w,v.offset]}}function gb(u,l){let i="";switch(u[0]){case" ":i="a tab character";break;case",":i="flow indicator character ,";break;case"%":i="directive indicator character %";break;case"|":case">":{i=`block scalar indicator ${u[0]}`;break}case"@":case"`":{i=`reserved character ${u[0]}`;break}}return i&&l(0,"BAD_SCALAR_START",`Plain value cannot start with ${i}`),Bp(u)}function pb(u,l){return(u[u.length-1]!=="'"||u.length===1)&&l(u.length,"MISSING_CHAR","Missing closing 'quote"),Bp(u.slice(1,-1)).replace(/''/g,"'")}function Bp(u){let l,i;try{l=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
135
|
-
`,"sy"),i=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
136
|
-
`,"sy")}catch{l=/(.*?)[ \t]*\r?\n/sy,i=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=l.exec(u);if(!s)return u;let c=s[1],o=" ",h=l.lastIndex;for(i.lastIndex=h;s=i.exec(u);)s[1]===""?o===`
|
|
137
|
-
`?c+=o:o=`
|
|
138
|
-
`:(c+=o+s[1],o=" "),h=i.lastIndex;const m=/[ \t]*(.*)/sy;return m.lastIndex=h,s=m.exec(u),c+o+((s==null?void 0:s[1])??"")}function yb(u,l){let i="";for(let s=1;s<u.length-1;++s){const c=u[s];if(!(c==="\r"&&u[s+1]===`
|
|
139
|
-
`))if(c===`
|
|
140
|
-
`){const{fold:o,offset:h}=vb(u,s);i+=o,s=h}else if(c==="\\"){let o=u[++s];const h=bb[o];if(h)i+=h;else if(o===`
|
|
141
|
-
`)for(o=u[s+1];o===" "||o===" ";)o=u[++s+1];else if(o==="\r"&&u[s+1]===`
|
|
142
|
-
`)for(o=u[++s+1];o===" "||o===" ";)o=u[++s+1];else if(o==="x"||o==="u"||o==="U"){const m={x:2,u:4,U:8}[o];i+=Sb(u,s+1,m,l),s+=m}else{const m=u.substr(s-1,2);l(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),i+=m}}else if(c===" "||c===" "){const o=s;let h=u[s+1];for(;h===" "||h===" ";)h=u[++s+1];h!==`
|
|
143
|
-
`&&!(h==="\r"&&u[s+2]===`
|
|
144
|
-
`)&&(i+=s>o?u.slice(o,s+1):c)}else i+=c}return(u[u.length-1]!=='"'||u.length===1)&&l(u.length,"MISSING_CHAR",'Missing closing "quote'),i}function vb(u,l){let i="",s=u[l+1];for(;(s===" "||s===" "||s===`
|
|
145
|
-
`||s==="\r")&&!(s==="\r"&&u[l+2]!==`
|
|
146
|
-
`);)s===`
|
|
147
|
-
`&&(i+=`
|
|
148
|
-
`),l+=1,s=u[l+1];return i||(i=" "),{fold:i,offset:l}}const bb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
149
|
-
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Sb(u,l,i,s){const c=u.substr(l,i),h=c.length===i&&/^[0-9a-fA-F]+$/.test(c)?parseInt(c,16):NaN;if(isNaN(h)){const m=u.substr(l-2,i+2);return s(l-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),m}return String.fromCodePoint(h)}function qp(u,l,i,s){const{value:c,type:o,comment:h,range:m}=l.type==="block-scalar"?kp(u,l,s):Rp(l,u.options.strict,s),g=i?u.directives.tagName(i.source,v=>s(i,"TAG_RESOLVE_FAILED",v)):null;let p;u.options.stringKeys&&u.atKey?p=u.schema[nn]:g?p=Tb(u.schema,c,g,i,s):l.type==="scalar"?p=wb(u,c,l,s):p=u.schema[nn];let w;try{const v=p.resolve(c,N=>s(i??l,"TAG_RESOLVE_FAILED",N),u.options);w=ze(v)?v:new fe(v)}catch(v){const N=v instanceof Error?v.message:String(v);s(i??l,"TAG_RESOLVE_FAILED",N),w=new fe(c)}return w.range=m,w.source=c,o&&(w.type=o),g&&(w.tag=g),p.format&&(w.format=p.format),h&&(w.comment=h),w}function Tb(u,l,i,s,c){var m;if(i==="!")return u[nn];const o=[];for(const g of u.tags)if(!g.collection&&g.tag===i)if(g.default&&g.test)o.push(g);else return g;for(const g of o)if((m=g.test)!=null&&m.test(l))return g;const h=u.knownTags[i];return h&&!h.collection?(u.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(c(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,i!=="tag:yaml.org,2002:str"),u[nn])}function wb({atKey:u,directives:l,schema:i},s,c,o){const h=i.tags.find(m=>{var g;return(m.default===!0||u&&m.default==="key")&&((g=m.test)==null?void 0:g.test(s))})||i[nn];if(i.compat){const m=i.compat.find(g=>{var p;return g.default&&((p=g.test)==null?void 0:p.test(s))})??i[nn];if(h.tag!==m.tag){const g=l.tagString(h.tag),p=l.tagString(m.tag),w=`Value may be parsed as either ${g} or ${p}`;o(c,"TAG_RESOLVE_FAILED",w,!0)}}return h}function Eb(u,l,i){if(l){i??(i=l.length);for(let s=i-1;s>=0;--s){let c=l[s];switch(c.type){case"space":case"comment":case"newline":u-=c.source.length;continue}for(c=l[++s];(c==null?void 0:c.type)==="space";)u+=c.source.length,c=l[++s];break}}return u}const Ab={composeNode:Hp,composeEmptyNode:Qf};function Hp(u,l,i,s){const c=u.atKey,{spaceBefore:o,comment:h,anchor:m,tag:g}=i;let p,w=!0;switch(l.type){case"alias":p=Ob(u,l,s),(m||g)&&s(l,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=qp(u,l,g,s),m&&(p.anchor=m.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{p=hb(Ab,u,l,i,s),m&&(p.anchor=m.source.substring(1))}catch(v){const N=v instanceof Error?v.message:String(v);s(l,"RESOURCE_EXHAUSTION",N)}break;default:{const v=l.type==="error"?l.message:`Unsupported token (type: ${l.type})`;s(l,"UNEXPECTED_TOKEN",v),w=!1}}return p??(p=Qf(u,l.offset,void 0,null,i,s)),m&&p.anchor===""&&s(m,"BAD_ALIAS","Anchor cannot be an empty string"),c&&u.options.stringKeys&&(!ze(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&s(g??l,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(p.spaceBefore=!0),h&&(l.type==="scalar"&&l.source===""?p.comment=h:p.commentBefore=h),u.options.keepSourceTokens&&w&&(p.srcToken=l),p}function Qf(u,l,i,s,{spaceBefore:c,comment:o,anchor:h,tag:m,end:g},p){const w={type:"scalar",offset:Eb(l,i,s),indent:-1,source:""},v=qp(u,w,m,p);return h&&(v.anchor=h.source.substring(1),v.anchor===""&&p(h,"BAD_ALIAS","Anchor cannot be an empty string")),c&&(v.spaceBefore=!0),o&&(v.comment=o,v.range[2]=g),v}function Ob({options:u},{offset:l,source:i,end:s},c){const o=new Nu(i.substring(1));o.source===""&&c(l,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&c(l+i.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=l+i.length,m=Ri(s,h,u.strict,c);return o.range=[l,h,m.offset],m.comment&&(o.comment=m.comment),o}function Nb(u,l,{offset:i,start:s,value:c,end:o},h){const m=Object.assign({_directives:l},u),g=new za(void 0,m),p={atKey:!1,atRoot:!0,directives:g.directives,options:g.options,schema:g.schema},w=Ea(s,{indicator:"doc-start",next:c??(o==null?void 0:o[0]),offset:i,onError:h,parentIndent:0,startOnNewline:!0});w.found&&(g.directives.docStart=!0,c&&(c.type==="block-map"||c.type==="block-seq")&&!w.hasNewline&&h(w.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),g.contents=c?Hp(p,c,w,h):Qf(p,w.end,s,null,w,h);const v=g.contents.range[2],N=Ri(o,v,!1,h);return N.comment&&(g.comment=N.comment),g.range=[i,v,N.offset],g}function Mi(u){if(typeof u=="number")return[u,u+1];if(Array.isArray(u))return u.length===2?u:[u[0],u[1]];const{offset:l,source:i}=u;return[l,l+(typeof i=="string"?i.length:1)]}function Og(u){var c;let l="",i=!1,s=!1;for(let o=0;o<u.length;++o){const h=u[o];switch(h[0]){case"#":l+=(l===""?"":s?`
|
|
150
|
-
|
|
151
|
-
`:`
|
|
152
|
-
`)+(h.substring(1)||" "),i=!0,s=!1;break;case"%":((c=u[o+1])==null?void 0:c[0])!=="#"&&(o+=1),i=!1;break;default:i||(s=!0),i=!1}}return{comment:l,afterEmptyLine:s}}class Xf{constructor(l={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(i,s,c,o)=>{const h=Mi(i);o?this.warnings.push(new Up(h,s,c)):this.errors.push(new wl(h,s,c))},this.directives=new ht({version:l.version||"1.2"}),this.options=l}decorate(l,i){const{comment:s,afterEmptyLine:c}=Og(this.prelude);if(s){const o=l.contents;if(i)l.comment=l.comment?`${l.comment}
|
|
153
|
-
${s}`:s;else if(c||l.directives.docStart||!o)l.commentBefore=s;else if(Re(o)&&!o.flow&&o.items.length>0){let h=o.items[0];ke(h)&&(h=h.key);const m=h.commentBefore;h.commentBefore=m?`${s}
|
|
154
|
-
${m}`:s}else{const h=o.commentBefore;o.commentBefore=h?`${s}
|
|
155
|
-
${h}`:s}}i?(Array.prototype.push.apply(l.errors,this.errors),Array.prototype.push.apply(l.warnings,this.warnings)):(l.errors=this.errors,l.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Og(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(l,i=!1,s=-1){for(const c of l)yield*this.next(c);yield*this.end(i,s)}*next(l){switch(l.type){case"directive":this.directives.add(l.source,(i,s,c)=>{const o=Mi(l);o[0]+=i,this.onError(o,"BAD_DIRECTIVE",s,c)}),this.prelude.push(l.source),this.atDirectives=!0;break;case"document":{const i=Nb(this.options,this.directives,l,this.onError);this.atDirectives&&!i.directives.docStart&&this.onError(l,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(i,!1),this.doc&&(yield this.doc),this.doc=i,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(l.source);break;case"error":{const i=l.source?`${l.message}: ${JSON.stringify(l.source)}`:l.message,s=new wl(Mi(l),"UNEXPECTED_TOKEN",i);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new wl(Mi(l),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const i=Ri(l.end,l.offset+l.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),i.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
|
|
156
|
-
${i.comment}`:i.comment}this.doc.range[2]=i.offset;break}default:this.errors.push(new wl(Mi(l),"UNEXPECTED_TOKEN",`Unsupported token ${l.type}`))}}*end(l=!1,i=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(l){const s=Object.assign({_directives:this.directives},this.options),c=new za(void 0,s);this.atDirectives&&this.onError(i,"MISSING_CHAR","Missing directives-end indicator line"),c.range=[0,i,i],this.decorate(c,!1),yield c}}}function _b(u,l=!0,i){if(u){const s=(c,o,h)=>{const m=typeof c=="number"?c:Array.isArray(c)?c[0]:c.offset;if(i)i(m,o,h);else throw new wl([m,m+1],o,h)};switch(u.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Rp(u,l,s);case"block-scalar":return kp({options:{strict:l}},u,s)}}return null}function Mb(u,l){const{implicitKey:i=!1,indent:s,inFlow:c=!1,offset:o=-1,type:h="PLAIN"}=l,m=ji({type:h,value:u},{implicitKey:i,indent:s>0?" ".repeat(s):"",inFlow:c,options:{blockQuote:!0,lineWidth:-1}}),g=l.end??[{type:"newline",offset:-1,indent:s,source:`
|
|
157
|
-
`}];switch(m[0]){case"|":case">":{const p=m.indexOf(`
|
|
158
|
-
`),w=m.substring(0,p),v=m.substring(p+1)+`
|
|
159
|
-
`,N=[{type:"block-scalar-header",offset:o,indent:s,source:w}];return Yp(N,g)||N.push({type:"newline",offset:-1,indent:s,source:`
|
|
160
|
-
`}),{type:"block-scalar",offset:o,indent:s,props:N,source:v}}case'"':return{type:"double-quoted-scalar",offset:o,indent:s,source:m,end:g};case"'":return{type:"single-quoted-scalar",offset:o,indent:s,source:m,end:g};default:return{type:"scalar",offset:o,indent:s,source:m,end:g}}}function Cb(u,l,i={}){let{afterKey:s=!1,implicitKey:c=!1,inFlow:o=!1,type:h}=i,m="indent"in u?u.indent:null;if(s&&typeof m=="number"&&(m+=2),!h)switch(u.type){case"single-quoted-scalar":h="QUOTE_SINGLE";break;case"double-quoted-scalar":h="QUOTE_DOUBLE";break;case"block-scalar":{const p=u.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:h="PLAIN"}const g=ji({type:h,value:l},{implicitKey:c||m===null,indent:m!==null&&m>0?" ".repeat(m):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(g[0]){case"|":case">":xb(u,g);break;case'"':yf(u,g,"double-quoted-scalar");break;case"'":yf(u,g,"single-quoted-scalar");break;default:yf(u,g,"scalar")}}function xb(u,l){const i=l.indexOf(`
|
|
161
|
-
`),s=l.substring(0,i),c=l.substring(i+1)+`
|
|
162
|
-
`;if(u.type==="block-scalar"){const o=u.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=s,u.source=c}else{const{offset:o}=u,h="indent"in u?u.indent:-1,m=[{type:"block-scalar-header",offset:o,indent:h,source:s}];Yp(m,"end"in u?u.end:void 0)||m.push({type:"newline",offset:-1,indent:h,source:`
|
|
163
|
-
`});for(const g of Object.keys(u))g!=="type"&&g!=="offset"&&delete u[g];Object.assign(u,{type:"block-scalar",indent:h,props:m,source:c})}}function Yp(u,l){if(l)for(const i of l)switch(i.type){case"space":case"comment":u.push(i);break;case"newline":return u.push(i),!0}return!1}function yf(u,l,i){switch(u.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":u.type=i,u.source=l;break;case"block-scalar":{const s=u.props.slice(1);let c=l.length;u.props[0].type==="block-scalar-header"&&(c-=u.props[0].source.length);for(const o of s)o.offset+=c;delete u.props,Object.assign(u,{type:i,source:l,end:s});break}case"block-map":case"block-seq":{const c={type:"newline",offset:u.offset+l.length,indent:u.indent,source:`
|
|
164
|
-
`};delete u.items,Object.assign(u,{type:i,source:l,end:[c]});break}default:{const s="indent"in u?u.indent:-1,c="end"in u&&Array.isArray(u.end)?u.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(const o of Object.keys(u))o!=="type"&&o!=="offset"&&delete u[o];Object.assign(u,{type:i,indent:s,source:l,end:c})}}}const zb=u=>"type"in u?Tu(u):pu(u);function Tu(u){switch(u.type){case"block-scalar":{let l="";for(const i of u.props)l+=Tu(i);return l+u.source}case"block-map":case"block-seq":{let l="";for(const i of u.items)l+=pu(i);return l}case"flow-collection":{let l=u.start.source;for(const i of u.items)l+=pu(i);for(const i of u.end)l+=i.source;return l}case"document":{let l=pu(u);if(u.end)for(const i of u.end)l+=i.source;return l}default:{let l=u.source;if("end"in u&&u.end)for(const i of u.end)l+=i.source;return l}}}function pu({start:u,key:l,sep:i,value:s}){let c="";for(const o of u)c+=o.source;if(l&&(c+=Tu(l)),i)for(const o of i)c+=o.source;return s&&(c+=Tu(s)),c}const zf=Symbol("break visit"),Db=Symbol("skip children"),$p=Symbol("remove item");function Al(u,l){"type"in u&&u.type==="document"&&(u={start:u.start,value:u.value}),Gp(Object.freeze([]),u,l)}Al.BREAK=zf;Al.SKIP=Db;Al.REMOVE=$p;Al.itemAtPath=(u,l)=>{let i=u;for(const[s,c]of l){const o=i==null?void 0:i[s];if(o&&"items"in o)i=o.items[c];else return}return i};Al.parentCollection=(u,l)=>{const i=Al.itemAtPath(u,l.slice(0,-1)),s=l[l.length-1][0],c=i==null?void 0:i[s];if(c&&"items"in c)return c;throw new Error("Parent collection not found")};function Gp(u,l,i){let s=i(l,u);if(typeof s=="symbol")return s;for(const c of["key","value"]){const o=l[c];if(o&&"items"in o){for(let h=0;h<o.items.length;++h){const m=Gp(Object.freeze(u.concat([[c,h]])),o.items[h],i);if(typeof m=="number")h=m-1;else{if(m===zf)return zf;m===$p&&(o.items.splice(h,1),h-=1)}}typeof s=="function"&&c==="key"&&(s=s(l,u))}}return typeof s=="function"?s(l,u):s}const ku="\uFEFF",Ru="",Bu="",Li="",Lb=u=>!!u&&"items"in u,Ub=u=>!!u&&(u.type==="scalar"||u.type==="single-quoted-scalar"||u.type==="double-quoted-scalar"||u.type==="block-scalar");function jb(u){switch(u){case ku:return"<BOM>";case Ru:return"<DOC>";case Bu:return"<FLOW_END>";case Li:return"<SCALAR>";default:return JSON.stringify(u)}}function Kp(u){switch(u){case ku:return"byte-order-mark";case Ru:return"doc-mode";case Bu:return"flow-error-end";case Li:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
165
|
-
`:case`\r
|
|
166
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(u[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const kb=Object.freeze(Object.defineProperty({__proto__:null,BOM:ku,DOCUMENT:Ru,FLOW_END:Bu,SCALAR:Li,createScalarToken:Mb,isCollection:Lb,isScalar:Ub,prettyToken:jb,resolveAsScalar:_b,setScalarValue:Cb,stringify:zb,tokenType:Kp,visit:Al},Symbol.toStringTag,{value:"Module"}));function Jt(u){switch(u){case void 0:case" ":case`
|
|
167
|
-
`:case"\r":case" ":return!0;default:return!1}}const Ng=new Set("0123456789ABCDEFabcdef"),Rb=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),iu=new Set(",[]{}"),Bb=new Set(` ,[]{}
|
|
168
|
-
\r `),vf=u=>!u||Bb.has(u);class Vp{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(l,i=!1){if(l){if(typeof l!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+l:l,this.lineEndPos=null}this.atEnd=!i;let s=this.next??"stream";for(;s&&(i||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let l=this.pos,i=this.buffer[l];for(;i===" "||i===" ";)i=this.buffer[++l];return!i||i==="#"||i===`
|
|
169
|
-
`?!0:i==="\r"?this.buffer[l+1]===`
|
|
170
|
-
`:!1}charAt(l){return this.buffer[this.pos+l]}continueScalar(l){let i=this.buffer[l];if(this.indentNext>0){let s=0;for(;i===" ";)i=this.buffer[++s+l];if(i==="\r"){const c=this.buffer[s+l+1];if(c===`
|
|
171
|
-
`||!c&&!this.atEnd)return l+s+1}return i===`
|
|
172
|
-
`||s>=this.indentNext||!i&&!this.atEnd?l+s:-1}if(i==="-"||i==="."){const s=this.buffer.substr(l,3);if((s==="---"||s==="...")&&Jt(this.buffer[l+3]))return-1}return l}getLine(){let l=this.lineEndPos;return(typeof l!="number"||l!==-1&&l<this.pos)&&(l=this.buffer.indexOf(`
|
|
173
|
-
`,this.pos),this.lineEndPos=l),l===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[l-1]==="\r"&&(l-=1),this.buffer.substring(this.pos,l))}hasChars(l){return this.pos+l<=this.buffer.length}setNext(l){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=l,null}peek(l){return this.buffer.substr(this.pos,l)}*parseNext(l){switch(l){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let l=this.getLine();if(l===null)return this.setNext("stream");if(l[0]===ku&&(yield*this.pushCount(1),l=l.substring(1)),l[0]==="%"){let i=l.length,s=l.indexOf("#");for(;s!==-1;){const o=l[s-1];if(o===" "||o===" "){i=s-1;break}else s=l.indexOf("#",s+1)}for(;;){const o=l[i-1];if(o===" "||o===" ")i-=1;else break}const c=(yield*this.pushCount(i))+(yield*this.pushSpaces(!0));return yield*this.pushCount(l.length-c),this.pushNewline(),"stream"}if(this.atLineEnd()){const i=yield*this.pushSpaces(!0);return yield*this.pushCount(l.length-i),yield*this.pushNewline(),"stream"}return yield Ru,yield*this.parseLineStart()}*parseLineStart(){const l=this.charAt(0);if(!l&&!this.atEnd)return this.setNext("line-start");if(l==="-"||l==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const i=this.peek(3);if((i==="---"||i==="...")&&Jt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,i==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Jt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[l,i]=this.peek(2);if(!i&&!this.atEnd)return this.setNext("block-start");if((l==="-"||l==="?"||l===":")&&Jt(i)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const l=this.getLine();if(l===null)return this.setNext("doc");let i=yield*this.pushIndicators();switch(l[i]){case"#":yield*this.pushCount(l.length-i);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(vf),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return i+=yield*this.parseBlockScalarHeader(),i+=yield*this.pushSpaces(!0),yield*this.pushCount(l.length-i),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let l,i,s=-1;do l=yield*this.pushNewline(),l>0?(i=yield*this.pushSpaces(!1),this.indentValue=s=i):i=0,i+=yield*this.pushSpaces(!0);while(l+i>0);const c=this.getLine();if(c===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&c[0]!=="#"||s===0&&(c.startsWith("---")||c.startsWith("..."))&&Jt(c[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(c[0]==="]"||c[0]==="}")))return this.flowLevel=0,yield Bu,yield*this.parseLineStart();let o=0;for(;c[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),c[o]){case void 0:return"flow";case"#":return yield*this.pushCount(c.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(vf),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||Jt(h)||h===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const l=this.charAt(0);let i=this.buffer.indexOf(l,this.pos+1);if(l==="'")for(;i!==-1&&this.buffer[i+1]==="'";)i=this.buffer.indexOf("'",i+2);else for(;i!==-1;){let o=0;for(;this.buffer[i-1-o]==="\\";)o+=1;if(o%2===0)break;i=this.buffer.indexOf('"',i+1)}const s=this.buffer.substring(0,i);let c=s.indexOf(`
|
|
174
|
-
`,this.pos);if(c!==-1){for(;c!==-1;){const o=this.continueScalar(c+1);if(o===-1)break;c=s.indexOf(`
|
|
175
|
-
`,o)}c!==-1&&(i=c-(s[c-1]==="\r"?2:1))}if(i===-1){if(!this.atEnd)return this.setNext("quoted-scalar");i=this.buffer.length}return yield*this.pushToIndex(i+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let l=this.pos;for(;;){const i=this.buffer[++l];if(i==="+")this.blockScalarKeep=!0;else if(i>"0"&&i<="9")this.blockScalarIndent=Number(i)-1;else if(i!=="-")break}return yield*this.pushUntil(i=>Jt(i)||i==="#")}*parseBlockScalar(){let l=this.pos-1,i=0,s;e:for(let o=this.pos;s=this.buffer[o];++o)switch(s){case" ":i+=1;break;case`
|
|
176
|
-
`:l=o,i=0;break;case"\r":{const h=this.buffer[o+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===`
|
|
177
|
-
`)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(i>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=i:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const o=this.continueScalar(l+1);if(o===-1)break;l=this.buffer.indexOf(`
|
|
178
|
-
`,o)}while(l!==-1);if(l===-1){if(!this.atEnd)return this.setNext("block-scalar");l=this.buffer.length}}let c=l+1;for(s=this.buffer[c];s===" ";)s=this.buffer[++c];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
|
|
179
|
-
`;)s=this.buffer[++c];l=c-1}else if(!this.blockScalarKeep)do{let o=l-1,h=this.buffer[o];h==="\r"&&(h=this.buffer[--o]);const m=o;for(;h===" ";)h=this.buffer[--o];if(h===`
|
|
180
|
-
`&&o>=this.pos&&o+1+i>m)l=o;else break}while(!0);return yield Li,yield*this.pushToIndex(l+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const l=this.flowLevel>0;let i=this.pos-1,s=this.pos-1,c;for(;c=this.buffer[++s];)if(c===":"){const o=this.buffer[s+1];if(Jt(o)||l&&iu.has(o))break;i=s}else if(Jt(c)){let o=this.buffer[s+1];if(c==="\r"&&(o===`
|
|
181
|
-
`?(s+=1,c=`
|
|
182
|
-
`,o=this.buffer[s+1]):i=s),o==="#"||l&&iu.has(o))break;if(c===`
|
|
183
|
-
`){const h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(l&&iu.has(c))break;i=s}return!c&&!this.atEnd?this.setNext("plain-scalar"):(yield Li,yield*this.pushToIndex(i+1,!0),l?"flow":"doc")}*pushCount(l){return l>0?(yield this.buffer.substr(this.pos,l),this.pos+=l,l):0}*pushToIndex(l,i){const s=this.buffer.slice(this.pos,l);return s?(yield s,this.pos+=s.length,s.length):(i&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(vf))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const l=this.flowLevel>0,i=this.charAt(1);if(Jt(i)||l&&iu.has(i))return l?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let l=this.pos+2,i=this.buffer[l];for(;!Jt(i)&&i!==">";)i=this.buffer[++l];return yield*this.pushToIndex(i===">"?l+1:l,!1)}else{let l=this.pos+1,i=this.buffer[l];for(;i;)if(Rb.has(i))i=this.buffer[++l];else if(i==="%"&&Ng.has(this.buffer[l+1])&&Ng.has(this.buffer[l+2]))i=this.buffer[l+=3];else break;return yield*this.pushToIndex(l,!1)}}*pushNewline(){const l=this.buffer[this.pos];return l===`
|
|
184
|
-
`?yield*this.pushCount(1):l==="\r"&&this.charAt(1)===`
|
|
185
|
-
`?yield*this.pushCount(2):0}*pushSpaces(l){let i=this.pos-1,s;do s=this.buffer[++i];while(s===" "||l&&s===" ");const c=i-this.pos;return c>0&&(yield this.buffer.substr(this.pos,c),this.pos=i),c}*pushUntil(l){let i=this.pos,s=this.buffer[i];for(;!l(s);)s=this.buffer[++i];return yield*this.pushToIndex(i,!1)}}class Qp{constructor(){this.lineStarts=[],this.addNewLine=l=>this.lineStarts.push(l),this.linePos=l=>{let i=0,s=this.lineStarts.length;for(;i<s;){const o=i+s>>1;this.lineStarts[o]<l?i=o+1:s=o}if(this.lineStarts[i]===l)return{line:i+1,col:1};if(i===0)return{line:0,col:l};const c=this.lineStarts[i-1];return{line:i,col:l-c+1}}}}function Wn(u,l){for(let i=0;i<u.length;++i)if(u[i].type===l)return!0;return!1}function _g(u){for(let l=0;l<u.length;++l)switch(u[l].type){case"space":case"comment":case"newline":break;default:return l}return-1}function Xp(u){switch(u==null?void 0:u.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function su(u){switch(u.type){case"document":return u.start;case"block-map":{const l=u.items[u.items.length-1];return l.sep??l.start}case"block-seq":return u.items[u.items.length-1].start;default:return[]}}function ha(u){var i;if(u.length===0)return[];let l=u.length;e:for(;--l>=0;)switch(u[l].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((i=u[++l])==null?void 0:i.type)==="space";);return u.splice(l,u.length)}function Mg(u){if(u.start.type==="flow-seq-start")for(const l of u.items)l.sep&&!l.value&&!Wn(l.start,"explicit-key-ind")&&!Wn(l.sep,"map-value-ind")&&(l.key&&(l.value=l.key),delete l.key,Xp(l.value)?l.value.end?Array.prototype.push.apply(l.value.end,l.sep):l.value.end=l.sep:Array.prototype.push.apply(l.start,l.sep),delete l.sep)}class Zf{constructor(l){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Vp,this.onNewLine=l}*parse(l,i=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(l,i))yield*this.next(s);i||(yield*this.end())}*next(l){if(this.source=l,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=l.length;return}const i=Kp(l);if(i)if(i==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=i,yield*this.step(),i){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+l.length);break;case"space":this.atNewLine&&l[0]===" "&&(this.indent+=l.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=l.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=l.length}else{const s=`Not a YAML token: ${l}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:l}),this.offset+=l.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const l=this.peek(1);if(this.type==="doc-end"&&(l==null?void 0:l.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!l)return yield*this.stream();switch(l.type){case"document":return yield*this.document(l);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(l);case"block-scalar":return yield*this.blockScalar(l);case"block-map":return yield*this.blockMap(l);case"block-seq":return yield*this.blockSequence(l);case"flow-collection":return yield*this.flowCollection(l);case"doc-end":return yield*this.documentEnd(l)}yield*this.pop()}peek(l){return this.stack[this.stack.length-l]}*pop(l){const i=l??this.stack.pop();if(!i)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield i;else{const s=this.peek(1);switch(i.type==="block-scalar"?i.indent="indent"in s?s.indent:0:i.type==="flow-collection"&&s.type==="document"&&(i.indent=0),i.type==="flow-collection"&&Mg(i),s.type){case"document":s.value=i;break;case"block-scalar":s.props.push(i);break;case"block-map":{const c=s.items[s.items.length-1];if(c.value){s.items.push({start:[],key:i,sep:[]}),this.onKeyLine=!0;return}else if(c.sep)c.value=i;else{Object.assign(c,{key:i,sep:[]}),this.onKeyLine=!c.explicitKey;return}break}case"block-seq":{const c=s.items[s.items.length-1];c.value?s.items.push({start:[],value:i}):c.value=i;break}case"flow-collection":{const c=s.items[s.items.length-1];!c||c.value?s.items.push({start:[],key:i,sep:[]}):c.sep?c.value=i:Object.assign(c,{key:i,sep:[]});return}default:yield*this.pop(),yield*this.pop(i)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(i.type==="block-map"||i.type==="block-seq")){const c=i.items[i.items.length-1];c&&!c.sep&&!c.value&&c.start.length>0&&_g(c.start)===-1&&(i.indent===0||c.start.every(o=>o.type!=="comment"||o.indent<i.indent))&&(s.type==="document"?s.end=c.start:s.items.push({start:c.start}),i.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const l={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&l.start.push(this.sourceToken),this.stack.push(l);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(l){if(l.value)return yield*this.lineEnd(l);switch(this.type){case"doc-start":{_g(l.start)!==-1?(yield*this.pop(),yield*this.step()):l.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":l.start.push(this.sourceToken);return}const i=this.startBlockValue(l);i?this.stack.push(i):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(l){if(this.type==="map-value-ind"){const i=su(this.peek(2)),s=ha(i);let c;l.end?(c=l.end,c.push(this.sourceToken),delete l.end):c=[this.sourceToken];const o={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:s,key:l,sep:c}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(l)}*blockScalar(l){switch(this.type){case"space":case"comment":case"newline":l.props.push(this.sourceToken);return;case"scalar":if(l.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let i=this.source.indexOf(`
|
|
186
|
-
`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
|
|
187
|
-
`,i)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(l){var s;const i=l.items[l.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,i.value){const c="end"in i.value?i.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)l.items.push({start:[this.sourceToken]});else if(i.sep)i.sep.push(this.sourceToken);else{if(this.atIndentedComment(i.start,l.indent)){const c=l.items[l.items.length-2],o=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),l.items.pop();return}}i.start.push(this.sourceToken)}return}if(this.indent>=l.indent){const c=!this.onKeyLine&&this.indent===l.indent,o=c&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(o&&i.sep&&!i.value){const m=[];for(let g=0;g<i.sep.length;++g){const p=i.sep[g];switch(p.type){case"newline":m.push(g);break;case"space":break;case"comment":p.indent>l.indent&&(m.length=0);break;default:m.length=0}}m.length>=2&&(h=i.sep.splice(m[1]))}switch(this.type){case"anchor":case"tag":o||i.value?(h.push(this.sourceToken),l.items.push({start:h}),this.onKeyLine=!0):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"explicit-key-ind":!i.sep&&!i.explicitKey?(i.start.push(this.sourceToken),i.explicitKey=!0):o||i.value?(h.push(this.sourceToken),l.items.push({start:h,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(i.explicitKey)if(i.sep)if(i.value)l.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Wn(i.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]});else if(Xp(i.key)&&!Wn(i.sep,"newline")){const m=ha(i.start),g=i.key,p=i.sep;p.push(this.sourceToken),delete i.key,delete i.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:g,sep:p}]})}else h.length>0?i.sep=i.sep.concat(h,this.sourceToken):i.sep.push(this.sourceToken);else if(Wn(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{const m=ha(i.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:null,sep:[this.sourceToken]}]})}else i.sep?i.value||o?l.items.push({start:h,key:null,sep:[this.sourceToken]}):Wn(i.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const m=this.flowScalar(this.type);o||i.value?(l.items.push({start:h,key:m,sep:[]}),this.onKeyLine=!0):i.sep?this.stack.push(m):(Object.assign(i,{key:m,sep:[]}),this.onKeyLine=!0);return}default:{const m=this.startBlockValue(l);if(m){if(m.type==="block-seq"){if(!i.explicitKey&&i.sep&&!Wn(i.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else c&&l.items.push({start:h});this.stack.push(m);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(l){var s;const i=l.items[l.items.length-1];switch(this.type){case"newline":if(i.value){const c="end"in i.value?i.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)l.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(i.start,l.indent)){const c=l.items[l.items.length-2],o=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),l.items.pop();return}}i.start.push(this.sourceToken)}return;case"anchor":case"tag":if(i.value||this.indent<=l.indent)break;i.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==l.indent)break;i.value||Wn(i.start,"seq-item-ind")?l.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return}if(this.indent>l.indent){const c=this.startBlockValue(l);if(c){this.stack.push(c);return}}yield*this.pop(),yield*this.step()}*flowCollection(l){const i=l.items[l.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while((s==null?void 0:s.type)==="flow-collection")}else if(l.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!i||i.sep?l.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return;case"map-value-ind":!i||i.value?l.items.push({start:[],key:null,sep:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!i||i.value?l.items.push({start:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const c=this.flowScalar(this.type);!i||i.value?l.items.push({start:[],key:c,sep:[]}):i.sep?this.stack.push(c):Object.assign(i,{key:c,sep:[]});return}case"flow-map-end":case"flow-seq-end":l.end.push(this.sourceToken);return}const s=this.startBlockValue(l);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===l.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const c=su(s),o=ha(c);Mg(l);const h=l.end.splice(1,l.end.length);h.push(this.sourceToken);const m={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:o,key:l,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=m}else yield*this.lineEnd(l)}}flowScalar(l){if(this.onNewLine){let i=this.source.indexOf(`
|
|
188
|
-
`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
|
|
189
|
-
`,i)+1}return{type:l,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(l){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const i=su(l),s=ha(i);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const i=su(l),s=ha(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(l,i){return this.type!=="comment"||this.indent<=i?!1:l.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(l){this.type!=="doc-mode"&&(l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(l){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Zp(u){const l=u.prettyErrors!==!1;return{lineCounter:u.lineCounter||l&&new Qp||null,prettyErrors:l}}function qb(u,l={}){const{lineCounter:i,prettyErrors:s}=Zp(l),c=new Zf(i==null?void 0:i.addNewLine),o=new Xf(l),h=Array.from(o.compose(c.parse(u)));if(s&&i)for(const m of h)m.errors.forEach(Su(u,i)),m.warnings.forEach(Su(u,i));return h.length>0?h:Object.assign([],{empty:!0},o.streamInfo())}function Jp(u,l={}){const{lineCounter:i,prettyErrors:s}=Zp(l),c=new Zf(i==null?void 0:i.addNewLine),o=new Xf(l);let h=null;for(const m of o.compose(c.parse(u),!0,u.length))if(!h)h=m;else if(h.options.logLevel!=="silent"){h.errors.push(new wl(m.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&i&&(h.errors.forEach(Su(u,i)),h.warnings.forEach(Su(u,i))),h}function Hb(u,l,i){let s;typeof l=="function"?s=l:i===void 0&&l&&typeof l=="object"&&(i=l);const c=Jp(u,i);if(!c)return null;if(c.warnings.forEach(o=>gp(c.options.logLevel,o)),c.errors.length>0){if(c.options.logLevel!=="silent")throw c.errors[0];c.errors=[]}return c.toJS(Object.assign({reviver:s},i))}function Yb(u,l,i){let s=null;if(typeof l=="function"||Array.isArray(l)?s=l:i===void 0&&l&&(i=l),typeof i=="string"&&(i=i.length),typeof i=="number"){const c=Math.round(i);i=c<1?void 0:c>8?{indent:8}:{indent:c}}if(u===void 0){const{keepUndefined:c}=i??l??{};if(!c)return}return Ol(u)&&!s?u.toString(i):new za(u,s,i).toString(i)}const $b=Object.freeze(Object.defineProperty({__proto__:null,Alias:Nu,CST:kb,Composer:Xf,Document:za,Lexer:Vp,LineCounter:Qp,Pair:ft,Parser:Zf,Scalar:fe,Schema:ju,YAMLError:Vf,YAMLMap:Lt,YAMLParseError:wl,YAMLSeq:Pn,YAMLWarning:Up,isAlias:el,isCollection:Re,isDocument:Ol,isMap:_a,isNode:Be,isPair:ke,isScalar:ze,isSeq:Ma,parse:Hb,parseAllDocuments:qb,parseDocument:Jp,stringify:Yb,visit:Nl,visitAsync:Ou},Symbol.toStringTag,{value:"Module"}));function Gb(u,l,i={}){var N;const s=new u.LineCounter,c={keepSourceTokens:!0,lineCounter:s,...i},o=u.parseDocument(l,c),h=[],m=E=>[s.linePos(E[0]),s.linePos(E[1])],g=E=>{h.push({message:E.message,range:[s.linePos(E.pos[0]),s.linePos(E.pos[1])]})},p=(E,x)=>{for(const S of x.items){if(S instanceof u.Scalar&&typeof S.value=="string"){const U=wu.parse(S,c,h);U&&(E.children=E.children||[],E.children.push(U));continue}if(S instanceof u.YAMLMap){w(E,S);continue}h.push({message:"Sequence items should be strings or maps",range:m(S.range||x.range)})}},w=(E,x)=>{for(const S of x.items){if(E.children=E.children||[],!(S.key instanceof u.Scalar&&typeof S.key.value=="string")){h.push({message:"Only string keys are supported",range:m(S.key.range||x.range)});continue}const M=S.key,U=S.value;if(M.value==="text"){if(!(U instanceof u.Scalar&&typeof U.value=="string")){h.push({message:"Text value should be a string",range:m(S.value.range||x.range)});continue}E.children.push({kind:"text",text:bf(U.value)});continue}if(M.value==="/children"){if(!(U instanceof u.Scalar&&typeof U.value=="string")||U.value!=="contain"&&U.value!=="equal"&&U.value!=="deep-equal"){h.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:m(S.value.range||x.range)});continue}E.containerMode=U.value;continue}if(M.value.startsWith("/")){if(!(U instanceof u.Scalar&&typeof U.value=="string")){h.push({message:"Property value should be a string",range:m(S.value.range||x.range)});continue}E.props=E.props??{},E.props[M.value.slice(1)]=bf(U.value);continue}const $=wu.parse(M,c,h);if(!$)continue;if(U instanceof u.Scalar){const J=typeof U.value;if(J!=="string"&&J!=="number"&&J!=="boolean"){h.push({message:"Node value should be a string or a sequence",range:m(S.value.range||x.range)});continue}E.children.push({...$,children:[{kind:"text",text:bf(String(U.value))}]});continue}if(U instanceof u.YAMLSeq){E.children.push($),p($,U);continue}h.push({message:"Map values should be strings or sequences",range:m(S.value.range||x.range)})}},v={kind:"role",role:"fragment"};return o.errors.forEach(g),h.length?{errors:h,fragment:v}:(o.contents instanceof u.YAMLSeq||h.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:o.contents?m(o.contents.range):[{line:0,col:0},{line:0,col:0}]}),h.length?{errors:h,fragment:v}:(p(v,o.contents),h.length?{errors:h,fragment:Kb}:((N=v.children)==null?void 0:N.length)===1&&(!v.containerMode||v.containerMode==="contain")?{fragment:v.children[0],errors:[]}:{fragment:v,errors:[]}))}const Kb={kind:"role",role:"fragment"};function Wp(u){return u.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function bf(u){return{raw:u,normalized:Wp(u)}}class wu{static parse(l,i,s){try{return new wu(l.value)._parse()}catch(c){if(c instanceof Cg){const o=i.prettyErrors===!1?c.message:c.message+`:
|
|
190
|
-
|
|
191
|
-
`+l.value+`
|
|
192
|
-
`+" ".repeat(c.pos)+`^
|
|
193
|
-
`;return s.push({message:o,range:[i.lineCounter.linePos(l.range[0]),i.lineCounter.linePos(l.range[0]+c.pos)]}),null}throw c}}constructor(l){this._input=l,this._pos=0,this._length=l.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos<this._length?this._input[this._pos++]:null}_eof(){return this._pos>=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(l){this._eof()&&this._throwError(`Unexpected end of input when expecting ${l}`);const i=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(i,this._pos)}_readString(){let l="",i=!1;for(;!this._eof();){const s=this._next();if(i)l+=s,i=!1;else if(s==="\\")i=!0;else{if(s==='"')return l;l+=s}}this._throwError("Unterminated string")}_throwError(l,i=0){throw new Cg(l,i||this._pos)}_readRegex(){let l="",i=!1,s=!1;for(;!this._eof();){const c=this._next();if(i)l+=c,i=!1;else if(c==="\\")i=!0,l+=c;else{if(c==="/"&&!s)return{pattern:l};c==="["?(s=!0,l+=c):c==="]"&&s?(l+=c,s=!1):l+=c}}this._throwError("Unterminated regex")}_readStringOrRegex(){const l=this._peek();return l==='"'?(this._next(),Wp(this._readString())):l==="/"?(this._next(),this._readRegex()):null}_readAttributes(l){let i=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),i=this._pos;const s=this._readIdentifier("attribute");this._skipWhitespace();let c="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),i=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)c+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(l,s,c||"true",i)}}_parse(){this._skipWhitespace();const l=this._readIdentifier("role");this._skipWhitespace();const i=this._readStringOrRegex()||"",s={kind:"role",role:l,name:i};return this._readAttributes(s),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),s}_applyAttribute(l,i,s,c){if(i==="checked"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',c),l.checked=s==="true"?!0:s==="false"?!1:"mixed";return}if(i==="disabled"){this._assert(s==="true"||s==="false",'Value of "disabled" attribute must be a boolean',c),l.disabled=s==="true";return}if(i==="expanded"){this._assert(s==="true"||s==="false",'Value of "expanded" attribute must be a boolean',c),l.expanded=s==="true";return}if(i==="active"){this._assert(s==="true"||s==="false",'Value of "active" attribute must be a boolean',c),l.active=s==="true";return}if(i==="level"){this._assert(!isNaN(Number(s)),'Value of "level" attribute must be a number',c),l.level=Number(s);return}if(i==="pressed"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',c),l.pressed=s==="true"?!0:s==="false"?!1:"mixed";return}if(i==="selected"){this._assert(s==="true"||s==="false",'Value of "selected" attribute must be a boolean',c),l.selected=s==="true";return}this._assert(!1,`Unsupported attribute [${i}]`,c)}_assert(l,i,s){l||this._throwError(i||"Assertion error",s)}}class Cg extends Error{constructor(l,i){super(l),this.pos=i}}const Vb=({className:u,style:l,open:i,isModal:s,minWidth:c,verticalOffset:o,requestClose:h,anchor:m,dataTestId:g,children:p})=>{const w=ce.useRef(null),[v,N]=ce.useState(0),[E]=Sf(w),[x,S]=Sf(m),A=m?Qb(E,x,o):void 0;return ce.useEffect(()=>{const M=$=>{!w.current||!($.target instanceof Node)||w.current.contains($.target)||h==null||h()},U=$=>{$.key==="Escape"&&(h==null||h())};return i?(document.addEventListener("mousedown",M),document.addEventListener("keydown",U),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",U)}):()=>{}},[i,h]),ce.useLayoutEffect(()=>S(),[i,S]),ce.useEffect(()=>{const M=()=>N(U=>U+1);return window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}},[]),ce.useLayoutEffect(()=>{w.current&&(i?s?w.current.showModal():w.current.show():w.current.close())},[i,s]),K.jsx("dialog",{ref:w,style:{position:"fixed",margin:A?0:void 0,zIndex:110,top:A==null?void 0:A.top,left:A==null?void 0:A.left,minWidth:c||0,...l},className:u,"data-testid":g,children:p})};function Qb(u,l,i=4,s=4){let c=Math.max(s,l.left);c+u.width>window.innerWidth-s&&(c=window.innerWidth-u.width-s);let o=Math.max(0,l.bottom)+i;return o+u.height>window.innerHeight-i&&(Math.max(0,l.top)>u.height+i?o=Math.max(0,l.top)-u.height-i:o=window.innerHeight-i-u.height),{left:c,top:o}}const Xb=({sources:u,paused:l,log:i,mode:s})=>{const[c,o]=ce.useState(),[h,m]=Tf("recorderPropertiesTab","log"),[g,p]=ce.useState(),[w,v]=ce.useState(),[N,E]=ce.useState(!1),[x,S]=z1(),A=!1,[M,U]=ce.useState(!1),$=ce.useRef(!1),[Z,W]=ce.useState(null),[J,G]=ce.useState(!0),[V,L]=ce.useState(null),se=ce.useRef(null),ae=ce.useRef(null);window.playwrightSelectSource=b=>o(b),window.playwrightSetReplayProgress=(b,R)=>W({completed:b,total:R}),window.playwrightSetReplayError=b=>L(b),ce.useEffect(()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:A}})},[A]),ce.useEffect(()=>{s==="replaying"?L(null):W(null)},[s]);const[Y,P]=ce.useState(!1),ue=ce.useMemo(()=>u.find(R=>R.id===c)??nv(),[u,c]),[Ye,k]=ce.useState("");window.playwrightElementPicked=(b,R)=>{const X=ue.language;k(tp(X,b.selector)),p(b.ariaSnapshot),v([]),R&&h!=="locator"&&h!=="aria"&&m("locator"),s==="inspecting"&&h==="aria"||window.dispatch({event:"setMode",params:{mode:s==="inspecting"?"standby":"recording"}}).catch(()=>{})};const Q=ce.useRef(null);ce.useLayoutEffect(()=>{var b;(b=Q.current)==null||b.scrollIntoView({block:"center",inline:"nearest"})},[Q]),ce.useLayoutEffect(()=>{const b=R=>{switch(R.key){case"F8":R.preventDefault(),l?window.dispatch({event:"resume"}):window.dispatch({event:"pause"});break;case"F10":R.preventDefault(),l&&window.dispatch({event:"step"});break}};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[l]);const le=ce.useCallback(b=>{(s==="none"||s==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}}),k(b),window.dispatch({event:"highlightRequested",params:{selector:b}})},[s]),Ae=ce.useCallback(b=>{(s==="none"||s==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}});const{fragment:R,errors:X}=Gb($b,b,{prettyErrors:!1}),F=X.map(ie=>({message:ie.message,line:ie.range[1].line,column:ie.range[1].col,type:"subtle-error"}));v(F),p(b),X.length||window.dispatch({event:"highlightRequested",params:{ariaTemplate:R}})},[s]),we=s==="recording"||s==="recording-inspecting"||s==="assertingText"||s==="assertingVisibility"||s==="assertingValue"||s==="assertingSnapshot"||s==="assertingVSnapshot"||s==="assertingTableCell"||s==="recordingDrag"||s==="recordingGoJSLink"||s==="recordingArea"||s==="recordingDomSnapshot";return K.jsxs("div",{className:"recorder",children:[K.jsxs(Dg,{children:[K.jsx(Fe,{icon:we?"stop-circle":"circle-large-filled",title:we?"Stop Recording":"Start Recording",toggled:we,onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="none"||s==="standby"||s==="inspecting"?"recording":"standby"}})},children:"Record"}),K.jsx(mg,{}),K.jsx(Fe,{icon:"inspect",title:"Pick locator",toggled:s==="inspecting"||s==="recording-inspecting",onClick:()=>{const b={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingTableCell:"recording-inspecting",recordingDrag:"recording",recordingGoJSLink:"recording",recordingArea:"recording",recordingFileUpload:"recording",recordingDomSnapshot:"recording"}[s];window.dispatch({event:"setMode",params:{mode:b}}).catch(()=>{})}}),K.jsx(Fe,{icon:"cloud-upload",title:"Upload file",toggled:s==="recordingFileUpload",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="recordingFileUpload"?"recording":"recordingFileUpload"}})}}),K.jsx(Fe,{icon:"move",title:"Drag and drop",toggled:s==="recordingDrag",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="recordingDrag"?"recording":"recordingDrag"}})}}),K.jsx(Fe,{icon:"type-hierarchy-sub",title:"GoJS Link (click source node, then target node)",toggled:s==="recordingGoJSLink",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="recordingGoJSLink"?"recording":"recordingGoJSLink"}})}}),K.jsx(Fe,{icon:"selection",title:"Select area",toggled:s==="recordingArea",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="recordingArea"?"recording":"recordingArea"}})}}),K.jsx(Fe,{icon:"eye",title:"Assert visibility",toggled:s==="assertingVisibility",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingVisibility"?"recording":"assertingVisibility"}})}}),K.jsx(Fe,{icon:"whole-word",title:"Assert text",toggled:s==="assertingText",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingText"?"recording":"assertingText"}})}}),K.jsx(Fe,{icon:"table",title:"Assert table cell",toggled:s==="assertingTableCell",disabled:s==="none"||s==="standby"||s==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="assertingTableCell"?"recording":"assertingTableCell"}})}}),K.jsx(mg,{}),K.jsx("input",{ref:se,type:"file",accept:".jsonl,.txt,.zip",style:{display:"none"},onChange:b=>{var ie;const R=(ie=b.target.files)==null?void 0:ie[0];if(!R)return;const X=J?1e3:0,F=new FileReader;R.name.endsWith(".zip")?(F.onload=async oe=>{var Ue;const be=(Ue=oe.target)==null?void 0:Ue.result,$e=await q1(be,"skyramp_playwright.txt");if(!$e){alert("No skyramp_playwright.txt found in zip");return}window.dispatch({event:"loadTrace",params:{jsonlContent:$e,delayBetweenActions:X}})},F.readAsArrayBuffer(R)):(F.onload=oe=>{var $e;const be=($e=oe.target)==null?void 0:$e.result;window.dispatch({event:"loadTrace",params:{jsonlContent:be,delayBetweenActions:X}})},F.readAsText(R)),b.target.value=""}}),K.jsx(Fe,{icon:"run-all",title:"Load trace and replay",disabled:s==="replaying",onClick:()=>{var b;return(b=se.current)==null?void 0:b.click()},children:"Load"}),K.jsx(Fe,{icon:"clock",title:J?"Slow replay (1s between actions) — click for fast":"Fast replay — click for slow",toggled:J,onClick:()=>{const b=!J;G(b),s==="replaying"&&window.dispatch({event:"setReplaySpeed",params:{slow:b}})},children:J?"Slow":"Fast"}),s==="replaying"&&K.jsxs(K.Fragment,{children:[K.jsx("span",{style:{padding:"0 8px",fontSize:"12px",color:"var(--vscode-foreground)",whiteSpace:"nowrap"},children:Z?`Step ${Z.completed} / ${Z.total}`:"Replaying…"}),K.jsx(Fe,{icon:"debug-stop",title:"Take over recording",onClick:()=>{window.dispatch({event:"takeOverReplay"})},children:"Take over"})]}),K.jsx(Fe,{icon:"files",title:"Copy",disabled:!ue||!ue.text,onClick:()=>{tg(ue.text)}}),K.jsx(Fe,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!l,onClick:()=>{window.dispatch({event:"resume"})}}),K.jsx(Fe,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:l,onClick:()=>{window.dispatch({event:"pause"})}}),K.jsx(Fe,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!l,onClick:()=>{window.dispatch({event:"step"})}}),K.jsx("div",{style:{flex:"auto"}}),K.jsx("div",{children:"Target:"}),K.jsx(ev,{fileId:ue.id,sources:u,setFileId:b=>{o(b),window.dispatch({event:"fileChanged",params:{fileId:b}})}}),K.jsx(Fe,{icon:"discard",title:"Delete last action",disabled:!ue||!ue.text,onClick:()=>{window.dispatch({event:"deleteLast"}),$.current||($.current=!0,U(!0))}}),K.jsx(Fe,{icon:"clear-all",title:"Clear",disabled:!ue||!ue.text,onClick:()=>{window.dispatch({event:"clear"})}}),K.jsx(Fe,{ref:ae,icon:"settings-gear",title:"Settings",onClick:()=>E(b=>!b)}),K.jsxs(Vb,{style:{padding:"4px 8px"},open:N,verticalOffset:8,requestClose:()=>E(!1),anchor:ae,dataTestId:"settings-dialog",children:[K.jsxs("div",{className:"setting",children:[K.jsx("input",{type:"checkbox",id:"dark-mode-setting",checked:x,onChange:()=>S(!x)}),K.jsx("label",{htmlFor:"dark-mode-setting",children:"Dark mode"})]},"dark-mode-setting"),K.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[K.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:A,onChange:()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:!A}}),setAutoExpect(!A)}}),K.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),V&&K.jsxs("div",{style:{padding:"6px 12px",background:"var(--vscode-inputValidation-errorBackground, #f2dede)",borderBottom:"1px solid var(--vscode-inputValidation-errorBorder, #be1100)",color:"var(--vscode-inputValidation-errorForeground, #5a1208)",fontSize:"12px",whiteSpace:"pre-wrap",display:"flex",alignItems:"flex-start",gap:"8px"},children:[K.jsx("span",{style:{flex:1},children:V}),K.jsx("button",{style:{flexShrink:0,cursor:"pointer",background:"none",border:"none",color:"inherit",padding:0,fontSize:"14px"},onClick:()=>L(null),children:"✕"})]}),K.jsx(F1,{sidebarSize:200,main:K.jsx(ff,{text:ue.text,highlighter:ue.language,highlight:ue.highlight,revealLine:ue.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:K.jsx(I1,{rightToolbar:h==="locator"||h==="aria"?[K.jsx(Fe,{icon:"files",title:"Copy",onClick:()=>tg((h==="locator"?Ye:g)||"")},1)]:[],tabs:[{id:"locator",title:"Locator",render:()=>K.jsx(ff,{text:Ye,placeholder:"Type locator to inspect",highlighter:ue.language,focusOnChange:!0,onChange:le,wrapLines:!0})},{id:"log",title:"Log",render:()=>K.jsx(Dv,{language:ue.language,log:Array.from(i.values())})},{id:"aria",title:"Aria",render:()=>K.jsx(ff,{text:g||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:Ae,highlight:w,wrapLines:!0})}],selectedTab:h,setSelectedTab:m})}),M&&K.jsx("div",{className:"delete-modal-overlay",onClick:()=>U(!1),children:K.jsxs("div",{className:"delete-modal",onClick:b=>b.stopPropagation(),children:[K.jsx("div",{className:"delete-modal-body",children:"Navigate your browser back to the desired state before continuing recording."}),K.jsxs("div",{className:"delete-modal-footer",children:[K.jsx("button",{className:"delete-modal-button-secondary",onClick:()=>{$.current=!1,U(!1)},children:"Remind me next time"}),K.jsx("button",{className:"delete-modal-button",onClick:()=>U(!1),children:"Don't show again"})]})]})})]})},Zb=({})=>{const[u,l]=ce.useState([]),[i,s]=ce.useState(!1),[c,o]=ce.useState(new Map),[h,m]=ce.useState("none");return ce.useLayoutEffect(()=>{window.playwrightSetMode=m,window.playwrightSetSources=g=>{l(g),window.playwrightSourcesEchoForTest=g},window.playwrightSetPageURL=g=>{document.title=g?`Playwright Inspector - ${g}`:"Playwright Inspector"},window.playwrightSetPaused=s,window.playwrightUpdateLogs=g=>{o(p=>{const w=new Map(p);for(const v of g)v.reveal=!p.has(v.id),w.set(v.id,v);return w})}},[]),K.jsx(Xb,{sources:u,paused:i,log:c,mode:h})};(async()=>(C1(),B1.createRoot(document.querySelector("#root")).render(K.jsx(Zb,{}))))();export{S1 as g};
|