@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
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-D0BjbCb7.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 f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function Sv(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var lo={exports:{}},_i={};/**
|
|
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 Tv(){if(Fm)return _i;Fm=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(s,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:u,type:s,key:h,ref:c!==void 0?c:null,props:f}}return _i.Fragment=l,_i.jsx=i,_i.jsxs=i,_i}var Im;function wv(){return Im||(Im=1,lo.exports=Tv()),lo.exports}var B=wv(),ao={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 Ev(){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"),f=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"),T=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function E(N){return N===null||typeof N!="object"?null:(N=_&&N[_]||N["@@iterator"],typeof N=="function"?N:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function M(N,$,W){this.props=N,this.context=$,this.refs=w,this.updater=W||O}M.prototype.isReactComponent={},M.prototype.setState=function(N,$){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,$,"setState")},M.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function j(){}j.prototype=M.prototype;function K(N,$,W){this.props=N,this.context=$,this.refs=w,this.updater=W||O}var Z=K.prototype=new j;Z.constructor=K,b(Z,M.prototype),Z.isPureReactComponent=!0;var F=Array.isArray;function J(){}var V={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function L(N,$,W){var G=W.ref;return{$$typeof:u,type:N,key:$,ref:G!==void 0?G:null,props:W}}function ce(N,$){return L(N.type,$,N.props)}function se(N){return typeof N=="object"&&N!==null&&N.$$typeof===u}function H(N){var $={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(W){return $[W]})}var ee=/\/+/g;function be(N,$){return typeof N=="object"&&N!==null&&N.key!=null?H(""+N.key):$.toString(36)}function Ie(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(J,J):(N.status="pending",N.then(function($){N.status==="pending"&&(N.status="fulfilled",N.value=$)},function($){N.status==="pending"&&(N.status="rejected",N.reason=$)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function k(N,$,W,G,P){var ue=typeof N;(ue==="undefined"||ue==="boolean")&&(N=null);var de=!1;if(N===null)de=!0;else switch(ue){case"bigint":case"string":case"number":de=!0;break;case"object":switch(N.$$typeof){case u:case l:de=!0;break;case T:return de=N._init,k(de(N._payload),$,W,G,P)}}if(de)return P=P(N),de=G===""?"."+be(N,0):G,F(P)?(W="",de!=null&&(W=de.replace(ee,"$&/")+"/"),k(P,$,W,"",function(Et){return Et})):P!=null&&(se(P)&&(P=ce(P,W+(P.key==null||N&&N.key===P.key?"":(""+P.key).replace(ee,"$&/")+"/")+de)),$.push(P)),1;de=0;var qe=G===""?".":G+":";if(F(N))for(var Oe=0;Oe<N.length;Oe++)G=N[Oe],ue=qe+be(G,Oe),de+=k(G,$,W,ue,P);else if(Oe=E(N),typeof Oe=="function")for(N=Oe.call(N),Oe=0;!(G=N.next()).done;)G=G.value,ue=qe+be(G,Oe++),de+=k(G,$,W,ue,P);else if(ue==="object"){if(typeof N.then=="function")return k(Ie(N),$,W,G,P);throw $=String(N),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return de}function Q(N,$,W){if(N==null)return N;var G=[],P=0;return k(N,G,"","",function(ue){return $.call(W,ue,P++)}),G}function le(N){if(N._status===-1){var $=N._result;$=$(),$.then(function(W){(N._status===0||N._status===-1)&&(N._status=1,N._result=W)},function(W){(N._status===0||N._status===-1)&&(N._status=2,N._result=W)}),N._status===-1&&(N._status=0,N._result=$)}if(N._status===1)return N._result.default;throw N._result}var we=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Ae={map:Q,forEach:function(N,$,W){Q(N,function(){$.apply(this,arguments)},W)},count:function(N){var $=0;return Q(N,function(){$++}),$},toArray:function(N){return Q(N,function($){return $})||[]},only:function(N){if(!se(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return re.Activity=v,re.Children=Ae,re.Component=M,re.Fragment=i,re.Profiler=c,re.PureComponent=K,re.StrictMode=s,re.Suspense=g,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,re.__COMPILER_RUNTIME={__proto__:null,c:function(N){return V.H.useMemoCache(N)}},re.cache=function(N){return function(){return N.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(N,$,W){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var G=b({},N.props),P=N.key;if($!=null)for(ue in $.key!==void 0&&(P=""+$.key),$)!X.call($,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&$.ref===void 0||(G[ue]=$[ue]);var ue=arguments.length-2;if(ue===1)G.children=W;else if(1<ue){for(var de=Array(ue),qe=0;qe<ue;qe++)de[qe]=arguments[qe+2];G.children=de}return L(N.type,P,G)},re.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},re.createElement=function(N,$,W){var G,P={},ue=null;if($!=null)for(G in $.key!==void 0&&(ue=""+$.key),$)X.call($,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(P[G]=$[G]);var de=arguments.length-2;if(de===1)P.children=W;else if(1<de){for(var qe=Array(de),Oe=0;Oe<de;Oe++)qe[Oe]=arguments[Oe+2];P.children=qe}if(N&&N.defaultProps)for(G in de=N.defaultProps,de)P[G]===void 0&&(P[G]=de[G]);return L(N,ue,P)},re.createRef=function(){return{current:null}},re.forwardRef=function(N){return{$$typeof:m,render:N}},re.isValidElement=se,re.lazy=function(N){return{$$typeof:T,_payload:{_status:-1,_result:N},_init:le}},re.memo=function(N,$){return{$$typeof:p,type:N,compare:$===void 0?null:$}},re.startTransition=function(N){var $=V.T,W={};V.T=W;try{var G=N(),P=V.S;P!==null&&P(W,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(J,we)}catch(ue){we(ue)}finally{$!==null&&W.types!==null&&($.types=W.types),V.T=$}},re.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},re.use=function(N){return V.H.use(N)},re.useActionState=function(N,$,W){return V.H.useActionState(N,$,W)},re.useCallback=function(N,$){return V.H.useCallback(N,$)},re.useContext=function(N){return V.H.useContext(N)},re.useDebugValue=function(){},re.useDeferredValue=function(N,$){return V.H.useDeferredValue(N,$)},re.useEffect=function(N,$){return V.H.useEffect(N,$)},re.useEffectEvent=function(N){return V.H.useEffectEvent(N)},re.useId=function(){return V.H.useId()},re.useImperativeHandle=function(N,$,W){return V.H.useImperativeHandle(N,$,W)},re.useInsertionEffect=function(N,$){return V.H.useInsertionEffect(N,$)},re.useLayoutEffect=function(N,$){return V.H.useLayoutEffect(N,$)},re.useMemo=function(N,$){return V.H.useMemo(N,$)},re.useOptimistic=function(N,$){return V.H.useOptimistic(N,$)},re.useReducer=function(N,$,W){return V.H.useReducer(N,$,W)},re.useRef=function(N){return V.H.useRef(N)},re.useState=function(N){return V.H.useState(N)},re.useSyncExternalStore=function(N,$,W){return V.H.useSyncExternalStore(N,$,W)},re.useTransition=function(){return V.H.useTransition()},re.version="19.2.1",re}var eg;function Do(){return eg||(eg=1,ao.exports=Ev()),ao.exports}var ie=Do();const In=Sv(ie);function Cg(){const u=In.useRef(null),[l]=So(u);return[l,u]}function So(u){const[l,i]=In.useState(new DOMRect(0,0,10,10)),s=In.useCallback(()=>{const c=u==null?void 0:u.current;c&&i(c.getBoundingClientRect())},[u]);return In.useLayoutEffect(()=>{const c=u==null?void 0:u.current;if(!c)return;s();const f=new ResizeObserver(s);return f.observe(c),window.addEventListener("resize",s),()=>{f.disconnect(),window.removeEventListener("resize",s)}},[s,u]),[l,s]}function Av(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 To(u,l){u&&(l=pa.getObject(u,l));const[i,s]=In.useState(l),c=In.useCallback(f=>{u?pa.setObject(u,f):s(f)},[u,s]);return In.useEffect(()=>{if(u){const f=()=>s(pa.getObject(u,l));return pa.onChangeEmitter.addEventListener(u,f),()=>pa.onChangeEmitter.removeEventListener(u,f)}},[l,u]),[i,c]}class Ov{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 pa=new Ov;function Ol(...u){return u.filter(Boolean).join(" ")}const ng="\\u0000-\\u0020\\u007f-\\u009f",Nv=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+ng+'"]{2,}[^\\s'+ng+`"')}\\],:;.!?]`,"ug"),_v="system",xv="theme",zg=window.matchMedia("(prefers-color-scheme: dark)");function Mv(){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),wo(lg()),zg.addEventListener("change",()=>{wo(lg())}))}const Cv=new Set;function wo(u){const l=Eo(),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 Cv)s(i)}}function lg(){return pa.getString(xv,_v)}function Eo(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function zv(){const[u,l]=In.useState(Eo()==="dark-mode");return[u,i=>{Eo()==="dark-mode"!==i&&wo(i?"dark-mode":"light-mode"),l(i)}]}var io={exports:{}},xi={},so={exports:{}},uo={};/**
|
|
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 Dv(){return ag||(ag=1,(function(u){function l(k,Q){var le=k.length;k.push(Q);e:for(;0<le;){var we=le-1>>>1,Ae=k[we];if(0<c(Ae,Q))k[we]=Q,k[le]=Ae,le=we;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 we=0,Ae=k.length,N=Ae>>>1;we<N;){var $=2*(we+1)-1,W=k[$],G=$+1,P=k[G];if(0>c(W,le))G<Ae&&0>c(P,W)?(k[we]=P,k[G]=le,we=G):(k[we]=W,k[$]=le,we=$);else if(G<Ae&&0>c(P,le))k[we]=P,k[G]=le,we=G;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 f=performance;u.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();u.unstable_now=function(){return h.now()-m}}var g=[],p=[],T=1,v=null,_=3,E=!1,O=!1,b=!1,w=!1,M=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,K=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 F(k){if(b=!1,Z(k),!O)if(i(g)!==null)O=!0,J||(J=!0,H());else{var Q=i(p);Q!==null&&Ie(F,Q.startTime-k)}}var J=!1,V=-1,X=5,L=-1;function ce(){return w?!0:!(u.unstable_now()-L<X)}function se(){if(w=!1,J){var k=u.unstable_now();L=k;var Q=!0;try{e:{O=!1,b&&(b=!1,j(V),V=-1),E=!0;var le=_;try{t:{for(Z(k),v=i(g);v!==null&&!(v.expirationTime>k&&ce());){var we=v.callback;if(typeof we=="function"){v.callback=null,_=v.priorityLevel;var Ae=we(v.expirationTime<=k);if(k=u.unstable_now(),typeof Ae=="function"){v.callback=Ae,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 N=i(p);N!==null&&Ie(F,N.startTime-k),Q=!1}}break e}finally{v=null,_=le,E=!1}Q=void 0}}finally{Q?H():J=!1}}}var H;if(typeof K=="function")H=function(){K(se)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,be=ee.port2;ee.port1.onmessage=se,H=function(){be.postMessage(null)}}else H=function(){M(se,0)};function Ie(k,Q){V=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"):X=0<k?Math.floor(1e3/k):5},u.unstable_getCurrentPriorityLevel=function(){return _},u.unstable_next=function(k){switch(_){case 1:case 2:case 3:var Q=3;break;default:Q=_}var le=_;_=Q;try{return k()}finally{_=le}},u.unstable_requestPaint=function(){w=!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=_;_=k;try{return Q()}finally{_=le}},u.unstable_scheduleCallback=function(k,Q,le){var we=u.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?we+le:we):le=we,k){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=le+Ae,k={id:T++,callback:Q,priorityLevel:k,startTime:le,expirationTime:Ae,sortIndex:-1},le>we?(k.sortIndex=le,l(p,k),i(g)===null&&k===i(p)&&(b?(j(V),V=-1):b=!0,Ie(F,le-we))):(k.sortIndex=Ae,l(g,k),O||E||(O=!0,J||(J=!0,H()))),k},u.unstable_shouldYield=ce,u.unstable_wrapCallback=function(k){var Q=_;return function(){var le=_;_=Q;try{return k.apply(this,arguments)}finally{_=le}}}})(uo)),uo}var ig;function Lv(){return ig||(ig=1,so.exports=Dv()),so.exports}var co={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 jv(){if(sg)return ct;sg=1;var u=Do();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)p+="&args[]="+encodeURIComponent(arguments[T])}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 f(g,p,T){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:T}}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 T=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 f(g,p,null,T)},ct.flushSync=function(g){var p=h.T,T=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=p,s.p=T,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 T=p.as,v=m(T,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;T==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:E}):T==="script"&&s.d.X(g,{crossOrigin:v,integrity:_,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 T=m(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:T,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 T=p.as,v=m(T,p.crossOrigin);s.d.L(g,T,{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 T=m(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:T,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,T){return h.H.useFormState(g,p,T)},ct.useFormStatus=function(){return h.H.useHostTransitionStatus()},ct.version="19.2.1",ct}var ug;function Uv(){if(ug)return co.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(),co.exports=jv(),co.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 kv(){if(cg)return xi;cg=1;var u=Lv(),l=Do(),i=Uv();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 f(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(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(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 o=r.alternate;if(o===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return g(r),e;if(o===a)return g(r),t;o=o.sibling}throw Error(s(188))}if(n.return!==a.return)n=r,a=o;else{for(var d=!1,y=r.child;y;){if(y===n){d=!0,n=r,a=o;break}if(y===a){d=!0,a=r,n=o;break}y=y.sibling}if(!d){for(y=o.child;y;){if(y===n){d=!0,n=o,a=r;break}if(y===a){d=!0,a=o,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 T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function H(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case M:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case J:return"SuspenseList";case L:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case K:return e.displayName||"Context";case j: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 V:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var Ie=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},we=[],Ae=-1;function N(e){return{current:e}}function $(e){0>Ae||(e.current=we[Ae],we[Ae]=null,Ae--)}function W(e,t){Ae++,we[Ae]=e.current,e.current=t}var G=N(null),P=N(null),ue=N(null),de=N(null);function qe(e,t){switch(W(ue,t),W(P,e),W(G,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}}$(G),W(G,e)}function Oe(){$(G),$(P),$(ue)}function Et(e){e.memoizedState!==null&&W(de,e);var t=G.current,n=Tm(t,e.type);t!==n&&(W(P,e),W(G,n))}function nl(e){P.current===e&&($(G),$(P)),de.current===e&&($(de),Ei._currentValue=le)}var Ml,Jo;function ll(e){if(Ml===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ml=t&&t[1]||"",Jo=-1<n.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+Ml+e+Jo}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 Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(U){var D=U}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(U){D=U}e.call(Y.prototype)}}else{try{throw Error()}catch(U){D=U}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(U){if(U&&D&&typeof U.stack=="string")return[U.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 o=a.DetermineComponentFrameRoot(),d=o[0],y=o[1];if(d&&y){var S=d.split(`
|
|
45
|
+
`),z=y.split(`
|
|
46
|
+
`);for(r=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(a===S.length||r===z.length)for(a=S.length-1,r=z.length-1;1<=a&&0<=r&&S[a]!==z[r];)r--;for(;1<=a&&0<=r;a--,r--)if(S[a]!==z[r]){if(a!==1||r!==1)do if(a--,r--,0>r||S[a]!==z[r]){var R=`
|
|
47
|
+
`+S[a].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=a&&0<=r);break}}}finally{Hu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ll(n):""}function Fp(e,t){switch(e.tag){case 26:case 27:case 5:return ll(e.type);case 16:return ll("Lazy");case 13:return e.child!==t&&t!==null?ll("Suspense Fallback"):ll("Suspense");case 19:return ll("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 ll("Activity");default:return""}}function Wo(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,At=u.unstable_now,ey=u.unstable_getCurrentPriorityLevel,Fo=u.unstable_ImmediatePriority,Io=u.unstable_UserBlockingPriority,Hi=u.unstable_NormalPriority,ty=u.unstable_LowPriority,Po=u.unstable_IdlePriority,ny=u.log,ly=u.unstable_setDisableYieldValue,Ua=null,Ot=null;function Nn(e){if(typeof ny=="function"&&ly(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Ua,e)}catch{}}var Nt=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 Yi=256,$i=262144,Gi=4194304;function al(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 Ki(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~o,a!==0?r=al(a):(d&=y,d!==0?r=al(d):n||(n=y&~e,n!==0&&(r=al(n))))):(y=a&~o,y!==0?r=al(y):d!==0?r=al(d):n||(n=a&~e,n!==0&&(r=al(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function ka(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 ef(){var e=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),e}function Vu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ra(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cy(e,t,n,a,r,o){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,S=e.expirationTimes,z=e.hiddenUpdates;for(n=d&~n;0<n;){var R=31-Nt(n),Y=1<<R;y[R]=0,S[R]=-1;var D=z[R];if(D!==null)for(z[R]=null,R=0;R<D.length;R++){var U=D[R];U!==null&&(U.lane&=-536870913)}n&=~Y}a!==0&&tf(e,a,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function tf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function nf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nt(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function lf(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 af(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Km(e.type))}function sf(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var _n=Math.random().toString(36).slice(2),lt="__reactFiber$"+_n,dt="__reactProps$"+_n,Cl="__reactContainer$"+_n,Zu="__reactEvents$"+_n,ry="__reactListeners$"+_n,oy="__reactHandles$"+_n,uf="__reactResources$"+_n,Ba="__reactMarker$"+_n;function Ju(e){delete e[lt],delete e[dt],delete e[Zu],delete e[ry],delete e[oy]}function zl(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cl]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xm(e);e!==null;){if(n=e[lt])return n;e=xm(e)}return t}e=n,n=e.parentNode}return null}function Dl(e){if(e=e[lt]||e[Cl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ll(e){var t=e[uf];return t||(t=e[uf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tt(e){e[Ba]=!0}var cf=new Set,rf={};function il(e,t){jl(e,t),jl(e+"Capture",t)}function jl(e,t){for(rf[e]=t,e=0;e<t.length;e++)cf.add(t[e])}var fy=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]*$"),of={},ff={};function hy(e){return $u.call(ff,e)?!0:$u.call(of,e)?!1:fy.test(e)?ff[e]=!0:(of[e]=!0,!1)}function Vi(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 Qi(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 an(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 hf(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,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,o.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=hf(e)?"checked":"value";e._valueTracker=dy(e,t,""+e[t])}}function df(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=hf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Xi(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 kt(e){return e.replace(my,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fu(e,t,n,a,r,o,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&&o!=null&&(e.defaultChecked=!!o),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 mf(e,t,n,a,r,o,d,y){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="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"&&Xi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ul(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 gf(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 pf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(Ie(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 kl(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 yf(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 vf(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&&yf(e,r,a)}else for(var o in t)t.hasOwnProperty(o)&&yf(e,o,t[o])}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 Zi(e){return yy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sn(){}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 Rl=null,Bl=null;function bf(e){var t=Dl(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="'+kt(""+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&&df(a)}break e;case"textarea":gf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ul(e,!!n.multiple,t,!1)}}}var nc=!1;function Sf(e,t,n){if(nc)return e(t,n);nc=!0;try{var a=e(t);return a}finally{if(nc=!1,(Rl!==null||Bl!==null)&&(Us(),Rl&&(t=Rl,e=Bl,Bl=Rl=null,bf(t),e)))for(t=0;t<e.length;t++)bf(e[t])}}function Ha(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 un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lc=!1;if(un)try{var Ya={};Object.defineProperty(Ya,"passive",{get:function(){lc=!0}}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch{lc=!1}var xn=null,ac=null,Ji=null;function Tf(){if(Ji)return Ji;var e,t=ac,n=t.length,a,r="value"in xn?xn.value:xn.textContent,o=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[o-a];a++);return Ji=r.slice(e,1<a?1-a:void 0)}function Wi(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 Fi(){return!0}function wf(){return!1}function mt(e){function t(n,a,r,o,d){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(o):o[y]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Fi:wf,this.isPropagationStopped=wf,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=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ii=mt(sl),$a=v({},sl,{view:0,detail:0}),vy=mt($a),ic,sc,Ga,Pi=v({},$a,{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!==Ga&&(Ga&&e.type==="mousemove"?(ic=e.screenX-Ga.screenX,sc=e.screenY-Ga.screenY):sc=ic=0,Ga=e),ic)},movementY:function(e){return"movementY"in e?e.movementY:sc}}),Ef=mt(Pi),by=v({},Pi,{dataTransfer:0}),Sy=mt(by),Ty=v({},$a,{relatedTarget:0}),uc=mt(Ty),wy=v({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ey=mt(wy),Ay=v({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Oy=mt(Ay),Ny=v({},sl,{data:0}),Af=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"},xy={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"},My={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=My[e])?!!t[e]:!1}function cc(){return Cy}var zy=v({},$a,{key:function(e){if(e.key){var t=_y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xy[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"?Wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dy=mt(zy),Ly=v({},Pi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=mt(Ly),jy=v({},$a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cc}),Uy=mt(jy),ky=v({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ry=mt(ky),By=v({},Pi,{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({},sl,{newState:0,oldState:0}),Yy=mt(Hy),$y=[9,13,27,32],rc=un&&"CompositionEvent"in window,Ka=null;un&&"documentMode"in document&&(Ka=document.documentMode);var Gy=un&&"TextEvent"in window&&!Ka,Nf=un&&(!rc||Ka&&8<Ka&&11>=Ka),_f=" ",xf=!1;function Mf(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 Cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function Ky(e,t){switch(e){case"compositionend":return Cf(t);case"keypress":return t.which!==32?null:(xf=!0,_f);case"textInput":return e=t.data,e===_f&&xf?null:e;default:return null}}function Vy(e,t){if(ql)return e==="compositionend"||!rc&&Mf(e,t)?(e=Tf(),Ji=ac=xn=null,ql=!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 Nf&&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 zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qy[e.type]:t==="textarea"}function Df(e,t,n,a){Rl?Bl?Bl.push(a):Bl=[a]:Rl=a,t=$s(t,"onChange"),0<t.length&&(n=new Ii("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Va=null,Qa=null;function Xy(e){mm(e,0)}function es(e){var t=qa(e);if(df(t))return e}function Lf(e,t){if(e==="change")return t}var jf=!1;if(un){var oc;if(un){var fc="oninput"in document;if(!fc){var Uf=document.createElement("div");Uf.setAttribute("oninput","return;"),fc=typeof Uf.oninput=="function"}oc=fc}else oc=!1;jf=oc&&(!document.documentMode||9<document.documentMode)}function kf(){Va&&(Va.detachEvent("onpropertychange",Rf),Qa=Va=null)}function Rf(e){if(e.propertyName==="value"&&es(Qa)){var t=[];Df(t,Qa,e,tc(e)),Sf(Xy,t)}}function Zy(e,t,n){e==="focusin"?(kf(),Va=t,Qa=n,Va.attachEvent("onpropertychange",Rf)):e==="focusout"&&kf()}function Jy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return es(Qa)}function Wy(e,t){if(e==="click")return es(t)}function Fy(e,t){if(e==="input"||e==="change")return es(t)}function Iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Iy;function Xa(e,t){if(_t(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)||!_t(e[r],t[r]))return!1}return!0}function Bf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qf(e,t){var n=Bf(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=Bf(n)}}function Hf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xi(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=Xi(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=un&&"documentMode"in document&&11>=document.documentMode,Hl=null,dc=null,Za=null,mc=!1;function $f(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mc||Hl==null||Hl!==Xi(a)||(a=Hl,"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}),Za&&Xa(Za,a)||(Za=a,a=$s(dc,"onSelect"),0<a.length&&(t=new Ii("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Hl)))}function ul(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yl={animationend:ul("Animation","AnimationEnd"),animationiteration:ul("Animation","AnimationIteration"),animationstart:ul("Animation","AnimationStart"),transitionrun:ul("Transition","TransitionRun"),transitionstart:ul("Transition","TransitionStart"),transitioncancel:ul("Transition","TransitionCancel"),transitionend:ul("Transition","TransitionEnd")},gc={},Gf={};un&&(Gf=document.createElement("div").style,"AnimationEvent"in window||(delete Yl.animationend.animation,delete Yl.animationiteration.animation,delete Yl.animationstart.animation),"TransitionEvent"in window||delete Yl.transitionend.transition);function cl(e){if(gc[e])return gc[e];if(!Yl[e])return e;var t=Yl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Gf)return gc[e]=t[n];return e}var Kf=cl("animationend"),Vf=cl("animationiteration"),Qf=cl("animationstart"),e0=cl("transitionrun"),t0=cl("transitionstart"),n0=cl("transitioncancel"),Xf=cl("transitionend"),Zf=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 Xt(e,t){Zf.set(e,t),il(t,[e])}var ts=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)},Rt=[],$l=0,yc=0;function ns(){for(var e=$l,t=yc=$l=0;t<e;){var n=Rt[t];Rt[t++]=null;var a=Rt[t];Rt[t++]=null;var r=Rt[t];Rt[t++]=null;var o=Rt[t];if(Rt[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}o!==0&&Jf(n,r,o)}}function ls(e,t,n,a){Rt[$l++]=e,Rt[$l++]=t,Rt[$l++]=n,Rt[$l++]=a,yc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function vc(e,t,n,a){return ls(e,t,n,a),as(e)}function rl(e,t){return ls(e,null,null,t),as(e)}function Jf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-Nt(n),e=o.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),o):null}function as(e){if(50<pi)throw pi=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 Gl={};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 xt(e,t,n,a){return new l0(e,t,n,a)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cn(e,t){var n=e.alternate;return n===null?(n=xt(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 Wf(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 is(e,t,n,a,r,o){var d=0;if(a=e,typeof e=="function")bc(e)&&(d=1);else if(typeof e=="string")d=cv(e,n,G.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case L:return e=xt(31,n,t,r),e.elementType=L,e.lanes=o,e;case b:return ol(n.children,r,o,t);case w:d=8,r|=24;break;case M:return e=xt(12,n,t,r|2),e.elementType=M,e.lanes=o,e;case F:return e=xt(13,n,t,r),e.elementType=F,e.lanes=o,e;case J:return e=xt(19,n,t,r),e.elementType=J,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:d=10;break e;case j:d=9;break e;case Z:d=11;break e;case V:d=14;break e;case X:d=16,a=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=xt(d,n,t,r),t.elementType=e,t.type=a,t.lanes=o,t}function ol(e,t,n,a){return e=xt(7,e,a,t),e.lanes=n,e}function Sc(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function Ff(e){var t=xt(18,null,null,0);return t.stateNode=e,t}function Tc(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var If=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=If.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Wo(t)},If.set(e,t),t)}return{value:e,source:t,stack:Wo(t)}}var Kl=[],Vl=0,ss=null,Ja=0,qt=[],Ht=0,Mn=null,It=1,Pt="";function rn(e,t){Kl[Vl++]=Ja,Kl[Vl++]=ss,ss=e,Ja=t}function Pf(e,t,n){qt[Ht++]=It,qt[Ht++]=Pt,qt[Ht++]=Mn,Mn=e;var a=It;e=Pt;var r=32-Nt(a)-1;a&=~(1<<r),n+=1;var o=32-Nt(t)+r;if(30<o){var d=r-r%5;o=(a&(1<<d)-1).toString(32),a>>=d,r-=d,It=1<<32-Nt(t)+r|n<<r|a,Pt=o+e}else It=1<<o|n<<r|a,Pt=e}function wc(e){e.return!==null&&(rn(e,1),Pf(e,1,0))}function Ec(e){for(;e===ss;)ss=Kl[--Vl],Kl[Vl]=null,Ja=Kl[--Vl],Kl[Vl]=null;for(;e===Mn;)Mn=qt[--Ht],qt[Ht]=null,Pt=qt[--Ht],qt[Ht]=null,It=qt[--Ht],qt[Ht]=null}function eh(e,t){qt[Ht++]=It,qt[Ht++]=Pt,qt[Ht++]=Mn,It=t.id,Pt=t.overflow,Mn=e}var at=null,Le=null,ve=!1,Cn=null,Yt=!1,Ac=Error(s(519));function zn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wa(Bt(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<vi.length;n++)ge(vi[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),mf(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),pf(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=sn),t=!0):t=!1,t||zn(e,!0)}function nh(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:at=at.return}}function Ql(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&&Le&&zn(e),nh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=_m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=_m(e)}else t===27?(t=Le,Vn(e.type)?(e=Xr,Xr=null,Le=e):Le=t):Le=at?Gt(e.stateNode.nextSibling):null;return!0}function fl(){Le=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 Wa(e){Cn===null?Cn=[e]:Cn.push(e)}var Nc=N(null),hl=null,on=null;function Dn(e,t,n){W(Nc,t._currentValue),t._currentValue=n}function fn(e){e._currentValue=Nc.current,$(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 xc(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var d=r.child;o=o.firstContext;e:for(;o!==null;){var y=o;o=r;for(var S=0;S<t.length;S++)if(y.context===t[S]){o.lanes|=n,y=o.alternate,y!==null&&(y.lanes|=n),_c(o.return,n,e),a||(d=null);break e}o=y.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(s(341));d.lanes|=n,o=d.alternate,o!==null&&(o.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 Xl(e,t,n,a){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!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;_t(r.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(r===de.current){if(d=r.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ei):e=[Ei])}r=r.return}e!==null&&xc(t,e,n,a),t.flags|=262144}function us(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function dl(e){hl=e,on=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return lh(hl,e)}function cs(e,t){return hl===null&&dl(e),lh(e,t)}function lh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},on===null){if(e===null)throw Error(s(308));on=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else on=on.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,Qe={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mc(){return{controller:new a0,data:new Map,refCount:0}}function Fa(e){e.refCount--,e.refCount===0&&i0(s0,function(){e.controller.abort()})}var Ia=null,Cc=0,Zl=0,Jl=null;function u0(e,t){if(Ia===null){var n=Ia=[];Cc=0,Zl=Lr(),Jl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Cc++,t.then(ah,ah),t}function ah(){if(--Cc===0&&Ia!==null){Jl!==null&&(Jl.status="fulfilled");var e=Ia;Ia=null,Zl=0,Jl=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=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&u0(e,t),ih!==null&&ih(e,t)};var ml=N(null);function zc(){var e=ml.current;return e!==null?e:ze.pooledCache}function rs(e,t){t===null?W(ml,ml.current):W(ml,t.pool)}function sh(){var e=zc();return e===null?null:{parent:Qe._currentValue,pool:e}}var Wl=Error(s(460)),Dc=Error(s(474)),os=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(sn,sn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oh(e),e;default:if(typeof t.status=="string")t.then(sn,sn);else{if(e=ze,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,oh(e),e}throw pl=t,Wl}}function gl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(pl=n,Wl):n}}var pl=null;function rh(){if(pl===null)throw Error(s(459));var e=pl;return pl=null,e}function oh(e){if(e===Wl||e===os)throw Error(s(483))}var Fl=null,Pa=0;function hs(e){var t=Pa;return Pa+=1,Fl===null&&(Fl=[]),ch(Fl,e,t)}function ei(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ds(e,t){throw t.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fh(e){function t(x,A){if(e){var C=x.deletions;C===null?(x.deletions=[A],x.flags|=16):C.push(A)}}function n(x,A){if(!e)return null;for(;A!==null;)t(x,A),A=A.sibling;return null}function a(x){for(var A=new Map;x!==null;)x.key!==null?A.set(x.key,x):A.set(x.index,x),x=x.sibling;return A}function r(x,A){return x=cn(x,A),x.index=0,x.sibling=null,x}function o(x,A,C){return x.index=C,e?(C=x.alternate,C!==null?(C=C.index,C<A?(x.flags|=67108866,A):C):(x.flags|=67108866,A)):(x.flags|=1048576,A)}function d(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function y(x,A,C,q){return A===null||A.tag!==6?(A=Sc(C,x.mode,q),A.return=x,A):(A=r(A,C),A.return=x,A)}function S(x,A,C,q){var ne=C.type;return ne===b?R(x,A,C.props.children,q,C.key):A!==null&&(A.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===X&&gl(ne)===A.type)?(A=r(A,C.props),ei(A,C),A.return=x,A):(A=is(C.type,C.key,C.props,null,x.mode,q),ei(A,C),A.return=x,A)}function z(x,A,C,q){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=Tc(C,x.mode,q),A.return=x,A):(A=r(A,C.children||[]),A.return=x,A)}function R(x,A,C,q,ne){return A===null||A.tag!==7?(A=ol(C,x.mode,q,ne),A.return=x,A):(A=r(A,C),A.return=x,A)}function Y(x,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Sc(""+A,x.mode,C),A.return=x,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case E:return C=is(A.type,A.key,A.props,null,x.mode,C),ei(C,A),C.return=x,C;case O:return A=Tc(A,x.mode,C),A.return=x,A;case X:return A=gl(A),Y(x,A,C)}if(Ie(A)||H(A))return A=ol(A,x.mode,C,null),A.return=x,A;if(typeof A.then=="function")return Y(x,hs(A),C);if(A.$$typeof===K)return Y(x,cs(x,A),C);ds(x,A)}return null}function D(x,A,C,q){var ne=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ne!==null?null:y(x,A,""+C,q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case E:return C.key===ne?S(x,A,C,q):null;case O:return C.key===ne?z(x,A,C,q):null;case X:return C=gl(C),D(x,A,C,q)}if(Ie(C)||H(C))return ne!==null?null:R(x,A,C,q,null);if(typeof C.then=="function")return D(x,A,hs(C),q);if(C.$$typeof===K)return D(x,A,cs(x,C),q);ds(x,C)}return null}function U(x,A,C,q,ne){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return x=x.get(C)||null,y(A,x,""+q,ne);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case E:return x=x.get(q.key===null?C:q.key)||null,S(A,x,q,ne);case O:return x=x.get(q.key===null?C:q.key)||null,z(A,x,q,ne);case X:return q=gl(q),U(x,A,C,q,ne)}if(Ie(q)||H(q))return x=x.get(C)||null,R(A,x,q,ne,null);if(typeof q.then=="function")return U(x,A,C,hs(q),ne);if(q.$$typeof===K)return U(x,A,C,cs(A,q),ne);ds(A,q)}return null}function I(x,A,C,q){for(var ne=null,Se=null,te=A,he=A=0,ye=null;te!==null&&he<C.length;he++){te.index>he?(ye=te,te=null):ye=te.sibling;var Te=D(x,te,C[he],q);if(Te===null){te===null&&(te=ye);break}e&&te&&Te.alternate===null&&t(x,te),A=o(Te,A,he),Se===null?ne=Te:Se.sibling=Te,Se=Te,te=ye}if(he===C.length)return n(x,te),ve&&rn(x,he),ne;if(te===null){for(;he<C.length;he++)te=Y(x,C[he],q),te!==null&&(A=o(te,A,he),Se===null?ne=te:Se.sibling=te,Se=te);return ve&&rn(x,he),ne}for(te=a(te);he<C.length;he++)ye=U(te,x,he,C[he],q),ye!==null&&(e&&ye.alternate!==null&&te.delete(ye.key===null?he:ye.key),A=o(ye,A,he),Se===null?ne=ye:Se.sibling=ye,Se=ye);return e&&te.forEach(function(Wn){return t(x,Wn)}),ve&&rn(x,he),ne}function ae(x,A,C,q){if(C==null)throw Error(s(151));for(var ne=null,Se=null,te=A,he=A=0,ye=null,Te=C.next();te!==null&&!Te.done;he++,Te=C.next()){te.index>he?(ye=te,te=null):ye=te.sibling;var Wn=D(x,te,Te.value,q);if(Wn===null){te===null&&(te=ye);break}e&&te&&Wn.alternate===null&&t(x,te),A=o(Wn,A,he),Se===null?ne=Wn:Se.sibling=Wn,Se=Wn,te=ye}if(Te.done)return n(x,te),ve&&rn(x,he),ne;if(te===null){for(;!Te.done;he++,Te=C.next())Te=Y(x,Te.value,q),Te!==null&&(A=o(Te,A,he),Se===null?ne=Te:Se.sibling=Te,Se=Te);return ve&&rn(x,he),ne}for(te=a(te);!Te.done;he++,Te=C.next())Te=U(te,x,he,Te.value,q),Te!==null&&(e&&Te.alternate!==null&&te.delete(Te.key===null?he:Te.key),A=o(Te,A,he),Se===null?ne=Te:Se.sibling=Te,Se=Te);return e&&te.forEach(function(bv){return t(x,bv)}),ve&&rn(x,he),ne}function Ce(x,A,C,q){if(typeof C=="object"&&C!==null&&C.type===b&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case E:e:{for(var ne=C.key;A!==null;){if(A.key===ne){if(ne=C.type,ne===b){if(A.tag===7){n(x,A.sibling),q=r(A,C.props.children),q.return=x,x=q;break e}}else if(A.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===X&&gl(ne)===A.type){n(x,A.sibling),q=r(A,C.props),ei(q,C),q.return=x,x=q;break e}n(x,A);break}else t(x,A);A=A.sibling}C.type===b?(q=ol(C.props.children,x.mode,q,C.key),q.return=x,x=q):(q=is(C.type,C.key,C.props,null,x.mode,q),ei(q,C),q.return=x,x=q)}return d(x);case O:e:{for(ne=C.key;A!==null;){if(A.key===ne)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(x,A.sibling),q=r(A,C.children||[]),q.return=x,x=q;break e}else{n(x,A);break}else t(x,A);A=A.sibling}q=Tc(C,x.mode,q),q.return=x,x=q}return d(x);case X:return C=gl(C),Ce(x,A,C,q)}if(Ie(C))return I(x,A,C,q);if(H(C)){if(ne=H(C),typeof ne!="function")throw Error(s(150));return C=ne.call(C),ae(x,A,C,q)}if(typeof C.then=="function")return Ce(x,A,hs(C),q);if(C.$$typeof===K)return Ce(x,A,cs(x,C),q);ds(x,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(x,A.sibling),q=r(A,C),q.return=x,x=q):(n(x,A),q=Sc(C,x.mode,q),q.return=x,x=q),d(x)):n(x,A)}return function(x,A,C,q){try{Pa=0;var ne=Ce(x,A,C,q);return Fl=null,ne}catch(te){if(te===Wl||te===os)throw te;var Se=xt(29,te,null,x.mode);return Se.lanes=q,Se.return=x,Se}finally{}}}var yl=fh(!0),hh=fh(!1),Ln=!1;function Lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jc(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 jn(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=as(e),Jf(e,null,n),t}return ls(e,a,t,n),as(e)}function ti(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,nf(e,n)}}function Uc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:o,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 ni(){if(kc){var e=Jl;if(e!==null)throw e}}function li(e,t,n,a){kc=!1;var r=e.updateQueue;Ln=!1;var o=r.firstBaseUpdate,d=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var S=y,z=S.next;S.next=null,d===null?o=z:d.next=z,d=S;var R=e.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==d&&(y===null?R.firstBaseUpdate=z:y.next=z,R.lastBaseUpdate=S))}if(o!==null){var Y=r.baseState;d=0,R=z=S=null,y=o;do{var D=y.lane&-536870913,U=D!==y.lane;if(U?(pe&D)===D:(a&D)===D){D!==0&&D===Zl&&(kc=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var I=e,ae=y;D=t;var Ce=n;switch(ae.tag){case 1:if(I=ae.payload,typeof I=="function"){Y=I.call(Ce,Y,D);break e}Y=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ae.payload,D=typeof I=="function"?I.call(Ce,Y,D):I,D==null)break e;Y=v({},Y,D);break e;case 2:Ln=!0}}D=y.callback,D!==null&&(e.flags|=64,U&&(e.flags|=8192),U=r.callbacks,U===null?r.callbacks=[D]:U.push(D))}else U={lane:D,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(z=R=U,S=Y):R=R.next=U,d|=D;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;U=y,y=U.next,U.next=null,r.lastBaseUpdate=U,r.shared.pending=null}}while(!0);R===null&&(S=Y),r.baseState=S,r.firstBaseUpdate=z,r.lastBaseUpdate=R,o===null&&(r.shared.lanes=0),Hn|=d,e.lanes=d,e.memoizedState=Y}}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 Il=N(null),ms=N(0);function gh(e,t){e=Sn,W(ms,e),W(Il,t),Sn=e|t.baseLanes}function Rc(){W(ms,Sn),W(Il,Il.current)}function Bc(){Sn=ms.current,$(Il),$(ms)}var Mt=N(null),$t=null;function kn(e){var t=e.alternate;W($e,$e.current&1),W(Mt,e),$t===null&&(t===null||Il.current!==null||t.memoizedState!==null)&&($t=e)}function qc(e){W($e,$e.current),W(Mt,e),$t===null&&($t=e)}function ph(e){e.tag===22?(W($e,$e.current),W(Mt,e),$t===null&&($t=e)):Rn()}function Rn(){W($e,$e.current),W(Mt,Mt.current)}function Ct(e){$(Mt),$t===e&&($t=null),$($e)}var $e=N(0);function gs(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 hn=0,fe=null,xe=null,Xe=null,ps=!1,Pl=!1,vl=!1,ys=0,ai=0,ea=null,r0=0;function He(){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(!_t(e[n],t[n]))return!1;return!0}function Yc(e,t,n,a,r,o){return hn=o,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Ph:nr,vl=!1,o=n(a,r),vl=!1,Pl&&(o=vh(t,n,a,r)),yh(e),o}function yh(e){k.H=ui;var t=xe!==null&&xe.next!==null;if(hn=0,Xe=xe=fe=null,ps=!1,ai=0,ea=null,t)throw Error(s(300));e===null||Ze||(e=e.dependencies,e!==null&&us(e)&&(Ze=!0))}function vh(e,t,n,a){fe=e;var r=0;do{if(Pl&&(ea=null),ai=0,Pl=!1,25<=r)throw Error(s(301));if(r+=1,Xe=xe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}k.H=ed,o=t(n,a)}while(Pl);return o}function o0(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?ii(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(fe.flags|=1024),t}function $c(){var e=ys!==0;return ys=0,e}function Gc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Kc(e){if(ps){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ps=!1}hn=0,Xe=xe=fe=null,Pl=!1,ai=ys=0,ea=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?fe.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ge(){if(xe===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Xe===null?fe.memoizedState:Xe.next;if(t!==null)Xe=t,xe=e;else{if(e===null)throw fe.alternate===null?Error(s(467)):Error(s(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Xe===null?fe.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function vs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ii(e){var t=ai;return ai+=1,ea===null&&(ea=[]),e=ch(ea,e,t),t=fe,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Ph:nr),e}function bs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ii(e);if(e.$$typeof===K)return it(e)}throw Error(s(438,String(e)))}function Vc(e){var t=null,n=fe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=fe.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=vs(),fe.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]=ce;return t.index++,n}function dn(e,t){return typeof t=="function"?t(e):t}function Ss(e){var t=Ge();return Qc(t,xe,e)}function Qc(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var r=e.baseQueue,o=a.pending;if(o!==null){if(r!==null){var d=r.next;r.next=o.next,o.next=d}t.baseQueue=r=o,a.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var y=d=null,S=null,z=t,R=!1;do{var Y=z.lane&-536870913;if(Y!==z.lane?(pe&Y)===Y:(hn&Y)===Y){var D=z.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Y===Zl&&(R=!0);else if((hn&D)===D){z=z.next,D===Zl&&(R=!0);continue}else Y={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=Y,d=o):S=S.next=Y,fe.lanes|=D,Hn|=D;Y=z.action,vl&&n(o,Y),o=z.hasEagerState?z.eagerState:n(o,Y)}else D={lane:Y,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=D,d=o):S=S.next=D,fe.lanes|=Y,Hn|=Y;z=z.next}while(z!==null&&z!==t);if(S===null?d=o:S.next=y,!_t(o,e.memoizedState)&&(Ze=!0,R&&(n=Jl,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=S,a.lastRenderedState=o}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Xc(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do o=e(o,d.action),d=d.next;while(d!==r);_t(o,t.memoizedState)||(Ze=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function bh(e,t,n){var a=fe,r=Ge(),o=ve;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!_t((xe||r).memoizedState,n);if(d&&(r.memoizedState=n,Ze=!0),r=r.queue,Wc(wh.bind(null,a,r,e),[e]),r.getSnapshot!==t||d||Xe!==null&&Xe.memoizedState.tag&1){if(a.flags|=2048,ta(9,{destroy:void 0},Th.bind(null,a,r,n,t),null),ze===null)throw Error(s(349));o||(hn&127)!==0||Sh(a,t,n)}return n}function Sh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t=vs(),fe.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!_t(e,n)}catch{return!0}}function Ah(e){var t=rl(e,2);t!==null&&bt(t,e,2)}function Zc(e){var t=ft();if(typeof e=="function"){var n=e;if(e=n(),vl){Nn(!0);try{n()}finally{Nn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:e},t}function Oh(e,t,n,a){return e.baseState=n,Qc(e,xe,typeof a=="function"?a:dn)}function f0(e,t,n,a,r){if(Es(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};k.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Nh(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Nh(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var o=k.T,d={};k.T=d;try{var y=n(r,a),S=k.S;S!==null&&S(d,y),_h(e,t,y)}catch(z){Jc(e,t,z)}finally{o!==null&&d.types!==null&&(o.types=d.types),k.T=o}}else try{o=n(r,a),_h(e,t,o)}catch(z){Jc(e,t,z)}}function _h(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){xh(e,t,a)},function(a){return Jc(e,t,a)}):xh(e,t,n)}function xh(e,t,n){t.status="fulfilled",t.value=n,Mh(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,Mh(t),t=t.next;while(t!==a)}e.action=null}function Mh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ch(e,t){return t}function zh(e,t){if(ve){var n=ze.formState;if(n!==null){e:{var a=fe;if(ve){if(Le){t:{for(var r=Le,o=Yt;r.nodeType!==8;){if(!o){r=null;break t}if(r=Gt(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){Le=Gt(r.nextSibling),a=r.data==="F!";break e}}zn(a)}a=!1}a&&(t=n[0])}}return n=ft(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:t},n.queue=a,n=Wh.bind(null,fe,a),a.dispatch=n,a=Zc(!1),o=tr.bind(null,fe,!1,a.queue),a=ft(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=f0.bind(null,fe,r,o,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Dh(e){var t=Ge();return Lh(t,xe,e)}function Lh(e,t,n){if(t=Qc(e,t,Ch)[0],e=Ss(dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ii(t)}catch(d){throw d===Wl?os:d}else a=t;t=Ge();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(fe.flags|=2048,ta(9,{destroy:void 0},h0.bind(null,r,n),null)),[a,o,e]}function h0(e,t){e.action=t}function jh(e){var t=Ge(),n=xe;if(n!==null)return Lh(t,n,e);Ge(),t=t.memoizedState,n=Ge();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function ta(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=fe.updateQueue,t===null&&(t=vs(),fe.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 Uh(){return Ge().memoizedState}function Ts(e,t,n,a){var r=ft();fe.flags|=e,r.memoizedState=ta(1|t,{destroy:void 0},n,a===void 0?null:a)}function ws(e,t,n,a){var r=Ge();a=a===void 0?null:a;var o=r.memoizedState.inst;xe!==null&&a!==null&&Hc(a,xe.memoizedState.deps)?r.memoizedState=ta(t,o,n,a):(fe.flags|=e,r.memoizedState=ta(1|t,o,n,a))}function kh(e,t){Ts(8390656,8,e,t)}function Wc(e,t){ws(2048,8,e,t)}function d0(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=vs(),fe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rh(e){var t=Ge().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 ws(4,2,e,t)}function qh(e,t){return ws(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,ws(4,4,Hh.bind(null,t,e),n)}function Fc(){}function $h(e,t){var n=Ge();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=Ge();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Hc(t,a[1]))return a[0];if(a=e(),vl){Nn(!0);try{e()}finally{Nn(!1)}}return n.memoizedState=[a,t],a}function Ic(e,t,n){return n===void 0||(hn&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Kd(),fe.lanes|=e,Hn|=e,n)}function Kh(e,t,n,a){return _t(n,t)?n:Il.current!==null?(e=Ic(e,n,a),_t(e,t)||(Ze=!0),e):(hn&42)===0||(hn&1073741824)!==0&&(pe&261930)===0?(Ze=!0,e.memoizedState=n):(e=Kd(),fe.lanes|=e,Hn|=e,t)}function Vh(e,t,n,a,r){var o=Q.p;Q.p=o!==0&&8>o?o:8;var d=k.T,y={};k.T=y,tr(e,!1,t,n);try{var S=r(),z=k.S;if(z!==null&&z(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var R=c0(S,a);si(e,t,R,Lt(e))}else si(e,t,a,Lt(e))}catch(Y){si(e,t,{then:function(){},status:"rejected",reason:Y},Lt())}finally{Q.p=o,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:dn,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,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),si(e,t.next.queue,{},Lt())}function er(){return it(Ei)}function Zh(){return Ge().memoizedState}function Jh(){return Ge().memoizedState}function g0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Lt();e=jn(n);var a=Un(t,e,n);a!==null&&(bt(a,t,n),ti(a,t,n)),t={cache:Mc()},e.payload=t;return}t=t.return}}function p0(e,t,n){var a=Lt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(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=Lt();si(e,t,n,a)}function si(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Fh(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,y=o(d,n);if(r.hasEagerState=!0,r.eagerState=y,_t(y,d))return ls(e,t,r,0),ze===null&&ns(),!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},Es(e)){if(t)throw Error(s(479))}else t=vc(e,n,a,2),t!==null&&bt(t,e,2)}function Es(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Fh(e,t){Pl=ps=!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,nf(e,n)}}var ui={readContext:it,use:bs,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};ui.useEffectEvent=He;var Ph={readContext:it,use:bs,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:kh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ts(4194308,4,Hh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ts(4194308,4,e,t)},useInsertionEffect:function(e,t){Ts(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var a=e();if(vl){Nn(!0);try{e()}finally{Nn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ft();if(n!==void 0){var r=n(t);if(vl){Nn(!0);try{n(t)}finally{Nn(!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,fe,e),[a.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Zc(e);var t=e.queue,n=Wh.bind(null,fe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Fc,useDeferredValue:function(e,t){var n=ft();return Ic(n,e,t)},useTransition:function(){var e=Zc(!1);return e=Vh.bind(null,fe,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=fe,r=ft();if(ve){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),ze===null)throw Error(s(349));(pe&127)!==0||Sh(a,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,kh(wh.bind(null,a,o,e),[e]),a.flags|=2048,ta(9,{destroy:void 0},Th.bind(null,a,o,n,t),null),n},useId:function(){var e=ft(),t=ze.identifierPrefix;if(ve){var n=Pt,a=It;n=(a&~(1<<32-Nt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ys++,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=ft();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,fe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vc,useCacheRefresh:function(){return ft().memoizedState=g0.bind(null,fe)},useEffectEvent:function(e){var t=ft(),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:bs,useCallback:$h,useContext:it,useEffect:Wc,useImperativeHandle:Yh,useInsertionEffect:Bh,useLayoutEffect:qh,useMemo:Gh,useReducer:Ss,useRef:Uh,useState:function(){return Ss(dn)},useDebugValue:Fc,useDeferredValue:function(e,t){var n=Ge();return Kh(n,xe.memoizedState,e,t)},useTransition:function(){var e=Ss(dn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ii(e),t]},useSyncExternalStore:bh,useId:Zh,useHostTransitionStatus:er,useFormState:Dh,useActionState:Dh,useOptimistic:function(e,t){var n=Ge();return Oh(n,xe,e,t)},useMemoCache:Vc,useCacheRefresh:Jh};nr.useEffectEvent=Rh;var ed={readContext:it,use:bs,useCallback:$h,useContext:it,useEffect:Wc,useImperativeHandle:Yh,useInsertionEffect:Bh,useLayoutEffect:qh,useMemo:Gh,useReducer:Xc,useRef:Uh,useState:function(){return Xc(dn)},useDebugValue:Fc,useDeferredValue:function(e,t){var n=Ge();return xe===null?Ic(n,e,t):Kh(n,xe.memoizedState,e,t)},useTransition:function(){var e=Xc(dn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ii(e),t]},useSyncExternalStore:bh,useId:Zh,useHostTransitionStatus:er,useFormState:jh,useActionState:jh,useOptimistic:function(e,t){var n=Ge();return xe!==null?Oh(n,xe,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=Lt(),r=jn(a);r.payload=t,n!=null&&(r.callback=n),t=Un(e,r,a),t!==null&&(bt(t,e,a),ti(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Lt(),r=jn(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Un(e,r,a),t!==null&&(bt(t,e,a),ti(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Lt(),a=jn(n);a.tag=2,t!=null&&(a.callback=t),t=Un(e,a,n),t!==null&&(bt(t,e,n),ti(t,e,n))}};function td(e,t,n,a,r,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,d):t.prototype&&t.prototype.isPureReactComponent?!Xa(n,a)||!Xa(r,o):!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 bl(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){ts(e)}function ad(e){console.error(e)}function id(e){ts(e)}function As(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=jn(n),n.tag=3,n.payload={element:null},n.callback=function(){As(e,t)},n}function ud(e){return e=jn(e),e.tag=3,e}function cd(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=a.value;e.payload=function(){return r(o)},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"&&(Yn===null?Yn=new Set([this]):Yn.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&&Xl(t,n,r,!0),n=Mt.current,n!==null){switch(n.tag){case 31:case 13:return $t===null?ks():n.alternate===null&&Ye===0&&(Ye=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),Cr(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)),Cr(e,a,r)),!1}throw Error(s(435,n.tag))}return Cr(e,a,r),ks(),!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}),Wa(Bt(e,n)))):(a!==Ac&&(t=Error(s(423),{cause:a}),Wa(Bt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Bt(a,n),r=ir(e.stateNode,a,r),Uc(e,r),Ye!==4&&(Ye=2)),!1;var o=Error(s(520),{cause:a});if(o=Bt(o,n),gi===null?gi=[o]:gi.push(o),Ye!==4&&(Ye=2),t===null)return!0;a=Bt(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),Uc(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Yn===null||!Yn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=ud(r),cd(r,e,n,a),Uc(n,r),!1}n=n.return}while(n!==null);return!1}var sr=Error(s(461)),Ze=!1;function st(e,t,n,a){t.child=e===null?hh(t,null,n,a):yl(t,e.child,n,a)}function rd(e,t,n,a,r){n=n.render;var o=t.ref;if("ref"in a){var d={};for(var y in a)y!=="ref"&&(d[y]=a[y])}else d=a;return dl(t),a=Yc(e,t,n,d,o,r),y=$c(),e!==null&&!Ze?(Gc(e,t,r),mn(e,t,r)):(ve&&y&&wc(t),t.flags|=1,st(e,t,a,r),t.child)}function od(e,t,n,a,r){if(e===null){var o=n.type;return typeof o=="function"&&!bc(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,fd(e,t,o,a,r)):(e=is(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!mr(e,r)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xa,n(d,a)&&e.ref===t.ref)return mn(e,t,r)}return t.flags|=1,e=cn(o,a),e.ref=t.ref,e.return=t,t.child=e}function fd(e,t,n,a,r){if(e!==null){var o=e.memoizedProps;if(Xa(o,a)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=a=o,mr(e,r))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,mn(e,t,r)}return ur(e,t,n,a,r)}function hd(e,t,n,a){var r=a.children,o=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(o=o!==null?o.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&~o}else a=0,t.child=null;return dd(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rs(t,o!==null?o.cachePool:null),o!==null?gh(t,o):Rc(),ph(t);else return a=t.lanes=536870912,dd(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(rs(t,o.cachePool),gh(t,o),Rn(),t.memoizedState=null):(e!==null&&rs(t,null),Rc(),Rn());return st(e,t,r,n),t.child}function ci(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 o=zc();return o=o===null?null:{parent:Qe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&rs(t,null),Rc(),ph(t),e!==null&&Xl(e,t,a,!0),t.childLanes=r,null}function Os(e,t){return t=_s({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 yl(t,e.child,null,n),e=Os(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=Os(t,a),t.lanes=536870912,ci(null,e);if(qc(t),(e=Le)?(e=Nm(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},n=Ff(e),n.return=t,t.child=n,at=t,Le=null)):e=null,e===null)throw zn(t);return t.lanes=536870912,null}return Os(t,a)}var o=e.memoizedState;if(o!==null){var d=o.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(Ze||Xl(e,t,n,!1),r=(n&e.childLanes)!==0,Ze||r){if(a=ze,a!==null&&(d=lf(a,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,rl(e,d),bt(a,e,d),sr;ks(),t=md(e,t,n)}else e=o.treeContext,Le=Gt(d.nextSibling),at=t,ve=!0,Cn=null,Yt=!1,e!==null&&eh(t,e),t=Os(t,a),t.flags|=4096;return t}return e=cn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ns(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 dl(t),n=Yc(e,t,n,a,void 0,r),a=$c(),e!==null&&!Ze?(Gc(e,t,r),mn(e,t,r)):(ve&&a&&wc(t),t.flags|=1,st(e,t,n,r),t.child)}function gd(e,t,n,a,r,o){return dl(t),t.updateQueue=null,n=vh(t,a,n,r),yh(e),a=$c(),e!==null&&!Ze?(Gc(e,t,o),mn(e,t,o)):(ve&&a&&wc(t),t.flags|=1,st(e,t,n,o),t.child)}function pd(e,t,n,a,r){if(dl(t),t.stateNode===null){var o=Gl,d=n.contextType;typeof d=="object"&&d!==null&&(o=it(d)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ar,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Lc(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?it(d):Gl,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(lr(t,n,d,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&ar.enqueueReplaceState(o,o.state,null),li(t,a,o,r),ni(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var y=t.memoizedProps,S=bl(n,y);o.props=S;var z=o.context,R=n.contextType;d=Gl,typeof R=="object"&&R!==null&&(d=it(R));var Y=n.getDerivedStateFromProps;R=typeof Y=="function"||typeof o.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,R||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(y||z!==d)&&nd(t,o,a,d),Ln=!1;var D=t.memoizedState;o.state=D,li(t,a,o,r),ni(),z=t.memoizedState,y||D!==z||Ln?(typeof Y=="function"&&(lr(t,n,Y,a),z=t.memoizedState),(S=Ln||td(t,n,S,a,D,z,d))?(R||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),o.props=a,o.state=z,o.context=d,a=S):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,jc(e,t),d=t.memoizedProps,R=bl(n,d),o.props=R,Y=t.pendingProps,D=o.context,z=n.contextType,S=Gl,typeof z=="object"&&z!==null&&(S=it(z)),y=n.getDerivedStateFromProps,(z=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==Y||D!==S)&&nd(t,o,a,S),Ln=!1,D=t.memoizedState,o.state=D,li(t,a,o,r),ni();var U=t.memoizedState;d!==Y||D!==U||Ln||e!==null&&e.dependencies!==null&&us(e.dependencies)?(typeof y=="function"&&(lr(t,n,y,a),U=t.memoizedState),(R=Ln||td(t,n,R,a,D,U,S)||e!==null&&e.dependencies!==null&&us(e.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,U,S),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,U,S)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=U),o.props=a,o.state=U,o.context=S,a=R):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Ns(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=yl(t,e.child,null,r),t.child=yl(t,null,n,r)):st(e,t,n,r),t.memoizedState=o.state,e=t.child):e=mn(e,t,r),e}function yd(e,t,n,a){return fl(),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 or(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Dt),e}function vd(e,t,n){var a=t.pendingProps,r=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(r?kn(t):Rn(),(e=Le)?(e=Nm(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},n=Ff(e),n.return=t,t.child=n,at=t,Le=null)):e=null,e===null)throw zn(t);return Qr(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,r?(Rn(),r=t.mode,y=_s({mode:"hidden",children:y},r),a=ol(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=or(e,d,n),t.memoizedState=cr,ci(null,a)):(kn(t),fr(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(o)t.flags&256?(kn(t),t.flags&=-257,t=hr(e,t,n)):t.memoizedState!==null?(Rn(),t.child=e.child,t.flags|=128,t=null):(Rn(),y=a.fallback,r=t.mode,a=_s({mode:"visible",children:a.children},r),y=ol(y,r,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,yl(t,e.child,null,n),a=t.child,a.memoizedState=rr(n),a.childLanes=or(e,d,n),t.memoizedState=cr,t=ci(null,a));else if(kn(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,Wa({value:a,source:null,stack:null}),t=hr(e,t,n)}else if(Ze||Xl(e,t,n,!1),d=(n&e.childLanes)!==0,Ze||d){if(d=ze,d!==null&&(a=lf(d,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,rl(e,a),bt(d,e,a),sr;Vr(y)||ks(),t=hr(e,t,n)}else Vr(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Le=Gt(y.nextSibling),at=t,ve=!0,Cn=null,Yt=!1,e!==null&&eh(t,e),t=fr(t,a.children),t.flags|=4096);return t}return r?(Rn(),y=a.fallback,r=t.mode,S=e.child,z=S.sibling,a=cn(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,z!==null?y=cn(z,y):(y=ol(y,r,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,ci(null,a),a=t.child,y=e.child.memoizedState,y===null?y=rr(n):(r=y.cachePool,r!==null?(S=Qe._currentValue,r=r.parent!==S?{parent:S,pool:S}:r):r=sh(),y={baseLanes:y.baseLanes|n,cachePool:r}),a.memoizedState=y,a.childLanes=or(e,d,n),t.memoizedState=cr,ci(e.child,a)):(kn(t),n=e.child,e=n.sibling,n=cn(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 fr(e,t){return t=_s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _s(e,t){return e=xt(22,e,null,t),e.lanes=0,e}function hr(e,t,n){return yl(t,e.child,null,n),e=fr(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,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=r,d.treeForkCount=o)}function Sd(e,t,n){var a=t.pendingProps,r=a.revealOrder,o=a.tail;a=a.children;var d=$e.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,W($e,d),st(e,t,a,n),a=ve?Ja: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&&gs(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,o,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&&gs(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}dr(t,!0,n,null,o,a);break;case"together":dr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xl(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=cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=cn(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&&us(e)))}function b0(e,t,n){switch(t.tag){case 3:qe(t,t.stateNode.containerInfo),Dn(t,Qe,e.memoizedState.cache),fl();break;case 27:case 5:Et(t);break;case 4:qe(t,t.stateNode.containerInfo);break;case 10:Dn(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?(kn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?vd(e,t,n):(kn(t),e=mn(e,t,n),e!==null?e.sibling:null);kn(t);break;case 19:var r=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Xl(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),W($e,$e.current),a)break;return null;case 22:return t.lanes=0,hd(e,t,n,t.pendingProps);case 24:Dn(t,Qe,e.memoizedState.cache)}return mn(e,t,n)}function Td(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!mr(e,n)&&(t.flags&128)===0)return Ze=!1,b0(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,ve&&(t.flags&1048576)!==0&&Pf(t,Ja,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=gl(t.elementType),t.type=e,typeof e=="function")bc(e)?(a=bl(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===V){t.tag=14,t=od(null,t,e,a,n);break e}}throw t=be(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=bl(a,t.pendingProps),pd(e,t,a,r,n);case 3:e:{if(qe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var o=t.memoizedState;r=o.element,jc(e,t),li(t,a,null,n);var d=t.memoizedState;if(a=d.cache,Dn(t,Qe,a),a!==o.cache&&xc(t,[Qe],n,!0),ni(),a=d.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yd(e,t,a,n);break e}else if(a!==r){r=Bt(Error(s(424)),t),Wa(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(Le=Gt(e.firstChild),at=t,ve=!0,Cn=null,Yt=!0,n=hh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(fl(),a===r){t=mn(e,t,n);break e}st(e,t,a,n)}t=t.child}return t;case 26:return Ns(e,t),e===null?(n=Dm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ve||(n=t.type,e=t.pendingProps,a=Gs(ue.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 Et(t),e===null&&ve&&(a=t.stateNode=Mm(t.type,t.pendingProps,ue.current),at=t,Yt=!0,r=Le,Vn(t.type)?(Xr=r,Le=Gt(a.firstChild)):Le=r),st(e,t,t.pendingProps.children,n),Ns(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((r=a=Le)&&(a=J0(a,t.type,t.pendingProps,Yt),a!==null?(t.stateNode=a,at=t,Le=Gt(a.firstChild),Yt=!1,r=!0):r=!1),r||zn(t)),Et(t),r=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,a=o.children,$r(r,o)?a=null:d!==null&&$r(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Yc(e,t,o0,null,null,n),Ei._currentValue=r),Ns(e,t),st(e,t,a,n),t.child;case 6:return e===null&&ve&&((e=n=Le)&&(n=W0(n,t.pendingProps,Yt),n!==null?(t.stateNode=n,at=t,Le=null,e=!0):e=!1),e||zn(t)),null;case 13:return vd(e,t,n);case 4:return qe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=yl(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,Dn(t,t.type,a.value),st(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,dl(t),r=it(r),a=a(r),t.flags|=1,st(e,t,a,n),t.child;case 14:return od(e,t,t.type,t.pendingProps,n);case 15:return fd(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 dl(t),a=it(Qe),e===null?(r=zc(),r===null&&(r=ze,o=Mc(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:a,cache:r},Lc(t),Dn(t,Qe,r)):((e.lanes&n)!==0&&(jc(e,t),li(t,null,null,n),ni()),r=e.memoizedState,o=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Dn(t,Qe,a)):(a=o.cache,Dn(t,Qe,a),a!==r.cache&&xc(t,[Qe],n,!0))),st(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function gn(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 pl=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 pl=fs,Dc}function xs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ef():536870912,e.lanes|=t,ia|=t)}function ri(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 je(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 je(t),null;case 1:return je(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fn(Qe),Oe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ql(t)?gn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oc())),je(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(gn(t),o!==null?(je(t),wd(t,o)):(je(t),gr(t,r,null,a,n))):o?o!==e.memoizedState?(gn(t),je(t),wd(t,o)):(je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&gn(t),je(t),gr(t,r,e,a,n)),null;case 27:if(nl(t),n=ue.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&gn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return je(t),null}e=G.current,Ql(t)?th(t):(e=Mm(r,a,n),t.stateNode=e,gn(t))}return je(t),null;case 5:if(nl(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&gn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return je(t),null}if(o=G.current,Ql(t))th(t);else{var d=Gs(ue.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?d.createElement(r,{is:a.is}):d.createElement(r)}}o[lt]=t,o[dt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.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=o;e:switch(ut(o,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&&gn(t)}}return je(t),gr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&gn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Ql(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||zn(t,!0)}else e=Gs(e).createTextNode(a),e[lt]=t,t.stateNode=e}return je(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ql(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 fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(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 je(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Ql(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 fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(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),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xs(t,t.updateQueue),je(t),null);case 4:return Oe(),e===null&&Rr(t.stateNode.containerInfo),je(t),null;case 10:return fn(t.type),je(t),null;case 19:if($($e),a=t.memoizedState,a===null)return je(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)ri(a,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=gs(e),o!==null){for(t.flags|=128,ri(a,!1),e=o.updateQueue,t.updateQueue=e,xs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Wf(n,e),n=n.sibling;return W($e,$e.current&1|2),ve&&rn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&At()>Ls&&(t.flags|=128,r=!0,ri(a,!1),t.lanes=4194304)}else{if(!r)if(e=gs(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,xs(t,e),ri(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ve)return je(t),null}else 2*At()-a.renderingStartTime>Ls&&n!==536870912&&(t.flags|=128,r=!0,ri(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=At(),e.sibling=null,n=$e.current,W($e,r?n&1|2:n&1),ve&&rn(t,a.treeForkCount),e):(je(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&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),n=t.updateQueue,n!==null&&xs(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&&$(ml),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Qe),je(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(Qe),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nl(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(s(340));fl()}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));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $($e),null;case 4:return Oe(),null;case 10:return fn(t.type),null;case 22:case 23:return Ct(t),Bc(),e!==null&&$(ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Qe),null;case 25:return null;default:return null}}function Ed(e,t){switch(Ec(t),t.tag){case 3:fn(Qe),Oe();break;case 26:case 27:case 5:nl(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:$($e);break;case 10:fn(t.type);break;case 22:case 23:Ct(t),Bc(),e!==null&&$(ml);break;case 24:fn(Qe)}}function oi(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 o=n.create,d=n.inst;a=o(),d.destroy=a}n=n.next}while(n!==r)}}catch(y){_e(t,t.return,y)}}function Bn(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){var d=a.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,r=t;var S=n,z=y;try{z()}catch(R){_e(r,S,R)}}}a=a.next}while(a!==o)}}catch(R){_e(t,t.return,R)}}function Ad(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{mh(t,n)}catch(a){_e(e,e.return,a)}}}function Od(e,t,n){n.props=bl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){_e(e,t,a)}}function fi(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){_e(e,t,r)}}function en(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){_e(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){_e(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){_e(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){_e(e,e.return,r)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vn(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&&Vn(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=sn));else if(a!==4&&(a===27&&Vn(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&&Vn(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 xd(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(o){_e(e,e.return,o)}}var pn=!1,Je=!1,br=!1,Md=typeof WeakSet=="function"?WeakSet:Set,nt=null;function w0(e,t){if(e=e.containerInfo,Hr=Ws,e=Yf(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,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var d=0,y=-1,S=-1,z=0,R=0,Y=e,D=null;t:for(;;){for(var U;Y!==n||r!==0&&Y.nodeType!==3||(y=d+r),Y!==o||a!==0&&Y.nodeType!==3||(S=d+a),Y.nodeType===3&&(d+=Y.nodeValue.length),(U=Y.firstChild)!==null;)D=Y,Y=U;for(;;){if(Y===e)break t;if(D===n&&++z===r&&(y=d),D===o&&++R===a&&(S=d),(U=Y.nextSibling)!==null)break;Y=D,D=Y.parentNode}Y=U}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yr={focusedElem:e,selectionRange:n},Ws=!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,o=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&&o!==null){e=void 0,n=t,r=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var I=bl(n.type,r);e=a.getSnapshotBeforeUpdate(I,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(ae){_e(n,n.return,ae)}}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 Cd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:vn(e,n),a&4&&oi(5,n);break;case 1:if(vn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){_e(n,n.return,d)}else{var r=bl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){_e(n,n.return,d)}}a&64&&Ad(n),a&512&&fi(n,n.return);break;case 3:if(vn(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){_e(n,n.return,d)}}break;case 27:t===null&&a&4&&xd(n);case 26:case 5:vn(e,n),t===null&&a&4&&Nd(n),a&512&&fi(n,n.return);break;case 12:vn(e,n);break;case 31:vn(e,n),a&4&&Ld(e,n);break;case 13:vn(e,n),a&4&&jd(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||pn,!a){t=t!==null&&t.memoizedState!==null||Je,r=pn;var o=Je;pn=a,(Je=t)&&!o?bn(e,n,(n.subtreeFlags&8772)!==0):vn(e,n),pn=r,Je=o}break;case 30:break;default:vn(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 Ue=null,gt=!1;function yn(e,t,n){for(n=n.child;n!==null;)Dd(e,t,n),n=n.sibling}function Dd(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Ua,n)}catch{}switch(n.tag){case 26:Je||en(n,t),yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Je||en(n,t);var a=Ue,r=gt;Vn(n.type)&&(Ue=n.stateNode,gt=!1),yn(e,t,n),Si(n.stateNode),Ue=a,gt=r;break;case 5:Je||en(n,t);case 6:if(a=Ue,r=gt,Ue=null,yn(e,t,n),Ue=a,gt=r,Ue!==null)if(gt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode)}catch(o){_e(n,t,o)}else try{Ue.removeChild(n.stateNode)}catch(o){_e(n,t,o)}break;case 18:Ue!==null&&(gt?(e=Ue,Am(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),da(e)):Am(Ue,n.stateNode));break;case 4:a=Ue,r=gt,Ue=n.stateNode.containerInfo,gt=!0,yn(e,t,n),Ue=a,gt=r;break;case 0:case 11:case 14:case 15:Bn(2,n,t),Je||Bn(4,n,t),yn(e,t,n);break;case 1:Je||(en(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Od(n,t,a)),yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:Je=(a=Je)||n.memoizedState!==null,yn(e,t,n),Je=a;break;default:yn(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{da(e)}catch(n){_e(t,t.return,n)}}}function jd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{da(e)}catch(n){_e(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 Md),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Md),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],o=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Vn(y.type)){Ue=y.stateNode,gt=!1;break e}break;case 5:Ue=y.stateNode,gt=!1;break e;case 3:case 4:Ue=y.stateNode.containerInfo,gt=!0;break e}y=y.return}if(Ue===null)throw Error(s(160));Dd(o,d,r),Ue=null,gt=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ud(t,e),t=t.sibling}var Zt=null;function Ud(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&&(Bn(3,e,e.return),oi(3,e),Bn(5,e,e.return));break;case 1:pt(t,e),yt(e),a&512&&(Je||n===null||en(n,n.return)),a&64&&pn&&(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=Zt;if(pt(t,e),yt(e),a&512&&(Je||n===null||en(n,n.return)),a&4){var o=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":o=r.getElementsByTagName("title")[0],(!o||o[Ba]||o[lt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(a),r.head.insertBefore(o,r.querySelector("head > title"))),ut(o,a,n),o[lt]=e,tt(o),a=o;break e;case"link":var d=Um("link","href",r).get(a+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(o=d[y],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break t}}o=r.createElement(a),ut(o,a,n),r.head.appendChild(o);break;case"meta":if(d=Um("meta","content",r).get(a+(n.content||""))){for(y=0;y<d.length;y++)if(o=d[y],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break t}}o=r.createElement(a),ut(o,a,n),r.head.appendChild(o);break;default:throw Error(s(468,a))}o[lt]=e,tt(o),a=o}e.stateNode=a}else km(r,e.type,e.stateNode);else e.stateNode=jm(r,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?km(r,e.type,e.stateNode):jm(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&&(Je||n===null||en(n,n.return)),n!==null&&a&4&&pr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(pt(t,e),yt(e),a&512&&(Je||n===null||en(n,n.return)),e.flags&32){r=e.stateNode;try{kl(r,"")}catch(I){_e(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){_e(e,e.return,I)}}break;case 3:if(Qs=null,r=Zt,Zt=Ks(t.containerInfo),pt(t,e),Zt=r,yt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{da(t.containerInfo)}catch(I){_e(e,e.return,I)}br&&(br=!1,kd(e));break;case 4:a=Zt,Zt=Ks(e.stateNode.containerInfo),pt(t,e),yt(e),Zt=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)&&(Ds=At()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Cs(e,a)));break;case 22:r=e.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,z=pn,R=Je;if(pn=z||r,Je=R||S,pt(t,e),Je=R,pn=z,yt(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||S||pn||Je||Sl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){S=n=t;try{if(o=S.stateNode,r)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=S.stateNode;var Y=S.memoizedProps.style,D=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;y.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(I){_e(S,S.return,I)}}}else if(t.tag===6){if(n===null){S=t;try{S.stateNode.nodeValue=r?"":S.memoizedProps}catch(I){_e(S,S.return,I)}}}else if(t.tag===18){if(n===null){S=t;try{var U=S.stateNode;r?Om(U,!0):Om(S.stateNode,!1)}catch(I){_e(S,S.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,o=yr(e);Ms(e,o,r);break;case 5:var d=n.stateNode;n.flags&32&&(kl(d,""),n.flags&=-33);var y=yr(e);Ms(e,y,d);break;case 3:case 4:var S=n.stateNode.containerInfo,z=yr(e);vr(e,z,S);break;default:throw Error(s(161))}}catch(R){_e(e,e.return,R)}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 vn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bn(4,t,t.return),Sl(t);break;case 1:en(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Od(t,t.return,n),Sl(t);break;case 27:Si(t.stateNode);case 26:case 5:en(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function bn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,o=t,d=o.flags;switch(o.tag){case 0:case 11:case 15:bn(r,o,n),oi(4,o);break;case 1:if(bn(r,o,n),a=o,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){_e(a,a.return,z)}if(a=o,r=a.updateQueue,r!==null){var y=a.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)dh(S[r],y)}catch(z){_e(a,a.return,z)}}n&&d&64&&Ad(o),fi(o,o.return);break;case 27:xd(o);case 26:case 5:bn(r,o,n),n&&a===null&&d&4&&Nd(o),fi(o,o.return);break;case 12:bn(r,o,n);break;case 31:bn(r,o,n),n&&d&4&&Ld(r,o);break;case 13:bn(r,o,n),n&&d&4&&jd(r,o);break;case 22:o.memoizedState===null&&bn(r,o,n),fi(o,o.return);break;case 30:break;default:bn(r,o,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&&Fa(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&&Fa(e))}function Jt(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:Jt(e,t,n,a),r&2048&&oi(9,t);break;case 1:Jt(e,t,n,a);break;case 3:Jt(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&&Fa(e)));break;case 12:if(r&2048){Jt(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,d=o.id,y=o.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){_e(t,t.return,S)}}else Jt(e,t,n,a);break;case 31:Jt(e,t,n,a);break;case 13:Jt(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,d=t.alternate,t.memoizedState!==null?o._visibility&2?Jt(e,t,n,a):hi(e,t):o._visibility&2?Jt(e,t,n,a):(o._visibility|=2,na(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Sr(d,t);break;case 24:Jt(e,t,n,a),r&2048&&Tr(t.alternate,t);break;default:Jt(e,t,n,a)}}function na(e,t,n,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,y=n,S=a,z=d.flags;switch(d.tag){case 0:case 11:case 15:na(o,d,y,S,r),oi(8,d);break;case 23:break;case 22:var R=d.stateNode;d.memoizedState!==null?R._visibility&2?na(o,d,y,S,r):hi(o,d):(R._visibility|=2,na(o,d,y,S,r)),r&&z&2048&&Sr(d.alternate,d);break;case 24:na(o,d,y,S,r),r&&z&2048&&Tr(d.alternate,d);break;default:na(o,d,y,S,r)}t=t.sibling}}function hi(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:hi(n,a),r&2048&&Sr(a.alternate,a);break;case 24:hi(n,a),r&2048&&Tr(a.alternate,a);break;default:hi(n,a)}t=t.sibling}}var di=8192;function la(e,t,n){if(e.subtreeFlags&di)for(e=e.child;e!==null;)Bd(e,t,n),e=e.sibling}function Bd(e,t,n){switch(e.tag){case 26:la(e,t,n),e.flags&di&&e.memoizedState!==null&&rv(n,Zt,e.memoizedState,e.memoizedProps);break;case 5:la(e,t,n);break;case 3:case 4:var a=Zt;Zt=Ks(e.stateNode.containerInfo),la(e,t,n),Zt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=di,di=16777216,la(e,t,n),di=a):la(e,t,n));break;default:la(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 mi(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:mi(e),e.flags&2048&&Bn(9,e,e.return);break;case 3:mi(e);break;case 12:mi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zs(e)):mi(e);break;default:mi(e)}}function zs(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:Bn(8,t,t.return),zs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zs(t));break;default:zs(t)}e=e.sibling}}function Yd(e,t){for(;nt!==null;){var n=nt;switch(n.tag){case 0:case 11:case 15:Bn(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:Fa(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,o=a.return;if(zd(a),a===n){nt=null;break e}if(r!==null){r.return=o,nt=r;break e}nt=o}}}var A0={getCacheForType:function(e){var t=it(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return it(Qe).controller.signal}},O0=typeof WeakMap=="function"?WeakMap:Map,Ee=0,ze=null,me=null,pe=0,Ne=0,zt=null,qn=!1,aa=!1,wr=!1,Sn=0,Ye=0,Hn=0,Tl=0,Er=0,Dt=0,ia=0,gi=null,vt=null,Ar=!1,Ds=0,$d=0,Ls=1/0,js=null,Yn=null,Pe=0,$n=null,sa=null,Tn=0,Or=0,Nr=null,Gd=null,pi=0,_r=null;function Lt(){return(Ee&2)!==0&&pe!==0?pe&-pe:k.T!==null?Lr():af()}function Kd(){if(Dt===0)if((pe&536870912)===0||ve){var e=$i;$i<<=1,($i&3932160)===0&&($i=262144),Dt=e}else Dt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),Dt}function bt(e,t,n){(e===ze&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(ua(e,0),Gn(e,pe,Dt,!1)),Ra(e,n),((Ee&2)===0||e!==ze)&&(e===ze&&((Ee&2)===0&&(Tl|=n),Ye===4&&Gn(e,pe,Dt,!1)),tn(e))}function Vd(e,t,n){if((Ee&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ka(e,t),r=a?x0(e,t):Mr(e,t,!0),o=a;do{if(r===0){aa&&!a&&Gn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!N0(n)){r=Mr(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)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=gi;var S=y.current.memoizedState.isDehydrated;if(S&&(ua(y,d).flags|=256),d=Mr(y,d,!1),d!==2){if(wr&&!S){y.errorRecoveryDisabledLanes|=o,Tl|=o,r=4;break e}o=vt,vt=r,o!==null&&(vt===null?vt=o:vt.push.apply(vt,o))}r=d}if(o=!1,r!==2)continue}}if(r===1){ua(e,0),Gn(e,t,0,!0);break}e:{switch(a=e,o=r,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Gn(a,t,Dt,!qn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=Ds+300-At(),10<r)){if(Gn(a,t,Dt,!qn),Ki(a,0,!0)!==0)break e;Tn=t,a.timeoutHandle=wm(Qd.bind(null,a,n,vt,js,Ar,t,Dt,Tl,ia,qn,o,"Throttled",-0,0),r);break e}Qd(a,n,vt,js,Ar,t,Dt,Tl,ia,qn,o,null,-0,0)}}break}while(!0);tn(e)}function Qd(e,t,n,a,r,o,d,y,S,z,R,Y,D,U){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sn},Bd(t,o,Y);var I=(o&62914560)===o?Ds-At():(o&4194048)===o?$d-At():0;if(I=ov(Y,I),I!==null){Tn=o,e.cancelPendingCommit=I(em.bind(null,e,t,o,n,a,r,d,y,S,R,Y,null,D,U)),Gn(e,o,d,!z);return}}em(e,t,o,n,a,r,d,y,S)}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],o=r.getSnapshot;r=r.value;try{if(!_t(o(),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 Gn(e,t,n,a){t&=~Er,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var o=31-Nt(r),d=1<<o;a[o]=-1,r&=~d}n!==0&&tf(e,n,t)}function Us(){return(Ee&6)===0?(yi(0),!1):!0}function xr(){if(me!==null){if(Ne===0)var e=me.return;else e=me,on=hl=null,Kc(e),Fl=null,Pa=0,e=me;for(;e!==null;)Ed(e.alternate,e),e=e.return;me=null}}function ua(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Q0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,xr(),ze=e,me=n=cn(e.current,null),pe=t,Ne=0,zt=null,qn=!1,aa=ka(e,t),wr=!1,ia=Dt=Er=Tl=Hn=Ye=0,vt=gi=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-Nt(a),o=1<<r;t|=e[r],a&=~o}return Sn=t,ns(),n}function Xd(e,t){fe=null,k.H=ui,t===Wl||t===os?(t=rh(),Ne=3):t===Dc?(t=rh(),Ne=4):Ne=t===sr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,me===null&&(Ye=1,As(e,Bt(t,e.current)))}function Zd(){var e=Mt.current;return e===null?!0:(pe&4194048)===pe?$t===null:(pe&62914560)===pe||(pe&536870912)!==0?e===$t:!1}function Jd(){var e=k.H;return k.H=ui,e===null?ui:e}function Wd(){var e=k.A;return k.A=A0,e}function ks(){Ye=4,qn||(pe&4194048)!==pe&&Mt.current!==null||(aa=!0),(Hn&134217727)===0&&(Tl&134217727)===0||ze===null||Gn(ze,pe,Dt,!1)}function Mr(e,t,n){var a=Ee;Ee|=2;var r=Jd(),o=Wd();(ze!==e||pe!==t)&&(js=null,ua(e,t)),t=!1;var d=Ye;e:do try{if(Ne!==0&&me!==null){var y=me,S=zt;switch(Ne){case 8:xr(),d=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var z=Ne;if(Ne=0,zt=null,ca(e,y,S,z),n&&aa){d=0;break e}break;default:z=Ne,Ne=0,zt=null,ca(e,y,S,z)}}_0(),d=Ye;break}catch(R){Xd(e,R)}while(!0);return t&&e.shellSuspendCounter++,on=hl=null,Ee=a,k.H=r,k.A=o,me===null&&(ze=null,pe=0,ns()),d}function _0(){for(;me!==null;)Fd(me)}function x0(e,t){var n=Ee;Ee|=2;var a=Jd(),r=Wd();ze!==e||pe!==t?(js=null,Ls=At()+500,ua(e,t)):aa=ka(e,t);e:do try{if(Ne!==0&&me!==null){t=me;var o=zt;t:switch(Ne){case 1:Ne=0,zt=null,ca(e,t,o,1);break;case 2:case 9:if(uh(o)){Ne=0,zt=null,Id(t);break}t=function(){Ne!==2&&Ne!==9||ze!==e||(Ne=7),tn(e)},o.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:uh(o)?(Ne=0,zt=null,Id(t)):(Ne=0,zt=null,ca(e,t,o,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){Ne=0,zt=null;var S=y.sibling;if(S!==null)me=S;else{var z=y.return;z!==null?(me=z,Rs(z)):me=null}break t}}Ne=0,zt=null,ca(e,t,o,5);break;case 6:Ne=0,zt=null,ca(e,t,o,6);break;case 8:xr(),Ye=6;break e;default:throw Error(s(462))}}M0();break}catch(R){Xd(e,R)}while(!0);return on=hl=null,k.H=a,k.A=r,Ee=n,me!==null?0:(ze=null,pe=0,ns(),Ye)}function M0(){for(;me!==null&&!Ip();)Fd(me)}function Fd(e){var t=Td(e.alternate,e,Sn);e.memoizedProps=e.pendingProps,t===null?Rs(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=Wf(t,Sn),t=Td(n,t,Sn)}e.memoizedProps=e.pendingProps,t===null?Rs(e):me=t}function ca(e,t,n,a){on=hl=null,Kc(t),Fl=null,Pa=0;var r=t.return;try{if(y0(e,r,t,n,pe)){Ye=1,As(e,Bt(n,e.current)),me=null;return}}catch(o){if(r!==null)throw me=r,o;Ye=1,As(e,Bt(n,e.current)),me=null;return}t.flags&32768?(ve||a===1?e=!0:aa||(pe&536870912)!==0?e=!1:(qn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Pd(t,e)):Rs(t)}function Rs(e){var t=e;do{if((t.flags&32768)!==0){Pd(t,qn);return}e=t.return;var n=S0(t.alternate,t,Sn);if(n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);Ye===0&&(Ye=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);Ye=6,me=null}function em(e,t,n,a,r,o,d,y,S){e.cancelPendingCommit=null;do Bs();while(Pe!==0);if((Ee&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=yc,cy(e,n,o,d,y,S),e===ze&&(me=ze=null,pe=0),sa=t,$n=e,Tn=n,Or=o,Nr=r,Gd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,L0(Hi,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=$n,t=sa,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{Ud(t,e);var o=Yr,d=Yf(e.containerInfo),y=o.focusedElem,S=o.selectionRange;if(d!==y&&y&&y.ownerDocument&&Hf(y.ownerDocument.documentElement,y)){if(S!==null&&hc(y)){var z=S.start,R=S.end;if(R===void 0&&(R=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(R,y.value.length);else{var Y=y.ownerDocument||document,D=Y&&Y.defaultView||window;if(D.getSelection){var U=D.getSelection(),I=y.textContent.length,ae=Math.min(S.start,I),Ce=S.end===void 0?ae:Math.min(S.end,I);!U.extend&&ae>Ce&&(d=Ce,Ce=ae,ae=d);var x=qf(y,ae),A=qf(y,Ce);if(x&&A&&(U.rangeCount!==1||U.anchorNode!==x.node||U.anchorOffset!==x.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var C=Y.createRange();C.setStart(x.node,x.offset),U.removeAllRanges(),ae>Ce?(U.addRange(C),U.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),U.addRange(C))}}}}for(Y=[],U=y;U=U.parentNode;)U.nodeType===1&&Y.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Y.length;y++){var q=Y[y];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Ws=!!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=$n,t=sa,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{Cd(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=$n,t=sa,n=Tn,a=Gd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Pe=5:(Pe=0,sa=$n=null,am(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Yn=null),Xu(n),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Ua,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 o=e.onRecoverableError,d=0;d<a.length;d++){var y=a[d];o(y.value,{componentStack:y.stack})}}finally{k.T=t,Q.p=r}}(Tn&3)!==0&&Bs(),tn(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===_r?pi++:(pi=0,_r=e):pi=0,yi(0)}}function am(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fa(t)))}function Bs(){return tm(),nm(),lm(),im()}function im(){if(Pe!==5)return!1;var e=$n,t=Or;Or=0;var n=Xu(Tn),a=k.T,r=Q.p;try{Q.p=32>n?32:n,k.T=null,n=Nr,Nr=null;var o=$n,d=Tn;if(Pe=0,sa=$n=null,Tn=0,(Ee&6)!==0)throw Error(s(331));var y=Ee;if(Ee|=4,Hd(o.current),Rd(o,o.current,d,n),Ee=y,yi(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Ua,o)}catch{}return!0}finally{Q.p=r,k.T=a,am(e,t)}}function sm(e,t,n){t=Bt(n,t),t=ir(e.stateNode,t,2),e=Un(e,t,2),e!==null&&(Ra(e,2),tn(e))}function _e(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"&&(Yn===null||!Yn.has(a))){e=Bt(n,e),n=ud(2),a=Un(t,n,2),a!==null&&(cd(n,a,t,e),Ra(a,2),tn(a));break}}t=t.return}}function Cr(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=C0.bind(null,e,t,n),t.then(e,e))}function C0(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(pe&n)===n&&(Ye===4||Ye===3&&(pe&62914560)===pe&&300>At()-Ds?(Ee&2)===0&&ua(e,0):Er|=n,ia===pe&&(ia=0)),tn(e)}function um(e,t){t===0&&(t=ef()),e=rl(e,t),e!==null&&(Ra(e,t),tn(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 qs=null,ra=null,zr=!1,Hs=!1,Dr=!1,Kn=0;function tn(e){e!==ra&&e.next===null&&(ra===null?qs=ra=e:ra=ra.next=e),Hs=!0,zr||(zr=!0,U0())}function yi(e,t){if(!Dr&&Hs){Dr=!0;do for(var n=!1,a=qs;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var o=0;else{var d=a.suspendedLanes,y=a.pingedLanes;o=(1<<31-Nt(42|e)+1)-1,o&=r&~(d&~y),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,fm(a,o))}else o=pe,o=Ki(a,a===ze?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||ka(a,o)||(n=!0,fm(a,o));a=a.next}while(n);Dr=!1}}function j0(){cm()}function cm(){Hs=zr=!1;var e=0;Kn!==0&&V0()&&(e=Kn);for(var t=At(),n=null,a=qs;a!==null;){var r=a.next,o=rm(a,t);o===0?(a.next=null,n===null?qs=r:n.next=r,r===null&&(ra=n)):(n=a,(e!==0||(o&3)!==0)&&(Hs=!0)),a=r}Pe!==0&&Pe!==5||yi(e),Kn!==0&&(Kn=0)}function rm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-Nt(o),y=1<<d,S=r[d];S===-1?((y&n)===0||(y&a)!==0)&&(r[d]=uy(y,t)):S<=t&&(e.expiredLanes|=y),o&=~y}if(t=ze,n=pe,n=Ki(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ku(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ka(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Ku(a),Xu(n)){case 2:case 8:n=Io;break;case 32:n=Hi;break;case 268435456:n=Po;break;default:n=Hi}return a=om.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 om(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bs()&&e.callbackNode!==n)return null;var a=pe;return a=Ki(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Vd(e,a,t),rm(e,At()),e.callbackNode!=null&&e.callbackNode===n?om.bind(null,e):null)}function fm(e,t){if(Bs())return null;Vd(e,t,!0)}function U0(){X0(function(){(Ee&6)!==0?Gu(Fo,j0):cm()})}function Lr(){if(Kn===0){var e=Zl;e===0&&(e=Yi,Yi<<=1,(Yi&261888)===0&&(Yi=256)),Kn=e}return Kn}function hm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zi(""+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 o=hm((r[dt]||null).action),d=a.submitter;d&&(t=(t=d[dt]||null)?hm(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var y=new Ii("action","action",null,a,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Kn!==0){var S=d?dm(r,d):new FormData(r);Pc(n,{pending:!0,data:S,method:r.method,action:o},null,S)}}else typeof o=="function"&&(y.preventDefault(),S=d?dm(r,d):new FormData(r),Pc(n,{pending:!0,data:S,method:r.method,action:o},o,S))},currentTarget:r}]})}}for(var jr=0;jr<pc.length;jr++){var Ur=pc[jr],R0=Ur.toLowerCase(),B0=Ur[0].toUpperCase()+Ur.slice(1);Xt(R0,"on"+B0)}Xt(Kf,"onAnimationEnd"),Xt(Vf,"onAnimationIteration"),Xt(Qf,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(e0,"onTransitionRun"),Xt(t0,"onTransitionStart"),Xt(n0,"onTransitionCancel"),Xt(Xf,"onTransitionEnd"),jl("onMouseEnter",["mouseout","mouseover"]),jl("onMouseLeave",["mouseout","mouseover"]),jl("onPointerEnter",["pointerout","pointerover"]),jl("onPointerLeave",["pointerout","pointerover"]),il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),il("onBeforeInput",["compositionend","keypress","textInput","paste"]),il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vi="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(vi));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 o=void 0;if(t)for(var d=a.length-1;0<=d;d--){var y=a[d],S=y.instance,z=y.currentTarget;if(y=y.listener,S!==o&&r.isPropagationStopped())break e;o=y,r.currentTarget=z;try{o(r)}catch(R){ts(R)}r.currentTarget=null,o=S}else for(d=0;d<a.length;d++){if(y=a[d],S=y.instance,z=y.currentTarget,y=y.listener,S!==o&&r.isPropagationStopped())break e;o=y,r.currentTarget=z;try{o(r)}catch(R){ts(R)}r.currentTarget=null,o=S}}}}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 Ys="_reactListening"+Math.random().toString(36).slice(2);function Rr(e){if(!e[Ys]){e[Ys]=!0,cf.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[Ys]||(t[Ys]=!0,kr("selectionchange",!1,t))}}function gm(e,t,n,a){switch(Km(t)){case 2:var r=dv;break;case 8:r=mv;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 o=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 S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;y!==null;){if(d=zl(y),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){a=o=d;continue e}y=y.parentNode}}a=a.return}Sf(function(){var z=o,R=tc(n),Y=[];e:{var D=Zf.get(e);if(D!==void 0){var U=Ii,I=e;switch(e){case"keypress":if(Wi(n)===0)break e;case"keydown":case"keyup":U=Dy;break;case"focusin":I="focus",U=uc;break;case"focusout":I="blur",U=uc;break;case"beforeblur":case"afterblur":U=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":U=Ef;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Uy;break;case Kf:case Vf:case Qf:U=Ey;break;case Xf:U=Ry;break;case"scroll":case"scrollend":U=vy;break;case"wheel":U=qy;break;case"copy":case"cut":case"paste":U=Oy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Of;break;case"toggle":case"beforetoggle":U=Yy}var ae=(t&4)!==0,Ce=!ae&&(e==="scroll"||e==="scrollend"),x=ae?D!==null?D+"Capture":null:D;ae=[];for(var A=z,C;A!==null;){var q=A;if(C=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||C===null||x===null||(q=Ha(A,x),q!=null&&ae.push(bi(A,q,C))),Ce)break;A=A.return}0<ae.length&&(D=new U(D,I,null,n,R),Y.push({event:D,listeners:ae}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",D&&n!==ec&&(I=n.relatedTarget||n.fromElement)&&(zl(I)||I[Cl]))break e;if((U||D)&&(D=R.window===R?R:(D=R.ownerDocument)?D.defaultView||D.parentWindow:window,U?(I=n.relatedTarget||n.toElement,U=z,I=I?zl(I):null,I!==null&&(Ce=f(I),ae=I.tag,I!==Ce||ae!==5&&ae!==27&&ae!==6)&&(I=null)):(U=null,I=z),U!==I)){if(ae=Ef,q="onMouseLeave",x="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Of,q="onPointerLeave",x="onPointerEnter",A="pointer"),Ce=U==null?D:qa(U),C=I==null?D:qa(I),D=new ae(q,A+"leave",U,n,R),D.target=Ce,D.relatedTarget=C,q=null,zl(R)===z&&(ae=new ae(x,A+"enter",I,n,R),ae.target=C,ae.relatedTarget=Ce,q=ae),Ce=q,U&&I)t:{for(ae=H0,x=U,A=I,C=0,q=x;q;q=ae(q))C++;q=0;for(var ne=A;ne;ne=ae(ne))q++;for(;0<C-q;)x=ae(x),C--;for(;0<q-C;)A=ae(A),q--;for(;C--;){if(x===A||A!==null&&x===A.alternate){ae=x;break t}x=ae(x),A=ae(A)}ae=null}else ae=null;U!==null&&pm(Y,D,U,ae,!1),I!==null&&Ce!==null&&pm(Y,Ce,I,ae,!0)}}e:{if(D=z?qa(z):window,U=D.nodeName&&D.nodeName.toLowerCase(),U==="select"||U==="input"&&D.type==="file")var Se=Lf;else if(zf(D))if(jf)Se=Fy;else{Se=Jy;var te=Zy}else U=D.nodeName,!U||U.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?z&&Pu(z.elementType)&&(Se=Lf):Se=Wy;if(Se&&(Se=Se(e,z))){Df(Y,Se,n,R);break e}te&&te(e,D,z),e==="focusout"&&z&&D.type==="number"&&z.memoizedProps.value!=null&&Iu(D,"number",D.value)}switch(te=z?qa(z):window,e){case"focusin":(zf(te)||te.contentEditable==="true")&&(Hl=te,dc=z,Za=null);break;case"focusout":Za=dc=Hl=null;break;case"mousedown":mc=!0;break;case"contextmenu":case"mouseup":case"dragend":mc=!1,$f(Y,n,R);break;case"selectionchange":if(Py)break;case"keydown":case"keyup":$f(Y,n,R)}var he;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 ql?Mf(e,n)&&(ye="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ye="onCompositionStart");ye&&(Nf&&n.locale!=="ko"&&(ql||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ql&&(he=Tf()):(xn=R,ac="value"in xn?xn.value:xn.textContent,ql=!0)),te=$s(z,ye),0<te.length&&(ye=new Af(ye,e,null,n,R),Y.push({event:ye,listeners:te}),he?ye.data=he:(he=Cf(n),he!==null&&(ye.data=he)))),(he=Gy?Ky(e,n):Vy(e,n))&&(ye=$s(z,"onBeforeInput"),0<ye.length&&(te=new Af("onBeforeInput","beforeinput",null,n,R),Y.push({event:te,listeners:ye}),te.data=he)),k0(Y,e,z,n,R)}mm(Y,t)})}function bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $s(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=Ha(e,n),r!=null&&a.unshift(bi(e,r,o)),r=Ha(e,t),r!=null&&a.push(bi(e,r,o))),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 o=t._reactName,d=[];n!==null&&n!==a;){var y=n,S=y.alternate,z=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||z===null||(S=z,r?(z=Ha(n,o),z!=null&&d.unshift(bi(n,z,S))):r||(z=Ha(n,o),z!=null&&d.push(bi(n,z,S)))),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,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||kl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&kl(e,""+a);break;case"className":Qi(e,"class",a);break;case"tabIndex":Qi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Qi(e,n,a);break;case"style":vf(e,a,o);break;case"data":if(t!=="object"){Qi(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=Zi(""+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 o=="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=Zi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=sn);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=Zi(""+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),Vi(e,"popover",a);break;case"xlinkActuate":an(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":an(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":an(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":an(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":an(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":an(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":an(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":an(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":an(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vi(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,Vi(e,n,a))}}function qr(e,t,n,a,r,o){switch(n){case"style":vf(e,a,o);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"?kl(e,a):(typeof a=="number"||typeof a=="bigint")&&kl(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=sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[dt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof a=="function")){typeof o!="function"&&o!==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,""):Vi(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,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,o,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=o=d=r=null,S=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var R=n[a];if(R!=null)switch(a){case"name":r=R;break;case"type":d=R;break;case"checked":S=R;break;case"defaultChecked":z=R;break;case"value":o=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,t));break;default:Me(e,t,a,R,n,null)}}mf(e,o,y,S,z,d,r,!1);return;case"select":ge("invalid",e),a=d=o=null;for(r in n)if(n.hasOwnProperty(r)&&(y=n[r],y!=null))switch(r){case"value":o=y;break;case"defaultValue":d=y;break;case"multiple":a=y;default:Me(e,t,r,y,n,null)}t=o,n=d,e.multiple=!!a,t!=null?Ul(e,!!a,t,!1):n!=null&&Ul(e,!!a,n,!0);return;case"textarea":ge("invalid",e),o=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":o=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Me(e,t,d,y,n,null)}pf(e,a,r,o);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(a=n[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,S,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<vi.length;a++)ge(vi[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(R in n)n.hasOwnProperty(R)&&(a=n[R],a!==void 0&&qr(e,t,R,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,o=null,d=null,y=null,S=null,z=null,R=null;for(U in n){var Y=n[U];if(n.hasOwnProperty(U)&&Y!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=Y;default:a.hasOwnProperty(U)||Me(e,t,U,null,a,Y)}}for(var D in a){var U=a[D];if(Y=n[D],a.hasOwnProperty(D)&&(U!=null||Y!=null))switch(D){case"type":o=U;break;case"name":r=U;break;case"checked":z=U;break;case"defaultChecked":R=U;break;case"value":d=U;break;case"defaultValue":y=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:U!==Y&&Me(e,t,D,U,a,Y)}}Fu(e,d,y,S,z,R,o,r);return;case"select":U=d=y=D=null;for(o in n)if(S=n[o],n.hasOwnProperty(o)&&S!=null)switch(o){case"value":break;case"multiple":U=S;default:a.hasOwnProperty(o)||Me(e,t,o,null,a,S)}for(r in a)if(o=a[r],S=n[r],a.hasOwnProperty(r)&&(o!=null||S!=null))switch(r){case"value":D=o;break;case"defaultValue":y=o;break;case"multiple":d=o;default:o!==S&&Me(e,t,r,o,a,S)}t=y,n=d,a=U,D!=null?Ul(e,!!n,D,!1):!!a!=!!n&&(t!=null?Ul(e,!!n,t,!0):Ul(e,!!n,n?[]:"",!1));return;case"textarea":U=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],o=n[d],a.hasOwnProperty(d)&&(r!=null||o!=null))switch(d){case"value":D=r;break;case"defaultValue":U=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==o&&Me(e,t,d,r,a,o)}gf(e,D,U);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(S in a)if(D=a[S],U=n[S],a.hasOwnProperty(S)&&D!==U&&(D!=null||U!=null))switch(S){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Me(e,t,S,D,a,U)}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 ae in n)D=n[ae],n.hasOwnProperty(ae)&&D!=null&&!a.hasOwnProperty(ae)&&Me(e,t,ae,null,a,D);for(z in a)if(D=a[z],U=n[z],a.hasOwnProperty(z)&&D!==U&&(D!=null||U!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:Me(e,t,z,D,a,U)}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(R in a)D=a[R],U=n[R],!a.hasOwnProperty(R)||D===U||D===void 0&&U===void 0||qr(e,t,R,D,a,U);return}}for(var x in n)D=n[x],n.hasOwnProperty(x)&&D!=null&&!a.hasOwnProperty(x)&&Me(e,t,x,null,a,D);for(Y in a)D=a[Y],U=n[Y],!a.hasOwnProperty(Y)||D===U||D==null&&U==null||Me(e,t,Y,D,a,U)}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],o=r.transferSize,d=r.initiatorType,y=r.duration;if(o&&y&&bm(d)){for(d=0,y=r.responseEnd,a+=1;a<n.length;a++){var S=n[a],z=S.startTime;if(z>y)break;var R=S.transferSize,Y=S.initiatorType;R&&bm(Y)&&(S=S.responseEnd,d+=R*(S<y?1:(y-z)/(S-z)))}if(--a,t+=8*(o+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 Gs(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 Vn(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),da(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Si(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Si(n);for(var o=n.firstChild;o;){var d=o.nextSibling,y=o.nodeName;o[Ba]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&Si(e.ownerDocument.body);n=r}while(n);da(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[Ba])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==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(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Gt(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=Gt(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=Gt(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 Gt(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 Gt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function xm(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 Mm(e,t,n){switch(t=Gs(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 Si(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ju(e)}var Kt=new Map,Cm=new Set;function Ks(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wn=Q.d;Q.d={f:I0,r:P0,D:ev,C:tv,L:nv,m:lv,X:iv,S:av,M:sv};function I0(){var e=wn.f(),t=Us();return e||t}function P0(e){var t=Dl(e);t!==null&&t.tag===5&&t.type==="form"?Xh(t):wn.r(e)}var oa=typeof document>"u"?null:document;function zm(e,t,n){var a=oa;if(a&&typeof t=="string"&&t){var r=kt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Cm.has(r)||(Cm.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 ev(e){wn.D(e),zm("dns-prefetch",e,null)}function tv(e,t){wn.C(e,t),zm("preconnect",e,t)}function nv(e,t,n){wn.L(e,t,n);var a=oa;if(a&&e&&t){var r='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+kt(n.imageSizes)+'"]')):r+='[href="'+kt(e)+'"]';var o=r;switch(t){case"style":o=fa(e);break;case"script":o=ha(e)}Kt.has(o)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kt.set(o,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Ti(o))||t==="script"&&a.querySelector(wi(o))||(t=a.createElement("link"),ut(t,"link",e),tt(t),a.head.appendChild(t)))}}function lv(e,t){wn.m(e,t);var n=oa;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+kt(a)+'"][href="'+kt(e)+'"]',o=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ha(e)}if(!Kt.has(o)&&(e=v({rel:"modulepreload",href:e},t),Kt.set(o,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wi(o)))return}a=n.createElement("link"),ut(a,"link",e),tt(a),n.head.appendChild(a)}}}function av(e,t,n){wn.S(e,t,n);var a=oa;if(a&&e){var r=Ll(a).hoistableStyles,o=fa(e);t=t||"default";var d=r.get(o);if(!d){var y={loading:0,preload:null};if(d=a.querySelector(Ti(o)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kt.get(o))&&Zr(e,n);var S=d=a.createElement("link");tt(S),ut(S,"link",e),S._p=new Promise(function(z,R){S.onload=z,S.onerror=R}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Vs(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:y},r.set(o,d)}}}function iv(e,t){wn.X(e,t);var n=oa;if(n&&e){var a=Ll(n).hoistableScripts,r=ha(e),o=a.get(r);o||(o=n.querySelector(wi(r)),o||(e=v({src:e,async:!0},t),(t=Kt.get(r))&&Jr(e,t),o=n.createElement("script"),tt(o),ut(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function sv(e,t){wn.M(e,t);var n=oa;if(n&&e){var a=Ll(n).hoistableScripts,r=ha(e),o=a.get(r);o||(o=n.querySelector(wi(r)),o||(e=v({src:e,async:!0,type:"module"},t),(t=Kt.get(r))&&Jr(e,t),o=n.createElement("script"),tt(o),ut(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(r,o))}}function Dm(e,t,n,a){var r=(r=ue.current)?Ks(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=fa(n.href),n=Ll(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=fa(n.href);var o=Ll(r).hoistableStyles,d=o.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=r.querySelector(Ti(e)))&&!o._p&&(d.instance=o,d.state.loading=5),Kt.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},Kt.set(e,n),o||uv(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=ha(n),n=Ll(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 fa(e){return'href="'+kt(e)+'"'}function Ti(e){return'link[rel="stylesheet"]['+e+"]"}function Lm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function uv(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 ha(e){return'[src="'+kt(e)+'"]'}function wi(e){return"script[async]"+e}function jm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+kt(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),Vs(a,n.precedence,e),t.instance=a;case"stylesheet":r=fa(n.href);var o=e.querySelector(Ti(r));if(o)return t.state.loading|=4,t.instance=o,tt(o),o;a=Lm(n),(r=Kt.get(r))&&Zr(a,r),o=(e.ownerDocument||e).createElement("link"),tt(o);var d=o;return d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),ut(o,"link",a),t.state.loading|=4,Vs(o,n.precedence,e),t.instance=o;case"script":return o=ha(n.src),(r=e.querySelector(wi(o)))?(t.instance=r,tt(r),r):(a=n,(r=Kt.get(o))&&(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,Vs(a,n.precedence,e));return t.instance}function Vs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,o=r,d=0;d<a.length;d++){var y=a[d];if(y.dataset.precedence===t)o=y;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.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 Qs=null;function Um(e,t,n){if(Qs===null){var a=new Map,r=Qs=new Map;r.set(n,a)}else r=Qs,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 o=n[r];if(!(o[Ba]||o[lt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var y=a.get(d);y?y.push(o):a.set(d,[o])}}return a}function km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function cv(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 rv(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=fa(a.href),o=t.querySelector(Ti(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,tt(o);return}o=t.ownerDocument||t,a=Lm(a),(r=Kt.get(r))&&Zr(a,r),o=o.createElement("link"),tt(o);var d=o;d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),ut(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Xs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wr=0;function ov(e,t){return e.stylesheets&&e.count===0&&Js(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Js(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Wr===0&&(Wr=62500*K0());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Js(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Wr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function Xs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Js(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zs=null;function Js(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zs=new Map,t.forEach(fv,e),Zs=null,Xs.call(e))}function fv(e,t){if(!(t.state.loading&4)){var n=Zs.get(e);if(n)var a=n.get(null);else{n=new Map,Zs.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var d=r[o];(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"),o=n.get(d)||a,o===a&&n.set(null,r),n.set(d,r),this.count++,a=Xs.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ei={$$typeof:K,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function hv(e,t,n,a,r,o,d,y,S){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=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Bm(e,t,n,a,r,o,d,y,S,z,R,Y){return e=new hv(e,t,n,d,S,z,R,Y,y),t=1,o===!0&&(t|=24),o=xt(3,null,null,t),e.current=o,o.stateNode=e,t=Mc(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Lc(o),e}function qm(e){return e?(e=Gl,e):Gl}function Hm(e,t,n,a,r,o){r=qm(r),a.context===null?a.context=r:a.pendingContext=r,a=jn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Un(e,a,t),n!==null&&(bt(n,e,t),ti(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=rl(e,67108864);t!==null&&bt(t,e,67108864),Fr(e,67108864)}}function Gm(e){if(e.tag===13||e.tag===31){var t=Lt();t=Qu(t);var n=rl(e,t);n!==null&&bt(n,e,t),Fr(e,t)}}var Ws=!0;function dv(e,t,n,a){var r=k.T;k.T=null;var o=Q.p;try{Q.p=2,Ir(e,t,n,a)}finally{Q.p=o,k.T=r}}function mv(e,t,n,a){var r=k.T;k.T=null;var o=Q.p;try{Q.p=8,Ir(e,t,n,a)}finally{Q.p=o,k.T=r}}function Ir(e,t,n,a){if(Ws){var r=Pr(a);if(r===null)Br(e,t,a,Fs,n),Vm(e,a);else if(pv(r,e,t,n,a))a.stopPropagation();else if(Vm(e,a),t&4&&-1<gv.indexOf(e)){for(;r!==null;){var o=Dl(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=al(o.pendingLanes);if(d!==0){var y=o;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var S=1<<31-Nt(d);y.entanglements[1]|=S,d&=~S}tn(o),(Ee&6)===0&&(Ls=At()+500,yi(0))}}break;case 31:case 13:y=rl(o,2),y!==null&&bt(y,o,2),Us(),Fr(o,2)}if(o=Pr(a),o===null&&Br(e,t,a,Fs,n),o===r)break;r=o}r!==null&&a.stopPropagation()}else Br(e,t,a,null,n)}}function Pr(e){return e=tc(e),eo(e)}var Fs=null;function eo(e){if(Fs=null,e=zl(e),e!==null){var t=f(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 Fs=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 Fo:return 2;case Io:return 8;case Hi:case ty:return 32;case Po:return 268435456;default:return 32}default:return 32}}var to=!1,Qn=null,Xn=null,Zn=null,Ai=new Map,Oi=new Map,Jn=[],gv="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":Qn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Zn=null;break;case"pointerover":case"pointerout":Ai.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oi.delete(t.pointerId)}}function Ni(e,t,n,a,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[r]},t!==null&&(t=Dl(t),t!==null&&$m(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function pv(e,t,n,a,r){switch(t){case"focusin":return Qn=Ni(Qn,e,t,n,a,r),!0;case"dragenter":return Xn=Ni(Xn,e,t,n,a,r),!0;case"mouseover":return Zn=Ni(Zn,e,t,n,a,r),!0;case"pointerover":var o=r.pointerId;return Ai.set(o,Ni(Ai.get(o)||null,e,t,n,a,r)),!0;case"gotpointercapture":return o=r.pointerId,Oi.set(o,Ni(Oi.get(o)||null,e,t,n,a,r)),!0}return!1}function Qm(e){var t=zl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,sf(e.priority,function(){Gm(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,sf(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 Is(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=Dl(n),t!==null&&$m(t),e.blockedOn=n,!1;t.shift()}return!0}function Xm(e,t,n){Is(e)&&n.delete(t)}function yv(){to=!1,Qn!==null&&Is(Qn)&&(Qn=null),Xn!==null&&Is(Xn)&&(Xn=null),Zn!==null&&Is(Zn)&&(Zn=null),Ai.forEach(Xm),Oi.forEach(Xm)}function Ps(e,t){e.blockedOn===t&&(e.blockedOn=null,to||(to=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,yv)))}var eu=null;function Zm(e){eu!==e&&(eu=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){eu===e&&(eu=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(eo(a||n)===null)continue;break}var o=Dl(n);o!==null&&(e.splice(t,3),t-=3,Pc(o,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function da(e){function t(S){return Ps(S,e)}Qn!==null&&Ps(Qn,e),Xn!==null&&Ps(Xn,e),Zn!==null&&Ps(Zn,e),Ai.forEach(t),Oi.forEach(t);for(var n=0;n<Jn.length;n++){var a=Jn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)Qm(n),n.blockedOn===null&&Jn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],o=n[a+1],d=r[dt]||null;if(typeof o=="function")d||Zm(n);else if(d){var y=null;if(o&&o.hasAttribute("formAction")){if(r=o,d=o[dt]||null)y=d.formAction;else if(eo(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(o){o.canIntercept&&o.info==="react-transition"&&o.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 o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.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 no(e){this._internalRoot=e}tu.prototype.render=no.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Lt();Hm(n,a,e,t,null,null)},tu.prototype.unmount=no.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[Cl]=null}};function tu(e){this._internalRoot=e}tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=af();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jn.length&&t!==0&&t<Jn[n].priority;n++);Jn.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?T(e):null,e=e===null?null:e.stateNode,e};var vv={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{Ua=nu.inject(vv),Ot=nu}catch{}}return xi.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",r=ld,o=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&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Bm(e,1,!1,null,null,n,a,null,r,o,d,Jm),e[Cl]=t.current,Rr(e),new no(t)},xi.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,r="",o=ld,d=ad,y=id,S=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=Bm(e,1,!0,t,n??null,a,r,S,o,d,y,Jm),t.context=qm(null),n=t.current,a=Lt(),a=Qu(a),r=jn(a),r.callback=null,Un(n,r,a),n=a,t.current.lanes=n,Ra(t,n),tn(t),e[Cl]=t.current,Rr(e),new tu(t)},xi.version="19.2.1",xi}var rg;function Rv(){if(rg)return io.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(),io.exports=kv(),io.exports}var Bv=Rv();async function qv(u,l){const i=new DataView(u),s=new Uint8Array(u),c=101010256;let f=-1;for(let v=u.byteLength-22;v>=0;v--)if(i.getUint32(v,!0)===c){f=v;break}if(f===-1)throw new Error("Not a valid ZIP file (no EOCD record found)");const h=i.getUint32(f+16,!0),m=i.getUint16(f+8,!0),g=33639248,p=new TextDecoder;let T=h;for(let v=0;v<m;v++){if(i.getUint32(T,!0)!==g)throw new Error("Malformed ZIP central directory");const _=i.getUint16(T+10,!0),E=i.getUint32(T+20,!0),O=i.getUint16(T+28,!0),b=i.getUint16(T+30,!0),w=i.getUint16(T+32,!0),M=i.getUint32(T+42,!0);if(p.decode(s.subarray(T+46,T+46+O))===l){if(i.getUint32(M,!0)!==67324752)throw new Error("Malformed ZIP local file header");const Z=i.getUint16(M+26,!0),F=i.getUint16(M+28,!0),J=M+30+Z+F,V=s.subarray(J,J+E);if(_===0)return p.decode(V);if(_===8){const X=new DecompressionStream("deflate-raw"),L=X.writable.getWriter(),ce=X.readable.getReader();L.write(V),L.close();const se=[];let H=!1;for(;!H;){const{value:k,done:Q}=await ce.read();k&&se.push(k),H=Q}const ee=se.reduce((k,Q)=>k+Q.length,0),be=new Uint8Array(ee);let Ie=0;for(const k of se)be.set(k,Ie),Ie+=k.length;return p.decode(be)}else throw new Error(`Unsupported ZIP compression method: ${_}`)}T+=46+O+b+w}return null}const Hv="modulepreload",Yv=function(u){return"/"+u},og={},$v=function(l,i,s){let c=Promise.resolve();if(i&&i.length>0){let h=function(p){return Promise.all(p.map(T=>Promise.resolve(T).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=Yv(p),p in og)return;og[p]=!0;const T=p.endsWith(".css"),v=T?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=T?"stylesheet":Hv,T||(_.as="script"),_.crossOrigin="",_.href=p,g&&_.setAttribute("nonce",g),document.head.appendChild(_),T)return new Promise((E,O)=>{_.addEventListener("load",E),_.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(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"&&f(m.reason);return l().catch(f)})};function Gv(u,l){const i=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let c,f={},h=!1,m=l==null?void 0:l.fg,g=l==null?void 0:l.bg;for(;(c=i.exec(u))!==null;){const[,,p,,T]=c;if(p){const v=+p;switch(v){case 0:f={};break;case 1:f["font-weight"]="bold";break;case 2:f.opacity="0.8";break;case 3:f["font-style"]="italic";break;case 4:f["text-decoration"]="underline";break;case 7:h=!0;break;case 8:f.display="none";break;case 9:f["text-decoration"]="line-through";break;case 22:delete f["font-weight"],delete f["font-style"],delete f.opacity,delete f["text-decoration"];break;case 23:delete f["font-weight"],delete f["font-style"],delete f.opacity;break;case 24:delete f["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=fg[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=fg[v-40];break;case 49:g=l==null?void 0:l.bg;break;case 53:f["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(T){const v={...f},_=h?g:m;_!==void 0&&(v.color=_);const E=h?m:g;E!==void 0&&(v["background-color"]=E),s.push(`<span style="${Vv(v)}">${Kv(T)}</span>`)}}return s.join("")}const fg={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 Kv(u){return u.replace(/[&"<>]/g,l=>({"&":"&",'"':""","<":"<",">":">"})[l])}function Vv(u){return Object.entries(u).map(([l,i])=>`${l}: ${i}`).join("; ")}const ro=({text:u,highlighter:l,mimeType:i,linkify:s,readOnly:c,highlight:f,revealLine:h,lineNumbers:m,isFocused:g,focusOnChange:p,wrapLines:T,onChange:v,dataTestId:_,placeholder:E})=>{const[O,b]=Cg(),[w]=ie.useState($v(()=>import("./codeMirrorModule-D0BjbCb7.js"),__vite__mapDeps([0,1])).then(Z=>Z.default)),M=ie.useRef(null),[j,K]=ie.useState();return ie.useEffect(()=>{(async()=>{var X,L;const Z=await w;Xv(Z);const F=b.current;if(!F)return;const J=Jv(l)||Zv(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")&&T===M.current.cm.getOption("lineWrapping")&&E===M.current.cm.getOption("placeholder"))return;(L=(X=M.current)==null?void 0:X.cm)==null||L.getWrapperElement().remove();const V=Z(F,{value:"",mode:J,readOnly:!!c,lineNumbers:m,lineWrapping:T,placeholder:E,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return M.current={cm:V},g&&V.focus(),K(V),V})()},[w,j,b,l,i,s,m,T,c,g,E]),ie.useEffect(()=>{M.current&&M.current.cm.setSize(O.width,O.height)},[O]),ie.useLayoutEffect(()=>{var J;if(!j)return;let Z=!1;if(j.getValue()!==u&&(j.setValue(u),Z=!0,p&&(j.execCommand("selectAll"),j.focus())),Z||JSON.stringify(f)!==JSON.stringify(M.current.highlight)){for(const L of M.current.highlight||[])j.removeLineClass(L.line-1,"wrap");for(const L of f||[])j.addLineClass(L.line-1,"wrap",`source-line-${L.type}`);for(const L of M.current.widgets||[])j.removeLineWidget(L);for(const L of M.current.markers||[])L.clear();const V=[],X=[];for(const L of f||[]){if(L.type!=="subtle-error"&&L.type!=="error")continue;const ce=(J=M.current)==null?void 0:J.cm.getLine(L.line-1);if(ce){const se={};se.title=L.message||"",X.push(j.markText({line:L.line-1,ch:0},{line:L.line-1,ch:L.column||ce.length},{className:"source-line-error-underline",attributes:se}))}if(L.type==="error"){const se=document.createElement("div");se.innerHTML=Gv(L.message||""),se.className="source-line-error-widget",V.push(j.addLineWidget(L.line,se,{above:!0,coverGutter:!1}))}}M.current.highlight=f,M.current.widgets=V,M.current.markers=X}typeof h=="number"&&M.current.cm.lineCount()>=h&&j.scrollIntoView({line:Math.max(0,h-1),ch:0},50);let F;return v&&(F=()=>v(j.getValue()),j.on("change",F)),()=>{F&&j.off("change",F)}},[j,u,f,h,p,v]),B.jsx("div",{"data-testid":_,className:"cm-wrapper",ref:b,onClick:Qv})};function Qv(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 Xv(u){dg||(dg=!0,u.defineSimpleMode("text/linkified",{start:[{regex:Nv,token:"linkified"}]}))}function Zv(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 Jv(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 Wv=50,Fv=({sidebarSize:u,sidebarHidden:l=!1,sidebarIsFirst:i=!1,orientation:s="vertical",minSidebarSize:c=Wv,settingName:f,sidebar:h,main:m})=>{const g=Math.max(c,u)*window.devicePixelRatio,[p,T]=To(f?f+"."+s+":size":void 0,g),[v,_]=To(f?f+"."+s+":size":void 0,g),[E,O]=ie.useState(null),[b,w]=Cg();let M;s==="vertical"?(M=v/window.devicePixelRatio,b&&b.height<M&&(M=b.height-10)):(M=p/window.devicePixelRatio,b&&b.width<M&&(M=b.width-10)),document.body.style.userSelect=E?"none":"inherit";let j={};return s==="vertical"?i?j={top:E?0:M-4,bottom:E?0:void 0,height:E?"initial":8}:j={bottom:E?0:M-4,top:E?0:void 0,height:E?"initial":8}:i?j={left:E?0:M-4,right:E?0:void 0,width:E?"initial":8}:j={right:E?0:M-4,left:E?0:void 0,width:E?"initial":8},B.jsxs("div",{className:Ol("split-view",s,i&&"sidebar-first"),ref:w,children:[B.jsx("div",{className:"split-view-main",children:m}),!l&&B.jsx("div",{style:{flexBasis:M},className:"split-view-sidebar",children:h}),!l&&B.jsx("div",{style:j,className:"split-view-resizer",onMouseDown:K=>O({offset:s==="vertical"?K.clientY:K.clientX,size:M}),onMouseUp:()=>O(null),onMouseMove:K=>{if(!K.buttons)O(null);else if(E){const F=(s==="vertical"?K.clientY:K.clientX)-E.offset,J=i?E.size+F:E.size-F,X=K.target.parentElement.getBoundingClientRect(),L=Math.min(Math.max(c,J),(s==="vertical"?X.height:X.width)-c);s==="vertical"?_(L*window.devicePixelRatio):T(L*window.devicePixelRatio)}}})]})},Dg=({noShadow:u,children:l,noMinHeight:i,className:s,sidebarBackground:c,onClick:f})=>B.jsx("div",{className:Ol("toolbar",u&&"no-shadow",i&&"no-min-height",s,c&&"toolbar-sidebar-background"),onClick:f,children:l}),Iv=({tabs:u,selectedTab:l,setSelectedTab:i,leftToolbar:s,rightToolbar:c,dataTestId:f,mode:h})=>{const m=ie.useId();return l||(l=u[0].id),h||(h="default"),B.jsx("div",{className:"tabbed-pane","data-testid":f,children:B.jsxs("div",{className:"vbox",children:[B.jsxs(Dg,{children:[s&&B.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]}),h==="default"&&B.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...u.map(g=>B.jsx(Pv,{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"&&B.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:B.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})`),B.jsxs("option",{value:g.id,role:"tab","aria-controls":`${m}-${g.id}`,children:[g.title,p]},g.id)})})}),c&&B.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 B.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 B.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,children:g.render()},g.id)})]})})},Pv=({id:u,title:l,count:i,errorCount:s,selected:c,onSelect:f,ariaControls:h})=>B.jsxs("div",{className:Ol("tabbed-pane-tab",c&&"selected"),onClick:()=>f==null?void 0:f(u),role:"tab",title:l,"aria-controls":h,"aria-selected":c,children:[B.jsx("div",{className:"tabbed-pane-tab-label",children:l}),!!i&&B.jsx("div",{className:"tabbed-pane-tab-counter",children:i}),!!s&&B.jsx("div",{className:"tabbed-pane-tab-counter error",children:s})]}),e1=({sources:u,fileId:l,setFileId:i})=>B.jsx("select",{className:"source-chooser",hidden:!u.length,title:"Source chooser",value:l,onChange:s=>{i(s.target.selectedOptions[0].value)},children:t1(u)});function t1(u){const l=c=>c.replace(/.*[/\\]([^/\\]+)/,"$1"),i=c=>B.jsx("option",{value:c.id,children:l(c.label)},c.id),s=new Map;for(const c of u){let f=s.get(c.group||"Debugger");f||(f=[],s.set(c.group||"Debugger",f)),f.push(c)}return[...s.entries()].map(([c,f])=>B.jsx("optgroup",{label:c,children:f.filter(h=>(h.group||"Debugger")===c).map(h=>i(h))},c))}function n1(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const We=ie.forwardRef(function({children:l,title:i="",icon:s,disabled:c=!1,toggled:f=!1,onClick:h=()=>{},style:m,testId:g,className:p,ariaLabel:T},v){return B.jsxs("button",{ref:v,className:Ol(p,"toolbar-button",s,f&&"toggled"),onMouseDown:gg,onClick:h,onDoubleClick:gg,title:i,disabled:!!c,style:m,"data-testid":g,"aria-label":T||i,children:[s&&B.jsx("span",{className:`codicon codicon-${s}`,style:l?{marginRight:5}:{}}),l]})}),mg=({style:u})=>B.jsx("div",{className:"toolbar-separator",style:u}),gg=u=>{u.stopPropagation(),u.preventDefault()},Fe=function(u,l,i){return u>=l&&u<=i};function St(u){return Fe(u,48,57)}function pg(u){return St(u)||Fe(u,65,70)||Fe(u,97,102)}function l1(u){return Fe(u,65,90)}function a1(u){return Fe(u,97,122)}function i1(u){return l1(u)||a1(u)}function s1(u){return u>=128}function cu(u){return i1(u)||s1(u)||u===95}function yg(u){return cu(u)||St(u)||u===45}function u1(u){return Fe(u,0,8)||u===11||Fe(u,14,31)||u===127}function ru(u){return u===10}function En(u){return ru(u)||u===9||u===32}const c1=1114111;class Lo extends Error{constructor(l){super(l),this.name="InvalidCharacterError"}}function r1(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),Fe(s,55296,56319)&&Fe(u.charCodeAt(i+1),56320,57343)){const c=s-55296,f=u.charCodeAt(i+1)-56320;s=Math.pow(2,16)+c*Math.pow(2,10)+f,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 o1(u){const l=r1(u);let i=-1;const s=[];let c;const f=function(H){return H>=l.length?-1:l[H]},h=function(H){if(H===void 0&&(H=1),H>3)throw"Spec Error: no more than three codepoints of lookahead.";return f(i+H)},m=function(H){return H===void 0&&(H=1),i+=H,c=f(i),!0},g=function(){return i-=1,!0},p=function(H){return H===void 0&&(H=c),H===-1},T=function(){if(v(),m(),En(c)){for(;En(h());)m();return new Ao}else{if(c===34)return O();if(c===35)if(yg(h())||M(h(1),h(2))){const H=new Xg("");return K(h(1),h(2),h(3))&&(H.type="id"),H.value=V(),H}else return new rt(c);else return c===36?h()===61?(m(),new m1):new rt(c):c===39?O():c===40?new $g:c===41?new Gg:c===42?h()===61?(m(),new g1):new rt(c):c===43?J()?(g(),_()):new rt(c):c===44?new Bg:c===45?J()?(g(),_()):h(1)===45&&h(2)===62?(m(2),new Ug):Z()?(g(),E()):new rt(c):c===46?J()?(g(),_()):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 jg):new rt(c):c===64?K(h(1),h(2),h(3))?new Qg(V()):new rt(c):c===91?new Yg:c===92?j()?(g(),E()):new rt(c):c===93?new Oo:c===94?h()===61?(m(),new d1):new rt(c):c===123?new qg:c===124?h()===61?(m(),new h1):h()===124?(m(),new Kg):new rt(c):c===125?new Hg:c===126?h()===61?(m(),new f1):new rt(c):St(c)?(g(),_()):cu(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},_=function(){const H=X();if(K(h(1),h(2),h(3))){const ee=new p1;return ee.value=H.value,ee.repr=H.repr,ee.type=H.type,ee.unit=V(),ee}else if(h()===37){m();const ee=new Fg;return ee.value=H.value,ee.repr=H.repr,ee}else{const ee=new Wg;return ee.value=H.value,ee.repr=H.repr,ee.type=H.type,ee}},E=function(){const H=V();if(H.toLowerCase()==="url"&&h()===40){for(m();En(h(1))&&En(h(2));)m();return h()===34||h()===39?new hu(H):En(h())&&(h(2)===34||h(2)===39)?new hu(H):b()}else return h()===40?(m(),new hu(H)):new Vg(H)},O=function(H){H===void 0&&(H=c);let ee="";for(;m();){if(c===H||p())return new Zg(ee);if(ru(c))return g(),new Lg;c===92?p(h())||(ru(h())?m():ee+=et(w())):ee+=et(c)}throw new Error("Internal error")},b=function(){const H=new Jg("");for(;En(h());)m();if(p(h()))return H;for(;m();){if(c===41||p())return H;if(En(c)){for(;En(h());)m();return h()===41||p(h())?(m(),H):(ce(),new ou)}else{if(c===34||c===39||c===40||u1(c))return ce(),new ou;if(c===92)if(j())H.value+=et(w());else return ce(),new ou;else H.value+=et(c)}}throw new Error("Internal error")},w=function(){if(m(),pg(c)){const H=[c];for(let be=0;be<5&&pg(h());be++)m(),H.push(c);En(h())&&m();let ee=parseInt(H.map(function(be){return String.fromCharCode(be)}).join(""),16);return ee>c1&&(ee=65533),ee}else return p()?65533:c},M=function(H,ee){return!(H!==92||ru(ee))},j=function(){return M(c,h())},K=function(H,ee,be){return H===45?cu(ee)||ee===45||M(ee,be):cu(H)?!0:H===92?M(H,ee):!1},Z=function(){return K(c,h(1),h(2))},F=function(H,ee,be){return H===43||H===45?!!(St(ee)||ee===46&&St(be)):H===46?!!St(ee):!!St(H)},J=function(){return F(c,h(1),h(2))},V=function(){let H="";for(;m();)if(yg(c))H+=et(c);else if(j())H+=et(w());else return g(),H;throw new Error("Internal parse error")},X=function(){let H="",ee="integer";for((h()===43||h()===45)&&(m(),H+=et(c));St(h());)m(),H+=et(c);if(h(1)===46&&St(h(2)))for(m(),H+=et(c),m(),H+=et(c),ee="number";St(h());)m(),H+=et(c);const be=h(1),Ie=h(2),k=h(3);if((be===69||be===101)&&St(Ie))for(m(),H+=et(c),m(),H+=et(c),ee="number";St(h());)m(),H+=et(c);else if((be===69||be===101)&&(Ie===43||Ie===45)&&St(k))for(m(),H+=et(c),m(),H+=et(c),m(),H+=et(c),ee="number";St(h());)m(),H+=et(c);const Q=L(H);return{type:ee,value:Q,repr:H}},L=function(H){return+H},ce=function(){for(;m();){if(c===41||p())return;j()&&w()}};let se=0;for(;!p(h());)if(s.push(T()),se++,se>l.length*2)throw new Error("I'm infinite-looping!");return s}class Ve{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Lg extends Ve{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class ou extends Ve{constructor(){super(...arguments),this.tokenType="BADURL"}}class Ao extends Ve{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class jg extends Ve{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class Ug extends Ve{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class kg extends Ve{constructor(){super(...arguments),this.tokenType=":"}}class Rg extends Ve{constructor(){super(...arguments),this.tokenType=";"}}class Bg extends Ve{constructor(){super(...arguments),this.tokenType=","}}class _a extends Ve{constructor(){super(...arguments),this.value="",this.mirror=""}}class qg extends _a{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class Hg extends _a{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Yg extends _a{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class Oo extends _a{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class $g extends _a{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Gg extends _a{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class f1 extends Ve{constructor(){super(...arguments),this.tokenType="~="}}class h1 extends Ve{constructor(){super(...arguments),this.tokenType="|="}}class d1 extends Ve{constructor(){super(...arguments),this.tokenType="^="}}class m1 extends Ve{constructor(){super(...arguments),this.tokenType="$="}}class g1 extends Ve{constructor(){super(...arguments),this.tokenType="*="}}class Kg extends Ve{constructor(){super(...arguments),this.tokenType="||"}}class fu extends Ve{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class rt extends Ve{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 xa extends Ve{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 xa{constructor(l){super(),this.tokenType="IDENT",this.value=l}toString(){return"IDENT("+this.value+")"}toSource(){return ki(this.value)}}class hu extends xa{constructor(l){super(),this.tokenType="FUNCTION",this.value=l,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return ki(this.value)+"("}}class Qg extends xa{constructor(l){super(),this.tokenType="AT-KEYWORD",this.value=l}toString(){return"AT("+this.value+")"}toSource(){return"@"+ki(this.value)}}class Xg extends xa{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"?"#"+ki(this.value):"#"+y1(this.value)}}class Zg extends xa{constructor(l){super(),this.tokenType="STRING",this.value=l}toString(){return'"'+Ig(this.value)+'"'}}class Jg extends xa{constructor(l){super(),this.tokenType="URL",this.value=l}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Ig(this.value)+'")'}}class Wg extends Ve{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 Ve{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 p1 extends Ve{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=ki(this.unit);return i[0].toLowerCase()==="e"&&(i[1]==="-"||Fe(i.charCodeAt(1),48,57))&&(i="\\65 "+i.slice(1,i.length)),l+i}}function ki(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 Lo("Invalid character: the input contains U+0000.");Fe(c,1,31)||c===127||s===0&&Fe(c,48,57)||s===1&&Fe(c,48,57)&&i===45?l+="\\"+c.toString(16)+" ":c>=128||c===45||c===95||Fe(c,48,57)||Fe(c,65,90)||Fe(c,97,122)?l+=u[s]:l+="\\"+u[s]}return l}function y1(u){u=""+u;let l="";for(let i=0;i<u.length;i++){const s=u.charCodeAt(i);if(s===0)throw new Lo("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Fe(s,48,57)||Fe(s,65,90)||Fe(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 Lo("Invalid character: the input contains U+0000.");Fe(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 v1(u,l){let i;try{i=o1(u),i[i.length-1]instanceof fu||i.push(new fu)}catch(L){const ce=L.message+` while parsing css selector "${u}". Did you mean to CSS.escape it?`,se=(L.stack||"").indexOf(L.message);throw se!==-1&&(L.stack=L.stack.substring(0,se)+ce+L.stack.substring(se+L.message.length)),L.message=ce,L}const s=i.find(L=>L instanceof Qg||L instanceof Lg||L instanceof ou||L instanceof Kg||L instanceof jg||L instanceof Ug||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 f=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 Ao;)c++}function g(L=c){return i[L]instanceof Vg}function p(L=c){return i[L]instanceof Zg}function T(L=c){return i[L]instanceof Wg}function v(L=c){return i[L]instanceof Bg}function _(L=c){return i[L]instanceof $g}function E(L=c){return i[L]instanceof Gg}function O(L=c){return i[L]instanceof hu}function b(L=c){return i[L]instanceof rt&&i[L].value==="*"}function w(L=c){return i[L]instanceof fu}function M(L=c){return i[L]instanceof rt&&[">","+","~"].includes(i[L].value)}function j(L=c){return v(L)||E(L)||w(L)||M(L)||i[L]instanceof Ao}function K(){const L=[Z()];for(;m(),!!v();)c++,L.push(Z());return L}function Z(){return m(),T()||p()?i[c++].value:F()}function F(){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(j())break;L.simples.push({combinator:"",selector:J()})}return L}function J(){let L="";const ce=[];for(;!j();)if(g()||b())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 se=i[c++].value.toLowerCase();ce.push({name:se,args:[]}),f.add(se)}else if(O()){const se=i[c++].value.toLowerCase();if(l.has(se)?(ce.push({name:se,args:K()}),f.add(se)):L+=`:${se}(${V()})`,m(),!E())throw h();c++}else throw h();else if(i[c]instanceof Yg){for(L+="[",c++;!(i[c]instanceof Oo)&&!w();)L+=i[c++].toSource();if(!(i[c]instanceof Oo))throw h();L+="]",c++}else throw h();if(!L&&!ce.length)throw h();return{css:L||void 0,functions:ce}}function V(){let L="",ce=1;for(;!w()&&((_()||O())&&ce++,E()&&ce--,!!ce);)L+=i[c++].toSource();return L}const X=K();if(!w())throw h();if(X.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:X,names:Array.from(f)}}const vg=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),b1=new Set(["left-of","right-of","above","below","near"]),S1=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=w1(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=v1(s.body,S1);i.push({name:"css",body:c.selector,source:s.body});continue}if(vg.has(s.name)){let c,f;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"||!b1.has(s.name))throw new Tt(`Malformed selector: ${s.name}=`+s.body);f=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:f}},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&&T1(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 T1(u,l){return va({parts:u})===va({parts:l})}function va(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 f=c?i.name+"=":"";return`${s===u.capture?"*":""}${f}${i.source}`}).join(" >> ")}function w1(u){let l=0,i,s=0;const c={parts:[]},f=()=>{const m=u.substring(s,l).trim(),g=m.indexOf("=");let p,T;g!==-1&&m.substring(0,g).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=m.substring(0,g).trim(),T=m.substring(g+1)):m.length>1&&m[0]==='"'&&m[m.length-1]==='"'||m.length>1&&m[0]==="'"&&m[m.length-1]==="'"?(p="text",T=m):/^\(*\/\//.test(m)||m.startsWith("..")?(p="xpath",T=m):(p="css",T=m);let v=!1;if(p[0]==="*"&&(v=!0,p=p.substring(1)),c.parts.push({name:p,body:T}),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,f(),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]===">"?(f(),l+=2,s=l):l++}return f(),c}function oo(u,l){let i=0,s=u.length===0;const c=()=>u[i]||"",f=()=>{const w=c();return++i,s=i>=u.length,w},h=w=>{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}`+(w?" during "+w:""))};function m(){for(;!s&&/\s/.test(c());)f()}function g(w){return w>=""||w>="0"&&w<="9"||w>="A"&&w<="Z"||w>="a"&&w<="z"||w>="0"&&w<="9"||w==="_"||w==="-"}function p(){let w="";for(m();!s&&g(c());)w+=f();return w}function T(w){let M=f();for(M!==w&&h("parsing quoted string");!s&&c()!==w;)c()==="\\"&&f(),M+=f();return c()!==w&&h("parsing quoted string"),M+=f(),M}function v(){f()!=="/"&&h("parsing regular expression");let w="",M=!1;for(;!s;){if(c()==="\\")w+=f(),s&&h("parsing regular expression");else if(M&&c()==="]")M=!1;else if(!M&&c()==="[")M=!0;else if(!M&&c()==="/")break;w+=f()}f()!=="/"&&h("parsing regular expression");let j="";for(;!s&&c().match(/[dgimsuy]/);)j+=f();try{return new RegExp(w,j)}catch(K){throw new Tt(`Error while parsing selector \`${u}\`: ${K.message}`)}}function _(){let w="";return m(),c()==="'"||c()==='"'?w=T(c()).slice(1,-1):w=p(),w||h("parsing property path"),w}function E(){m();let w="";return s||(w+=f()),!s&&w!=="="&&(w+=f()),["=","*=","^=","$=","|=","~="].includes(w)||h("parsing operator"),w}function O(){f();const w=[];for(w.push(_()),m();c()===".";)f(),w.push(_()),m();if(c()==="]")return f(),{name:w.join("."),jsonPath:w,op:"<truthy>",value:null,caseSensitive:!1};const M=E();let j,K=!0;if(m(),c()==="/"){if(M!=="=")throw new Tt(`Error while parsing selector \`${u}\` - cannot use ${M} in attribute with regular expression`);j=v()}else if(c()==="'"||c()==='"')j=T(c()).slice(1,-1),m(),c()==="i"||c()==="I"?(K=!1,f()):(c()==="s"||c()==="S")&&(K=!0,f());else{for(j="";!s&&(g(c())||c()==="+"||c()===".");)j+=f();j==="true"?j=!0:j==="false"&&(j=!1)}if(m(),c()!=="]"&&h("parsing attribute value"),f(),M!=="="&&typeof j!="string")throw new Tt(`Error while parsing selector \`${u}\` - cannot use ${M} in attribute with non-string matching value - ${j}`);return{name:w.join("."),jsonPath:w,op:M,value:j,caseSensitive:K}}const b={name:"",attributes:[]};for(b.name=p(),m();c()==="[";)b.attributes.push(O()),m();if(s||h(void 0),!b.name&&!b.attributes.length)throw new Tt(`Error while parsing selector \`${u}\` - selector cannot be empty`);return b}function Au(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 vu(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 Ou(u){return u.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function tp(u,l,i=!1){return E1(u,l,i,1)[0]}function E1(u,l,i=!1,s=20,c){try{return ya(new z1[u](c),Pg(l),i,s)}catch{return[l]}}function ya(u,l,i=!1,s=20){const c=[...l.parts],f=[];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"?f.push([u.generateLocator(p,"first",""),u.generateLocator(p,"nth","0")]):g.body==="-1"?f.push([u.generateLocator(p,"last",""),u.generateLocator(p,"nth","-1")]):f.push([u.generateLocator(p,"nth",g.body)]);continue}if(g.name==="visible"){f.push([u.generateLocator(p,"visible",g.body),u.generateLocator(p,"default",`visible=${g.body}`)]);continue}if(g.name==="internal:text"){const{exact:O,text:b}=Mi(g.body);f.push([u.generateLocator(p,"text",b,{exact:O})]);continue}if(g.name==="internal:has-text"){const{exact:O,text:b}=Mi(g.body);if(!O){f.push([u.generateLocator(p,"has-text",b,{exact:O})]);continue}}if(g.name==="internal:has-not-text"){const{exact:O,text:b}=Mi(g.body);if(!O){f.push([u.generateLocator(p,"has-not-text",b,{exact:O})]);continue}}if(g.name==="internal:has"){const O=ya(u,g.body.parsed,!1,s);f.push(O.map(b=>u.generateLocator(p,"has",b)));continue}if(g.name==="internal:has-not"){const O=ya(u,g.body.parsed,!1,s);f.push(O.map(b=>u.generateLocator(p,"hasNot",b)));continue}if(g.name==="internal:and"){const O=ya(u,g.body.parsed,!1,s);f.push(O.map(b=>u.generateLocator(p,"and",b)));continue}if(g.name==="internal:or"){const O=ya(u,g.body.parsed,!1,s);f.push(O.map(b=>u.generateLocator(p,"or",b)));continue}if(g.name==="internal:chain"){const O=ya(u,g.body.parsed,!1,s);f.push(O.map(b=>u.generateLocator(p,"chain",b)));continue}if(g.name==="internal:label"){const{exact:O,text:b}=Mi(g.body);f.push([u.generateLocator(p,"label",b,{exact:O})]);continue}if(g.name==="internal:role"){const O=oo(g.body),b={attrs:[]};for(const w of O.attributes)w.name==="name"?(b.exact=w.caseSensitive,b.name=w.value):(w.name==="level"&&typeof w.value=="string"&&(w.value=+w.value),b.attrs.push({name:w.name==="include-hidden"?"includeHidden":w.name,value:w.value}));f.push([u.generateLocator(p,"role",O.name,b)]);continue}if(g.name==="internal:testid"){const O=oo(g.body),{value:b}=O.attributes[0];f.push([u.generateLocator(p,"test-id",b)]);continue}if(g.name==="internal:attr"){const O=oo(g.body),{name:b,value:w,caseSensitive:M}=O.attributes[0],j=w,K=!!M;if(b==="placeholder"){f.push([u.generateLocator(p,"placeholder",j,{exact:K})]);continue}if(b==="alt"){f.push([u.generateLocator(p,"alt",j,{exact:K})]);continue}if(b==="title"){f.push([u.generateLocator(p,"title",j,{exact:K})]);continue}}if(g.name==="internal:control"&&g.body==="enter-frame"){const O=f[f.length-1],b=c[m-1],w=O.map(M=>u.chainLocators([M,u.generateLocator(p,"frame","")]));["xpath","css"].includes(b.name)&&w.push(u.generateLocator(p,"frame-locator",va({parts:[b]})),u.generateLocator(p,"frame-locator",va({parts:[b]},!0))),O.splice(0,O.length,...w),h="frame-locator";continue}const T=c[m+1],v=va({parts:[g]}),_=u.generateLocator(p,"default",v);if(T&&["internal:has-text","internal:has-not-text"].includes(T.name)){const{exact:O,text:b}=Mi(T.body);if(!O){const w=u.generateLocator("locator",T.name==="internal:has-text"?"has-text":"has-not-text",b,{exact:O}),M={};T.name==="internal:has-text"?M.hasText=b:M.hasNotText=b;const j=u.generateLocator(p,"default",v,M);f.push([u.chainLocators([_,w]),j]),m++;continue}}let E;if(["xpath","css"].includes(g.name)){const O=va({parts:[g]},!0);E=u.generateLocator(p,"default",O)}f.push([_,E].filter(Boolean))}return A1(u,f,s)}function A1(u,l,i){const s=l.map(()=>""),c=[],f=h=>{if(h===l.length)return c.push(u.chainLocators(s)),c.length<i;for(const m of l[h])if(s[h]=m,!f(h+1))return!1;return!0};return f(0),c}function Mi(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 O1{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 f=[];Ke(c.name)?f.push(`name: ${this.regexToSourceString(c.name)}`):typeof c.name=="string"&&(f.push(`name: ${this.quote(c.name)}`),c.exact&&f.push("exact: true"));for(const{name:m,value:g}of c.attrs)f.push(`${m}: ${typeof g=="string"?this.quote(g):g}`);const h=f.length?`, { ${f.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 Ou(String(l))}toCallWithExact(l,i,s){return Ke(i)?`${l}(${this.regexToSourceString(i)})`:s?`${l}(${this.quote(i)}, { exact: true })`:`${l}(${this.quote(i)})`}toHasText(l){return Ke(l)?this.regexToSourceString(l):this.quote(l)}toTestIdValue(l){return Ke(l)?this.regexToSourceString(l):this.quote(l)}quote(l){return Au(l,this.preferredQuote??"'")}}class N1{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 f=[];Ke(c.name)?f.push(`name=${this.regexToString(c.name)}`):typeof c.name=="string"&&(f.push(`name=${this.quote(c.name)}`),c.exact&&f.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"),f.push(`${ep(m)}=${p}`)}const h=f.length?`, ${f.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"${Ou(l.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${i})`}toCallWithExact(l,i,s){return Ke(i)?`${l}(${this.regexToString(i)})`:s?`${l}(${this.quote(i)}, exact=True)`:`${l}(${this.quote(i)})`}toHasText(l){return Ke(l)?this.regexToString(l):`${this.quote(l)}`}toTestIdValue(l){return Ke(l)?this.regexToString(l):this.quote(l)}quote(l){return Au(l,'"')}}class _1{generateLocator(l,i,s,c={}){let f;switch(l){case"page":f="Page";break;case"frame-locator":f="FrameLocator";break;case"locator":f="Locator";break}switch(i){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, new ${f}.LocatorOptions().setHasText(${this.toHasText(c.hasText)}))`:c.hasNotText!==void 0?`locator(${this.quote(s)}, new ${f}.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 ${f}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const h=[];Ke(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${vu(g)}(${typeof p=="string"?this.quote(p):p})`);const m=h.length?`, new ${f}.GetByRoleOptions()${h.join("")}`:"";return`getByRole(AriaRole.${ep(s).toUpperCase()}${m})`;case"has-text":return`filter(new ${f}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${f}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${f}.FilterOptions().setHas(page.${s}))`;case"hasNot":return`filter(new ${f}.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(f,"getByText",s,!!c.exact);case"alt":return this.toCallWithExact(f,"getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact(f,"getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact(f,"getByLabel",s,!!c.exact);case"title":return this.toCallWithExact(f,"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(Ou(l.source))}${i})`}toCallWithExact(l,i,s,c){return Ke(s)?`${i}(${this.regexToString(s)})`:c?`${i}(${this.quote(s)}, new ${l}.${vu(i)}Options().setExact(true))`:`${i}(${this.quote(s)})`}toHasText(l){return Ke(l)?this.regexToString(l):this.quote(l)}toTestIdValue(l){return Ke(l)?this.regexToString(l):this.quote(l)}quote(l){return Au(l,'"')}}class x1{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 f=[];Ke(c.name)?f.push(`NameRegex = ${this.regexToString(c.name)}`):typeof c.name=="string"&&(f.push(`Name = ${this.quote(c.name)}`),c.exact&&f.push("Exact = true"));for(const{name:m,value:g}of c.attrs)f.push(`${vu(m)} = ${typeof g=="string"?this.quote(g):g}`);const h=f.length?`, new() { ${f.join(", ")} }`:"";return`GetByRole(AriaRole.${vu(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(Ou(l.source))}${i})`}toCallWithExact(l,i,s){return Ke(i)?`${l}(${this.regexToString(i)})`:s?`${l}(${this.quote(i)}, new() { Exact = true })`:`${l}(${this.quote(i)})`}toHasText(l){return Ke(l)?`HasTextRegex = ${this.regexToString(l)}`:`HasText = ${this.quote(l)}`}toTestIdValue(l){return Ke(l)?this.regexToString(l):this.quote(l)}toHasNotText(l){return Ke(l)?`HasNotTextRegex = ${this.regexToString(l)}`:`HasNotText = ${this.quote(l)}`}quote(l){return Au(l,'"')}}class M1{generateLocator(l,i,s,c={}){return JSON.stringify({kind:i,body:du(s),options:C1(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 du(u){return Ke(u)?`/${u.source}/${u.flags}`:u}function C1(u){const l={...u};return Ke(l.name)&&(l.name=du(l.name)),Ke(l.hasText)&&(l.hasText=du(l.hasText)),Ke(l.hasNotText)&&(l.hasNotText=du(l.hasNotText)),l}const z1={javascript:O1,python:N1,java:_1,csharp:x1,jsonl:M1};function Ke(u){return u instanceof RegExp}const D1=({language:u,log:l})=>{const i=ie.useRef(null),[s,c]=ie.useState(new Map);return ie.useLayoutEffect(()=>{var f;l.find(h=>h.reveal)&&((f=i.current)==null||f.scrollIntoView({block:"center",inline:"nearest"}))},[i,l]),B.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[l.map(f=>{const h=s.get(f.id),m=typeof h=="boolean"?h:f.status!=="done",g=f.params.selector?tp(u,f.params.selector):null;let p=f.title,T="";return f.title.startsWith("expect.to")||f.title.startsWith("expect.not.to")?(p="expect(",T=`).${f.title.substring(7)}()`):f.title.startsWith("locator.")?(p="",T=`.${f.title.substring(8)}()`):(g||f.params.url)&&(p=f.title+"(",T=")"),B.jsxs("div",{className:Ol("call-log-call",f.status),children:[B.jsxs("div",{className:"call-log-call-header",children:[B.jsx("span",{className:Ol("codicon",`codicon-chevron-${m?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const v=new Map(s);v.set(f.id,!m),c(v)}}),p,f.params.url?B.jsx("span",{className:"call-log-details",children:B.jsx("span",{className:"call-log-url",title:f.params.url,children:f.params.url})}):void 0,g?B.jsx("span",{className:"call-log-details",children:B.jsx("span",{className:"call-log-selector",title:`page.${g}`,children:`page.${g}`})}):void 0,T,B.jsx("span",{className:Ol("codicon",L1(f))}),typeof f.duration=="number"?B.jsxs("span",{className:"call-log-time",children:["— ",Av(f.duration)]}):void 0]}),(m?f.messages:[]).map((v,_)=>B.jsx("div",{className:"call-log-message",children:v.trim()},_)),!!f.error&&B.jsx("div",{className:"call-log-message error",hidden:!m,children:f.error})]},f.id)}),B.jsx("div",{ref:i})]})};function L1(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 jo=Symbol.for("yaml.alias"),No=Symbol.for("yaml.document"),Pn=Symbol.for("yaml.map"),np=Symbol.for("yaml.pair"),ln=Symbol.for("yaml.scalar"),Ma=Symbol.for("yaml.seq"),Qt=Symbol.for("yaml.node.type"),tl=u=>!!u&&typeof u=="object"&&u[Qt]===jo,_l=u=>!!u&&typeof u=="object"&&u[Qt]===No,Ca=u=>!!u&&typeof u=="object"&&u[Qt]===Pn,ke=u=>!!u&&typeof u=="object"&&u[Qt]===np,De=u=>!!u&&typeof u=="object"&&u[Qt]===ln,za=u=>!!u&&typeof u=="object"&&u[Qt]===Ma;function Re(u){if(u&&typeof u=="object")switch(u[Qt]){case Pn:case Ma:return!0}return!1}function Be(u){if(u&&typeof u=="object")switch(u[Qt]){case jo:case Pn:case ln:case Ma:return!0}return!1}const lp=u=>(De(u)||Re(u))&&!!u.anchor,wt=Symbol("break visit"),ap=Symbol("skip children"),nn=Symbol("remove node");function xl(u,l){const i=ip(l);_l(u)?ba(null,u.contents,i,Object.freeze([u]))===nn&&(u.contents=null):ba(null,u,i,Object.freeze([]))}xl.BREAK=wt;xl.SKIP=ap;xl.REMOVE=nn;function ba(u,l,i,s){const c=sp(u,l,i,s);if(Be(c)||ke(c))return up(u,s,c),ba(u,c,i,s);if(typeof c!="symbol"){if(Re(l)){s=Object.freeze(s.concat(l));for(let f=0;f<l.items.length;++f){const h=ba(f,l.items[f],i,s);if(typeof h=="number")f=h-1;else{if(h===wt)return wt;h===nn&&(l.items.splice(f,1),f-=1)}}}else if(ke(l)){s=Object.freeze(s.concat(l));const f=ba("key",l.key,i,s);if(f===wt)return wt;f===nn&&(l.key=null);const h=ba("value",l.value,i,s);if(h===wt)return wt;h===nn&&(l.value=null)}}return c}async function Nu(u,l){const i=ip(l);_l(u)?await Sa(null,u.contents,i,Object.freeze([u]))===nn&&(u.contents=null):await Sa(null,u,i,Object.freeze([]))}Nu.BREAK=wt;Nu.SKIP=ap;Nu.REMOVE=nn;async function Sa(u,l,i,s){const c=await sp(u,l,i,s);if(Be(c)||ke(c))return up(u,s,c),Sa(u,c,i,s);if(typeof c!="symbol"){if(Re(l)){s=Object.freeze(s.concat(l));for(let f=0;f<l.items.length;++f){const h=await Sa(f,l.items[f],i,s);if(typeof h=="number")f=h-1;else{if(h===wt)return wt;h===nn&&(l.items.splice(f,1),f-=1)}}}else if(ke(l)){s=Object.freeze(s.concat(l));const f=await Sa("key",l.key,i,s);if(f===wt)return wt;f===nn&&(l.key=null);const h=await Sa("value",l.value,i,s);if(h===wt)return wt;h===nn&&(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,f,h,m,g;if(typeof i=="function")return i(u,l,s);if(Ca(l))return(c=i.Map)==null?void 0:c.call(i,u,l,s);if(za(l))return(f=i.Seq)==null?void 0:f.call(i,u,l,s);if(ke(l))return(h=i.Pair)==null?void 0:h.call(i,u,l,s);if(De(l))return(m=i.Scalar)==null?void 0:m.call(i,u,l,s);if(tl(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(_l(s))s.contents=i;else{const c=tl(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${c} parent`)}}const j1={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},U1=u=>u.replace(/[!,[\]{}]/g,l=>j1[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[f,h]=s;return this.tags[f]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return i(0,"%YAML directive should contain exactly one part"),!1;const[f]=s;if(f==="1.1"||f==="1.2")return this.yaml.version=f,!0;{const h=/^\d+\.\d+$/.test(f);return i(6,`Unsupported YAML version ${f}`,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 f=this.tags[s];if(f)try{return f+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+U1(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 f={};xl(l.contents,(h,m)=>{Be(m)&&m.tag&&(f[m.tag]=!0)}),c=Object.keys(f)}else c=[];for(const[f,h]of s)f==="!!"&&h==="tag:yaml.org,2002:"||(!l||c.some(m=>m.startsWith(h)))&&i.push(`%TAG ${f} ${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 xl(u,{Value(i,s){s.anchor&&l.add(s.anchor)}}),l}function op(u,l){for(let i=1;;++i){const s=`${u}${i}`;if(!l.has(s))return s}}function k1(u,l){const i=[],s=new Map;let c=null;return{onAnchor:f=>{i.push(f),c??(c=rp(u));const h=op(l,c);return c.add(h),h},setAnchors:()=>{for(const f of i){const h=s.get(f);if(typeof h=="object"&&h.anchor&&(De(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=f,m}}},sourceObjects:s}}function Ta(u,l,i,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let c=0,f=s.length;c<f;++c){const h=s[c],m=Ta(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 f=s.get(c),h=Ta(u,s,c,f);h===void 0?s.delete(c):h!==f&&s.set(c,h)}else if(s instanceof Set)for(const c of Array.from(s)){const f=Ta(u,s,c,c);f===void 0?s.delete(c):f!==c&&(s.delete(c),s.add(f))}else for(const[c,f]of Object.entries(s)){const h=Ta(u,s,c,f);h===void 0?delete s[c]:h!==f&&(s[c]=h)}return u.call(l,i,s)}function Vt(u,l,i){if(Array.isArray(u))return u.map((s,c)=>Vt(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=f=>{s.res=f,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 Uo{constructor(l){Object.defineProperty(this,Qt,{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:f}={}){if(!_l(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=Vt(this,"",h);if(typeof c=="function")for(const{count:g,res:p}of h.anchors.values())c(p,g);return typeof f=="function"?Ta(f,{"":m},"",m):m}}class _u extends Uo{constructor(l){super(jo),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=[],xl(l,{Node:(f,h)=>{(tl(h)||lp(h))&&s.push(h)}}),i&&(i.aliasResolveCache=s));let c;for(const f of s){if(f===this)break;f.anchor===this.source&&(c=f)}return c}toJSON(l,i){if(!i)return{source:this.source};const{anchors:s,doc:c,maxAliasCount:f}=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||(Vt(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(f>=0&&(m.count+=1,m.aliasCount===0&&(m.aliasCount=mu(c,h,s)),m.count*m.aliasCount>f)){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 f=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(f)}if(l.implicitKey)return`${c} `}return c}}function mu(u,l,i){if(tl(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 f=mu(u,c,i);f>s&&(s=f)}return s}else if(ke(l)){const s=mu(u,l.key,i),c=mu(u,l.value,i);return Math.max(s,c)}return 1}const fp=u=>!u||typeof u!="function"&&typeof u!="object";class oe extends Uo{constructor(l){super(ln),this.value=l}toJSON(l,i){return i!=null&&i.keep?this.value:Vt(this.value,l,i)}toString(){return String(this.value)}}oe.BLOCK_FOLDED="BLOCK_FOLDED";oe.BLOCK_LITERAL="BLOCK_LITERAL";oe.PLAIN="PLAIN";oe.QUOTE_DOUBLE="QUOTE_DOUBLE";oe.QUOTE_SINGLE="QUOTE_SINGLE";const R1="tag:yaml.org,2002:";function B1(u,l,i){if(l){const s=i.filter(f=>f.tag===l),c=s.find(f=>!f.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 Li(u,l,i){var v,_,E;if(_l(u)&&(u=u.contents),Be(u))return u;if(ke(u)){const O=(_=(v=i.schema[Pn]).createNode)==null?void 0:_.call(v,i.schema,null,i);return O.items.push(u),O}(u instanceof String||u instanceof Number||u instanceof Boolean||typeof BigInt<"u"&&u instanceof BigInt)&&(u=u.valueOf());const{aliasDuplicateObjects:s,onAnchor:c,onTagObj:f,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 _u(g.anchor);g={anchor:null,node:null},m.set(u,g)}l!=null&&l.startsWith("!!")&&(l=R1+l.slice(2));let p=B1(u,l,h.tags);if(!p){if(u&&typeof u.toJSON=="function"&&(u=u.toJSON()),!u||typeof u!="object"){const O=new oe(u);return g&&(g.node=O),O}p=u instanceof Map?h[Pn]:Symbol.iterator in Object(u)?h[Ma]:h[Pn]}f&&(f(p),delete i.onTagObj);const T=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 oe(u);return l?T.tag=l:p.default||(T.tag=p.tag),g&&(g.node=T),T}function bu(u,l,i){let s=i;for(let c=l.length-1;c>=0;--c){const f=l[c];if(typeof f=="number"&&Number.isInteger(f)&&f>=0){const h=[];h[f]=s,s=h}else s=new Map([[f,s]])}return Li(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 zi=u=>u==null||typeof u=="object"&&!!u[Symbol.iterator]().next().done;class hp extends Uo{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(zi(l))this.add(i);else{const[s,...c]=l,f=this.get(s,!0);if(Re(f))f.addIn(c,i);else if(f===void 0&&this.schema)this.set(s,bu(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,f=this.get(s,!0);return c.length===0?!i&&De(f)?f.value:f:Re(f)?f.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&&De(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 f=this.get(s,!0);if(Re(f))f.setIn(c,i);else if(f===void 0&&this.schema)this.set(s,bu(this.schema,c,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}}const q1=u=>u.replace(/^(?!$)(?: $)?/gm,"#");function An(u,l){return/^\n+$/.test(u)?u.substring(1):l?u.replace(/^(?! *$)/gm,l):u}const wl=(u,l,i)=>u.endsWith(`
|
|
53
|
+
`)?An(i,l):i.includes(`
|
|
54
|
+
`)?`
|
|
55
|
+
`+An(i,l):(u.endsWith(" ")?"":" ")+i,dp="flow",_o="block",gu="quoted";function xu(u,l,i="flow",{indentAtStart:s,lineWidth:c=80,minContentWidth:f=20,onFold:h,onOverflow:m}={}){if(!c||c<0)return u;c<f&&(f=0);const g=Math.max(1+f,1+c-l.length);if(u.length<=g)return u;const p=[],T={};let v=c-l.length;typeof s=="number"&&(s>c-Math.max(2,f)?p.push(0):v=c-s);let _,E,O=!1,b=-1,w=-1,M=-1;i===_o&&(b=bg(u,b,l.length),b!==-1&&(v=b+g));for(let K;K=u[b+=1];){if(i===gu&&K==="\\"){switch(w=b,u[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}M=b}if(K===`
|
|
56
|
+
`)i===_o&&(b=bg(u,b,l.length)),v=b+l.length+g,_=void 0;else{if(K===" "&&E&&E!==" "&&E!==`
|
|
57
|
+
`&&E!==" "){const Z=u[b+1];Z&&Z!==" "&&Z!==`
|
|
58
|
+
`&&Z!==" "&&(_=b)}if(b>=v)if(_)p.push(_),v=_+g,_=void 0;else if(i===gu){for(;E===" "||E===" ";)E=K,K=u[b+=1],O=!0;const Z=b>M+1?b-2:w-1;if(T[Z])return u;p.push(Z),T[Z]=!0,v=Z+g,_=void 0}else O=!0}E=K}if(O&&m&&m(),p.length===0)return u;h&&h();let j=u.slice(0,p[0]);for(let K=0;K<p.length;++K){const Z=p[K],F=p[K+1]||u.length;Z===0?j=`
|
|
59
|
+
${l}${u.slice(0,F)}`:(i===gu&&T[Z]&&(j+=`${u[Z]}\\`),j+=`
|
|
60
|
+
${l}${u.slice(Z+1,F)}`)}return j}function bg(u,l,i){let s=l,c=l+1,f=u[c];for(;f===" "||f===" ";)if(l<c+i)f=u[++l];else{do f=u[++l];while(f&&f!==`
|
|
61
|
+
`);s=l,c=l+1,f=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 H1(u,l,i){if(!l||l<0)return!1;const s=l-i,c=u.length;if(c<=s)return!1;for(let f=0,h=0;f<c;++f)if(u[f]===`
|
|
62
|
+
`){if(f-h>s)return!0;if(h=f+1,c-h<=s)return!1}return!0}function Di(u,l){const i=JSON.stringify(u);if(l.options.doubleQuotedAsJSON)return i;const{implicitKey:s}=l,c=l.options.doubleQuotedMinMultiLineLength,f=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 T=i.substr(g+2,4);switch(T){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:T.substr(0,2)==="00"?h+="\\x"+T.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+=f,i[g+2]===" "&&(h+="\\"),g+=1,m=g+1}break;default:g+=1}return h=m?h+i.slice(m):i,s?h:xu(h,f,gu,Mu(l,!1))}function xo(u,l){if(l.options.singleQuote===!1||l.implicitKey&&u.includes(`
|
|
66
|
+
`)||/[ \t]\n|\n[ \t]/.test(u))return Di(u,l);const i=l.indent||(Cu(u)?" ":""),s="'"+u.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
67
|
+
${i}`)+"'";return l.implicitKey?s:xu(s,i,dp,Mu(l,!1))}function wa(u,l){const{singleQuote:i}=l.options;let s;if(i===!1)s=Di;else{const c=u.includes('"'),f=u.includes("'");c&&!f?s=xo:f&&!c?s=Di:s=i?xo:Di}return s(u,l)}let Mo;try{Mo=new RegExp(`(^|(?<!
|
|
68
|
+
))
|
|
69
|
+
+(?!
|
|
70
|
+
|$)`,"g")}catch{Mo=/\n+(?!\n|$)/g}function pu({comment:u,type:l,value:i},s,c,f){const{blockQuote:h,commentString:m,lineWidth:g}=s.options;if(!h||/\n[\t ]+$/.test(i))return wa(i,s);const p=s.indent||(s.forceBlockIndent||Cu(i)?" ":""),T=h==="literal"?!0:h==="folded"||l===oe.BLOCK_FOLDED?!1:l===oe.BLOCK_LITERAL?!0:!H1(i,g,p.length);if(!i)return T?`|
|
|
71
|
+
`:`>
|
|
72
|
+
`;let v,_;for(_=i.length;_>0;--_){const F=i[_-1];if(F!==`
|
|
73
|
+
`&&F!==" "&&F!==" ")break}let E=i.substring(_);const O=E.indexOf(`
|
|
74
|
+
`);O===-1?v="-":i===E||O!==E.length-1?(v="+",f&&f()):v="",E&&(i=i.slice(0,-E.length),E[E.length-1]===`
|
|
75
|
+
`&&(E=E.slice(0,-1)),E=E.replace(Mo,`$&${p}`));let b=!1,w,M=-1;for(w=0;w<i.length;++w){const F=i[w];if(F===" ")b=!0;else if(F===`
|
|
76
|
+
`)M=w;else break}let j=i.substring(0,M<w?M+1:w);j&&(i=i.substring(j.length),j=j.replace(/\n+/g,`$&${p}`));let Z=(b?p?"2":"1":"")+v;if(u&&(Z+=" "+m(u.replace(/ ?[\r\n]+/g," ")),c&&c()),!T){const F=i.replace(/\n+/g,`
|
|
77
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let J=!1;const V=Mu(s,!0);h!=="folded"&&l!==oe.BLOCK_FOLDED&&(V.onOverflow=()=>{J=!0});const X=xu(`${j}${F}${E}`,p,_o,V);if(!J)return`>${Z}
|
|
78
|
+
${p}${X}`}return i=i.replace(/\n+/g,`$&${p}`),`|${Z}
|
|
79
|
+
${p}${j}${i}${E}`}function Y1(u,l,i,s){const{type:c,value:f}=u,{actualString:h,implicitKey:m,indent:g,indentStep:p,inFlow:T}=l;if(m&&f.includes(`
|
|
80
|
+
`)||T&&/[[\]{},]/.test(f))return wa(f,l);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(f))return m||T||!f.includes(`
|
|
81
|
+
`)?wa(f,l):pu(u,l,i,s);if(!m&&!T&&c!==oe.PLAIN&&f.includes(`
|
|
82
|
+
`))return pu(u,l,i,s);if(Cu(f)){if(g==="")return l.forceBlockIndent=!0,pu(u,l,i,s);if(m&&g===p)return wa(f,l)}const v=f.replace(/\n+/g,`$&
|
|
83
|
+
${g}`);if(h){const _=b=>{var w;return b.default&&b.tag!=="tag:yaml.org,2002:str"&&((w=b.test)==null?void 0:w.test(v))},{compat:E,tags:O}=l.doc.schema;if(O.some(_)||E!=null&&E.some(_))return wa(f,l)}return m?v:xu(v,g,dp,Mu(l,!1))}function Ri(u,l,i,s){const{implicitKey:c,inFlow:f}=l,h=typeof u.value=="string"?u:Object.assign({},u,{value:String(u.value)});let{type:m}=u;m!==oe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(m=oe.QUOTE_DOUBLE);const g=T=>{switch(T){case oe.BLOCK_FOLDED:case oe.BLOCK_LITERAL:return c||f?wa(h.value,l):pu(h,l,i,s);case oe.QUOTE_DOUBLE:return Di(h.value,l);case oe.QUOTE_SINGLE:return xo(h.value,l);case oe.PLAIN:return Y1(h,l,i,s);default:return null}};let p=g(m);if(p===null){const{defaultKeyType:T,defaultStringType:v}=l.options,_=c&&T||v;if(p=g(_),p===null)throw new Error(`Unsupported default string type ${_}`)}return p}function mp(u,l){const i=Object.assign({blockQuote:!0,commentString:q1,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 $1(u,l){var c;if(l.tag){const f=u.filter(h=>h.tag===l.tag);if(f.length>0)return f.find(h=>h.format===l.format)??f[0]}let i,s;if(De(l)){s=l.value;let f=u.filter(h=>{var m;return(m=h.identify)==null?void 0:m.call(h,s)});if(f.length>1){const h=f.filter(m=>m.test);h.length>0&&(f=h)}i=f.find(h=>h.format===l.format)??f.find(h=>!h.format)}else s=l,i=u.find(f=>f.nodeClass&&s instanceof f.nodeClass);if(!i){const f=((c=s==null?void 0:s.constructor)==null?void 0:c.name)??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${f} value`)}return i}function G1(u,l,{anchors:i,doc:s}){if(!s.directives)return"";const c=[],f=(De(u)||Re(u))&&u.anchor;f&&cp(f)&&(i.add(f),c.push(`&${f}`));const h=u.tag??(l.default?null:l.tag);return h&&c.push(s.directives.tagString(h)),c.join(" ")}function Oa(u,l,i,s){var g;if(ke(u))return u.toString(l,i,s);if(tl(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 f=Be(u)?u:l.doc.createNode(u,{onTagObj:p=>c=p});c??(c=$1(l.doc.schema.tags,f));const h=G1(f,c,l);h.length>0&&(l.indentAtStart=(l.indentAtStart??0)+h.length+1);const m=typeof c.stringify=="function"?c.stringify(f,l,i,s):De(f)?Ri(f,l,i,s):f.toString(l,i,s);return h?De(f)||m[0]==="{"||m[0]==="["?`${h} ${m}`:`${h}
|
|
84
|
+
${l.indent}${m}`:m}function K1({key:u,value:l},i,s,c){const{allNullValues:f,doc:h,indent:m,indentStep:g,options:{commentString:p,indentSeq:T,simpleKeys:v}}=i;let _=Be(u)&&u.comment||null;if(v){if(_)throw new Error("With simple keys, key nodes cannot have comments");if(Re(u)||!Be(u)&&typeof u=="object"){const V="With simple keys, collection cannot be used as a key value";throw new Error(V)}}let E=!v&&(!u||_&&l==null&&!i.inFlow||Re(u)||(De(u)?u.type===oe.BLOCK_FOLDED||u.type===oe.BLOCK_LITERAL:typeof u=="object"));i=Object.assign({},i,{allNullValues:!1,implicitKey:!E&&(v||!f),indent:m+g});let O=!1,b=!1,w=Oa(u,i,()=>O=!0,()=>b=!0);if(!E&&!i.inFlow&&w.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(f||l==null)return O&&s&&s(),w===""?"?":E?`? ${w}`:w}else if(f&&!v||l==null&&E)return w=`? ${w}`,_&&!O?w+=wl(w,i.indent,p(_)):b&&c&&c(),w;O&&(_=null),E?(_&&(w+=wl(w,i.indent,p(_))),w=`? ${w}
|
|
85
|
+
${m}:`):(w=`${w}:`,_&&(w+=wl(w,i.indent,p(_))));let M,j,K;Be(l)?(M=!!l.spaceBefore,j=l.commentBefore,K=l.comment):(M=!1,j=null,K=null,l&&typeof l=="object"&&(l=h.createNode(l))),i.implicitKey=!1,!E&&!_&&De(l)&&(i.indentAtStart=w.length+1),b=!1,!T&&g.length>=2&&!i.inFlow&&!E&&za(l)&&!l.flow&&!l.tag&&!l.anchor&&(i.indent=i.indent.substring(2));let Z=!1;const F=Oa(l,i,()=>Z=!0,()=>b=!0);let J=" ";if(_||M||j){if(J=M?`
|
|
86
|
+
`:"",j){const V=p(j);J+=`
|
|
87
|
+
${An(V,i.indent)}`}F===""&&!i.inFlow?J===`
|
|
88
|
+
`&&K&&(J=`
|
|
89
|
+
|
|
90
|
+
`):J+=`
|
|
91
|
+
${i.indent}`}else if(!E&&Re(l)){const V=F[0],X=F.indexOf(`
|
|
92
|
+
`),L=X!==-1,ce=i.inFlow??l.flow??l.items.length===0;if(L||!ce){let se=!1;if(L&&(V==="&"||V==="!")){let H=F.indexOf(" ");V==="&"&&H!==-1&&H<X&&F[H+1]==="!"&&(H=F.indexOf(" ",H+1)),(H===-1||X<H)&&(se=!0)}se||(J=`
|
|
93
|
+
${i.indent}`)}}else(F===""||F[0]===`
|
|
94
|
+
`)&&(J="");return w+=J+F,i.inFlow?Z&&s&&s():K&&!Z?w+=wl(w,i.indent,p(K)):b&&c&&c(),w}function gp(u,l){(u==="debug"||u==="warn")&&console.warn(l)}const lu="<<",On={identify:u=>u===lu||typeof u=="symbol"&&u.description===lu,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new oe(Symbol(lu)),{addToJSMap:pp}),stringify:()=>lu},V1=(u,l)=>(On.identify(l)||De(l)&&(!l.type||l.type===oe.PLAIN)&&On.identify(l.value))&&(u==null?void 0:u.doc.schema.tags.some(i=>i.tag===On.tag&&i.default));function pp(u,l,i){if(i=u&&tl(i)?i.resolve(u.doc):i,za(i))for(const s of i.items)fo(u,l,s);else if(Array.isArray(i))for(const s of i)fo(u,l,s);else fo(u,l,i)}function fo(u,l,i){const s=u&&tl(i)?i.resolve(u.doc):i;if(!Ca(s))throw new Error("Merge sources must be maps or map aliases");const c=s.toJSON(null,u,Map);for(const[f,h]of c)l instanceof Map?l.has(f)||l.set(f,h):l instanceof Set?l.add(f):Object.prototype.hasOwnProperty.call(l,f)||Object.defineProperty(l,f,{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(V1(u,i))pp(u,l,s);else{const c=Vt(i,"",u);if(l instanceof Map)l.set(c,Vt(s,c,u));else if(l instanceof Set)l.add(c);else{const f=Q1(i,c,u),h=Vt(s,f,u);f in l?Object.defineProperty(l,f,{value:h,writable:!0,enumerable:!0,configurable:!0}):l[f]=h}}return l}function Q1(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 f of i.anchors.keys())s.anchors.add(f.anchor);s.inFlow=!0,s.inStringifyKey=!0;const c=u.toString(s);if(!i.mapKeyWarned){let f=JSON.stringify(c);f.length>40&&(f=f.substring(0,36)+'..."'),gp(i.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${f}. Set mapAsMap: true to use object keys.`),i.mapKeyWarned=!0}return c}return JSON.stringify(l)}function ko(u,l,i){const s=Li(u,void 0,i),c=Li(l,void 0,i);return new ot(s,c)}class ot{constructor(l,i=null){Object.defineProperty(this,Qt,{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 ot(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?K1(this,l,i,s):JSON.stringify(this)}}function vp(u,l,i){return(l.inFlow??u.flow?Z1:X1)(u,l,i)}function X1({comment:u,items:l},i,{blockItemPrefix:s,flowChars:c,itemIndent:f,onChompKeep:h,onComment:m}){const{indent:g,options:{commentString:p}}=i,T=Object.assign({},i,{indent:f,type:null});let v=!1;const _=[];for(let O=0;O<l.length;++O){const b=l[O];let w=null;if(Be(b))!v&&b.spaceBefore&&_.push(""),Su(i,_,b.commentBefore,v),b.comment&&(w=b.comment);else if(ke(b)){const j=Be(b.key)?b.key:null;j&&(!v&&j.spaceBefore&&_.push(""),Su(i,_,j.commentBefore,v))}v=!1;let M=Oa(b,T,()=>w=null,()=>v=!0);w&&(M+=wl(M,f,p(w))),v&&w&&(v=!1),_.push(s+M)}let E;if(_.length===0)E=c.start+c.end;else{E=_[0];for(let O=1;O<_.length;++O){const b=_[O];E+=b?`
|
|
95
|
+
${g}${b}`:`
|
|
96
|
+
`}}return u?(E+=`
|
|
97
|
+
`+An(p(u),g),m&&m()):v&&h&&h(),E}function Z1({items:u},l,{flowChars:i,itemIndent:s}){const{indent:c,indentStep:f,flowCollectionPadding:h,options:{commentString:m}}=l;s+=f;const g=Object.assign({},l,{indent:s,inFlow:!0,type:null});let p=!1,T=0;const v=[];for(let O=0;O<u.length;++O){const b=u[O];let w=null;if(Be(b))b.spaceBefore&&v.push(""),Su(l,v,b.commentBefore,!1),b.comment&&(w=b.comment);else if(ke(b)){const j=Be(b.key)?b.key:null;j&&(j.spaceBefore&&v.push(""),Su(l,v,j.commentBefore,!1),j.comment&&(p=!0));const K=Be(b.value)?b.value:null;K?(K.comment&&(w=K.comment),K.commentBefore&&(p=!0)):b.value==null&&(j!=null&&j.comment)&&(w=j.comment)}w&&(p=!0);let M=Oa(b,g,()=>w=null);p||(p=v.length>T||M.includes(`
|
|
98
|
+
`)),O<u.length-1?M+=",":l.options.trailingComma&&(l.options.lineWidth>0&&(p||(p=v.reduce((j,K)=>j+K.length+2,2)+(M.length+2)>l.options.lineWidth)),p&&(M+=",")),w&&(M+=wl(M,s,m(w))),v.push(M),T=v.length}const{start:_,end:E}=i;if(v.length===0)return _+E;if(!p){const O=v.reduce((b,w)=>b+w.length+2,2);p=l.options.lineWidth>0&&O>l.options.lineWidth}if(p){let O=_;for(const b of v)O+=b?`
|
|
99
|
+
${f}${c}${b}`:`
|
|
100
|
+
`;return`${O}
|
|
101
|
+
${c}${E}`}else return`${_}${h}${v.join(" ")}${h}${E}`}function Su({indent:u,options:{commentString:l}},i,s,c){if(s&&c&&(s=s.replace(/^\n+/,"")),s){const f=An(l(s),u);i.push(f.trimStart())}}function El(u,l){const i=De(l)?l.value:l;for(const s of u)if(ke(s)&&(s.key===l||s.key===i||De(s.key)&&s.key.value===i))return s}class jt extends hp{static get tagName(){return"tag:yaml.org,2002:map"}constructor(l){super(Pn,l),this.items=[]}static from(l,i,s){const{keepUndefined:c,replacer:f}=s,h=new this(l),m=(g,p)=>{if(typeof f=="function")p=f.call(i,g,p);else if(Array.isArray(f)&&!f.includes(g))return;(p!==void 0||c)&&h.items.push(ko(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 ot(l,l==null?void 0:l.value):s=new ot(l.key,l.value);const c=El(this.items,s.key),f=(h=this.schema)==null?void 0:h.sortMapEntries;if(c){if(!i)throw new Error(`Key ${s.key} already set`);De(c.value)&&fp(s.value)?c.value.value=s.value:c.value=s.value}else if(f){const m=this.items.findIndex(g=>f(s,g)<0);m===-1?this.items.push(s):this.items.splice(m,0,s)}else this.items.push(s)}delete(l){const i=El(this.items,l);return i?this.items.splice(this.items.indexOf(i),1).length>0:!1}get(l,i){const s=El(this.items,l),c=s==null?void 0:s.value;return(!i&&De(c)?c.value:c)??void 0}has(l){return!!El(this.items,l)}set(l,i){this.add(new ot(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 f of this.items)yp(i,c,f);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 Da={collection:"map",default:!0,nodeClass:jt,tag:"tag:yaml.org,2002:map",resolve(u,l){return Ca(u)||l("Expected a mapping for this tag"),u},createNode:(u,l,i)=>jt.from(u,l,i)};class el extends hp{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(l){super(Ma,l),this.items=[]}add(l){this.items.push(l)}delete(l){const i=au(l);return typeof i!="number"?!1:this.items.splice(i,1).length>0}get(l,i){const s=au(l);if(typeof s!="number")return;const c=this.items[s];return!i&&De(c)?c.value:c}has(l){const i=au(l);return typeof i=="number"&&i<this.items.length}set(l,i){const s=au(l);if(typeof s!="number")throw new Error(`Expected a valid index, not ${l}.`);const c=this.items[s];De(c)&&fp(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 f of this.items)s.push(Vt(f,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,f=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)}f.items.push(Li(m,void 0,s))}}return f}}function au(u){let l=De(u)?u.value:u;return l&&typeof l=="string"&&(l=Number(l)),typeof l=="number"&&Number.isInteger(l)&&l>=0?l:null}const La={collection:"seq",default:!0,nodeClass:el,tag:"tag:yaml.org,2002:seq",resolve(u,l){return za(u)||l("Expected a sequence for this tag"),u},createNode:(u,l,i)=>el.from(u,l,i)},zu={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),Ri(u,l,i,s)}},Du={identify:u=>u==null,createNode:()=>new oe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new oe(null),stringify:({source:u},l)=>typeof u=="string"&&Du.test.test(u)?u:l.options.nullStr},Ro={identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:u=>new oe(u[0]==="t"||u[0]==="T"),stringify({source:u,value:l},i){if(u&&Ro.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 Ft({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 f=Object.is(s,-0)?"-0":JSON.stringify(s);if(!u&&l&&(!i||i==="tag:yaml.org,2002:float")&&/^\d/.test(f)){let h=f.indexOf(".");h<0&&(h=f.length,f+=".");let m=l-(f.length-h-1);for(;m-- >0;)f+="0"}return f}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:Ft},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():Ft(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 oe(parseFloat(u)),i=u.indexOf(".");return i!==-1&&u[u.length-1]==="0"&&(l.minFractionDigits=u.length-i-1),l},stringify:Ft},Lu=u=>typeof u=="bigint"||Number.isInteger(u),Bo=(u,l,i,{intAsBigInt:s})=>s?BigInt(u):parseInt(u.substring(l),i);function wp(u,l,i){const{value:s}=u;return Lu(s)&&s>=0?i+s.toString(l):Ft(u)}const Ep={identify:u=>Lu(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(u,l,i)=>Bo(u,2,8,i),stringify:u=>wp(u,8,"0o")},Ap={identify:Lu,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(u,l,i)=>Bo(u,0,10,i),stringify:Ft},Op={identify:u=>Lu(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(u,l,i)=>Bo(u,2,16,i),stringify:u=>wp(u,16,"0x")},J1=[Da,La,zu,Du,Ro,Ep,Ap,Op,bp,Sp,Tp];function Sg(u){return typeof u=="bigint"||Number.isInteger(u)}const iu=({value:u})=>JSON.stringify(u),W1=[{identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify:iu},{identify:u=>u==null,createNode:()=>new oe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:iu},{identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:u=>u==="true",stringify:iu},{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:iu}],F1={default:!0,tag:"",test:/^/,resolve(u,l){return l(`Unresolved plain scalar ${JSON.stringify(u)}`),u}},I1=[Da,La].concat(W1,F1),qo={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,f){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=oe.BLOCK_LITERAL),l!==oe.QUOTE_DOUBLE){const g=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),p=Math.ceil(m.length/g),T=new Array(p);for(let v=0,_=0;v<p;++v,_+=g)T[v]=m.substr(_,g);m=T.join(l===oe.BLOCK_LITERAL?`
|
|
102
|
+
`:" ")}return Ri({comment:u,type:l,value:m},s,c,f)}};function Np(u,l){if(za(u))for(let i=0;i<u.items.length;++i){let s=u.items[i];if(!ke(s)){if(Ca(s)){s.items.length>1&&l("Each pair must have its own sequence indicator");const c=s.items[0]||new ot(new oe(null));if(s.commentBefore&&(c.key.commentBefore=c.key.commentBefore?`${s.commentBefore}
|
|
103
|
+
${c.key.commentBefore}`:s.commentBefore),s.comment){const f=c.value??c.key;f.comment=f.comment?`${s.comment}
|
|
104
|
+
${f.comment}`:s.comment}s=c}u.items[i]=ke(s)?s:new ot(s)}}else l("Expected a sequence for this tag");return u}function _p(u,l,i){const{replacer:s}=i,c=new el(u);c.tag="tag:yaml.org,2002:pairs";let f=0;if(l&&Symbol.iterator in Object(l))for(let h of l){typeof s=="function"&&(h=s.call(l,String(f++),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(ko(m,g,i))}return c}const Ho={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Np,createNode:_p};class Ea extends el{constructor(){super(),this.add=jt.prototype.add.bind(this),this.delete=jt.prototype.delete.bind(this),this.get=jt.prototype.get.bind(this),this.has=jt.prototype.has.bind(this),this.set=jt.prototype.set.bind(this),this.tag=Ea.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 f,h;if(ke(c)?(f=Vt(c.key,"",i),h=Vt(c.value,f,i)):f=Vt(c,"",i),s.has(f))throw new Error("Ordered maps must not include duplicate keys");s.set(f,h)}return s}static from(l,i,s){const c=_p(l,i,s),f=new this;return f.items=c.items,f}}Ea.tag="tag:yaml.org,2002:omap";const Yo={collection:"seq",identify:u=>u instanceof Map,nodeClass:Ea,default:!1,tag:"tag:yaml.org,2002:omap",resolve(u,l){const i=Np(u,l),s=[];for(const{key:c}of i.items)De(c)&&(s.includes(c.value)?l(`Ordered maps must not include duplicate keys: ${c.value}`):s.push(c.value));return Object.assign(new Ea,i)},createNode:(u,l,i)=>Ea.from(u,l,i)};function xp({value:u,source:l},i){return l&&(u?Mp:Cp).test.test(l)?l:u?i.options.trueStr:i.options.falseStr}const Mp={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 oe(!0),stringify:xp},Cp={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 oe(!1),stringify:xp},P1={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:Ft},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():Ft(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 oe(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:Ft},Bi=u=>typeof u=="bigint"||Number.isInteger(u);function ju(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 f=parseInt(u,i);return c==="-"?-1*f:f}function $o(u,l,i){const{value:s}=u;if(Bi(s)){const c=s.toString(l);return s<0?"-"+i+c.substr(1):i+c}return Ft(u)}const nb={identify:Bi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(u,l,i)=>ju(u,2,2,i),stringify:u=>$o(u,2,"0b")},lb={identify:Bi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(u,l,i)=>ju(u,1,8,i),stringify:u=>$o(u,8,"0")},ab={identify:Bi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(u,l,i)=>ju(u,0,10,i),stringify:Ft},ib={identify:Bi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(u,l,i)=>ju(u,2,16,i),stringify:u=>$o(u,16,"0x")};class Aa extends jt{constructor(l){super(l),this.tag=Aa.tag}add(l){let i;ke(l)?i=l:l&&typeof l=="object"&&"key"in l&&"value"in l&&l.value===null?i=new ot(l.key,null):i=new ot(l,null),El(this.items,i.key)||this.items.push(i)}get(l,i){const s=El(this.items,l);return!i&&ke(s)?De(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=El(this.items,l);s&&!i?this.items.splice(this.items.indexOf(s),1):!s&&i&&this.items.push(new ot(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,f=new this(l);if(i&&Symbol.iterator in Object(i))for(let h of i)typeof c=="function"&&(h=c.call(i,h,h)),f.items.push(ko(h,null,s));return f}}Aa.tag="tag:yaml.org,2002:set";const Go={collection:"map",identify:u=>u instanceof Set,nodeClass:Aa,default:!1,tag:"tag:yaml.org,2002:set",createNode:(u,l,i)=>Aa.from(u,l,i),resolve(u,l){if(Ca(u)){if(u.hasAllNullValues(!0))return Object.assign(new Aa,u);l("Set items must all have null values")}else l("Expected a mapping for this tag");return u}};function Ko(u,l){const i=u[0],s=i==="-"||i==="+"?u.substring(1):u,c=h=>l?BigInt(h):Number(h),f=s.replace(/_/g,"").split(":").reduce((h,m)=>h*c(60)+c(m),c(0));return i==="-"?c(-1)*f:f}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 Ft(u);let s="";l<0&&(s="-",l*=i(-1));const c=i(60),f=[l%c];return l<60?f.unshift(0):(l=(l-f[0])/c,f.unshift(l%c),l>=60&&(l=(l-f[0])/c,f.unshift(l))),s+f.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})=>Ko(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=>Ko(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,f,h,m]=l.map(Number),g=l[7]?Number((l[7]+"00").substr(1,3)):0;let p=Date.UTC(i,s-1,c,f||0,h||0,m||0,g);const T=l[8];if(T&&T!=="Z"){let v=Ko(T,!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=[Da,La,zu,Du,Mp,Cp,nb,lb,ab,ib,P1,eb,tb,qo,On,Yo,Ho,Go,Dp,Lp,Uu],wg=new Map([["core",J1],["failsafe",[Da,La,zu]],["json",I1],["yaml11",Tg],["yaml-1.1",Tg]]),Eg={binary:qo,bool:Ro,float:Tp,floatExp:Sp,floatNaN:bp,floatTime:Lp,int:Ap,intHex:Op,intOct:Ep,intTime:Dp,map:Da,merge:On,null:Du,omap:Yo,pairs:Ho,seq:La,set:Go,timestamp:Uu},sb={"tag:yaml.org,2002:binary":qo,"tag:yaml.org,2002:merge":On,"tag:yaml.org,2002:omap":Yo,"tag:yaml.org,2002:pairs":Ho,"tag:yaml.org,2002:set":Go,"tag:yaml.org,2002:timestamp":Uu};function ho(u,l,i){const s=wg.get(l);if(s&&!u)return i&&!s.includes(On)?s.concat(On):s.slice();let c=s;if(!c)if(Array.isArray(u))c=[];else{const f=Array.from(wg.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${l}"; use one of ${f} or define customTags array`)}if(Array.isArray(u))for(const f of u)c=c.concat(f);else typeof u=="function"&&(c=u(c.slice()));return i&&(c=c.concat(On)),c.reduce((f,h)=>{const m=typeof h=="string"?Eg[h]:h;if(!m){const g=JSON.stringify(h),p=Object.keys(Eg).map(T=>JSON.stringify(T)).join(", ");throw new Error(`Unknown custom tag ${g}; use one of ${p}`)}return f.includes(m)||f.push(m),f},[])}const ub=(u,l)=>u.key<l.key?-1:u.key>l.key?1:0;class ku{constructor({compat:l,customTags:i,merge:s,resolveKnownTags:c,schema:f,sortMapEntries:h,toStringDefaults:m}){this.compat=Array.isArray(l)?ho(l,"compat"):l?ho(null,l):null,this.name=typeof f=="string"&&f||"core",this.knownTags=c?sb:{},this.tags=ho(i,this.name,s),this.toStringOptions=m??null,Object.defineProperty(this,Pn,{value:Da}),Object.defineProperty(this,ln,{value:zu}),Object.defineProperty(this,Ma,{value:La}),this.sortMapEntries=typeof h=="function"?h:h===!0?ub:null}clone(){const l=Object.create(ku.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:f}=c.options;if(u.commentBefore){i.length!==1&&i.unshift("");const p=f(u.commentBefore);i.unshift(An(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=f(u.contents.commentBefore);i.push(An(v,""))}c.forceBlockIndent=!!u.comment,m=u.contents.comment}const p=m?void 0:()=>h=!0;let T=Oa(u.contents,c,()=>m=null,p);m&&(T+=wl(T,"",f(m))),(T[0]==="|"||T[0]===">")&&i[i.length-1]==="---"?i[i.length-1]=`--- ${T}`:i.push(T)}else i.push(Oa(u.contents,c));if((g=u.directives)!=null&&g.docEnd)if(u.comment){const p=f(u.comment);p.includes(`
|
|
105
|
+
`)?(i.push("..."),i.push(An(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(An(f(p),"")))}return i.join(`
|
|
106
|
+
`)+`
|
|
107
|
+
`}class ja{constructor(l,i,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Qt,{value:No});let c=null;typeof i=="function"||Array.isArray(i)?c=i:s===void 0&&i&&(s=i,i=void 0);const f=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=f;let{version:h}=f;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(ja.prototype,{[Qt]:{value:No}});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){ma(this.contents)&&this.contents.add(l)}addIn(l,i){ma(this.contents)&&this.contents.addIn(l,i)}createAlias(l,i){if(!l.anchor){const s=rp(this);l.anchor=!i||s.has(i)?op(i||"a",s):i}return new _u(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 w=j=>typeof j=="number"||j instanceof String||j instanceof Number,M=i.filter(w).map(String);M.length>0&&(i=i.concat(M)),c=i}else s===void 0&&i&&(s=i,i=void 0);const{aliasDuplicateObjects:f,anchorPrefix:h,flow:m,keepUndefined:g,onTagObj:p,tag:T}=s??{},{onAnchor:v,setAnchors:_,sourceObjects:E}=k1(this,h||"a"),O={aliasDuplicateObjects:f??!0,keepUndefined:g??!1,onAnchor:v,onTagObj:p,replacer:c,schema:this.schema,sourceObjects:E},b=Li(l,T,O);return m&&Re(b)&&(b.flow=!0),_(),b}createPair(l,i,s={}){const c=this.createNode(l,null,s),f=this.createNode(i,null,s);return new ot(c,f)}delete(l){return ma(this.contents)?this.contents.delete(l):!1}deleteIn(l){return zi(l)?this.contents==null?!1:(this.contents=null,!0):ma(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 zi(l)?!i&&De(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 zi(l)?this.contents!==void 0:Re(this.contents)?this.contents.hasIn(l):!1}set(l,i){this.contents==null?this.contents=bu(this.schema,[l],i):ma(this.contents)&&this.contents.set(l,i)}setIn(l,i){zi(l)?this.contents=i:this.contents==null?this.contents=bu(this.schema,Array.from(l),i):ma(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 ku(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:f,reviver:h}={}){const m={anchors:new Map,doc:this,keep:!l,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof c=="number"?c:100},g=Vt(this.contents,i??"",m);if(typeof f=="function")for(const{count:p,res:T}of m.anchors.values())f(T,p);return typeof h=="function"?Ta(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 ma(u){if(Re(u))return!0;throw new Error("Expected a YAML collection as document contents")}class Vo extends Error{constructor(l,i,s,c){super(),this.name=l,this.code=s,this.message=c,this.pos=i}}class Al extends Vo{constructor(l,i,s){super("YAMLParseError",l,i,s)}}class jp extends Vo{constructor(l,i,s){super("YAMLWarning",l,i,s)}}const Tu=(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 f=c-1,h=u.substring(l.lineStarts[s-1],l.lineStarts[s]).replace(/[\n\r]+$/,"");if(f>=60&&h.length>80){const m=Math.min(f-39,h.length-79);h="…"+h.substring(m),f-=m-1}if(h.length>80&&(h=h.substring(0,79)+"…"),s>1&&/^ *$/.test(h.substring(0,f))){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-f)));const p=" ".repeat(f)+"^".repeat(m);i.message+=`:
|
|
109
|
+
|
|
110
|
+
${h}
|
|
111
|
+
${p}
|
|
112
|
+
`}};function Na(u,{flow:l,indicator:i,next:s,offset:c,onError:f,parentIndent:h,startOnNewline:m}){let g=!1,p=m,T=m,v="",_="",E=!1,O=!1,b=null,w=null,M=null,j=null,K=null,Z=null,F=null;for(const X of u)switch(O&&(X.type!=="space"&&X.type!=="newline"&&X.type!=="comma"&&f(X.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),O=!1),b&&(p&&X.type!=="comment"&&X.type!=="newline"&&f(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),b=null),X.type){case"space":!l&&(i!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&X.source.includes(" ")&&(b=X),T=!0;break;case"comment":{T||f(X,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const L=X.source.substring(1)||" ";v?v+=_+L:v=L,_="",p=!1;break}case"newline":p?v?v+=X.source:(!Z||i!=="seq-item-ind")&&(g=!0):_+=X.source,p=!0,E=!0,(w||M)&&(j=X),T=!0;break;case"anchor":w&&f(X,"MULTIPLE_ANCHORS","A node can have at most one anchor"),X.source.endsWith(":")&&f(X.offset+X.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),w=X,F??(F=X.offset),p=!1,T=!1,O=!0;break;case"tag":{M&&f(X,"MULTIPLE_TAGS","A node can have at most one tag"),M=X,F??(F=X.offset),p=!1,T=!1,O=!0;break}case i:(w||M)&&f(X,"BAD_PROP_ORDER",`Anchors and tags must be after the ${X.source} indicator`),Z&&f(X,"UNEXPECTED_TOKEN",`Unexpected ${X.source} in ${l??"collection"}`),Z=X,p=i==="seq-item-ind"||i==="explicit-key-ind",T=!1;break;case"comma":if(l){K&&f(X,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`),K=X,p=!1,T=!1;break}default:f(X,"UNEXPECTED_TOKEN",`Unexpected ${X.type} token`),p=!1,T=!1}const J=u[u.length-1],V=J?J.offset+J.source.length:c;return O&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&f(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b&&(p&&b.indent<=h||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&f(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:K,found:Z,spaceBefore:g,comment:v,hasNewline:E,anchor:w,tag:M,newlineAfterProp:j,end:V,start:F??V}}function ji(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(ji(l.key)||ji(l.value))return!0}return!1;default:return!0}}function Co(u,l,i){if((l==null?void 0:l.type)==="flow-collection"){const s=l.end[0];s.indent===u&&(s.source==="]"||s.source==="}")&&ji(l)&&i(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Up(u,l,i){const{uniqueKeys:s}=u.options;if(s===!1)return!1;const c=typeof s=="function"?s:(f,h)=>f===h||De(f)&&De(h)&&f.value===h.value;return l.some(f=>c(f.key,i))}const Ag="All mapping items must start at the same column";function rb({composeNode:u,composeEmptyNode:l},i,s,c,f){var T;const h=(f==null?void 0:f.nodeClass)??jt,m=new h(i.schema);i.atRoot&&(i.atRoot=!1);let g=s.offset,p=null;for(const v of s.items){const{start:_,key:E,sep:O,value:b}=v,w=Na(_,{indicator:"explicit-key-ind",next:E??(O==null?void 0:O[0]),offset:g,onError:c,parentIndent:s.indent,startOnNewline:!0}),M=!w.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)),!w.anchor&&!w.tag&&!O){p=w.end,w.comment&&(m.comment?m.comment+=`
|
|
114
|
+
`+w.comment:m.comment=w.comment);continue}(w.newlineAfterProp||ji(E))&&c(E??_[_.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((T=w.found)==null?void 0:T.indent)!==s.indent&&c(g,"BAD_INDENT",Ag);i.atKey=!0;const j=w.end,K=E?u(i,E,w,c):l(i,j,_,null,w,c);i.schema.compat&&Co(s.indent,E,c),i.atKey=!1,Up(i,m.items,K)&&c(j,"DUPLICATE_KEY","Map keys must be unique");const Z=Na(O??[],{indicator:"map-value-ind",next:b,offset:K.range[2],onError:c,parentIndent:s.indent,startOnNewline:!E||E.type==="block-scalar"});if(g=Z.end,Z.found){M&&((b==null?void 0:b.type)==="block-map"&&!Z.hasNewline&&c(g,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),i.options.strict&&w.start<Z.found.offset-1024&&c(K.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const F=b?u(i,b,Z,c):l(i,g,O,null,Z,c);i.schema.compat&&Co(s.indent,b,c),g=F.range[2];const J=new ot(K,F);i.options.keepSourceTokens&&(J.srcToken=v),m.items.push(J)}else{M&&c(K.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Z.comment&&(K.comment?K.comment+=`
|
|
115
|
+
`+Z.comment:K.comment=Z.comment);const F=new ot(K);i.options.keepSourceTokens&&(F.srcToken=v),m.items.push(F)}}return p&&p<g&&c(p,"IMPOSSIBLE","Map comment with trailing content"),m.range=[s.offset,g,p??g],m}function ob({composeNode:u,composeEmptyNode:l},i,s,c,f){const h=(f==null?void 0:f.nodeClass)??el,m=new h(i.schema);i.atRoot&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let g=s.offset,p=null;for(const{start:T,value:v}of s.items){const _=Na(T,{indicator:"seq-item-ind",next:v,offset:g,onError:c,parentIndent:s.indent,startOnNewline:!0});if(!_.found)if(_.anchor||_.tag||v)(v==null?void 0:v.type)==="block-seq"?c(_.end,"BAD_INDENT","All sequence items must start at the same column"):c(g,"MISSING_CHAR","Sequence item without - indicator");else{p=_.end,_.comment&&(m.comment=_.comment);continue}const E=v?u(i,v,_,c):l(i,_.end,T,null,_,c);i.schema.compat&&Co(s.indent,v,c),g=E.range[2],m.items.push(E)}return m.range=[s.offset,g,p??g],m}function qi(u,l,i,s){let c="";if(u){let f=!1,h="";for(const m of u){const{source:g,type:p}=m;switch(p){case"space":f=!0;break;case"comment":{i&&!f&&s(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const T=g.substring(1)||" ";c?c+=h+T:c=T,h="";break}case"newline":c&&(h+=g),f=!0;break;default:s(m,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}l+=g.length}}return{comment:c,offset:l}}const mo="Block collections are not allowed within flow collections",go=u=>u&&(u.type==="block-map"||u.type==="block-seq");function fb({composeNode:u,composeEmptyNode:l},i,s,c,f){var w;const h=s.start.source==="{",m=h?"flow map":"flow sequence",g=(f==null?void 0:f.nodeClass)??(h?jt:el),p=new g(i.schema);p.flow=!0;const T=i.atRoot;T&&(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 j=s.items[M],{start:K,key:Z,sep:F,value:J}=j,V=Na(K,{flow:m,indicator:"explicit-key-ind",next:Z??(F==null?void 0:F[0]),offset:v,onError:c,parentIndent:s.indent,startOnNewline:!1});if(!V.found){if(!V.anchor&&!V.tag&&!F&&!J){M===0&&V.comma?c(V.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`):M<s.items.length-1&&c(V.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${m}`),V.comment&&(p.comment?p.comment+=`
|
|
116
|
+
`+V.comment:p.comment=V.comment),v=V.end;continue}!h&&i.options.strict&&ji(Z)&&c(Z,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(M===0)V.comma&&c(V.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`);else if(V.comma||c(V.start,"MISSING_CHAR",`Missing , between ${m} items`),V.comment){let X="";e:for(const L of K)switch(L.type){case"comma":case"space":break;case"comment":X=L.source.substring(1);break e;default:break e}if(X){let L=p.items[p.items.length-1];ke(L)&&(L=L.value??L.key),L.comment?L.comment+=`
|
|
117
|
+
`+X:L.comment=X,V.comment=V.comment.substring(X.length+1)}}if(!h&&!F&&!V.found){const X=J?u(i,J,V,c):l(i,V.end,F,null,V,c);p.items.push(X),v=X.range[2],go(J)&&c(X.range,"BLOCK_IN_FLOW",mo)}else{i.atKey=!0;const X=V.end,L=Z?u(i,Z,V,c):l(i,X,K,null,V,c);go(Z)&&c(L.range,"BLOCK_IN_FLOW",mo),i.atKey=!1;const ce=Na(F??[],{flow:m,indicator:"map-value-ind",next:J,offset:L.range[2],onError:c,parentIndent:s.indent,startOnNewline:!1});if(ce.found){if(!h&&!V.found&&i.options.strict){if(F)for(const ee of F){if(ee===ce.found)break;if(ee.type==="newline"){c(ee,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}V.start<ce.found.offset-1024&&c(ce.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&&((w=J.source)==null?void 0:w[0])===":"?c(J,"MISSING_CHAR",`Missing space after : in ${m}`):c(ce.start,"MISSING_CHAR",`Missing , or : between ${m} items`));const se=J?u(i,J,ce,c):ce.found?l(i,ce.end,F,null,ce,c):null;se?go(J)&&c(se.range,"BLOCK_IN_FLOW",mo):ce.comment&&(L.comment?L.comment+=`
|
|
118
|
+
`+ce.comment:L.comment=ce.comment);const H=new ot(L,se);if(i.options.keepSourceTokens&&(H.srcToken=j),h){const ee=p;Up(i,ee.items,L)&&c(X,"DUPLICATE_KEY","Map keys must be unique"),ee.items.push(H)}else{const ee=new jt(i.schema);ee.flow=!0,ee.items.push(H);const be=(se??L).range;ee.range=[L.range[0],be[1],be[2]],p.items.push(ee)}v=se?se.range[2]:ce.end}}const _=h?"}":"]",[E,...O]=s.end;let b=v;if((E==null?void 0:E.source)===_)b=E.offset+E.source.length;else{const M=m[0].toUpperCase()+m.substring(1),j=T?`${M} must end with a ${_}`:`${M} in block collection must be sufficiently indented and end with a ${_}`;c(v,T?"MISSING_CHAR":"BAD_INDENT",j),E&&E.source.length!==1&&O.unshift(E)}if(O.length>0){const M=qi(O,b,i.options.strict,c);M.comment&&(p.comment?p.comment+=`
|
|
119
|
+
`+M.comment:p.comment=M.comment),p.range=[s.offset,b,M.offset]}else p.range=[s.offset,b,b];return p}function po(u,l,i,s,c,f){const h=i.type==="block-map"?rb(u,l,i,s,f):i.type==="block-seq"?ob(u,l,i,s,f):fb(u,l,i,s,f),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 _;const f=s.tag,h=f?l.directives.tagName(f.source,E=>c(f,"TAG_RESOLVE_FAILED",E)):null;if(i.type==="block-seq"){const{anchor:E,newlineAfterProp:O}=s,b=E&&f?E.offset>f.offset?E:f:E??f;b&&(!O||O.offset<b.offset)&&c(b,"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(!f||!h||h==="!"||h===jt.tagName&&m==="map"||h===el.tagName&&m==="seq")return po(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(f,"BAD_COLLECTION_TYPE",`${E.tag} used for ${m} collection, but expects ${E.collection??"scalar"}`,!0):c(f,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),po(u,l,i,c,h)}const p=po(u,l,i,c,h,g),T=((_=g.resolve)==null?void 0:_.call(g,p,E=>c(f,"TAG_RESOLVE_FAILED",E),l.options))??p,v=Be(T)?T:new oe(T);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 f=c.mode===">"?oe.BLOCK_FOLDED:oe.BLOCK_LITERAL,h=l.source?mb(l.source):[];let m=h.length;for(let b=h.length-1;b>=0;--b){const w=h[b][1];if(w===""||w==="\r")m=b;else break}if(m===0){const b=c.chomp==="+"&&h.length>0?`
|
|
120
|
+
`.repeat(Math.max(1,h.length-1)):"";let w=s+c.length;return l.source&&(w+=l.source.length),{value:b,type:f,comment:c.comment,range:[s,w,w]}}let g=l.indent+c.indent,p=l.offset+c.length,T=0;for(let b=0;b<m;++b){const[w,M]=h[b];if(M===""||M==="\r")c.indent===0&&w.length>g&&(g=w.length);else{w.length<g&&i(p+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),c.indent===0&&(g=w.length),T=b,g===0&&!u.atRoot&&i(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=w.length+M.length+1}for(let b=h.length-1;b>=m;--b)h[b][0].length>g&&(m=b+1);let v="",_="",E=!1;for(let b=0;b<T;++b)v+=h[b][0].slice(g)+`
|
|
121
|
+
`;for(let b=T;b<m;++b){let[w,M]=h[b];p+=w.length+M.length+1;const j=M[M.length-1]==="\r";if(j&&(M=M.slice(0,-1)),M&&w.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-(j?2:1),"BAD_INDENT",Z),w=""}f===oe.BLOCK_LITERAL?(v+=_+w.slice(g)+M,_=`
|
|
122
|
+
`):w.length>g||M[0]===" "?(_===" "?_=`
|
|
123
|
+
`:!E&&_===`
|
|
124
|
+
`&&(_=`
|
|
125
|
+
|
|
126
|
+
`),v+=_+w.slice(g)+M,_=`
|
|
127
|
+
`,E=!0):M===""?_===`
|
|
128
|
+
`?v+=`
|
|
129
|
+
`:_=`
|
|
130
|
+
`:(v+=_+M,_=" ",E=!1)}switch(c.chomp){case"-":break;case"+":for(let b=m;b<h.length;++b)v+=`
|
|
131
|
+
`+h[b][0].slice(g);v[v.length-1]!==`
|
|
132
|
+
`&&(v+=`
|
|
133
|
+
`);break;default:v+=`
|
|
134
|
+
`}const O=s+c.length+l.source.length;return{value:v,type:f,comment:c.comment,range:[s,O,O]}}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],f=c[0];let h=0,m="",g=-1;for(let _=1;_<c.length;++_){const E=c[_];if(!m&&(E==="-"||E==="+"))m=E;else{const O=Number(E);!h&&O?h=O:g===-1&&(g=u+_)}}g!==-1&&s(g,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${c}`);let p=!1,T="",v=c.length;for(let _=1;_<l.length;++_){const E=l[_];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,T=E.source.substring(1);break;case"error":s(E,"UNEXPECTED_TOKEN",E.message),v+=E.source.length;break;default:{const O=`Unexpected token in block scalar header: ${E.type}`;s(E,"UNEXPECTED_TOKEN",O);const b=E.source;b&&typeof b=="string"&&(v+=b.length)}}}return{mode:f,indent:h,chomp:m,comment:T,length:v}}function mb(u){const l=u.split(/\n( *)/),i=l[0],s=i.match(/^( *)/),f=[s!=null&&s[1]?[s[1],i.slice(s[1].length)]:["",i]];for(let h=1;h<l.length;h+=2)f.push([l[h],l[h+1]]);return f}function Rp(u,l,i){const{offset:s,type:c,source:f,end:h}=u;let m,g;const p=(_,E,O)=>i(s+_,E,O);switch(c){case"scalar":m=oe.PLAIN,g=gb(f,p);break;case"single-quoted-scalar":m=oe.QUOTE_SINGLE,g=pb(f,p);break;case"double-quoted-scalar":m=oe.QUOTE_DOUBLE,g=yb(f,p);break;default:return i(u,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${c}`),{value:"",type:null,comment:"",range:[s,s+f.length,s+f.length]}}const T=s+f.length,v=qi(h,T,l,i);return{value:g,type:m,comment:v.comment,range:[s,T,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],f=" ",h=l.lastIndex;for(i.lastIndex=h;s=i.exec(u);)s[1]===""?f===`
|
|
137
|
+
`?c+=f:f=`
|
|
138
|
+
`:(c+=f+s[1],f=" "),h=i.lastIndex;const m=/[ \t]*(.*)/sy;return m.lastIndex=h,s=m.exec(u),c+f+((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:f,offset:h}=vb(u,s);i+=f,s=h}else if(c==="\\"){let f=u[++s];const h=bb[f];if(h)i+=h;else if(f===`
|
|
141
|
+
`)for(f=u[s+1];f===" "||f===" ";)f=u[++s+1];else if(f==="\r"&&u[s+1]===`
|
|
142
|
+
`)for(f=u[++s+1];f===" "||f===" ";)f=u[++s+1];else if(f==="x"||f==="u"||f==="U"){const m={x:2,u:4,U:8}[f];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 f=s;let h=u[s+1];for(;h===" "||h===" ";)h=u[++s+1];h!==`
|
|
143
|
+
`&&!(h==="\r"&&u[s+2]===`
|
|
144
|
+
`)&&(i+=s>f?u.slice(f,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:f,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[ln]:g?p=Tb(u.schema,c,g,i,s):l.type==="scalar"?p=wb(u,c,l,s):p=u.schema[ln];let T;try{const v=p.resolve(c,_=>s(i??l,"TAG_RESOLVE_FAILED",_),u.options);T=De(v)?v:new oe(v)}catch(v){const _=v instanceof Error?v.message:String(v);s(i??l,"TAG_RESOLVE_FAILED",_),T=new oe(c)}return T.range=m,T.source=c,f&&(T.type=f),g&&(T.tag=g),p.format&&(T.format=p.format),h&&(T.comment=h),T}function Tb(u,l,i,s,c){var m;if(i==="!")return u[ln];const f=[];for(const g of u.tags)if(!g.collection&&g.tag===i)if(g.default&&g.test)f.push(g);else return g;for(const g of f)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[ln])}function wb({atKey:u,directives:l,schema:i},s,c,f){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[ln];if(i.compat){const m=i.compat.find(g=>{var p;return g.default&&((p=g.test)==null?void 0:p.test(s))})??i[ln];if(h.tag!==m.tag){const g=l.tagString(h.tag),p=l.tagString(m.tag),T=`Value may be parsed as either ${g} or ${p}`;f(c,"TAG_RESOLVE_FAILED",T,!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:Qo};function Hp(u,l,i,s){const c=u.atKey,{spaceBefore:f,comment:h,anchor:m,tag:g}=i;let p,T=!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 _=v instanceof Error?v.message:String(v);s(l,"RESOURCE_EXHAUSTION",_)}break;default:{const v=l.type==="error"?l.message:`Unsupported token (type: ${l.type})`;s(l,"UNEXPECTED_TOKEN",v),T=!1}}return p??(p=Qo(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&&(!De(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"),f&&(p.spaceBefore=!0),h&&(l.type==="scalar"&&l.source===""?p.comment=h:p.commentBefore=h),u.options.keepSourceTokens&&T&&(p.srcToken=l),p}function Qo(u,l,i,s,{spaceBefore:c,comment:f,anchor:h,tag:m,end:g},p){const T={type:"scalar",offset:Eb(l,i,s),indent:-1,source:""},v=qp(u,T,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),f&&(v.comment=f,v.range[2]=g),v}function Ob({options:u},{offset:l,source:i,end:s},c){const f=new _u(i.substring(1));f.source===""&&c(l,"BAD_ALIAS","Alias cannot be an empty string"),f.source.endsWith(":")&&c(l+i.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=l+i.length,m=qi(s,h,u.strict,c);return f.range=[l,h,m.offset],m.comment&&(f.comment=m.comment),f}function Nb(u,l,{offset:i,start:s,value:c,end:f},h){const m=Object.assign({_directives:l},u),g=new ja(void 0,m),p={atKey:!1,atRoot:!0,directives:g.directives,options:g.options,schema:g.schema},T=Na(s,{indicator:"doc-start",next:c??(f==null?void 0:f[0]),offset:i,onError:h,parentIndent:0,startOnNewline:!0});T.found&&(g.directives.docStart=!0,c&&(c.type==="block-map"||c.type==="block-seq")&&!T.hasNewline&&h(T.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),g.contents=c?Hp(p,c,T,h):Qo(p,T.end,s,null,T,h);const v=g.contents.range[2],_=qi(f,v,!1,h);return _.comment&&(g.comment=_.comment),g.range=[i,v,_.offset],g}function Ci(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 f=0;f<u.length;++f){const h=u[f];switch(h[0]){case"#":l+=(l===""?"":s?`
|
|
150
|
+
|
|
151
|
+
`:`
|
|
152
|
+
`)+(h.substring(1)||" "),i=!0,s=!1;break;case"%":((c=u[f+1])==null?void 0:c[0])!=="#"&&(f+=1),i=!1;break;default:i||(s=!0),i=!1}}return{comment:l,afterEmptyLine:s}}class Xo{constructor(l={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(i,s,c,f)=>{const h=Ci(i);f?this.warnings.push(new jp(h,s,c)):this.errors.push(new Al(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 f=l.contents;if(i)l.comment=l.comment?`${l.comment}
|
|
153
|
+
${s}`:s;else if(c||l.directives.docStart||!f)l.commentBefore=s;else if(Re(f)&&!f.flow&&f.items.length>0){let h=f.items[0];ke(h)&&(h=h.key);const m=h.commentBefore;h.commentBefore=m?`${s}
|
|
154
|
+
${m}`:s}else{const h=f.commentBefore;f.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 f=Ci(l);f[0]+=i,this.onError(f,"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 Al(Ci(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 Al(Ci(l),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const i=qi(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 Al(Ci(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 ja(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,f,h)=>{const m=typeof c=="number"?c:Array.isArray(c)?c[0]:c.offset;if(i)i(m,f,h);else throw new Al([m,m+1],f,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 xb(u,l){const{implicitKey:i=!1,indent:s,inFlow:c=!1,offset:f=-1,type:h="PLAIN"}=l,m=Ri({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
|
+
`),T=m.substring(0,p),v=m.substring(p+1)+`
|
|
159
|
+
`,_=[{type:"block-scalar-header",offset:f,indent:s,source:T}];return Yp(_,g)||_.push({type:"newline",offset:-1,indent:s,source:`
|
|
160
|
+
`}),{type:"block-scalar",offset:f,indent:s,props:_,source:v}}case'"':return{type:"double-quoted-scalar",offset:f,indent:s,source:m,end:g};case"'":return{type:"single-quoted-scalar",offset:f,indent:s,source:m,end:g};default:return{type:"scalar",offset:f,indent:s,source:m,end:g}}}function Mb(u,l,i={}){let{afterKey:s=!1,implicitKey:c=!1,inFlow:f=!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=Ri({type:h,value:l},{implicitKey:c||m===null,indent:m!==null&&m>0?" ".repeat(m):"",inFlow:f,options:{blockQuote:!0,lineWidth:-1}});switch(g[0]){case"|":case">":Cb(u,g);break;case'"':yo(u,g,"double-quoted-scalar");break;case"'":yo(u,g,"single-quoted-scalar");break;default:yo(u,g,"scalar")}}function Cb(u,l){const i=l.indexOf(`
|
|
161
|
+
`),s=l.substring(0,i),c=l.substring(i+1)+`
|
|
162
|
+
`;if(u.type==="block-scalar"){const f=u.props[0];if(f.type!=="block-scalar-header")throw new Error("Invalid block scalar header");f.source=s,u.source=c}else{const{offset:f}=u,h="indent"in u?u.indent:-1,m=[{type:"block-scalar-header",offset:f,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 yo(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 f of s)f.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(f=>f.type==="space"||f.type==="comment"||f.type==="newline"):[];for(const f of Object.keys(u))f!=="type"&&f!=="offset"&&delete u[f];Object.assign(u,{type:i,indent:s,source:l,end:c})}}}const zb=u=>"type"in u?wu(u):yu(u);function wu(u){switch(u.type){case"block-scalar":{let l="";for(const i of u.props)l+=wu(i);return l+u.source}case"block-map":case"block-seq":{let l="";for(const i of u.items)l+=yu(i);return l}case"flow-collection":{let l=u.start.source;for(const i of u.items)l+=yu(i);for(const i of u.end)l+=i.source;return l}case"document":{let l=yu(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 yu({start:u,key:l,sep:i,value:s}){let c="";for(const f of u)c+=f.source;if(l&&(c+=wu(l)),i)for(const f of i)c+=f.source;return s&&(c+=wu(s)),c}const zo=Symbol("break visit"),Db=Symbol("skip children"),$p=Symbol("remove item");function Nl(u,l){"type"in u&&u.type==="document"&&(u={start:u.start,value:u.value}),Gp(Object.freeze([]),u,l)}Nl.BREAK=zo;Nl.SKIP=Db;Nl.REMOVE=$p;Nl.itemAtPath=(u,l)=>{let i=u;for(const[s,c]of l){const f=i==null?void 0:i[s];if(f&&"items"in f)i=f.items[c];else return}return i};Nl.parentCollection=(u,l)=>{const i=Nl.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 f=l[c];if(f&&"items"in f){for(let h=0;h<f.items.length;++h){const m=Gp(Object.freeze(u.concat([[c,h]])),f.items[h],i);if(typeof m=="number")h=m-1;else{if(m===zo)return zo;m===$p&&(f.items.splice(h,1),h-=1)}}typeof s=="function"&&c==="key"&&(s=s(l,u))}}return typeof s=="function"?s(l,u):s}const Ru="\uFEFF",Bu="",qu="",Ui="",Lb=u=>!!u&&"items"in u,jb=u=>!!u&&(u.type==="scalar"||u.type==="single-quoted-scalar"||u.type==="double-quoted-scalar"||u.type==="block-scalar");function Ub(u){switch(u){case Ru:return"<BOM>";case Bu:return"<DOC>";case qu:return"<FLOW_END>";case Ui:return"<SCALAR>";default:return JSON.stringify(u)}}function Kp(u){switch(u){case Ru:return"byte-order-mark";case Bu:return"doc-mode";case qu:return"flow-error-end";case Ui: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:Ru,DOCUMENT:Bu,FLOW_END:qu,SCALAR:Ui,createScalarToken:xb,isCollection:Lb,isScalar:jb,prettyToken:Ub,resolveAsScalar:_b,setScalarValue:Mb,stringify:zb,tokenType:Kp,visit:Nl},Symbol.toStringTag,{value:"Module"}));function Wt(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-#;/?:@&=+$_.!~*'()"),su=new Set(",[]{}"),Bb=new Set(` ,[]{}
|
|
168
|
+
\r `),vo=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==="...")&&Wt(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]===Ru&&(yield*this.pushCount(1),l=l.substring(1)),l[0]==="%"){let i=l.length,s=l.indexOf("#");for(;s!==-1;){const f=l[s-1];if(f===" "||f===" "){i=s-1;break}else s=l.indexOf("#",s+1)}for(;;){const f=l[i-1];if(f===" "||f===" ")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 Bu,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==="...")&&Wt(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&&!Wt(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===":")&&Wt(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(vo),"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("..."))&&Wt(c[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(c[0]==="]"||c[0]==="}")))return this.flowLevel=0,yield qu,yield*this.parseLineStart();let f=0;for(;c[f]===",";)f+=yield*this.pushCount(1),f+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(f+=yield*this.pushIndicators(),c[f]){case void 0:return"flow";case"#":return yield*this.pushCount(c.length-f),"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(vo),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||Wt(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 f=0;for(;this.buffer[i-1-f]==="\\";)f+=1;if(f%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 f=this.continueScalar(c+1);if(f===-1)break;c=s.indexOf(`
|
|
175
|
+
`,f)}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=>Wt(i)||i==="#")}*parseBlockScalar(){let l=this.pos-1,i=0,s;e:for(let f=this.pos;s=this.buffer[f];++f)switch(s){case" ":i+=1;break;case`
|
|
176
|
+
`:l=f,i=0;break;case"\r":{const h=this.buffer[f+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 f=this.continueScalar(l+1);if(f===-1)break;l=this.buffer.indexOf(`
|
|
178
|
+
`,f)}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 f=l-1,h=this.buffer[f];h==="\r"&&(h=this.buffer[--f]);const m=f;for(;h===" ";)h=this.buffer[--f];if(h===`
|
|
180
|
+
`&&f>=this.pos&&f+1+i>m)l=f;else break}while(!0);return yield Ui,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 f=this.buffer[s+1];if(Wt(f)||l&&su.has(f))break;i=s}else if(Wt(c)){let f=this.buffer[s+1];if(c==="\r"&&(f===`
|
|
181
|
+
`?(s+=1,c=`
|
|
182
|
+
`,f=this.buffer[s+1]):i=s),f==="#"||l&&su.has(f))break;if(c===`
|
|
183
|
+
`){const h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(l&&su.has(c))break;i=s}return!c&&!this.atEnd?this.setNext("plain-scalar"):(yield Ui,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(vo))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const l=this.flowLevel>0,i=this.charAt(1);if(Wt(i)||l&&su.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(;!Wt(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 f=i+s>>1;this.lineStarts[f]<l?i=f+1:s=f}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 Fn(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 uu(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 ga(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 xg(u){if(u.start.type==="flow-seq-start")for(const l of u.items)l.sep&&!l.value&&!Fn(l.start,"explicit-key-ind")&&!Fn(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 Zo{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"&&xg(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(f=>f.type!=="comment"||f.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=uu(this.peek(2)),s=ga(i);let c;l.end?(c=l.end,c.push(this.sourceToken),delete l.end):c=[this.sourceToken];const f={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]=f}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,f=Array.isArray(c)?c[c.length-1]:void 0;(f==null?void 0:f.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],f=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(f)){Array.prototype.push.apply(f,i.start),f.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,f=c&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(f&&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":f||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):f||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(Fn(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)&&!Fn(i.sep,"newline")){const m=ga(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(Fn(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{const m=ga(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||f?l.items.push({start:h,key:null,sep:[this.sourceToken]}):Fn(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);f||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&&!Fn(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,f=Array.isArray(c)?c[c.length-1]:void 0;(f==null?void 0:f.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],f=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(f)){Array.prototype.push.apply(f,i.start),f.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||Fn(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=uu(s),f=ga(c);xg(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:f,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=uu(l),s=ga(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=uu(l),s=ga(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 Zo(i==null?void 0:i.addNewLine),f=new Xo(l),h=Array.from(f.compose(c.parse(u)));if(s&&i)for(const m of h)m.errors.forEach(Tu(u,i)),m.warnings.forEach(Tu(u,i));return h.length>0?h:Object.assign([],{empty:!0},f.streamInfo())}function Jp(u,l={}){const{lineCounter:i,prettyErrors:s}=Zp(l),c=new Zo(i==null?void 0:i.addNewLine),f=new Xo(l);let h=null;for(const m of f.compose(c.parse(u),!0,u.length))if(!h)h=m;else if(h.options.logLevel!=="silent"){h.errors.push(new Al(m.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&i&&(h.errors.forEach(Tu(u,i)),h.warnings.forEach(Tu(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(f=>gp(c.options.logLevel,f)),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 _l(u)&&!s?u.toString(i):new ja(u,s,i).toString(i)}const $b=Object.freeze(Object.defineProperty({__proto__:null,Alias:_u,CST:kb,Composer:Xo,Document:ja,Lexer:Vp,LineCounter:Qp,Pair:ot,Parser:Zo,Scalar:oe,Schema:ku,YAMLError:Vo,YAMLMap:jt,YAMLParseError:Al,YAMLSeq:el,YAMLWarning:jp,isAlias:tl,isCollection:Re,isDocument:_l,isMap:Ca,isNode:Be,isPair:ke,isScalar:De,isSeq:za,parse:Hb,parseAllDocuments:qb,parseDocument:Jp,stringify:Yb,visit:xl,visitAsync:Nu},Symbol.toStringTag,{value:"Module"}));function Gb(u,l,i={}){var _;const s=new u.LineCounter,c={keepSourceTokens:!0,lineCounter:s,...i},f=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,O)=>{for(const b of O.items){if(b instanceof u.Scalar&&typeof b.value=="string"){const j=Eu.parse(b,c,h);j&&(E.children=E.children||[],E.children.push(j));continue}if(b instanceof u.YAMLMap){T(E,b);continue}h.push({message:"Sequence items should be strings or maps",range:m(b.range||O.range)})}},T=(E,O)=>{for(const b of O.items){if(E.children=E.children||[],!(b.key instanceof u.Scalar&&typeof b.key.value=="string")){h.push({message:"Only string keys are supported",range:m(b.key.range||O.range)});continue}const M=b.key,j=b.value;if(M.value==="text"){if(!(j instanceof u.Scalar&&typeof j.value=="string")){h.push({message:"Text value should be a string",range:m(b.value.range||O.range)});continue}E.children.push({kind:"text",text:bo(j.value)});continue}if(M.value==="/children"){if(!(j instanceof u.Scalar&&typeof j.value=="string")||j.value!=="contain"&&j.value!=="equal"&&j.value!=="deep-equal"){h.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:m(b.value.range||O.range)});continue}E.containerMode=j.value;continue}if(M.value.startsWith("/")){if(!(j instanceof u.Scalar&&typeof j.value=="string")){h.push({message:"Property value should be a string",range:m(b.value.range||O.range)});continue}E.props=E.props??{},E.props[M.value.slice(1)]=bo(j.value);continue}const K=Eu.parse(M,c,h);if(!K)continue;if(j instanceof u.Scalar){const J=typeof j.value;if(J!=="string"&&J!=="number"&&J!=="boolean"){h.push({message:"Node value should be a string or a sequence",range:m(b.value.range||O.range)});continue}E.children.push({...K,children:[{kind:"text",text:bo(String(j.value))}]});continue}if(j instanceof u.YAMLSeq){E.children.push(K),p(K,j);continue}h.push({message:"Map values should be strings or sequences",range:m(b.value.range||O.range)})}},v={kind:"role",role:"fragment"};return f.errors.forEach(g),h.length?{errors:h,fragment:v}:(f.contents instanceof u.YAMLSeq||h.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:f.contents?m(f.contents.range):[{line:0,col:0},{line:0,col:0}]}),h.length?{errors:h,fragment:v}:(p(v,f.contents),h.length?{errors:h,fragment:Kb}:((_=v.children)==null?void 0:_.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 bo(u){return{raw:u,normalized:Wp(u)}}class Eu{static parse(l,i,s){try{return new Eu(l.value)._parse()}catch(c){if(c instanceof Mg){const f=i.prettyErrors===!1?c.message:c.message+`:
|
|
190
|
+
|
|
191
|
+
`+l.value+`
|
|
192
|
+
`+" ".repeat(c.pos)+`^
|
|
193
|
+
`;return s.push({message:f,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 Mg(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 Mg extends Error{constructor(l,i){super(l),this.pos=i}}const Vb=({className:u,style:l,open:i,isModal:s,minWidth:c,verticalOffset:f,requestClose:h,anchor:m,dataTestId:g,children:p})=>{const T=ie.useRef(null),[v,_]=ie.useState(0),[E]=So(T),[O,b]=So(m),w=m?Qb(E,O,f):void 0;return ie.useEffect(()=>{const M=K=>{!T.current||!(K.target instanceof Node)||T.current.contains(K.target)||h==null||h()},j=K=>{K.key==="Escape"&&(h==null||h())};return i?(document.addEventListener("mousedown",M),document.addEventListener("keydown",j),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",j)}):()=>{}},[i,h]),ie.useLayoutEffect(()=>b(),[i,b]),ie.useEffect(()=>{const M=()=>_(j=>j+1);return window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}},[]),ie.useLayoutEffect(()=>{T.current&&(i?s?T.current.showModal():T.current.show():T.current.close())},[i,s]),B.jsx("dialog",{ref:T,style:{position:"fixed",margin:w?0:void 0,zIndex:110,top:w==null?void 0:w.top,left:w==null?void 0:w.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 f=Math.max(0,l.bottom)+i;return f+u.height>window.innerHeight-i&&(Math.max(0,l.top)>u.height+i?f=Math.max(0,l.top)-u.height-i:f=window.innerHeight-i-u.height),{left:c,top:f}}const Xb=[{id:"jsonl",label:"JSONL",highlighter:"json"},{id:"ts",label:"TS",highlighter:"javascript"},{id:"python",label:"Python",highlighter:"python"}],Zb=({sources:u,paused:l,log:i,mode:s})=>{const[c,f]=ie.useState(),[h,m]=To("recorderPropertiesTab","log"),[g,p]=ie.useState(),[T,v]=ie.useState(),[_,E]=ie.useState(!1),[O,b]=zv(),w=!1,[M,j]=ie.useState(!1),K=ie.useRef(!1),[Z,F]=ie.useState(null),[J,V]=ie.useState(!0),[X,L]=ie.useState(null),ce=ie.useRef(null),[se,H]=ie.useState(null),ee=ie.useRef(0),be=ie.useRef(null);window.playwrightSelectSource=G=>f(G),window.playwrightSetReplayProgress=(G,P)=>F({completed:G,total:P}),window.playwrightSetReplayError=G=>L(G),window.playwrightSetTraceSteps=(G,P)=>H(ue=>ue&&(P===void 0||ue.token===P)?{...ue,steps:G}:ue),ie.useEffect(()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:w}})},[w]),ie.useEffect(()=>{s==="replaying"?L(null):F(null)},[s]);const[Ie,k]=ie.useState(!1),Q=ie.useMemo(()=>u.find(P=>P.id===c)??n1(),[u,c]),[le,we]=ie.useState("");window.playwrightElementPicked=(G,P)=>{const ue=Q.language;we(tp(ue,G.selector)),p(G.ariaSnapshot),v([]),P&&h!=="locator"&&h!=="aria"&&m("locator"),s==="inspecting"&&h==="aria"||window.dispatch({event:"setMode",params:{mode:s==="inspecting"?"standby":"recording"}}).catch(()=>{})};const Ae=ie.useRef(null);ie.useLayoutEffect(()=>{var G;(G=Ae.current)==null||G.scrollIntoView({block:"center",inline:"nearest"})},[Ae]),ie.useLayoutEffect(()=>{const G=P=>{switch(P.key){case"F8":P.preventDefault(),l?window.dispatch({event:"resume"}):window.dispatch({event:"pause"});break;case"F10":P.preventDefault(),l&&window.dispatch({event:"step"});break}};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[l]);const N=ie.useCallback(G=>{(s==="none"||s==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}}),we(G),window.dispatch({event:"highlightRequested",params:{selector:G}})},[s]),$=ie.useCallback(G=>{(s==="none"||s==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}});const{fragment:P,errors:ue}=Gb($b,G,{prettyErrors:!1}),de=ue.map(qe=>({message:qe.message,line:qe.range[1].line,column:qe.range[1].col,type:"subtle-error"}));v(de),p(G),ue.length||window.dispatch({event:"highlightRequested",params:{ariaTemplate:P}})},[s]),W=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 B.jsxs("div",{className:"recorder",children:[B.jsxs(Dg,{children:[B.jsx(We,{icon:W?"stop-circle":"circle-large-filled",title:W?"Stop Recording":"Start Recording",toggled:W,onClick:()=>{window.dispatch({event:"setMode",params:{mode:s==="none"||s==="standby"||s==="inspecting"?"recording":"standby"}})},children:"Record"}),B.jsx(mg,{}),B.jsx(We,{icon:"inspect",title:"Pick locator",toggled:s==="inspecting"||s==="recording-inspecting",onClick:()=>{const G={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:G}}).catch(()=>{})}}),B.jsx(We,{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"}})}}),B.jsx(We,{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"}})}}),B.jsx(We,{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"}})}}),B.jsx(We,{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"}})}}),B.jsx(We,{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"}})}}),B.jsx(We,{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"}})}}),B.jsx(We,{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"}})}}),B.jsx(mg,{}),B.jsx("input",{ref:ce,type:"file",accept:".jsonl,.txt,.zip",style:{display:"none"},onChange:G=>{var qe;const P=(qe=G.target.files)==null?void 0:qe[0];if(!P)return;const ue=Oe=>{const Et=++ee.current;H({jsonlContent:Oe,steps:null,token:Et}),window.dispatch({event:"parseTrace",params:{jsonlContent:Oe,token:Et}})},de=new FileReader;P.name.endsWith(".zip")?(de.onload=async Oe=>{var Ml;const Et=(Ml=Oe.target)==null?void 0:Ml.result,nl=await qv(Et,"skyramp_playwright.txt");if(!nl){alert("No skyramp_playwright.txt found in zip");return}ue(nl)},de.readAsArrayBuffer(P)):(de.onload=Oe=>{var Et;return ue((Et=Oe.target)==null?void 0:Et.result)},de.readAsText(P)),G.target.value=""}}),B.jsx(We,{icon:"run-all",title:"Load trace and replay",disabled:s==="replaying",onClick:()=>{var G;return(G=ce.current)==null?void 0:G.click()},children:"Load"}),B.jsx(We,{icon:"clock",title:J?"Slow replay (1s between actions) — click for fast":"Fast replay — click for slow",toggled:J,onClick:()=>{const G=!J;V(G),s==="replaying"&&window.dispatch({event:"setReplaySpeed",params:{slow:G}})},children:J?"Slow":"Fast"}),s==="replaying"&&B.jsxs(B.Fragment,{children:[B.jsx("span",{style:{padding:"0 8px",fontSize:"12px",color:"var(--vscode-foreground)",whiteSpace:"nowrap"},children:Z?`Step ${Z.completed} / ${Z.total}`:"Replaying…"}),B.jsx(We,{icon:"debug-stop",title:"Take over recording",onClick:()=>{window.dispatch({event:"takeOverReplay"})},children:"Take over"})]}),B.jsx(We,{icon:"files",title:"Copy",disabled:!Q||!Q.text,onClick:()=>{tg(Q.text)}}),B.jsx(We,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!l,onClick:()=>{window.dispatch({event:"resume"})}}),B.jsx(We,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:l,onClick:()=>{window.dispatch({event:"pause"})}}),B.jsx(We,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!l,onClick:()=>{window.dispatch({event:"step"})}}),B.jsx("div",{style:{flex:"auto"}}),B.jsx("div",{children:"Target:"}),B.jsx(e1,{fileId:Q.id,sources:u,setFileId:G=>{f(G),window.dispatch({event:"fileChanged",params:{fileId:G}})}}),B.jsx(We,{icon:"discard",title:"Delete last action",disabled:!Q||!Q.text,onClick:()=>{window.dispatch({event:"deleteLast"}),K.current||(K.current=!0,j(!0))}}),B.jsx(We,{icon:"clear-all",title:"Clear",disabled:!Q||!Q.text,onClick:()=>{window.dispatch({event:"clear"})}}),B.jsx(We,{ref:be,icon:"settings-gear",title:"Settings",onClick:()=>E(G=>!G)}),B.jsxs(Vb,{style:{padding:"4px 8px"},open:_,verticalOffset:8,requestClose:()=>E(!1),anchor:be,dataTestId:"settings-dialog",children:[B.jsxs("div",{className:"setting",children:[B.jsx("input",{type:"checkbox",id:"dark-mode-setting",checked:O,onChange:()=>b(!O)}),B.jsx("label",{htmlFor:"dark-mode-setting",children:"Dark mode"})]},"dark-mode-setting"),B.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[B.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:w,onChange:()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:!w}}),setAutoExpect(!w)}}),B.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),se&&B.jsx(Jb,{steps:se.steps,onCancel:()=>H(null),onReplay:(G,P)=>{window.dispatch({event:"loadTrace",params:{jsonlContent:se.jsonlContent,startStep:G,stopStep:P,delayBetweenActions:J?1e3:0}}),H(null)}}),X&&B.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:[B.jsx("span",{style:{flex:1},children:X}),B.jsx("button",{style:{flexShrink:0,cursor:"pointer",background:"none",border:"none",color:"inherit",padding:0,fontSize:"14px"},onClick:()=>L(null),children:"✕"})]}),B.jsx(Fv,{sidebarSize:200,main:B.jsx(ro,{text:Q.text,highlighter:Q.language,highlight:Q.highlight,revealLine:Q.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:B.jsx(Iv,{rightToolbar:h==="locator"||h==="aria"?[B.jsx(We,{icon:"files",title:"Copy",onClick:()=>tg((h==="locator"?le:g)||"")},1)]:[],tabs:[{id:"locator",title:"Locator",render:()=>B.jsx(ro,{text:le,placeholder:"Type locator to inspect",highlighter:Q.language,focusOnChange:!0,onChange:N,wrapLines:!0})},{id:"log",title:"Log",render:()=>B.jsx(D1,{language:Q.language,log:Array.from(i.values())})},{id:"aria",title:"Aria",render:()=>B.jsx(ro,{text:g||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:$,highlight:T,wrapLines:!0})}],selectedTab:h,setSelectedTab:m})}),M&&B.jsx("div",{className:"delete-modal-overlay",onClick:()=>j(!1),children:B.jsxs("div",{className:"delete-modal",onClick:G=>G.stopPropagation(),children:[B.jsx("div",{className:"delete-modal-body",children:"Navigate your browser back to the desired state before continuing recording."}),B.jsxs("div",{className:"delete-modal-footer",children:[B.jsx("button",{className:"delete-modal-button-secondary",onClick:()=>{K.current=!1,j(!1)},children:"Remind me next time"}),B.jsx("button",{className:"delete-modal-button",onClick:()=>j(!1),children:"Don't show again"})]})]})})]})},Jb=({steps:u,onCancel:l,onReplay:i})=>{const s=(u==null?void 0:u.length)??0,[c,f]=ie.useState(1),[h,m]=ie.useState(null),[g,p]=ie.useState("ts"),T=h??s,v=O=>{Number.isNaN(O)||f(Math.min(Math.max(1,O),T))},_=O=>{Number.isNaN(O)||m(Math.max(Math.min(s,O),c))},E=ie.useMemo(()=>{if(!u||!s)return null;const O=u.filter(w=>w.index>=c&&w.index<=T);if(!O.length)return null;const b=new Set([O[0].pageAlias]);for(const w of O){if(!b.has(w.pageAlias))return{step:w,alias:w.pageAlias};for(const M of w.opensAliases)b.add(M)}return null},[u,s,c,T]);return B.jsx("div",{className:"delete-modal-overlay",onClick:l,children:B.jsxs("div",{onClick:O=>O.stopPropagation(),"data-testid":"trace-step-picker",style:{background:"var(--vscode-editor-background, #1e1e1e)",border:"1px solid var(--vscode-panel-border, #454545)",borderRadius:6,boxShadow:"0 4px 24px rgba(0,0,0,0.4)",width:"min(820px, 92vw)",height:"min(640px, 88vh)",display:"flex",flexDirection:"column",padding:"12px",gap:"10px"},children:[B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[B.jsx("div",{style:{fontWeight:600,fontSize:"13px"},children:"Load trace: choose replay range"}),B.jsx("div",{style:{flex:1}}),B.jsx("div",{style:{display:"flex",border:"1px solid var(--vscode-panel-border, #454545)",borderRadius:4,overflow:"hidden"},children:Xb.map(O=>B.jsx("button",{onClick:()=>p(O.id),style:{padding:"2px 10px",fontSize:"12px",cursor:"pointer",border:"none",background:g===O.id?"var(--vscode-button-background, #0e639c)":"transparent",color:g===O.id?"var(--vscode-button-foreground, #fff)":"inherit"},children:O.label},O.id))})]}),u===null?B.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",opacity:.7},children:"Parsing trace…"}):s===0?B.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",opacity:.7},children:"No replayable steps found in trace."}):B.jsxs(B.Fragment,{children:[B.jsxs("div",{style:{display:"flex",gap:"14px",alignItems:"center",fontSize:"12px"},children:[B.jsxs("label",{children:["Start ",B.jsx("input",{type:"number",min:1,max:s,value:c,style:{width:60},onChange:O=>v(O.target.valueAsNumber)})]}),B.jsxs("label",{children:["Stop ",B.jsx("input",{type:"number",min:1,max:s,value:T,style:{width:60},onChange:O=>_(O.target.valueAsNumber)})]}),B.jsxs("span",{style:{color:"var(--vscode-descriptionForeground)"},children:[T-c+1," of ",s," steps selected"]}),B.jsx("span",{style:{color:"var(--vscode-descriptionForeground)",marginLeft:"auto"},children:"Click a row to set start, shift-click to set stop"})]}),E&&B.jsxs("div",{style:{padding:"6px 10px",fontSize:"12px",borderRadius:4,background:"var(--vscode-inputValidation-warningBackground, #352a05)",border:"1px solid var(--vscode-inputValidation-warningBorder, #c4a000)",color:"var(--vscode-inputValidation-warningForeground, #fff)"},children:["Step ",E.step.index," acts on tab ",B.jsx("code",{children:E.alias}),", but the step that opens it is before your start. Move Start earlier to include it, or stop before step ",E.step.index,"."]}),B.jsx("div",{style:{overflowY:"auto",flex:1,border:"1px solid var(--vscode-panel-border, #454545)",borderRadius:4,fontFamily:"var(--vscode-editor-font-family, monospace)"},children:u.map(O=>{const b=O.index>=c&&O.index<=T,w=O.index===c||O.index===T,M=(E==null?void 0:E.step.index)===O.index;return B.jsxs("div",{style:{display:"flex",gap:"10px",padding:"3px 10px",fontSize:"12px",cursor:"pointer",whiteSpace:"pre",overflow:"hidden",background:M?"var(--vscode-inputValidation-warningBackground, #352a05)":b?"var(--vscode-list-activeSelectionBackground, #094771)":"transparent",color:b&&!M?"var(--vscode-list-activeSelectionForeground, #fff)":"inherit",borderLeft:M?"2px solid var(--vscode-inputValidation-warningBorder, #c4a000)":w?"2px solid var(--vscode-focusBorder, #0e639c)":"2px solid transparent"},title:M?`Step ${O.index} acts on tab ${O.pageAlias}, opened outside the selected range.`:`Step ${O.index} (${O.name}, ${O.pageAlias}). Click = start, shift-click = stop.`,onClick:j=>{j.shiftKey?_(O.index):v(O.index)},children:[B.jsx("span",{style:{width:30,textAlign:"right",opacity:.6,flexShrink:0},children:O.index}),B.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis"},children:O.code[g]||`// ${O.name}`})]},O.index)})})]}),B.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px"},children:[B.jsx("button",{className:"delete-modal-button-secondary",onClick:l,children:"Cancel"}),B.jsx("button",{className:"delete-modal-button",disabled:!s||!!E,onClick:()=>i(c,T),children:"Replay & append"})]})]})})},Wb=({})=>{const[u,l]=ie.useState([]),[i,s]=ie.useState(!1),[c,f]=ie.useState(new Map),[h,m]=ie.useState("none");return ie.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=>{f(p=>{const T=new Map(p);for(const v of g)v.reveal=!p.has(v.id),T.set(v.id,v);return T})}},[]),B.jsx(Zb,{sources:u,paused:i,log:c,mode:h})};(async()=>(Mv(),Bv.createRoot(document.querySelector("#root")).render(B.jsx(Wb,{}))))();export{Sv as g};
|