creevey
Version:
Cross-browser screenshot testing tool for Storybook with fancy UI Runner
951 lines • 1.35 MB
JavaScript
var v9=Object.defineProperty;var E9=(e,t,r)=>t in e?v9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ir=(e,t,r)=>E9(e,typeof t!="symbol"?t+"":t,r);function w9(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var bT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S9(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Py={exports:{}},ju={},$y={exports:{}},Ke={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var vT;function x9(){if(vT)return Ke;vT=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function h(q){return q===null||typeof q!="object"?null:(q=p&&q[p]||q["@@iterator"],typeof q=="function"?q:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,E={};function w(q,U,Z){this.props=q,this.context=U,this.refs=E,this.updater=Z||g}w.prototype.isReactComponent={},w.prototype.setState=function(q,U){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,U,"setState")},w.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function b(){}b.prototype=w.prototype;function S(q,U,Z){this.props=q,this.context=U,this.refs=E,this.updater=Z||g}var R=S.prototype=new b;R.constructor=S,y(R,w.prototype),R.isPureReactComponent=!0;var O=Array.isArray,D=Object.prototype.hasOwnProperty,T={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function _(q,U,Z){var de,ee={},oe=null,ge=null;if(U!=null)for(de in U.ref!==void 0&&(ge=U.ref),U.key!==void 0&&(oe=""+U.key),U)D.call(U,de)&&!P.hasOwnProperty(de)&&(ee[de]=U[de]);var ye=arguments.length-2;if(ye===1)ee.children=Z;else if(1<ye){for(var ve=Array(ye),J=0;J<ye;J++)ve[J]=arguments[J+2];ee.children=ve}if(q&&q.defaultProps)for(de in ye=q.defaultProps,ye)ee[de]===void 0&&(ee[de]=ye[de]);return{$$typeof:e,type:q,key:oe,ref:ge,props:ee,_owner:T.current}}function N(q,U){return{$$typeof:e,type:q.type,key:U,ref:q.ref,props:q.props,_owner:q._owner}}function V(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function L(q){var U={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(Z){return U[Z]})}var K=/\/+/g;function Y(q,U){return typeof q=="object"&&q!==null&&q.key!=null?L(""+q.key):U.toString(36)}function $(q,U,Z,de,ee){var oe=typeof q;(oe==="undefined"||oe==="boolean")&&(q=null);var ge=!1;if(q===null)ge=!0;else switch(oe){case"string":case"number":ge=!0;break;case"object":switch(q.$$typeof){case e:case t:ge=!0}}if(ge)return ge=q,ee=ee(ge),q=de===""?"."+Y(ge,0):de,O(ee)?(Z="",q!=null&&(Z=q.replace(K,"$&/")+"/"),$(ee,U,Z,"",function(J){return J})):ee!=null&&(V(ee)&&(ee=N(ee,Z+(!ee.key||ge&&ge.key===ee.key?"":(""+ee.key).replace(K,"$&/")+"/")+q)),U.push(ee)),1;if(ge=0,de=de===""?".":de+":",O(q))for(var ye=0;ye<q.length;ye++){oe=q[ye];var ve=de+Y(oe,ye);ge+=$(oe,U,Z,ve,ee)}else if(ve=h(q),typeof ve=="function")for(q=ve.call(q),ye=0;!(oe=q.next()).done;)oe=oe.value,ve=de+Y(oe,ye++),ge+=$(oe,U,Z,ve,ee);else if(oe==="object")throw U=String(q),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return ge}function M(q,U,Z){if(q==null)return q;var de=[],ee=0;return $(q,de,"","",function(oe){return U.call(Z,oe,ee++)}),de}function I(q){if(q._status===-1){var U=q._result;U=U(),U.then(function(Z){(q._status===0||q._status===-1)&&(q._status=1,q._result=Z)},function(Z){(q._status===0||q._status===-1)&&(q._status=2,q._result=Z)}),q._status===-1&&(q._status=0,q._result=U)}if(q._status===1)return q._result.default;throw q._result}var B={current:null},k={transition:null},z={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:k,ReactCurrentOwner:T};function F(){throw Error("act(...) is not supported in production builds of React.")}return Ke.Children={map:M,forEach:function(q,U,Z){M(q,function(){U.apply(this,arguments)},Z)},count:function(q){var U=0;return M(q,function(){U++}),U},toArray:function(q){return M(q,function(U){return U})||[]},only:function(q){if(!V(q))throw Error("React.Children.only expected to receive a single React element child.");return q}},Ke.Component=w,Ke.Fragment=r,Ke.Profiler=o,Ke.PureComponent=S,Ke.StrictMode=n,Ke.Suspense=c,Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,Ke.act=F,Ke.cloneElement=function(q,U,Z){if(q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+q+".");var de=y({},q.props),ee=q.key,oe=q.ref,ge=q._owner;if(U!=null){if(U.ref!==void 0&&(oe=U.ref,ge=T.current),U.key!==void 0&&(ee=""+U.key),q.type&&q.type.defaultProps)var ye=q.type.defaultProps;for(ve in U)D.call(U,ve)&&!P.hasOwnProperty(ve)&&(de[ve]=U[ve]===void 0&&ye!==void 0?ye[ve]:U[ve])}var ve=arguments.length-2;if(ve===1)de.children=Z;else if(1<ve){ye=Array(ve);for(var J=0;J<ve;J++)ye[J]=arguments[J+2];de.children=ye}return{$$typeof:e,type:q.type,key:ee,ref:oe,props:de,_owner:ge}},Ke.createContext=function(q){return q={$$typeof:a,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},q.Provider={$$typeof:i,_context:q},q.Consumer=q},Ke.createElement=_,Ke.createFactory=function(q){var U=_.bind(null,q);return U.type=q,U},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(q){return{$$typeof:s,render:q}},Ke.isValidElement=V,Ke.lazy=function(q){return{$$typeof:f,_payload:{_status:-1,_result:q},_init:I}},Ke.memo=function(q,U){return{$$typeof:d,type:q,compare:U===void 0?null:U}},Ke.startTransition=function(q){var U=k.transition;k.transition={};try{q()}finally{k.transition=U}},Ke.unstable_act=F,Ke.useCallback=function(q,U){return B.current.useCallback(q,U)},Ke.useContext=function(q){return B.current.useContext(q)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(q){return B.current.useDeferredValue(q)},Ke.useEffect=function(q,U){return B.current.useEffect(q,U)},Ke.useId=function(){return B.current.useId()},Ke.useImperativeHandle=function(q,U,Z){return B.current.useImperativeHandle(q,U,Z)},Ke.useInsertionEffect=function(q,U){return B.current.useInsertionEffect(q,U)},Ke.useLayoutEffect=function(q,U){return B.current.useLayoutEffect(q,U)},Ke.useMemo=function(q,U){return B.current.useMemo(q,U)},Ke.useReducer=function(q,U,Z){return B.current.useReducer(q,U,Z)},Ke.useRef=function(q){return B.current.useRef(q)},Ke.useState=function(q){return B.current.useState(q)},Ke.useSyncExternalStore=function(q,U,Z){return B.current.useSyncExternalStore(q,U,Z)},Ke.useTransition=function(){return B.current.useTransition()},Ke.version="18.3.1",Ke}var ET;function Ph(){return ET||(ET=1,$y.exports=x9()),$y.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var wT;function C9(){if(wT)return ju;wT=1;var e=Ph(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,d){var f,p={},h=null,g=null;d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(g=c.ref);for(f in c)n.call(c,f)&&!i.hasOwnProperty(f)&&(p[f]=c[f]);if(s&&s.defaultProps)for(f in c=s.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:s,key:h,ref:g,props:p,_owner:o.current}}return ju.Fragment=r,ju.jsx=a,ju.jsxs=a,ju}var ST;function T9(){return ST||(ST=1,Py.exports=C9()),Py.exports}var re=T9(),x=Ph();const H=JE(x),_9=w9({__proto__:null,default:H},[x]);var Nf={},Oy={exports:{}},Wr={},Iy={exports:{}},Ny={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xT;function R9(){return xT||(xT=1,function(e){function t(k,z){var F=k.length;k.push(z);e:for(;0<F;){var q=F-1>>>1,U=k[q];if(0<o(U,z))k[q]=z,k[F]=U,F=q;else break e}}function r(k){return k.length===0?null:k[0]}function n(k){if(k.length===0)return null;var z=k[0],F=k.pop();if(F!==z){k[0]=F;e:for(var q=0,U=k.length,Z=U>>>1;q<Z;){var de=2*(q+1)-1,ee=k[de],oe=de+1,ge=k[oe];if(0>o(ee,F))oe<U&&0>o(ge,ee)?(k[q]=ge,k[oe]=F,q=oe):(k[q]=ee,k[de]=F,q=de);else if(oe<U&&0>o(ge,F))k[q]=ge,k[oe]=F,q=oe;else break e}}return z}function o(k,z){var F=k.sortIndex-z.sortIndex;return F!==0?F:k.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],d=[],f=1,p=null,h=3,g=!1,y=!1,E=!1,w=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(k){for(var z=r(d);z!==null;){if(z.callback===null)n(d);else if(z.startTime<=k)n(d),z.sortIndex=z.expirationTime,t(c,z);else break;z=r(d)}}function O(k){if(E=!1,R(k),!y)if(r(c)!==null)y=!0,I(D);else{var z=r(d);z!==null&&B(O,z.startTime-k)}}function D(k,z){y=!1,E&&(E=!1,b(_),_=-1),g=!0;var F=h;try{for(R(z),p=r(c);p!==null&&(!(p.expirationTime>z)||k&&!L());){var q=p.callback;if(typeof q=="function"){p.callback=null,h=p.priorityLevel;var U=q(p.expirationTime<=z);z=e.unstable_now(),typeof U=="function"?p.callback=U:p===r(c)&&n(c),R(z)}else n(c);p=r(c)}if(p!==null)var Z=!0;else{var de=r(d);de!==null&&B(O,de.startTime-z),Z=!1}return Z}finally{p=null,h=F,g=!1}}var T=!1,P=null,_=-1,N=5,V=-1;function L(){return!(e.unstable_now()-V<N)}function K(){if(P!==null){var k=e.unstable_now();V=k;var z=!0;try{z=P(!0,k)}finally{z?Y():(T=!1,P=null)}}else T=!1}var Y;if(typeof S=="function")Y=function(){S(K)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,M=$.port2;$.port1.onmessage=K,Y=function(){M.postMessage(null)}}else Y=function(){w(K,0)};function I(k){P=k,T||(T=!0,Y())}function B(k,z){_=w(function(){k(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,I(D))},e.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"):N=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(k){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var F=h;h=z;try{return k()}finally{h=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,z){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var F=h;h=k;try{return z()}finally{h=F}},e.unstable_scheduleCallback=function(k,z,F){var q=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?q+F:q):F=q,k){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=F+U,k={id:f++,callback:z,priorityLevel:k,startTime:F,expirationTime:U,sortIndex:-1},F>q?(k.sortIndex=F,t(d,k),r(c)===null&&k===r(d)&&(E?(b(_),_=-1):E=!0,B(O,F-q))):(k.sortIndex=U,t(c,k),y||g||(y=!0,I(D))),k},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(k){var z=h;return function(){var F=h;h=z;try{return k.apply(this,arguments)}finally{h=F}}}}(Ny)),Ny}var CT;function A9(){return CT||(CT=1,Iy.exports=R9()),Iy.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var TT;function P9(){if(TT)return Wr;TT=1;var e=Ph(),t=A9();function r(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,m=1;m<arguments.length;m++)u+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,o={};function i(l,u){a(l,u),a(l+"Capture",u)}function a(l,u){for(o[l]=u,l=0;l<u.length;l++)n.add(u[l])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,d=/^[: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]*$/,f={},p={};function h(l){return c.call(p,l)?!0:c.call(f,l)?!1:d.test(l)?p[l]=!0:(f[l]=!0,!1)}function g(l,u,m,v){if(m!==null&&m.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return v?!1:m!==null?!m.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function y(l,u,m,v){if(u===null||typeof u>"u"||g(l,u,m,v))return!0;if(v)return!1;if(m!==null)switch(m.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function E(l,u,m,v,C,A,j){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=v,this.attributeNamespace=C,this.mustUseProperty=m,this.propertyName=l,this.type=u,this.sanitizeURL=A,this.removeEmptyString=j}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){w[l]=new E(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];w[u]=new E(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){w[l]=new E(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){w[l]=new E(l,2,!1,l,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){w[l]=new E(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){w[l]=new E(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){w[l]=new E(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){w[l]=new E(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){w[l]=new E(l,5,!1,l.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function S(l){return l[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(l){var u=l.replace(b,S);w[u]=new E(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(b,S);w[u]=new E(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(b,S);w[u]=new E(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){w[l]=new E(l,1,!1,l.toLowerCase(),null,!1,!1)}),w.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){w[l]=new E(l,1,!1,l.toLowerCase(),null,!0,!0)});function R(l,u,m,v){var C=w.hasOwnProperty(u)?w[u]:null;(C!==null?C.type!==0:v||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(y(u,m,C,v)&&(m=null),v||C===null?h(u)&&(m===null?l.removeAttribute(u):l.setAttribute(u,""+m)):C.mustUseProperty?l[C.propertyName]=m===null?C.type===3?!1:"":m:(u=C.attributeName,v=C.attributeNamespace,m===null?l.removeAttribute(u):(C=C.type,m=C===3||C===4&&m===!0?"":""+m,v?l.setAttributeNS(v,u,m):l.setAttribute(u,m))))}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),T=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),L=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),k=Symbol.iterator;function z(l){return l===null||typeof l!="object"?null:(l=k&&l[k]||l["@@iterator"],typeof l=="function"?l:null)}var F=Object.assign,q;function U(l){if(q===void 0)try{throw Error()}catch(m){var u=m.stack.trim().match(/\n( *(at )?)/);q=u&&u[1]||""}return`
`+q+l}var Z=!1;function de(l,u){if(!l||Z)return"";Z=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(pe){var v=pe}Reflect.construct(l,[],u)}else{try{u.call()}catch(pe){v=pe}l.call(u.prototype)}else{try{throw Error()}catch(pe){v=pe}l()}}catch(pe){if(pe&&v&&typeof pe.stack=="string"){for(var C=pe.stack.split(`
`),A=v.stack.split(`
`),j=C.length-1,X=A.length-1;1<=j&&0<=X&&C[j]!==A[X];)X--;for(;1<=j&&0<=X;j--,X--)if(C[j]!==A[X]){if(j!==1||X!==1)do if(j--,X--,0>X||C[j]!==A[X]){var te=`
`+C[j].replace(" at new "," at ");return l.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",l.displayName)),te}while(1<=j&&0<=X);break}}}finally{Z=!1,Error.prepareStackTrace=m}return(l=l?l.displayName||l.name:"")?U(l):""}function ee(l){switch(l.tag){case 5:return U(l.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return l=de(l.type,!1),l;case 11:return l=de(l.type.render,!1),l;case 1:return l=de(l.type,!0),l;default:return""}}function oe(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case P:return"Fragment";case T:return"Portal";case N:return"Profiler";case _:return"StrictMode";case Y:return"Suspense";case $:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case L:return(l.displayName||"Context")+".Consumer";case V:return(l._context.displayName||"Context")+".Provider";case K:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case M:return u=l.displayName||null,u!==null?u:oe(l.type)||"Memo";case I:u=l._payload,l=l._init;try{return oe(l(u))}catch{}}return null}function ge(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(u);case 8:return u===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function ye(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function ve(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function J(l){var u=ve(l)?"checked":"value",m=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),v=""+l[u];if(!l.hasOwnProperty(u)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var C=m.get,A=m.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return C.call(this)},set:function(j){v=""+j,A.call(this,j)}}),Object.defineProperty(l,u,{enumerable:m.enumerable}),{getValue:function(){return v},setValue:function(j){v=""+j},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function me(l){l._valueTracker||(l._valueTracker=J(l))}function he(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var m=u.getValue(),v="";return l&&(v=ve(l)?l.checked?"true":"false":l.value),l=v,l!==m?(u.setValue(l),!0):!1}function Se(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function _e(l,u){var m=u.checked;return F({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??l._wrapperState.initialChecked})}function $e(l,u){var m=u.defaultValue==null?"":u.defaultValue,v=u.checked!=null?u.checked:u.defaultChecked;m=ye(u.value!=null?u.value:m),l._wrapperState={initialChecked:v,initialValue:m,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function Oe(l,u){u=u.checked,u!=null&&R(l,"checked",u,!1)}function Te(l,u){Oe(l,u);var m=ye(u.value),v=u.type;if(m!=null)v==="number"?(m===0&&l.value===""||l.value!=m)&&(l.value=""+m):l.value!==""+m&&(l.value=""+m);else if(v==="submit"||v==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?At(l,u.type,m):u.hasOwnProperty("defaultValue")&&At(l,u.type,ye(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function et(l,u,m){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var v=u.type;if(!(v!=="submit"&&v!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,m||u===l.value||(l.value=u),l.defaultValue=u}m=l.name,m!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,m!==""&&(l.name=m)}function At(l,u,m){(u!=="number"||Se(l.ownerDocument)!==l)&&(m==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+m&&(l.defaultValue=""+m))}var yt=Array.isArray;function bt(l,u,m,v){if(l=l.options,u){u={};for(var C=0;C<m.length;C++)u["$"+m[C]]=!0;for(m=0;m<l.length;m++)C=u.hasOwnProperty("$"+l[m].value),l[m].selected!==C&&(l[m].selected=C),C&&v&&(l[m].defaultSelected=!0)}else{for(m=""+ye(m),u=null,C=0;C<l.length;C++){if(l[C].value===m){l[C].selected=!0,v&&(l[C].defaultSelected=!0);return}u!==null||l[C].disabled||(u=l[C])}u!==null&&(u.selected=!0)}}function It(l,u){if(u.dangerouslySetInnerHTML!=null)throw Error(r(91));return F({},u,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function br(l,u){var m=u.value;if(m==null){if(m=u.children,u=u.defaultValue,m!=null){if(u!=null)throw Error(r(92));if(yt(m)){if(1<m.length)throw Error(r(93));m=m[0]}u=m}u==null&&(u=""),m=u}l._wrapperState={initialValue:ye(m)}}function vr(l,u){var m=ye(u.value),v=ye(u.defaultValue);m!=null&&(m=""+m,m!==l.value&&(l.value=m),u.defaultValue==null&&l.defaultValue!==m&&(l.defaultValue=m)),v!=null&&(l.defaultValue=""+v)}function qn(l){var u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function Sa(l){switch(l){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xa(l,u){return l==null||l==="http://www.w3.org/1999/xhtml"?Sa(u):l==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var wn,Ei=function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,m,v,C){MSApp.execUnsafeLocalFunction(function(){return l(u,m,v,C)})}:l}(function(l,u){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=u;else{for(wn=wn||document.createElement("div"),wn.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=wn.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function so(l,u){if(u){var m=l.firstChild;if(m&&m===l.lastChild&&m.nodeType===3){m.nodeValue=u;return}}l.textContent=u}var Lo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nu=["Webkit","ms","Moz","O"];Object.keys(Lo).forEach(function(l){nu.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),Lo[u]=Lo[l]})});function wi(l,u,m){return u==null||typeof u=="boolean"||u===""?"":m||typeof u!="number"||u===0||Lo.hasOwnProperty(l)&&Lo[l]?(""+u).trim():u+"px"}function Bo(l,u){l=l.style;for(var m in u)if(u.hasOwnProperty(m)){var v=m.indexOf("--")===0,C=wi(m,u[m],v);m==="float"&&(m="cssFloat"),v?l.setProperty(m,C):l[m]=C}}var ue=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fe(l,u){if(u){if(ue[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(r(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(r(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(r(61))}if(u.style!=null&&typeof u.style!="object")throw Error(r(62))}}function Ve(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){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 tt=null;function at(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Fe=null,cr=null,Er=null;function tr(l){if(l=Tu(l)){if(typeof Fe!="function")throw Error(r(280));var u=l.stateNode;u&&(u=Wd(u),Fe(l.stateNode,l.type,u))}}function en(l){cr?Er?Er.push(l):Er=[l]:cr=l}function Si(){if(cr){var l=cr,u=Er;if(Er=cr=null,tr(l),u)for(l=0;l<u.length;l++)tr(u[l])}}function Hn(l,u){return l(u)}function wr(){}var xe=!1;function Ca(l,u,m){if(xe)return l(u,m);xe=!0;try{return Hn(l,u,m)}finally{xe=!1,(cr!==null||Er!==null)&&(wr(),Si())}}function tn(l,u){var m=l.stateNode;if(m===null)return null;var v=Wd(m);if(v===null)return null;m=v[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(l=l.type,v=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!v;break e;default:l=!1}if(l)return null;if(m&&typeof m!="function")throw Error(r(231,u,typeof m));return m}var Fo=!1;if(s)try{var jo={};Object.defineProperty(jo,"passive",{get:function(){Fo=!0}}),window.addEventListener("test",jo,jo),window.removeEventListener("test",jo,jo)}catch{Fo=!1}function _l(l,u,m,v,C,A,j,X,te){var pe=Array.prototype.slice.call(arguments,3);try{u.apply(m,pe)}catch(Ee){this.onError(Ee)}}var qo=!1,xi=null,Ta=!1,Rl=null,ou={onError:function(l){qo=!0,xi=l}};function Cd(l,u,m,v,C,A,j,X,te){qo=!1,xi=null,_l.apply(ou,arguments)}function iu(l,u,m,v,C,A,j,X,te){if(Cd.apply(this,arguments),qo){if(qo){var pe=xi;qo=!1,xi=null}else throw Error(r(198));Ta||(Ta=!0,Rl=pe)}}function uo(l){var u=l,m=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(m=u.return),l=u.return;while(l)}return u.tag===3?m:null}function Td(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function Al(l){if(uo(l)!==l)throw Error(r(188))}function Ci(l){var u=l.alternate;if(!u){if(u=uo(l),u===null)throw Error(r(188));return u!==l?null:l}for(var m=l,v=u;;){var C=m.return;if(C===null)break;var A=C.alternate;if(A===null){if(v=C.return,v!==null){m=v;continue}break}if(C.child===A.child){for(A=C.child;A;){if(A===m)return Al(C),l;if(A===v)return Al(C),u;A=A.sibling}throw Error(r(188))}if(m.return!==v.return)m=C,v=A;else{for(var j=!1,X=C.child;X;){if(X===m){j=!0,m=C,v=A;break}if(X===v){j=!0,v=C,m=A;break}X=X.sibling}if(!j){for(X=A.child;X;){if(X===m){j=!0,m=A,v=C;break}if(X===v){j=!0,v=A,m=C;break}X=X.sibling}if(!j)throw Error(r(189))}}if(m.alternate!==v)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?l:u}function _a(l){return l=Ci(l),l!==null?_d(l):null}function _d(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=_d(l);if(u!==null)return u;l=l.sibling}return null}var au=t.unstable_scheduleCallback,Vx=t.unstable_cancelCallback,$B=t.unstable_shouldYield,OB=t.unstable_requestPaint,Bt=t.unstable_now,IB=t.unstable_getCurrentPriorityLevel,Ym=t.unstable_ImmediatePriority,Wx=t.unstable_UserBlockingPriority,Rd=t.unstable_NormalPriority,NB=t.unstable_LowPriority,Gx=t.unstable_IdlePriority,Ad=null,co=null;function kB(l){if(co&&typeof co.onCommitFiberRoot=="function")try{co.onCommitFiberRoot(Ad,l,void 0,(l.current.flags&128)===128)}catch{}}var Un=Math.clz32?Math.clz32:LB,DB=Math.log,MB=Math.LN2;function LB(l){return l>>>=0,l===0?32:31-(DB(l)/MB|0)|0}var Pd=64,$d=4194304;function lu(l){switch(l&-l){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: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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Od(l,u){var m=l.pendingLanes;if(m===0)return 0;var v=0,C=l.suspendedLanes,A=l.pingedLanes,j=m&268435455;if(j!==0){var X=j&~C;X!==0?v=lu(X):(A&=j,A!==0&&(v=lu(A)))}else j=m&~C,j!==0?v=lu(j):A!==0&&(v=lu(A));if(v===0)return 0;if(u!==0&&u!==v&&(u&C)===0&&(C=v&-v,A=u&-u,C>=A||C===16&&(A&4194240)!==0))return u;if((v&4)!==0&&(v|=m&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=v;0<u;)m=31-Un(u),C=1<<m,v|=l[m],u&=~C;return v}function BB(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64: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 u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function FB(l,u){for(var m=l.suspendedLanes,v=l.pingedLanes,C=l.expirationTimes,A=l.pendingLanes;0<A;){var j=31-Un(A),X=1<<j,te=C[j];te===-1?((X&m)===0||(X&v)!==0)&&(C[j]=BB(X,u)):te<=u&&(l.expiredLanes|=X),A&=~X}}function Xm(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Yx(){var l=Pd;return Pd<<=1,(Pd&4194240)===0&&(Pd=64),l}function Jm(l){for(var u=[],m=0;31>m;m++)u.push(l);return u}function su(l,u,m){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Un(u),l[u]=m}function jB(l,u){var m=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var v=l.eventTimes;for(l=l.expirationTimes;0<m;){var C=31-Un(m),A=1<<C;u[C]=0,v[C]=-1,l[C]=-1,m&=~A}}function Qm(l,u){var m=l.entangledLanes|=u;for(l=l.entanglements;m;){var v=31-Un(m),C=1<<v;C&u|l[v]&u&&(l[v]|=u),m&=~C}}var pt=0;function Xx(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var Jx,Zm,Qx,Zx,e2,eg=!1,Id=[],Ti=null,_i=null,Ri=null,uu=new Map,cu=new Map,Ai=[],qB="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 submit".split(" ");function t2(l,u){switch(l){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":_i=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":uu.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":cu.delete(u.pointerId)}}function du(l,u,m,v,C,A){return l===null||l.nativeEvent!==A?(l={blockedOn:u,domEventName:m,eventSystemFlags:v,nativeEvent:A,targetContainers:[C]},u!==null&&(u=Tu(u),u!==null&&Zm(u)),l):(l.eventSystemFlags|=v,u=l.targetContainers,C!==null&&u.indexOf(C)===-1&&u.push(C),l)}function HB(l,u,m,v,C){switch(u){case"focusin":return Ti=du(Ti,l,u,m,v,C),!0;case"dragenter":return _i=du(_i,l,u,m,v,C),!0;case"mouseover":return Ri=du(Ri,l,u,m,v,C),!0;case"pointerover":var A=C.pointerId;return uu.set(A,du(uu.get(A)||null,l,u,m,v,C)),!0;case"gotpointercapture":return A=C.pointerId,cu.set(A,du(cu.get(A)||null,l,u,m,v,C)),!0}return!1}function r2(l){var u=Ra(l.target);if(u!==null){var m=uo(u);if(m!==null){if(u=m.tag,u===13){if(u=Td(m),u!==null){l.blockedOn=u,e2(l.priority,function(){Qx(m)});return}}else if(u===3&&m.stateNode.current.memoizedState.isDehydrated){l.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Nd(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var m=rg(l.domEventName,l.eventSystemFlags,u[0],l.nativeEvent);if(m===null){m=l.nativeEvent;var v=new m.constructor(m.type,m);tt=v,m.target.dispatchEvent(v),tt=null}else return u=Tu(m),u!==null&&Zm(u),l.blockedOn=m,!1;u.shift()}return!0}function n2(l,u,m){Nd(l)&&m.delete(u)}function UB(){eg=!1,Ti!==null&&Nd(Ti)&&(Ti=null),_i!==null&&Nd(_i)&&(_i=null),Ri!==null&&Nd(Ri)&&(Ri=null),uu.forEach(n2),cu.forEach(n2)}function fu(l,u){l.blockedOn===u&&(l.blockedOn=null,eg||(eg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,UB)))}function pu(l){function u(C){return fu(C,l)}if(0<Id.length){fu(Id[0],l);for(var m=1;m<Id.length;m++){var v=Id[m];v.blockedOn===l&&(v.blockedOn=null)}}for(Ti!==null&&fu(Ti,l),_i!==null&&fu(_i,l),Ri!==null&&fu(Ri,l),uu.forEach(u),cu.forEach(u),m=0;m<Ai.length;m++)v=Ai[m],v.blockedOn===l&&(v.blockedOn=null);for(;0<Ai.length&&(m=Ai[0],m.blockedOn===null);)r2(m),m.blockedOn===null&&Ai.shift()}var Pl=O.ReactCurrentBatchConfig,kd=!0;function zB(l,u,m,v){var C=pt,A=Pl.transition;Pl.transition=null;try{pt=1,tg(l,u,m,v)}finally{pt=C,Pl.transition=A}}function KB(l,u,m,v){var C=pt,A=Pl.transition;Pl.transition=null;try{pt=4,tg(l,u,m,v)}finally{pt=C,Pl.transition=A}}function tg(l,u,m,v){if(kd){var C=rg(l,u,m,v);if(C===null)vg(l,u,v,Dd,m),t2(l,v);else if(HB(C,l,u,m,v))v.stopPropagation();else if(t2(l,v),u&4&&-1<qB.indexOf(l)){for(;C!==null;){var A=Tu(C);if(A!==null&&Jx(A),A=rg(l,u,m,v),A===null&&vg(l,u,v,Dd,m),A===C)break;C=A}C!==null&&v.stopPropagation()}else vg(l,u,v,null,m)}}var Dd=null;function rg(l,u,m,v){if(Dd=null,l=at(v),l=Ra(l),l!==null)if(u=uo(l),u===null)l=null;else if(m=u.tag,m===13){if(l=Td(u),l!==null)return l;l=null}else if(m===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null);return Dd=l,null}function o2(l){switch(l){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(IB()){case Ym:return 1;case Wx:return 4;case Rd:case NB:return 16;case Gx:return 536870912;default:return 16}default:return 16}}var Pi=null,ng=null,Md=null;function i2(){if(Md)return Md;var l,u=ng,m=u.length,v,C="value"in Pi?Pi.value:Pi.textContent,A=C.length;for(l=0;l<m&&u[l]===C[l];l++);var j=m-l;for(v=1;v<=j&&u[m-v]===C[A-v];v++);return Md=C.slice(l,1<v?1-v:void 0)}function Ld(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function Bd(){return!0}function a2(){return!1}function rn(l){function u(m,v,C,A,j){this._reactName=m,this._targetInst=C,this.type=v,this.nativeEvent=A,this.target=j,this.currentTarget=null;for(var X in l)l.hasOwnProperty(X)&&(m=l[X],this[X]=m?m(A):A[X]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?Bd:a2,this.isPropagationStopped=a2,this}return F(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Bd)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Bd)},persist:function(){},isPersistent:Bd}),u}var $l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},og=rn($l),hu=F({},$l,{view:0,detail:0}),VB=rn(hu),ig,ag,mu,Fd=F({},hu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sg,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==mu&&(mu&&l.type==="mousemove"?(ig=l.screenX-mu.screenX,ag=l.screenY-mu.screenY):ag=ig=0,mu=l),ig)},movementY:function(l){return"movementY"in l?l.movementY:ag}}),l2=rn(Fd),WB=F({},Fd,{dataTransfer:0}),GB=rn(WB),YB=F({},hu,{relatedTarget:0}),lg=rn(YB),XB=F({},$l,{animationName:0,elapsedTime:0,pseudoElement:0}),JB=rn(XB),QB=F({},$l,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),ZB=rn(QB),eF=F({},$l,{data:0}),s2=rn(eF),tF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rF={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"},nF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oF(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=nF[l])?!!u[l]:!1}function sg(){return oF}var iF=F({},hu,{key:function(l){if(l.key){var u=tF[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=Ld(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?rF[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sg,charCode:function(l){return l.type==="keypress"?Ld(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Ld(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),aF=rn(iF),lF=F({},Fd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),u2=rn(lF),sF=F({},hu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sg}),uF=rn(sF),cF=F({},$l,{propertyName:0,elapsedTime:0,pseudoElement:0}),dF=rn(cF),fF=F({},Fd,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),pF=rn(fF),hF=[9,13,27,32],ug=s&&"CompositionEvent"in window,gu=null;s&&"documentMode"in document&&(gu=document.documentMode);var mF=s&&"TextEvent"in window&&!gu,c2=s&&(!ug||gu&&8<gu&&11>=gu),d2=" ",f2=!1;function p2(l,u){switch(l){case"keyup":return hF.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h2(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Ol=!1;function gF(l,u){switch(l){case"compositionend":return h2(u);case"keypress":return u.which!==32?null:(f2=!0,d2);case"textInput":return l=u.data,l===d2&&f2?null:l;default:return null}}function yF(l,u){if(Ol)return l==="compositionend"||!ug&&p2(l,u)?(l=i2(),Md=ng=Pi=null,Ol=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return c2&&u.locale!=="ko"?null:u.data;default:return null}}var bF={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 m2(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!bF[l.type]:u==="textarea"}function g2(l,u,m,v){en(v),u=zd(u,"onChange"),0<u.length&&(m=new og("onChange","change",null,m,v),l.push({event:m,listeners:u}))}var yu=null,bu=null;function vF(l){k2(l,0)}function jd(l){var u=Ml(l);if(he(u))return l}function EF(l,u){if(l==="change")return u}var y2=!1;if(s){var cg;if(s){var dg="oninput"in document;if(!dg){var b2=document.createElement("div");b2.setAttribute("oninput","return;"),dg=typeof b2.oninput=="function"}cg=dg}else cg=!1;y2=cg&&(!document.documentMode||9<document.documentMode)}function v2(){yu&&(yu.detachEvent("onpropertychange",E2),bu=yu=null)}function E2(l){if(l.propertyName==="value"&&jd(bu)){var u=[];g2(u,bu,l,at(l)),Ca(vF,u)}}function wF(l,u,m){l==="focusin"?(v2(),yu=u,bu=m,yu.attachEvent("onpropertychange",E2)):l==="focusout"&&v2()}function SF(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return jd(bu)}function xF(l,u){if(l==="click")return jd(u)}function CF(l,u){if(l==="input"||l==="change")return jd(u)}function TF(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var zn=typeof Object.is=="function"?Object.is:TF;function vu(l,u){if(zn(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var m=Object.keys(l),v=Object.keys(u);if(m.length!==v.length)return!1;for(v=0;v<m.length;v++){var C=m[v];if(!c.call(u,C)||!zn(l[C],u[C]))return!1}return!0}function w2(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function S2(l,u){var m=w2(l);l=0;for(var v;m;){if(m.nodeType===3){if(v=l+m.textContent.length,l<=u&&v>=u)return{node:m,offset:u-l};l=v}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=w2(m)}}function x2(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?x2(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function C2(){for(var l=window,u=Se();u instanceof l.HTMLIFrameElement;){try{var m=typeof u.contentWindow.location.href=="string"}catch{m=!1}if(m)l=u.contentWindow;else break;u=Se(l.document)}return u}function fg(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function _F(l){var u=C2(),m=l.focusedElem,v=l.selectionRange;if(u!==m&&m&&m.ownerDocument&&x2(m.ownerDocument.documentElement,m)){if(v!==null&&fg(m)){if(u=v.start,l=v.end,l===void 0&&(l=u),"selectionStart"in m)m.selectionStart=u,m.selectionEnd=Math.min(l,m.value.length);else if(l=(u=m.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var C=m.textContent.length,A=Math.min(v.start,C);v=v.end===void 0?A:Math.min(v.end,C),!l.extend&&A>v&&(C=v,v=A,A=C),C=S2(m,A);var j=S2(m,v);C&&j&&(l.rangeCount!==1||l.anchorNode!==C.node||l.anchorOffset!==C.offset||l.focusNode!==j.node||l.focusOffset!==j.offset)&&(u=u.createRange(),u.setStart(C.node,C.offset),l.removeAllRanges(),A>v?(l.addRange(u),l.extend(j.node,j.offset)):(u.setEnd(j.node,j.offset),l.addRange(u)))}}for(u=[],l=m;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<u.length;m++)l=u[m],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var RF=s&&"documentMode"in document&&11>=document.documentMode,Il=null,pg=null,Eu=null,hg=!1;function T2(l,u,m){var v=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;hg||Il==null||Il!==Se(v)||(v=Il,"selectionStart"in v&&fg(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Eu&&vu(Eu,v)||(Eu=v,v=zd(pg,"onSelect"),0<v.length&&(u=new og("onSelect","select",null,u,m),l.push({event:u,listeners:v}),u.target=Il)))}function qd(l,u){var m={};return m[l.toLowerCase()]=u.toLowerCase(),m["Webkit"+l]="webkit"+u,m["Moz"+l]="moz"+u,m}var Nl={animationend:qd("Animation","AnimationEnd"),animationiteration:qd("Animation","AnimationIteration"),animationstart:qd("Animation","AnimationStart"),transitionend:qd("Transition","TransitionEnd")},mg={},_2={};s&&(_2=document.createElement("div").style,"AnimationEvent"in window||(delete Nl.animationend.animation,delete Nl.animationiteration.animation,delete Nl.animationstart.animation),"TransitionEvent"in window||delete Nl.transitionend.transition);function Hd(l){if(mg[l])return mg[l];if(!Nl[l])return l;var u=Nl[l],m;for(m in u)if(u.hasOwnProperty(m)&&m in _2)return mg[l]=u[m];return l}var R2=Hd("animationend"),A2=Hd("animationiteration"),P2=Hd("animationstart"),$2=Hd("transitionend"),O2=new Map,I2="abort auxClick 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(" ");function $i(l,u){O2.set(l,u),i(u,[l])}for(var gg=0;gg<I2.length;gg++){var yg=I2[gg],AF=yg.toLowerCase(),PF=yg[0].toUpperCase()+yg.slice(1);$i(AF,"on"+PF)}$i(R2,"onAnimationEnd"),$i(A2,"onAnimationIteration"),$i(P2,"onAnimationStart"),$i("dblclick","onDoubleClick"),$i("focusin","onFocus"),$i("focusout","onBlur"),$i($2,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wu="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(" "),$F=new Set("cancel close invalid load scroll toggle".split(" ").concat(wu));function N2(l,u,m){var v=l.type||"unknown-event";l.currentTarget=m,iu(v,u,void 0,l),l.currentTarget=null}function k2(l,u){u=(u&4)!==0;for(var m=0;m<l.length;m++){var v=l[m],C=v.event;v=v.listeners;e:{var A=void 0;if(u)for(var j=v.length-1;0<=j;j--){var X=v[j],te=X.instance,pe=X.currentTarget;if(X=X.listener,te!==A&&C.isPropagationStopped())break e;N2(C,X,pe),A=te}else for(j=0;j<v.length;j++){if(X=v[j],te=X.instance,pe=X.currentTarget,X=X.listener,te!==A&&C.isPropagationStopped())break e;N2(C,X,pe),A=te}}}if(Ta)throw l=Rl,Ta=!1,Rl=null,l}function wt(l,u){var m=u[Tg];m===void 0&&(m=u[Tg]=new Set);var v=l+"__bubble";m.has(v)||(D2(u,l,2,!1),m.add(v))}function bg(l,u,m){var v=0;u&&(v|=4),D2(m,l,v,u)}var Ud="_reactListening"+Math.random().toString(36).slice(2);function Su(l){if(!l[Ud]){l[Ud]=!0,n.forEach(function(m){m!=="selectionchange"&&($F.has(m)||bg(m,!1,l),bg(m,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[Ud]||(u[Ud]=!0,bg("selectionchange",!1,u))}}function D2(l,u,m,v){switch(o2(u)){case 1:var C=zB;break;case 4:C=KB;break;default:C=tg}m=C.bind(null,u,m,l),C=void 0,!Fo||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(C=!0),v?C!==void 0?l.addEventListener(u,m,{capture:!0,passive:C}):l.addEventListener(u,m,!0):C!==void 0?l.addEventListener(u,m,{passive:C}):l.addEventListener(u,m,!1)}function vg(l,u,m,v,C){var A=v;if((u&1)===0&&(u&2)===0&&v!==null)e:for(;;){if(v===null)return;var j=v.tag;if(j===3||j===4){var X=v.stateNode.containerInfo;if(X===C||X.nodeType===8&&X.parentNode===C)break;if(j===4)for(j=v.return;j!==null;){var te=j.tag;if((te===3||te===4)&&(te=j.stateNode.containerInfo,te===C||te.nodeType===8&&te.parentNode===C))return;j=j.return}for(;X!==null;){if(j=Ra(X),j===null)return;if(te=j.tag,te===5||te===6){v=A=j;continue e}X=X.parentNode}}v=v.return}Ca(function(){var pe=A,Ee=at(m),we=[];e:{var be=O2.get(l);if(be!==void 0){var Ae=og,Ie=l;switch(l){case"keypress":if(Ld(m)===0)break e;case"keydown":case"keyup":Ae=aF;break;case"focusin":Ie="focus",Ae=lg;break;case"focusout":Ie="blur",Ae=lg;break;case"beforeblur":case"afterblur":Ae=lg;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ae=l2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ae=GB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ae=uF;break;case R2:case A2:case P2:Ae=JB;break;case $2:Ae=dF;break;case"scroll":Ae=VB;break;case"wheel":Ae=pF;break;case"copy":case"cut":case"paste":Ae=ZB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ae=u2}var Ne=(u&4)!==0,Ft=!Ne&&l==="scroll",le=Ne?be!==null?be+"Capture":null:be;Ne=[];for(var ie=pe,ce;ie!==null;){ce=ie;var Ce=ce.stateNode;if(ce.tag===5&&Ce!==null&&(ce=Ce,le!==null&&(Ce=tn(ie,le),Ce!=null&&Ne.push(xu(ie,Ce,ce)))),Ft)break;ie=ie.return}0<Ne.length&&(be=new Ae(be,Ie,null,m,Ee),we.push({event:be,listeners:Ne}))}}if((u&7)===0){e:{if(be=l==="mouseover"||l==="pointerover",Ae=l==="mouseout"||l==="pointerout",be&&m!==tt&&(Ie=m.relatedTarget||m.fromElement)&&(Ra(Ie)||Ie[Ho]))break e;if((Ae||be)&&(be=Ee.window===Ee?Ee:(be=Ee.ownerDocument)?be.defaultView||be.parentWindow:window,Ae?(Ie=m.relatedTarget||m.toElement,Ae=pe,Ie=Ie?Ra(Ie):null,Ie!==null&&(Ft=uo(Ie),Ie!==Ft||Ie.tag!==5&&Ie.tag!==6)&&(Ie=null)):(Ae=null,Ie=pe),Ae!==Ie)){if(Ne=l2,Ce="onMouseLeave",le="onMouseEnter",ie="mouse",(l==="pointerout"||l==="pointerover")&&(Ne=u2,Ce="onPointerLeave",le="onPointerEnter",ie="pointer"),Ft=Ae==null?be:Ml(Ae),ce=Ie==null?be:Ml(Ie),be=new Ne(Ce,ie+"leave",Ae,m,Ee),be.target=Ft,be.relatedTarget=ce,Ce=null,Ra(Ee)===pe&&(Ne=new Ne(le,ie+"enter",Ie,m,Ee),Ne.target=ce,Ne.relatedTarget=Ft,Ce=Ne),Ft=Ce,Ae&&Ie)t:{for(Ne=Ae,le=Ie,ie=0,ce=Ne;ce;ce=kl(ce))ie++;for(ce=0,Ce=le;Ce;Ce=kl(Ce))ce++;for(;0<ie-ce;)Ne=kl(Ne),ie--;for(;0<ce-ie;)le=kl(le),ce--;for(;ie--;){if(Ne===le||le!==null&&Ne===le.alternate)break t;Ne=kl(Ne),le=kl(le)}Ne=null}else Ne=null;Ae!==null&&M2(we,be,Ae,Ne,!1),Ie!==null&&Ft!==null&&M2(we,Ft,Ie,Ne,!0)}}e:{if(be=pe?Ml(pe):window,Ae=be.nodeName&&be.nodeName.toLowerCase(),Ae==="select"||Ae==="input"&&be.type==="file")var De=EF;else if(m2(be))if(y2)De=CF;else{De=SF;var Me=wF}else(Ae=be.nodeName)&&Ae.toLowerCase()==="input"&&(be.type==="checkbox"||be.type==="radio")&&(De=xF);if(De&&(De=De(l,pe))){g2(we,De,m,Ee);break e}Me&&Me(l,be,pe),l==="focusout"&&(Me=be._wrapperState)&&Me.controlled&&be.type==="number"&&At(be,"number",be.value)}switch(Me=pe?Ml(pe):window,l){case"focusin":(m2(Me)||Me.contentEditable==="true")&&(Il=Me,pg=pe,Eu=null);break;case"focusout":Eu=pg=Il=null;break;case"mousedown":hg=!0;break;case"contextmenu":case"mouseup":case"dragend":hg=!1,T2(we,m,Ee);break;case"selectionchange":if(RF)break;case"keydown":case"keyup":T2(we,m,Ee)}var Le;if(ug)e:{switch(l){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Ol?p2(l,m)&&(Be="onCompositionEnd"):l==="keydown"&&m.keyCode===229&&(Be="onCompositionStart");Be&&(c2&&m.locale!=="ko"&&(Ol||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Ol&&(Le=i2()):(Pi=Ee,ng="value"in Pi?Pi.value:Pi.textContent,Ol=!0)),Me=zd(pe,Be),0<Me.length&&(Be=new s2(Be,l,null,m,Ee),we.push({event:Be,listeners:Me}),Le?Be.data=Le:(Le=h2(m),Le!==null&&(Be.data=Le)))),(Le=mF?gF(l,m):yF(l,m))&&(pe=zd(pe,"onBeforeInput"),0<pe.length&&(Ee=new s2("onBeforeInput","beforeinput",null,m,Ee),we.push({event:Ee,listeners:pe}),Ee.data=Le))}k2(we,u)})}function xu(l,u,m){return{instance:l,listener:u,currentTarget:m}}function zd(l,u){for(var m=u+"Capture",v=[];l!==null;){var C=l,A=C.stateNode;C.tag===5&&A!==null&&(C=A,A=tn(l,m),A!=null&&v.unshift(xu(l,A,C)),A=tn(l,u),A!=null&&v.push(xu(l,A,C))),l=l.return}return v}function kl(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function M2(l,u,m,v,C){for(var A=u._reactName,j=[];m!==null&&m!==v;){var X=m,te=X.alternate,pe=X.stateNode;if(te!==null&&te===v)break;X.tag===5&&pe!==null&&(X=pe,C?(te=tn(m,A),te!=null&&j.unshift(xu(m,te,X))):C||(te=tn(m,A),te!=null&&j.push(xu(m,te,X)))),m=m.return}j.length!==0&&l.push({event:u,listeners:j})}var OF=/\r\n?/g,IF=/\u0000|\uFFFD/g;function L2(l){return(typeof l=="string"?l:""+l).replace(OF,`
`).replace(IF,"")}function Kd(l,u,m){if(u=L2(u),L2(l)!==u&&m)throw Error(r(425))}function Vd(){}var Eg=null,wg=null;function Sg(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var xg=typeof setTimeout=="function"?setTimeout:void 0,NF=typeof clearTimeout=="function"?clearTimeout:void 0,B2=typeof Promise=="function"?Promise:void 0,kF=typeof queueMicrotask=="function"?queueMicrotask:typeof B2<"u"?function(l){return B2.resolve(null).then(l).catch(DF)}:xg;function DF(l){setTimeout(function(){throw l})}function Cg(l,u){var m=u,v=0;do{var C=m.nextSibling;if(l.removeChild(m),C&&C.nodeType===8)if(m=C.data,m==="/$"){if(v===0){l.removeChild(C),pu(u);return}v--}else m!=="$"&&m!=="$?"&&m!=="$!"||v++;m=C}while(m);pu(u)}function Oi(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return l}function F2(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var m=l.data;if(m==="$"||m==="$!"||m==="$?"){if(u===0)return l;u--}else m==="/$"&&u++}l=l.previousSibling}return null}var Dl=Math.random().toString(36).slice(2),fo="__reactFiber$"+Dl,Cu="__reactProps$"+Dl,Ho="__reactContainer$"+Dl,Tg="__reactEvents$"+Dl,MF="__reactListeners$"+Dl,LF="__reactHandles$"+Dl;function Ra(l){var u=l[fo];if(u)return u;for(var m=l.parentNode;m;){if(u=m[Ho]||m[fo]){if(m=u.alternate,u.child!==null||m!==null&&m.child!==null)for(l=F2(l);l!==null;){if(m=l[fo])return m;l=F2(l)}return u}l=m,m=l.parentNode}return null}function Tu(l){return l=l[fo]||l[Ho],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function Ml(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(r(33))}function Wd(l){return l[Cu]||null}var _g=[],Ll=-1;function Ii(l){return{current:l}}function St(l){0>Ll||(l.current=_g[Ll],_g[Ll]=null,Ll--)}function vt(l,u){Ll++,_g[Ll]=l.current,l.current=u}var Ni={},Sr=Ii(Ni),Hr=Ii(!1),Aa=Ni;function Bl(l,u){var m=l.type.contextTypes;if(!m)return Ni;var v=l.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===u)return v.__reactInternalMemoizedMaskedChildContext;var C={},A;for(A in m)C[A]=u[A];return v&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=C),C}function Ur(l){return l=l.childContextTypes,l!=null}function Gd(){St(Hr),St(Sr)}function j2(l,u,m){if(Sr.current!==Ni)throw Error(r(168));vt(Sr,u),vt(Hr,m)}function q2(l,u,m){var v=l.stateNode;if(u=u.childContextTypes,typeof v.getChildContext!="function")return m;v=v.getChildContext();for(var C in v)if(!(C in u))throw Error(r(108,ge(l)||"Unknown",C));return F({},m,v)}function Yd(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Ni,Aa=Sr.current,vt(Sr,l),vt(Hr,Hr.current),!0}function H2(l,u,m){var v=l.stateNode;if(!v)throw Error(r(169));m?(l=q2(l,u,Aa),v.__reactInternalMemoizedMergedChildContext=l,St(Hr),St(Sr),vt(Sr,l)):St(Hr),vt(Hr,m)}var Uo=null,Xd=!1,Rg=!1;function U2(l){Uo===null?Uo=[l]:Uo.push(l)}function BF(l){Xd=!0,U2(l)}function ki(){if(!Rg&&Uo!==null){Rg=!0;var l=0,u=pt;try{var m=Uo;for(pt=1;l<m.length;l++){var v=m[l];do v=v(!0);while(v!==null)}Uo=null,Xd=!1}catch(C){throw Uo!==null&&(Uo=Uo.slice(l+1)),au(Ym,ki),C}finally{pt=u,Rg=!1}}return null}var Fl=[],jl=0,Jd=null,Qd=0,Sn=[],xn=0,Pa=null,zo=1,Ko="";function $a(l,u){Fl[jl++]=Qd,Fl[jl++]=Jd,Jd=l,Qd=u}function z2(l,u,m){Sn[xn++]=zo,Sn[xn++]=Ko,Sn[xn++]=Pa,Pa=l;var v=zo;l=Ko;var C=32-Un(v)-1;v&=~(1<<C),m+=1;var A=32-Un(u)+C;if(30<A){var j=C-C%5;A=(v&(1<<j)-1).toString(32),v>>=j,C-=j,zo=1<<32-Un(u)+C|m<<C|v,Ko=A+l}else zo=1<<A|m<<C|v,Ko=l}function Ag(l){l.return!==null&&($a(l,1),z2(l,1,0))}function Pg(l){for(;l===Jd;)Jd=Fl[--jl],Fl[jl]=null,Qd=Fl[--jl],Fl[jl]=null;for(;l===Pa;)Pa=Sn[--xn],Sn[xn]=null,Ko=Sn[--xn],Sn[xn]=null,zo=Sn[--xn],Sn[xn]=null}var nn=null,on=null,Ct=!1,Kn=null;function K2(l,u){var m=Rn(5,null,null,0);m.elementType="DELETED",m.stateNode=u,m.return=l,u=l.deletions,u===null?(l.deletions=[m],l.flags|=16):u.push(m)}function V2(l,u){switch(l.tag){case 5:var m=l.type;return u=u.nodeType!==1||m.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(l.stateNode=u,nn=l,on=Oi(u.firstChild),!0):!1;case 6:return u=l.pendingProps===""||u.nodeType!==3?null:u,u!==null?(l.stateNode=u,nn=l,on=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(m=Pa!==null?{id:zo,overflow:Ko}:null,l.memoizedState={dehydrated:u,treeContext:m,retryLane:1073741824},m=Rn(18,null,null,0),m.stateNode=u,m.return=l,l.child=m,nn=l,on=null,!0):!1;default:return!1}}function $g(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Og(l){if(Ct){var u=on;if(u){var m=u;if(!V2(l,u)){if($g(l))throw Error(r(418));u=Oi(m.nextSibling);var v=nn;u&&V2(l,u)?K2(v,m):(l.flags=l.flags&-4097|2,Ct=!1,nn=l)}}else{if($g(l))throw Error(r(418));l.flags=l.flags&-4097|2,Ct=!1,nn=l}}}function W2(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;nn=l}function Zd(l){if(l!==nn)return!1;if(!Ct)return W2(l),Ct=!0,!1;var u;if((u=l.tag!==3)&&!(u=l.tag!==5)&&(u=l.type,u=u!=="head"&&u!=="body"&&!Sg(l.type,l.memoizedProps)),u&&(u=on)){if($g(l))throw G2(),Error(r(418));for(;u;)K2(l,u),u=Oi(u.nextSibling)}if(W2(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));e:{for(l=l.nextSibling,u=0;l;){if(l.nodeType===8){var m=l.data;if(m==="/$"){if(u===0){on=Oi(l.nextSibling);break e}u--}else m!=="$"&&m!=="$!"&&m!=="$?"||u++}l=l.nextSibling}on=null}}else on=nn?Oi(l.stateNode.nextSibling):null;return!0}function G2(){for(var l=on;l;)l=Oi(l.nextSibling)}function ql(){on=nn=null,Ct=!1}function Ig(l){Kn===null?Kn=[l]:Kn.push(l)}var FF=O.ReactCurrentBatchConfig;function _u(l,u,m){if(l=m.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(m._owner){if(m=m._owner,m){if(m.tag!==1)throw Error(r(309));var v=m.stateNode}if(!v)throw Error(r(147,l));var C=v,A=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===A?u.ref:(u=function(j){var X=C.refs;j===null?delete X[A]:X[A]=j},u._stringRef=A,u)}if(typeof l!="string")throw Error(r(284));if(!m._owner)throw Error(r(290,l))}return l}function ef(l,u){throw l=Object.prototype.toString.call(u),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function Y2(l){var u=l._init;return u(l._payload)}function X2(l){function u(le,ie){if(l){var ce=le.deletions;ce===null?(le.deletions=[ie],le.flags|=16):ce.push(ie)}}function m(le,ie){if(!l)return null;for(;ie!==null;)u(le,ie),ie=ie.sibling;return null}function v(le,ie){for(le=new Map;ie!==null;)ie.key!==null?le.set(ie.key,ie):le.set(ie.index,ie),ie=ie.sibling;return le}function C(le,ie){return le=Hi(le,ie),le.index=0,le.sibling=null,le}function A(le,ie,ce){return le.index=ce,l?(ce=le.alternate,ce!==null?(ce=ce.index,ce<ie?(le.flags|=2,ie):ce):(le.flags|=2,ie)):(le.flags|=1048576,ie)}function j(le){return l&&le.alternate===null&&(le.flags|=2),le}function X(le,ie,ce,Ce){return ie===null||ie.tag!==6?(ie=xy(ce,le.mode,Ce),ie.return=le,ie):(ie=C(ie,ce),ie.return=le,ie)}function te(le,ie,ce,Ce){var De=ce.type;return De===P?Ee(le,ie,ce.props.children,Ce,ce.key):ie!==null&&(ie.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===I&&Y2(De)===ie.type)?(Ce=C(ie,ce.props),Ce.ref=_u(le,ie,ce),Ce.return=le,Ce):(Ce=Tf(ce.type,ce.key,ce.props,null,le.mode,Ce),Ce.ref=_u(le,ie,ce),Ce.return=le,Ce)}function pe(le,ie,ce,Ce){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==ce.containerInfo||ie.stateNode.implementation!==ce.implementation?(ie=Cy(ce,le.mode,Ce),ie.return=le,ie):(ie=C(ie,ce.children||[]),ie.return=le,ie)}function Ee(le,ie,ce,Ce,De){return ie===null||ie.tag!==7?(ie=Ba(ce,le.mode,Ce,De),ie.return=le,ie):(ie=C(ie,ce),ie.return=le,ie)}function we(le,ie,ce){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return ie=xy(""+ie,le.mode,ce),ie.return=le,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case D:return ce=Tf(ie.type,ie.key,ie.props,null,le.mode,ce),ce.ref=_u(le,null,ie),ce.return=le,ce;case T:return ie=Cy(ie,le.mode,ce),ie.return=le,ie;case I:var Ce=ie._init;return we(le,Ce(ie._payload),ce)}if(yt(ie)||z(ie))return ie=Ba(ie,le.mode,ce,null),ie.return=le,ie;ef(le,ie)}return null}function be(le,ie,ce,Ce){var De=ie!==null?ie.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number")return De!==null?null:X(le,ie,""+ce,Ce);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case D:return ce.key===De?te(le,ie,ce,Ce):null;case T:return ce.key===De?pe(le,ie,ce,Ce):null;case I:return De=ce._init,be(le,ie,De(ce._payload),Ce)}if(yt(ce)||z(ce))return De!==null?null:Ee(le,ie,ce,Ce,null);ef(le,ce)}return null}function Ae(le,ie,ce,Ce,De){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number")return le=le.get(ce)||null,X(ie,le,""+Ce,De);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case D:return le=le.get(Ce.key===null?ce:Ce.key)||null,te(ie,le,Ce,De);case T:return le=le.get(Ce.key===null?ce:Ce.key)||null,pe(ie,le,Ce,De);case I:var Me=Ce._init;return Ae(le,ie,ce,Me(Ce._payload),De)}if(yt(Ce)||z(Ce))return le=le.get(ce)||null,Ee(ie,le,Ce,De,null);ef(ie,Ce)}return null}function Ie(le,ie,ce,Ce){for(var De=null,Me=null,Le=ie,Be=ie=0,or=null;Le!==null&&Be<ce.length;Be++){Le.index>Be?(or=Le,Le=null):or=Le.sibling;var rt=be(le,Le,ce[Be],Ce);if(rt===null){Le===null&&(Le=or);break}l&&Le&&rt.alternate===null&&u(le,Le),ie=A(rt,ie,Be),Me===null?De=rt:Me.sibling=rt,Me=rt,Le=or}if(Be===ce.length)return m(le,Le),Ct&&$a(le,Be),De;if(Le===null){for(;Be<ce.length;Be++)Le=we(le,ce[Be],Ce),Le!==null&&(ie=A(Le,ie,Be),Me===null?De=Le:Me.sibling=Le,Me=Le);return Ct&&$a(le,Be),De}for(Le=v(le,Le);Be<ce.length;Be++)or=Ae(Le,le,Be,ce[Be],Ce),or!==null&&(l&&or.alternate!==null&&Le.delete(or.key===null?Be:or.key),ie=A(or,ie,Be),Me===null?De=or:Me.sibling=or,Me=or);return l&&Le.forEach(function(Ui){return u(le,Ui)}),Ct&&$a(le,Be),De}function Ne(le,ie,ce,Ce){var De=z(ce);if(typeof De!="function")throw Error(r(150));if(ce=De.call(ce),ce==null)throw Error(r(151));for(var Me=De=null,Le=ie,Be=ie=0,or=null,rt=ce.next();Le!==null&&!rt.done;Be++,rt=ce.next()){Le.index>Be?(or=Le,Le=null):or=Le.sibling;var Ui=be(le,Le,rt.value,Ce);if(Ui===null){Le===null&&(Le=or);break}l&&Le&&Ui.alternate===null&&u(le,Le),ie=A(Ui,ie,Be),Me===null?De=Ui:Me.sibling=Ui,Me=Ui,Le=or}if(rt.done)return m(le,Le),Ct&&$a(le,Be),De;if(Le===null){for(;!rt.done;Be++,rt=ce.next())rt=we(le,rt.value,Ce),rt!==null&&(ie=A(rt,ie,Be),Me===null?De=rt:Me.sibling=rt,Me=rt);return Ct&&$a(le,Be),De}for(Le=v(le,Le);!rt.done;Be++,rt=ce.next())rt=Ae(Le,le,Be,rt.value,Ce),rt!==null&&(l&&rt.alternate!==null&&Le.delete(rt.key===null?Be:rt.key),ie=A(rt,ie,Be),Me===null?De=rt:Me.sibling=rt,Me=rt);return l&&Le.forEach(function(b9){return u(le,b9)}),Ct&&$a(le,Be),De}function Ft(le,ie,ce,Ce){if(typeof ce=="object"&&ce!==null&&ce.type===P&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case D:e:{for(var De=ce.key,Me=ie;Me!==null;){if(Me.key===De){if(De=ce.type,De===P){if(Me.tag===7){m(le,Me.sibling),ie=C(Me,ce.props.children),ie.return=le,le=ie;break e}}else if(Me.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===I&&Y2(De)===Me.type){m(le,Me.sibling),ie=C(Me,ce.props),ie.ref=_u(le,Me,ce),ie.return=le,le=ie;break e}m(le,Me);break}else u(le,Me);Me=Me.sibling}ce.type===P?(ie=Ba(ce.props.children,le.mode,Ce,ce.key),ie.return=le,le=ie):(Ce=Tf(ce.type,ce.key,ce.props,null,le.mode,Ce),Ce.ref=_u(le,ie,ce),Ce.return=le,le=Ce)}return j(le);case T:e:{for(Me=ce.key;ie!==null;){if(ie.key===Me)if(ie.tag===4&&ie.stateNode.containerInfo===ce.containerInfo&&ie.stateNode.implementation===ce.implementation){m(le,ie.sibling),ie=C(ie,ce.children||[]),ie.return=le,le=ie;break e}else{m(le,ie);break}else u(le,ie);ie=ie.sibling}ie=Cy(ce,le.mode,Ce),ie.return=le,le=ie}return j(le);case I:return Me=ce._init,Ft(le,ie,Me(ce._payload),Ce)}if(yt(ce))return Ie(le,ie,ce,Ce);if(z(ce))return Ne(le,ie,ce,Ce);ef(le,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,ie!==null&&ie.tag===6?(m(le,ie.sibling),ie=C(ie,ce),ie.return=le,le=ie):(m(le,ie),ie=xy(ce,le.mode,Ce),ie.return=le,le=ie),j(le)):m(le,ie)}return Ft}var Hl=X2(!0),J2=X2(!1),tf=Ii(null),rf=null,Ul=null,Ng=null;function kg(){Ng=Ul=rf=null}function Dg(l){var u=tf.current;St(tf),l._currentValue=u}function Mg(l,u,m){for(;l!==null;){var v=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,v!==null&&(v.childLanes|=u)):v!==null&&(v.childLanes&u)!==u&&(v.childLanes|=u),l===m)break;l=l.return}}function zl(l,u){rf=l,Ng=Ul=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(zr=!0),l.firstContext=null)}function Cn(l){var u=l._currentValue;if(Ng!==l)if(l={context:l,memoizedValue:u,next:null},Ul===null){if(rf===null)throw Error(r(308));Ul=l,rf.dependencies={lanes:0,firstContext:l}}else Ul=Ul.next=l;return u}var Oa=null;function Lg(l){Oa===null?Oa=[l]:Oa.push(l)}function Q2(l,u,m,v){var C=u.interleaved;return C===null?(m.next=m,Lg(u)):(m.next=C.next,C.next=m),u.interleaved=m,Vo(l,v)}function Vo(l,u){l.lanes|=u;var m=l.alternate;for(m!==null&&(m.lanes|=u),m=l,l=l.return;l!==null;)l.childLanes|=u,m=l.alternate,m!==null&&(m.childLanes|=u),m=l,l=l.return;return m.tag===3?m.stateNode:null}var Di=!1;function Bg(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Z2(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Wo(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function Mi(l,u,m){var v=l.updateQueue;if(v===null)return null;if(v=v.shared,(Qe&2)!==0){var C=v.pending;return C===null?u.next=u:(u.next=C.next,C.next=u),v.pending=u,Vo(l,m)}return C=v.interleaved,C===null?(u.next=u,Lg(v)):(u.next=C.next,C.next=u),v.interleaved=u,Vo(l,m)}function nf(l,u,m){if(u=u.updateQueue,u!==null&&(u=u.shared,(m&4194240)!==0)){var v=u.lanes;v&=l.pendingLanes,m|=v,u.lanes=m,Qm(l,m)}}function eC(l,u){var m=l.updateQueue,v=l.alternate;if(v!==null&&(v=v.updateQueue,m===v)){var C=null,A=null;if(m=m.firstBaseUpdate,m!==null){do{var j={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};A===null?C=A=j:A=A.next=j,m=m.next}while(m!==null);A===null?C=A=u:A=A.next=u}else C=A=u;m={baseState:v.baseState,firstBaseUpdate:C,lastBaseUpdate:A,shared:v.shared,effects:v.effects},l.updateQueue=m;return}l=m.lastBaseUpdate,l===null?m.firstBaseUpdate=u:l.next=u,m.lastBaseUpdate=u}function of(l,u,m,v){var C=l.updateQueue;Di=!1;var A=C.firstBaseUpdate,j=C.lastBaseUpdate,X=C.shared.pending;if(X!==null){C.shared.pending=null;var te=X,pe=te.next;te.next=null,j===null?A=pe:j.next=pe,j=te;var Ee=l.alternate;Ee!==null&&(Ee=Ee.updateQueue,X=Ee.lastBaseUpdate,X!==j&&(X===null?Ee.firstBaseUpdate=pe:X.next=pe,Ee.lastBaseUpdate=te))}if(A!==null){var we=C.baseState;j=0,Ee=pe=te=null,X=A;do{var be=X.lane,Ae=X.eventTime;if((v&be)===be){Ee!==null&&(Ee=Ee.next={eventTime:Ae,lane:0,tag:X.tag,payload:X.payload,callback:X.callback,next:null});e:{var Ie=l,Ne=X;switch(be=u,Ae=m,Ne.tag){case 1:if(Ie=Ne.payload,typeof Ie=="function"){we=Ie.call(Ae,we,be);break e}we=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=Ne.payload,be=typeof Ie=="function"?Ie.call(Ae,we,be):Ie,be==null)break e;we=F({},we,be);break e;case 2:Di=!0}}X.callback!==null&&X.lane!==0&&(l.flags|=64,be=C.effects,be===null?C.effects=[X]:be.push(X))}else Ae={eventTime:Ae,lane:be,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Ee===null?(pe=Ee=Ae,te=we):Ee=Ee.next=Ae,j|=be;if(X=X.next,X===null){if(X=C.shared.pending,X===null)break;be=X,X=be.next,be.next=null,C.lastBaseUpdate=be,C.shared.pending=null}}while(!0);if(Ee===null&&(te=we),C.baseState=te,C.firstBaseUpdate=pe,C.lastBaseUpdate=Ee,u=C.shared.interleaved,u!==null){C=u;do j|=C.lane,C=C.next;while(C!==u)}else A===null&&(C.shared.lanes=0);ka|=j,l.lanes=j,l.memoizedState=we}}function tC(l,u,m){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var v=l[u],C=v.callback;if(C!==null){if(v.callback=null,v=m,typeof C!="function")throw Error(r(191,C));C.call(v)}}}var Ru={},po=Ii(Ru),Au=Ii(Ru),Pu=Ii(Ru);function Ia(l){if(l===Ru)throw Error(r(174));return l}function Fg(l,u){switch(vt(Pu,u),vt(Au,l),vt(po,Ru),l=u.nodeType,l){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:xa(null,"");break;default:l=l===8?u.parentNode:u,u=l.namespaceURI||null,l=l.tagName,u=xa(u,l)}St(po),vt(po,u)}function Kl(){St(po),St(Au),St(Pu)}function rC(l){Ia(Pu.current);var u=Ia(po.current),m=xa(u,l.type);u!==m&&(vt(Au,l),vt(po,m))}function jg(l){Au.current===l&&(St(po),St(Au))}var Pt=Ii(0);function af(l){for(var u=l;u!==null;){if(u.tag===13){var m=u.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var qg=[];function Hg(){for(var l=0;l<qg.length;l++)qg[l]._workInProgressVersionPrimary=null;qg.length=0}var lf=O.ReactCurrentDispatcher,Ug=O.ReactCurrentBatchConfig,Na=0,$t=null,Gt=null,rr=null,sf=!1,$u=!1,Ou=0,jF=0;function xr(){throw Error(r(321))}function zg(l,u){if(u===null)return!1;for(var m=0;m<u.length&&m<l.length;m++)if(!zn(l[m],u[m]))return!1;return!0}function Kg(l,u,m,v,C,A){if(Na=A,$t=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,lf.current=l===null||l.memoizedState===null?zF:KF,l=m(v,C),$u){A=0;do{if($u=!1,Ou=0,25<=A)throw Error(r(301));A+=1,rr=Gt=null,u.updateQueue=null,lf.current=VF,l=m(v,C)}while($u)}if(lf.current=df,u=Gt!==null&&Gt.next!==null,Na=0,rr=Gt=$t=null,sf=!1,u)throw Error(r(300));return l}function Vg(){var l=Ou!==0;return Ou=0,l}function ho(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rr===null?$t.memoizedState=rr=l:rr=rr.next=l,rr}function Tn(){if(Gt===null){var l=$t.alternate;l=l!==null?l.memoizedState:null}else l=Gt.next;var u=rr===null?$t.memoizedState:rr.next;if(u!==null)rr=u,Gt=l;else{if(l===null)throw Error(r(310));Gt=l,l={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},rr===null?$t.memoizedState=rr=l:rr=rr.next=l}return rr}function Iu(l,u){return typeof u=="function"?u(l):u}function Wg(l){var u=Tn(),m=u.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=l;var v=Gt,C=v.baseQueue,A=m.pending;if(A!==null){if(C!==null){var j=C.next;C.next=A.next,A.next=j}v.baseQueue=C=A,m.pending=null}if(C!==null){A=C.next,v=v.baseState;var X=j=null,te=null,pe=A;do{var Ee=pe.lane;if((Na&Ee)===Ee)te!==null&&(te=te.next={lane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),v=pe.hasEagerState?pe.eagerState:l(v,pe.action);else{var we={lane:Ee,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null};te===null?(X=te=we,j=v):te=te.next=we,$t.lanes|=Ee,ka|=Ee}pe=pe.next}while(pe!==null&&pe!==A);te===null?j=v:te.next=X,zn(v,u.memoizedState)||(zr=!0),u.memoizedState=v,u.baseState=j,u.baseQueue=te,m.lastRenderedState=v}if(l=m.interleaved,l!==null){C=l;do A=C.lane,$t.lanes|=A,ka|=A,C=C.next;while(C!==l)}else C===null&&(m.lanes=0);return[u.memoizedState,m.dispatch]}function Gg(l){var u=Tn(),m=u.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=l;var v=m.dispatch,C=m.pending,A=u.memoizedState;if(C!==null){m.pending=null;var j=C=C.next;do A=l(A,j.action),j=j.next;while(j!==C);zn(A,u.memoizedState)||(zr=!0),u.memoizedState=A,u.baseQueue===null&&(u.baseState=A),m.lastRenderedState=A}return[A,v]}function nC(){}function oC(l,u){var m=$t,v=Tn(),C=u(),A=!zn(v.memoizedState,C);if(A&&(v.memoizedState=C,zr=!0),v=v.queue,Yg(lC.bind(null,m,v,l),[l]),v.getSnapshot!==u||A||rr!==null&&rr.memoizedState.tag&1){if(m.flags|=2048,Nu(9,aC.bind(null,m,v,C,u),void 0,null),nr===null)throw Error(r(349));(Na&30)!==0||iC(m,u,C)}return C}function iC(l,u,m){l.flags|=16384,l={getSnapshot:u,value:m},u=$t.updateQueue,u===null?(u={lastEffect:null,stores:null},$t.updateQueue=u,u.stores=[l]):(m=u.stores,m===null?u.stores=[l]:m.push(l))}function aC(l,u,m,v){u.value=m,u.getSnapshot=v,sC(u)&&uC(l)}function lC(l,u,m){return m(function(){sC(u)&&uC(l)})}function sC(l){var u=l.getSnapshot;l=l.value;try{var m=u();return!zn(l,m)}catch{return!0}}function uC(l){var u=Vo(l,1);u!==null&&Yn(u,l,1,-1)}function cC(l){var u=ho();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Iu,lastRenderedState:l},u.queue=l,l=l.dispatch=UF.bind(null,$t,l),[u.memoizedState,l]}function Nu(l,u,m,v){return l={tag:l,create:u,destroy:m,deps:v,next:null},u=$t.updateQueue,u===null?(u={lastEffect:null,stores:null},$t.updateQueue=u,u.lastEffect=l.next=l):(m=u.lastEffect,m===null?u.lastEffect=l.next=l:(v=m.next,m.next=l,l.next=v,u.lastEffect=l)),l}function dC(){return Tn().memoizedState}function uf(l,u,m,v){var C=ho();$t.flags|=l,C.memoizedState=Nu(1|u,m,void 0,v===void 0?null:v)}function cf(l,u,m,v){var C=Tn();v=v===void 0?null:v;var A=void 0;if(Gt!==null){var j=Gt.memoizedState;if(A=j.destroy,v!==null&&zg(v,j.deps)){C.memoizedState=Nu(u,m,A,v);return}}$t.flags|=l,C.memoizedState=Nu(1|u,m,A,v)}function fC(l,u){return uf(8390656,8,l,u)}function Yg(l,u){return cf(2048,8,l,u)}function pC(l,u){return cf(4,2,l,u)}function hC(l,u){return cf(4,4,l,u)}function mC(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function gC(l,u,m){return m=m!=null?m.concat([l]):null,cf(4,4,mC.bind(null,u,l),m)}function Xg(){}function yC(l,u){var m=Tn();u=u===void 0?null:u;var v=m.memoizedState;return v!==null&&u!==null&&zg(u,v[1])?v[0]:(m.memoizedState=[l,u],l)}function bC(l,u){var m=Tn();u=u===void 0?null:u;var v=m.memoizedState;return v!==null&&u!==null&&zg(u,v[1])?v[0]:(l=l(),m.memoizedState=[l,u],l)}function vC(l,u,m){return(Na&21)===0?(l.baseState&&(l.baseState=!1,zr=!0),l.memoizedState=m):(zn(m,u)||(m=Yx(),$t.lanes|=m,ka|=m,l.baseState=!0),u)}function qF(l,u){var m=pt;pt=m!==0&&4>m?m:4,l(!0);var v=Ug.transition;Ug.transition={};try{l(!1),u()}finally{pt=m,Ug.transition=v}}function EC(){return Tn().memoizedState}function HF(l,u,m){var v=ji(l);if(m={lane:v,action:m,hasEagerState:!1,eagerState:null,next:null},wC(l))SC(u,m);else if(m=Q2(l,u,m,v),m!==null){var C=Dr();Yn(m,l,v,C),xC(m,u,v)}}function UF(l,u,m){var v=ji(l),C={lane:v,action:m,hasEagerState:!1,eagerState:null,next:null};if(wC(l))SC(u,C);else{var A=l.alternate;if(l.lanes===0&&(A===null||A.lanes===0)&&(A=u.lastRenderedReducer,A!==null))try{var j=u.lastRenderedState,X=A(j,m);if(C.hasEagerState=!0,C.eagerState=X,zn(X,j)){var te=u.interleaved;te===null?(C.next=C,Lg(u)):(C.next=te.next,te.next=C),u.interleaved=C;return}}catch{}finally{}m=Q2(l,u,C,v),m!==null&&(C=Dr(),Yn(m,l,v,C),xC(m,u,v))}}function wC(l){var u=l.alternate;return l===$t||u!==null&&u===$t}function SC(l,u){$u=sf=!0;var m=l.pending;m===null?u.next=u:(u.next=m.next,m.next=u),l.pending=u}function xC(l,u,m){if((m&4194240)!==0){var v=u.lanes;v&=l.pendingLanes,m|=v,u.lanes=m,Qm(l,m)}}var df={readContext:Cn,useCallback:xr,useContext:xr,useEffect:xr,useImperativeHandle:xr,useInsertionEffect:xr,useLayoutEffect:xr,useMemo:xr,useReducer:xr,useRef:xr,useState:xr,useDebugValue:xr,useDeferredValue:xr,useTransition:xr,useMutableSource:xr,useSyncExternalStore:xr,useId:xr,unstable_isNewReconciler:!1},zF={readContext:Cn,useCallback:function(l,u){return ho().memoizedState=[l,u===void 0?null:u],l},useContext:Cn,useEffect:fC,useImperativeHandle:function(l,u,m){return m=m!=null?m.concat([l]):null,uf(4194308,4,mC.bind(null,u,l),m)},useLayoutEffect:function(l,u){return uf(4194308,4,l,u)},useInsertionEffect:function(l,u){return uf(4,2,l,u)},useMemo:function(l,u){var m=ho();return u=u===void 0?null:u,l=l(),m.memoizedState=[l,u],l},useReducer:function(l,u,m){var v=ho();return u=m!==void 0?m(u):u,v.memoizedState=v.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},v.queue=l,l=l.dispatch=HF.bind(null,$t,l),[v.memoizedState,l]},useRef:function(l){var u=ho();return l={current:l},u.memoizedState=l},useState:cC,useDebugValue:Xg,useDeferredValue:function(l){return ho().memoizedState=l},useTransition:function(){var l=cC(!1),u=l[0];return l=qF.bind(null,l[1]),ho().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,m){var v=$t,C=ho();if(Ct){if(m===void 0)throw Error(r(407));m=m()}else{if(m=u(),nr===null)throw Error(r(349));(Na&30)!==0||iC(v,u,m)}C.memoizedState=m;var A={value:m,getSnapshot:u};return C.queue=A,fC(lC.bind(null,v,A,l),[l]),v.flags|=2048,Nu(9,aC.bind(null,v,A,m,u),void 0,null),m},useId:function(){var l=ho(),u=nr.identifierPrefix;if(Ct){var m=Ko,v=zo;m=(v&~(1<<32-Un(v)-1)).toString(32)+m,u=":"+u+"R"+m,m=Ou++,0<m&&(u+="H"+m.toString(32)),u+=":"}else m=jF++,u=":"+u+"r"+m.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},KF={readContext:Cn,useCallback:yC,useContext:Cn,useEffect:Yg,useImperativeHandle:gC,useInsertionEffect:pC,useLayoutEffect:hC,useMemo:bC,useReducer:Wg,useRef:dC,useState:function(){return Wg(Iu)},useDebugValue:Xg,useDeferredValue:function(l){var u=Tn();return vC(u,Gt.memoizedState,l)},useTransition:function(){var l=Wg(Iu)[0],u=Tn().memoizedState;return[l,u]},useMutableSource:nC,useSyncExternalStore:oC,useId:EC,unstable_isNewReconciler:!1},VF={readContext:Cn,useCallback:yC,useContext:Cn,useEffect:Yg,useImperativeHandle:gC,useInsertionEffect:pC,useLayoutEffect:hC,useMemo:bC,useReducer:Gg,useRef:dC,useState:function(){return Gg(Iu)},useDebugValue:Xg,useDeferredValue:function(l){var u=Tn();return Gt===null?u.memoizedState=l:vC(u,Gt.memoizedState,l)},useTransition:function(){var l=Gg(Iu)[0],u=Tn().memoizedState;return[l,u]},useMutableSource:nC,useSyncExternalStore:oC,useId:EC,unstable_isNewReconciler:!1};function Vn(l,u){if(l&&l.defaultProps){u=F({},u),l=l.defaultProps;for(var m in l)u[m]===void 0&&(u[m]=l[m]);return u}return u}function Jg(l,u,m,v){u=l.memoizedState,m=m(v,u),m=m==null?u:F({},u,m),l.memoizedState=m,l.lanes===0&&(l.updateQueue.baseState=m)}var ff={isMounted:function(l){return(l=l._reactInternals)?uo(l)===l:!1},enqueueSetState:function(l,u,m){l=l._reactInternals;var v=Dr(),C=ji(l),A=Wo(v,C);A.payload=u,m!=null&&(A.callback=m),u=Mi(l,A,C),u!==null&&(Yn(u,l,C,v),nf(u,l,C))},enqueueReplaceState:function(l,u,m){l=l._reactInternals;var v=Dr(),C=ji(l),A=Wo(v,C);A.tag=1,A.payload=u,m!=null&&(A.callback=m),u=Mi(l,A,C),u!==null&&(Yn(u,l,C,v),nf(u,l,C))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var m=Dr(),v=ji(l),C=Wo(m,v);C.tag=2,u!=null&&(C.callback=u),u=Mi(l,C,v),u!==null&&(Yn(u,l,v,m),nf(u,l,v))}};function CC(l,u,m,v,C,A,j){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(v,A,j):u.prototype&&u.prototype.isPureReactComponent?!vu(m,v)||!vu(C,A):!0}function TC(l,u,m){var v=!1,C=Ni,A=u.contextType;return typeof A=="object"&&A!==null?A=Cn(A):(C=Ur(u)?Aa:Sr.current,v=u.contextTypes,A=(v=v!=null)?Bl(l,C):Ni),u=new u(m,A),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ff,l.stateNode=u,u._reactInternals=l,v&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=C,l.__reactInternalMemoizedMaskedChildContext=A),u}function _C(l,u,m,v){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(m,v),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(m,v),u.state!==l&&ff.enqueueReplaceState(u,u.state,null)}function Qg(l,u,m,v){var C=l.stateNode;C.props=m,C.state=l.memoizedState,C.refs={},Bg(l);var A=u.contextType;typeof A=="object"&&A!==null?C.context=Cn(A):(A=Ur(u)?Aa:Sr.current,C.context=Bl(l,A)),C.state=l.memoizedState,A=u.getDerivedStateFromProps,typeof A=="function"&&(Jg(l,u,A,m),C.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(u=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),u!==C.state&&ff.enqueueReplaceState(C,C.state,null),of(l,m,C,v),C.state=l.memoizedState),typeof C.componentDidMount=="function"&&(l.flags|=4194308)}function Vl(l,u){try{var m="",v=u;do m+=ee(v),v=v.return;while(v);var C=m}catch(A){C=`
Error generating stack: `+A.message+`
`+A.stack}return{value:l,source:u,stack:C,digest:null}}function Zg(l,u,m){return{value:l,source:null,stack:m??null,digest:u??null}}function ey(l,u){try{console.error(u.value)}catch(m){setTimeout(function(){throw m})}}var WF=typeof WeakMap=="function"?WeakMap:Map;function RC(l,u,m){m=Wo(-1,m),m.tag=3,m.payload={element:null};var v=u.value;return m.callback=function(){vf||(vf=!0,my=v),ey(l,u)},m}function AC(l,u,m){m=Wo(-1,m),m.tag=3;var v=l.type.getDerivedStateFromError;if(typeof v=="function"){var C=u.value;m.payload=function(){return v(C)},m.callback=function(){ey(l,u)}}var A=l.stateNode;return A!==null&&typeof A.componentDidCatch=="function"&&(m.callback=function(){ey(l,u),typeof v!="function"&&(Bi===null?Bi=new Set([this]):Bi.add(this));var j=u.stack;this.componentDidCatch(u.value,{componentStack:j!==null?j:""})}),m}function PC(l,u,m){var v=l.pingCache;if(v===null){v=l.pingCache=new WF;var C=new Set;v.set(u,C)}else C=v.get(u),C===void 0&&(C=new Set,v.set(u,C));C.has(m)||(C.add(m),l=l9.bind(null,l,u,m),u.then(l,l))}function $C(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function OC(l,u,m,v,C){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(u=Wo(-1,1),u.tag=2,Mi(m,u,1))),m.lanes|=1),l):(l.flags|=65536,l.lanes=C,l)}var GF=O.ReactCurrentOwner,zr=!1;function kr(l,u,m,v){u.child=l===null?J2(u,null,m,v):Hl(u,l.child,m,v)}function IC(l,u,m,v,C){m=m.render;var A=u.ref;return zl(u,C),v=Kg(l,u,m,v,A,C),m=Vg(),l!==null&&!zr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~C,Go(l,u,C)):(Ct&&m&&Ag(u),u.flags|=1,kr(l,u,v,C),u.child)}function NC(l,u,m,v,C){if(l===null){var A=m.type;return typeof A=="function"&&!Sy(A)&&A.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(u.tag=15,u.type=A,kC(l,u,A,v,C)):(l=Tf(m.type,null,v,u,u.mode,C),l.ref=u.ref,l.return=u,u.child=l)}if(A=l.child,(l.lanes&C)===0){var j=A.memoizedProps;if(m=m.compare,m=m!==null?m:vu,m(j,v)&&l.ref===u.ref)return Go(l,u,C)}return u.flags|=1,l=Hi(A,v),l.ref=u.ref,l.return=u,u.child=l}function kC(l,u,m,v,C){if(l!==null){var A=l.memoizedProps;if(vu(A,v)&&l.ref===u.ref)if(zr=!1,u.pendingProps=v=A,(l.lanes&C)!==0)(l.flags&131072)!==0&&(zr=!0);else return u.lanes=l.lanes,Go(l,u,C)}return ty(l,u,m,v,C)}function DC(l,u,m){var v=u.pendingProps,C=v.children,A=l!==null?l.memoizedState:null;if(v.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},vt(Gl,an),an|=m;else{if((m&1073741824)===0)return l=A!==null?A.baseLanes|m:m,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,vt(Gl,an),an|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=A!==null?A.baseLanes:m,vt(Gl,an),an|=v}else A!==null?(v=A.baseLanes|m,u.memoizedState=null):v=m,vt(Gl,an),an|=v;return kr(l,u,C,m),u.child}function MC(l,u){var m=u.ref;(l===null&&m!==null||l!==null&&l.ref!==m)&&(u.flags|=512,u.flags|=2097152)}function ty(l,u,m,v,C){var A=Ur(m)?Aa:Sr.current;return A=Bl(u,A),zl(u,C),m=Kg(l,u,m,v,A,C),v=Vg(),l!==null&&!zr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~C,Go(l,u,C)):(Ct&&v&&Ag(u),u.flags|=1,kr(l,u,m,C),u.child)}function LC(l,u,m,v,C){if(Ur(m)){var A=!0;Yd(u)}else A=!1;if(zl(u,C),u.stateNode===null)hf(l,u),TC(u,m,v),Qg(u,m,v,C),v=!0;else if(l===null){var j=u.stateNode,X=u.memoizedProps;j.props=X;var te=j.context,pe=m.contextType;typeof pe=="object"&&pe!==null?pe=Cn(pe):(pe=Ur(m)?Aa:Sr.current,pe=Bl(u,pe));var Ee=m.getDerivedStateFromProps,we=typeof Ee=="function"||typeof j.getSnapshotBeforeUpdate=="function";we||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(X!==v||te!==pe)&&_C(u,j,v,pe),Di=!1;var be=u.memoizedState;j.state=be,of(u,v,j,C),te=u.memoizedState,X!==v||be!==te||Hr.current||Di?(typeof Ee=="function"&&(Jg(u,m,Ee,v),te=u.memoizedState),(X=Di||CC(u,m,X,v,be,te,pe))?(we||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(u.flags|=4194308)):(typeof j.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=v,u.memoizedState=te),j.props=v,j.state=te,j.context=pe,v=X):(typeof j.componentDidMount=="function"&&(u.flags|=4194308),v=!1)}else{j=u.stateNode,Z2(l,u),X=u.memoizedProps,pe=u.type===u.elementType?X:Vn(u.type,X),j.props=pe,we=u.pendingProps,be=j.context,te=m.contextType,typeof te=="object"&&te!==null?te=Cn(te):(te=Ur(m)?Aa:Sr.current,te=Bl(u,te));var Ae=m.getDerivedStateFromProps;(Ee=typeof Ae=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(X!==we||be!==te)&&_C(u,j,v,te),Di=!1,be=u.memoizedState,j.state=be,of(u,v,j,C);var Ie=u.memoizedState;X!==we||be!==Ie||Hr.current||Di?(typeof Ae=="function"&&(Jg(u,m,Ae,v),Ie=u.memoizedState),(pe=Di||CC(u,m,pe,v,be,Ie,te)||!1)?(Ee||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(v,Ie,te),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(v,Ie,te)),typeof j.componentDidUpdate=="function"&&(u.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof j.componentDidUpdate!="function"||X===l.memoizedProps&&be===l.memoizedState||(u.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||X===l.memoizedProps&&be===l.memoizedState||(u.flags|=1024),u.memoizedProps=v,u.memoizedState=Ie),j.props=v,j.state=Ie,j.context=te,v=pe):(typeof j.componentDidUpdate!="function"||X===l.memoizedProps&&be===l.memoizedState||(u.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||X===l.memoizedProps&&be===l.memoizedState||(u.flags|=1024),v=!1)}return ry(l,u,m,v,A,C)}function ry(l,u,m,v,C,A){MC(l,u);var j=(u.flags&128)!==0;if(!v&&!j)return C&&H2(u,m,!1),Go(l,u,A);v=u.stateNode,GF.current=u;var X=j&&typeof m.getDerivedStateFromError!="function"?null:v.render();return u.flags|=1,l!==null&&j?(u.child=Hl(u,l.child,null,A),u.child=Hl(u,null,X,A)):kr(l,u,X,A),u.memoizedState=v.state,C&&H2(u,m,!0),u.child}function BC(l){var u=l.stateNode;u.pendingContext?j2(l,u.pendingContext,u.pendingContext!==u.context):u.context&&j2(l,u.context,!1),Fg(l,u.containerInfo)}function FC(l,u,m,v,C){return ql(),Ig(C),u.flags|=256,kr(l,u,m,v),u.child}var ny={dehydrated:null,treeContext:null,retryLane:0};function oy(l){return{baseLanes:l,cachePool:null,transitions:null}}function jC(l,u,m){var v=u.pendingProps,C=Pt.current,A=!1,j=(u.flags&128)!==0,X;if((X=j)||(X=l!==null&&l.memoizedState===null?!1:(C&2)!==0),X?(A=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(C|=1),vt(Pt,C&1),l===null)return Og(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((u.mode&1)===0?u.lanes=1:l.data==="$!"?u.lanes=8:u.lanes=1073741824,null):(j=v.children,l=v.fallback,A?(v=u.mode,A=u.child,j={mode:"hidden",children:j},(v&1)===0&&A!==null?(A.childLanes=0,A.pendingProps=j):A=_f(j,v,0,null),l=Ba(l,v,m,null),A.return=u,l.return=u,A.sibling=l,u.child=A,u.child.memoizedState=oy(m),u.memoizedState=ny,l):iy(u,j));if(C=l.memoizedState,C!==null&&(X=C.dehydrated,X!==null))return YF(l,u,j,v,X,C,m);if(A){A=v.fallback,j=u.mode,C=l.child,X=C.sibling;var te={mode:"hidden",children:v.children};return(j&1)===0&&u.child!==C?(v=u.child,v.childLanes=0,v.pendingProps=te,u.deletions=null):(v=Hi(C,te),v.subtreeFlags=C.subtreeFlags&14680064),X!==null?A=Hi(X,A):(A=Ba(A,j,m,null),A.flags|=2),A.return=u,v.return=u,v.sibling=A,u.child=v,v=A,A=u.child,j=l.child.memoizedState,j=j===null?oy(m):{baseLanes:j.baseLanes|m,cachePool:null,transitions:j.transitions},A.memoizedState=j,A.childLanes=l.childLanes&~m,u.memoizedState=ny,v}return A=l.child,l=A.sibling,v=Hi(A,{mode:"visible",children:v.children}),(u.mode&1)===0&&(v.lanes=m),v.return=u,v.sibling=null,l!==null&&(m=u.deletions,m===null?(u.deletions=[l],u.flags|=16):m.push(l)),u.child=v,u.memoizedState=null,v}function iy(l,u){return u=_f({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function pf(l,u,m,v){return v!==null&&Ig(v),Hl(u,l.child,null,m),l=iy(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function YF(l,u,m,v,C,A,j){if(m)return u.flags&256?(u.flags&=-257,v=Zg(Error(r(422))),pf(l,u,j,v)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(A=v.fallback,C=u.mode,v=_f({mode:"visible",children:v.children},C,0,null),A=Ba(A,C,j,null),A.flags|=2,v.return=u,A.return=u,v.sibling=A,u.child=v,(u.mode&1)!==0&&Hl(u,l.child,null,j),u.child.memoizedState=oy(j),u.memoizedState=ny,A);if((u.mode&1)===0)return pf(l,u,j,null);if(C.data==="$!"){if(v=C.nextSibling&&C.nextSibling.dataset,v)var X=v.dgst;return v=X,A=Error(r(419)),v=Zg(A,v,void 0),pf(l,u,j,v)}if(X=(j&l.childLanes)!==0,zr||X){if(v=nr,v!==null){switch(j&-j){case 4:C=2;break;case 16:C=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:C=32;break;case 536870912:C=268435456;break;default:C=0}C=(C&(v.suspendedLanes|j))!==0?0:C,C!==0&&C!==A.retryLane&&(A.retryLane=C,Vo(l,C),Yn(v,l,C,-1))}return wy(),v=Zg(Error(r(421))),pf(l,u,j,v)}return C.data==="$?"?(u.flags|=128,u.child=l.child,u=s9.bind(null,l),C._reactRetry=u,null):(l=A.treeContext,on=Oi(C.nextSibling),nn=u,Ct=!0,Kn=null,l!==null&&(Sn[xn++]=zo,Sn[xn++]=Ko,Sn[xn++]=Pa,zo=l.id,Ko=l.overflow,Pa=u),u=iy(u,v.children),u.flags|=4096,u)}function qC(l,u,m){l.lanes|=u;var v=l.alternate;v!==null&&(v.lanes|=u),Mg(l.return,u,m)}function ay(l,u,m,v,C){var A=l.memoizedState;A===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:v,tail:m,tailMode:C}:(A.isBackwards=u,A.rendering=null,A.renderingStartTime=0,A.last=v,A.tail=m,A.tailMode=C)}function HC(l,u,m){var v=u.pendingProps,C=v.revealOrder,A=v.tail;if(kr(l,u,v.children,m),v=Pt.current,(v&2)!==0)v=v&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&qC(l,m,u);else if(l.tag===19)qC(l,m,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}v&=1}if(vt(Pt,v),(u.mode&1)===0)u.memoizedState=null;else switch(C){case"forwards":for(m=u.child,C=null;m!==null;)l=m.alternate,l!==null&&af(l)===null&&(C=m),m=m.sibling;m=C,m===null?(C=u.child,u.child=null):(C=m.sibling,m.sibling=null),ay(u,!1,C,m,A);break;case"backwards":for(m=null,C=u.child,u.child=null;C!==null;){if(l=C.alternate,l!==null&&af(l)===null){u.child=C;break}l=C.sibling,C.sibling=m,m=C,C=l}ay(u,!0,m,null,A);break;case"together":ay(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function hf(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Go(l,u,m){if(l!==null&&(u.dependencies=l.dependencies),ka|=u.lanes,(m&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(r(153));if(u.child!==null){for(l=u.child,m=Hi(l,l.pendingProps),u.child=m,m.return=u;l.sibling!==null;)l=l.sibling,m=m.sibling=Hi(l,l.pendingProps),m.return=u;m.sibling=null}return u.child}function XF(l,u,m){switch(u.tag){case 3:BC(u),ql();break;case 5:rC(u);break;case 1:Ur(u.type)&&Yd(u);break;case 4:Fg(u,u.stateNode.containerInfo);break;case 10:var v=u.type._context,C=u.memoizedProps.value;vt(tf,v._currentValue),v._currentValue=C;break;case 13:if(v=u.memoizedState,v!==null)return v.dehydrated!==null?(vt(Pt,Pt.current&1),u.flags|=128,null):(m&u.child.childLanes)!==0?jC(l,u,m):(vt(Pt,Pt.current&1),l=Go(l,u,m),l!==null?l.sibling:null);vt(Pt,Pt.current&1);break;case 19:if(v=(m&u.childLanes)!==0,(l.flags&128)!==0){if(v)return HC(l,u,m);u.flags|=128}if(C=u.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),vt(Pt,Pt.current),v)break;return null;case 22:case 23:return u.lanes=0,DC(l,u,m)}return Go(l,u,m)}var UC,ly,zC,KC;UC=function(l,u){for(var m=u.child;m!==null;){if(m.tag===5||m.tag===6)l.appendChild(m.stateNode);else if(m.tag!==4&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===u)break;for(;m.sibling===null;){if(m.return===null||m.return===u)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},ly=function(){},zC=function(l,u,m,v){var C=l.memoizedProps;if(C!==v){l=u.stateNode,Ia(po.current);var A=null;switch(m){case"input":C=_e(l,C),v=_e(l,v),A=[];break;case"select":C=F({},C,{value:void 0}),v=F({},v,{value:void 0}),A=[];break;case"textarea":C=It(l,C),v=It(l,v),A=[];break;default:typeof C.onClick!="function"&&typeof v.onClick=="function"&&(l.onclick=Vd)}fe(m,v);var j;m=null;for(pe in C)if(!v.hasOwnProperty(pe)&&C.hasOwnProperty(pe)&&C[pe]!=null)if(pe==="style"){var X=C[pe];for(j in X)X.hasOwnProperty(j)&&(m||(m={}),m[j]="")}else pe!=="dangerouslySetInnerHTML"&&pe!=="children"&&pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&pe!=="autoFocus"&&(o.hasOwnProperty(pe)?A||(A=[]):(A=A||[]).push(pe,null));for(pe in v){var te=v[pe];if(X=C!=null?C[pe]:void 0,v.hasOwnProperty(pe)&&te!==X&&(te!=null||X!=null))if(pe==="style")if(X){for(j in X)!X.hasOwnProperty(j)||te&&te.hasOwnProperty(j)||(m||(m={}),m[j]="");for(j in te)te.hasOwnProperty(j)&&X[j]!==te[j]&&(m||(m={}),m[j]=te[j])}else m||(A||(A=[]),A.push(pe,m)),m=te;else pe==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,X=X?X.__html:void 0,te!=null&&X!==te&&(A=A||[]).push(pe,te)):pe==="children"?typeof te!="string"&&typeof te!="number"||(A=A||[]).push(pe,""+te):pe!=="suppressContentEditableWarning"&&pe!=="suppressHydrationWarning"&&(o.hasOwnProperty(pe)?(te!=null&&pe==="onScroll"&&wt("scroll",l),A||X===te||(A=[])):(A=A||[]).push(pe,te))}m&&(A=A||[]).push("style",m);var pe=A;(u.updateQueue=pe)&&(u.flags|=4)}},KC=function(l,u,m,v){m!==v&&(u.flags|=4)};function ku(l,u){if(!Ct)switch(l.tailMode){case"hidden":u=l.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?l.tail=null:m.sibling=null;break;case"collapsed":m=l.tail;for(var v=null;m!==null;)m.alternate!==null&&(v=m),m=m.sibling;v===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:v.sibling=null}}function Cr(l){var u=l.alternate!==null&&l.alternate.child===l.child,m=0,v=0;if(u)for(var C=l.child;C!==null;)m|=C.lanes|C.childLanes,v|=C.subtreeFlags&14680064,v|=C.flags&14680064,C.return=l,C=C.sibling;else for(C=l.child;C!==null;)m|=C.lanes|C.childLanes,v|=C.subtreeFlags,v|=C.flags,C.return=l,C=C.sibling;return l.subtreeFlags|=v,l.childLanes=m,u}function JF(l,u,m){var v=u.pendingProps;switch(Pg(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cr(u),null;case 1:return Ur(u.type)&&Gd(),Cr(u),null;case 3:return v=u.stateNode,Kl(),St(Hr),St(Sr),Hg(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(l===null||l.child===null)&&(Zd(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Kn!==null&&(by(Kn),Kn=null))),ly(l,u),Cr(u),null;case 5:jg(u);var C=Ia(Pu.current);if(m=u.type,l!==null&&u.stateNode!=null)zC(l,u,m,v,C),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!v){if(u.stateNode===null)throw Error(r(166));return Cr(u),null}if(l=Ia(po.current),Zd(u)){v=u.stateNode,m=u.type;var A=u.memoizedProps;switch(v[fo]=u,v[Cu]=A,l=(u.mode&1)!==0,m){case"dialog":wt("cancel",v),wt("close",v);break;case"iframe":case"object":case"embed":wt("load",v);break;case"video":case"audio":for(C=0;C<wu.length;C++)wt(wu[C],v);break;case"source":wt("error",v);break;case"img":case"image":case"link":wt("error",v),wt("load",v);break;case"details":wt("toggle",v);break;case"input":$e(v,A),wt("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!A.multiple},wt("invalid",v);break;case"textarea":br(v,A),wt("invalid",v)}fe(m,A),C=null;for(var j in A)if(A.hasOwnProperty(j)){var X=A[j];j==="children"?typeof X=="string"?v.textContent!==X&&(A.suppressHydrationWarning!==!0&&Kd(v.textContent,X,l),C=["children",X]):typeof X=="number"&&v.textContent!==""+X&&(A.suppressHydrationWarning!==!0&&Kd(v.textContent,X,l),C=["children",""+X]):o.hasOwnProperty(j)&&X!=null&&j==="onScroll"&&wt("scroll",v)}switch(m){case"input":me(v),et(v,A,!0);break;case"textarea":me(v),qn(v);break;case"select":case"option":break;default:typeof A.onClick=="function"&&(v.onclick=Vd)}v=C,u.updateQueue=v,v!==null&&(u.flags|=4)}else{j=C.nodeType===9?C:C.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=Sa(m)),l==="http://www.w3.org/1999/xhtml"?m==="script"?(l=j.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof v.is=="string"?l=j.createElement(m,{is:v.is}):(l=j.createElement(m),m==="select"&&(j=l,v.multiple?j.multiple=!0:v.size&&(j.size=v.size))):l=j.createElementNS(l,m),l[fo]=u,l[Cu]=v,UC(l,u,!1,!1),u.stateNode=l;e:{switch(j=Ve(m,v),m){case"dialog":wt("cancel",l),wt("close",l),C=v;break;case"iframe":case"object":case"embed":wt("load",l),C=v;break;case"video":case"audio":for(C=0;C<wu.length;C++)wt(wu[C],l);C=v;break;case"source":wt("error",l),C=v;break;case"img":case"image":case"link":wt("error",l),wt("load",l),C=v;break;case"details":wt("toggle",l),C=v;break;case"input":$e(l,v),C=_e(l,v),wt("invalid",l);break;case"option":C=v;break;case"select":l._wrapperState={wasMultiple:!!v.multiple},C=F({},v,{value:void 0}),wt("invalid",l);break;case"textarea":br(l,v),C=It(l,v),wt("invalid",l);break;default:C=v}fe(m,C),X=C;for(A in X)if(X.hasOwnProperty(A)){var te=X[A];A==="style"?Bo(l,te):A==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,te!=null&&Ei(l,te)):A==="children"?typeof te=="string"?(m!=="textarea"||te!=="")&&so(l,te):typeof te=="number"&&so(l,""+te):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(o.hasOwnProperty(A)?te!=null&&A==="onScroll"&&wt("scroll",l):te!=null&&R(l,A,te,j))}switch(m){case"input":me(l),et(l,v,!1);break;case"textarea":me(l),qn(l);break;case"option":v.value!=null&&l.setAttribute("value",""+ye(v.value));break;case"select":l.multiple=!!v.multiple,A=v.value,A!=null?bt(l,!!v.multiple,A,!1):v.defaultValue!=null&&bt(l,!!v.multiple,v.defaultValue,!0);break;default:typeof C.onClick=="function"&&(l.onclick=Vd)}switch(m){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return Cr(u),null;case 6:if(l&&u.stateNode!=null)KC(l,u,l.memoizedProps,v);else{if(typeof v!="string"&&u.stateNode===null)throw Error(r(166));if(m=Ia(Pu.current),Ia(po.current),Zd(u)){if(v=u.stateNode,m=u.memoizedProps,v[fo]=u,(A=v.nodeValue!==m)&&(l=nn,l!==null))switch(l.tag){case 3:Kd(v.nodeValue,m,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Kd(v.nodeValue,m,(l.mode&1)!==0)}A&&(u.flags|=4)}else v=(m.nodeType===9?m:m.ownerDocument).createTextNode(v),v[fo]=u,u.stateNode=v}return Cr(u),null;case 13:if(St(Pt),v=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(Ct&&on!==null&&(u.mode&1)!==0&&(u.flags&128)===0)G2(),ql(),u.flags|=98560,A=!1;else if(A=Zd(u),v!==null&&v.dehydrated!==null){if(l===null){if(!A)throw Error(r(318));if(A=u.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(r(317));A[fo]=u}else ql(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Cr(u),A=!1}else Kn!==null&&(by(Kn),Kn=null),A=!0;if(!A)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=m,u):(v=v!==null,v!==(l!==null&&l.memoizedState!==null)&&v&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||(Pt.current&1)!==0?Yt===0&&(Yt=3):wy())),u.updateQueue!==null&&(u.flags|=4),Cr(u),null);case 4:return Kl(),ly(l,u),l===null&&Su(u.stateNode.containerInfo),Cr(u),null;case 10:return Dg(u.type._context),Cr(u),null;case 17:return Ur(u.type)&&Gd(),Cr(u),null;case 19:if(St(Pt),A=u.memoizedState,A===null)return Cr(u),null;if(v=(u.flags&128)!==0,j=A.rendering,j===null)if(v)ku(A,!1);else{if(Yt!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if(j=af(l),j!==null){for(u.flags|=128,ku(A,!1),v=j.updateQueue,v!==null&&(u.updateQueue=v,u.flags|=4),u.subtreeFlags=0,v=m,m=u.child;m!==null;)A=m,l=v,A.flags&=14680066,j=A.alternate,j===null?(A.childLanes=0,A.lanes=l,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=j.childLanes,A.lanes=j.lanes,A.child=j.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=j.memoizedProps,A.memoizedState=j.memoizedState,A.updateQueue=j.updateQueue,A.type=j.type,l=j.dependencies,A.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),m=m.sibling;return vt(Pt,Pt.current&1|2),u.child}l=l.sibling}A.tail!==null&&Bt()>Yl&&(u.flags|=128,v=!0,ku(A,!1),u.lanes=4194304)}else{if(!v)if(l=af(j),l!==null){if(u.flags|=128,v=!0,m=l.updateQueue,m!==null&&(u.updateQueue=m,u.flags|=4),ku(A,!0),A.tail===null&&A.tailMode==="hidden"&&!j.alternate&&!Ct)return Cr(u),null}else 2*Bt()-A.renderingStartTime>Yl&&m!==1073741824&&(u.flags|=128,v=!0,ku(A,!1),u.lanes=4194304);A.isBackwards?(j.sibling=u.child,u.child=j):(m=A.last,m!==null?m.sibling=j:u.child=j,A.last=j)}return A.tail!==null?(u=A.tail,A.rendering=u,A.tail=u.sibling,A.renderingStartTime=Bt(),u.sibling=null,m=Pt.current,vt(Pt,v?m&1|2:m&1),u):(Cr(u),null);case 22:case 23:return Ey(),v=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==v&&(u.flags|=8192),v&&(u.mode&1)!==0?(an&1073741824)!==0&&(Cr(u),u.subtreeFlags&6&&(u.flags|=8192)):Cr(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function QF(l,u){switch(Pg(u),u.tag){case 1:return Ur(u.type)&&Gd(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return Kl(),St(Hr),St(Sr),Hg(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return jg(u),null;case 13:if(St(Pt),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(r(340));ql()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return St(Pt),null;case 4:return Kl(),null;case 10:return Dg(u.type._context),null;case 22:case 23:return Ey(),null;case 24:return null;default:return null}}var mf=!1,Tr=!1,ZF=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function Wl(l,u){var m=l.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(v){Nt(l,u,v)}else m.current=null}function sy(l,u,m){try{m()}catch(v){Nt(l,u,v)}}var VC=!1;function e9(l,u){if(Eg=kd,l=C2(),fg(l)){if("selectionStart"in l)var m={start:l.selectionStart,end:l.selectionEnd};else e:{m=(m=l.ownerDocument)&&m.defaultView||window;var v=m.getSelection&&m.getSelection();if(v&&v.rangeCount!==0){m=v.anchorNode;var C=v.anchorOffset,A=v.focusNode;v=v.focusOffset;try{m.nodeType,A.nodeType}catch{m=null;break e}var j=0,X=-1,te=-1,pe=0,Ee=0,we=l,be=null;t:for(;;){for(var Ae;we!==m||C!==0&&we.nodeType!==3||(X=j+C),we!==A||v!==0&&we.nodeType!==3||(te=j+v),we.nodeType===3&&(j+=we.nodeValue.length),(Ae=we.firstChild)!==null;)be=we,we=Ae;for(;;){if(we===l)break t;if(be===m&&++pe===C&&(X=j),be===A&&++Ee===v&&(te=j),(Ae=we.nextSibling)!==null)break;we=be,be=we.parentNode}we=Ae}m=X===-1||te===-1?null:{start:X,end:te}}else m=null}m=m||{start:0,end:0}}else m=null;for(wg={focusedElem:l,selectionRange:m},kd=!1,Pe=u;Pe!==null;)if(u=Pe,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,Pe=l;else for(;Pe!==null;){u=Pe;try{var Ie=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Ie!==null){var Ne=Ie.memoizedProps,Ft=Ie.memoizedState,le=u.stateNode,ie=le.getSnapshotBeforeUpdate(u.elementType===u.type?Ne:Vn(u.type,Ne),Ft);le.__reactInternalSnapshotBeforeUpdate=ie}break;case 3:var ce=u.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ce){Nt(u,u.return,Ce)}if(l=u.sibling,l!==null){l.return=u.return,Pe=l;break}Pe=u.return}return Ie=VC,VC=!1,Ie}function Du(l,u,m){var v=u.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var C=v=v.next;do{if((C.tag&l)===l){var A=C.destroy;C.destroy=void 0,A!==void 0&&sy(u,m,A)}C=C.next}while(C!==v)}}function gf(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var m=u=u.next;do{if((m.tag&l)===l){var v=m.create;m.destroy=v()}m=m.next}while(m!==u)}}function uy(l){var u=l.ref;if(u!==null){var m=l.stateNode;switch(l.tag){case 5:l=m;break;default:l=m}typeof u=="function"?u(l):u.current=l}}function WC(l){var u=l.alternate;u!==null&&(l.alternate=null,WC(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[fo],delete u[Cu],delete u[Tg],delete u[MF],delete u[LF])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function GC(l){return l.tag===5||l.tag===3||l.tag===4}function YC(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||GC(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function cy(l,u,m){var v=l.tag;if(v===5||v===6)l=l.stateNode,u?m.nodeType===8?m.parentNode.insertBefore(l,u):m.insertBefore(l,u):(m.nodeType===8?(u=m.parentNode,u.insertBefore(l,m)):(u=m,u.appendChild(l)),m=m._reactRootContainer,m!=null||u.onclick!==null||(u.onclick=Vd));else if(v!==4&&(l=l.child,l!==null))for(cy(l,u,m),l=l.sibling;l!==null;)cy(l,u,m),l=l.sibling}function dy(l,u,m){var v=l.tag;if(v===5||v===6)l=l.stateNode,u?m.insertBefore(l,u):m.appendChild(l);else if(v!==4&&(l=l.child,l!==null))for(dy(l,u,m),l=l.sibling;l!==null;)dy(l,u,m),l=l.sibling}var dr=null,Wn=!1;function Li(l,u,m){for(m=m.child;m!==null;)XC(l,u,m),m=m.sibling}function XC(l,u,m){if(co&&typeof co.onCommitFiberUnmount=="function")try{co.onCommitFiberUnmount(Ad,m)}catch{}switch(m.tag){case 5:Tr||Wl(m,u);case 6:var v=dr,C=Wn;dr=null,Li(l,u,m),dr=v,Wn=C,dr!==null&&(Wn?(l=dr,m=m.stateNode,l.nodeType===8?l.parentNode.removeChild(m):l.removeChild(m)):dr.removeChild(m.stateNode));break;case 18:dr!==null&&(Wn?(l=dr,m=m.stateNode,l.nodeType===8?Cg(l.parentNode,m):l.nodeType===1&&Cg(l,m),pu(l)):Cg(dr,m.stateNode));break;case 4:v=dr,C=Wn,dr=m.stateNode.containerInfo,Wn=!0,Li(l,u,m),dr=v,Wn=C;break;case 0:case 11:case 14:case 15:if(!Tr&&(v=m.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){C=v=v.next;do{var A=C,j=A.destroy;A=A.tag,j!==void 0&&((A&2)!==0||(A&4)!==0)&&sy(m,u,j),C=C.next}while(C!==v)}Li(l,u,m);break;case 1:if(!Tr&&(Wl(m,u),v=m.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=m.memoizedProps,v.state=m.memoizedState,v.componentWillUnmount()}catch(X){Nt(m,u,X)}Li(l,u,m);break;case 21:Li(l,u,m);break;case 22:m.mode&1?(Tr=(v=Tr)||m.memoizedState!==null,Li(l,u,m),Tr=v):Li(l,u,m);break;default:Li(l,u,m)}}function JC(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var m=l.stateNode;m===null&&(m=l.stateNode=new ZF),u.forEach(function(v){var C=u9.bind(null,l,v);m.has(v)||(m.add(v),v.then(C,C))})}}function Gn(l,u){var m=u.deletions;if(m!==null)for(var v=0;v<m.length;v++){var C=m[v];try{var A=l,j=u,X=j;e:for(;X!==null;){switch(X.tag){case 5:dr=X.stateNode,Wn=!1;break e;case 3:dr=X.stateNode.containerInfo,Wn=!0;break e;case 4:dr=X.stateNode.containerInfo,Wn=!0;break e}X=X.return}if(dr===null)throw Error(r(160));XC(A,j,C),dr=null,Wn=!1;var te=C.alternate;te!==null&&(te.return=null),C.return=null}catch(pe){Nt(C,u,pe)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)QC(u,l),u=u.sibling}function QC(l,u){var m=l.alternate,v=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(Gn(u,l),mo(l),v&4){try{Du(3,l,l.return),gf(3,l)}catch(Ne){Nt(l,l.return,Ne)}try{Du(5,l,l.return)}catch(Ne){Nt(l,l.return,Ne)}}break;case 1:Gn(u,l),mo(l),v&512&&m!==null&&Wl(m,m.return);break;case 5:if(Gn(u,l),mo(l),v&512&&m!==null&&Wl(m,m.return),l.flags&32){var C=l.stateNode;try{so(C,"")}catch(Ne){Nt(l,l.return,Ne)}}if(v&4&&(C=l.stateNode,C!=null)){var A=l.memoizedProps,j=m!==null?m.memoizedProps:A,X=l.type,te=l.updateQueue;if(l.updateQueue=null,te!==null)try{X==="input"&&A.type==="radio"&&A.name!=null&&Oe(C,A),Ve(X,j);var pe=Ve(X,A);for(j=0;j<te.length;j+=2){var Ee=te[j],we=te[j+1];Ee==="style"?Bo(C,we):Ee==="dangerouslySetInnerHTML"?Ei(C,we):Ee==="children"?so(C,we):R(C,Ee,we,pe)}switch(X){case"input":Te(C,A);break;case"textarea":vr(C,A);break;case"select":var be=C._wrapperState.wasMultiple;C._wrapperState.wasMultiple=!!A.multiple;var Ae=A.value;Ae!=null?bt(C,!!A.multiple,Ae,!1):be!==!!A.multiple&&(A.defaultValue!=null?bt(C,!!A.multiple,A.defaultValue,!0):bt(C,!!A.multiple,A.multiple?[]:"",!1))}C[Cu]=A}catch(Ne){Nt(l,l.return,Ne)}}break;case 6:if(Gn(u,l),mo(l),v&4){if(l.stateNode===null)throw Error(r(162));C=l.stateNode,A=l.memoizedProps;try{C.nodeValue=A}catch(Ne){Nt(l,l.return,Ne)}}break;case 3:if(Gn(u,l),mo(l),v&4&&m!==null&&m.memoizedState.isDehydrated)try{pu(u.containerInfo)}catch(Ne){Nt(l,l.return,Ne)}break;case 4:Gn(u,l),mo(l);break;case 13:Gn(u,l),mo(l),C=l.child,C.flags&8192&&(A=C.memoizedState!==null,C.stateNode.isHidden=A,!A||C.alternate!==null&&C.alternate.memoizedState!==null||(hy=Bt())),v&4&&JC(l);break;case 22:if(Ee=m!==null&&m.memoizedState!==null,l.mode&1?(Tr=(pe=Tr)||Ee,Gn(u,l),Tr=pe):Gn(u,l),mo(l),v&8192){if(pe=l.memoizedState!==null,(l.stateNode.isHidden=pe)&&!Ee&&(l.mode&1)!==0)for(Pe=l,Ee=l.child;Ee!==null;){for(we=Pe=Ee;Pe!==null;){switch(be=Pe,Ae=be.child,be.tag){case 0:case 11:case 14:case 15:Du(4,be,be.return);break;case 1:Wl(be,be.return);var Ie=be.stateNode;if(typeof Ie.componentWillUnmount=="function"){v=be,m=be.return;try{u=v,Ie.props=u.memoizedProps,Ie.state=u.memoizedState,Ie.componentWillUnmount()}catch(Ne){Nt(v,m,Ne)}}break;case 5:Wl(be,be.return);break;case 22:if(be.memoizedState!==null){tT(we);continue}}Ae!==null?(Ae.return=be,Pe=Ae):tT(we)}Ee=Ee.sibling}e:for(Ee=null,we=l;;){if(we.tag===5){if(Ee===null){Ee=we;try{C=we.stateNode,pe?(A=C.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none"):(X=we.stateNode,te=we.memoizedProps.style,j=te!=null&&te.hasOwnProperty("display")?te.display:null,X.style.display=wi("display",j))}catch(Ne){Nt(l,l.return,Ne)}}}else if(we.tag===6){if(Ee===null)try{we.stateNode.nodeValue=pe?"":we.memoizedProps}catch(Ne){Nt(l,l.return,Ne)}}else if((we.tag!==22&&we.tag!==23||we.memoizedState===null||we===l)&&we.child!==null){we.child.return=we,we=we.child;continue}if(we===l)break e;for(;we.sibling===null;){if(we.return===null||we.return===l)break e;Ee===we&&(Ee=null),we=we.return}Ee===we&&(Ee=null),we.sibling.return=we.return,we=we.sibling}}break;case 19:Gn(u,l),mo(l),v&4&&JC(l);break;case 21:break;default:Gn(u,l),mo(l)}}function mo(l){var u=l.flags;if(u&2){try{e:{for(var m=l.return;m!==null;){if(GC(m)){var v=m;break e}m=m.return}throw Error(r(160))}switch(v.tag){case 5:var C=v.stateNode;v.flags&32&&(so(C,""),v.flags&=-33);var A=YC(l);dy(l,A,C);break;case 3:case 4:var j=v.stateNode.containerInfo,X=YC(l);cy(l,X,j);break;default:throw Error(r(161))}}catch(te){Nt(l,l.return,te)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function t9(l,u,m){Pe=l,ZC(l)}function ZC(l,u,m){for(var v=(l.mode&1)!==0;Pe!==null;){var C=Pe,A=C.child;if(C.tag===22&&v){var j=C.memoizedState!==null||mf;if(!j){var X=C.alternate,te=X!==null&&X.memoizedState!==null||Tr;X=mf;var pe=Tr;if(mf=j,(Tr=te)&&!pe)for(Pe=C;Pe!==null;)j=Pe,te=j.child,j.tag===22&&j.memoizedState!==null?rT(C):te!==null?(te.return=j,Pe=te):rT(C);for(;A!==null;)Pe=A,ZC(A),A=A.sibling;Pe=C,mf=X,Tr=pe}eT(l)}else(C.subtreeFlags&8772)!==0&&A!==null?(A.return=C,Pe=A):eT(l)}}function eT(l){for(;Pe!==null;){var u=Pe;if((u.flags&8772)!==0){var m=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:Tr||gf(5,u);break;case 1:var v=u.stateNode;if(u.flags&4&&!Tr)if(m===null)v.componentDidMount();else{var C=u.elementType===u.type?m.memoizedProps:Vn(u.type,m.memoizedProps);v.componentDidUpdate(C,m.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var A=u.updateQueue;A!==null&&tC(u,A,v);break;case 3:var j=u.updateQueue;if(j!==null){if(m=null,u.child!==null)switch(u.child.tag){case 5:m=u.child.stateNode;break;case 1:m=u.child.stateNode}tC(u,j,m)}break;case 5:var X=u.stateNode;if(m===null&&u.flags&4){m=X;var te=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":te.autoFocus&&m.focus();break;case"img":te.src&&(m.src=te.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var pe=u.alternate;if(pe!==null){var Ee=pe.memoizedState;if(Ee!==null){var we=Ee.dehydrated;we!==null&&pu(we)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Tr||u.flags&512&&uy(u)}catch(be){Nt(u,u.return,be)}}if(u===l){Pe=null;break}if(m=u.sibling,m!==null){m.return=u.return,Pe=m;break}Pe=u.return}}function tT(l){for(;Pe!==null;){var u=Pe;if(u===l){Pe=null;break}var m=u.sibling;if(m!==null){m.return=u.return,Pe=m;break}Pe=u.return}}function rT(l){for(;Pe!==null;){var u=Pe;try{switch(u.tag){case 0:case 11:case 15:var m=u.return;try{gf(4,u)}catch(te){Nt(u,m,te)}break;case 1:var v=u.stateNode;if(typeof v.componentDidMount=="function"){var C=u.return;try{v.componentDidMount()}catch(te){Nt(u,C,te)}}var A=u.return;try{uy(u)}catch(te){Nt(u,A,te)}break;case 5:var j=u.return;try{uy(u)}catch(te){Nt(u,j,te)}}}catch(te){Nt(u,u.return,te)}if(u===l){Pe=null;break}var X=u.sibling;if(X!==null){X.return=u.return,Pe=X;break}Pe=u.return}}var r9=Math.ceil,yf=O.ReactCurrentDispatcher,fy=O.ReactCurrentOwner,_n=O.ReactCurrentBatchConfig,Qe=0,nr=null,Ut=null,fr=0,an=0,Gl=Ii(0),Yt=0,Mu=null,ka=0,bf=0,py=0,Lu=null,Kr=null,hy=0,Yl=1/0,Yo=null,vf=!1,my=null,Bi=null,Ef=!1,Fi=null,wf=0,Bu=0,gy=null,Sf=-1,xf=0;function Dr(){return(Qe&6)!==0?Bt():Sf!==-1?Sf:Sf=Bt()}function ji(l){return(l.mode&1)===0?1:(Qe&2)!==0&&fr!==0?fr&-fr:FF.transition!==null?(xf===0&&(xf=Yx()),xf):(l=pt,l!==0||(l=window.event,l=l===void 0?16:o2(l.type)),l)}function Yn(l,u,m,v){if(50<Bu)throw Bu=0,gy=null,Error(r(185));su(l,m,v),((Qe&2)===0||l!==nr)&&(l===nr&&((Qe&2)===0&&(bf|=m),Yt===4&&qi(l,fr)),Vr(l,v),m===1&&Qe===0&&(u.mode&1)===0&&(Yl=Bt()+500,Xd&&ki()))}function Vr(l,u){var m=l.callbackNode;FB(l,u);var v=Od(l,l===nr?fr:0);if(v===0)m!==null&&Vx(m),l.callbackNode=null,l.callbackPriority=0;else if(u=v&-v,l.callbackPriority!==u){if(m!=null&&Vx(m),u===1)l.tag===0?BF(oT.bind(null,l)):U2(oT.bind(null,l)),kF(function(){(Qe&6)===0&&ki()}),m=null;else{switch(Xx(v)){case 1:m=Ym;break;case 4:m=Wx;break;case 16:m=Rd;break;case 536870912:m=Gx;break;default:m=Rd}m=fT(m,nT.bind(null,l))}l.callbackPriority=u,l.callbackNode=m}}function nT(l,u){if(Sf=-1,xf=0,(Qe&6)!==0)throw Error(r(327));var m=l.callbackNode;if(Xl()&&l.callbackNode!==m)return null;var v=Od(l,l===nr?fr:0);if(v===0)return null;if((v&30)!==0||(v&l.expiredLanes)!==0||u)u=Cf(l,v);else{u=v;var C=Qe;Qe|=2;var A=aT();(nr!==l||fr!==u)&&(Yo=null,Yl=Bt()+500,Ma(l,u));do try{i9();break}catch(X){iT(l,X)}while(!0);kg(),yf.current=A,Qe=C,Ut!==null?u=0:(nr=null,fr=0,u=Yt)}if(u!==0){if(u===2&&(C=Xm(l),C!==0&&(v=C,u=yy(l,C))),u===1)throw m=Mu,Ma(l,0),qi(l,v),Vr(l,Bt()),m;if(u===6)qi(l,v);else{if(C=l.current.alternate,(v&30)===0&&!n9(C)&&(u=Cf(l,v),u===2&&(A=Xm(l),A!==0&&(v=A,u=yy(l,A))),u===1))throw m=Mu,Ma(l,0),qi(l,v),Vr(l,Bt()),m;switch(l.finishedWork=C,l.finishedLanes=v,u){case 0:case 1:throw Error(r(345));case 2:La(l,Kr,Yo);break;case 3:if(qi(l,v),(v&130023424)===v&&(u=hy+500-Bt(),10<u)){if(Od(l,0)!==0)break;if(C=l.suspendedLanes,(C&v)!==v){Dr(),l.pingedLanes|=l.suspendedLanes&C;break}l.timeoutHandle=xg(La.bind(null,l,Kr,Yo),u);break}La(l,Kr,Yo);break;case 4:if(qi(l,v),(v&4194240)===v)break;for(u=l.eventTimes,C=-1;0<v;){var j=31-Un(v);A=1<<j,j=u[j],j>C&&(C=j),v&=~A}if(v=C,v=Bt()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*r9(v/1960))-v,10<v){l.timeoutHandle=xg(La.bind(null,l,Kr,Yo),v);break}La(l,Kr,Yo);break;case 5:La(l,Kr,Yo);break;default:throw Error(r(329))}}}return Vr(l,Bt()),l.callbackNode===m?nT.bind(null,l):null}function yy(l,u){var m=Lu;return l.current.memoizedState.isDehydrated&&(Ma(l,u).flags|=256),l=Cf(l,u),l!==2&&(u=Kr,Kr=m,u!==null&&by(u)),l}function by(l){Kr===null?Kr=l:Kr.push.apply(Kr,l)}function n9(l){for(var u=l;;){if(u.flags&16384){var m=u.updateQueue;if(m!==null&&(m=m.stores,m!==null))for(var v=0;v<m.length;v++){var C=m[v],A=C.getSnapshot;C=C.value;try{if(!zn(A(),C))return!1}catch{return!1}}}if(m=u.child,u.subtreeFlags&16384&&m!==null)m.return=u,u=m;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function qi(l,u){for(u&=~py,u&=~bf,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var m=31-Un(u),v=1<<m;l[m]=-1,u&=~v}}function oT(l){if((Qe&6)!==0)throw Error(r(327));Xl();var u=Od(l,0);if((u&1)===0)return Vr(l,Bt()),null;var m=Cf(l,u);if(l.tag!==0&&m===2){var v=Xm(l);v!==0&&(u=v,m=yy(l,v))}if(m===1)throw m=Mu,Ma(l,0),qi(l,u),Vr(l,Bt()),m;if(m===6)throw Error(r(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,La(l,Kr,Yo),Vr(l,Bt()),null}function vy(l,u){var m=Qe;Qe|=1;try{return l(u)}finally{Qe=m,Qe===0&&(Yl=Bt()+500,Xd&&ki())}}function Da(l){Fi!==null&&Fi.tag===0&&(Qe&6)===0&&Xl();var u=Qe;Qe|=1;var m=_n.transition,v=pt;try{if(_n.transition=null,pt=1,l)return l()}finally{pt=v,_n.transition=m,Qe=u,(Qe&6)===0&&ki()}}function Ey(){an=Gl.current,St(Gl)}function Ma(l,u){l.finishedWork=null,l.finishedLanes=0;var m=l.timeoutHandle;if(m!==-1&&(l.timeoutHandle=-1,NF(m)),Ut!==null)for(m=Ut.return;m!==null;){var v=m;switch(Pg(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&Gd();break;case 3:Kl(),St(Hr),St(Sr),Hg();break;case 5:jg(v);break;case 4:Kl();break;case 13:St(Pt);break;case 19:St(Pt);break;case 10:Dg(v.type._context);break;case 22:case 23:Ey()}m=m.return}if(nr=l,Ut=l=Hi(l.current,null),fr=an=u,Yt=0,Mu=null,py=bf=ka=0,Kr=Lu=null,Oa!==null){for(u=0;u<Oa.length;u++)if(m=Oa[u],v=m.interleaved,v!==null){m.interleaved=null;var C=v.next,A=m.pending;if(A!==null){var j=A.next;A.next=C,v.next=j}m.pending=v}Oa=null}return l}function iT(l,u){do{var m=Ut;try{if(kg(),lf.current=df,sf){for(var v=$t.memoizedState;v!==null;){var C=v.queue;C!==null&&(C.pending=null),v=v.next}sf=!1}if(Na=0,rr=Gt=$t=null,$u=!1,Ou=0,fy.current=null,m===null||m.return===null){Yt=1,Mu=u,Ut=null;break}e:{var A=l,j=m.return,X=m,te=u;if(u=fr,X.flags|=32768,te!==null&&typeof te=="object"&&typeof te.then=="function"){var pe=te,Ee=X,we=Ee.tag;if((Ee.mode&1)===0&&(we===0||we===11||we===15)){var be=Ee.alternate;be?(Ee.updateQueue=be.updateQueue,Ee.memoizedState=be.memoizedState,Ee.lanes=be.lanes):(Ee.updateQueue=null,Ee.memoizedState=null)}var Ae=$C(j);if(Ae!==null){Ae.flags&=-257,OC(Ae,j,X,A,u),Ae.mode&1&&PC(A,pe,u),u=Ae,te=pe;var Ie=u.updateQueue;if(Ie===null){var Ne=new Set;Ne.add(te),u.updateQueue=Ne}else Ie.add(te);break e}else{if((u&1)===0){PC(A,pe,u),wy();break e}te=Error(r(426))}}else if(Ct&&X.mode&1){var Ft=$C(j);if(Ft!==null){(Ft.flags&65536)===0&&(Ft.flags|=256),OC(Ft,j,X,A,u),Ig(Vl(te,X));break e}}A=te=Vl(te,X),Yt!==4&&(Yt=2),Lu===null?Lu=[A]:Lu.push(A),A=j;do{switch(A.tag){case 3:A.flags|=65536,u&=-u,A.lanes|=u;var le=RC(A,te,u);eC(A,le);break e;case 1:X=te;var ie=A.type,ce=A.stateNode;if((A.flags&128)===0&&(typeof ie.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(Bi===null||!Bi.has(ce)))){A.flags|=65536,u&=-u,A.lanes|=u;var Ce=AC(A,X,u);eC(A,Ce);break e}}A=A.return}while(A!==null)}sT(m)}catch(De){u=De,Ut===m&&m!==null&&(Ut=m=m.return);continue}break}while(!0)}function aT(){var l=yf.current;return yf.current=df,l===null?df:l}function wy(){(Yt===0||Yt===3||Yt===2)&&(Yt=4),nr===null||(ka&268435455)===0&&(bf&268435455)===0||qi(nr,fr)}function Cf(l,u){var m=Qe;Qe|=2;var v=aT();(nr!==l||fr!==u)&&(Yo=null,Ma(l,u));do try{o9();break}catch(C){iT(l,C)}while(!0);if(kg(),Qe=m,yf.current=v,Ut!==null)throw Error(r(261));return nr=null,fr=0,Yt}function o9(){for(;Ut!==null;)lT(Ut)}function i9(){for(;Ut!==null&&!$B();)lT(Ut)}function lT(l){var u=dT(l.alternate,l,an);l.memoizedProps=l.pendingProps,u===null?sT(l):Ut=u,fy.current=null}function sT(l){var u=l;do{var m=u.alternate;if(l=u.return,(u.flags&32768)===0){if(m=JF(m,u,an),m!==null){Ut=m;return}}else{if(m=QF(m,u),m!==null){m.flags&=32767,Ut=m;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Yt=6,Ut=null;return}}if(u=u.sibling,u!==null){Ut=u;return}Ut=u=l}while(u!==null);Yt===0&&(Yt=5)}function La(l,u,m){var v=pt,C=_n.transition;try{_n.transition=null,pt=1,a9(l,u,m,v)}finally{_n.transition=C,pt=v}return null}function a9(l,u,m,v){do Xl();while(Fi!==null);if((Qe&6)!==0)throw Error(r(327));m=l.finishedWork;var C=l.finishedLanes;if(m===null)return null;if(l.finishedWork=null,l.finishedLanes=0,m===l.current)throw Error(r(177));l.callbackNode=null,l.callbackPriority=0;var A=m.lanes|m.childLanes;if(jB(l,A),l===nr&&(Ut=nr=null,fr=0),(m.subtreeFlags&2064)===0&&(m.flags&2064)===0||Ef||(Ef=!0,fT(Rd,function(){return Xl(),null})),A=(m.flags&15990)!==0,(m.subtreeFlags&15990)!==0||A){A=_n.transition,_n.transition=null;var j=pt;pt=1;var X=Qe;Qe|=4,fy.current=null,e9(l,m),QC(m,l),_F(wg),kd=!!Eg,wg=Eg=null,l.current=m,t9(m),OB(),Qe=X,pt=j,_n.transition=A}else l.current=m;if(Ef&&(Ef=!1,Fi=l,wf=C),A=l.pendingLanes,A===0&&(Bi=null),kB(m.stateNode),Vr(l,Bt()),u!==null)for(v=l.onRecoverableError,m=0;m<u.length;m++)C=u[m],v(C.value,{componentStack:C.stack,digest:C.digest});if(vf)throw vf=!1,l=my,my=null,l;return(wf&1)!==0&&l.tag!==0&&Xl(),A=l.pendingLanes,(A&1)!==0?l===gy?Bu++:(Bu=0,gy=l):Bu=0,ki(),null}function Xl(){if(Fi!==null){var l=Xx(wf),u=_n.transition,m=pt;try{if(_n.transition=null,pt=16>l?16:l,Fi===null)var v=!1;else{if(l=Fi,Fi=null,wf=0,(Qe&6)!==0)throw Error(r(331));var C=Qe;for(Qe|=4,Pe=l.current;Pe!==null;){var A=Pe,j=A.child;if((Pe.flags&16)!==0){var X=A.deletions;if(X!==null){for(var te=0;te<X.length;te++){var pe=X[te];for(Pe=pe;Pe!==null;){var Ee=Pe;switch(Ee.tag){case 0:case 11:case 15:Du(8,Ee,A)}var we=Ee.child;if(we!==null)we.return=Ee,Pe=we;else for(;Pe!==null;){Ee=Pe;var be=Ee.sibling,Ae=Ee.return;if(WC(Ee),Ee===pe){Pe=null;break}if(be!==null){be.return=Ae,Pe=be;break}Pe=Ae}}}var Ie=A.alternate;if(Ie!==null){var Ne=Ie.child;if(Ne!==null){Ie.child=null;do{var Ft=Ne.sibling;Ne.sibling=null,Ne=Ft}while(Ne!==null)}}Pe=A}}if((A.subtreeFlags&2064)!==0&&j!==null)j.return=A,Pe=j;else e:for(;Pe!==null;){if(A=Pe,(A.flags&2048)!==0)switch(A.tag){case 0:case 11:case 15:Du(9,A,A.return)}var le=A.sibling;if(le!==null){le.return=A.return,Pe=le;break e}Pe=A.return}}var ie=l.current;for(Pe=ie;Pe!==null;){j=Pe;var ce=j.child;if((j.subtreeFlags&2064)!==0&&ce!==null)ce.return=j,Pe=ce;else e:for(j=ie;Pe!==null;){if(X=Pe,(X.flags&2048)!==0)try{switch(X.tag){case 0:case 11:case 15:gf(9,X)}}catch(De){Nt(X,X.return,De)}if(X===j){Pe=null;break e}var Ce=X.sibling;if(Ce!==null){Ce.return=X.return,Pe=Ce;break e}Pe=X.return}}if(Qe=C,ki(),co&&typeof co.onPostCommitFiberRoot=="function")try{co.onPostCommitFiberRoot(Ad,l)}catch{}v=!0}return v}finally{pt=m,_n.transition=u}}return!1}function uT(l,u,m){u=Vl(m,u),u=RC(l,u,1),l=Mi(l,u,1),u=Dr(),l!==null&&(su(l,1,u),Vr(l,u))}function Nt(l,u,m){if(l.tag===3)uT(l,l,m);else for(;u!==null;){if(u.tag===3){uT(u,l,m);break}else if(u.tag===1){var v=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Bi===null||!Bi.has(v))){l=Vl(m,l),l=AC(u,l,1),u=Mi(u,l,1),l=Dr(),u!==null&&(su(u,1,l),Vr(u,l));break}}u=u.return}}function l9(l,u,m){var v=l.pingCache;v!==null&&v.delete(u),u=Dr(),l.pingedLanes|=l.suspendedLanes&m,nr===l&&(fr&m)===m&&(Yt===4||Yt===3&&(fr&130023424)===fr&&500>Bt()-hy?Ma(l,0):py|=m),Vr(l,u)}function cT(l,u){u===0&&((l.mode&1)===0?u=1:(u=$d,$d<<=1,($d&130023424)===0&&($d=4194304)));var m=Dr();l=Vo(l,u),l!==null&&(su(l,u,m),Vr(l,m))}function s9(l){var u=l.memoizedState,m=0;u!==null&&(m=u.retryLane),cT(l,m)}function u9(l,u){var m=0;switch(l.tag){case 13:var v=l.stateNode,C=l.memoizedState;C!==null&&(m=C.retryLane);break;case 19:v=l.stateNode;break;default:throw Error(r(314))}v!==null&&v.delete(u),cT(l,m)}var dT;dT=function(l,u,m){if(l!==null)if(l.memoizedProps!==u.pendingProps||Hr.current)zr=!0;else{if((l.lanes&m)===0&&(u.flags&128)===0)return zr=!1,XF(l,u,m);zr=(l.flags&131072)!==0}else zr=!1,Ct&&(u.flags&1048576)!==0&&z2(u,Qd,u.index);switch(u.lanes=0,u.tag){case 2:var v=u.type;hf(l,u),l=u.pendingProps;var C=Bl(u,Sr.current);zl(u,m),C=Kg(null,u,v,l,C,m);var A=Vg();return u.flags|=1,typeof C=="object"&&C!==null&&typeof C.render=="function"&&C.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Ur(v)?(A=!0,Yd(u)):A=!1,u.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,Bg(u),C.updater=ff,u.stateNode=C,C._reactInternals=u,Qg(u,v,l,m),u=ry(null,u,v,!0,A,m)):(u.tag=0,Ct&&A&&Ag(u),kr(null,u,C,m),u=u.child),u;case 16:v=u.elementType;e:{switch(hf(l,u),l=u.pendingProps,C=v._init,v=C(v._payload),u.type=v,C=u.tag=d9(v),l=Vn(v,l),C){case 0:u=ty(null,u,v,l,m);break e;case 1:u=LC(null,u,v,l,m);break e;case 11:u=IC(null,u,v,l,m);break e;case 14:u=NC(null,u,v,Vn(v.type,l),m);break e}throw Error(r(306,v,""))}return u;case 0:return v=u.type,C=u.pendingProps,C=u.elementType===v?C:Vn(v,C),ty(l,u,v,C,m);case 1:return v=u.type,C=u.pendingProps,C=u.elementType===v?C:Vn(v,C),LC(l,u,v,C,m);case 3:e:{if(BC(u),l===null)throw Error(r(387));v=u.pendingProps,A=u.memoizedState,C=A.element,Z2(l,u),of(u,v,null,m);var j=u.memoizedState;if(v=j.element,A.isDehydrated)if(A={element:v,isDehydrated:!1,cache:j.cache,pendingSuspenseBoundaries:j.pendingSuspenseBoundaries,transitions:j.transitions},u.updateQueue.baseState=A,u.memoizedState=A,u.flags&256){C=Vl(Error(r(423)),u),u=FC(l,u,v,m,C);break e}else if(v!==C){C=Vl(Error(r(424)),u),u=FC(l,u,v,m,C);break e}else for(on=Oi(u.stateNode.containerInfo.firstChild),nn=u,Ct=!0,Kn=null,m=J2(u,null,v,m),u.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(ql(),v===C){u=Go(l,u,m);break e}kr(l,u,v,m)}u=u.child}return u;case 5:return rC(u),l===null&&Og(u),v=u.type,C=u.pendingProps,A=l!==null?l.memoizedProps:null,j=C.children,Sg(v,C)?j=null:A!==null&&Sg(v,A)&&(u.flags|=32),MC(l,u),kr(l,u,j,m),u.child;case 6:return l===null&&Og(u),null;case 13:return jC(l,u,m);case 4:return Fg(u,u.stateNode.containerInfo),v=u.pendingProps,l===null?u.child=Hl(u,null,v,m):kr(l,u,v,m),u.child;case 11:return v=u.type,C=u.pendingProps,C=u.elementType===v?C:Vn(v,C),IC(l,u,v,C,m);case 7:return kr(l,u,u.pendingProps,m),u.child;case 8:return kr(l,u,u.pendingProps.children,m),u.child;case 12:return kr(l,u,u.pendingProps.children,m),u.child;case 10:e:{if(v=u.type._context,C=u.pendingProps,A=u.memoizedProps,j=C.value,vt(tf,v._currentValue),v._currentValue=j,A!==null)if(zn(A.value,j)){if(A.children===C.children&&!Hr.current){u=Go(l,u,m);break e}}else for(A=u.child,A!==null&&(A.return=u);A!==null;){var X=A.dependencies;if(X!==null){j=A.child;for(var te=X.firstContext;te!==null;){if(te.context===v){if(A.tag===1){te=Wo(-1,m&-m),te.tag=2;var pe=A.updateQueue;if(pe!==null){pe=pe.shared;var Ee=pe.pending;Ee===null?te.next=te:(te.next=Ee.next,Ee.next=te),pe.pending=te}}A.lanes|=m,te=A.alternate,te!==null&&(te.lanes|=m),Mg(A.return,m,u),X.lanes|=m;break}te=te.next}}else if(A.tag===10)j=A.type===u.type?null:A.child;else if(A.tag===18){if(j=A.return,j===null)throw Error(r(341));j.lanes|=m,X=j.alternate,X!==null&&(X.lanes|=m),Mg(j,m,u),j=A.sibling}else j=A.child;if(j!==null)j.return=A;else for(j=A;j!==null;){if(j===u){j=null;break}if(A=j.sibling,A!==null){A.return=j.return,j=A;break}j=j.return}A=j}kr(l,u,C.children,m),u=u.child}return u;case 9:return C=u.type,v=u.pendingProps.children,zl(u,m),C=Cn(C),v=v(C),u.flags|=1,kr(l,u,v,m),u.child;case 14:return v=u.type,C=Vn(v,u.pendingProps),C=Vn(v.type,C),NC(l,u,v,C,m);case 15:return kC(l,u,u.type,u.pendingProps,m);case 17:return v=u.type,C=u.pendingProps,C=u.elementType===v?C:Vn(v,C),hf(l,u),u.tag=1,Ur(v)?(l=!0,Yd(u)):l=!1,zl(u,m),TC(u,v,C),Qg(u,v,C,m),ry(null,u,v,!0,l,m);case 19:return HC(l,u,m);case 22:return DC(l,u,m)}throw Error(r(156,u.tag))};function fT(l,u){return au(l,u)}function c9(l,u,m,v){this.tag=l,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(l,u,m,v){return new c9(l,u,m,v)}function Sy(l){return l=l.prototype,!(!l||!l.isReactComponent)}function d9(l){if(typeof l=="function")return Sy(l)?1:0;if(l!=null){if(l=l.$$typeof,l===K)return 11;if(l===M)return 14}return 2}function Hi(l,u){var m=l.alternate;return m===null?(m=Rn(l.tag,u,l.key,l.mode),m.elementType=l.elementType,m.type=l.type,m.stateNode=l.stateNode,m.alternate=l,l.alternate=m):(m.pendingProps=u,m.type=l.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=l.flags&14680064,m.childLanes=l.childLanes,m.lanes=l.lanes,m.child=l.child,m.memoizedProps=l.memoizedProps,m.memoizedState=l.memoizedState,m.updateQueue=l.updateQueue,u=l.dependencies,m.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},m.sibling=l.sibling,m.index=l.index,m.ref=l.ref,m}function Tf(l,u,m,v,C,A){var j=2;if(v=l,typeof l=="function")Sy(l)&&(j=1);else if(typeof l=="string")j=5;else e:switch(l){case P:return Ba(m.children,C,A,u);case _:j=8,C|=8;break;case N:return l=Rn(12,m,u,C|2),l.elementType=N,l.lanes=A,l;case Y:return l=Rn(13,m,u,C),l.elementType=Y,l.lanes=A,l;case $:return l=Rn(19,m,u,C),l.elementType=$,l.lanes=A,l;case B:return _f(m,C,A,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case V:j=10;break e;case L:j=9;break e;case K:j=11;break e;case M:j=14;break e;case I:j=16,v=null;break e}throw Error(r(130,l==null?l:typeof l,""))}return u=Rn(j,m,u,C),u.elementType=l,u.type=v,u.lanes=A,u}function Ba(l,u,m,v){return l=Rn(7,l,v,u),l.lanes=m,l}function _f(l,u,m,v){return l=Rn(22,l,v,u),l.elementType=B,l.lanes=m,l.stateNode={isHidden:!1},l}function xy(l,u,m){return l=Rn(6,l,null,u),l.lanes=m,l}function Cy(l,u,m){return u=Rn(4,l.children!==null?l.children:[],l.key,u),u.lanes=m,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function f9(l,u,m,v,C){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jm(0),this.expirationTimes=Jm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jm(0),this.identifierPrefix=v,this.onRecoverableError=C,this.mutableSourceEagerHydrationData=null}function Ty(l,u,m,v,C,A,j,X,te){return l=new f9(l,u,m,X,te),u===1?(u=1,A===!0&&(u|=8)):u=0,A=Rn(3,null,null,u),l.current=A,A.stateNode=l,A.memoizedState={element:v,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bg(A),l}function p9(l,u,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:v==null?null:""+v,children:l,containerInfo:u,implementation:m}}function pT(l){if(!l)return Ni;l=l._reactInternals;e:{if(uo(l)!==l||l.tag!==1)throw Error(r(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Ur(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(r(171))}if(l.tag===1){var m=l.type;if(Ur(m))return q2(l,m,u)}return u}function hT(l,u,m,v,C,A,j,X,te){return l=Ty(m,v,!0,l,C,A,j,X,te),l.context=pT(null),m=l.current,v=Dr(),C=ji(m),A=Wo(v,C),A.callback=u??null,Mi(m,A,C),l.current.lanes=C,su(l,C,v),Vr(l,v),l}function Rf(l,u,m,v){var C=u.current,A=Dr(),j=ji(C);return m=pT(m),u.context===null?u.context=m:u.pendingContext=m,u=Wo(A,j),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=Mi(C,u,j),l!==null&&(Yn(l,C,j,A),nf(l,C,j)),j}function Af(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function mT(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var m=l.retryLane;l.retryLane=m!==0&&m<u?m:u}}function _y(l,u){mT(l,u),(l=l.alternate)&&mT(l,u)}function h9(){return null}var gT=typeof reportError=="function"?reportError:function(l){console.error(l)};function Ry(l){this._internalRoot=l}Pf.prototype.render=Ry.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(r(409));Rf(l,u,null,null)},Pf.prototype.unmount=Ry.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;Da(function(){Rf(null,l,null,null)}),u[Ho]=null}};function Pf(l){this._internalRoot=l}Pf.prototype.unstable_scheduleHydration=function(l){if(l){var u=Zx();l={blockedOn:null,target:l,priority:u};for(var m=0;m<Ai.length&&u!==0&&u<Ai[m].priority;m++);Ai.splice(m,0,l),m===0&&r2(l)}};function Ay(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function $f(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function yT(){}function m9(l,u,m,v,C){if(C){if(typeof v=="function"){var A=v;v=function(){var pe=Af(j);A.call(pe)}}var j=hT(u,v,l,0,null,!1,!1,"",yT);return l._reactRootContainer=j,l[Ho]=j.current,Su(l.nodeType===8?l.parentNode:l),Da(),j}for(;C=l.lastChild;)l.removeChild(C);if(typeof v=="function"){var X=v;v=function(){var pe=Af(te);X.call(pe)}}var te=Ty(l,0,!1,null,null,!1,!1,"",yT);return l._reactRootContainer=te,l[Ho]=te.current,Su(l.nodeType===8?l.parentNode:l),Da(function(){Rf(u,te,m,v)}),te}function Of(l,u,m,v,C){var A=m._reactRootContainer;if(A){var j=A;if(typeof C=="function"){var X=C;C=function(){var te=Af(j);X.call(te)}}Rf(u,j,l,C)}else j=m9(m,u,l,C,v);return Af(j)}Jx=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var m=lu(u.pendingLanes);m!==0&&(Qm(u,m|1),Vr(u,Bt()),(Qe&6)===0&&(Yl=Bt()+500,ki()))}break;case 13:Da(function(){var v=Vo(l,1);if(v!==null){var C=Dr();Yn(v,l,1,C)}}),_y(l,1)}},Zm=function(l){if(l.tag===13){var u=Vo(l,134217728);if(u!==null){var m=Dr();Yn(u,l,134217728,m)}_y(l,134217728)}},Qx=function(l){if(l.tag===13){var u=ji(l),m=Vo(l,u);if(m!==null){var v=Dr();Yn(m,l,u,v)}_y(l,u)}},Zx=function(){return pt},e2=function(l,u){var m=pt;try{return pt=l,u()}finally{pt=m}},Fe=function(l,u,m){switch(u){case"input":if(Te(l,m),u=m.name,m.type==="radio"&&u!=null){for(m=l;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<m.length;u++){var v=m[u];if(v!==l&&v.form===l.form){var C=Wd(v);if(!C)throw Error(r(90));he(v),Te(v,C)}}}break;case"textarea":vr(l,m);break;case"select":u=m.value,u!=null&&bt(l,!!m.multiple,u,!1)}},Hn=vy,wr=Da;var g9={usingClientEntryPoint:!1,Events:[Tu,Ml,Wd,en,Si,vy]},Fu={findFiberByHostInstance:Ra,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y9={bundleType:Fu.bundleType,version:Fu.version,rendererPackageName:Fu.rendererPackageName,rendererConfig:Fu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=_a(l),l===null?null:l.stateNode},findFiberByHostInstance:Fu.findFiberByHostInstance||h9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var If=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!If.isDisabled&&If.supportsFiber)try{Ad=If.inject(y9),co=If}catch{}}return Wr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g9,Wr.createPortal=function(l,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ay(u))throw Error(r(200));return p9(l,u,null,m)},Wr.createRoot=function(l,u){if(!Ay(l))throw Error(r(299));var m=!1,v="",C=gT;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onRecoverableError!==void 0&&(C=u.onRecoverableError)),u=Ty(l,1,!1,null,null,m,!1,v,C),l[Ho]=u.current,Su(l.nodeType===8?l.parentNode:l),new Ry(u)},Wr.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=_a(u),l=l===null?null:l.stateNode,l},Wr.flushSync=function(l){return Da(l)},Wr.hydrate=function(l,u,m){if(!$f(u))throw Error(r(200));return Of(null,l,u,!0,m)},Wr.hydrateRoot=function(l,u,m){if(!Ay(l))throw Error(r(405));var v=m!=null&&m.hydratedSources||null,C=!1,A="",j=gT;if(m!=null&&(m.unstable_strictMode===!0&&(C=!0),m.identifierPrefix!==void 0&&(A=m.identifierPrefix),m.onRecoverableError!==void 0&&(j=m.onRecoverableError)),u=hT(u,null,l,1,m??null,C,!1,A,j),l[Ho]=u.current,Su(l),v)for(l=0;l<v.length;l++)m=v[l],C=m._getVersion,C=C(m._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[m,C]:u.mutableSourceEagerHydrationData.push(m,C);return new Pf(u)},Wr.render=function(l,u,m){if(!$f(u))throw Error(r(200));return Of(null,l,u,!1,m)},Wr.unmountComponentAtNode=function(l){if(!$f(l))throw Error(r(40));return l._reactRootContainer?(Da(function(){Of(null,null,l,!1,function(){l._reactRootContainer=null,l[Ho]=null})}),!0):!1},Wr.unstable_batchedUpdates=vy,Wr.unstable_renderSubtreeIntoContainer=function(l,u,m,v){if(!$f(m))throw Error(r(200));if(l==null||l._reactInternals===void 0)throw Error(r(38));return Of(l,u,m,!1,v)},Wr.version="18.3.1-next-f1338f8080-20240426",Wr}var _T;function TI(){if(_T)return Oy.exports;_T=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Oy.exports=P9(),Oy.exports}var RT;function $9(){if(RT)return Nf;RT=1;var e=TI();return Nf.createRoot=e.createRoot,Nf.hydrateRoot=e.hydrateRoot,Nf}var O9=$9(),_I=Symbol.for("immer-nothing"),AT=Symbol.for("immer-draftable"),mn=Symbol.for("immer-state");function Zn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ms=Object.getPrototypeOf;function gs(e){return!!e&&!!e[mn]}function ll(e){var t;return e?RI(e)||Array.isArray(e)||!!e[AT]||!!((t=e.constructor)!=null&&t[AT])||Oh(e)||Ih(e):!1}var I9=Object.prototype.constructor.toString();function RI(e){if(!e||typeof e!="object")return!1;const t=ms(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===I9}function Dp(e,t){$h(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function $h(e){const t=e[mn];return t?t.type_:Array.isArray(e)?1:Oh(e)?2:Ih(e)?3:0}function Uv(e,t){return $h(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function AI(e,t,r){const n=$h(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function N9(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Oh(e){return e instanceof Map}function Ih(e){return e instanceof Set}function Va(e){return e.copy_||e.base_}function zv(e,t){if(Oh(e))return new Map(e);if(Ih(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=RI(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[mn];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(ms(e),n)}else{const n=ms(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function vc(e,t=!1){return Nh(e)||gs(e)||!ll(e)||($h(e)>1&&(e.set=e.add=e.clear=e.delete=k9),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>vc(n,!0))),e}function k9(){Zn(2)}function Nh(e){return Object.isFrozen(e)}var D9={};function sl(e){const t=D9[e];return t||Zn(0,e),t}var Ec;function PI(){return Ec}function M9(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function PT(e,t){t&&(sl("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Kv(e){Vv(e),e.drafts_.forEach(L9),e.drafts_=null}function Vv(e){e===Ec&&(Ec=e.parent_)}function $T(e){return Ec=M9(Ec,e)}function L9(e){const t=e[mn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function OT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[mn].modified_&&(Kv(t),Zn(4)),ll(e)&&(e=Mp(t,e),t.parent_||Lp(t,e)),t.patches_&&sl("Patches").generateReplacementPatches_(r[mn].base_,e,t.patches_,t.inversePatches_)):e=Mp(t,r,[]),Kv(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==_I?e:void 0}function Mp(e,t,r){if(Nh(t))return t;const n=t[mn];if(!n)return Dp(t,(o,i)=>IT(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Lp(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let i=o,a=!1;n.type_===3&&(i=new Set(o),o.clear(),a=!0),Dp(i,(s,c)=>IT(e,n,o,s,c,r,a)),Lp(e,o,!1),r&&e.patches_&&sl("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function IT(e,t,r,n,o,i,a){if(gs(o)){const s=i&&t&&t.type_!==3&&!Uv(t.assigned_,n)?i.concat(n):void 0,c=Mp(e,o,s);if(AI(r,n,c),gs(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(ll(o)&&!Nh(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Mp(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Lp(e,o)}}function Lp(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vc(t,r)}function B9(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:PI(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=QE;r&&(o=[n],i=wc);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var QE={get(e,t){if(t===mn)return e;const r=Va(e);if(!Uv(r,t))return F9(e,r,t);const n=r[t];return e.finalized_||!ll(n)?n:n===ky(e.base_,t)?(Dy(e),e.copy_[t]=Gv(n,e)):n},has(e,t){return t in Va(e)},ownKeys(e){return Reflect.ownKeys(Va(e))},set(e,t,r){const n=$I(Va(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=ky(Va(e),t),i=o==null?void 0:o[mn];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(N9(r,o)&&(r!==void 0||Uv(e.base_,t)))return!0;Dy(e),Wv(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ky(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Dy(e),Wv(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Va(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Zn(11)},getPrototypeOf(e){return ms(e.base_)},setPrototypeOf(){Zn(12)}},wc={};Dp(QE,(e,t)=>{wc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});wc.deleteProperty=function(e,t){return wc.set.call(this,e,t,void 0)};wc.set=function(e,t,r){return QE.set.call(this,e[0],t,r,e[0])};function ky(e,t){const r=e[mn];return(r?Va(r):e)[t]}function F9(e,t,r){var o;const n=$I(t,r);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function $I(e,t){if(!(t in e))return;let r=ms(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ms(r)}}function Wv(e){e.modified_||(e.modified_=!0,e.parent_&&Wv(e.parent_))}function Dy(e){e.copy_||(e.copy_=zv(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var j9=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const a=this;return function(c=i,...d){return a.produce(c,f=>r.call(this,f,...d))}}typeof r!="function"&&Zn(6),n!==void 0&&typeof n!="function"&&Zn(7);let o;if(ll(t)){const i=$T(this),a=Gv(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Kv(i):Vv(i)}return PT(i,n),OT(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===_I&&(o=void 0),this.autoFreeze_&&vc(o,!0),n){const i=[],a=[];sl("Patches").generateReplacementPatches_(t,o,i,a),n(i,a)}return o}else Zn(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ll(e)||Zn(8),gs(e)&&(e=q9(e));const t=$T(this),r=Gv(e,void 0);return r[mn].isManual_=!0,Vv(t),r}finishDraft(e,t){const r=e&&e[mn];(!r||!r.isManual_)&&Zn(9);const{scope_:n}=r;return PT(n,t),OT(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=sl("Patches").applyPatches_;return gs(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Gv(e,t){const r=Oh(e)?sl("MapSet").proxyMap_(e,t):Ih(e)?sl("MapSet").proxySet_(e,t):B9(e,t);return(t?t.scope_:PI()).drafts_.push(r),r}function q9(e){return gs(e)||Zn(10,e),OI(e)}function OI(e){if(!ll(e)||Nh(e))return e;const t=e[mn];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=zv(e,t.scope_.immer_.useStrictShallowCopy_)}else r=zv(e,!0);return Dp(r,(n,o)=>{AI(r,n,OI(o))}),t&&(t.finalized_=!1),r}var gn=new j9,H9=gn.produce;gn.produceWithPatches.bind(gn);gn.setAutoFreeze.bind(gn);gn.setUseStrictShallowCopy.bind(gn);gn.applyPatches.bind(gn);gn.createDraft.bind(gn);gn.finishDraft.bind(gn);function U9(e){var t=x.useState(function(){return vc(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],x.useCallback(function(n){r(typeof n=="function"?H9(n):vc(n))},[])]}function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sr.apply(null,arguments)}function z9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Sc(e,t)}function K9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sc(e,t)}function Yv(e){return Yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yv(e)}function V9(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function II(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(II=function(){return!!e})()}function W9(e,t,r){if(II())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Sc(o,r.prototype),o}function Xv(e){var t=typeof Map=="function"?new Map:void 0;return Xv=function(r){if(r===null||!V9(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return W9(r,arguments,Yv(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Sc(n,r)},Xv(e)}var So=function(e){K9(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,z9(n)}return t}(Xv(Error));function My(e){return Math.round(e*255)}function G9(e,t,r){return My(e)+","+My(t)+","+My(r)}function Bp(e,t,r,n){if(n===void 0&&(n=G9),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,c=0,d=0;o>=0&&o<1?(s=i,c=a):o>=1&&o<2?(s=a,c=i):o>=2&&o<3?(c=i,d=a):o>=3&&o<4?(c=a,d=i):o>=4&&o<5?(s=a,d=i):o>=5&&o<6&&(s=i,d=a);var f=r-i/2,p=s+f,h=c+f,g=d+f;return n(p,h,g)}var NT={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Y9(e){if(typeof e!="string")return e;var t=e.toLowerCase();return NT[t]?"#"+NT[t]:e}var X9=/^#[a-fA-F0-9]{6}$/,J9=/^#[a-fA-F0-9]{8}$/,Q9=/^#[a-fA-F0-9]{3}$/,Z9=/^#[a-fA-F0-9]{4}$/,Ly=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,e7=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,t7=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,r7=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function ys(e){if(typeof e!="string")throw new So(3);var t=Y9(e);if(t.match(X9))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(J9)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Q9))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Z9)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Ly.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=e7.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=t7.exec(t);if(a){var s=parseInt(""+a[1],10),c=parseInt(""+a[2],10)/100,d=parseInt(""+a[3],10)/100,f="rgb("+Bp(s,c,d)+")",p=Ly.exec(f);if(!p)throw new So(4,t,f);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var h=r7.exec(t.substring(0,50));if(h){var g=parseInt(""+h[1],10),y=parseInt(""+h[2],10)/100,E=parseInt(""+h[3],10)/100,w="rgb("+Bp(g,y,E)+")",b=Ly.exec(w);if(!b)throw new So(4,t,w);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new So(5)}function n7(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var s,c=o-i,d=a>.5?c/(2-o-i):c/(o+i);switch(o){case t:s=(r-n)/c+(r<n?6:0);break;case r:s=(n-t)/c+2;break;default:s=(t-r)/c+4;break}return s*=60,e.alpha!==void 0?{hue:s,saturation:d,lightness:a,alpha:e.alpha}:{hue:s,saturation:d,lightness:a}}function ma(e){return n7(ys(e))}var o7=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},Jv=o7;function Wa(e){var t=e.toString(16);return t.length===1?"0"+t:t}function By(e){return Wa(Math.round(e*255))}function i7(e,t,r){return Jv("#"+By(e)+By(t)+By(r))}function NI(e,t,r){return Bp(e,t,r,i7)}function a7(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return NI(e.hue,e.saturation,e.lightness);throw new So(1)}function l7(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?NI(e.hue,e.saturation,e.lightness):"rgba("+Bp(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new So(2)}function kI(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Jv("#"+Wa(e)+Wa(t)+Wa(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Jv("#"+Wa(e.red)+Wa(e.green)+Wa(e.blue));throw new So(6)}function ul(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=ys(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?kI(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new So(7)}var s7=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},u7=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},c7=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},d7=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function ga(e){if(typeof e!="object")throw new So(8);if(u7(e))return ul(e);if(s7(e))return kI(e);if(d7(e))return l7(e);if(c7(e))return a7(e);throw new So(8)}function DI(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):DI(e,t,n)}}function bn(e){return DI(e,e.length,[])}function f7(e,t){if(t==="transparent")return t;var r=ma(t);return ga(sr({},r,{hue:r.hue+parseFloat(e)}))}bn(f7);function qs(e,t,r){return Math.max(e,Math.min(t,r))}function p7(e,t){if(t==="transparent")return t;var r=ma(t);return ga(sr({},r,{lightness:qs(0,1,r.lightness-parseFloat(e))}))}var h7=bn(p7),Rr=h7;function m7(e,t){if(t==="transparent")return t;var r=ma(t);return ga(sr({},r,{saturation:qs(0,1,r.saturation-parseFloat(e))}))}bn(m7);function g7(e,t){if(t==="transparent")return t;var r=ma(t);return ga(sr({},r,{lightness:qs(0,1,r.lightness+parseFloat(e))}))}var y7=bn(g7),hp=y7;function b7(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=ys(t),o=sr({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=ys(r),a=sr({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),s=o.alpha-a.alpha,c=parseFloat(e)*2-1,d=c*s===-1?c:c+s,f=1+c*s,p=(d/f+1)/2,h=1-p,g={red:Math.floor(o.red*p+a.red*h),green:Math.floor(o.green*p+a.green*h),blue:Math.floor(o.blue*p+a.blue*h),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return ul(g)}var v7=bn(b7),MI=v7;function E7(e,t){if(t==="transparent")return t;var r=ys(t),n=typeof r.alpha=="number"?r.alpha:1,o=sr({},r,{alpha:qs(0,1,(n*100+parseFloat(e)*100)/100)});return ul(o)}var w7=bn(E7),S7=w7;function x7(e,t){if(t==="transparent")return t;var r=ma(t);return ga(sr({},r,{saturation:qs(0,1,r.saturation+parseFloat(e))}))}bn(x7);function C7(e,t){return t==="transparent"?t:ga(sr({},ma(t),{hue:parseFloat(e)}))}bn(C7);function T7(e,t){return t==="transparent"?t:ga(sr({},ma(t),{lightness:parseFloat(e)}))}bn(T7);function _7(e,t){return t==="transparent"?t:ga(sr({},ma(t),{saturation:parseFloat(e)}))}bn(_7);function R7(e,t){return t==="transparent"?t:MI(parseFloat(e),"rgb(0, 0, 0)",t)}bn(R7);function A7(e,t){return t==="transparent"?t:MI(parseFloat(e),"rgb(255, 255, 255)",t)}bn(A7);function P7(e,t){if(t==="transparent")return t;var r=ys(t),n=typeof r.alpha=="number"?r.alpha:1,o=sr({},r,{alpha:qs(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return ul(o)}var $7=bn(P7),di=$7,O7=Object.create,ZE=Object.defineProperty,I7=Object.getOwnPropertyDescriptor,LI=Object.getOwnPropertyNames,N7=Object.getPrototypeOf,k7=Object.prototype.hasOwnProperty,kf=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ne=(e,t)=>function(){return t||(0,e[LI(e)[0]])((t={exports:{}}).exports,t),t.exports},Wt=(e,t)=>{for(var r in t)ZE(e,r,{get:t[r],enumerable:!0})},D7=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of LI(t))!k7.call(e,o)&&o!==r&&ZE(e,o,{get:()=>t[o],enumerable:!(n=I7(t,o))||n.enumerable});return e},it=(e,t,r)=>(r=e!=null?O7(N7(e)):{},D7(t||!e||!e.__esModule?ZE(r,"default",{value:e,enumerable:!0}):r,e)),Re=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),{LOGLEVEL:M7}=Re,Xi={trace:1,debug:2,info:3,warn:4,error:5,silent:10},L7=M7,Jl=Xi[L7]||Xi.info,Xr={trace:(e,...t)=>{Jl<=Xi.trace&&console.trace(e,...t)},debug:(e,...t)=>{Jl<=Xi.debug&&console.debug(e,...t)},info:(e,...t)=>{Jl<=Xi.info&&console.info(e,...t)},warn:(e,...t)=>{Jl<=Xi.warn&&console.warn(e,...t)},error:(e,...t)=>{Jl<=Xi.error&&console.error(e,...t)},log:(e,...t)=>{Jl<Xi.silent&&console.log(e,...t)}},Qv=new Set,gr=e=>(t,...r)=>{if(!Qv.has(t))return Qv.add(t),Xr[e](t,...r)};gr.clear=()=>Qv.clear();gr.trace=gr("trace");gr.debug=gr("debug");gr.info=gr("info");gr.warn=gr("warn");gr.error=gr("error");gr.log=gr("log");var Ht=gr("warn"),ke={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},ni={app:"#F6F9FC",bar:ke.lightest,content:ke.lightest,preview:ke.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},to={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Zv={light:{fgColor:{default:ke.darkest,muted:ke.dark,accent:ke.secondary,inverse:ke.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:ke.lightest,muted:ni.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:ke.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933"}}},B7={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:ke.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:to.fonts.base,fontCode:to.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},F7=B7,j7={base:"light",colorPrimary:ke.primary,colorSecondary:ke.secondary,appBg:ni.app,appContentBg:ke.lightest,appHoverBg:"#DBECFF",appPreviewBg:ke.lightest,appBorderColor:ke.border,appBorderRadius:4,fontBase:to.fonts.base,fontCode:to.fonts.mono,textColor:ke.darkest,textInverseColor:ke.lightest,textMutedColor:ke.dark,barTextColor:ke.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:ke.lightest,buttonBg:ni.app,buttonBorder:ke.medium,booleanBg:ke.mediumlight,booleanSelectedBg:ke.lightest,inputBg:ke.lightest,inputBorder:ke.border,inputTextColor:ke.darkest,inputBorderRadius:4},e1=j7,{window:Fy}=Re,q7=e=>({color:e}),H7=e=>typeof e!="string"?(Xr.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,U7=e=>!/(gradient|var|calc)/.test(e),z7=(e,t)=>e==="darken"?ul(`${Rr(1,t)}`,.95):e==="lighten"?ul(`${hp(1,t)}`,.95):t,K7=e=>t=>{if(!H7(t)||!U7(t))return t;try{return z7(e,t)}catch{return t}},ew=K7("lighten"),tw=()=>!Fy||!Fy.matchMedia?"light":Fy.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",kT={light:e1,dark:F7},mp=tw(),ia={...kT,normal:kT[mp]},BI=(e={base:mp},t)=>{let r={...ia[mp],...ia[e.base]||{},...e,base:ia[e.base]?e.base:mp};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},pi=ne({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,o,i){function a(d,f){if(!o[d]){if(!n[d]){var p=typeof kf=="function"&&kf;if(!f&&p)return p(d,!0);if(s)return s(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var g=o[d]={exports:{}};n[d][0].call(g.exports,function(y){var E=n[d][1][y];return a(E||y)},g,g.exports,r,n,o,i)}return o[d].exports}for(var s=typeof kf=="function"&&kf,c=0;c<i.length;c++)a(i[c]);return a}({1:[function(r,n,o){n.exports=function(i){if(typeof Map!="function"||i){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,o){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}i.prototype.get=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(s=this.indexOf(a),s>=0)return this.lastItem=this.list[s],this.list[s].val},i.prototype.set=function(a,s){var c;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=s,this):(c=this.indexOf(a),c>=0?(this.lastItem=this.list[c],this.list[c].val=s,this):(this.lastItem={key:a,val:s},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),s=this.indexOf(a),s>=0)return this.size--,this.list.splice(s,1)[0]},i.prototype.has=function(a){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],!0):!1)},i.prototype.forEach=function(a,s){var c;for(c=0;c<this.size;c++)a.call(s||this,this.list[c].val,this.list[c].key,this)},i.prototype.indexOf=function(a){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,a))return s;return-1},i.prototype.isEqual=function(a,s){return a===s||a!==a&&s!==s},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(d){var f=new i(!1),p=[];return function(h){var g=function(){var y=f,E,w,b=arguments.length-1,S=Array(b+1),R=!0,O;if((g.numArgs||g.numArgs===0)&&g.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(O=0;O<b;O++){if(S[O]={cacheItem:y,arg:arguments[O]},y.has(arguments[O])){y=y.get(arguments[O]);continue}R=!1,E=new i(!1),y.set(arguments[O],E),y=E}return R&&(y.has(arguments[b])?w=y.get(arguments[b]):R=!1),R||(w=h.apply(null,arguments),y.set(arguments[b],w)),d>0&&(S[b]={cacheItem:y,arg:arguments[b]},R?a(p,S):p.push(S),p.length>d&&s(p.shift())),g.wasMemoized=R,g.numArgs=b+1,w};return g.limit=d,g.wasMemoized=!1,g.cache=f,g.lru=p,g}};function a(d,f){var p=d.length,h=f.length,g,y,E;for(y=0;y<p;y++){for(g=!0,E=0;E<h;E++)if(!c(d[y][E].arg,f[E].arg)){g=!1;break}if(g)break}d.push(d.splice(y,1)[0])}function s(d){var f=d.length,p=d[f-1],h,g;for(p.cacheItem.delete(p.arg),g=f-2;g>=0&&(p=d[g],h=p.cacheItem.get(p.arg),!h||!h.size);g--)p.cacheItem.delete(p.arg)}function c(d,f){return d===f||d!==d&&f!==f}},{"map-or-similar":1}]},{},[3])(3)})}});function Fr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,c){var d=c.match(/\n([\t ]+|(?!\s).)/g);return d?s.concat(d.map(function(f){var p,h;return(h=(p=f.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&h!==void 0?h:0})):s},[]);if(o.length){var i=new RegExp(`
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(i,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,c){var d=a.match(/(?:^|\n)( *)$/),f=d?d[1]:"",p=s;typeof s=="string"&&s.includes(`
`)&&(p=String(s).split(`
`).map(function(h,g){return g===0?h:""+f+h}).join(`
`)),a+=p+n[c+1]}),a}var V7=ne({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,E=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,R=t?Symbol.for("react.scope"):60119;function O(T){if(typeof T=="object"&&T!==null){var P=T.$$typeof;switch(P){case r:switch(T=T.type,T){case d:case f:case o:case a:case i:case h:return T;default:switch(T=T&&T.$$typeof,T){case c:case p:case E:case y:case s:return T;default:return P}}case n:return P}}}function D(T){return O(T)===f}e.AsyncMode=d,e.ConcurrentMode=f,e.ContextConsumer=c,e.ContextProvider=s,e.Element=r,e.ForwardRef=p,e.Fragment=o,e.Lazy=E,e.Memo=y,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=h,e.isAsyncMode=function(T){return D(T)||O(T)===d},e.isConcurrentMode=D,e.isContextConsumer=function(T){return O(T)===c},e.isContextProvider=function(T){return O(T)===s},e.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===r},e.isForwardRef=function(T){return O(T)===p},e.isFragment=function(T){return O(T)===o},e.isLazy=function(T){return O(T)===E},e.isMemo=function(T){return O(T)===y},e.isPortal=function(T){return O(T)===n},e.isProfiler=function(T){return O(T)===a},e.isStrictMode=function(T){return O(T)===i},e.isSuspense=function(T){return O(T)===h},e.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===f||T===a||T===i||T===h||T===g||typeof T=="object"&&T!==null&&(T.$$typeof===E||T.$$typeof===y||T.$$typeof===s||T.$$typeof===c||T.$$typeof===p||T.$$typeof===b||T.$$typeof===S||T.$$typeof===R||T.$$typeof===w)},e.typeOf=O}}),W7=ne({"../../node_modules/react-is/index.js"(e,t){t.exports=V7()}}),FI=ne({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=W7(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=i,s[r.Memo]=a;function c(w){return r.isMemo(w)?a:s[w.$$typeof]||n}var d=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,y=Object.prototype;function E(w,b,S){if(typeof b!="string"){if(y){var R=g(b);R&&R!==y&&E(w,R,S)}var O=f(b);p&&(O=O.concat(p(b)));for(var D=c(w),T=c(b),P=0;P<O.length;++P){var _=O[P];if(!o[_]&&!(S&&S[_])&&!(T&&T[_])&&!(D&&D[_])){var N=h(b,_);try{d(w,_,N)}catch{}}}}return w}t.exports=E}});function G7(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Y7(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var X7=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Y7(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=G7(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),_r="-ms-",Fp="-moz-",lt="-webkit-",jI="comm",rw="rule",nw="decl",J7="@import",qI="@keyframes",Q7="@layer",Z7=Math.abs,kh=String.fromCharCode,ej=Object.assign;function tj(e,t){return pr(e,0)^45?(((t<<2^pr(e,0))<<2^pr(e,1))<<2^pr(e,2))<<2^pr(e,3):0}function HI(e){return e.trim()}function rj(e,t){return(e=t.exec(e))?e[0]:e}function st(e,t,r){return e.replace(t,r)}function t1(e,t){return e.indexOf(t)}function pr(e,t){return e.charCodeAt(t)|0}function xc(e,t,r){return e.slice(t,r)}function Eo(e){return e.length}function ow(e){return e.length}function Df(e,t){return t.push(e),e}function nj(e,t){return e.map(t).join("")}var Dh=1,bs=1,UI=0,Jr=0,Vt=0,Hs="";function Mh(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Dh,column:bs,length:a,return:""}}function qu(e,t){return ej(Mh("",null,null,"",null,null,0),e,{length:-e.length},t)}function oj(){return Vt}function ij(){return Vt=Jr>0?pr(Hs,--Jr):0,bs--,Vt===10&&(bs=1,Dh--),Vt}function hn(){return Vt=Jr<UI?pr(Hs,Jr++):0,bs++,Vt===10&&(bs=1,Dh++),Vt}function $o(){return pr(Hs,Jr)}function gp(){return Jr}function Qc(e,t){return xc(Hs,e,t)}function Cc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zI(e){return Dh=bs=1,UI=Eo(Hs=e),Jr=0,[]}function KI(e){return Hs="",e}function yp(e){return HI(Qc(Jr-1,r1(e===91?e+2:e===40?e+1:e)))}function aj(e){for(;(Vt=$o())&&Vt<33;)hn();return Cc(e)>2||Cc(Vt)>3?"":" "}function lj(e,t){for(;--t&&hn()&&!(Vt<48||Vt>102||Vt>57&&Vt<65||Vt>70&&Vt<97););return Qc(e,gp()+(t<6&&$o()==32&&hn()==32))}function r1(e){for(;hn();)switch(Vt){case e:return Jr;case 34:case 39:e!==34&&e!==39&&r1(Vt);break;case 40:e===41&&r1(e);break;case 92:hn();break}return Jr}function sj(e,t){for(;hn()&&e+Vt!==57&&!(e+Vt===84&&$o()===47););return"/*"+Qc(t,Jr-1)+"*"+kh(e===47?e:hn())}function uj(e){for(;!Cc($o());)hn();return Qc(e,Jr)}function cj(e){return KI(bp("",null,null,null,[""],e=zI(e),0,[0],e))}function bp(e,t,r,n,o,i,a,s,c){for(var d=0,f=0,p=a,h=0,g=0,y=0,E=1,w=1,b=1,S=0,R="",O=o,D=i,T=n,P=R;w;)switch(y=S,S=hn()){case 40:if(y!=108&&pr(P,p-1)==58){t1(P+=st(yp(S),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:P+=yp(S);break;case 9:case 10:case 13:case 32:P+=aj(y);break;case 92:P+=lj(gp()-1,7);continue;case 47:switch($o()){case 42:case 47:Df(dj(sj(hn(),gp()),t,r),c);break;default:P+="/"}break;case 123*E:s[d++]=Eo(P)*b;case 125*E:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+f:b==-1&&(P=st(P,/\f/g,"")),g>0&&Eo(P)-p&&Df(g>32?MT(P+";",n,r,p-1):MT(st(P," ","")+";",n,r,p-2),c);break;case 59:P+=";";default:if(Df(T=DT(P,t,r,d,f,o,s,R,O=[],D=[],p),i),S===123)if(f===0)bp(P,t,T,T,O,i,p,s,D);else switch(h===99&&pr(P,3)===110?100:h){case 100:case 108:case 109:case 115:bp(e,T,T,n&&Df(DT(e,T,T,0,0,o,s,R,o,O=[],p),D),o,D,p,s,n?O:D);break;default:bp(P,T,T,T,[""],D,0,s,D)}}d=f=g=0,E=b=1,R=P="",p=a;break;case 58:p=1+Eo(P),g=y;default:if(E<1){if(S==123)--E;else if(S==125&&E++==0&&ij()==125)continue}switch(P+=kh(S),S*E){case 38:b=f>0?1:(P+="\f",-1);break;case 44:s[d++]=(Eo(P)-1)*b,b=1;break;case 64:$o()===45&&(P+=yp(hn())),h=$o(),f=p=Eo(R=P+=uj(gp())),S++;break;case 45:y===45&&Eo(P)==2&&(E=0)}}return i}function DT(e,t,r,n,o,i,a,s,c,d,f){for(var p=o-1,h=o===0?i:[""],g=ow(h),y=0,E=0,w=0;y<n;++y)for(var b=0,S=xc(e,p+1,p=Z7(E=a[y])),R=e;b<g;++b)(R=HI(E>0?h[b]+" "+S:st(S,/&\f/g,h[b])))&&(c[w++]=R);return Mh(e,t,r,o===0?rw:s,c,d,f)}function dj(e,t,r){return Mh(e,t,r,jI,kh(oj()),xc(e,2,-2),0)}function MT(e,t,r,n){return Mh(e,t,r,nw,xc(e,0,n),xc(e,n+1,-1),n)}function ls(e,t){for(var r="",n=ow(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function fj(e,t,r,n){switch(e.type){case Q7:if(e.children.length)break;case J7:case nw:return e.return=e.return||e.value;case jI:return"";case qI:return e.return=e.value+"{"+ls(e.children,n)+"}";case rw:e.value=e.props.join(",")}return Eo(r=ls(e.children,n))?e.return=e.value+"{"+r+"}":""}function pj(e){var t=ow(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function hj(e){return function(t){t.root||(t=t.return)&&e(t)}}var LT=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function VI(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var mj=function(e,t,r){for(var n=0,o=0;n=o,o=$o(),n===38&&o===12&&(t[r]=1),!Cc(o);)hn();return Qc(e,Jr)},gj=function(e,t){var r=-1,n=44;do switch(Cc(n)){case 0:n===38&&$o()===12&&(t[r]=1),e[r]+=mj(Jr-1,t,r);break;case 2:e[r]+=yp(n);break;case 4:if(n===44){e[++r]=$o()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=kh(n)}while(n=hn());return e},yj=function(e,t){return KI(gj(zI(e),t))},BT=new WeakMap,bj=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!BT.get(r))&&!n){BT.set(e,!0);for(var o=[],i=yj(t,o),a=r.props,s=0,c=0;s<i.length;s++)for(var d=0;d<a.length;d++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[d]):a[d]+" "+i[s]}}},vj=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function WI(e,t){switch(tj(e,t)){case 5103:return lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+Fp+e+_r+e+e;case 6828:case 4268:return lt+e+_r+e+e;case 6165:return lt+e+_r+"flex-"+e+e;case 5187:return lt+e+st(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+_r+"flex-$1$2")+e;case 5443:return lt+e+_r+"flex-item-"+st(e,/flex-|-self/,"")+e;case 4675:return lt+e+_r+"flex-line-pack"+st(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+_r+st(e,"shrink","negative")+e;case 5292:return lt+e+_r+st(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+st(e,"-grow","")+lt+e+_r+st(e,"grow","positive")+e;case 4554:return lt+st(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return st(st(st(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return st(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return st(st(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+_r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return st(e,/(.+)-inline(.+)/,lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Eo(e)-1-t>6)switch(pr(e,t+1)){case 109:if(pr(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+Fp+(pr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~t1(e,"stretch")?WI(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pr(e,t+1)!==115)break;case 6444:switch(pr(e,Eo(e)-3-(~t1(e,"!important")&&10))){case 107:return st(e,":",":"+lt)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(pr(e,14)===45?"inline-":"")+"box$3$1"+lt+"$2$3$1"+_r+"$2box$3")+e}break;case 5936:switch(pr(e,t+11)){case 114:return lt+e+_r+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+_r+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+_r+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+_r+e+e}return e}var Ej=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case nw:e.return=WI(e.value,e.length);break;case qI:return ls([qu(e,{value:st(e.value,"@","@"+lt)})],n);case rw:if(e.length)return nj(e.props,function(o){switch(rj(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ls([qu(e,{props:[st(o,/:(read-\w+)/,":"+Fp+"$1")]})],n);case"::placeholder":return ls([qu(e,{props:[st(o,/:(plac\w+)/,":"+lt+"input-$1")]}),qu(e,{props:[st(o,/:(plac\w+)/,":"+Fp+"$1")]}),qu(e,{props:[st(o,/:(plac\w+)/,_r+"input-$1")]})],n)}return""})}},wj=[Ej],GI=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var E=y.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||wj,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var E=y.getAttribute("data-emotion").split(" "),w=1;w<E.length;w++)o[E[w]]=!0;a.push(y)});var s,c=[bj,vj];{var d,f=[fj,hj(function(y){d.insert(y)})],p=pj(c.concat(n,f)),h=function(y){return ls(cj(y),p)};s=function(y,E,w,b){d=w,h(y?y+"{"+E.styles+"}":E.styles),b&&(g.inserted[E.name]=!0)}}var g={key:t,sheet:new X7({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return g.sheet.hydrate(a),g},Sj=it(FI()),xj=function(e,t){return(0,Sj.default)(e,t)},Cj=!0;function iw(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Lh=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||Cj===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Bh=function(e,t,r){Lh(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Tj(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _j={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Rj=/[A-Z]|^ms/g,Aj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,YI=function(e){return e.charCodeAt(1)===45},FT=function(e){return e!=null&&typeof e!="boolean"},jy=VI(function(e){return YI(e)?e:e.replace(Rj,"-$&").toLowerCase()}),jT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Aj,function(r,n,o){return wo={name:n,styles:o,next:wo},n})}return _j[e]!==1&&!YI(e)&&typeof t=="number"&&t!==0?t+"px":t};function Tc(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return wo={name:o.name,styles:o.styles,next:wo},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)wo={name:a.name,styles:a.styles,next:wo},a=a.next;var s=i.styles+";";return s}return Pj(e,t,r)}case"function":{if(e!==void 0){var c=wo,d=r(e);return wo=c,Tc(e,t,d)}break}}var f=r;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function Pj(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Tc(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":FT(s)&&(n+=jy(i)+":"+jT(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)FT(a[c])&&(n+=jy(i)+":"+jT(i,a[c])+";");else{var d=Tc(e,t,a);switch(i){case"animation":case"animationName":{n+=jy(i)+":"+d+";";break}default:n+=i+"{"+d+"}"}}}return n}var qT=/label:\s*([^\s;{]+)\s*(;|$)/g,wo;function Zc(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";wo=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Tc(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Tc(r,t,e[s]),n){var c=i;o+=c[s]}qT.lastIndex=0;for(var d="",f;(f=qT.exec(o))!==null;)d+="-"+f[1];var p=Tj(o)+d;return{name:p,styles:o,next:wo}}var $j=function(e){return e()},XI=x.useInsertionEffect?x.useInsertionEffect:!1,aw=XI||$j,HT=XI||x.useLayoutEffect,JI=x.createContext(typeof HTMLElement<"u"?GI({key:"css"}):null);JI.Provider;var Fh=function(e){return x.forwardRef(function(t,r){var n=x.useContext(JI);return e(t,n,r)})},ua=x.createContext({}),QI=function(){return x.useContext(ua)},Oj=function(e,t){if(typeof t=="function"){var r=t(e);return r}return sr({},e,t)},Ij=LT(function(e){return LT(function(t){return Oj(e,t)})}),lw=function(e){var t=x.useContext(ua);return e.theme!==t&&(t=Ij(t)(e.theme)),x.createElement(ua.Provider,{value:t},e.children)};function Je(e){var t=e.displayName||e.name||"Component",r=x.forwardRef(function(n,o){var i=x.useContext(ua);return x.createElement(e,sr({theme:i,ref:o},n))});return r.displayName="WithTheme("+t+")",xj(r,e)}var sw={}.hasOwnProperty,n1="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Nj=function(e,t){var r={};for(var n in t)sw.call(t,n)&&(r[n]=t[n]);return r[n1]=e,r},kj=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Lh(t,r,n),aw(function(){return Bh(t,r,n)}),null},Dj=Fh(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[n1],i=[n],a="";typeof e.className=="string"?a=iw(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Zc(i,void 0,x.useContext(ua));a+=t.key+"-"+s.name;var c={};for(var d in e)sw.call(e,d)&&d!=="css"&&d!==n1&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),x.createElement(x.Fragment,null,x.createElement(kj,{cache:t,serialized:s,isStringTag:typeof o=="string"}),x.createElement(o,c))}),Mj=Dj;it(FI());var o1=function(e,t){var r=arguments;if(t==null||!sw.call(t,"css"))return x.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=Mj,o[1]=Nj(e,t);for(var i=2;i<n;i++)o[i]=r[i];return x.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(o1||(o1={}));Fh(function(e,t){var r=e.styles,n=Zc([r],void 0,x.useContext(ua)),o=x.useRef();return HT(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,s],function(){a.flush()}},[t]),HT(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&Bh(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function jh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zc(t)}function er(){var e=jh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Lj=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=e(i);else{a="";for(var s in i)i[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function Bj(e,t,r){var n=[],o=iw(e,n,r);return n.length<2?r:o+t(n)}var Fj=function(e){var t=e.cache,r=e.serializedArr;return aw(function(){for(var n=0;n<r.length;n++)Bh(t,r[n],!1)}),null};Fh(function(e,t){var r=[],n=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];var f=Zc(c,t.registered);return r.push(f),Lh(t,f,!1),t.key+"-"+f.name},o=function(){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return Bj(t.registered,n,Lj(c))},i={css:n,cx:o,theme:x.useContext(ua)},a=e.children(i);return x.createElement(x.Fragment,null,x.createElement(Fj,{cache:t,serializedArr:r}),a)});var jj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qh=VI(function(e){return jj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qj=qh,Hj=function(e){return e!=="theme"},UT=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?qj:Hj},zT=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},Uj=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Lh(t,r,n),aw(function(){return Bh(t,r,n)}),null},zj=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=zT(t,r,n),c=s||UT(o),d=!c("as");return function(){var f=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var h=f[0];p.push(h[0]);for(var g=f.length,y=1;y<g;y++)p.push(f[y],h[y])}var E=Fh(function(w,b,S){var R=d&&w.as||o,O="",D=[],T=w;if(w.theme==null){T={};for(var P in w)T[P]=w[P];T.theme=x.useContext(ua)}typeof w.className=="string"?O=iw(b.registered,D,w.className):w.className!=null&&(O=w.className+" ");var _=Zc(p.concat(D),b.registered,T);O+=b.key+"-"+_.name,a!==void 0&&(O+=" "+a);var N=d&&s===void 0?UT(R):c,V={};for(var L in w)d&&L==="as"||N(L)&&(V[L]=w[L]);return V.className=O,S&&(V.ref=S),x.createElement(x.Fragment,null,x.createElement(Uj,{cache:b,serialized:_,isStringTag:typeof R=="string"}),x.createElement(R,V))});return E.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=o,E.__emotion_styles=p,E.__emotion_forwardProp=s,Object.defineProperty(E,"toString",{value:function(){return"."+a}}),E.withComponent=function(w,b){var S=e(w,sr({},r,b,{shouldForwardProp:zT(E,b,!0)}));return S.apply(void 0,p)},E}},Kj=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Q=zj.bind(null);Kj.forEach(function(e){Q[e]=Q(e)});var ZI=it(pi(),1),e3={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},t3=(0,ZI.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,ZI.default)(1)(({color:e,background:t,typography:r})=>{let n=t3({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":e3,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var Vj={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},Wj=er`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,r3=er`
0%, 100% { opacity: 1; }
50% { opacity: .4; }
`,Gj=er`
0% { transform: translateY(1px); }
25% { transform: translateY(0px); }
50% { transform: translateY(-3px); }
100% { transform: translateY(1px); }
`,Yj=er`
0%, 100% { transform:translate3d(0,0,0); }
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
37.5%, 87.5% { transform: translate3d(4px,0,0); }
`,Xj=jh`
animation: ${r3} 1.5s ease-in-out infinite;
color: transparent;
cursor: progress;
`,Jj=jh`
transition: all 150ms ease-out;
transform: translate3d(0, 0, 0);
&:hover {
transform: translate3d(0, -2px, 0);
}
&:active {
transform: translate3d(0, 0, 0);
}
`,Qj={rotate360:Wj,glow:r3,float:Gj,jiggle:Yj,inlineGlow:Xj,hoverable:Jj},Zj={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},eq={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},tq=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:q7(n)}),{}),rq=({colors:e,mono:t})=>{let r=tq(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},nq={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},oq={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},iq=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:ke.tertiary,ancillary:ke.ancillary,orange:ke.orange,gold:ke.gold,green:ke.green,seafoam:ke.seafoam,purple:ke.purple,ultraviolet:ke.ultraviolet,lightest:ke.lightest,lighter:ke.lighter,light:ke.light,mediumlight:ke.mediumlight,medium:ke.medium,mediumdark:ke.mediumdark,dark:ke.dark,darker:ke.darker,darkest:ke.darkest,border:ke.border,positive:ke.positive,negative:ke.negative,warning:ke.warning,critical:ke.critical,defaultText:e.textColor||ke.darkest,inverseText:e.textInverseColor||ke.lightest,positiveText:ke.positiveText,negativeText:ke.negativeText,warningText:ke.warningText}),i1=(e=ia[tw()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:i,appHoverBg:a,appPreviewBg:s,appBorderColor:c,appBorderRadius:d,fontBase:f,fontCode:p,textColor:h,textInverseColor:g,barTextColor:y,barHoverColor:E,barSelectedColor:w,barBg:b,buttonBg:S,buttonBorder:R,booleanBg:O,booleanSelectedBg:D,inputBg:T,inputBorder:P,inputTextColor:_,inputBorderRadius:N,brandTitle:V,brandUrl:L,brandImage:K,brandTarget:Y,gridCellSize:$,...M}=e;return{...M,base:t,...t==="dark"?Zv.dark:Zv.light,color:iq(e),background:{app:o,bar:b,content:i,preview:s,gridCellSize:$||ni.gridCellSize,hoverable:a,positive:ni.positive,negative:ni.negative,warning:ni.warning,critical:ni.critical},typography:{fonts:{base:f,mono:p},weight:to.weight,size:to.size},animation:Qj,easing:Vj,input:{background:T,border:P,borderRadius:N,color:_},button:{background:S||T,border:R||P},boolean:{background:O||P,selectedBackground:D||T},layoutMargin:10,appBorderColor:c,appBorderRadius:d,barTextColor:y,barHoverColor:E||n,barSelectedColor:w||n,barBg:b,brand:{title:V,url:L,image:K||(V?null:void 0),target:Y},code:rq({colors:t==="dark"?oq:nq,mono:p}),addonActionsTheme:{...t==="dark"?Zj:eq,BASE_FONT_FAMILY:p,BASE_FONT_SIZE:to.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:h,ARROW_COLOR:S7(.2,c),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:p,TREENODE_FONT_SIZE:to.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},aq=e=>Object.keys(e).length===0,qy=e=>e!=null&&typeof e=="object",lq=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),sq=()=>Object.create(null),n3=(e,t)=>e===t||!qy(e)||!qy(t)?{}:Object.keys(e).reduce((r,n)=>{if(lq(t,n)){let o=n3(e[n],t[n]);return qy(o)&&aq(o)||(r[n]=o),r}return r[n]=void 0,r},sq()),uq=n3,uw=e=>{if(!e)return i1(e1);let t=uq(e1,e);return Object.keys(t).length&&Xr.warn(Fr`
Your theme is missing properties, you should update your theme!
theme-data missing:
`,t),i1(e)},a1="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const cq=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:lw,background:ni,color:ke,convert:i1,create:BI,createCache:GI,createReset:t3,css:jh,ensure:uw,getPreferredColorScheme:tw,ignoreSsrWarning:a1,isPropValid:qh,get jsx(){return o1},keyframes:er,lighten:ew,srOnlyStyles:e3,styled:Q,themes:ia,tokens:Zv,typography:to,useTheme:QI,withTheme:Je},Symbol.toStringTag,{value:"Module"}));function cn(){}function Qt(e){return e!=null}function gt(e){return Qt(e)&&dq(e)&&"id"in e&&"storyId"in e&&typeof e.id=="string"&&typeof e.storyId=="string"}function dq(e){return typeof e=="object"&&e!=null}var Hy,KT;function Us(){return KT||(KT=1,Hy=TypeError),Hy}const fq={},pq=Object.freeze(Object.defineProperty({__proto__:null,default:fq},Symbol.toStringTag,{value:"Module"})),hq=S9(pq);var Uy,VT;function Hh(){if(VT)return Uy;VT=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,s=o&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,d=c?WeakMap.prototype.has:null,f=typeof WeakSet=="function"&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,g=h?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,E=Object.prototype.toString,w=Function.prototype.toString,b=String.prototype.match,S=String.prototype.slice,R=String.prototype.replace,O=String.prototype.toUpperCase,D=String.prototype.toLowerCase,T=RegExp.prototype.test,P=Array.prototype.concat,_=Array.prototype.join,N=Array.prototype.slice,V=Math.floor,L=typeof BigInt=="function"?BigInt.prototype.valueOf:null,K=Object.getOwnPropertySymbols,Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,$=typeof Symbol=="function"&&typeof Symbol.iterator=="object",M=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===$||!0)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,B=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ue){return ue.__proto__}:null);function k(ue,fe){if(ue===1/0||ue===-1/0||ue!==ue||ue&&ue>-1e3&&ue<1e3||T.call(/e/,fe))return fe;var Ve=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ue=="number"){var tt=ue<0?-V(-ue):V(ue);if(tt!==ue){var at=String(tt),Fe=S.call(fe,at.length+1);return R.call(at,Ve,"$&_")+"."+R.call(R.call(Fe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(fe,Ve,"$&_")}var z=hq,F=z.custom,q=Se(F)?F:null,U={__proto__:null,double:'"',single:"'"},Z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Uy=function ue(fe,Ve,tt,at){var Fe=Ve||{};if(Oe(Fe,"quoteStyle")&&!Oe(U,Fe.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Oe(Fe,"maxStringLength")&&(typeof Fe.maxStringLength=="number"?Fe.maxStringLength<0&&Fe.maxStringLength!==1/0:Fe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var cr=Oe(Fe,"customInspect")?Fe.customInspect:!0;if(typeof cr!="boolean"&&cr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Oe(Fe,"indent")&&Fe.indent!==null&&Fe.indent!==" "&&!(parseInt(Fe.indent,10)===Fe.indent&&Fe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Oe(Fe,"numericSeparator")&&typeof Fe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Er=Fe.numericSeparator;if(typeof fe>"u")return"undefined";if(fe===null)return"null";if(typeof fe=="boolean")return fe?"true":"false";if(typeof fe=="string")return Sa(fe,Fe);if(typeof fe=="number"){if(fe===0)return 1/0/fe>0?"0":"-0";var tr=String(fe);return Er?k(fe,tr):tr}if(typeof fe=="bigint"){var en=String(fe)+"n";return Er?k(fe,en):en}var Si=typeof Fe.depth>"u"?5:Fe.depth;if(typeof tt>"u"&&(tt=0),tt>=Si&&Si>0&&typeof fe=="object")return oe(fe)?"[Array]":"[Object]";var Hn=nu(Fe,tt);if(typeof at>"u")at=[];else if(At(at,fe)>=0)return"[Circular]";function wr(Ci,_a,_d){if(_a&&(at=N.call(at),at.push(_a)),_d){var au={depth:Fe.depth};return Oe(Fe,"quoteStyle")&&(au.quoteStyle=Fe.quoteStyle),ue(Ci,au,tt+1,at)}return ue(Ci,Fe,tt+1,at)}if(typeof fe=="function"&&!ye(fe)){var xe=et(fe),Ca=Bo(fe,wr);return"[Function"+(xe?": "+xe:" (anonymous)")+"]"+(Ca.length>0?" { "+_.call(Ca,", ")+" }":"")}if(Se(fe)){var tn=$?R.call(String(fe),/^(Symbol\(.*\))_[^)]*$/,"$1"):Y.call(fe);return typeof fe=="object"&&!$?wn(tn):tn}if(qn(fe)){for(var Fo="<"+D.call(String(fe.nodeName)),jo=fe.attributes||[],_l=0;_l<jo.length;_l++)Fo+=" "+jo[_l].name+"="+de(ee(jo[_l].value),"double",Fe);return Fo+=">",fe.childNodes&&fe.childNodes.length&&(Fo+="..."),Fo+="</"+D.call(String(fe.nodeName))+">",Fo}if(oe(fe)){if(fe.length===0)return"[]";var qo=Bo(fe,wr);return Hn&&!Lo(qo)?"["+wi(qo,Hn)+"]":"[ "+_.call(qo,", ")+" ]"}if(ve(fe)){var xi=Bo(fe,wr);return!("cause"in Error.prototype)&&"cause"in fe&&!I.call(fe,"cause")?"{ ["+String(fe)+"] "+_.call(P.call("[cause]: "+wr(fe.cause),xi),", ")+" }":xi.length===0?"["+String(fe)+"]":"{ ["+String(fe)+"] "+_.call(xi,", ")+" }"}if(typeof fe=="object"&&cr){if(q&&typeof fe[q]=="function"&&z)return z(fe,{depth:Si-tt});if(cr!=="symbol"&&typeof fe.inspect=="function")return fe.inspect()}if(yt(fe)){var Ta=[];return n&&n.call(fe,function(Ci,_a){Ta.push(wr(_a,fe,!0)+" => "+wr(Ci,fe))}),so("Map",r.call(fe),Ta,Hn)}if(br(fe)){var Rl=[];return s&&s.call(fe,function(Ci){Rl.push(wr(Ci,fe))}),so("Set",a.call(fe),Rl,Hn)}if(bt(fe))return Ei("WeakMap");if(vr(fe))return Ei("WeakSet");if(It(fe))return Ei("WeakRef");if(me(fe))return wn(wr(Number(fe)));if(_e(fe))return wn(wr(L.call(fe)));if(he(fe))return wn(y.call(fe));if(J(fe))return wn(wr(String(fe)));if(typeof window<"u"&&fe===window)return"{ [object Window] }";if(typeof globalThis<"u"&&fe===globalThis||typeof bT<"u"&&fe===bT)return"{ [object globalThis] }";if(!ge(fe)&&!ye(fe)){var ou=Bo(fe,wr),Cd=B?B(fe)===Object.prototype:fe instanceof Object||fe.constructor===Object,iu=fe instanceof Object?"":"null prototype",uo=!Cd&&M&&Object(fe)===fe&&M in fe?S.call(Te(fe),8,-1):iu?"Object":"",Td=Cd||typeof fe.constructor!="function"?"":fe.constructor.name?fe.constructor.name+" ":"",Al=Td+(uo||iu?"["+_.call(P.call([],uo||[],iu||[]),": ")+"] ":"");return ou.length===0?Al+"{}":Hn?Al+"{"+wi(ou,Hn)+"}":Al+"{ "+_.call(ou,", ")+" }"}return String(fe)};function de(ue,fe,Ve){var tt=Ve.quoteStyle||fe,at=U[tt];return at+ue+at}function ee(ue){return R.call(String(ue),/"/g,""")}function oe(ue){return Te(ue)==="[object Array]"&&(!M||!(typeof ue=="object"&&M in ue))}function ge(ue){return Te(ue)==="[object Date]"&&(!M||!(typeof ue=="object"&&M in ue))}function ye(ue){return Te(ue)==="[object RegExp]"&&(!M||!(typeof ue=="object"&&M in ue))}function ve(ue){return Te(ue)==="[object Error]"&&(!M||!(typeof ue=="object"&&M in ue))}function J(ue){return Te(ue)==="[object String]"&&(!M||!(typeof ue=="object"&&M in ue))}function me(ue){return Te(ue)==="[object Number]"&&(!M||!(typeof ue=="object"&&M in ue))}function he(ue){return Te(ue)==="[object Boolean]"&&(!M||!(typeof ue=="object"&&M in ue))}function Se(ue){if($)return ue&&typeof ue=="object"&&ue instanceof Symbol;if(typeof ue=="symbol")return!0;if(!ue||typeof ue!="object"||!Y)return!1;try{return Y.call(ue),!0}catch{}return!1}function _e(ue){if(!ue||typeof ue!="object"||!L)return!1;try{return L.call(ue),!0}catch{}return!1}var $e=Object.prototype.hasOwnProperty||function(ue){return ue in this};function Oe(ue,fe){return $e.call(ue,fe)}function Te(ue){return E.call(ue)}function et(ue){if(ue.name)return ue.name;var fe=b.call(w.call(ue),/^function\s*([\w$]+)/);return fe?fe[1]:null}function At(ue,fe){if(ue.indexOf)return ue.indexOf(fe);for(var Ve=0,tt=ue.length;Ve<tt;Ve++)if(ue[Ve]===fe)return Ve;return-1}function yt(ue){if(!r||!ue||typeof ue!="object")return!1;try{r.call(ue);try{a.call(ue)}catch{return!0}return ue instanceof Map}catch{}return!1}function bt(ue){if(!d||!ue||typeof ue!="object")return!1;try{d.call(ue,d);try{p.call(ue,p)}catch{return!0}return ue instanceof WeakMap}catch{}return!1}function It(ue){if(!g||!ue||typeof ue!="object")return!1;try{return g.call(ue),!0}catch{}return!1}function br(ue){if(!a||!ue||typeof ue!="object")return!1;try{a.call(ue);try{r.call(ue)}catch{return!0}return ue instanceof Set}catch{}return!1}function vr(ue){if(!p||!ue||typeof ue!="object")return!1;try{p.call(ue,p);try{d.call(ue,d)}catch{return!0}return ue instanceof WeakSet}catch{}return!1}function qn(ue){return!ue||typeof ue!="object"?!1:typeof HTMLElement<"u"&&ue instanceof HTMLElement?!0:typeof ue.nodeName=="string"&&typeof ue.getAttribute=="function"}function Sa(ue,fe){if(ue.length>fe.maxStringLength){var Ve=ue.length-fe.maxStringLength,tt="... "+Ve+" more character"+(Ve>1?"s":"");return Sa(S.call(ue,0,fe.maxStringLength),fe)+tt}var at=Z[fe.quoteStyle||"single"];at.lastIndex=0;var Fe=R.call(R.call(ue,at,"\\$1"),/[\x00-\x1f]/g,xa);return de(Fe,"single",fe)}function xa(ue){var fe=ue.charCodeAt(0),Ve={8:"b",9:"t",10:"n",12:"f",13:"r"}[fe];return Ve?"\\"+Ve:"\\x"+(fe<16?"0":"")+O.call(fe.toString(16))}function wn(ue){return"Object("+ue+")"}function Ei(ue){return ue+" { ? }"}function so(ue,fe,Ve,tt){var at=tt?wi(Ve,tt):_.call(Ve,", ");return ue+" ("+fe+") {"+at+"}"}function Lo(ue){for(var fe=0;fe<ue.length;fe++)if(At(ue[fe],`
`)>=0)return!1;return!0}function nu(ue,fe){var Ve;if(ue.indent===" ")Ve=" ";else if(typeof ue.indent=="number"&&ue.indent>0)Ve=_.call(Array(ue.indent+1)," ");else return null;return{base:Ve,prev:_.call(Array(fe+1),Ve)}}function wi(ue,fe){if(ue.length===0)return"";var Ve=`
`+fe.prev+fe.base;return Ve+_.call(ue,","+Ve)+`
`+fe.prev}function Bo(ue,fe){var Ve=oe(ue),tt=[];if(Ve){tt.length=ue.length;for(var at=0;at<ue.length;at++)tt[at]=Oe(ue,at)?fe(ue[at],ue):""}var Fe=typeof K=="function"?K(ue):[],cr;if($){cr={};for(var Er=0;Er<Fe.length;Er++)cr["$"+Fe[Er]]=Fe[Er]}for(var tr in ue)Oe(ue,tr)&&(Ve&&String(Number(tr))===tr&&tr<ue.length||$&&cr["$"+tr]instanceof Symbol||(T.call(/[^\w$]/,tr)?tt.push(fe(tr,ue)+": "+fe(ue[tr],ue)):tt.push(tr+": "+fe(ue[tr],ue))));if(typeof K=="function")for(var en=0;en<Fe.length;en++)I.call(ue,Fe[en])&&tt.push("["+fe(Fe[en])+"]: "+fe(ue[Fe[en]],ue));return tt}return Uy}var zy,WT;function mq(){if(WT)return zy;WT=1;var e=Hh(),t=Us(),r=function(s,c,d){for(var f=s,p;(p=f.next)!=null;f=p)if(p.key===c)return f.next=p.next,d||(p.next=s.next,s.next=p),p},n=function(s,c){if(s){var d=r(s,c);return d&&d.value}},o=function(s,c,d){var f=r(s,c);f?f.value=d:s.next={key:c,next:s.next,value:d}},i=function(s,c){return s?!!r(s,c):!1},a=function(s,c){if(s)return r(s,c,!0)};return zy=function(){var c,d={assert:function(f){if(!d.has(f))throw new t("Side channel does not contain "+e(f))},delete:function(f){var p=c&&c.next,h=a(c,f);return h&&p&&p===h&&(c=void 0),!!h},get:function(f){return n(c,f)},has:function(f){return i(c,f)},set:function(f,p){c||(c={next:void 0}),o(c,f,p)}};return d},zy}var Ky,GT;function o3(){return GT||(GT=1,Ky=Object),Ky}var Vy,YT;function gq(){return YT||(YT=1,Vy=Error),Vy}var Wy,XT;function yq(){return XT||(XT=1,Wy=EvalError),Wy}var Gy,JT;function bq(){return JT||(JT=1,Gy=RangeError),Gy}var Yy,QT;function vq(){return QT||(QT=1,Yy=ReferenceError),Yy}var Xy,ZT;function Eq(){return ZT||(ZT=1,Xy=SyntaxError),Xy}var Jy,e_;function wq(){return e_||(e_=1,Jy=URIError),Jy}var Qy,t_;function Sq(){return t_||(t_=1,Qy=Math.abs),Qy}var Zy,r_;function xq(){return r_||(r_=1,Zy=Math.floor),Zy}var eb,n_;function Cq(){return n_||(n_=1,eb=Math.max),eb}var tb,o_;function Tq(){return o_||(o_=1,tb=Math.min),tb}var rb,i_;function _q(){return i_||(i_=1,rb=Math.pow),rb}var nb,a_;function Rq(){return a_||(a_=1,nb=Math.round),nb}var ob,l_;function Aq(){return l_||(l_=1,ob=Number.isNaN||function(t){return t!==t}),ob}var ib,s_;function Pq(){if(s_)return ib;s_=1;var e=Aq();return ib=function(r){return e(r)||r===0?r:r<0?-1:1},ib}var ab,u_;function $q(){return u_||(u_=1,ab=Object.getOwnPropertyDescriptor),ab}var lb,c_;function i3(){if(c_)return lb;c_=1;var e=$q();if(e)try{e([],"length")}catch{e=null}return lb=e,lb}var sb,d_;function Oq(){if(d_)return sb;d_=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return sb=e,sb}var ub,f_;function Iq(){return f_||(f_=1,ub=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),ub}var cb,p_;function Nq(){if(p_)return cb;p_=1;var e=typeof Symbol<"u"&&Symbol,t=Iq();return cb=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},cb}var db,h_;function a3(){return h_||(h_=1,db=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),db}var fb,m_;function l3(){if(m_)return fb;m_=1;var e=o3();return fb=e.getPrototypeOf||null,fb}var pb,g_;function kq(){if(g_)return pb;g_=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,d){for(var f=[],p=0;p<c.length;p+=1)f[p]=c[p];for(var h=0;h<d.length;h+=1)f[h+c.length]=d[h];return f},i=function(c,d){for(var f=[],p=d,h=0;p<c.length;p+=1,h+=1)f[h]=c[p];return f},a=function(s,c){for(var d="",f=0;f<s.length;f+=1)d+=s[f],f+1<s.length&&(d+=c);return d};return pb=function(c){var d=this;if(typeof d!="function"||t.apply(d)!==n)throw new TypeError(e+d);for(var f=i(arguments,1),p,h=function(){if(this instanceof p){var b=d.apply(this,o(f,arguments));return Object(b)===b?b:this}return d.apply(c,o(f,arguments))},g=r(0,d.length-f.length),y=[],E=0;E<g;E++)y[E]="$"+E;if(p=Function("binder","return function ("+a(y,",")+"){ return binder.apply(this,arguments); }")(h),d.prototype){var w=function(){};w.prototype=d.prototype,p.prototype=new w,w.prototype=null}return p},pb}var hb,y_;function Uh(){if(y_)return hb;y_=1;var e=kq();return hb=Function.prototype.bind||e,hb}var mb,b_;function cw(){return b_||(b_=1,mb=Function.prototype.call),mb}var gb,v_;function s3(){return v_||(v_=1,gb=Function.prototype.apply),gb}var yb,E_;function Dq(){return E_||(E_=1,yb=typeof Reflect<"u"&&Reflect&&Reflect.apply),yb}var bb,w_;function Mq(){if(w_)return bb;w_=1;var e=Uh(),t=s3(),r=cw(),n=Dq();return bb=n||e.call(r,t),bb}var vb,S_;function u3(){if(S_)return vb;S_=1;var e=Uh(),t=Us(),r=cw(),n=Mq();return vb=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},vb}var Eb,x_;function Lq(){if(x_)return Eb;x_=1;var e=u3(),t=i3(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Eb=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(s){return i(s==null?s:o(s))}:!1,Eb}var wb,C_;function Bq(){if(C_)return wb;C_=1;var e=a3(),t=l3(),r=Lq();return wb=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,wb}var Sb,T_;function Fq(){if(T_)return Sb;T_=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Uh();return Sb=r.call(e,t),Sb}var xb,__;function dw(){if(__)return xb;__=1;var e,t=o3(),r=gq(),n=yq(),o=bq(),i=vq(),a=Eq(),s=Us(),c=wq(),d=Sq(),f=xq(),p=Cq(),h=Tq(),g=_q(),y=Rq(),E=Pq(),w=Function,b=function(ve){try{return w('"use strict"; return ('+ve+").constructor;")()}catch{}},S=i3(),R=Oq(),O=function(){throw new s},D=S?function(){try{return arguments.callee,O}catch{try{return S(arguments,"callee").get}catch{return O}}}():O,T=Nq()(),P=Bq(),_=l3(),N=a3(),V=s3(),L=cw(),K={},Y=typeof Uint8Array>"u"||!P?e:P(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":T&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&P?P(""[Symbol.iterator]()):e,"%Symbol%":T?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":D,"%TypedArray%":Y,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":V,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":_,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":h,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":E,"%Reflect.getPrototypeOf%":N};if(P)try{null.error}catch(ve){var M=P(P(ve));$["%Error.prototype%"]=M}var I=function ve(J){var me;if(J==="%AsyncFunction%")me=b("async function () {}");else if(J==="%GeneratorFunction%")me=b("function* () {}");else if(J==="%AsyncGeneratorFunction%")me=b("async function* () {}");else if(J==="%AsyncGenerator%"){var he=ve("%AsyncGeneratorFunction%");he&&(me=he.prototype)}else if(J==="%AsyncIteratorPrototype%"){var Se=ve("%AsyncGenerator%");Se&&P&&(me=P(Se.prototype))}return $[J]=me,me},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=Uh(),z=Fq(),F=k.call(L,Array.prototype.concat),q=k.call(V,Array.prototype.splice),U=k.call(L,String.prototype.replace),Z=k.call(L,String.prototype.slice),de=k.call(L,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,ge=function(J){var me=Z(J,0,1),he=Z(J,-1);if(me==="%"&&he!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(he==="%"&&me!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Se=[];return U(J,ee,function(_e,$e,Oe,Te){Se[Se.length]=Oe?U(Te,oe,"$1"):$e||_e}),Se},ye=function(J,me){var he=J,Se;if(z(B,he)&&(Se=B[he],he="%"+Se[0]+"%"),z($,he)){var _e=$[he];if(_e===K&&(_e=I(he)),typeof _e>"u"&&!me)throw new s("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:Se,name:he,value:_e}}throw new a("intrinsic "+J+" does not exist!")};return xb=function(J,me){if(typeof J!="string"||J.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof me!="boolean")throw new s('"allowMissing" argument must be a boolean');if(de(/^%?[^%]*%?$/,J)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var he=ge(J),Se=he.length>0?he[0]:"",_e=ye("%"+Se+"%",me),$e=_e.name,Oe=_e.value,Te=!1,et=_e.alias;et&&(Se=et[0],q(he,F([0,1],et)));for(var At=1,yt=!0;At<he.length;At+=1){var bt=he[At],It=Z(bt,0,1),br=Z(bt,-1);if((It==='"'||It==="'"||It==="`"||br==='"'||br==="'"||br==="`")&&It!==br)throw new a("property names with quotes must have matching quotes");if((bt==="constructor"||!yt)&&(Te=!0),Se+="."+bt,$e="%"+Se+"%",z($,$e))Oe=$[$e];else if(Oe!=null){if(!(bt in Oe)){if(!me)throw new s("base intrinsic for "+J+" exists, but the property is not available.");return}if(S&&At+1>=he.length){var vr=S(Oe,bt);yt=!!vr,yt&&"get"in vr&&!("originalValue"in vr.get)?Oe=vr.get:Oe=Oe[bt]}else yt=z(Oe,bt),Oe=Oe[bt];yt&&!Te&&($[$e]=Oe)}}return Oe},xb}var Cb,R_;function c3(){if(R_)return Cb;R_=1;var e=dw(),t=u3(),r=t([e("%String.prototype.indexOf%")]);return Cb=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Cb}var Tb,A_;function d3(){if(A_)return Tb;A_=1;var e=dw(),t=c3(),r=Hh(),n=Us(),o=e("%Map%",!0),i=t("Map.prototype.get",!0),a=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),d=t("Map.prototype.size",!0);return Tb=!!o&&function(){var p,h={assert:function(g){if(!h.has(g))throw new n("Side channel does not contain "+r(g))},delete:function(g){if(p){var y=c(p,g);return d(p)===0&&(p=void 0),y}return!1},get:function(g){if(p)return i(p,g)},has:function(g){return p?s(p,g):!1},set:function(g,y){p||(p=new o),a(p,g,y)}};return h},Tb}var _b,P_;function jq(){if(P_)return _b;P_=1;var e=dw(),t=c3(),r=Hh(),n=d3(),o=Us(),i=e("%WeakMap%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),d=t("WeakMap.prototype.delete",!0);return _b=i?function(){var p,h,g={assert:function(y){if(!g.has(y))throw new o("Side channel does not contain "+r(y))},delete:function(y){if(i&&y&&(typeof y=="object"||typeof y=="function")){if(p)return d(p,y)}else if(n&&h)return h.delete(y);return!1},get:function(y){return i&&y&&(typeof y=="object"||typeof y=="function")&&p?a(p,y):h&&h.get(y)},has:function(y){return i&&y&&(typeof y=="object"||typeof y=="function")&&p?c(p,y):!!h&&h.has(y)},set:function(y,E){i&&y&&(typeof y=="object"||typeof y=="function")?(p||(p=new i),s(p,y,E)):n&&(h||(h=n()),h.set(y,E))}};return g}:n,_b}var Rb,$_;function qq(){if($_)return Rb;$_=1;var e=Us(),t=Hh(),r=mq(),n=d3(),o=jq(),i=o||n||r;return Rb=function(){var s,c={assert:function(d){if(!c.has(d))throw new e("Side channel does not contain "+t(d))},delete:function(d){return!!s&&s.delete(d)},get:function(d){return s&&s.get(d)},has:function(d){return!!s&&s.has(d)},set:function(d,f){s||(s=i()),s.set(d,f)}};return c},Rb}var Ab,O_;function fw(){if(O_)return Ab;O_=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Ab={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Ab}var Pb,I_;function f3(){if(I_)return Pb;I_=1;var e=fw(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var w=[],b=0;b<256;++b)w.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return w}(),o=function(b){for(;b.length>1;){var S=b.pop(),R=S.obj[S.prop];if(r(R)){for(var O=[],D=0;D<R.length;++D)typeof R[D]<"u"&&O.push(R[D]);S.obj[S.prop]=O}}},i=function(b,S){for(var R=S&&S.plainObjects?{__proto__:null}:{},O=0;O<b.length;++O)typeof b[O]<"u"&&(R[O]=b[O]);return R},a=function w(b,S,R){if(!S)return b;if(typeof S!="object"&&typeof S!="function"){if(r(b))b.push(S);else if(b&&typeof b=="object")(R&&(R.plainObjects||R.allowPrototypes)||!t.call(Object.prototype,S))&&(b[S]=!0);else return[b,S];return b}if(!b||typeof b!="object")return[b].concat(S);var O=b;return r(b)&&!r(S)&&(O=i(b,R)),r(b)&&r(S)?(S.forEach(function(D,T){if(t.call(b,T)){var P=b[T];P&&typeof P=="object"&&D&&typeof D=="object"?b[T]=w(P,D,R):b.push(D)}else b[T]=D}),b):Object.keys(S).reduce(function(D,T){var P=S[T];return t.call(D,T)?D[T]=w(D[T],P,R):D[T]=P,D},O)},s=function(b,S){return Object.keys(S).reduce(function(R,O){return R[O]=S[O],R},b)},c=function(w,b,S){var R=w.replace(/\+/g," ");if(S==="iso-8859-1")return R.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(R)}catch{return R}},d=1024,f=function(b,S,R,O,D){if(b.length===0)return b;var T=b;if(typeof b=="symbol"?T=Symbol.prototype.toString.call(b):typeof b!="string"&&(T=String(b)),R==="iso-8859-1")return escape(T).replace(/%u[0-9a-f]{4}/gi,function(Y){return"%26%23"+parseInt(Y.slice(2),16)+"%3B"});for(var P="",_=0;_<T.length;_+=d){for(var N=T.length>=d?T.slice(_,_+d):T,V=[],L=0;L<N.length;++L){var K=N.charCodeAt(L);if(K===45||K===46||K===95||K===126||K>=48&&K<=57||K>=65&&K<=90||K>=97&&K<=122||D===e.RFC1738&&(K===40||K===41)){V[V.length]=N.charAt(L);continue}if(K<128){V[V.length]=n[K];continue}if(K<2048){V[V.length]=n[192|K>>6]+n[128|K&63];continue}if(K<55296||K>=57344){V[V.length]=n[224|K>>12]+n[128|K>>6&63]+n[128|K&63];continue}L+=1,K=65536+((K&1023)<<10|N.charCodeAt(L)&1023),V[V.length]=n[240|K>>18]+n[128|K>>12&63]+n[128|K>>6&63]+n[128|K&63]}P+=V.join("")}return P},p=function(b){for(var S=[{obj:{o:b},prop:"o"}],R=[],O=0;O<S.length;++O)for(var D=S[O],T=D.obj[D.prop],P=Object.keys(T),_=0;_<P.length;++_){var N=P[_],V=T[N];typeof V=="object"&&V!==null&&R.indexOf(V)===-1&&(S.push({obj:T,prop:N}),R.push(V))}return o(S),b},h=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},g=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},y=function(b,S){return[].concat(b,S)},E=function(b,S){if(r(b)){for(var R=[],O=0;O<b.length;O+=1)R.push(S(b[O]));return R}return S(b)};return Pb={arrayToObject:i,assign:s,combine:y,compact:p,decode:c,encode:f,isBuffer:g,isRegExp:h,maybeMap:E,merge:a},Pb}var $b,N_;function Hq(){if(N_)return $b;N_=1;var e=qq(),t=f3(),r=fw(),n=Object.prototype.hasOwnProperty,o={brackets:function(w){return w+"[]"},comma:"comma",indices:function(w,b){return w+"["+b+"]"},repeat:function(w){return w}},i=Array.isArray,a=Array.prototype.push,s=function(E,w){a.apply(E,i(w)?w:[w])},c=Date.prototype.toISOString,d=r.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:r.formatters[d],indices:!1,serializeDate:function(w){return c.call(w)},skipNulls:!1,strictNullHandling:!1},p=function(w){return typeof w=="string"||typeof w=="number"||typeof w=="boolean"||typeof w=="symbol"||typeof w=="bigint"},h={},g=function E(w,b,S,R,O,D,T,P,_,N,V,L,K,Y,$,M,I,B){for(var k=w,z=B,F=0,q=!1;(z=z.get(h))!==void 0&&!q;){var U=z.get(w);if(F+=1,typeof U<"u"){if(U===F)throw new RangeError("Cyclic object value");q=!0}typeof z.get(h)>"u"&&(F=0)}if(typeof N=="function"?k=N(b,k):k instanceof Date?k=K(k):S==="comma"&&i(k)&&(k=t.maybeMap(k,function($e){return $e instanceof Date?K($e):$e})),k===null){if(D)return _&&!M?_(b,f.encoder,I,"key",Y):b;k=""}if(p(k)||t.isBuffer(k)){if(_){var Z=M?b:_(b,f.encoder,I,"key",Y);return[$(Z)+"="+$(_(k,f.encoder,I,"value",Y))]}return[$(b)+"="+$(String(k))]}var de=[];if(typeof k>"u")return de;var ee;if(S==="comma"&&i(k))M&&_&&(k=t.maybeMap(k,_)),ee=[{value:k.length>0?k.join(",")||null:void 0}];else if(i(N))ee=N;else{var oe=Object.keys(k);ee=V?oe.sort(V):oe}var ge=P?String(b).replace(/\./g,"%2E"):String(b),ye=R&&i(k)&&k.length===1?ge+"[]":ge;if(O&&i(k)&&k.length===0)return ye+"[]";for(var ve=0;ve<ee.length;++ve){var J=ee[ve],me=typeof J=="object"&&J&&typeof J.value<"u"?J.value:k[J];if(!(T&&me===null)){var he=L&&P?String(J).replace(/\./g,"%2E"):String(J),Se=i(k)?typeof S=="function"?S(ye,he):ye:ye+(L?"."+he:"["+he+"]");B.set(w,F);var _e=e();_e.set(h,B),s(de,E(me,Se,S,R,O,D,T,P,S==="comma"&&M&&i(k)?null:_,N,V,L,K,Y,$,M,I,_e))}}return de},y=function(w){if(!w)return f;if(typeof w.allowEmptyArrays<"u"&&typeof w.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof w.encodeDotInKeys<"u"&&typeof w.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(w.encoder!==null&&typeof w.encoder<"u"&&typeof w.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=w.charset||f.charset;if(typeof w.charset<"u"&&w.charset!=="utf-8"&&w.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var S=r.default;if(typeof w.format<"u"){if(!n.call(r.formatters,w.format))throw new TypeError("Unknown format option provided.");S=w.format}var R=r.formatters[S],O=f.filter;(typeof w.filter=="function"||i(w.filter))&&(O=w.filter);var D;if(w.arrayFormat in o?D=w.arrayFormat:"indices"in w?D=w.indices?"indices":"repeat":D=f.arrayFormat,"commaRoundTrip"in w&&typeof w.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var T=typeof w.allowDots>"u"?w.encodeDotInKeys===!0?!0:f.allowDots:!!w.allowDots;return{addQueryPrefix:typeof w.addQueryPrefix=="boolean"?w.addQueryPrefix:f.addQueryPrefix,allowDots:T,allowEmptyArrays:typeof w.allowEmptyArrays=="boolean"?!!w.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:D,charset:b,charsetSentinel:typeof w.charsetSentinel=="boolean"?w.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!w.commaRoundTrip,delimiter:typeof w.delimiter>"u"?f.delimiter:w.delimiter,encode:typeof w.encode=="boolean"?w.encode:f.encode,encodeDotInKeys:typeof w.encodeDotInKeys=="boolean"?w.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof w.encoder=="function"?w.encoder:f.encoder,encodeValuesOnly:typeof w.encodeValuesOnly=="boolean"?w.encodeValuesOnly:f.encodeValuesOnly,filter:O,format:S,formatter:R,serializeDate:typeof w.serializeDate=="function"?w.serializeDate:f.serializeDate,skipNulls:typeof w.skipNulls=="boolean"?w.skipNulls:f.skipNulls,sort:typeof w.sort=="function"?w.sort:null,strictNullHandling:typeof w.strictNullHandling=="boolean"?w.strictNullHandling:f.strictNullHandling}};return $b=function(E,w){var b=E,S=y(w),R,O;typeof S.filter=="function"?(O=S.filter,b=O("",b)):i(S.filter)&&(O=S.filter,R=O);var D=[];if(typeof b!="object"||b===null)return"";var T=o[S.arrayFormat],P=T==="comma"&&S.commaRoundTrip;R||(R=Object.keys(b)),S.sort&&R.sort(S.sort);for(var _=e(),N=0;N<R.length;++N){var V=R[N],L=b[V];S.skipNulls&&L===null||s(D,g(L,V,T,P,S.allowEmptyArrays,S.strictNullHandling,S.skipNulls,S.encodeDotInKeys,S.encode?S.encoder:null,S.filter,S.sort,S.allowDots,S.serializeDate,S.format,S.formatter,S.encodeValuesOnly,S.charset,_))}var K=D.join(S.delimiter),Y=S.addQueryPrefix===!0?"?":"";return S.charsetSentinel&&(S.charset==="iso-8859-1"?Y+="utf8=%26%2310003%3B&":Y+="utf8=%E2%9C%93&"),K.length>0?Y+K:""},$b}var Ob,k_;function Uq(){if(k_)return Ob;k_=1;var e=f3(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(h){return h.replace(/&#(\d+);/g,function(g,y){return String.fromCharCode(parseInt(y,10))})},i=function(h,g,y){if(h&&typeof h=="string"&&g.comma&&h.indexOf(",")>-1)return h.split(",");if(g.throwOnLimitExceeded&&y>=g.arrayLimit)throw new RangeError("Array limit exceeded. Only "+g.arrayLimit+" element"+(g.arrayLimit===1?"":"s")+" allowed in an array.");return h},a="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",c=function(g,y){var E={__proto__:null},w=y.ignoreQueryPrefix?g.replace(/^\?/,""):g;w=w.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=y.parameterLimit===1/0?void 0:y.parameterLimit,S=w.split(y.delimiter,y.throwOnLimitExceeded?b+1:b);if(y.throwOnLimitExceeded&&S.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var R=-1,O,D=y.charset;if(y.charsetSentinel)for(O=0;O<S.length;++O)S[O].indexOf("utf8=")===0&&(S[O]===s?D="utf-8":S[O]===a&&(D="iso-8859-1"),R=O,O=S.length);for(O=0;O<S.length;++O)if(O!==R){var T=S[O],P=T.indexOf("]="),_=P===-1?T.indexOf("="):P+1,N,V;_===-1?(N=y.decoder(T,n.decoder,D,"key"),V=y.strictNullHandling?null:""):(N=y.decoder(T.slice(0,_),n.decoder,D,"key"),V=e.maybeMap(i(T.slice(_+1),y,r(E[N])?E[N].length:0),function(K){return y.decoder(K,n.decoder,D,"value")})),V&&y.interpretNumericEntities&&D==="iso-8859-1"&&(V=o(String(V))),T.indexOf("[]=")>-1&&(V=r(V)?[V]:V);var L=t.call(E,N);L&&y.duplicates==="combine"?E[N]=e.combine(E[N],V):(!L||y.duplicates==="last")&&(E[N]=V)}return E},d=function(h,g,y,E){var w=0;if(h.length>0&&h[h.length-1]==="[]"){var b=h.slice(0,-1).join("");w=Array.isArray(g)&&g[b]?g[b].length:0}for(var S=E?g:i(g,y,w),R=h.length-1;R>=0;--R){var O,D=h[R];if(D==="[]"&&y.parseArrays)O=y.allowEmptyArrays&&(S===""||y.strictNullHandling&&S===null)?[]:e.combine([],S);else{O=y.plainObjects?{__proto__:null}:{};var T=D.charAt(0)==="["&&D.charAt(D.length-1)==="]"?D.slice(1,-1):D,P=y.decodeDotInKeys?T.replace(/%2E/g,"."):T,_=parseInt(P,10);!y.parseArrays&&P===""?O={0:S}:!isNaN(_)&&D!==P&&String(_)===P&&_>=0&&y.parseArrays&&_<=y.arrayLimit?(O=[],O[_]=S):P!=="__proto__"&&(O[P]=S)}S=O}return S},f=function(g,y,E,w){if(g){var b=E.allowDots?g.replace(/\.([^.[]+)/g,"[$1]"):g,S=/(\[[^[\]]*])/,R=/(\[[^[\]]*])/g,O=E.depth>0&&S.exec(b),D=O?b.slice(0,O.index):b,T=[];if(D){if(!E.plainObjects&&t.call(Object.prototype,D)&&!E.allowPrototypes)return;T.push(D)}for(var P=0;E.depth>0&&(O=R.exec(b))!==null&&P<E.depth;){if(P+=1,!E.plainObjects&&t.call(Object.prototype,O[1].slice(1,-1))&&!E.allowPrototypes)return;T.push(O[1])}if(O){if(E.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+E.depth+" and strictDepth is true");T.push("["+b.slice(O.index)+"]")}return d(T,y,E,w)}},p=function(g){if(!g)return n;if(typeof g.allowEmptyArrays<"u"&&typeof g.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof g.decodeDotInKeys<"u"&&typeof g.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(g.decoder!==null&&typeof g.decoder<"u"&&typeof g.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof g.charset<"u"&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof g.throwOnLimitExceeded<"u"&&typeof g.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var y=typeof g.charset>"u"?n.charset:g.charset,E=typeof g.duplicates>"u"?n.duplicates:g.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var w=typeof g.allowDots>"u"?g.decodeDotInKeys===!0?!0:n.allowDots:!!g.allowDots;return{allowDots:w,allowEmptyArrays:typeof g.allowEmptyArrays=="boolean"?!!g.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof g.allowPrototypes=="boolean"?g.allowPrototypes:n.allowPrototypes,allowSparse:typeof g.allowSparse=="boolean"?g.allowSparse:n.allowSparse,arrayLimit:typeof g.arrayLimit=="number"?g.arrayLimit:n.arrayLimit,charset:y,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:n.charsetSentinel,comma:typeof g.comma=="boolean"?g.comma:n.comma,decodeDotInKeys:typeof g.decodeDotInKeys=="boolean"?g.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof g.decoder=="function"?g.decoder:n.decoder,delimiter:typeof g.delimiter=="string"||e.isRegExp(g.delimiter)?g.delimiter:n.delimiter,depth:typeof g.depth=="number"||g.depth===!1?+g.depth:n.depth,duplicates:E,ignoreQueryPrefix:g.ignoreQueryPrefix===!0,interpretNumericEntities:typeof g.interpretNumericEntities=="boolean"?g.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof g.parameterLimit=="number"?g.parameterLimit:n.parameterLimit,parseArrays:g.parseArrays!==!1,plainObjects:typeof g.plainObjects=="boolean"?g.plainObjects:n.plainObjects,strictDepth:typeof g.strictDepth=="boolean"?!!g.strictDepth:n.strictDepth,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof g.throwOnLimitExceeded=="boolean"?g.throwOnLimitExceeded:!1}};return Ob=function(h,g){var y=p(g);if(h===""||h===null||typeof h>"u")return y.plainObjects?{__proto__:null}:{};for(var E=typeof h=="string"?c(h,y):h,w=y.plainObjects?{__proto__:null}:{},b=Object.keys(E),S=0;S<b.length;++S){var R=b[S],O=f(R,E[R],y,typeof h=="string");w=e.merge(w,O,y)}return y.allowSparse===!0?w:e.compact(w)},Ob}var Ib,D_;function zq(){if(D_)return Ib;D_=1;var e=Hq(),t=Uq(),r=fw();return Ib={formats:r,parse:t,stringify:e},Ib}var p3=zq();const Kq=new Map([[void 0,/(unknown|success|approved|failed|pending|running)/],["unknown",/(success|approved|failed|pending|running)/],["success",/(approved|failed|pending|running)/],["approved",/(failed|pending|running)/],["failed",/(pending|running)/],["pending",/running/]]);function l1(e=[]){return{path:e,skip:!0,opened:!1,checked:!0,indeterminate:!1,children:{}}}function jp(e,t){var r;return t&&((r=Kq.get(e))!=null&&r.test(t))?t:e}function kn(e){const{browser:t,testName:r,storyPath:n}=e;return[...n,r,t].filter(Qt)}function Za(e,t){return t.reduce((r,n)=>gt(r)?r:r==null?void 0:r.children[n],e)}function Vq(e,t){const r=Za(e,t)??e;return gt(r)?r:null}function h3(e,t){e.checked=t,gt(e)||(e.indeterminate=!1,Object.values(e.children).filter(Qt).forEach(r=>{h3(r,t)}))}function s1(e){const t=Object.values(e.children).filter(Qt).filter(a=>!a.skip),r=t.every(a=>a.checked),n=t.some(a=>a.checked),o=t.some(a=>gt(a)?!1:a.indeterminate)||!r&&n,i=o||e.checked==r?e.checked:r;e.checked=i,e.indeterminate=o}function Wq(e,t,r){const n=Za(e,t);n&&h3(n,r),t.slice(0,-1).map((o,i,a)=>a.slice(0,a.length-i)).forEach(o=>{const i=Za(e,o);gt(i)||i&&s1(i)}),s1(e)}function Gq(e){const t=l1();return t.opened=!0,Object.values(e).forEach(r=>{if(!r)return;const[n,...o]=kn(r).reverse(),i=o.reverse().reduce((a,s)=>{const c=a.children[s]??l1([...a.path,s]);if(c.status=jp(c.status,r.status),r.skip||(c.skip=!1),c.skip||(a.skip=!1),a.children[s]=c,a.status=jp(a.status,c.status),gt(c))throw new Error(`Suite and Test should not have same path '${JSON.stringify(kn(c))}'`);return c},t);i.children[n]={...r,checked:!0}}),t}function pw(e){return Object.values(e.children).filter(Qt).flatMap(t=>gt(t)?t.checked?t:[]:!t.checked&&!t.indeterminate?[]:pw(t))}function m3(e){return Object.values(e.children).filter(Qt).flatMap(t=>gt(t)?t.status==="failed"?t:[]:m3(t))}function g3(e,t,r){const n=t.shift();if(!n)return;const o=e.children[n]??(e.children[n]={...t.length==0?r:l1([...e.path,n]),checked:e.checked});if(gt(o)){const i=o,{skip:a,status:s,results:c,approved:d}=r;Qt(a)&&(i.skip=a),Qt(s)&&(i.status=s),Qt(c)&&(i.results?i.results.push(...c):i.results=c),d===null?i.approved=null:d!==void 0&&Object.entries(d).forEach(([f,p])=>p!==void 0&&((i.approved=i.approved??{})[f]=p))}else g3(o,t,r);e.skip=Object.values(e.children).filter(Qt).map(({skip:i})=>i).every(Boolean),e.status=Object.values(e.children).filter(Qt).map(({status:i})=>i).reduce(jp)}function y3(e,t){const r=t.shift();if(!r)return;const n=e.children[r];n&&!gt(n)&&y3(n,t),(gt(n)||Object.keys((n==null?void 0:n.children)??{}).length==0)&&delete e.children[r],Object.keys(e.children).length!=0&&(s1(e),e.skip=Object.values(e.children).filter(Qt).map(({skip:o})=>o).every(Boolean),e.status=Object.values(e.children).filter(Qt).map(({status:o})=>o).reduce(jp))}function hw(e,t){const{status:r,subStrings:n}=t;if(!r&&!n.length)return e;const o={...e,children:{}};return Object.entries(e.children).forEach(([i,a])=>{if(!(!a||a.skip))if(!r&&n.some(s=>i.toLowerCase().includes(s)))o.children[i]=a;else if(gt(a))r&&a.status&&["pending","running",r].includes(a.status)&&(o.children[i]=a);else{const s=hw(a,t);if(Object.keys(s.children).length==0)return;o.children[i]=s}}),o}function Mf(e,t,r){const n=t.reduce((o,i)=>{if(o&&!gt(o))return r&&(o.opened=r),o.children[i]},e);n&&!gt(n)&&(n.opened=r)}function mw(e){return e.opened?Object.entries(e.children).flatMap(([t,r])=>r?[{title:t,suite:r},...gt(r)?[]:mw(r)]:[]):[]}function Yq(e){let t=0,r=0,n=0,o=0;const i=Object.values(e.children).filter(Qt);let a;for(;a=i.pop();)gt(a)?(a.status==="approved"&&n++,a.status==="success"&&t++,a.status==="failed"&&r++,a.status==="pending"&&o++):i.push(...Object.values(a.children).filter(Qt));return{approvedCount:n,successCount:t,failedCount:r,pendingCount:o}}function b3(){return[typeof __CREEVEY_SERVER_HOST__>"u"?window.location.hostname:__CREEVEY_SERVER_HOST__,typeof __CREEVEY_SERVER_PORT__>"u"?window.location.port:__CREEVEY_SERVER_PORT__].filter(Boolean).join(":")}function v3(e,t,r){const n=e.slice(-1)[0],o=window.location.host?`${window.location.protocol}//${b3()}${window.location.pathname=="/"&&!r?"/report":window.location.pathname.split("/").slice(0,-1).join("/")}/${encodeURI(e.slice(0,-1).join("/"))}`:encodeURI(e.slice(0,-1).join("/"));return t==n?o:`${o}/${encodeURI(n)}`}function gw(e){const t=parseFloat(getComputedStyle(e).borderTopWidth);return Number.isNaN(t)?0:t}function zh(e,t,r){const[n,o]=x.useState(!1);return x.useEffect(()=>{o(!1),Promise.all([e,t,r].map(i=>new Promise(a=>{const s=document.createElement("img");s.src=i,s.onload=a,s.onerror=a}))).then(()=>{o(!0)})},[e,t,r]),n}function E3(e,t,r=16){const n=x.useRef(null);x.useEffect(()=>{if(e.current)return n.current=new ResizeObserver(t),n.current.observe(e.current),()=>{var o;return(o=n.current)==null?void 0:o.disconnect()}},[r,e,t])}function ca(e,t,r){x.useLayoutEffect(()=>{if(!e.current)return;const n=e.current,o=gw(n);n.style.height=`${n.naturalHeight*t+o*2}px`},[e,t,r])}function yw(e,t){const[r,n]=x.useState(1),o=x.useCallback(()=>{const i=e.current;if(!i||!t){n(1);return}const a=gw(i),s=(i.getBoundingClientRect().width-a*2)/i.naturalWidth;n(Math.min(1,s))},[e,t]);return E3(e,o),x.useLayoutEffect(o,[o]),r}function Xq(e){const t=`?${p3.stringify({testPath:e})}`;window.history.pushState({testPath:e},"",t)}function Jq(){const{testPath:e}=p3.parse(window.location.search.slice(1));return Array.isArray(e)&&e.every(t=>typeof t=="string")?e:[]}const ed=H.createContext({isReport:!0,isRunning:!1,isUpdateMode:!1,onImageNext:cn,onImageApprove:cn,onApproveAll:cn,onStop:cn,onStart:cn,onSuiteOpen:cn,onSuiteToggle:cn,sidebarFocusedItem:[],setSidebarFocusedItem:cn}),zs=()=>x.useContext(ed),Qq=({children:e,rootSuite:t,filter:r})=>{const{onSuiteOpen:n,onSuiteToggle:o,sidebarFocusedItem:i,setSidebarFocusedItem:a}=zs(),s=mw(hw(t,r)),c=x.useCallback(f=>s.findIndex(p=>{const h=gt(p.suite)?kn(p.suite):p.suite.path;return f.length===h.length&&f.every(g=>h.includes(g))}),[s]),d=x.useCallback(f=>{var p;if(i!==null)switch(f.code){case"Enter":{if(i.length===0)return;const h=Za(t,i);if(!h)return;gt(h)||(f.preventDefault(),n(h.path,!h.opened)),gt(h)&&((p=h.results)==null?void 0:p.length)==0&&f.preventDefault();return}case"Space":{if(f.preventDefault(),f.altKey)return;const h=Za(t,i);if(!h)return;const g=gt(h)?kn(h):h.path;o(g,!h.checked);return}case"ArrowDown":{const h=i.length===0?-1:c(i);if(h===s.length-1)return;const g=s[h+1],y=gt(g.suite)?kn(g.suite):g.suite.path;a(y);return}case"ArrowUp":{const h=i.length===0?0:c(i),g=h>0?s[h-1].suite:t,y=gt(g)?kn(g):g.path;a(y);return}case"ArrowRight":{if(i.length===0)return;const h=Za(t,i);if(!h||gt(h))return;n(h.path,!0);return}case"ArrowLeft":{if(i.length===0)return;const h=Za(t,i);if(!h)return;if(!gt(h)&&h.opened){n(h.path,!1);return}const g=gt(h)?kn(h):h.path;a(g.slice(0,-1));return}}},[n,o,t,s,c,i,a]);return x.useEffect(()=>(document.addEventListener("keydown",d,!1),()=>{document.removeEventListener("keydown",d,!1)}),[d]),re.jsx(re.Fragment,{children:e})};function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qr.apply(null,arguments)}function Zq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _c(e,t){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},_c(e,t)}function eH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_c(e,t)}function u1(e){return u1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u1(e)}function tH(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function w3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w3=function(){return!!e})()}function rH(e,t,r){if(w3())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&_c(o,r.prototype),o}function c1(e){var t=typeof Map=="function"?new Map:void 0;return c1=function(n){if(n===null||!tH(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return rH(n,arguments,u1(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),_c(o,n)},c1(e)}var xo=function(e){eH(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,Zq(n)}return t}(c1(Error));function Nb(e){return Math.round(e*255)}function nH(e,t,r){return Nb(e)+","+Nb(t)+","+Nb(r)}function qp(e,t,r,n){if(n===void 0&&(n=nH),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,c=0,d=0;o>=0&&o<1?(s=i,c=a):o>=1&&o<2?(s=a,c=i):o>=2&&o<3?(c=i,d=a):o>=3&&o<4?(c=a,d=i):o>=4&&o<5?(s=a,d=i):o>=5&&o<6&&(s=i,d=a);var f=r-i/2,p=s+f,h=c+f,g=d+f;return n(p,h,g)}var M_={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function oH(e){if(typeof e!="string")return e;var t=e.toLowerCase();return M_[t]?"#"+M_[t]:e}var iH=/^#[a-fA-F0-9]{6}$/,aH=/^#[a-fA-F0-9]{8}$/,lH=/^#[a-fA-F0-9]{3}$/,sH=/^#[a-fA-F0-9]{4}$/,kb=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,uH=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,cH=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,dH=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Rc(e){if(typeof e!="string")throw new xo(3);var t=oH(e);if(t.match(iH))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(aH)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(lH))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(sH)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=kb.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=uH.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=cH.exec(t);if(a){var s=parseInt(""+a[1],10),c=parseInt(""+a[2],10)/100,d=parseInt(""+a[3],10)/100,f="rgb("+qp(s,c,d)+")",p=kb.exec(f);if(!p)throw new xo(4,t,f);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var h=dH.exec(t.substring(0,50));if(h){var g=parseInt(""+h[1],10),y=parseInt(""+h[2],10)/100,E=parseInt(""+h[3],10)/100,w="rgb("+qp(g,y,E)+")",b=kb.exec(w);if(!b)throw new xo(4,t,w);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new xo(5)}function fH(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var s,c=o-i,d=a>.5?c/(2-o-i):c/(o+i);switch(o){case t:s=(r-n)/c+(r<n?6:0);break;case r:s=(n-t)/c+2;break;default:s=(t-r)/c+4;break}return s*=60,e.alpha!==void 0?{hue:s,saturation:d,lightness:a,alpha:e.alpha}:{hue:s,saturation:d,lightness:a}}function ya(e){return fH(Rc(e))}var pH=function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},d1=pH;function Ga(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Db(e){return Ga(Math.round(e*255))}function hH(e,t,r){return d1("#"+Db(e)+Db(t)+Db(r))}function S3(e,t,r){return qp(e,t,r,hH)}function mH(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return S3(e.hue,e.saturation,e.lightness);throw new xo(1)}function gH(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?S3(e.hue,e.saturation,e.lightness):"rgba("+qp(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new xo(2)}function x3(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return d1("#"+Ga(e)+Ga(t)+Ga(r));if(typeof e=="object"&&t===void 0&&r===void 0)return d1("#"+Ga(e.red)+Ga(e.green)+Ga(e.blue));throw new xo(6)}function Kh(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?x3(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new xo(7)}var yH=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},bH=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},vH=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},EH=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function ba(e){if(typeof e!="object")throw new xo(8);if(bH(e))return Kh(e);if(yH(e))return x3(e);if(EH(e))return gH(e);if(vH(e))return mH(e);throw new xo(8)}function C3(e,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):C3(e,t,o)}}function vn(e){return C3(e,e.length,[])}function wH(e,t){if(t==="transparent")return t;var r=ya(t);return ba(Qr({},r,{hue:r.hue+parseFloat(e)}))}vn(wH);function Ks(e,t,r){return Math.max(e,Math.min(t,r))}function SH(e,t){if(t==="transparent")return t;var r=ya(t);return ba(Qr({},r,{lightness:Ks(0,1,r.lightness-parseFloat(e))}))}vn(SH);function xH(e,t){if(t==="transparent")return t;var r=ya(t);return ba(Qr({},r,{saturation:Ks(0,1,r.saturation-parseFloat(e))}))}vn(xH);function CH(e,t){if(t==="transparent")return t;var r=ya(t);return ba(Qr({},r,{lightness:Ks(0,1,r.lightness+parseFloat(e))}))}vn(CH);function TH(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Rc(t),o=Qr({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=Rc(r),a=Qr({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),s=o.alpha-a.alpha,c=parseFloat(e)*2-1,d=c*s===-1?c:c+s,f=1+c*s,p=(d/f+1)/2,h=1-p,g={red:Math.floor(o.red*p+a.red*h),green:Math.floor(o.green*p+a.green*h),blue:Math.floor(o.blue*p+a.blue*h),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return Kh(g)}var _H=vn(TH),T3=_H;function RH(e,t){if(t==="transparent")return t;var r=Rc(t),n=typeof r.alpha=="number"?r.alpha:1,o=Qr({},r,{alpha:Ks(0,1,(n*100+parseFloat(e)*100)/100)});return Kh(o)}var AH=vn(RH),Mb=AH;function PH(e,t){if(t==="transparent")return t;var r=ya(t);return ba(Qr({},r,{saturation:Ks(0,1,r.saturation+parseFloat(e))}))}vn(PH);function $H(e,t){return t==="transparent"?t:ba(Qr({},ya(t),{hue:parseFloat(e)}))}vn($H);function OH(e,t){return t==="transparent"?t:ba(Qr({},ya(t),{lightness:parseFloat(e)}))}vn(OH);function IH(e,t){return t==="transparent"?t:ba(Qr({},ya(t),{saturation:parseFloat(e)}))}vn(IH);function NH(e,t){return t==="transparent"?t:T3(parseFloat(e),"rgb(0, 0, 0)",t)}vn(NH);function kH(e,t){return t==="transparent"?t:T3(parseFloat(e),"rgb(255, 255, 255)",t)}vn(kH);function DH(e,t){if(t==="transparent")return t;var r=Rc(t),n=typeof r.alpha=="number"?r.alpha:1,o=Qr({},r,{alpha:Ks(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Kh(o)}var MH=vn(DH),ss=MH;const LH="modulepreload",BH=function(e,t){return new URL(e,t).href},L_={},vs=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let a=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const s=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),d=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));o=a(r.map(f=>{if(f=BH(f,n),f in L_)return;L_[f]=!0;const p=f.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(!!n)for(let E=s.length-1;E>=0;E--){const w=s[E];if(w.href===f&&(!p||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${h}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":LH,p||(y.as="script"),y.crossOrigin="",y.href=f,d&&y.setAttribute("nonce",d),document.head.appendChild(y),p)return new Promise((E,w)=>{y.addEventListener("load",E),y.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};var td=TI();const _3=JE(td);var FH=Q.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:"inline-flex",marginInlineStart:"auto",alignSelf:"flex-end"}:{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",zIndex:1}]),R3=Q.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});R3.displayName="ActionButton";var T1e=({actionItems:e,flexLayout:t=!1,...r})=>H.createElement(FH,{...r,$flexLayout:t},e.map(({title:n,className:o,onClick:i,disabled:a},s)=>H.createElement(R3,{key:s,className:o,onClick:i,disabled:!!a},n)));function jH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function A3(...e){return t=>e.forEach(r=>jH(r,t))}function bl(...e){return x.useCallback(A3(...e),e)}var P3=x.forwardRef((e,t)=>{let{children:r,...n}=e,o=x.Children.toArray(r),i=o.find(HH);if(i){let a=i.props.children,s=o.map(c=>c===i?x.Children.count(a)>1?x.Children.only(null):x.isValidElement(a)?a.props.children:null:c);return re.jsx(f1,{...n,ref:t,children:x.isValidElement(a)?x.cloneElement(a,void 0,s):null})}return re.jsx(f1,{...n,ref:t,children:r})});P3.displayName="Slot";var f1=x.forwardRef((e,t)=>{let{children:r,...n}=e;if(x.isValidElement(r)){let o=zH(r);return x.cloneElement(r,{...UH(n,r.props),ref:t?A3(t,o):o})}return x.Children.count(r)>1?x.Children.only(null):null});f1.displayName="SlotClone";var qH=({children:e})=>re.jsx(re.Fragment,{children:e});function HH(e){return x.isValidElement(e)&&e.type===qH}function UH(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function zH(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var KH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rd=KH.reduce((e,t)=>{let r=x.forwardRef((n,o)=>{let{asChild:i,...a}=n,s=i?P3:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),re.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),p1=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{};function VH(e,t){return x.useReducer((r,n)=>t[r][n]??r,e)}var nd=e=>{let{present:t,children:r}=e,n=WH(t),o=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),i=bl(n.ref,GH(o));return typeof r=="function"||n.isPresent?x.cloneElement(o,{ref:i}):null};nd.displayName="Presence";function WH(e){let[t,r]=x.useState(),n=x.useRef({}),o=x.useRef(e),i=x.useRef("none"),a=e?"mounted":"unmounted",[s,c]=VH(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{let d=Lf(n.current);i.current=s==="mounted"?d:"none"},[s]),p1(()=>{let d=n.current,f=o.current;if(f!==e){let p=i.current,h=Lf(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),p1(()=>{if(t){let d=p=>{let h=Lf(n.current).includes(p.animationName);p.target===t&&h&&td.flushSync(()=>c("ANIMATION_END"))},f=p=>{p.target===t&&(i.current=Lf(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:x.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function Lf(e){return(e==null?void 0:e.animationName)||"none"}function GH(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function YH(e,t=[]){let r=[];function n(i,a){let s=x.createContext(a),c=r.length;r=[...r,a];function d(p){let{scope:h,children:g,...y}=p,E=(h==null?void 0:h[e][c])||s,w=x.useMemo(()=>y,Object.values(y));return re.jsx(E.Provider,{value:w,children:g})}function f(p,h){let g=(h==null?void 0:h[e][c])||s,y=x.useContext(g);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,f]}let o=()=>{let i=r.map(a=>x.createContext(a));return function(a){let s=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[n,XH(o,...t)]}function XH(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let i=n.reduce((a,{useScope:s,scopeName:c})=>{let d=s(o)[`__scope${c}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Qa(e){let t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var JH=x.createContext(void 0);function QH(e){let t=x.useContext(JH);return e||t||"ltr"}function ZH(e,[t,r]){return Math.min(r,Math.max(t,e))}function tl(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function eU(e,t){return x.useReducer((r,n)=>t[r][n]??r,e)}var bw="ScrollArea",[$3,_1e]=YH(bw),[tU,Fn]=$3(bw),O3=x.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=e,[s,c]=x.useState(null),[d,f]=x.useState(null),[p,h]=x.useState(null),[g,y]=x.useState(null),[E,w]=x.useState(null),[b,S]=x.useState(0),[R,O]=x.useState(0),[D,T]=x.useState(!1),[P,_]=x.useState(!1),N=bl(t,L=>c(L)),V=QH(o);return re.jsx(tU,{scope:r,type:n,dir:V,scrollHideDelay:i,scrollArea:s,viewport:d,onViewportChange:f,content:p,onContentChange:h,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:D,onScrollbarXEnabledChange:T,scrollbarY:E,onScrollbarYChange:w,scrollbarYEnabled:P,onScrollbarYEnabledChange:_,onCornerWidthChange:S,onCornerHeightChange:O,children:re.jsx(rd.div,{dir:V,...a,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":R+"px",...e.style}})})});O3.displayName=bw;var I3="ScrollAreaViewport",N3=x.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...a}=e,s=Fn(I3,r),c=x.useRef(null),d=bl(t,c,s.onViewportChange);return re.jsxs(re.Fragment,{children:[re.jsx("style",{dangerouslySetInnerHTML:{__html:`
[data-radix-scroll-area-viewport] {
scrollbar-width: none;
-ms-overflow-style: none;
-webkit-overflow-scrolling: touch;
}
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
display: none;
}
:where([data-radix-scroll-area-viewport]) {
display: flex;
flex-direction: column;
align-items: stretch;
}
:where([data-radix-scroll-area-content]) {
flex-grow: 1;
}
`},nonce:i}),re.jsx(rd.div,{"data-radix-scroll-area-viewport":"",...a,asChild:o,ref:d,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:dU({asChild:o,children:n},f=>re.jsx("div",{"data-radix-scroll-area-content":"",ref:s.onContentChange,style:{minWidth:s.scrollbarXEnabled?"fit-content":void 0},children:f}))})]})});N3.displayName=I3;var ko="ScrollAreaScrollbar",k3=x.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Fn(ko,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=e.orientation==="horizontal";return x.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?re.jsx(rU,{...n,ref:t,forceMount:r}):o.type==="scroll"?re.jsx(nU,{...n,ref:t,forceMount:r}):o.type==="auto"?re.jsx(D3,{...n,ref:t,forceMount:r}):o.type==="always"?re.jsx(vw,{...n,ref:t}):null});k3.displayName=ko;var rU=x.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Fn(ko,e.__scopeScrollArea),[i,a]=x.useState(!1);return x.useEffect(()=>{let s=o.scrollArea,c=0;if(s){let d=()=>{window.clearTimeout(c),a(!0)},f=()=>{c=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",d),s.addEventListener("pointerleave",f),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",d),s.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),re.jsx(nd,{present:r||i,children:re.jsx(D3,{"data-state":i?"visible":"hidden",...n,ref:t})})}),nU=x.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Fn(ko,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Wh(()=>c("SCROLL_END"),100),[s,c]=eU("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return x.useEffect(()=>{if(s==="idle"){let d=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[s,o.scrollHideDelay,c]),x.useEffect(()=>{let d=o.viewport,f=i?"scrollLeft":"scrollTop";if(d){let p=d[f],h=()=>{let g=d[f];p!==g&&(c("SCROLL"),a()),p=g};return d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[o.viewport,i,c,a]),re.jsx(nd,{present:r||s!=="hidden",children:re.jsx(vw,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:tl(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:tl(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),D3=x.forwardRef((e,t)=>{let r=Fn(ko,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,a]=x.useState(!1),s=e.orientation==="horizontal",c=Wh(()=>{if(r.viewport){let d=r.viewport.offsetWidth<r.viewport.scrollWidth,f=r.viewport.offsetHeight<r.viewport.scrollHeight;a(s?d:f)}},10);return Es(r.viewport,c),Es(r.content,c),re.jsx(nd,{present:n||i,children:re.jsx(vw,{"data-state":i?"visible":"hidden",...o,ref:t})})}),vw=x.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=Fn(ko,e.__scopeScrollArea),i=x.useRef(null),a=x.useRef(0),[s,c]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=j3(s.viewport,s.content),f={...n,sizes:s,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:h=>i.current=h,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:h=>a.current=h};function p(h,g){return uU(h,a.current,s,g)}return r==="horizontal"?re.jsx(oU,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let h=o.viewport.scrollLeft,g=B_(h,s,o.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=p(h,o.dir))}}):r==="vertical"?re.jsx(iU,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let h=o.viewport.scrollTop,g=B_(h,s);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=p(h))}}):null}),oU=x.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Fn(ko,e.__scopeScrollArea),[a,s]=x.useState(),c=x.useRef(null),d=bl(t,c,i.onScrollbarXChange);return x.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),re.jsx(L3,{"data-orientation":"horizontal",...o,ref:d,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Vh(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,p)=>{if(i.viewport){let h=i.viewport.scrollLeft+f.deltaX;e.onWheelScroll(h),H3(h,p)&&f.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Up(a.paddingLeft),paddingEnd:Up(a.paddingRight)}})}})}),iU=x.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Fn(ko,e.__scopeScrollArea),[a,s]=x.useState(),c=x.useRef(null),d=bl(t,c,i.onScrollbarYChange);return x.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),re.jsx(L3,{"data-orientation":"vertical",...o,ref:d,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Vh(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,p)=>{if(i.viewport){let h=i.viewport.scrollTop+f.deltaY;e.onWheelScroll(h),H3(h,p)&&f.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Up(a.paddingTop),paddingEnd:Up(a.paddingBottom)}})}})}),[aU,M3]=$3(ko),L3=x.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:f,onResize:p,...h}=e,g=Fn(ko,r),[y,E]=x.useState(null),w=bl(t,N=>E(N)),b=x.useRef(null),S=x.useRef(""),R=g.viewport,O=n.content-n.viewport,D=Qa(f),T=Qa(c),P=Wh(p,10);function _(N){if(b.current){let V=N.clientX-b.current.left,L=N.clientY-b.current.top;d({x:V,y:L})}}return x.useEffect(()=>{let N=V=>{let L=V.target;y!=null&&y.contains(L)&&D(V,O)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[R,y,O,D]),x.useEffect(T,[n,T]),Es(y,P),Es(g.content,P),re.jsx(aU,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:Qa(i),onThumbPointerUp:Qa(a),onThumbPositionChange:T,onThumbPointerDown:Qa(s),children:re.jsx(rd.div,{...h,ref:w,style:{position:"absolute",...h.style},onPointerDown:tl(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),b.current=y.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),_(N))}),onPointerMove:tl(e.onPointerMove,_),onPointerUp:tl(e.onPointerUp,N=>{let V=N.target;V.hasPointerCapture(N.pointerId)&&V.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=S.current,g.viewport&&(g.viewport.style.scrollBehavior=""),b.current=null})})})}),Hp="ScrollAreaThumb",B3=x.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=M3(Hp,e.__scopeScrollArea);return re.jsx(nd,{present:r||o.hasThumb,children:re.jsx(lU,{ref:t,...n})})}),lU=x.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,i=Fn(Hp,r),a=M3(Hp,r),{onThumbPositionChange:s}=a,c=bl(t,p=>a.onThumbChange(p)),d=x.useRef(),f=Wh(()=>{d.current&&(d.current(),d.current=void 0)},100);return x.useEffect(()=>{let p=i.viewport;if(p){let h=()=>{if(f(),!d.current){let g=cU(p,s);d.current=g,s()}};return s(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[i.viewport,f,s]),re.jsx(rd.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:tl(e.onPointerDownCapture,p=>{let h=p.target.getBoundingClientRect(),g=p.clientX-h.left,y=p.clientY-h.top;a.onThumbPointerDown({x:g,y})}),onPointerUp:tl(e.onPointerUp,a.onThumbPointerUp)})});B3.displayName=Hp;var Ew="ScrollAreaCorner",F3=x.forwardRef((e,t)=>{let r=Fn(Ew,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?re.jsx(sU,{...e,ref:t}):null});F3.displayName=Ew;var sU=x.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=Fn(Ew,r),[i,a]=x.useState(0),[s,c]=x.useState(0),d=!!(i&&s);return Es(o.scrollbarX,()=>{var p;let f=((p=o.scrollbarX)==null?void 0:p.offsetHeight)||0;o.onCornerHeightChange(f),c(f)}),Es(o.scrollbarY,()=>{var p;let f=((p=o.scrollbarY)==null?void 0:p.offsetWidth)||0;o.onCornerWidthChange(f),a(f)}),d?re.jsx(rd.div,{...n,ref:t,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Up(e){return e?parseInt(e,10):0}function j3(e,t){let r=e/t;return isNaN(r)?0:r}function Vh(e){let t=j3(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function uU(e,t,r,n="ltr"){let o=Vh(r),i=o/2,a=t||i,s=o-a,c=r.scrollbar.paddingStart+a,d=r.scrollbar.size-r.scrollbar.paddingEnd-s,f=r.content-r.viewport,p=n==="ltr"?[0,f]:[f*-1,0];return q3([c,d],p)(e)}function B_(e,t,r="ltr"){let n=Vh(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=i-n,c=r==="ltr"?[0,a]:[a*-1,0],d=ZH(e,c);return q3([0,a],[0,s])(d)}function q3(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function H3(e,t){return e>0&&e<t}var cU=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,s=r.top!==i.top;(a||s)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Wh(e,t){let r=Qa(e),n=x.useRef(0);return x.useEffect(()=>()=>window.clearTimeout(n.current),[]),x.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Es(e,t){let r=Qa(t);p1(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function dU(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=x.Children.only(n);return x.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var fU=O3,pU=N3,hU=k3,mU=B3,gU=F3,yU=Q(fU)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),bU=Q(pU)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),F_=Q(hU)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),j_=Q(mU)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out",zIndex:1,"&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),Gh=x.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:i=0,className:a,focusable:s=!1},c)=>H.createElement(yU,{scrollbarsize:o,offset:n,className:a},H.createElement(bU,{ref:c,style:{scrollPadding:i},tabIndex:s?0:void 0,focusable:s},e),t&&H.createElement(F_,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},H.createElement(j_,null)),r&&H.createElement(F_,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},H.createElement(j_,null)),t&&r&&H.createElement(gU,null)));Gh.displayName="ScrollArea";var{document:Hu,window:h1}=Re;async function vU(e){var t;try{await((t=h1.top)==null?void 0:t.navigator.clipboard.writeText(e))}catch{await h1.navigator.clipboard.writeText(e)}}async function EU(e){let t=Hu.createElement("TEXTAREA"),r=Hu.activeElement;t.value=e,Hu.body.appendChild(t),t.select(),Hu.execCommand("copy"),Hu.body.removeChild(t),r.focus()}function R1e(){var e;return(e=h1.navigator)!=null&&e.clipboard?vU:EU}function wU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function SU(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}var xU=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),U3=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),CU=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),TU=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),_U=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),RU=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),AU=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),PU=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),q_=new Map,$U="UNIVERSAL_STORE:",An={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Ya=class je{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let i=typeof n=="function",a=i?"*":n,s=i?n:o;if(this.debug("subscribe",{eventType:a,listener:s}),!s)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(a)||this.listeners.set(a,new Set),this.listeners.get(a).add(s),()=>{var c;this.debug("unsubscribe",{eventType:a,listener:s}),this.listeners.has(a)&&(this.listeners.get(a).delete(s),((c=this.listeners.get(a))==null?void 0:c.size)===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==je.Status.READY)throw new TypeError(Fr`Cannot send event before store is ready. You can get the current status with store.status,
or await store.readyPromise to wait for the store to be ready before sending events.
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!je.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(je.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?je.ActorType.LEADER:je.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${$U}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===je.ActorType.LEADER)this.syncing={state:An.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((a,s)=>{n=()=>{this.syncing.state===An.PENDING&&(this.syncing.state=An.RESOLVED,a())},o=c=>{this.syncing.state===An.PENDING&&(this.syncing.state=An.REJECTED,s(c))}});this.syncing={state:An.PENDING,promise:i,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=(r==null?void 0:r.channel)??je.preparation.channel,this.environment=(r==null?void 0:r.environment)??je.preparation.environment,this.channel&&this.environment?(je.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):je.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});je.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??je.Environment.UNKNOWN})}get status(){var t;if(!this.channel||!this.environment)return je.Status.UNPREPARED;switch((t=this.syncing)==null?void 0:t.state){case An.PENDING:case void 0:return je.Status.SYNCING;case An.REJECTED:return je.Status.ERROR;case An.RESOLVED:default:return je.Status.READY}}untilReady(){var t;return Promise.all([je.preparation.promise,(t=this.syncing)==null?void 0:t.promise])}static create(t){if(!t||typeof(t==null?void 0:t.id)!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Fr`[UniversalStore]
create`,{options:t});let r=q_.get(t.id);if(r)return console.warn(Fr`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
You should reuse the existing instance instead of trying to create a new one.`),r;je.isInternalConstructing=!0;let n=new je(t);return q_.set(t.id,n),n}static __prepare(t,r){je.preparation.channel=t,je.preparation.environment=r,je.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==je.Status.READY)throw new TypeError(Fr`Cannot set state before store is ready. You can get the current status with store.status,
or await store.readyPromise to wait for the store to be ready before sending events.
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:je.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(je.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){var n;this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),(n=this.channel)==null||n.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===je.ActorType.LEADER?this.emitToChannel({type:je.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:je.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:je.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(i=>i(t,r))}handleChannelEvents(t){var o,i,a,s,c;let{event:r,eventInfo:n}=t;if([n.actor.id,(o=n.forwardingActor)==null?void 0:o.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(((i=this.syncing)==null?void 0:i.state)===An.PENDING&&r.type!==je.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===je.ActorType.LEADER){let d=!0;switch(r.type){case je.InternalEventType.EXISTING_STATE_REQUEST:d=!1;let f={type:je.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:f}),this.emitToChannel(f,{actor:this.actor}),this.emitToListeners(f,{actor:this.actor});break;case je.InternalEventType.LEADER_CREATED:d=!1,this.syncing.state=An.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Fr`Detected multiple UniversalStore leaders created with the same id "${this.id}".
Only one leader can exists at a time, your stores are now in an invalid state.
Leaders detected:
this: ${JSON.stringify(this.actor,null,2)}
other: ${JSON.stringify(n.actor,null,2)}`);break}d&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===je.ActorType.FOLLOWER)switch(r.type){case je.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),((a=this.syncing)==null?void 0:a.state)!==An.PENDING)break;(c=(s=this.syncing).resolve)==null||c.call(s);let d={type:je.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(d,n);break}switch(r.type){case je.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Fr`[UniversalStore::${this.id}::${this.environment??je.Environment.UNKNOWN}]
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){je.preparation.reject(new Error("reset")),je.setupPreparationPromise(),je.isInternalConstructing=!1}};Ya.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Ya.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Ya.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},Ya.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Ya.isInternalConstructing=!1,Ya.setupPreparationPromise();var ww=Ya,OU=Object.create,z3=Object.defineProperty,IU=Object.getOwnPropertyDescriptor,K3=Object.getOwnPropertyNames,NU=Object.getPrototypeOf,kU=Object.prototype.hasOwnProperty,Ue=(e,t)=>function(){return t||(0,e[K3(e)[0]])((t={exports:{}}).exports,t),t.exports},DU=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of K3(t))!kU.call(e,o)&&o!==r&&z3(e,o,{get:()=>t[o],enumerable:!(n=IU(t,o))||n.enumerable});return e},Sw=(e,t,r)=>(r=e!=null?OU(NU(e)):{},DU(!e||!e.__esModule?z3(r,"default",{value:e,enumerable:!0}):r,e)),MU=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],LU=["detail"];function BU(e){let t=MU.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of LU.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var V3=Ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),FU=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),jU=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),qU=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),HU=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),UU=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),xw=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),zU=Ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),KU=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),VU=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),WU=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),GU=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),YU=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),XU=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),JU=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),QU=Ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=JU();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),ZU=Ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Cw=Ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=ZU();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),ez=Ue({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),W3=Ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(r,n);if(c.value!==i||c.enumerable!==!0)return!1}return!0}}}),G3=Ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=W3();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),Y3=Ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),X3=Ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=V3();t.exports=r.getPrototypeOf||null}}),tz=Ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(d,f){for(var p=[],h=0;h<d.length;h+=1)p[h]=d[h];for(var g=0;g<f.length;g+=1)p[g+d.length]=f[g];return p},s=function(d,f){for(var p=[],h=f,g=0;h<d.length;h+=1,g+=1)p[g]=d[h];return p},c=function(d,f){for(var p="",h=0;h<d.length;h+=1)p+=d[h],h+1<d.length&&(p+=f);return p};t.exports=function(d){var f=this;if(typeof f!="function"||n.apply(f)!==i)throw new TypeError(r+f);for(var p=s(arguments,1),h,g=function(){if(this instanceof h){var S=f.apply(this,a(p,arguments));return Object(S)===S?S:this}return f.apply(d,a(p,arguments))},y=o(0,f.length-p.length),E=[],w=0;w<y;w++)E[w]="$"+w;if(h=Function("binder","return function ("+c(E,",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var b=function(){};b.prototype=f.prototype,h.prototype=new b,b.prototype=null}return h}}}),Yh=Ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=tz();t.exports=Function.prototype.bind||r}}),Tw=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),J3=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),rz=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),nz=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Yh(),n=J3(),o=Tw(),i=rz();t.exports=i||r.call(o,n)}}),Q3=Ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Yh(),n=xw(),o=Tw(),i=nz();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),oz=Ue({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Q3(),n=Cw(),o;try{o=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof s=="function"?function(c){return s(c==null?c:a(c))}:!1}}),iz=Ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Y3(),n=X3(),o=oz();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),Z3=Ue({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Yh();t.exports=o.call(r,n)}}),az=Ue({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=V3(),o=FU(),i=jU(),a=qU(),s=HU(),c=UU(),d=xw(),f=zU(),p=KU(),h=VU(),g=WU(),y=GU(),E=YU(),w=XU(),b=QU(),S=Function,R=function(me){try{return S('"use strict"; return ('+me+").constructor;")()}catch{}},O=Cw(),D=ez(),T=function(){throw new d},P=O?function(){try{return arguments.callee,T}catch{try{return O(arguments,"callee").get}catch{return T}}}():T,_=G3()(),N=iz(),V=X3(),L=Y3(),K=J3(),Y=Tw(),$={},M=typeof Uint8Array>"u"||!N?r:N(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&N?N([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&N?N(N([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!N?r:N(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!N?r:N(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&N?N(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":P,"%TypedArray%":M,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":Y,"%Function.prototype.apply%":K,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":V,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":E,"%Math.round%":w,"%Math.sign%":b,"%Reflect.getPrototypeOf%":L};if(N)try{null.error}catch(me){B=N(N(me)),I["%Error.prototype%"]=B}var B,k=function me(he){var Se;if(he==="%AsyncFunction%")Se=R("async function () {}");else if(he==="%GeneratorFunction%")Se=R("function* () {}");else if(he==="%AsyncGeneratorFunction%")Se=R("async function* () {}");else if(he==="%AsyncGenerator%"){var _e=me("%AsyncGeneratorFunction%");_e&&(Se=_e.prototype)}else if(he==="%AsyncIteratorPrototype%"){var $e=me("%AsyncGenerator%");$e&&N&&(Se=N($e.prototype))}return I[he]=Se,Se},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=Yh(),q=Z3(),U=F.call(Y,Array.prototype.concat),Z=F.call(K,Array.prototype.splice),de=F.call(Y,String.prototype.replace),ee=F.call(Y,String.prototype.slice),oe=F.call(Y,RegExp.prototype.exec),ge=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ye=/\\(\\)?/g,ve=function(me){var he=ee(me,0,1),Se=ee(me,-1);if(he==="%"&&Se!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(Se==="%"&&he!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var _e=[];return de(me,ge,function($e,Oe,Te,et){_e[_e.length]=Te?de(et,ye,"$1"):Oe||$e}),_e},J=function(me,he){var Se=me,_e;if(q(z,Se)&&(_e=z[Se],Se="%"+_e[0]+"%"),q(I,Se)){var $e=I[Se];if($e===$&&($e=k(Se)),typeof $e>"u"&&!he)throw new d("intrinsic "+me+" exists, but is not available. Please file an issue!");return{alias:_e,name:Se,value:$e}}throw new c("intrinsic "+me+" does not exist!")};t.exports=function(me,he){if(typeof me!="string"||me.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');if(oe(/^%?[^%]*%?$/,me)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Se=ve(me),_e=Se.length>0?Se[0]:"",$e=J("%"+_e+"%",he),Oe=$e.name,Te=$e.value,et=!1,At=$e.alias;At&&(_e=At[0],Z(Se,U([0,1],At)));for(var yt=1,bt=!0;yt<Se.length;yt+=1){var It=Se[yt],br=ee(It,0,1),vr=ee(It,-1);if((br==='"'||br==="'"||br==="`"||vr==='"'||vr==="'"||vr==="`")&&br!==vr)throw new c("property names with quotes must have matching quotes");if((It==="constructor"||!bt)&&(et=!0),_e+="."+It,Oe="%"+_e+"%",q(I,Oe))Te=I[Oe];else if(Te!=null){if(!(It in Te)){if(!he)throw new d("base intrinsic for "+me+" exists, but the property is not available.");return}if(O&&yt+1>=Se.length){var qn=O(Te,It);bt=!!qn,bt&&"get"in qn&&!("originalValue"in qn.get)?Te=qn.get:Te=Te[It]}else bt=q(Te,It),Te=Te[It];bt&&!et&&(I[Oe]=Te)}}return Te}}}),_w=Ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=az(),n=Q3(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var s=r(i,!!a);return typeof s=="function"&&o(i,".prototype.")>-1?n([s]):s}}}),lz=Ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=W3();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),e5=Ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=_w(),n=lz()(),o=Z3(),i=Cw(),a;n?(s=r("RegExp.prototype.exec"),c={},d=function(){throw c},f={toString:d,valueOf:d},typeof Symbol.toPrimitive=="symbol"&&(f[Symbol.toPrimitive]=d),a=function(g){if(!g||typeof g!="object")return!1;var y=i(g,"lastIndex"),E=y&&o(y,"value");if(!E)return!1;try{s(g,f)}catch(w){return w===c}}):(p=r("Object.prototype.toString"),h="[object RegExp]",a=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:p(g)===h});var s,c,d,f,p,h;t.exports=a}}),sz=Ue({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),uz=Ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=_w(),n=e5(),o=r("RegExp.prototype.exec"),i=xw();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(s){return o(a,s)!==null}}}}),cz=Ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=_w(),n=r("Object.prototype.toString"),o=G3()(),i=uz();o?(a=r("Symbol.prototype.toString"),s=i(/^Symbol\(.*\)$/),c=function(d){return typeof d.valueOf()!="symbol"?!1:s(a(d))},t.exports=function(d){if(typeof d=="symbol")return!0;if(!d||typeof d!="object"||n(d)!=="[object Symbol]")return!1;try{return c(d)}catch{return!1}}):t.exports=function(d){return!1};var a,s,c}}),dz=Sw(e5()),fz=Sw(sz()),pz=Sw(cz());function hz(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var mz=typeof global=="object"&&global&&global.Object===Object&&global,gz=mz,yz=typeof self=="object"&&self&&self.Object===Object&&self,bz=gz||yz||Function("return this")(),Rw=bz,vz=Rw.Symbol,ws=vz,t5=Object.prototype,Ez=t5.hasOwnProperty,wz=t5.toString,Uu=ws?ws.toStringTag:void 0;function Sz(e){var t=Ez.call(e,Uu),r=e[Uu];try{e[Uu]=void 0;var n=!0}catch{}var o=wz.call(e);return n&&(t?e[Uu]=r:delete e[Uu]),o}var xz=Sz,Cz=Object.prototype,Tz=Cz.toString;function _z(e){return Tz.call(e)}var Rz=_z,Az="[object Null]",Pz="[object Undefined]",H_=ws?ws.toStringTag:void 0;function $z(e){return e==null?e===void 0?Pz:Az:H_&&H_ in Object(e)?xz(e):Rz(e)}var r5=$z;function Oz(e){return e!=null&&typeof e=="object"}var Iz=Oz,Nz="[object Symbol]";function kz(e){return typeof e=="symbol"||Iz(e)&&r5(e)==Nz}var Aw=kz;function Dz(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var Mz=Dz,Lz=Array.isArray,Pw=Lz,U_=ws?ws.prototype:void 0,z_=U_?U_.toString:void 0;function n5(e){if(typeof e=="string")return e;if(Pw(e))return Mz(e,n5)+"";if(Aw(e))return z_?z_.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Bz=n5;function Fz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var o5=Fz,jz="[object AsyncFunction]",qz="[object Function]",Hz="[object GeneratorFunction]",Uz="[object Proxy]";function zz(e){if(!o5(e))return!1;var t=r5(e);return t==qz||t==Hz||t==jz||t==Uz}var Kz=zz,Vz=Rw["__core-js_shared__"],Lb=Vz,K_=function(){var e=/[^.]+$/.exec(Lb&&Lb.keys&&Lb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Wz(e){return!!K_&&K_ in e}var Gz=Wz,Yz=Function.prototype,Xz=Yz.toString;function Jz(e){if(e!=null){try{return Xz.call(e)}catch{}try{return e+""}catch{}}return""}var Qz=Jz,Zz=/[\\^$.*+?()[\]{}|]/g,eK=/^\[object .+?Constructor\]$/,tK=Function.prototype,rK=Object.prototype,nK=tK.toString,oK=rK.hasOwnProperty,iK=RegExp("^"+nK.call(oK).replace(Zz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aK(e){if(!o5(e)||Gz(e))return!1;var t=Kz(e)?iK:eK;return t.test(Qz(e))}var lK=aK;function sK(e,t){return e==null?void 0:e[t]}var uK=sK;function cK(e,t){var r=uK(e,t);return lK(r)?r:void 0}var i5=cK;function dK(e,t){return e===t||e!==e&&t!==t}var fK=dK,pK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hK=/^\w*$/;function mK(e,t){if(Pw(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Aw(e)?!0:hK.test(e)||!pK.test(e)||t!=null&&e in Object(t)}var gK=mK,yK=i5(Object,"create"),Ac=yK;function bK(){this.__data__=Ac?Ac(null):{},this.size=0}var vK=bK;function EK(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wK=EK,SK="__lodash_hash_undefined__",xK=Object.prototype,CK=xK.hasOwnProperty;function TK(e){var t=this.__data__;if(Ac){var r=t[e];return r===SK?void 0:r}return CK.call(t,e)?t[e]:void 0}var _K=TK,RK=Object.prototype,AK=RK.hasOwnProperty;function PK(e){var t=this.__data__;return Ac?t[e]!==void 0:AK.call(t,e)}var $K=PK,OK="__lodash_hash_undefined__";function IK(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ac&&t===void 0?OK:t,this}var NK=IK;function Vs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vs.prototype.clear=vK;Vs.prototype.delete=wK;Vs.prototype.get=_K;Vs.prototype.has=$K;Vs.prototype.set=NK;var V_=Vs;function kK(){this.__data__=[],this.size=0}var DK=kK;function MK(e,t){for(var r=e.length;r--;)if(fK(e[r][0],t))return r;return-1}var Xh=MK,LK=Array.prototype,BK=LK.splice;function FK(e){var t=this.__data__,r=Xh(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():BK.call(t,r,1),--this.size,!0}var jK=FK;function qK(e){var t=this.__data__,r=Xh(t,e);return r<0?void 0:t[r][1]}var HK=qK;function UK(e){return Xh(this.__data__,e)>-1}var zK=UK;function KK(e,t){var r=this.__data__,n=Xh(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var VK=KK;function Ws(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ws.prototype.clear=DK;Ws.prototype.delete=jK;Ws.prototype.get=HK;Ws.prototype.has=zK;Ws.prototype.set=VK;var WK=Ws,GK=i5(Rw,"Map"),YK=GK;function XK(){this.size=0,this.__data__={hash:new V_,map:new(YK||WK),string:new V_}}var JK=XK;function QK(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ZK=QK;function eV(e,t){var r=e.__data__;return ZK(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Jh=eV;function tV(e){var t=Jh(this,e).delete(e);return this.size-=t?1:0,t}var rV=tV;function nV(e){return Jh(this,e).get(e)}var oV=nV;function iV(e){return Jh(this,e).has(e)}var aV=iV;function lV(e,t){var r=Jh(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var sV=lV;function Gs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gs.prototype.clear=JK;Gs.prototype.delete=rV;Gs.prototype.get=oV;Gs.prototype.has=aV;Gs.prototype.set=sV;var a5=Gs,uV="Expected a function";function $w(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(uV);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new($w.Cache||a5),r}$w.Cache=a5;var cV=$w,dV=500;function fV(e){var t=cV(e,function(n){return r.size===dV&&r.clear(),n}),r=t.cache;return t}var pV=fV,hV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mV=/\\(\\)?/g,gV=pV(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hV,function(r,n,o,i){t.push(o?i.replace(mV,"$1"):n||r)}),t}),yV=gV;function bV(e){return e==null?"":Bz(e)}var vV=bV;function EV(e,t){return Pw(e)?e:gK(e,t)?[e]:yV(vV(e))}var wV=EV;function SV(e){if(typeof e=="string"||Aw(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var xV=SV;function CV(e,t){t=wV(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xV(t[r++])];return r&&r==n?e:void 0}var TV=CV;function _V(e,t,r){var n=e==null?void 0:TV(e,t);return n===void 0?r:n}var RV=_V,Ow=hz,AV=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,PV=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function l5(e){if(!Ow(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=BU(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var $V=function(e){let t,r,n,o;return function(i,a){var s;try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let c=r.get(this)||this;for(;n.length&&c!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return AV.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,dz.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,fz.default)(a))return;if((0,pz.default)(a)){if(!e.allowSymbol)return;let f=Symbol.keyFor(a);return f!==void 0?`_gsymbol_${f}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if((s=a==null?void 0:a.constructor)!=null&&s.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let f=t.get(a);if(!f){let p={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((h,g)=>{try{h[g]=a[g]}catch{}return h},{})};return o.push(i),n.unshift(p),t.set(a,JSON.stringify(o)),a!==p&&r.set(a,p),p}return`_duplicate_${f}`}let d=t.get(a);if(!d){let f=Array.isArray(a)?a:l5(a);return o.push(i),n.unshift(f),t.set(a,JSON.stringify(o)),a!==f&&r.set(a,f),f}return`_duplicate_${d}`}catch{return}}},OV=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:a,replacement:s})=>{let c=PV(s)?JSON.parse(s):s.split(".");c.length===0?a[i]=r:a[i]=RV(r,c)})),n==="_constructor-name_")return o;if(Ow(o)&&o.__isConvertedError__){let{message:i,...a}=o.errorProperties,s=new Error(i);return Object.assign(s,a),s}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,i,a]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(a,i)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},s5={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},IV=(e,t={})=>{let r={...s5,...t};return JSON.stringify(l5(e),$V(r),t.space)},NV=()=>{let e=new Map;return function t(r){Ow(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},kV=(e,t={})=>{let r={...s5,...t},n=JSON.parse(e,OV(r));return NV()(n),n};function W_({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function G_(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var Qh=class u5 extends Error{constructor(t){super(u5.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return W_({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${W_({code:r,category:n})}?ref=error`:typeof t=="string"?i=G_(t):Array.isArray(t)&&(i=`
${t.map(a=>` - ${G_(a)}`).join(`
`)}`),`${o}${i!=null?`
More info: ${i}
`:""}`}},DV=class extends Qh{constructor(t){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}},MV=class extends Qh{constructor(e){super({name:"ImplicitActionsDuringRendering",category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:Fr`
We detected that you use an implicit action arg while ${e.phase} of your story.
${e.deprecated?`
This is deprecated and won't work in Storybook 8 anymore.
`:""}
Please provide an explicit spy to your args like this:
import { fn } from 'storybook/test';
...
args: {
${e.name}: fn()
}`}),this.data=e}},LV=class extends Qh{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},Y_=Object.prototype.hasOwnProperty;function X_(e,t,r){for(r of e.keys())if(Co(r,t))return r}function Co(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Co(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=X_(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=X_(t,o),!o)||!Co(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Y_.call(e,r)&&++n&&!Y_.call(t,r)||!(r in t)||!Co(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function J_(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let i=e[o];t(i)?r.push(i):n.push(i)}return[r,n]}function BV(e,t){let r={};for(let n=0;n<e.length;n++){let o=e[n],i=t(o);r[i]=(r[i]??0)+1}return r}var Iw=ne({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}}),us={PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},Q_={_docs:(e,t)=>t?e.type!=="docs":e.type==="docs",_play:(e,t)=>{var r,n;return t?e.type!=="story"||!((r=e.tags)!=null&&r.includes(us.PLAY_FN)):e.type==="story"&&!!((n=e.tags)!=null&&n.includes(us.PLAY_FN))},_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},FV=e=>(t,r)=>{var n,o;return r?!((n=t.tags)!=null&&n.includes(e)):!!((o=t.tags)!=null&&o.includes(e))},c5=ne({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let i=o.length;if(i===0)return"";let a="",s=0,c=0;e:for(;c<i;c++){let d=o.charCodeAt(c);for(;d<128;){if(r[d]!==1&&(s<c&&(a+=o.slice(s,c)),s=c+1,a+=t[d]),++c===i)break e;d=o.charCodeAt(c)}if(s<c&&(a+=o.slice(s,c)),d<2048){s=c+1,a+=t[192|d>>6]+t[128|d&63];continue}if(d<55296||d>=57344){s=c+1,a+=t[224|d>>12]+t[128|d>>6&63]+t[128|d&63];continue}if(++c,c>=i)throw new Error("URI malformed");let f=o.charCodeAt(c)&1023;s=c+1,d=65536+((d&1023)<<10|f),a+=t[240|d>>18]+t[128|d>>12&63]+t[128|d>>6&63]+t[128|d&63]}return s===0?o:s<i?a+o.slice(s):a}}}),Nw=ne({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=c5(),r=i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),d5=ne({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=f;var t=Nw(),r=c5();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}function o(p,h,g,y,E){if(n(h))return p;let w=p[h];return typeof w=="object"&&w!==null?w:!y&&(E||typeof g=="number"||typeof g=="string"&&g*0===0&&g.indexOf(".")===-1)?p[h]=[]:p[h]={}}var i=20,a="[]",s="[",c="]",d=".";function f(p,h,g=0,y,E){let{nestingSyntax:w=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:S=t.defaultOptions.arrayRepeatSyntax,nesting:R=t.defaultOptions.nesting,delimiter:O=t.defaultOptions.delimiter,valueSerializer:D=t.defaultOptions.valueSerializer,shouldSerializeObject:T=t.defaultOptions.shouldSerializeObject}=h,P=typeof O=="number"?String.fromCharCode(O):O,_=E===!0&&b,N=w==="dot"||w==="js"&&!E;if(g>i)return"";let V="",L=!0,K=!1;for(let Y in p){let $=p[Y];if($===void 0)continue;let M;y?(M=y,_?S==="bracket"&&(M+=a):N?(M+=d,M+=Y):(M+=s,M+=Y,M+=c)):M=Y,L||(V+=P),typeof $=="object"&&$!==null&&!T($)?(K=$.pop!==void 0,(R||b&&K)&&(V+=f($,h,g+1,M,K))):(V+=(0,r.encodeString)(M),V+="=",V+=D($,Y)),L&&(L=!1)}return V}}}),jV=ne({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(s){let c=s.indexOf("%");if(c===-1)return s;let d=s.length,f="",p=0,h=0,g=c,y=t;for(;c>-1&&c<d;){let E=a(s[c+1],4),w=a(s[c+2],0),b=E|w,S=n[b];if(y=n[256+y+S],h=h<<6|b&n[364+S],y===t)f+=s.slice(p,g),f+=h<=65535?String.fromCharCode(h):String.fromCharCode(55232+(h>>10),56320+(h&1023)),h=0,p=c+3,c=g=s.indexOf("%",p);else{if(y===r)return null;if(c+=3,c<d&&s.charCodeAt(c)===37)continue;return null}}return f+s.slice(p)}var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function a(s,c){let d=i[s];return d===void 0?255:d<<c}}}),qV=ne({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=d;var t=d5(),r=Nw(),n=jV(),o=f=>{let p=Number(f);return Number.isNaN(p)?f:p};e.numberKeyDeserializer=o;var i=f=>{let p=Number(f);return Number.isNaN(p)?f:p};e.numberValueDeserializer=i;var a=/\+/g,s=function(){};s.prototype=Object.create(null);function c(f,p,h,g,y){let E=f.substring(p,h);return g&&(E=E.replace(a," ")),y&&(E=(0,n.decodeURIComponent)(E)||E),E}function d(f,p){let{valueDeserializer:h=r.defaultOptions.valueDeserializer,keyDeserializer:g=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:E=r.defaultOptions.nesting,arrayRepeat:w=r.defaultOptions.arrayRepeat,nestingSyntax:b=r.defaultOptions.nestingSyntax,delimiter:S=r.defaultOptions.delimiter}=p??{},R=typeof S=="string"?S.charCodeAt(0):S,O=b==="js",D=new s;if(typeof f!="string")return D;let T=f.length,P="",_=-1,N=-1,V=-1,L=D,K,Y="",$="",M=!1,I=!1,B=!1,k=!1,z=!1,F=!1,q=0,U=-1,Z=-1,de=-1;for(let ee=0;ee<T+1;ee++){if(q=ee!==T?f.charCodeAt(ee):R,q===R){if(F=N>_,F||(N=ee),V!==N-1&&($=c(f,V+1,U>-1?U:N,B,M),Y=g($),K!==void 0&&(L=(0,t.getDeepObject)(L,K,Y,O&&z,void 0))),F||Y!==""){F&&(P=f.slice(N+1,ee),k&&(P=P.replace(a," ")),I&&(P=(0,n.decodeURIComponent)(P)||P));let oe=h(P,Y);if(w){let ge=L[Y];ge===void 0?U>-1?L[Y]=[oe]:L[Y]=oe:ge.pop?ge.push(oe):L[Y]=[ge,oe]}else L[Y]=oe}P="",_=ee,N=ee,M=!1,I=!1,B=!1,k=!1,z=!1,U=-1,V=ee,L=D,K=void 0,Y=""}else q===93?(w&&y==="bracket"&&de===91&&(U=Z),E&&(b==="index"||O)&&N<=_&&(V!==Z&&($=c(f,V+1,ee,B,M),Y=g($),K!==void 0&&(L=(0,t.getDeepObject)(L,K,Y,void 0,void 0)),K=Y,B=!1,M=!1),V=ee,z=!1)):q===46?E&&(b==="dot"||O)&&N<=_&&(V!==Z&&($=c(f,V+1,ee,B,M),Y=g($),K!==void 0&&(L=(0,t.getDeepObject)(L,K,Y,O)),K=Y,B=!1,M=!1),z=!0,V=ee):q===91?E&&(b==="index"||O)&&N<=_&&(V!==Z&&($=c(f,V+1,ee,B,M),Y=g($),O&&K!==void 0&&(L=(0,t.getDeepObject)(L,K,Y,O)),K=Y,B=!1,M=!1,z=!1),V=ee):q===61?N<=_?N=ee:I=!0:q===43?N>_?k=!0:B=!0:q===37&&(N>_?I=!0:M=!0);Z=ee,de=q}return D}}}),HV=ne({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=d5();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),od=ne({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(i,a,s,c){c===void 0&&(c=s);var d=Object.getOwnPropertyDescriptor(a,s);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(i,c,d)}:function(i,a,s,c){c===void 0&&(c=s),i[c]=a[s]}),r=e&&e.__exportStar||function(i,a){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,i,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=qV();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=HV();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(Nw(),e)}});function UV(){}function No(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function zV(e){return e==null||typeof e!="object"&&typeof e!="function"}function KV(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Z_(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function eR(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var VV="[object RegExp]",WV="[object String]",GV="[object Number]",YV="[object Boolean]",tR="[object Arguments]",XV="[object Symbol]",JV="[object Date]",QV="[object Map]",ZV="[object Set]",eW="[object Array]",tW="[object Function]",rW="[object ArrayBuffer]",Bb="[object Object]",nW="[object Error]",oW="[object DataView]",iW="[object Uint8Array]",aW="[object Uint8ClampedArray]",lW="[object Uint16Array]",sW="[object Uint32Array]",uW="[object BigUint64Array]",cW="[object Int8Array]",dW="[object Int16Array]",fW="[object Int32Array]",pW="[object BigInt64Array]",hW="[object Float32Array]",mW="[object Float64Array]";function gW(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function yW(e,t,r){return ec(e,t,void 0,void 0,void 0,void 0,r)}function ec(e,t,r,n,o,i,a){let s=a(e,t,r,n,o,i);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return fc(e,t,i,a)}return fc(e,t,i,a)}function fc(e,t,r,n){if(Object.is(e,t))return!0;let o=eR(e),i=eR(t);if(o===tR&&(o=Bb),i===tR&&(i=Bb),o!==i)return!1;switch(o){case WV:return e.toString()===t.toString();case GV:{let c=e.valueOf(),d=t.valueOf();return gW(c,d)}case YV:case JV:case XV:return Object.is(e.valueOf(),t.valueOf());case VV:return e.source===t.source&&e.flags===t.flags;case tW:return e===t}r=r??new Map;let a=r.get(e),s=r.get(t);if(a!=null&&s!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case QV:{if(e.size!==t.size)return!1;for(let[c,d]of e.entries())if(!t.has(c)||!ec(d,t.get(c),c,e,t,r,n))return!1;return!0}case ZV:{if(e.size!==t.size)return!1;let c=Array.from(e.values()),d=Array.from(t.values());for(let f=0;f<c.length;f++){let p=c[f],h=d.findIndex(g=>ec(p,g,void 0,e,t,r,n));if(h===-1)return!1;d.splice(h,1)}return!0}case eW:case iW:case aW:case lW:case sW:case uW:case cW:case dW:case fW:case pW:case hW:case mW:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let c=0;c<e.length;c++)if(!ec(e[c],t[c],c,e,t,r,n))return!1;return!0}case rW:return e.byteLength!==t.byteLength?!1:fc(new Uint8Array(e),new Uint8Array(t),r,n);case oW:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:fc(new Uint8Array(e),new Uint8Array(t),r,n);case nW:return e.name===t.name&&e.message===t.message;case Bb:{if(!(fc(e.constructor,t.constructor,r,n)||No(e)&&No(t)))return!1;let c=[...Object.keys(e),...Z_(e)],d=[...Object.keys(t),...Z_(t)];if(c.length!==d.length)return!1;for(let f=0;f<c.length;f++){let p=c[f],h=e[p];if(!Object.hasOwn(t,p))return!1;let g=t[p];if(!ec(h,g,p,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function To(e,t){return yW(e,t,UV)}function bW(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];r[i]=t(a,i,e)}return r}function vW(e){return e==="__proto__"}function fn(e,t,r){let n=Object.keys(t);for(let o=0;o<n.length;o++){let i=n[o];if(vW(i))continue;let a=t[i],s=e[i],c=r(s,a,i,e,t);c!==void 0?e[i]=c:Array.isArray(a)?Array.isArray(s)?e[i]=fn(s,a,r):e[i]=fn([],a,r):No(a)?No(s)?e[i]=fn(s,a,r):e[i]=fn({},a,r):(s===void 0||a!==void 0)&&(e[i]=a)}return e}function zu(e,t){let r={};for(let n=0;n<t.length;n++){let o=t[n];Object.hasOwn(e,o)&&(r[o]=e[o])}return r}function Fb(e){if(zV(e))return e;if(Array.isArray(e)||KV(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let n=new r(e);return n.lastIndex=e.lastIndex,n}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let n=new r(e.message);return n.stack=e.stack,n.name=e.name,n.cause=e.cause,n}if(typeof File<"u"&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){let n=Object.create(t);return Object.assign(n,e)}return e}function EW(e,t){let r={...e};for(let n=0;n<t.length;n++){let o=t[n];delete r[o]}return r}function jb(e,t){return fn(Fb(e),t,function r(n,o){if(Array.isArray(o))return Array.isArray(n)?fn(Fb(n),o,r):fn([],o,r);if(No(o))return No(n)?fn(Fb(n),o,r):fn({},o,r)})}var f5=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.STORY_HOT_UPDATED="storyHotUpdated",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_INITIALIZED="previewInitialized",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.GHOST_STORIES_REQUEST="ghostStoriesRequest",e.GHOST_STORIES_RESPONSE="ghostStoriesResponse",e.OPEN_IN_EDITOR_REQUEST="openInEditorRequest",e.OPEN_IN_EDITOR_RESPONSE="openInEditorResponse",e.MANAGER_INERT_ATTRIBUTE_CHANGED="managerInertAttributeChanged",e.SHARE_STORY_LINK="shareStoryLink",e.SHARE_ISOLATE_MODE="shareIsolateMode",e.SHARE_POPOVER_OPENED="sharePopoverOpened",e))(f5||{}),{CHANNEL_WS_DISCONNECT:P1e,CHANNEL_CREATED:$1e,CONFIG_ERROR:wW,CREATE_NEW_STORYFILE_REQUEST:O1e,CREATE_NEW_STORYFILE_RESPONSE:I1e,CURRENT_STORY_WAS_SET:SW,DOCS_PREPARED:xW,DOCS_RENDERED:N1e,FILE_COMPONENT_SEARCH_REQUEST:k1e,FILE_COMPONENT_SEARCH_RESPONSE:D1e,FORCE_RE_RENDER:M1e,FORCE_REMOUNT:m1,GLOBALS_UPDATED:p5,NAVIGATE_URL:CW,PLAY_FUNCTION_THREW_EXCEPTION:L1e,UNHANDLED_ERRORS_WHILE_PLAYING:B1e,PRELOAD_ENTRIES:TW,PREVIEW_INITIALIZED:F1e,PREVIEW_BUILDER_PROGRESS:j1e,PREVIEW_KEYDOWN:_W,REGISTER_SUBSCRIPTION:q1e,RESET_STORY_ARGS:RW,SELECT_STORY:AW,SET_CONFIG:zp,SET_CURRENT_STORY:kw,SET_FILTER:PW,SET_GLOBALS:$W,SET_INDEX:OW,SET_STORIES:IW,SHARED_STATE_CHANGED:H1e,SHARED_STATE_SET:U1e,STORIES_COLLAPSE_ALL:NW,STORIES_EXPAND_ALL:kW,STORY_ARGS_UPDATED:h5,STORY_CHANGED:DW,STORY_ERRORED:z1e,STORY_INDEX_INVALIDATED:MW,STORY_MISSING:LW,STORY_PREPARED:BW,STORY_RENDER_PHASE_CHANGED:m5,STORY_RENDERED:K1e,STORY_FINISHED:V1e,STORY_SPECIFIED:FW,STORY_THREW_EXCEPTION:W1e,STORY_UNCHANGED:G1e,STORY_HOT_UPDATED:Y1e,UPDATE_GLOBALS:jW,UPDATE_QUERY_PARAMS:qW,UPDATE_STORY_ARGS:HW,REQUEST_WHATS_NEW_DATA:UW,RESULT_WHATS_NEW_DATA:zW,SET_WHATS_NEW_CACHE:KW,TOGGLE_WHATS_NEW_NOTIFICATIONS:VW,TELEMETRY_ERROR:X1e,SAVE_STORY_REQUEST:J1e,SAVE_STORY_RESPONSE:Q1e,ARGTYPES_INFO_REQUEST:Z1e,ARGTYPES_INFO_RESPONSE:eEe,GHOST_STORIES_REQUEST:tEe,GHOST_STORIES_RESPONSE:rEe,OPEN_IN_EDITOR_REQUEST:WW,OPEN_IN_EDITOR_RESPONSE:qb,MANAGER_INERT_ATTRIBUTE_CHANGED:nEe,SHARE_STORY_LINK:oEe,SHARE_ISOLATE_MODE:iEe,SHARE_POPOVER_OPENED:aEe}=f5,g1=(e=>(e.TAB="tab",e.PANEL="panel",e.TOOL="tool",e.TOOLEXTRA="toolextra",e.PREVIEW="preview",e.experimental_PAGE="page",e.experimental_TEST_PROVIDER="test-provider",e))(g1||{}),GW="Invariant failed";function y1(e,t){if(!e)throw new Error(GW)}var YW=e=>e.transports!==void 0,XW=()=>Math.random().toString(16).slice(2),g5=class{constructor(e={}){this.sender=XW(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,YW(e)?(this.transports=e.transports||[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let r={type:e,args:t,from:this.sender},n={};t.length>=1&&t[0]&&t[0].options&&(n=t[0].options);let o=()=>{this.transports.forEach(i=>{i.send(r,n)}),this.handleEvent(r)};this.isAsync?setImmediate(o):o()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let r=this.onceListener(e,t);this.addListener(e,r)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let r=this.listeners(e);r&&(this.events[e]=r.filter(n=>n!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(r=>{r.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let r=(...n)=>(this.removeListener(e,r),t(...n));return r}},{document:lEe,location:sEe}=Re,{WebSocket:uEe}=Re,{CHANNEL_OPTIONS:cEe,CONFIG_TYPE:dEe}=Re,rR="backgrounds",JW="outline",QW={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},y5=ne({"../../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}}}),ZW=ne({"../../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),b5=ne({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),eG=ne({"../../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),tG=ne({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(eG()),n=String.fromCodePoint||function(i){var a="";return i>65535&&(i-=65536,a+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),a+=String.fromCharCode(i),a};function o(i){return i>=55296&&i<=57343||i>1114111?"�":(i in r.default&&(i=r.default[i]),n(i))}e.default=o}}),nR=ne({"../../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(y5()),n=t(ZW()),o=t(b5()),i=t(tG()),a=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(f){var p=d(f);return function(h){return String(h).replace(a,p)}}var c=function(f,p){return f<p?1:-1};e.decodeHTML=function(){for(var f=Object.keys(n.default).sort(c),p=Object.keys(r.default).sort(c),h=0,g=0;h<p.length;h++)f[g]===p[h]?(p[h]+=";?",g++):p[h]+=";";var y=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=d(r.default);function w(b){return b.substr(-1)!==";"&&(b+=";"),E(b)}return function(b){return String(b).replace(y,w)}}();function d(f){return function(p){if(p.charAt(1)==="#"){var h=p.charAt(2);return h==="X"||h==="x"?i.default(parseInt(p.substr(3),16)):i.default(parseInt(p.substr(2),10))}return f[p.slice(1,-1)]||p}}}}),oR=ne({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(b5()),n=c(r.default),o=d(n);e.encodeXML=b(n);var i=t(y5()),a=c(i.default),s=d(a);e.encodeHTML=g(a,s),e.encodeNonAsciiHTML=b(a);function c(S){return Object.keys(S).sort().reduce(function(R,O){return R[S[O]]="&"+O+";",R},{})}function d(S){for(var R=[],O=[],D=0,T=Object.keys(S);D<T.length;D++){var P=T[D];P.length===1?R.push("\\"+P):O.push(P)}R.sort();for(var _=0;_<R.length-1;_++){for(var N=_;N<R.length-1&&R[N].charCodeAt(1)+1===R[N+1].charCodeAt(1);)N+=1;var V=1+N-_;V<3||R.splice(_,V,R[_]+"-"+R[N])}return O.unshift("["+R.join("")+"]"),new RegExp(O.join("|"),"g")}var f=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=String.prototype.codePointAt!=null?function(S){return S.codePointAt(0)}:function(S){return(S.charCodeAt(0)-55296)*1024+S.charCodeAt(1)-56320+65536};function h(S){return"&#x"+(S.length>1?p(S):S.charCodeAt(0)).toString(16).toUpperCase()+";"}function g(S,R){return function(O){return O.replace(R,function(D){return S[D]}).replace(f,h)}}var y=new RegExp(o.source+"|"+f.source,"g");function E(S){return S.replace(y,h)}e.escape=E;function w(S){return S.replace(o,h)}e.escapeUTF8=w;function b(S){return function(R){return R.replace(y,function(O){return S[O]||h(O)})}}}}),rG=ne({"../../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=nR(),r=oR();function n(c,d){return(!d||d<=0?t.decodeXML:t.decodeHTML)(c)}e.decode=n;function o(c,d){return(!d||d<=0?t.decodeXML:t.decodeHTMLStrict)(c)}e.decodeStrict=o;function i(c,d){return(!d||d<=0?r.encodeXML:r.encodeHTML)(c)}e.encode=i;var a=oR();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=nR();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})}}),nG=ne({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r($,M){if(!($ instanceof M))throw new TypeError("Cannot call a class as a function")}function n($,M){for(var I=0;I<M.length;I++){var B=M[I];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty($,B.key,B)}}function o($,M,I){return M&&n($.prototype,M),$}function i($,M){var I=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!I){if(Array.isArray($)||(I=a($))||M){I&&($=I);var B=0,k=function(){};return{s:k,n:function(){return B>=$.length?{done:!0}:{done:!1,value:$[B++]}},e:function(U){throw U},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,F=!1,q;return{s:function(){I=I.call($)},n:function(){var U=I.next();return z=U.done,U},e:function(U){F=!0,q=U},f:function(){try{!z&&I.return!=null&&I.return()}finally{if(F)throw q}}}}function a($,M){if($){if(typeof $=="string")return s($,M);var I=Object.prototype.toString.call($).slice(8,-1);if(I==="Object"&&$.constructor&&(I=$.constructor.name),I==="Map"||I==="Set")return Array.from($);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return s($,M)}}function s($,M){(M==null||M>$.length)&&(M=$.length);for(var I=0,B=new Array(M);I<M;I++)B[I]=$[I];return B}var c=rG(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:f()};function f(){var $={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return S(0,5).forEach(function(M){S(0,5).forEach(function(I){S(0,5).forEach(function(B){return p(M,I,B,$)})})}),S(0,23).forEach(function(M){var I=M+232,B=h(M*10+8);$[I]="#"+B+B+B}),$}function p($,M,I,B){var k=16+$*36+M*6+I,z=$>0?$*40+55:0,F=M>0?M*40+55:0,q=I>0?I*40+55:0;B[k]=g([z,F,q])}function h($){for(var M=$.toString(16);M.length<2;)M="0"+M;return M}function g($){var M=[],I=i($),B;try{for(I.s();!(B=I.n()).done;){var k=B.value;M.push(h(k))}}catch(z){I.e(z)}finally{I.f()}return"#"+M.join("")}function y($,M,I,B){var k;return M==="text"?k=D(I,B):M==="display"?k=w($,I,B):M==="xterm256Foreground"?k=_($,B.colors[I]):M==="xterm256Background"?k=N($,B.colors[I]):M==="rgb"&&(k=E($,I)),k}function E($,M){M=M.substring(2).slice(0,-1);var I=+M.substr(0,2),B=M.substring(5).split(";"),k=B.map(function(z){return("0"+Number(z).toString(16)).substr(-2)}).join("");return P($,(I===38?"color:#":"background-color:#")+k)}function w($,M,I){M=parseInt(M,10);var B={"-1":function(){return"<br/>"},0:function(){return $.length&&b($)},1:function(){return T($,"b")},3:function(){return T($,"i")},4:function(){return T($,"u")},8:function(){return P($,"display:none")},9:function(){return T($,"strike")},22:function(){return P($,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return V($,"i")},24:function(){return V($,"u")},39:function(){return _($,I.fg)},49:function(){return N($,I.bg)},53:function(){return P($,"text-decoration:overline")}},k;return B[M]?k=B[M]():4<M&&M<7?k=T($,"blink"):29<M&&M<38?k=_($,I.colors[M-30]):39<M&&M<48?k=N($,I.colors[M-40]):89<M&&M<98?k=_($,I.colors[8+(M-90)]):99<M&&M<108&&(k=N($,I.colors[8+(M-100)])),k}function b($){var M=$.slice(0);return $.length=0,M.reverse().map(function(I){return"</"+I+">"}).join("")}function S($,M){for(var I=[],B=$;B<=M;B++)I.push(B);return I}function R($){return function(M){return($===null||M.category!==$)&&$!=="all"}}function O($){$=parseInt($,10);var M=null;return $===0?M="all":$===1?M="bold":2<$&&$<5?M="underline":4<$&&$<7?M="blink":$===8?M="hide":$===9?M="strike":29<$&&$<38||$===39||89<$&&$<98?M="foreground-color":(39<$&&$<48||$===49||99<$&&$<108)&&(M="background-color"),M}function D($,M){return M.escapeXML?c.encodeXML($):$}function T($,M,I){return I||(I=""),$.push(M),"<".concat(M).concat(I?' style="'.concat(I,'"'):"",">")}function P($,M){return T($,"span",M)}function _($,M){return T($,"span","color:"+M)}function N($,M){return T($,"span","background-color:"+M)}function V($,M){var I;if($.slice(-1)[0]===M&&(I=$.pop()),I)return"</"+M+">"}function L($,M,I){var B=!1,k=3;function z(){return""}function F($e,Oe){return I("xterm256Foreground",Oe),""}function q($e,Oe){return I("xterm256Background",Oe),""}function U($e){return M.newline?I("display",-1):I("text",$e),""}function Z($e,Oe){B=!0,Oe.trim().length===0&&(Oe="0"),Oe=Oe.trimRight(";").split(";");var Te=i(Oe),et;try{for(Te.s();!(et=Te.n()).done;){var At=et.value;I("display",At)}}catch(yt){Te.e(yt)}finally{Te.f()}return""}function de($e){return I("text",$e),""}function ee($e){return I("rgb",$e),""}var oe=[{pattern:/^\x08+/,sub:z},{pattern:/^\x1b\[[012]?K/,sub:z},{pattern:/^\x1b\[\(B/,sub:z},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ee},{pattern:/^\x1b\[38;5;(\d+)m/,sub:F},{pattern:/^\x1b\[48;5;(\d+)m/,sub:q},{pattern:/^\n/,sub:U},{pattern:/^\r+\n/,sub:U},{pattern:/^\r/,sub:U},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Z},{pattern:/^\x1b\[\d?J/,sub:z},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:z},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:z},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:de}];function ge($e,Oe){Oe>k&&B||(B=!1,$=$.replace($e.pattern,$e.sub))}var ye=[],ve=$,J=ve.length;e:for(;J>0;){for(var me=0,he=0,Se=oe.length;he<Se;me=++he){var _e=oe[me];if(ge(_e,me),$.length!==J){J=$.length;continue e}}if($.length===J)break;ye.push(0),J=$.length}return ye}function K($,M,I){return M!=="text"&&($=$.filter(R(O(I))),$.push({token:M,data:I,category:O(I)})),$}var Y=function(){function $(M){r(this,$),M=M||{},M.colors&&(M.colors=Object.assign({},d.colors,M.colors)),this.options=Object.assign({},d,M),this.stack=[],this.stickyStack=[]}return o($,[{key:"toHtml",value:function(M){var I=this;M=typeof M=="string"?[M]:M;var B=this.stack,k=this.options,z=[];return this.stickyStack.forEach(function(F){var q=y(B,F.token,F.data,k);q&&z.push(q)}),L(M.join(""),k,function(F,q){var U=y(B,F,q,k);U&&z.push(U),k.stream&&(I.stickyStack=K(I.stickyStack,F,q))}),B.length&&z.push(b(B)),z.join("")}}]),$}();t.exports=Y}});function oG(){let e={setHandler:()=>{},send:()=>{}};return new g5({transport:e})}var iG=class{constructor(){this.getChannel=()=>{if(!this.channel){let t=oG();return this.setChannel(t),t}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=t=>{this.channel=t,this.resolve()},this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}},Hb="__STORYBOOK_ADDONS_PREVIEW";function aG(){return Re[Hb]||(Re[Hb]=new iG),Re[Hb]}var tc=aG(),lG=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),v5=()=>new Error(`Storybook preview hooks can only be called inside decorators and story functions.
When combining Storybook hooks (e.g. useArgs) with framework hooks (e.g. React's useState, useEffect, useRef) in the same render function, use Storybook's equivalents from 'storybook/preview-api' instead: useState, useEffect, useRef, useMemo, useCallback, useReducer.`);function sG(){return Re.STORYBOOK_HOOKS_CONTEXT||null}function E5(){let e=sG();if(e==null)throw v5();return e}function uG(e,t,r){let n=E5();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Xr.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Xr.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Xr.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Xr.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
Previous: ${o.deps}
Incoming: ${r}`),(r==null||o.deps==null||!lG(r,o.deps))&&(t(o),o.deps=r),o}throw v5()}function w5(e,t,r){let{memoizedState:n}=uG(e,o=>{o.memoizedState=t()},r);return n}function cG(e,t){return w5("useMemo",e,t)}function Pc(e,t){let r=E5(),n=w5("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}it(pi(),1);var dG=it(pi(),1);(0,dG.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{}));Fr`
CSF .story annotations deprecated; annotate story functions directly:
- StoryFn.story.name => StoryFn.storyName
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
`;var{fetch:pEe}=Re;it(od(),1);it(od(),1);var{history:hEe,document:mEe}=Re,fG=it(nG(),1);it(od(),1);var{document:gEe}=Re;new fG.default({escapeXML:!0});var{document:yEe}=Re,Zh="storybook/highlight",pG=`${Zh}/add`,hG=`${Zh}/remove`,mG=`${Zh}/reset`,gG=`${Zh}/scroll-into-view`,iR=2147483647,Ji=28,yG="storybook/actions",bG=`${yG}/action-event`,vG={depth:10,clearOnStoryChange:!0,limit:50},S5=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:S5(r,t)},EG=e=>!!(typeof e=="object"&&e&&S5(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),wG=e=>{if(EG(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function Dw(e,t={}){let r={...vG,...t},n=function(...o){var p,h;if(t.implicit){let g=(p="__STORYBOOK_PREVIEW__"in Re?Re.__STORYBOOK_PREVIEW__:void 0)==null?void 0:p.storyRenders.find(y=>y.phase==="playing"||y.phase==="rendering");if(g){let y=!((h=globalThis==null?void 0:globalThis.FEATURES)!=null&&h.disallowImplicitActionsInRenderV8),E=new MV({phase:g.phase,name:e,deprecated:y});if(y)console.warn(E);else throw E}}let i=tc.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),s=5,c=o.map(wG),d=o.length>1?c:c[0],f={id:a,count:0,data:{name:e,args:d},options:{...r,maxDepth:s+(r.depth||3)}};i.emit(bG,f)};return n.isAction=!0,n.implicit=t.implicit,n}var SG={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},x5=Object.entries(SG);function em(e){return String(e)}em.open="";em.close="";x5.reduce((e,[t])=>(e[t]=em,e),{isColorSupported:!1});function xG(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function CG(e=!1){let t=xG(e),r=(a,s,c,d)=>{let f="",p=0;do f+=a.substring(p,d)+c,p=d+s.length,d=a.indexOf(s,p);while(~d);return f+a.substring(p)},n=(a,s,c=a)=>{let d=f=>{let p=String(f),h=p.indexOf(s,a.length);return~h?a+r(p,s,c,h)+s:a+p+s};return d.open=a,d.close=s,d},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,s]of x5)o[a]=t?n(i(s[0]),i(s[1]),s[2]):em;return o}var oi=CG();function C5(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function TG(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function id(e,t,r,n,o,i,a=": "){let s="",c=0,d=e.next();if(!d.done){s+=t.spacingOuter;let f=r+t.indent;for(;!d.done;){if(s+=f,c++===t.maxWidth){s+="…";break}let p=i(d.value[0],t,f,n,o),h=i(d.value[1],t,f,n,o);s+=p+a+h,d=e.next(),d.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Mw(e,t,r,n,o,i){let a="",s=0,c=e.next();if(!c.done){a+=t.spacingOuter;let d=r+t.indent;for(;!c.done;){if(a+=d,s++===t.maxWidth){a+="…";break}a+=i(c.value,t,d,n,o),c=e.next(),c.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function Kp(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=d=>d instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){a+=t.spacingOuter;let d=r+t.indent;for(let f=0;f<c;f++){if(a+=d,f===t.maxWidth){a+="…";break}(s(e)||f in e)&&(a+=i(s(e)?e.getInt8(f):e[f],t,d,n,o)),f<c-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function Lw(e,t,r,n,o,i){let a="",s=TG(e,t.compareKeys);if(s.length>0){a+=t.spacingOuter;let c=r+t.indent;for(let d=0;d<s.length;d++){let f=s[d],p=i(f,t,c,n,o),h=i(e[f],t,c,n,o);a+=`${c+p}: ${h}`,d<s.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var _G=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ub=" ",RG=(e,t,r,n,o,i)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Ub}[${Kp(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+Ub}{${Lw(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Ub+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},AG=e=>e&&e.$$typeof===_G,PG={serialize:RG,test:AG},$G=" ",T5=new Set(["DOMStringMap","NamedNodeMap"]),OG=/^(?:HTML\w*Collection|NodeList)$/;function IG(e){return T5.has(e)||OG.test(e)}var NG=e=>e&&e.constructor&&!!e.constructor.name&&IG(e.constructor.name);function kG(e){return e.constructor.name==="NamedNodeMap"}var DG=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+$G)+(T5.has(a)?`{${Lw(kG(e)?[...e].reduce((s,c)=>(s[c.name]=c.value,s),{}):{...e},t,r,n,o,i)}}`:`[${Kp([...e],t,r,n,o,i)}]`)},MG={serialize:DG,test:NG};function _5(e){return e.replaceAll("<","<").replaceAll(">",">")}function Bw(e,t,r,n,o,i,a){let s=n+r.indent,c=r.colors;return e.map(d=>{let f=t[d],p=a(f,r,s,o,i);return typeof f!="string"&&(p.includes(`
`)&&(p=r.spacingOuter+s+p+r.spacingOuter+n),p=`{${p}}`),`${r.spacingInner+n+c.prop.open+d+c.prop.close}=${c.value.open}${p}${c.value.close}`}).join("")}function Fw(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?R5(a,t):i(a,t,r,n,o))).join("")}function R5(e,t){let r=t.colors.content;return r.open+_5(e)+r.close}function LG(e,t){let r=t.colors.comment;return`${r.open}<!--${_5(e)}-->${r.close}`}function jw(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function qw(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var BG=1,A5=3,P5=8,$5=11,FG=/^(?:(?:HTML|SVG)\w*)?Element$/;function jG(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function qG(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||jG(e);return r===BG&&(FG.test(t)||o)||r===A5&&t==="Text"||r===P5&&t==="Comment"||r===$5&&t==="DocumentFragment"}var HG=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&qG(e)};function UG(e){return e.nodeType===A5}function zG(e){return e.nodeType===P5}function zb(e){return e.nodeType===$5}var KG=(e,t,r,n,o,i)=>{if(UG(e))return R5(e.data,t);if(zG(e))return LG(e.data,t);let a=zb(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?qw(a,t):jw(a,Bw(zb(e)?[]:Array.from(e.attributes,s=>s.name).sort(),zb(e)?{}:[...e.attributes].reduce((s,c)=>(s[c.name]=c.value,s),{}),t,r+t.indent,n,o,i),Fw(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},VG={serialize:KG,test:HG},WG="@@__IMMUTABLE_ITERABLE__@@",GG="@@__IMMUTABLE_LIST__@@",YG="@@__IMMUTABLE_KEYED__@@",XG="@@__IMMUTABLE_MAP__@@",aR="@@__IMMUTABLE_ORDERED__@@",JG="@@__IMMUTABLE_RECORD__@@",QG="@@__IMMUTABLE_SEQ__@@",ZG="@@__IMMUTABLE_SET__@@",eY="@@__IMMUTABLE_STACK__@@",Ss=e=>`Immutable.${e}`,tm=e=>`[${e}]`,$c=" ",lR="…";function tY(e,t,r,n,o,i,a){return++n>t.maxDepth?tm(Ss(a)):`${Ss(a)+$c}{${id(e.entries(),t,r,n,o,i)}}`}function rY(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function nY(e,t,r,n,o,i){let a=Ss(e._name||"Record");return++n>t.maxDepth?tm(a):`${a+$c}{${id(rY(e),t,r,n,o,i)}}`}function oY(e,t,r,n,o,i){let a=Ss("Seq");return++n>t.maxDepth?tm(a):e[YG]?`${a+$c}{${e._iter||e._object?id(e.entries(),t,r,n,o,i):lR}}`:`${a+$c}[${e._iter||e._array||e._collection||e._iterable?Mw(e.values(),t,r,n,o,i):lR}]`}function Kb(e,t,r,n,o,i,a){return++n>t.maxDepth?tm(Ss(a)):`${Ss(a)+$c}[${Mw(e.values(),t,r,n,o,i)}]`}var iY=(e,t,r,n,o,i)=>e[XG]?tY(e,t,r,n,o,i,e[aR]?"OrderedMap":"Map"):e[GG]?Kb(e,t,r,n,o,i,"List"):e[ZG]?Kb(e,t,r,n,o,i,e[aR]?"OrderedSet":"Set"):e[eY]?Kb(e,t,r,n,o,i,"Stack"):e[QG]?oY(e,t,r,n,o,i):nY(e,t,r,n,o,i),aY=e=>e&&(e[WG]===!0||e[JG]===!0),lY={serialize:iY,test:aY};function O5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sR={exports:{}},ht={},uR;function sY(){if(uR)return ht;uR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(E){if(typeof E=="object"&&E!==null){var w=E.$$typeof;switch(w){case e:switch(E=E.type,E){case r:case o:case n:case c:case d:case h:return E;default:switch(E=E&&E.$$typeof,E){case a:case s:case p:case f:return E;case i:return E;default:return w}}case t:return w}}}return ht.ContextConsumer=i,ht.ContextProvider=a,ht.Element=e,ht.ForwardRef=s,ht.Fragment=r,ht.Lazy=p,ht.Memo=f,ht.Portal=t,ht.Profiler=o,ht.StrictMode=n,ht.Suspense=c,ht.SuspenseList=d,ht.isContextConsumer=function(E){return y(E)===i},ht.isContextProvider=function(E){return y(E)===a},ht.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},ht.isForwardRef=function(E){return y(E)===s},ht.isFragment=function(E){return y(E)===r},ht.isLazy=function(E){return y(E)===p},ht.isMemo=function(E){return y(E)===f},ht.isPortal=function(E){return y(E)===t},ht.isProfiler=function(E){return y(E)===o},ht.isStrictMode=function(E){return y(E)===n},ht.isSuspense=function(E){return y(E)===c},ht.isSuspenseList=function(E){return y(E)===d},ht.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===o||E===n||E===c||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===p||E.$$typeof===f||E.$$typeof===a||E.$$typeof===i||E.$$typeof===s||E.$$typeof===g||E.getModuleId!==void 0)},ht.typeOf=y,ht}var cR;function uY(){return cR||(cR=1,sR.exports=sY()),sR.exports}var I5=uY(),cY=O5(I5),dY=C5({__proto__:null,default:cY},[I5]),dR={exports:{}},dt={},fR;function fY(){if(fR)return dt;fR=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function E(w){if(typeof w=="object"&&w!==null){var b=w.$$typeof;switch(b){case e:switch(w=w.type,w){case r:case o:case n:case d:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case a:case c:case h:case p:case i:return w;default:return b}}case t:return b}}}return dt.ContextConsumer=a,dt.ContextProvider=i,dt.Element=e,dt.ForwardRef=c,dt.Fragment=r,dt.Lazy=h,dt.Memo=p,dt.Portal=t,dt.Profiler=o,dt.StrictMode=n,dt.Suspense=d,dt.SuspenseList=f,dt.isAsyncMode=function(){return!1},dt.isConcurrentMode=function(){return!1},dt.isContextConsumer=function(w){return E(w)===a},dt.isContextProvider=function(w){return E(w)===i},dt.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},dt.isForwardRef=function(w){return E(w)===c},dt.isFragment=function(w){return E(w)===r},dt.isLazy=function(w){return E(w)===h},dt.isMemo=function(w){return E(w)===p},dt.isPortal=function(w){return E(w)===t},dt.isProfiler=function(w){return E(w)===o},dt.isStrictMode=function(w){return E(w)===n},dt.isSuspense=function(w){return E(w)===d},dt.isSuspenseList=function(w){return E(w)===f},dt.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===o||w===n||w===d||w===f||w===g||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===i||w.$$typeof===a||w.$$typeof===c||w.$$typeof===y||w.getModuleId!==void 0)},dt.typeOf=E,dt}var pR;function pY(){return pR||(pR=1,dR.exports=fY()),dR.exports}var N5=pY(),hY=O5(N5),mY=C5({__proto__:null,default:hY},[N5]),gY=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Xa=Object.fromEntries(gY.map(e=>[e,t=>mY[e](t)||dY[e](t)]));function k5(e,t=[]){if(Array.isArray(e))for(let r of e)k5(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function hR(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Xa.isFragment(e))return"React.Fragment";if(Xa.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Xa.isContextProvider(e))return"Context.Provider";if(Xa.isContextConsumer(e))return"Context.Consumer";if(Xa.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Xa.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function yY(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var bY=(e,t,r,n,o,i)=>++n>t.maxDepth?qw(hR(e),t):jw(hR(e),Bw(yY(e),e.props,t,r+t.indent,n,o,i),Fw(k5(e.props.children),t,r+t.indent,n,o,i),t,r),vY=e=>e!=null&&Xa.isElement(e),EY={serialize:bY,test:vY},wY=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function SY(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var xY=(e,t,r,n,o,i)=>++n>t.maxDepth?qw(e.type,t):jw(e.type,e.props?Bw(SY(e),e.props,t,r+t.indent,n,o,i):"",e.children?Fw(e.children,t,r+t.indent,n,o,i):"",t,r),CY=e=>e&&e.$$typeof===wY,TY={serialize:xY,test:CY},D5=Object.prototype.toString,_Y=Date.prototype.toISOString,RY=Error.prototype.toString,mR=RegExp.prototype.toString;function vp(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function AY(e){return typeof window<"u"&&e===window}var PY=/^Symbol\((.*)\)(.*)$/,$Y=/\n/g,M5=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function OY(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function IY(e){return Object.is(e,-0)?"-0":String(e)}function NY(e){return`${e}n`}function gR(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function yR(e){return String(e).replace(PY,"Symbol($1)")}function bR(e){return`[${RY.call(e)}]`}function L5(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return IY(e);if(o==="bigint")return NY(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return gR(e,t);if(o==="symbol")return yR(e);let i=D5.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?gR(e,t):i==="[object Symbol]"?yR(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":_Y.call(e):i==="[object Error]"?bR(e):i==="[object RegExp]"?r?mR.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):mR.call(e):e instanceof Error?bR(e):null}function B5(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let a=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Qi(e.toJSON(),t,r,n,o,!0);let c=D5.call(e);return c==="[object Arguments]"?a?"[Arguments]":`${s?"":"Arguments "}[${Kp(e,t,r,n,o,Qi)}]`:OY(c)?a?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Kp(e,t,r,n,o,Qi)}]`:c==="[object Map]"?a?"[Map]":`Map {${id(e.entries(),t,r,n,o,Qi," => ")}}`:c==="[object Set]"?a?"[Set]":`Set {${Mw(e.values(),t,r,n,o,Qi)}}`:a||AY(e)?`[${vp(e)}]`:`${s||!t.printBasicPrototype&&vp(e)==="Object"?"":`${vp(e)} `}{${Lw(e,t,r,n,o,Qi)}}`}var kY={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let a=++n>t.maxDepth,{message:s,cause:c,...d}=e,f={message:s,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...d},p=e.name!=="Error"?e.name:vp(e);return a?`[${p}]`:`${p} {${id(Object.entries(f).values(),t,r,n,o,i)}}`}};function DY(e){return e.serialize!=null}function F5(e,t,r,n,o,i){let a;try{a=DY(e)?e.serialize(t,r,n,o,i,Qi):e.print(t,s=>Qi(s,r,n,o,i),s=>{let c=n+r.indent;return c+s.replaceAll($Y,`
${c}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new M5(s.message,s.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function j5(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new M5(n.message,n.stack)}return null}function Qi(e,t,r,n,o,i){let a=j5(t.plugins,e);if(a!==null)return F5(a,e,t,r,n,o);let s=L5(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:B5(e,t,r,n,o,i)}var Hw={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},q5=Object.keys(Hw),Xn={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Hw};function MY(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Xn,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function LY(){return q5.reduce((e,t)=>{let r=Hw[t],n=r&&oi[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function BY(){return q5.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function H5(e){return(e==null?void 0:e.printFunctionName)??Xn.printFunctionName}function U5(e){return(e==null?void 0:e.escapeRegex)??Xn.escapeRegex}function z5(e){return(e==null?void 0:e.escapeString)??Xn.escapeString}function vR(e){return{callToJSON:(e==null?void 0:e.callToJSON)??Xn.callToJSON,colors:e!=null&&e.highlight?LY():BY(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Xn.compareKeys,escapeRegex:U5(e),escapeString:z5(e),indent:e!=null&&e.min?"":FY((e==null?void 0:e.indent)??Xn.indent),maxDepth:(e==null?void 0:e.maxDepth)??Xn.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??Xn.maxWidth,min:(e==null?void 0:e.min)??Xn.min,plugins:(e==null?void 0:e.plugins)??Xn.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:H5(e),spacingInner:e!=null&&e.min?" ":`
`,spacingOuter:e!=null&&e.min?"":`
`}}function FY(e){return Array.from({length:e+1}).join(" ")}function _o(e,t){if(t&&(MY(t),t.plugins)){let n=j5(t.plugins,e);if(n!==null)return F5(n,e,vR(t),"",0,[])}let r=L5(e,H5(t),U5(t),z5(t));return r!==null?r:B5(e,vR(t),"",0,[])}var Uw={AsymmetricMatcher:PG,DOMCollection:MG,DOMElement:VG,Immutable:lY,ReactElement:EY,ReactTestComponent:TY,Error:kY},ER={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},jY={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},xs="…";function qY(e,t){let r=ER[jY[t]]||ER[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function HY({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:s=[],truncate:c=1/0,stylize:d=String}={},f){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(c),seen:s,inspect:f,stylize:d};return p.colors&&(p.stylize=qY),p}function UY(e){return e>="\uD800"&&e<="\uDBFF"}function va(e,t,r=xs){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&UY(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function no(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",s="",c="";for(let d=0;d<o;d+=1){let f=d+1===e.length,p=d+2===e.length;c=`${xs}(${e.length-d})`;let h=e[d];t.truncate=i-a.length-(f?0:n.length);let g=s||r(h,t)+(f?"":n),y=a.length+g.length,E=y+c.length;if(f&&y>i&&a.length+c.length<=i||!f&&!p&&E>i||(s=f?"":r(e[d+1],t)+(p?"":n),!f&&p&&E>i&&y+s.length>i))break;if(a+=g,!f&&!p&&y+s.length>=i){c=`${xs}(${e.length-d-1})`;break}c=""}return`${a}${c}`}function zY(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Oc([e,t],r){return r.truncate-=2,typeof e=="string"?e=zY(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function KY(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=no(e,t);t.truncate-=n.length;let o="";return r.length&&(o=no(r.map(i=>[i,e[i]]),t,Oc)),`[ ${n}${o?`, ${o}`:""} ]`}var VY=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Xo(e,t){let r=VY(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let s=`${t.stylize(va(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${xs}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=no(n.map(a=>[a,e[a]]),t,Oc)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function WY(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${va(n[1],t.truncate-o.length-1)}`,"date")}function wR(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${va(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function GY([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function YY(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function XY(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${no(YY(e),t,GY)} }`)}var JY=Number.isNaN||(e=>e!==e);function SR(e,t){return JY(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(va(String(e),t.truncate),"number")}function xR(e,t){let r=va(e.toString(),t.truncate-1);return r!==xs&&(r+="n"),t.stylize(r,"bigint")}function QY(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${va(o,n)}/${r}`,"regexp")}function ZY(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function eX(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${no(ZY(e),t)} }`)}var CR=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),tX={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},rX=16;function nX(e){return tX[e]||`\\u${`0000${e.charCodeAt(0).toString(rX)}`.slice(-4)}`}function TR(e,t){return CR.test(e)&&(e=e.replace(CR,nX)),t.stylize(`'${va(e,t.truncate-2)}'`,"string")}function _R(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var K5=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(K5=(n,o)=>{let[i,a]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(a,o)}}`})}catch{}var oX=K5;function Ep(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=no(r.map(s=>[s,e[s]]),t,Oc),i=no(n.map(s=>[s,e[s]]),t,Oc);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var Vb=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function iX(e,t){let r="";return Vb&&Vb in e&&(r=e[Vb]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Ep(e,t)}`}function aX(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${no(e,t)} ]`)}var lX=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function sX(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>lX.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=va(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=no(r.map(a=>[a,e[a]]),t,Oc);return`${n}${o}${i?` { ${i} }`:""}`}function uX([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function b1(e,t){return no(e,t,cX,`
`)}function cX(e,t){switch(e.nodeType){case 1:return V5(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function V5(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=no(r.map(f=>[f,e.getAttribute(f)]),t,uX," ")),t.truncate-=s.length;let c=t.truncate,d=b1(e.children,t);return d&&d.length>c&&(d=`${xs}(${e.children.length})`),`${o}${s}${i}${d}${a}`}var dX=typeof Symbol=="function"&&typeof Symbol.for=="function",Wb=dX?Symbol.for("chai/inspect"):"@@chai/inspect",Gb=Symbol.for("nodejs.util.inspect.custom"),RR=new WeakMap,AR={},PR={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:SR,Number:SR,bigint:xR,BigInt:xR,string:TR,String:TR,function:wR,Function:wR,symbol:_R,Symbol:_R,Array:KY,Date:WY,Map:XY,Set:eX,RegExp:QY,Promise:oX,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:aX,Int8Array:Xo,Uint8Array:Xo,Uint8ClampedArray:Xo,Int16Array:Xo,Uint16Array:Xo,Int32Array:Xo,Uint32Array:Xo,Float32Array:Xo,Float64Array:Xo,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:sX,HTMLCollection:b1,NodeList:b1},fX=(e,t,r)=>Wb in e&&typeof e[Wb]=="function"?e[Wb](t):Gb in e&&typeof e[Gb]=="function"?e[Gb](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&RR.has(e.constructor)?RR.get(e.constructor)(e,t):AR[r]?AR[r](e,t):"",pX=Object.prototype.toString;function v1(e,t={}){let r=HY(t,v1),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=pX.call(e).slice(8,-1)),o in PR)return PR[o](e,r);if(n&&e){let a=fX(e,r,o);if(a)return typeof a=="string"?a:v1(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Ep(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?V5(e,r):"constructor"in e?e.constructor!==Object?iX(e,r):Ep(e,r):e===Object(e)?Ep(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:hX,DOMCollection:mX,DOMElement:gX,Immutable:yX,ReactElement:bX,ReactTestComponent:vX}=Uw,$R=[vX,bX,gX,mX,yX,hX];function yn(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=_o(e,{maxDepth:t,escapeString:!1,plugins:$R,...n})}catch{i=_o(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:$R,...n})}return i.length>=o&&t>1?yn(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var EX=/%[sdjifoOc%]/g;function wX(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a<e.length;a++)i.push(Ku(e[a],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(EX,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():Ku(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Ku(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Ku(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let s=a.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw a}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Ku(i)}`;return o}function Ku(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),v1(e,t)}function W5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jo(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function wp(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function SX(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Vp(e){return Object.prototype.toString.apply(e).slice(8,-1)}function xX(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function G5(e){let t=new Set;return SX(e)?[]:(xX(e,t),Array.from(t))}var Y5={forceWritable:!1};function OR(e,t=Y5){return E1(e,new WeakMap,t)}function E1(e,t,r=Y5){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=E1(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=G5(e);for(let a of i){let s=Object.getOwnPropertyDescriptor(e,a);if(!s)continue;let c=E1(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:s.enumerable,configurable:!0,writable:!0,value:c}):"get"in s?Object.defineProperty(o,a,{...s,get(){return c}}):Object.defineProperty(o,a,{...s,value:c})}return o}return e}function CX(){}var Ar=-1,mr=1,Mt=0,Ot=class{constructor(e,t){ir(this,0);ir(this,1);this[0]=e,this[1]=t}};function TX(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function X5(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function IR(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,a=1;for(;;){let s=e.substring(o-a),c=t.indexOf(s);if(c===-1)return i;a+=c,(c===0||e.substring(o-a)===t.substring(0,a))&&(i=a,a++)}}function _X(e){let t=!1,r=[],n=0,o=null,i=0,a=0,s=0,c=0,d=0;for(;i<e.length;)e[i][0]===Mt?(r[n++]=i,a=c,s=d,c=0,d=0,o=e[i][1]):(e[i][0]===mr?c+=e[i][1].length:d+=e[i][1].length,o&&o.length<=Math.max(a,s)&&o.length<=Math.max(c,d)&&(e.splice(r[n-1],0,new Ot(Ar,o)),e[r[n-1]+1][0]=mr,n--,n--,i=n>0?r[n-1]:-1,a=0,s=0,c=0,d=0,o=null,t=!0)),i++;for(t&&J5(e),PX(e),i=1;i<e.length;){if(e[i-1][0]===Ar&&e[i][0]===mr){let f=e[i-1][1],p=e[i][1],h=IR(f,p),g=IR(p,f);h>=g?(h>=f.length/2||h>=p.length/2)&&(e.splice(i,0,new Ot(Mt,p.substring(0,h))),e[i-1][1]=f.substring(0,f.length-h),e[i+1][1]=p.substring(h),i++):(g>=f.length/2||g>=p.length/2)&&(e.splice(i,0,new Ot(Mt,f.substring(0,g))),e[i-1][0]=mr,e[i-1][1]=p.substring(0,p.length-g),e[i+1][0]=Ar,e[i+1][1]=f.substring(g),i++),i++}i++}}var NR=/[^a-z0-9]/i,kR=/\s/,DR=/[\r\n]/,RX=/\n\r?\n$/,AX=/^\r?\n\r?\n/;function PX(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Mt&&e[t+1][0]===Mt){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=X5(r,n);if(i){let f=n.substring(n.length-i);r=r.substring(0,r.length-i),n=f+n.substring(0,n.length-i),o=f+o}let a=r,s=n,c=o,d=Bf(r,n)+Bf(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let f=Bf(r,n)+Bf(n,o);f>=d&&(d=f,a=r,s=n,c=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function J5(e){e.push(new Ot(Mt,""));let t=0,r=0,n=0,o="",i="",a;for(;t<e.length;)switch(e[t][0]){case mr:n++,i+=e[t][1],t++;break;case Ar:r++,o+=e[t][1],t++;break;case Mt:r+n>1?(r!==0&&n!==0&&(a=TX(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===Mt?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new Ot(Mt,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=X5(i,o),a!==0&&(e[t][1]=i.substring(i.length-a)+e[t][1],i=i.substring(0,i.length-a),o=o.substring(0,o.length-a))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Ot(Ar,o)),t++),i.length&&(e.splice(t,0,new Ot(mr,i)),t++),t++):t!==0&&e[t-1][0]===Mt?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===Mt&&e[t+1][0]===Mt&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&J5(e)}function Bf(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(NR),i=n.match(NR),a=o&&r.match(kR),s=i&&n.match(kR),c=a&&r.match(DR),d=s&&n.match(DR),f=c&&e.match(RX),p=d&&t.match(AX);return f||p?5:c||d?4:o&&!a&&s?3:a||s?2:o||i?1:0}var Q5="Compared values have no visual difference.",$X="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Ff={},MR;function OX(){if(MR)return Ff;MR=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.default=h;let e="diff-sequences",t=0,r=(g,y,E,w,b)=>{let S=0;for(;g<y&&E<w&&b(g,E);)g+=1,E+=1,S+=1;return S},n=(g,y,E,w,b)=>{let S=0;for(;g<=y&&E<=w&&b(y,w);)y-=1,w-=1,S+=1;return S},o=(g,y,E,w,b,S,R)=>{let O=0,D=-g,T=S[O],P=T;S[O]+=r(T+1,y,w+T-D+1,E,b);let _=g<R?g:R;for(O+=1,D+=2;O<=_;O+=1,D+=2){if(O!==g&&P<S[O])T=S[O];else if(T=P+1,y<=T)return O-1;P=S[O],S[O]=T+r(T+1,y,w+T-D+1,E,b)}return R},i=(g,y,E,w,b,S,R)=>{let O=0,D=g,T=S[O],P=T;S[O]-=n(y,T-1,E,w+T-D-1,b);let _=g<R?g:R;for(O+=1,D-=2;O<=_;O+=1,D-=2){if(O!==g&&S[O]<P)T=S[O];else if(T=P-1,T<y)return O-1;P=S[O],S[O]=T-n(y,T-1,E,w+T-D-1,b)}return R},a=(g,y,E,w,b,S,R,O,D,T,P)=>{let _=w-y,N=E-y,V=b-w-N,L=-V-(g-1),K=-V+(g-1),Y=t,$=g<O?g:O;for(let M=0,I=-g;M<=$;M+=1,I+=2){let B=M===0||M!==g&&Y<R[M],k=B?R[M]:Y,z=B?k:k+1,F=_+z-I,q=r(z+1,E,F+1,b,S),U=z+q;if(Y=R[M],R[M]=U,L<=I&&I<=K){let Z=(g-1-(I+V))/2;if(Z<=T&&D[Z]-1<=U){let de=_+k-(B?I+1:I-1),ee=n(y,k,w,de,S),oe=k-ee,ge=de-ee,ye=oe+1,ve=ge+1;P.nChangePreceding=g-1,g-1===ye+ve-y-w?(P.aEndPreceding=y,P.bEndPreceding=w):(P.aEndPreceding=ye,P.bEndPreceding=ve),P.nCommonPreceding=ee,ee!==0&&(P.aCommonPreceding=ye,P.bCommonPreceding=ve),P.nCommonFollowing=q,q!==0&&(P.aCommonFollowing=z+1,P.bCommonFollowing=F+1);let J=U+1,me=F+q+1;return P.nChangeFollowing=g-1,g-1===E+b-J-me?(P.aStartFollowing=E,P.bStartFollowing=b):(P.aStartFollowing=J,P.bStartFollowing=me),!0}}}return!1},s=(g,y,E,w,b,S,R,O,D,T,P)=>{let _=b-E,N=E-y,V=b-w-N,L=V-g,K=V+g,Y=t,$=g<T?g:T;for(let M=0,I=g;M<=$;M+=1,I-=2){let B=M===0||M!==g&&D[M]<Y,k=B?D[M]:Y,z=B?k:k-1,F=_+z-I,q=n(y,z-1,w,F-1,S),U=z-q;if(Y=D[M],D[M]=U,L<=I&&I<=K){let Z=(g+(I-V))/2;if(Z<=O&&U-1<=R[Z]){let de=F-q;if(P.nChangePreceding=g,g===U+de-y-w?(P.aEndPreceding=y,P.bEndPreceding=w):(P.aEndPreceding=U,P.bEndPreceding=de),P.nCommonPreceding=q,q!==0&&(P.aCommonPreceding=U,P.bCommonPreceding=de),P.nChangeFollowing=g-1,g===1)P.nCommonFollowing=0,P.aStartFollowing=E,P.bStartFollowing=b;else{let ee=_+k-(B?I-1:I+1),oe=r(k,E,ee,b,S);P.nCommonFollowing=oe,oe!==0&&(P.aCommonFollowing=k,P.bCommonFollowing=ee);let ge=k+oe,ye=ee+oe;g-1===E+b-ge-ye?(P.aStartFollowing=E,P.bStartFollowing=b):(P.aStartFollowing=ge,P.bStartFollowing=ye)}return!0}}}return!1},c=(g,y,E,w,b,S,R,O,D)=>{let T=w-y,P=b-E,_=E-y,N=b-w,V=N-_,L=_,K=_;if(R[0]=y-1,O[0]=E,V%2===0){let Y=(g||V)/2,$=(_+N)/2;for(let M=1;M<=$;M+=1)if(L=o(M,E,b,T,S,R,L),M<Y)K=i(M,y,w,P,S,O,K);else if(s(M,y,E,w,b,S,R,L,O,K,D))return}else{let Y=((g||V)+1)/2,$=(_+N+1)/2,M=1;for(L=o(M,E,b,T,S,R,L),M+=1;M<=$;M+=1)if(K=i(M-1,y,w,P,S,O,K),M<Y)L=o(M,E,b,T,S,R,L);else if(a(M,y,E,w,b,S,R,L,O,K,D))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${E} bStart=${w} bEnd=${b}`)},d=(g,y,E,w,b,S,R,O,D,T)=>{if(b-w<E-y){if(S=!S,S&&R.length===1){let{foundSubsequence:Z,isCommon:de}=R[0];R[1]={foundSubsequence:(ee,oe,ge)=>{Z(ee,ge,oe)},isCommon:(ee,oe)=>de(oe,ee)}}let q=y,U=E;y=w,E=b,w=q,b=U}let{foundSubsequence:P,isCommon:_}=R[S?1:0];c(g,y,E,w,b,_,O,D,T);let{nChangePreceding:N,aEndPreceding:V,bEndPreceding:L,nCommonPreceding:K,aCommonPreceding:Y,bCommonPreceding:$,nCommonFollowing:M,aCommonFollowing:I,bCommonFollowing:B,nChangeFollowing:k,aStartFollowing:z,bStartFollowing:F}=T;y<V&&w<L&&d(N,y,V,w,L,S,R,O,D,T),K!==0&&P(K,Y,$),M!==0&&P(M,I,B),z<E&&F<b&&d(k,z,E,F,b,S,R,O,D,T)},f=(g,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${g} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${g} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${g} value ${y} is a negative integer`)},p=(g,y)=>{let E=typeof y;if(E!=="function")throw new TypeError(`${e}: ${g} typeof ${E} is not a function`)};function h(g,y,E,w){f("aLength",g),f("bLength",y),p("isCommon",E),p("foundSubsequence",w);let b=r(0,g,0,y,E);if(b!==0&&w(b,0,0),g!==b||y!==b){let S=b,R=b,O=n(S,g-1,R,y-1,E),D=g-O,T=y-O,P=b+O;g!==P&&y!==P&&d(0,S,D,R,T,!1,[{foundSubsequence:w,isCommon:E}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),O!==0&&w(O,D,T)}}return Ff}var IX=OX(),Z5=W5(IX);function NX(e,t){return e.replace(/\s+$/,r=>t(r))}function zw(e,t,r,n,o,i){return e.length!==0?r(`${n} ${NX(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function eN(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return zw(e,t,r,n,o,i)}function tN(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return zw(e,t,r,n,o,i)}function rN(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return zw(e,t,r,n,o,i)}function LR(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function kX(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,a=!1,s=0,c=0;for(;c!==r;){let O=c;for(;c!==r&&e[c][0]===Mt;)c+=1;if(O!==c)if(O===0)c>n&&(i-=c-n,a=!0);else if(c===r){let D=c-O;D>n&&(i-=D-n,a=!0)}else{let D=c-O;D>o&&(i-=D-o,s+=1)}for(;c!==r&&e[c][0]!==Mt;)c+=1}let d=s!==0||a;s!==0?i+=s+1:a&&(i+=1);let f=i-1,p=[],h=0;d&&p.push("");let g=0,y=0,E=0,w=0,b=O=>{let D=p.length;p.push(rN(O,D===0||D===f,t)),E+=1,w+=1},S=O=>{let D=p.length;p.push(eN(O,D===0||D===f,t)),E+=1},R=O=>{let D=p.length;p.push(tN(O,D===0||D===f,t)),w+=1};for(c=0;c!==r;){let O=c;for(;c!==r&&e[c][0]===Mt;)c+=1;if(O!==c)if(O===0){c>n&&(O=c-n,g=O,y=O,E=g,w=y);for(let D=O;D!==c;D+=1)b(e[D][1])}else if(c===r){let D=c-O>n?O+n:c;for(let T=O;T!==D;T+=1)b(e[T][1])}else{let D=c-O;if(D>o){let T=O+n;for(let _=O;_!==T;_+=1)b(e[_][1]);p[h]=LR(g,E,y,w,t),h=p.length,p.push("");let P=D-o;g=E+P,y=w+P,E=g,w=y;for(let _=c-n;_!==c;_+=1)b(e[_][1])}else for(let T=O;T!==c;T+=1)b(e[T][1])}for(;c!==r&&e[c][0]===Ar;)S(e[c][1]),c+=1;for(;c!==r&&e[c][0]===mr;)R(e[c][1]),c+=1}return d&&(p[h]=LR(g,E,y,w,t)),p.join(`
`)}function DX(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case Ar:return eN(i,a,t);case mr:return tN(i,a,t);default:return rN(i,a,t)}}).join(`
`)}var Yb=e=>e,nN=5,MX=0;function LX(){return{aAnnotation:"Expected",aColor:oi.green,aIndicator:"-",bAnnotation:"Received",bColor:oi.red,bIndicator:"+",changeColor:oi.inverse,changeLineTrailingSpaceColor:Yb,commonColor:oi.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Yb,compareKeys:void 0,contextLines:nN,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:oi.yellow,printBasicPrototype:!1,truncateThreshold:MX,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Yb}}function BX(e){return e&&typeof e=="function"?e:void 0}function FX(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:nN}function vl(e={}){return{...LX(),...e,compareKeys:BX(e.compareKeys),contextLines:FX(e.contextLines)}}function ns(e){return e.length===1&&e[0].length===0}function jX(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ar:t+=1;break;case mr:r+=1;break}}),{a:t,b:r}}function qX({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:s},c){if(s)return"";let d="",f="";if(a){let g=String(c.a),y=String(c.b),E=n.length-e.length,w=" ".repeat(Math.max(0,E)),b=" ".repeat(Math.max(0,-E)),S=y.length-g.length,R=" ".repeat(Math.max(0,S)),O=" ".repeat(Math.max(0,-S));d=`${w} ${r} ${R}${g}`,f=`${b} ${i} ${O}${y}`}let p=`${r} ${e}${d}`,h=`${i} ${n}${f}`;return`${t(p)}
${o(h)}
`}function Kw(e,t,r){return qX(r,jX(e))+(r.expand?DX(e,r):kX(e,r))+(t?r.truncateAnnotationColor(`
${r.truncateAnnotation}`):"")}function rm(e,t,r){let n=vl(r),[o,i]=oN(ns(e)?[]:e,ns(t)?[]:t,n);return Kw(o,i,n)}function HX(e,t,r,n,o){if(ns(e)&&ns(r)&&(e=[],r=[]),ns(t)&&ns(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return rm(e,t,o);let[i,a]=oN(r,n,o),s=0,c=0;return i.forEach(d=>{switch(d[0]){case Ar:d[1]=e[s],s+=1;break;case mr:d[1]=t[c],c+=1;break;default:d[1]=t[c],s+=1,c+=1}}),Kw(i,a,vl(o))}function oN(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),i=n?Math.min(e.length,o):e.length,a=n?Math.min(t.length,o):t.length,s=i!==e.length||a!==t.length,c=(h,g)=>e[h]===t[g],d=[],f=0,p=0;for(Z5(i,a,c,(h,g,y)=>{for(;f!==g;f+=1)d.push(new Ot(Ar,e[f]));for(;p!==y;p+=1)d.push(new Ot(mr,t[p]));for(;h!==0;h-=1,f+=1,p+=1)d.push(new Ot(Mt,t[p]))});f!==i;f+=1)d.push(new Ot(Ar,e[f]));for(;p!==a;p+=1)d.push(new Ot(mr,t[p]));return[d,s]}function BR(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function FR(e){return e.includes(`\r
`)?`\r
`:`
`}function UX(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),i=e.length,a=t.length;if(n){let h=e.includes(`
`),g=t.includes(`
`),y=FR(e),E=FR(t),w=h?`${e.split(y,o).join(y)}
`:e,b=g?`${t.split(E,o).join(E)}
`:t;i=w.length,a=b.length}let s=i!==e.length||a!==t.length,c=(h,g)=>e[h]===t[g],d=0,f=0,p=[];return Z5(i,a,c,(h,g,y)=>{d!==g&&p.push(new Ot(Ar,e.slice(d,g))),f!==y&&p.push(new Ot(mr,t.slice(f,y))),d=g+h,f=y+h,p.push(new Ot(Mt,t.slice(y,f)))}),d!==i&&p.push(new Ot(Ar,e.slice(d))),f!==a&&p.push(new Ot(mr,t.slice(f))),[p,s]}function zX(e,t,r){return t.reduce((n,o)=>n+(o[0]===Mt?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var jR=class{constructor(e,t){ir(this,"op");ir(this,"line");ir(this,"lines");ir(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Ot(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Ot(this.op,zX(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ot(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
`)){let r=t.split(`
`),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},KX=class{constructor(e,t){ir(this,"deleteBuffer");ir(this,"insertBuffer");ir(this,"lines");this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
`)){let n=r.split(`
`),o=n.length-1;n.forEach((i,a)=>{if(a===0){let s=new Ot(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else a<o?this.pushDiffCommonLine(new Ot(t,i)):i.length!==0&&this.pushDiffChangeLines(new Ot(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function VX(e,t){let r=new jR(Ar,t),n=new jR(mr,t),o=new KX(r,n);return e.forEach(i=>{switch(i[0]){case Ar:r.align(i);break;case mr:n.align(i);break;default:o.align(i)}}),o.getLines()}function WX(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Mt&&(o!==r||n[1]!==`
`))}return e.some(r=>r[0]===Mt)}function GX(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
`)||t.includes(`
`),[o,i]=iN(n?`${e}
`:e,n?`${t}
`:t,!0,r);if(WX(o,n)){let a=vl(r),s=VX(o,a.changeColor);return Kw(s,i,a)}}return rm(e.split(`
`),t.split(`
`),r)}function iN(e,t,r,n){let[o,i]=UX(e,t,n);return _X(o),[o,i]}function w1(e,t){let{commonColor:r}=vl(t);return r(e)}var{AsymmetricMatcher:YX,DOMCollection:XX,DOMElement:JX,Immutable:QX,ReactElement:ZX,ReactTestComponent:eJ}=Uw,aN=[eJ,ZX,JX,XX,QX,YX,Uw.Error],S1={maxDepth:20,plugins:aN},lN={callToJSON:!1,maxDepth:8,plugins:aN};function Ys(e,t,r){if(Object.is(e,t))return"";let n=BR(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==BR(t)){let a=function(R){return R.length<=w?R:`${R.slice(0,w)}...`},{aAnnotation:s,aColor:c,aIndicator:d,bAnnotation:f,bColor:p,bIndicator:h}=vl(r),g=x1(lN,r),y=_o(e,g),E=_o(t,g),w=1e5;y=a(y),E=a(E);let b=`${c(`${d} ${s}:`)}
${y}`,S=`${p(`${h} ${f}:`)}
${E}`;return`${b}
${S}`}if(!i)switch(n){case"string":return rm(e.split(`
`),t.split(`
`),r);case"boolean":case"number":return tJ(e,t,r);case"map":return Xb(qR(e),qR(t),r);case"set":return Xb(HR(e),HR(t),r);default:return Xb(e,t,r)}}function tJ(e,t,r){let n=_o(e,S1),o=_o(t,S1);return n===o?"":rm(n.split(`
`),o.split(`
`),r)}function qR(e){return new Map(Array.from(e.entries()).sort())}function HR(e){return new Set(Array.from(e.values()).sort())}function Xb(e,t,r){let n,o=!1;try{let a=x1(S1,r);n=UR(e,t,a,r)}catch{o=!0}let i=w1(Q5,r);if(n===void 0||n===i){let a=x1(lN,r);n=UR(e,t,a,r),n!==i&&!o&&(n=`${w1($X,r)}
${n}`)}return n}function x1(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=vl(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function UR(e,t,r,n){let o={...r,indent:0},i=_o(e,o),a=_o(t,o);if(i===a)return w1(Q5,n);{let s=_o(e,r),c=_o(t,r);return HX(s.split(`
`),c.split(`
`),i.split(`
`),a.split(`
`),n)}}var zR=2e4;function KR(e){return Vp(e)==="Object"&&typeof e.asymmetricMatch=="function"}function VR(e,t){let r=Vp(e),n=Vp(t);return r===n&&(r==="Object"||r==="Array")}function sN(e,t,r){let{aAnnotation:n,bAnnotation:o}=vl(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=zR&&e.length<=zR&&t!==e){if(t.includes(`
`)||e.includes(`
`))return GX(t,e,r);let[d]=iN(t,e),f=d.some(y=>y[0]===Mt),p=rJ(n,o),h=p(n)+iJ(WR(d,Ar,f)),g=p(o)+oJ(WR(d,mr,f));return`${h}
${g}`}let i=OR(t,{forceWritable:!0}),a=OR(e,{forceWritable:!0}),{replacedExpected:s,replacedActual:c}=uN(a,i);return Ys(s,c,r)}function uN(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):VR(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),G5(t).forEach(o=>{let i=t[o],a=e[o];if(KR(i))i.asymmetricMatch(a)&&(e[o]=i);else if(KR(a))a.asymmetricMatch(i)&&(t[o]=a);else if(VR(a,i)){let s=uN(a,i,r,n);e[o]=s.replacedActual,t[o]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function rJ(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var nJ="·";function cN(e){return e.replace(/\s+$/gm,t=>nJ.repeat(t.length))}function oJ(e){return oi.red(cN(yn(e)))}function iJ(e){return oi.green(cN(yn(e)))}function WR(e,t,r){return e.reduce((n,o)=>n+(o[0]===Mt?o[1]:o[0]===t?r?oi.inverse(o[1]):o[1]:""),"")}var aJ="@@__IMMUTABLE_RECORD__@@",lJ="@@__IMMUTABLE_ITERABLE__@@";function sJ(e){return e&&(e[lJ]||e[aJ])}var uJ=Object.getPrototypeOf({});function GR(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Zi(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&jf(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&jf(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&jf(()=>r.name??(r.name=e.name)),e.cause!=null&&jf(()=>r.cause??(r.cause=Zi(e.cause,t)))),Zi(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(sJ(e))return Zi(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${wX(e.sample)}`;if(typeof e.toJSON=="function")return Zi(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=Zi(n,t)}catch(i){r[o]=GR(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==uJ;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Zi(e[o],t)}catch(i){delete r[o],r[o]=GR(i)}}),n=Object.getPrototypeOf(n);return r}}function jf(e){try{return e()}catch{}}function cJ(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Vw(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=sN(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=yn(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=yn(n.actual,10));try{typeof n.message=="string"&&(n.message=cJ(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Vw(n.cause,t,r))}catch{}try{return Zi(n)}catch(o){return Zi(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message}
Inner error message: ${n==null?void 0:n.message}`))}}var Qo={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},Jb=globalThis.__STORYBOOK_ADDONS_PREVIEW,dJ=new Error("This function ran after the play function completed. Did you forget to `await` it?"),YR=e=>Object.prototype.toString.call(e)==="[object Object]",fJ=e=>Object.prototype.toString.call(e)==="[object Module]",pJ=e=>{if(!YR(e)&&!fJ(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!YR(t)},hJ=e=>{try{return new e.constructor}catch{return{}}},Qb=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),XR=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},mJ=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{var s,c;try{this.state=((c=(s=Re.window)==null?void 0:s.parent)==null?void 0:c.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{Re.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:s,renderPhase:c,isPlaying:d=!0,isDebugging:f=!1})=>{let p=this.getState(s);this.setState(s,{...Qb(),...XR(p,f),renderPhase:c||p.renderPhase,shadowCalls:f?p.shadowCalls:[],chainedCallIds:f?p.chainedCallIds:new Set,playUntil:f?p.playUntil:void 0,isPlaying:d,isDebugging:f}),this.sync(s)},t=s=>({storyId:c,playUntil:d})=>{this.getState(c).isDebugging||this.setState(c,({calls:p})=>({calls:[],shadowCalls:p.map(h=>({...h,status:"waiting"})),isDebugging:!0}));let f=this.getLog(c);this.setState(c,({shadowCalls:p})=>{var g;if(d||!f.length)return{playUntil:d};let h=p.findIndex(y=>y.id===f[0].callId);return{playUntil:(g=p.slice(0,h).filter(y=>{var E;return y.interceptable&&!((E=y.ancestors)!=null&&E.length)}).slice(-1)[0])==null?void 0:g.id}}),s.emit(m1,{storyId:c,isDebugging:!0})},r=s=>({storyId:c})=>{var p;let d=this.getLog(c).filter(h=>{var g;return!((g=h.ancestors)!=null&&g.length)}),f=d.reduceRight((h,g,y)=>h>=0||g.status==="waiting"?h:y,-1);t(s)({storyId:c,playUntil:(p=d[f-1])==null?void 0:p.callId})},n=s=>({storyId:c,callId:d})=>{var E;let{calls:f,shadowCalls:p,resolvers:h}=this.getState(c),g=f.find(({id:w})=>w===d),y=p.find(({id:w})=>w===d);if(!g&&y&&Object.values(h).length>0){let w=(E=this.getLog(c).find(b=>b.status==="waiting"))==null?void 0:E.callId;y.id!==w&&this.setState(c,{playUntil:y.id}),Object.values(h).forEach(b=>b())}else t(s)({storyId:c,playUntil:d})},o=s=>({storyId:c})=>{var f;let{resolvers:d}=this.getState(c);if(Object.values(d).length>0)Object.values(d).forEach(p=>p());else{let p=(f=this.getLog(c).find(h=>h.status==="waiting"))==null?void 0:f.callId;p?t(s)({storyId:c,playUntil:p}):i({storyId:c})}},i=({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(c=>c())},a=({storyId:s,newPhase:c})=>{let{isDebugging:d}=this.getState(s);if(c==="preparing"&&d)return e({storyId:s,renderPhase:c,isDebugging:d});if(c==="playing")return e({storyId:s,renderPhase:c,isDebugging:d});c==="played"?this.setState(s,{renderPhase:c,isLocked:!1,isPlaying:!1,isDebugging:!1}):c==="errored"?this.setState(s,{renderPhase:c,isLocked:!1,isPlaying:!1}):c==="aborted"?this.setState(s,{renderPhase:c,isLocked:!0,isPlaying:!1}):this.setState(s,{renderPhase:c}),this.sync(s)};Jb&&Jb.ready().then(()=>{this.channel=Jb.getChannel(),this.channel.on(m1,e),this.channel.on(m5,a),this.channel.on(kw,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Qo.START,t(this.channel)),this.channel.on(Qo.BACK,r(this.channel)),this.channel.on(Qo.GOTO,n(this.channel)),this.channel.on(Qo.NEXT,o(this.channel)),this.channel.on(Qo.END,i)})}getState(e){return this.state[e]||Qb()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[n,o])=>{let i=XR(o);return i&&(r[n]=Object.assign(Qb(),i)),r},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};(t=this.channel)==null||t.emit(Qo.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,a)=>{n[a]=i});let o=new Set;return n.reduceRight((i,a)=>(a.args.forEach(s=>{s!=null&&s.__callId__&&o.add(s.__callId__)}),a.path.forEach(s=>{s.__callId__&&o.add(s.__callId__)}),(a.interceptable||a.exception)&&!o.has(a.id)&&(i.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),o.add(a.id)),i),[])}instrument(e,t,r=0){if(!pJ(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((a,s)=>{let c=gJ(e,s);if(typeof(c==null?void 0:c.get)=="function"){if(c.configurable){let f=()=>{var p,h;return(h=(p=c==null?void 0:c.get)==null?void 0:p.bind(e))==null?void 0:h()};Object.defineProperty(a,s,{get:()=>this.instrument(f(),{...t,path:o.concat(s)},r)})}return a}let d=e[s];return typeof d!="function"?(a[s]=this.instrument(d,{...t,path:o.concat(s)},r),a):"__originalFn__"in d&&typeof d.__originalFn__=="function"?(a[s]=d,a):(a[s]=(...f)=>this.track(s,d,e,f,t),a[s].__originalFn__=d,Object.defineProperty(a[s],"name",{value:s,writable:!1}),Object.keys(d).length>0&&Object.assign(a[s],this.instrument({...d},{...t,path:o.concat(s)},r)),a)},n?e:hJ(e))}track(e,t,r,n,o){var E,w,b,S;let i=((E=n==null?void 0:n[0])==null?void 0:E.__storyId__)||((S=(b=(w=Re.__STORYBOOK_PREVIEW__)==null?void 0:w.selectionStore)==null?void 0:b.selection)==null?void 0:S.storyId),{cursor:a,ancestors:s}=this.getState(i);this.setState(i,{cursor:a+1});let c=`${s.slice(-1)[0]||i} [${a}] ${e}`,{path:d=[],intercept:f=!1,retain:p=!1}=o,h=typeof f=="function"?f(e,d):f,g={id:c,cursor:a,storyId:i,ancestors:s,path:d,method:e,args:n,interceptable:h,retain:p},y=(h&&!s.length?this.intercept:this.invoke).call(this,t,r,g,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:g.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:a}=this.getState(r.storyId),s=o.has(r.id);return!i||s||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(c=>{this.setState(r.storyId,({resolvers:d})=>({isLocked:!1,resolvers:{...d,[r.id]:c}}))}).then(()=>(this.setState(r.storyId,c=>{let{[r.id]:d,...f}=c.resolvers;return{isLocked:!0,resolvers:f}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),a=25,s=(f,p,h)=>{var g,y,E;if(h.includes(f))return"[Circular]";if(h=[...h,f],p>a)return"...";if(o.has(f))return o.get(f);if(f instanceof Array)return f.map(w=>s(w,++p,h));if(f instanceof Date)return{__date__:{value:f.toISOString()}};if(f instanceof Error){let{name:w,message:b,stack:S}=f;return{__error__:{name:w,message:b,stack:S}}}if(f instanceof RegExp){let{flags:w,source:b}=f;return{__regexp__:{flags:w,source:b}}}if(f instanceof((g=Re.window)==null?void 0:g.HTMLElement)){let{prefix:w,localName:b,id:S,classList:R,innerText:O}=f,D=Array.from(R);return{__element__:{prefix:w,localName:b,id:S,classNames:D,innerText:O}}}return typeof f=="function"?{__function__:{name:"getMockName"in f?f.getMockName():f.name}}:typeof f=="symbol"?{__symbol__:{description:f.description}}:typeof f=="object"&&((y=f==null?void 0:f.constructor)!=null&&y.name)&&((E=f==null?void 0:f.constructor)==null?void 0:E.name)!=="Object"?{__class__:{name:f.constructor.name}}:Object.prototype.toString.call(f)==="[object Object]"?Object.fromEntries(Object.entries(f).map(([w,b])=>[w,s(b,++p,h)])):f},c={...r,args:r.args.map(f=>s(f,0,[]))};r.path.forEach(f=>{f!=null&&f.__callId__&&this.setState(r.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(f.__callId__))}))});let d=f=>{var p;if(f instanceof Error){let{name:h,message:g,stack:y,callId:E=r.id}=f,{showDiff:w=void 0,diff:b=void 0,actual:S=void 0,expected:R=void 0}=f.name==="AssertionError"?Vw(f):f,O={name:h,message:g,stack:y,callId:E,showDiff:w,diff:b,actual:S,expected:R};if(this.update({...c,status:"error",exception:O}),this.setState(r.storyId,D=>({callRefsByResult:new Map([...Array.from(D.callRefsByResult.entries()),[f,{__callId__:r.id,retain:r.retain}]])})),(p=r.ancestors)==null?void 0:p.length)throw Object.prototype.hasOwnProperty.call(f,"callId")||Object.defineProperty(f,"callId",{value:r.id}),f}throw f};try{if(i==="played"&&!r.retain)throw dJ;let f=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(h=>typeof h!="function"||yJ(h)||Object.keys(h).length?h:(...g)=>{let{cursor:y,ancestors:E}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...E,r.id]});let w=()=>this.setState(r.storyId,{cursor:y,ancestors:E}),b=!1;try{let S=h(...g);return S instanceof Promise?(b=!0,S.finally(w)):S}finally{b||w()}}),p=e.apply(t,f);return p&&["object","function","symbol"].includes(typeof p)&&this.setState(r.storyId,h=>({callRefsByResult:new Map([...Array.from(h.callRefsByResult.entries()),[p,{__callId__:r.id,retain:r.retain}]])})),this.update({...c,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(h=>(this.update({...c,status:"done"}),h),d):p}catch(f){return d(f)}}update(e){var t;(t=this.channel)==null||t.emit(Qo.CALL,e),this.setState(e.storyId,({calls:r})=>{let n=r.concat(e).reduce((o,i)=>Object.assign(o,{[i.id]:i}),{});return{calls:Object.values(n).sort((o,i)=>o.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{var d,f,p;let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=(d=o.filter(({ancestors:h})=>!h.length).find(h=>h.status==="waiting"))==null?void 0:d.callId,a=o.some(h=>h.status==="active");if(this.detached||r||a||o.length===0){let h={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};(f=this.channel)==null||f.emit(Qo.SYNC,h);return}let s=o.some(h=>h.status==="done"||h.status==="error"),c={controlStates:{detached:this.detached,start:s,back:s,goto:!0,next:n,end:n},logItems:o,pausedAt:i};(p=this.channel)==null||p.emit(Qo.SYNC,c)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function nm(e,t={}){var r,n,o,i,a,s,c,d;try{let f=!1,p=!1;return(o=(n=(r=Re.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&o.includes("instrument=true")?f=!0:(s=(a=(i=Re.window)==null?void 0:i.location)==null?void 0:a.search)!=null&&s.includes("instrument=false")&&(p=!0),((c=Re.window)==null?void 0:c.parent)===Re.window&&!f||p?e:(Re.window&&!Re.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Re.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new mJ),((d=Re.window)==null?void 0:d.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(f){return gr.warn(f),e}}function gJ(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function yJ(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var C1={},bJ=ne({"../../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((o,i)=>Math.min(o,i.length),1/0):0}}}),vJ=ne({"../../node_modules/strip-indent/index.js"(e,t){var r=bJ();t.exports=n=>{let o=r(n);if(o===0)return n;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(i,"")}}}),EJ=ne({"../../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(n===0)return r;let i=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(i,o.indent.repeat(n))}}}),dN=ne({"../../node_modules/redent/index.js"(e,t){var r=vJ(),n=EJ();t.exports=(o,i=0,a)=>n(r(o),i,a)}}),wJ=ne({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,o={"@@iterator":function(){return o},next:function(){if(n<r.length){var i=r[n];return n=n+1,{done:!1,value:i}}else return{done:!0}}};return o}e.default=t}}),ad=ne({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(wJ());function r(i){return i&&i.__esModule?i:{default:i}}function n(i){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n(i)}function o(i,a){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(a)}),i}}}),SJ=ne({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ad());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,h){return c(p)||s(p,h)||i(p,h)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(p,h){if(p){if(typeof p=="string")return a(p,h);var g={}.toString.call(p).slice(8,-1);return g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set"?Array.from(p):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?a(p,h):void 0}}function a(p,h){(h==null||h>p.length)&&(h=p.length);for(var g=0,y=Array(h);g<h;g++)y[g]=p[g];return y}function s(p,h){var g=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(g!=null){var y,E,w,b,S=[],R=!0,O=!1;try{if(w=(g=g.call(p)).next,h===0){if(Object(g)!==g)return;R=!1}else for(;!(R=(y=w.call(g)).done)&&(S.push(y.value),S.length!==h);R=!0);}catch(D){O=!0,E=D}finally{try{if(!R&&g.return!=null&&(b=g.return(),Object(b)!==b))return}finally{if(O)throw E}}return S}}function c(p){if(Array.isArray(p))return p}var d=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],f={entries:function(){return d},forEach:function(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=0,y=d;g<y.length;g++){var E=n(y[g],2),w=E[0],b=E[1];p.call(h,b,w,d)}},get:function(p){var h=d.filter(function(g){return g[0]===p})[0];return h&&h[1]},has:function(p){return!!f.get(p)},keys:function(){return d.map(function(p){var h=n(p,1),g=h[0];return g})},values:function(){return d.map(function(p){var h=n(p,2),g=h[1];return g})}};e.default=(0,t.default)(f,f.entries())}}),xJ=ne({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ad());function r(p){return p&&p.__esModule?p:{default:p}}function n(p,h){return c(p)||s(p,h)||i(p,h)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(p,h){if(p){if(typeof p=="string")return a(p,h);var g={}.toString.call(p).slice(8,-1);return g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set"?Array.from(p):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?a(p,h):void 0}}function a(p,h){(h==null||h>p.length)&&(h=p.length);for(var g=0,y=Array(h);g<h;g++)y[g]=p[g];return y}function s(p,h){var g=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(g!=null){var y,E,w,b,S=[],R=!0,O=!1;try{if(w=(g=g.call(p)).next,h===0){if(Object(g)!==g)return;R=!1}else for(;!(R=(y=w.call(g)).done)&&(S.push(y.value),S.length!==h);R=!0);}catch(D){O=!0,E=D}finally{try{if(!R&&g.return!=null&&(b=g.return(),Object(b)!==b))return}finally{if(O)throw E}}return S}}function c(p){if(Array.isArray(p))return p}var d=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],f={entries:function(){return d},forEach:function(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=0,y=d;g<y.length;g++){var E=n(y[g],2),w=E[0],b=E[1];p.call(h,b,w,d)}},get:function(p){var h=d.filter(function(g){return g[0]===p})[0];return h&&h[1]},has:function(p){return!!f.get(p)},keys:function(){return d.map(function(p){var h=n(p,1),g=h[0];return g})},values:function(){return d.map(function(p){var h=n(p,2),g=h[1];return g})}};e.default=(0,t.default)(f,f.entries())}}),CJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),TJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),_J=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),RJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),AJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),PJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),$J=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),OJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),IJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};e.default=t}}),NJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),kJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),DJ=ne({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),MJ=ne({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=g(CJ()),r=g(TJ()),n=g(_J()),o=g(RJ()),i=g(AJ()),a=g(PJ()),s=g($J()),c=g(OJ()),d=g(IJ()),f=g(NJ()),p=g(kJ()),h=g(DJ());function g(E){return E&&E.__esModule?E:{default:E}}var y=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",i.default],["roletype",a.default],["section",s.default],["sectionhead",c.default],["select",d.default],["structure",f.default],["widget",p.default],["window",h.default]];e.default=y}}),LJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),BJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};e.default=t}}),FJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),jJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}}),qJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),HJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),UJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),zJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),KJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),VJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}}),WJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),GJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),YJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]};e.default=t}}),XJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),JJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),QJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),ZJ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),eQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}}),tQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),rQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),nQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),oQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),iQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),aQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),lQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),sQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]};e.default=t}}),uQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]};e.default=t}}),cQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),dQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]};e.default=t}}),fQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),pQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),hQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),mQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),gQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),yQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),bQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),vQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),EQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),wQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),SQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),xQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),CQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]};e.default=t}}),TQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}}),_Q=ne({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]};e.default=t}}),RQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]};e.default=t}}),AQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]};e.default=t}}),PQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),$Q=ne({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),OQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),IQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]};e.default=t}}),NQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),kQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),DQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}}),MQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}}),LQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),BQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),FQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]};e.default=t}}),jQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),qQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}}),HQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}}),UQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),zQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]};e.default=t}}),KQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),VQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}}),WQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}}),GQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),YQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),XQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),JQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),QQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]};e.default=t}}),ZQ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]};e.default=t}}),eZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),tZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]};e.default=t}}),rZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),nZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),oZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]};e.default=t}}),iZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),aZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}}),lZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}}),sZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),uZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}}),cZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]};e.default=t}}),dZ=ne({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]};e.default=t}}),fZ=ne({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=xe(LJ()),r=xe(BJ()),n=xe(FJ()),o=xe(jJ()),i=xe(qJ()),a=xe(HJ()),s=xe(UJ()),c=xe(zJ()),d=xe(KJ()),f=xe(VJ()),p=xe(WJ()),h=xe(GJ()),g=xe(YJ()),y=xe(XJ()),E=xe(JJ()),w=xe(QJ()),b=xe(ZJ()),S=xe(eQ()),R=xe(tQ()),O=xe(rQ()),D=xe(nQ()),T=xe(oQ()),P=xe(iQ()),_=xe(aQ()),N=xe(lQ()),V=xe(sQ()),L=xe(uQ()),K=xe(cQ()),Y=xe(dQ()),$=xe(fQ()),M=xe(pQ()),I=xe(hQ()),B=xe(mQ()),k=xe(gQ()),z=xe(yQ()),F=xe(bQ()),q=xe(vQ()),U=xe(EQ()),Z=xe(wQ()),de=xe(SQ()),ee=xe(xQ()),oe=xe(CQ()),ge=xe(TQ()),ye=xe(_Q()),ve=xe(RQ()),J=xe(AQ()),me=xe(PQ()),he=xe($Q()),Se=xe(OQ()),_e=xe(IQ()),$e=xe(NQ()),Oe=xe(kQ()),Te=xe(DQ()),et=xe(MQ()),At=xe(LQ()),yt=xe(BQ()),bt=xe(FQ()),It=xe(jQ()),br=xe(qQ()),vr=xe(HQ()),qn=xe(UQ()),Sa=xe(zQ()),xa=xe(KQ()),wn=xe(VQ()),Ei=xe(WQ()),so=xe(GQ()),Lo=xe(YQ()),nu=xe(XQ()),wi=xe(JQ()),Bo=xe(QQ()),ue=xe(ZQ()),fe=xe(eZ()),Ve=xe(tZ()),tt=xe(rZ()),at=xe(nZ()),Fe=xe(oZ()),cr=xe(iZ()),Er=xe(aZ()),tr=xe(lZ()),en=xe(sZ()),Si=xe(uZ()),Hn=xe(cZ()),wr=xe(dZ());function xe(tn){return tn&&tn.__esModule?tn:{default:tn}}var Ca=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",i.default],["blockquote",a.default],["button",s.default],["caption",c.default],["cell",d.default],["checkbox",f.default],["code",p.default],["columnheader",h.default],["combobox",g.default],["complementary",y.default],["contentinfo",E.default],["definition",w.default],["deletion",b.default],["dialog",S.default],["directory",R.default],["document",O.default],["emphasis",D.default],["feed",T.default],["figure",P.default],["form",_.default],["generic",N.default],["grid",V.default],["gridcell",L.default],["group",K.default],["heading",Y.default],["img",$.default],["insertion",M.default],["link",I.default],["list",B.default],["listbox",k.default],["listitem",z.default],["log",F.default],["main",q.default],["mark",U.default],["marquee",Z.default],["math",de.default],["menu",ee.default],["menubar",oe.default],["menuitem",ge.default],["menuitemcheckbox",ye.default],["menuitemradio",ve.default],["meter",J.default],["navigation",me.default],["none",he.default],["note",Se.default],["option",_e.default],["paragraph",$e.default],["presentation",Oe.default],["progressbar",Te.default],["radio",et.default],["radiogroup",At.default],["region",yt.default],["row",bt.default],["rowgroup",It.default],["rowheader",br.default],["scrollbar",vr.default],["search",qn.default],["searchbox",Sa.default],["separator",xa.default],["slider",wn.default],["spinbutton",Ei.default],["status",so.default],["strong",Lo.default],["subscript",nu.default],["superscript",wi.default],["switch",Bo.default],["tab",ue.default],["table",fe.default],["tablist",Ve.default],["tabpanel",tt.default],["term",at.default],["textbox",Fe.default],["time",cr.default],["timer",Er.default],["toolbar",tr.default],["tooltip",en.default],["tree",Si.default],["treegrid",Hn.default],["treeitem",wr.default]];e.default=Ca}}),pZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),hZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),mZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),gZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),yZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),bZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}}),vZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),EZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),wZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),SZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),xZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),CZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}}),TZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),_Z=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),RZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),AZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}}),PZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),$Z=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),OZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),IZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),NZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),kZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),DZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),MZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),LZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),BZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),FZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),jZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}}),qZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}}),HZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]};e.default=t}}),UZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),zZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),KZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),VZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),WZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),GZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),YZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]};e.default=t}}),XZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),JZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]};e.default=t}}),QZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}}),ZZ=ne({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}}),eee=ne({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=oe(pZ()),r=oe(hZ()),n=oe(mZ()),o=oe(gZ()),i=oe(yZ()),a=oe(bZ()),s=oe(vZ()),c=oe(EZ()),d=oe(wZ()),f=oe(SZ()),p=oe(xZ()),h=oe(CZ()),g=oe(TZ()),y=oe(_Z()),E=oe(RZ()),w=oe(AZ()),b=oe(PZ()),S=oe($Z()),R=oe(OZ()),O=oe(IZ()),D=oe(NZ()),T=oe(kZ()),P=oe(DZ()),_=oe(MZ()),N=oe(LZ()),V=oe(BZ()),L=oe(FZ()),K=oe(jZ()),Y=oe(qZ()),$=oe(HZ()),M=oe(UZ()),I=oe(zZ()),B=oe(KZ()),k=oe(VZ()),z=oe(WZ()),F=oe(GZ()),q=oe(YZ()),U=oe(XZ()),Z=oe(JZ()),de=oe(QZ()),ee=oe(ZZ());function oe(ye){return ye&&ye.__esModule?ye:{default:ye}}var ge=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",o.default],["doc-backlink",i.default],["doc-biblioentry",a.default],["doc-bibliography",s.default],["doc-biblioref",c.default],["doc-chapter",d.default],["doc-colophon",f.default],["doc-conclusion",p.default],["doc-cover",h.default],["doc-credit",g.default],["doc-credits",y.default],["doc-dedication",E.default],["doc-endnote",w.default],["doc-endnotes",b.default],["doc-epigraph",S.default],["doc-epilogue",R.default],["doc-errata",O.default],["doc-example",D.default],["doc-footnote",T.default],["doc-foreword",P.default],["doc-glossary",_.default],["doc-glossref",N.default],["doc-index",V.default],["doc-introduction",L.default],["doc-noteref",K.default],["doc-notice",Y.default],["doc-pagebreak",$.default],["doc-pagefooter",M.default],["doc-pageheader",I.default],["doc-pagelist",B.default],["doc-part",k.default],["doc-preface",z.default],["doc-prologue",F.default],["doc-pullquote",q.default],["doc-qna",U.default],["doc-subtitle",Z.default],["doc-tip",de.default],["doc-toc",ee.default]];e.default=ge}}),tee=ne({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}}),ree=ne({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}}),nee=ne({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}}),oee=ne({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(tee()),r=o(ree()),n=o(nee());function o(a){return a&&a.__esModule?a:{default:a}}var i=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=i}}),Ww=ne({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(MJ()),r=a(fZ()),n=a(eee()),o=a(oee()),i=a(ad());function a(w){return w&&w.__esModule?w:{default:w}}function s(w,b){var S=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!S){if(Array.isArray(w)||(S=f(w))||b){S&&(w=S);var R=0,O=function(){};return{s:O,n:function(){return R>=w.length?{done:!0}:{done:!1,value:w[R++]}},e:function(_){throw _},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D,T=!0,P=!1;return{s:function(){S=S.call(w)},n:function(){var _=S.next();return T=_.done,_},e:function(_){P=!0,D=_},f:function(){try{T||S.return==null||S.return()}finally{if(P)throw D}}}}function c(w,b){return g(w)||h(w,b)||f(w,b)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(w,b){if(w){if(typeof w=="string")return p(w,b);var S={}.toString.call(w).slice(8,-1);return S==="Object"&&w.constructor&&(S=w.constructor.name),S==="Map"||S==="Set"?Array.from(w):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?p(w,b):void 0}}function p(w,b){(b==null||b>w.length)&&(b=w.length);for(var S=0,R=Array(b);S<b;S++)R[S]=w[S];return R}function h(w,b){var S=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(S!=null){var R,O,D,T,P=[],_=!0,N=!1;try{if(D=(S=S.call(w)).next,b===0){if(Object(S)!==S)return;_=!1}else for(;!(_=(R=D.call(S)).done)&&(P.push(R.value),P.length!==b);_=!0);}catch(V){N=!0,O=V}finally{try{if(!_&&S.return!=null&&(T=S.return(),Object(T)!==T))return}finally{if(N)throw O}}return P}}function g(w){if(Array.isArray(w))return w}var y=[].concat(t.default,r.default,n.default,o.default);y.forEach(function(w){var b=c(w,2),S=b[1],R=s(S.superClass),O;try{for(R.s();!(O=R.n()).done;){var D=O.value,T=s(D),P;try{var _=function(){var N=P.value,V=y.filter(function(M){var I=c(M,1),B=I[0];return B===N})[0];if(V)for(var L=V[1],K=0,Y=Object.keys(L.props);K<Y.length;K++){var $=Y[K];Object.prototype.hasOwnProperty.call(S.props,$)||(S.props[$]=L.props[$])}};for(T.s();!(P=T.n()).done;)_()}catch(N){T.e(N)}finally{T.f()}}}catch(N){R.e(N)}finally{R.f()}});var E={entries:function(){return y},forEach:function(w){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=s(y),R;try{for(S.s();!(R=S.n()).done;){var O=c(R.value,2),D=O[0],T=O[1];w.call(b,T,D,y)}}catch(P){S.e(P)}finally{S.f()}},get:function(w){var b=y.filter(function(S){return S[0]===w})[0];return b&&b[1]},has:function(w){return!!E.get(w)},keys:function(){return y.map(function(w){var b=c(w,1),S=b[0];return S})},values:function(){return y.map(function(w){var b=c(w,2),S=b[1];return S})}};e.default=(0,i.default)(E,E.entries())}}),iee=ne({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ad()),r=n(Ww());function n(T){return T&&T.__esModule?T:{default:T}}function o(T,P){return d(T)||c(T,P)||a(T,P)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(T,P){if(T){if(typeof T=="string")return s(T,P);var _={}.toString.call(T).slice(8,-1);return _==="Object"&&T.constructor&&(_=T.constructor.name),_==="Map"||_==="Set"?Array.from(T):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?s(T,P):void 0}}function s(T,P){(P==null||P>T.length)&&(P=T.length);for(var _=0,N=Array(P);_<P;_++)N[_]=T[_];return N}function c(T,P){var _=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(_!=null){var N,V,L,K,Y=[],$=!0,M=!1;try{if(L=(_=_.call(T)).next,P===0){if(Object(_)!==_)return;$=!1}else for(;!($=(N=L.call(_)).done)&&(Y.push(N.value),Y.length!==P);$=!0);}catch(I){M=!0,V=I}finally{try{if(!$&&_.return!=null&&(K=_.return(),Object(K)!==K))return}finally{if(M)throw V}}return Y}}function d(T){if(Array.isArray(T))return T}var f=[],p=r.default.keys();for(b=0;b<p.length;b++)if(h=p[b],g=r.default.get(h),g)for(y=[].concat(g.baseConcepts,g.relatedConcepts),E=function(){var T=y[w];if(T.module==="HTML"){var P=T.concept;if(P){var _=f.filter(function(K){return R(K[0],P)})[0],N;_?N=_[1]:N=[];for(var V=!0,L=0;L<N.length;L++)if(N[L]===h){V=!1;break}V&&N.push(h),_||f.push([P,N])}}},w=0;w<y.length;w++)E();var h,g,y,E,w,b,S={entries:function(){return f},forEach:function(T){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=0,N=f;_<N.length;_++){var V=o(N[_],2),L=V[0],K=V[1];T.call(P,K,L,f)}},get:function(T){var P=f.filter(function(_){return T.name===_[0].name&&D(T.attributes,_[0].attributes)})[0];return P&&P[1]},has:function(T){return!!S.get(T)},keys:function(){return f.map(function(T){var P=o(T,1),_=P[0];return _})},values:function(){return f.map(function(T){var P=o(T,2),_=P[1];return _})}};function R(T,P){return T.name===P.name&&O(T.constraints,P.constraints)&&D(T.attributes,P.attributes)}function O(T,P){if(T===void 0&&P!==void 0||T!==void 0&&P===void 0)return!1;if(T!==void 0&&P!==void 0){if(T.length!==P.length)return!1;for(var _=0;_<T.length;_++)if(T[_]!==P[_])return!1}return!0}function D(T,P){if(T===void 0&&P!==void 0||T!==void 0&&P===void 0)return!1;if(T!==void 0&&P!==void 0){if(T.length!==P.length)return!1;for(var _=0;_<T.length;_++){if(T[_].name!==P[_].name||T[_].value!==P[_].value||T[_].constraints===void 0&&P[_].constraints!==void 0||T[_].constraints!==void 0&&P[_].constraints===void 0)return!1;if(T[_].constraints!==void 0&&P[_].constraints!==void 0){if(T[_].constraints.length!==P[_].constraints.length)return!1;for(var N=0;N<T[_].constraints.length;N++)if(T[_].constraints[N]!==P[_].constraints[N])return!1}}}return!0}e.default=(0,t.default)(S,S.entries())}}),aee=ne({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ad()),r=n(Ww());function n(D){return D&&D.__esModule?D:{default:D}}function o(D,T){return d(D)||c(D,T)||a(D,T)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(D,T){if(D){if(typeof D=="string")return s(D,T);var P={}.toString.call(D).slice(8,-1);return P==="Object"&&D.constructor&&(P=D.constructor.name),P==="Map"||P==="Set"?Array.from(D):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?s(D,T):void 0}}function s(D,T){(T==null||T>D.length)&&(T=D.length);for(var P=0,_=Array(T);P<T;P++)_[P]=D[P];return _}function c(D,T){var P=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(P!=null){var _,N,V,L,K=[],Y=!0,$=!1;try{if(V=(P=P.call(D)).next,T===0){if(Object(P)!==P)return;Y=!1}else for(;!(Y=(_=V.call(P)).done)&&(K.push(_.value),K.length!==T);Y=!0);}catch(M){$=!0,N=M}finally{try{if(!Y&&P.return!=null&&(L=P.return(),Object(L)!==L))return}finally{if($)throw N}}return K}}function d(D){if(Array.isArray(D))return D}var f=[],p=r.default.keys();for(R=0;R<p.length;R++)if(h=p[R],g=r.default.get(h),y=[],g){for(E=[].concat(g.baseConcepts,g.relatedConcepts),S=0;S<E.length;S++)w=E[S],w.module==="HTML"&&(b=w.concept,b!=null&&y.push(b));y.length>0&&f.push([h,y])}var h,g,y,E,w,b,S,R,O={entries:function(){return f},forEach:function(D){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,P=0,_=f;P<_.length;P++){var N=o(_[P],2),V=N[0],L=N[1];D.call(T,L,V,f)}},get:function(D){var T=f.filter(function(P){return P[0]===D})[0];return T&&T[1]},has:function(D){return!!O.get(D)},keys:function(){return f.map(function(D){var T=o(D,1),P=T[0];return P})},values:function(){return f.map(function(D){var T=o(D,2),P=T[1];return P})}};e.default=(0,t.default)(O,O.entries())}}),Gw=ne({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=a(SJ()),r=a(xJ()),n=a(Ww()),o=a(iee()),i=a(aee());function a(s){return s&&s.__esModule?s:{default:s}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=o.default,e.roleElements=i.default}}),fN=ne({"../../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(o),a=i.length,s=-1,c,d="",f=i.charCodeAt(0);++s<a;){if(c=i.charCodeAt(s),c==0){d+="�";continue}if(c>=1&&c<=31||c==127||s==0&&c>=48&&c<=57||s==1&&c>=48&&c<=57&&f==45){d+="\\"+c.toString(16)+" ";continue}if(s==0&&a==1&&c==45){d+="\\"+i.charAt(s);continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){d+=i.charAt(s);continue}d+="\\"+i.charAt(s)}return d};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),pN=ne({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var r=(i=0)=>a=>`\x1B[${38+i};5;${a}m`,n=(i=0)=>(a,s,c)=>`\x1B[${38+i};2;${a};${s};${c}m`;function o(){let i=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(let[s,c]of Object.entries(a)){for(let[d,f]of Object.entries(c))a[d]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},c[d]=a[d],i.set(f[0],f[1]);Object.defineProperty(a,s,{value:c,enumerable:!1})}return Object.defineProperty(a,"codes",{value:i,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi256=r(),a.color.ansi16m=n(),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=n(10),Object.defineProperties(a,{rgbToAnsi256:{value:(s,c,d)=>s===c&&c===d?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(c/255*5)+Math.round(d/255*5),enumerable:!1},hexToRgb:{value:s=>{let c=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!c)return[0,0,0];let{colorString:d}=c.groups;d.length===3&&(d=d.split("").map(p=>p+p).join(""));let f=Number.parseInt(d,16);return[f>>16&255,f>>8&255,f&255]},enumerable:!1},hexToAnsi256:{value:s=>a.rgbToAnsi256(...a.hexToRgb(s)),enumerable:!1}}),a}Object.defineProperty(t,"exports",{enumerable:!0,get:o})}}),om=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=i;var t=(a,s)=>{let c=Object.keys(a).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(d=>{Object.getOwnPropertyDescriptor(a,d).enumerable&&c.push(d)}),c};function r(a,s,c,d,f,p,h=": "){let g="",y=a.next();if(!y.done){g+=s.spacingOuter;let E=c+s.indent;for(;!y.done;){let w=p(y.value[0],s,E,d,f),b=p(y.value[1],s,E,d,f);g+=E+w+h+b,y=a.next(),y.done?s.min||(g+=","):g+=","+s.spacingInner}g+=s.spacingOuter+c}return g}function n(a,s,c,d,f,p){let h="",g=a.next();if(!g.done){h+=s.spacingOuter;let y=c+s.indent;for(;!g.done;)h+=y+p(g.value,s,y,d,f),g=a.next(),g.done?s.min||(h+=","):h+=","+s.spacingInner;h+=s.spacingOuter+c}return h}function o(a,s,c,d,f,p){let h="";if(a.length){h+=s.spacingOuter;let g=c+s.indent;for(let y=0;y<a.length;y++)h+=g,y in a&&(h+=p(a[y],s,g,d,f)),y<a.length-1?h+=","+s.spacingInner:s.min||(h+=",");h+=s.spacingOuter+c}return h}function i(a,s,c,d,f,p){let h="",g=t(a,s.compareKeys);if(g.length){h+=s.spacingOuter;let y=c+s.indent;for(let E=0;E<g.length;E++){let w=g[E],b=p(w,s,y,d,f),S=p(a[w],s,y,d,f);h+=y+b+": "+S,E<g.length-1?h+=","+s.spacingInner:s.min||(h+=",")}h+=s.spacingOuter+c}return h}}}),lee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=om(),r=function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,i=" ",a=(f,p,h,g,y,E)=>{let w=f.toString();return w==="ArrayContaining"||w==="ArrayNotContaining"?++g>p.maxDepth?"["+w+"]":w+i+"["+(0,t.printListItems)(f.sample,p,h,g,y,E)+"]":w==="ObjectContaining"||w==="ObjectNotContaining"?++g>p.maxDepth?"["+w+"]":w+i+"{"+(0,t.printObjectProperties)(f.sample,p,h,g,y,E)+"}":w==="StringMatching"||w==="StringNotMatching"||w==="StringContaining"||w==="StringNotContaining"?w+i+E(f.sample,p,h,g,y):f.toAsymmetricMatcher()};e.serialize=a;var s=f=>f&&f.$$typeof===o;e.test=s;var c={serialize:a,test:s},d=c;e.default=d}}),see=ne({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}}}),uee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(see()),r=n(pN());function n(d){return d&&d.__esModule?d:{default:d}}var o=d=>d.replace((0,t.default)(),f=>{switch(f){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),i=d=>typeof d=="string"&&!!d.match((0,t.default)());e.test=i;var a=(d,f,p,h,g,y)=>y(o(d),f,p,h,g);e.serialize=a;var s={serialize:a,test:i},c=s;e.default=c}}),cee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=om(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,i=p=>n.indexOf(p)!==-1||o.test(p),a=p=>p&&p.constructor&&!!p.constructor.name&&i(p.constructor.name);e.test=a;var s=p=>p.constructor.name==="NamedNodeMap",c=(p,h,g,y,E,w)=>{let b=p.constructor.name;return++y>h.maxDepth?"["+b+"]":(h.min?"":b+r)+(n.indexOf(b)!==-1?"{"+(0,t.printObjectProperties)(s(p)?Array.from(p).reduce((S,R)=>(S[R.name]=R.value,S),{}):{...p},h,g,y,E,w)+"}":"["+(0,t.printListItems)(Array.from(p),h,g,y,E,w)+"]")};e.serialize=c;var d={serialize:c,test:a},f=d;e.default=f}}),dee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}}}),Yw=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(dee());function r(d){return d&&d.__esModule?d:{default:d}}var n=(d,f,p,h,g,y,E)=>{let w=h+p.indent,b=p.colors;return d.map(S=>{let R=f[S],O=E(R,p,w,g,y);return typeof R!="string"&&(O.indexOf(`
`)!==-1&&(O=p.spacingOuter+w+O+p.spacingOuter+h),O="{"+O+"}"),p.spacingInner+h+b.prop.open+S+b.prop.close+"="+b.value.open+O+b.value.close}).join("")};e.printProps=n;var o=(d,f,p,h,g,y)=>d.map(E=>f.spacingOuter+p+(typeof E=="string"?i(E,f):y(E,f,p,h,g))).join("");e.printChildren=o;var i=(d,f)=>{let p=f.colors.content;return p.open+(0,t.default)(d)+p.close};e.printText=i;var a=(d,f)=>{let p=f.colors.comment;return p.open+"<!--"+(0,t.default)(d)+"-->"+p.close};e.printComment=a;var s=(d,f,p,h,g)=>{let y=h.colors.tag;return y.open+"<"+d+(f&&y.close+f+h.spacingOuter+g+y.open)+(p?">"+y.close+p+h.spacingOuter+g+y.open+"</"+d:(f&&!h.min?"":" ")+"/")+">"+y.close};e.printElement=s;var c=(d,f)=>{let p=f.colors.tag;return p.open+"<"+d+p.close+" …"+p.open+" />"+p.close};e.printElementAsLeaf=c}}),fee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Yw(),r=1,n=3,o=8,i=11,a=/^((HTML|SVG)\w*)?Element$/,s=w=>{try{return typeof w.hasAttribute=="function"&&w.hasAttribute("is")}catch{return!1}},c=w=>{let b=w.constructor.name,{nodeType:S,tagName:R}=w,O=typeof R=="string"&&R.includes("-")||s(w);return S===r&&(a.test(b)||O)||S===n&&b==="Text"||S===o&&b==="Comment"||S===i&&b==="DocumentFragment"},d=w=>{var b;return(w==null||(b=w.constructor)===null||b===void 0?void 0:b.name)&&c(w)};e.test=d;function f(w){return w.nodeType===n}function p(w){return w.nodeType===o}function h(w){return w.nodeType===i}var g=(w,b,S,R,O,D)=>{if(f(w))return(0,t.printText)(w.data,b);if(p(w))return(0,t.printComment)(w.data,b);let T=h(w)?"DocumentFragment":w.tagName.toLowerCase();return++R>b.maxDepth?(0,t.printElementAsLeaf)(T,b):(0,t.printElement)(T,(0,t.printProps)(h(w)?[]:Array.from(w.attributes).map(P=>P.name).sort(),h(w)?{}:Array.from(w.attributes).reduce((P,_)=>(P[_.name]=_.value,P),{}),b,S+b.indent,R,O,D),(0,t.printChildren)(Array.prototype.slice.call(w.childNodes||w.children),b,S+b.indent,R,O,D),b,S)};e.serialize=g;var y={serialize:g,test:d},E=y;e.default=E}}),pee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=om(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",c="@@__IMMUTABLE_SEQ__@@",d="@@__IMMUTABLE_SET__@@",f="@@__IMMUTABLE_STACK__@@",p=_=>"Immutable."+_,h=_=>"["+_+"]",g=" ",y="…",E=(_,N,V,L,K,Y,$)=>++L>N.maxDepth?h(p($)):p($)+g+"{"+(0,t.printIteratorEntries)(_.entries(),N,V,L,K,Y)+"}";function w(_){let N=0;return{next(){if(N<_._keys.length){let V=_._keys[N++];return{done:!1,value:[V,_.get(V)]}}return{done:!0,value:void 0}}}}var b=(_,N,V,L,K,Y)=>{let $=p(_._name||"Record");return++L>N.maxDepth?h($):$+g+"{"+(0,t.printIteratorEntries)(w(_),N,V,L,K,Y)+"}"},S=(_,N,V,L,K,Y)=>{let $=p("Seq");return++L>N.maxDepth?h($):_[o]?$+g+"{"+(_._iter||_._object?(0,t.printIteratorEntries)(_.entries(),N,V,L,K,Y):y)+"}":$+g+"["+(_._iter||_._array||_._collection||_._iterable?(0,t.printIteratorValues)(_.values(),N,V,L,K,Y):y)+"]"},R=(_,N,V,L,K,Y,$)=>++L>N.maxDepth?h(p($)):p($)+g+"["+(0,t.printIteratorValues)(_.values(),N,V,L,K,Y)+"]",O=(_,N,V,L,K,Y)=>_[i]?E(_,N,V,L,K,Y,_[a]?"OrderedMap":"Map"):_[n]?R(_,N,V,L,K,Y,"List"):_[d]?R(_,N,V,L,K,Y,_[a]?"OrderedSet":"Set"):_[f]?R(_,N,V,L,K,Y,"Stack"):_[c]?S(_,N,V,L,K,Y):b(_,N,V,L,K,Y);e.serialize=O;var D=_=>_&&(_[r]===!0||_[s]===!0);e.test=D;var T={serialize:O,test:D},P=T;e.default=P}}),hee=ne({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,o=60108,i=60114,a=60109,s=60110,c=60112,d=60113,f=60120,p=60115,h=60116,g=60121,y=60122,E=60117,w=60129,b=60131;typeof Symbol=="function"&&Symbol.for&&(S=Symbol.for,t=S("react.element"),r=S("react.portal"),n=S("react.fragment"),o=S("react.strict_mode"),i=S("react.profiler"),a=S("react.provider"),s=S("react.context"),c=S("react.forward_ref"),d=S("react.suspense"),f=S("react.suspense_list"),p=S("react.memo"),h=S("react.lazy"),g=S("react.block"),y=S("react.server.block"),E=S("react.fundamental"),w=S("react.debug_trace_mode"),b=S("react.legacy_hidden"));var S;function R($){if(typeof $=="object"&&$!==null){var M=$.$$typeof;switch(M){case t:switch($=$.type,$){case n:case i:case o:case d:case f:return $;default:switch($=$&&$.$$typeof,$){case s:case c:case h:case p:case a:return $;default:return M}}case r:return M}}}var O=a,D=t,T=c,P=n,_=h,N=p,V=r,L=i,K=o,Y=d;e.ContextConsumer=s,e.ContextProvider=O,e.Element=D,e.ForwardRef=T,e.Fragment=P,e.Lazy=_,e.Memo=N,e.Portal=V,e.Profiler=L,e.StrictMode=K,e.Suspense=Y,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function($){return R($)===s},e.isContextProvider=function($){return R($)===a},e.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},e.isForwardRef=function($){return R($)===c},e.isFragment=function($){return R($)===n},e.isLazy=function($){return R($)===h},e.isMemo=function($){return R($)===p},e.isPortal=function($){return R($)===r},e.isProfiler=function($){return R($)===i},e.isStrictMode=function($){return R($)===o},e.isSuspense=function($){return R($)===d},e.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===n||$===i||$===w||$===o||$===d||$===f||$===b||typeof $=="object"&&$!==null&&($.$$typeof===h||$.$$typeof===p||$.$$typeof===a||$.$$typeof===s||$.$$typeof===c||$.$$typeof===E||$.$$typeof===g||$[0]===y)},e.typeOf=R}}),mee=ne({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=hee()}}),gee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(mee()),r=Yw();function n(h){if(typeof WeakMap!="function")return null;var g=new WeakMap,y=new WeakMap;return(n=function(E){return E?y:g})(h)}function o(h,g){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=n(g);if(y&&y.has(h))return y.get(h);var E={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in h)if(b!=="default"&&Object.prototype.hasOwnProperty.call(h,b)){var S=w?Object.getOwnPropertyDescriptor(h,b):null;S&&(S.get||S.set)?Object.defineProperty(E,b,S):E[b]=h[b]}return E.default=h,y&&y.set(h,E),E}var i=(h,g=[])=>(Array.isArray(h)?h.forEach(y=>{i(y,g)}):h!=null&&h!==!1&&g.push(h),g),a=h=>{let g=h.type;if(typeof g=="string")return g;if(typeof g=="function")return g.displayName||g.name||"Unknown";if(t.isFragment(h))return"React.Fragment";if(t.isSuspense(h))return"React.Suspense";if(typeof g=="object"&&g!==null){if(t.isContextProvider(h))return"Context.Provider";if(t.isContextConsumer(h))return"Context.Consumer";if(t.isForwardRef(h)){if(g.displayName)return g.displayName;let y=g.render.displayName||g.render.name||"";return y!==""?"ForwardRef("+y+")":"ForwardRef"}if(t.isMemo(h)){let y=g.displayName||g.type.displayName||g.type.name||"";return y!==""?"Memo("+y+")":"Memo"}}return"UNDEFINED"},s=h=>{let{props:g}=h;return Object.keys(g).filter(y=>y!=="children"&&g[y]!==void 0).sort()},c=(h,g,y,E,w,b)=>++E>g.maxDepth?(0,r.printElementAsLeaf)(a(h),g):(0,r.printElement)(a(h),(0,r.printProps)(s(h),h.props,g,y+g.indent,E,w,b),(0,r.printChildren)(i(h.props.children),g,y+g.indent,E,w,b),g,y);e.serialize=c;var d=h=>h!=null&&t.isElement(h);e.test=d;var f={serialize:c,test:d},p=f;e.default=p}}),yee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Yw(),r=function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,i=f=>{let{props:p}=f;return p?Object.keys(p).filter(h=>p[h]!==void 0).sort():[]},a=(f,p,h,g,y,E)=>++g>p.maxDepth?(0,t.printElementAsLeaf)(f.type,p):(0,t.printElement)(f.type,f.props?(0,t.printProps)(i(f),f.props,p,h+p.indent,g,y,E):"",f.children?(0,t.printChildren)(f.children,p,h+p.indent,g,y,E):"",p,h);e.serialize=a;var s=f=>f&&f.$$typeof===o;e.test=s;var c={serialize:a,test:s},d=c;e.default=d}}),bee=ne({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=ge,e.plugins=void 0;var t=f(pN()),r=om(),n=f(lee()),o=f(uee()),i=f(cee()),a=f(fee()),s=f(pee()),c=f(gee()),d=f(yee());function f(J){return J&&J.__esModule?J:{default:J}}var p=Object.prototype.toString,h=Date.prototype.toISOString,g=Error.prototype.toString,y=RegExp.prototype.toString,E=J=>typeof J.constructor=="function"&&J.constructor.name||"Object",w=J=>typeof window<"u"&&J===window,b=/^Symbol\((.*)\)(.*)$/,S=/\n/gi,R=class extends Error{constructor(J,me){super(J),this.stack=me,this.name=this.constructor.name}};function O(J){return J==="[object Array]"||J==="[object ArrayBuffer]"||J==="[object DataView]"||J==="[object Float32Array]"||J==="[object Float64Array]"||J==="[object Int8Array]"||J==="[object Int16Array]"||J==="[object Int32Array]"||J==="[object Uint8Array]"||J==="[object Uint8ClampedArray]"||J==="[object Uint16Array]"||J==="[object Uint32Array]"}function D(J){return Object.is(J,-0)?"-0":String(J)}function T(J){return`${J}n`}function P(J,me){return me?"[Function "+(J.name||"anonymous")+"]":"[Function]"}function _(J){return String(J).replace(b,"Symbol($1)")}function N(J){return"["+g.call(J)+"]"}function V(J,me,he,Se){if(J===!0||J===!1)return""+J;if(J===void 0)return"undefined";if(J===null)return"null";let _e=typeof J;if(_e==="number")return D(J);if(_e==="bigint")return T(J);if(_e==="string")return Se?'"'+J.replace(/"|\\/g,"\\$&")+'"':'"'+J+'"';if(_e==="function")return P(J,me);if(_e==="symbol")return _(J);let $e=p.call(J);return $e==="[object WeakMap]"?"WeakMap {}":$e==="[object WeakSet]"?"WeakSet {}":$e==="[object Function]"||$e==="[object GeneratorFunction]"?P(J,me):$e==="[object Symbol]"?_(J):$e==="[object Date]"?isNaN(+J)?"Date { NaN }":h.call(J):$e==="[object Error]"?N(J):$e==="[object RegExp]"?he?y.call(J).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):y.call(J):J instanceof Error?N(J):null}function L(J,me,he,Se,_e,$e){if(_e.indexOf(J)!==-1)return"[Circular]";_e=_e.slice(),_e.push(J);let Oe=++Se>me.maxDepth,Te=me.min;if(me.callToJSON&&!Oe&&J.toJSON&&typeof J.toJSON=="function"&&!$e)return M(J.toJSON(),me,he,Se,_e,!0);let et=p.call(J);return et==="[object Arguments]"?Oe?"[Arguments]":(Te?"":"Arguments ")+"["+(0,r.printListItems)(J,me,he,Se,_e,M)+"]":O(et)?Oe?"["+J.constructor.name+"]":(Te||!me.printBasicPrototype&&J.constructor.name==="Array"?"":J.constructor.name+" ")+"["+(0,r.printListItems)(J,me,he,Se,_e,M)+"]":et==="[object Map]"?Oe?"[Map]":"Map {"+(0,r.printIteratorEntries)(J.entries(),me,he,Se,_e,M," => ")+"}":et==="[object Set]"?Oe?"[Set]":"Set {"+(0,r.printIteratorValues)(J.values(),me,he,Se,_e,M)+"}":Oe||w(J)?"["+E(J)+"]":(Te||!me.printBasicPrototype&&E(J)==="Object"?"":E(J)+" ")+"{"+(0,r.printObjectProperties)(J,me,he,Se,_e,M)+"}"}function K(J){return J.serialize!=null}function Y(J,me,he,Se,_e,$e){let Oe;try{Oe=K(J)?J.serialize(me,he,Se,_e,$e,M):J.print(me,Te=>M(Te,he,Se,_e,$e),Te=>{let et=Se+he.indent;return et+Te.replace(S,`
`+et)},{edgeSpacing:he.spacingOuter,min:he.min,spacing:he.spacingInner},he.colors)}catch(Te){throw new R(Te.message,Te.stack)}if(typeof Oe!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Oe}".`);return Oe}function $(J,me){for(let he=0;he<J.length;he++)try{if(J[he].test(me))return J[he]}catch(Se){throw new R(Se.message,Se.stack)}return null}function M(J,me,he,Se,_e,$e){let Oe=$(me.plugins,J);if(Oe!==null)return Y(Oe,J,me,he,Se,_e);let Te=V(J,me.printFunctionName,me.escapeRegex,me.escapeString);return Te!==null?Te:L(J,me,he,Se,_e,$e)}var I={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},B=Object.keys(I),k={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:I};e.DEFAULT_OPTIONS=k;function z(J){if(Object.keys(J).forEach(me=>{if(!k.hasOwnProperty(me))throw new Error(`pretty-format: Unknown option "${me}".`)}),J.min&&J.indent!==void 0&&J.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(J.theme!==void 0){if(J.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof J.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof J.theme}".`)}}var F=J=>B.reduce((me,he)=>{let Se=J.theme&&J.theme[he]!==void 0?J.theme[he]:I[he],_e=Se&&t.default[Se];if(_e&&typeof _e.close=="string"&&typeof _e.open=="string")me[he]=_e;else throw new Error(`pretty-format: Option "theme" has a key "${he}" whose value "${Se}" is undefined in ansi-styles.`);return me},Object.create(null)),q=()=>B.reduce((J,me)=>(J[me]={close:"",open:""},J),Object.create(null)),U=J=>J&&J.printFunctionName!==void 0?J.printFunctionName:k.printFunctionName,Z=J=>J&&J.escapeRegex!==void 0?J.escapeRegex:k.escapeRegex,de=J=>J&&J.escapeString!==void 0?J.escapeString:k.escapeString,ee=J=>{var me;return{callToJSON:J&&J.callToJSON!==void 0?J.callToJSON:k.callToJSON,colors:J&&J.highlight?F(J):q(),compareKeys:J&&typeof J.compareKeys=="function"?J.compareKeys:k.compareKeys,escapeRegex:Z(J),escapeString:de(J),indent:J&&J.min?"":oe(J&&J.indent!==void 0?J.indent:k.indent),maxDepth:J&&J.maxDepth!==void 0?J.maxDepth:k.maxDepth,min:J&&J.min!==void 0?J.min:k.min,plugins:J&&J.plugins!==void 0?J.plugins:k.plugins,printBasicPrototype:(me=J==null?void 0:J.printBasicPrototype)!==null&&me!==void 0?me:!0,printFunctionName:U(J),spacingInner:J&&J.min?" ":`
`,spacingOuter:J&&J.min?"":`
`}};function oe(J){return new Array(J+1).join(" ")}function ge(J,me){if(me&&(z(me),me.plugins)){let Se=$(me.plugins,J);if(Se!==null)return Y(Se,J,ee(me),"",0,[])}let he=V(J,U(me),Z(me),de(me));return he!==null?he:L(J,ee(me),"",0,[])}var ye={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:i.default,DOMElement:a.default,Immutable:s.default,ReactElement:c.default,ReactTestComponent:d.default};e.plugins=ye;var ve=ge;e.default=ve}}),vee=ne({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function s(d,f){if(!a[d]){a[d]={};for(var p=0;p<d.length;p++)a[d][d.charAt(p)]=p}return a[d][f]}var c={compressToBase64:function(d){if(d==null)return"";var f=c._compress(d,6,function(p){return o.charAt(p)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(d){return d==null?"":d==""?null:c._decompress(d.length,32,function(f){return s(o,d.charAt(f))})},compressToUTF16:function(d){return d==null?"":c._compress(d,15,function(f){return n(f+32)})+" "},decompressFromUTF16:function(d){return d==null?"":d==""?null:c._decompress(d.length,16384,function(f){return d.charCodeAt(f)-32})},compressToUint8Array:function(d){for(var f=c.compress(d),p=new Uint8Array(f.length*2),h=0,g=f.length;h<g;h++){var y=f.charCodeAt(h);p[h*2]=y>>>8,p[h*2+1]=y%256}return p},decompressFromUint8Array:function(d){if(d==null)return c.decompress(d);for(var f=new Array(d.length/2),p=0,h=f.length;p<h;p++)f[p]=d[p*2]*256+d[p*2+1];var g=[];return f.forEach(function(y){g.push(n(y))}),c.decompress(g.join(""))},compressToEncodedURIComponent:function(d){return d==null?"":c._compress(d,6,function(f){return i.charAt(f)})},decompressFromEncodedURIComponent:function(d){return d==null?"":d==""?null:(d=d.replace(/ /g,"+"),c._decompress(d.length,32,function(f){return s(i,d.charAt(f))}))},compress:function(d){return c._compress(d,16,function(f){return n(f)})},_compress:function(d,f,p){if(d==null)return"";var h,g,y={},E={},w="",b="",S="",R=2,O=3,D=2,T=[],P=0,_=0,N;for(N=0;N<d.length;N+=1)if(w=d.charAt(N),Object.prototype.hasOwnProperty.call(y,w)||(y[w]=O++,E[w]=!0),b=S+w,Object.prototype.hasOwnProperty.call(y,b))S=b;else{if(Object.prototype.hasOwnProperty.call(E,S)){if(S.charCodeAt(0)<256){for(h=0;h<D;h++)P=P<<1,_==f-1?(_=0,T.push(p(P)),P=0):_++;for(g=S.charCodeAt(0),h=0;h<8;h++)P=P<<1|g&1,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=g>>1}else{for(g=1,h=0;h<D;h++)P=P<<1|g,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=0;for(g=S.charCodeAt(0),h=0;h<16;h++)P=P<<1|g&1,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=g>>1}R--,R==0&&(R=Math.pow(2,D),D++),delete E[S]}else for(g=y[S],h=0;h<D;h++)P=P<<1|g&1,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=g>>1;R--,R==0&&(R=Math.pow(2,D),D++),y[b]=O++,S=String(w)}if(S!==""){if(Object.prototype.hasOwnProperty.call(E,S)){if(S.charCodeAt(0)<256){for(h=0;h<D;h++)P=P<<1,_==f-1?(_=0,T.push(p(P)),P=0):_++;for(g=S.charCodeAt(0),h=0;h<8;h++)P=P<<1|g&1,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=g>>1}else{for(g=1,h=0;h<D;h++)P=P<<1|g,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=0;for(g=S.charCodeAt(0),h=0;h<16;h++)P=P<<1|g&1,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=g>>1}R--,R==0&&(R=Math.pow(2,D),D++),delete E[S]}else for(g=y[S],h=0;h<D;h++)P=P<<1|g&1,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=g>>1;R--,R==0&&(R=Math.pow(2,D),D++)}for(g=2,h=0;h<D;h++)P=P<<1|g&1,_==f-1?(_=0,T.push(p(P)),P=0):_++,g=g>>1;for(;;)if(P=P<<1,_==f-1){T.push(p(P));break}else _++;return T.join("")},decompress:function(d){return d==null?"":d==""?null:c._decompress(d.length,32768,function(f){return d.charCodeAt(f)})},_decompress:function(d,f,p){var h=[],g=4,y=4,E=3,w="",b=[],S,R,O,D,T,P,_,N={val:p(0),position:f,index:1};for(S=0;S<3;S+=1)h[S]=S;for(O=0,T=Math.pow(2,2),P=1;P!=T;)D=N.val&N.position,N.position>>=1,N.position==0&&(N.position=f,N.val=p(N.index++)),O|=(D>0?1:0)*P,P<<=1;switch(O){case 0:for(O=0,T=Math.pow(2,8),P=1;P!=T;)D=N.val&N.position,N.position>>=1,N.position==0&&(N.position=f,N.val=p(N.index++)),O|=(D>0?1:0)*P,P<<=1;_=n(O);break;case 1:for(O=0,T=Math.pow(2,16),P=1;P!=T;)D=N.val&N.position,N.position>>=1,N.position==0&&(N.position=f,N.val=p(N.index++)),O|=(D>0?1:0)*P,P<<=1;_=n(O);break;case 2:return""}for(h[3]=_,R=_,b.push(_);;){if(N.index>d)return"";for(O=0,T=Math.pow(2,E),P=1;P!=T;)D=N.val&N.position,N.position>>=1,N.position==0&&(N.position=f,N.val=p(N.index++)),O|=(D>0?1:0)*P,P<<=1;switch(_=O){case 0:for(O=0,T=Math.pow(2,8),P=1;P!=T;)D=N.val&N.position,N.position>>=1,N.position==0&&(N.position=f,N.val=p(N.index++)),O|=(D>0?1:0)*P,P<<=1;h[y++]=n(O),_=y-1,g--;break;case 1:for(O=0,T=Math.pow(2,16),P=1;P!=T;)D=N.val&N.position,N.position>>=1,N.position==0&&(N.position=f,N.val=p(N.index++)),O|=(D>0?1:0)*P,P<<=1;h[y++]=n(O),_=y-1,g--;break;case 2:return b.join("")}if(g==0&&(g=Math.pow(2,E),E++),h[_])w=h[_];else if(_===y)w=R+R.charAt(0);else return null;b.push(w),h[y++]=R+w.charAt(0),g--,R=w,g==0&&(g=Math.pow(2,E),E++)}}};return c}();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),hN=Object.defineProperty,se=(e,t)=>hN(e,"name",{value:t,configurable:!0}),Xw=(e,t)=>{for(var r in t)hN(e,r,{get:t[r],enumerable:!0})},Ro={};Xw(Ro,{addChainableMethod:()=>sS,addLengthGuard:()=>ud,addMethod:()=>iS,addProperty:()=>oS,checkError:()=>un,compareByInspect:()=>Xp,eql:()=>qN,expectTypes:()=>wN,flag:()=>qe,getActual:()=>am,getMessage:()=>Zw,getName:()=>sm,getOperator:()=>fS,getOwnEnumerableProperties:()=>dS,getOwnEnumerablePropertySymbols:()=>cS,getPathInfo:()=>nS,hasProperty:()=>lm,inspect:()=>Ze,isNaN:()=>Jp,isNumeric:()=>lr,isProxyEnabled:()=>sd,isRegExp:()=>Qp,objDisplay:()=>rl,overwriteChainableMethod:()=>uS,overwriteMethod:()=>lS,overwriteProperty:()=>aS,proxify:()=>Xs,test:()=>Jw,transferFlags:()=>oo,type:()=>mt});var un={};Xw(un,{compatibleConstructor:()=>yN,compatibleInstance:()=>gN,compatibleMessage:()=>bN,getConstructorName:()=>vN,getMessage:()=>EN});function im(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}se(im,"isErrorInstance");function mN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}se(mN,"isRegExp");function gN(e,t){return im(t)&&e===t}se(gN,"compatibleInstance");function yN(e,t){return im(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}se(yN,"compatibleConstructor");function bN(e,t){let r=typeof e=="string"?e:e.message;return mN(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}se(bN,"compatibleMessage");function vN(e){let t=e;return im(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}se(vN,"getConstructorName");function EN(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}se(EN,"getMessage");function qe(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}se(qe,"flag");function Jw(e,t){let r=qe(e,"negate"),n=t[0];return r?!n:n}se(Jw,"test");function mt(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}se(mt,"type");var Eee="captureStackTrace"in Error,qf,ot=(qf=class extends Error{constructor(t="Unspecified AssertionError",r,n){super(t);ir(this,"message");this.message=t,Eee&&Error.captureStackTrace(this,n||qf);for(let o in r)o in this||(this[o]=r[o])}get name(){return"AssertionError"}get ok(){return!1}toJSON(t){return{...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},se(qf,"AssertionError"),qf);function wN(e,t){let r=qe(e,"message"),n=qe(e,"ssfi");r=r?r+": ":"",e=qe(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let o=t.map(function(a,s){let c=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&s===t.length-1?"or ":"")+c+" "+a}).join(", "),i=mt(e).toLowerCase();if(!t.some(function(a){return i===a}))throw new ot(r+"object tested must be "+o+", but "+i+" given",void 0,n)}se(wN,"expectTypes");function am(e,t){return t.length>4?t[4]:e._obj}se(am,"getActual");var JR={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},wee={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Cs="…";function SN(e,t){let r=JR[wee[t]]||JR[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}se(SN,"colorise");function xN({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:s=[],truncate:c=1/0,stylize:d=String}={},f){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(c),seen:s,inspect:f,stylize:d};return p.colors&&(p.stylize=SN),p}se(xN,"normaliseOptions");function CN(e){return e>="\uD800"&&e<="\uDBFF"}se(CN,"isHighSurrogate");function hi(e,t,r=Cs){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&CN(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}se(hi,"truncate");function Ln(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",s="",c="";for(let d=0;d<o;d+=1){let f=d+1===e.length,p=d+2===e.length;c=`${Cs}(${e.length-d})`;let h=e[d];t.truncate=i-a.length-(f?0:n.length);let g=s||r(h,t)+(f?"":n),y=a.length+g.length,E=y+c.length;if(f&&y>i&&a.length+c.length<=i||!f&&!p&&E>i||(s=f?"":r(e[d+1],t)+(p?"":n),!f&&p&&E>i&&y+s.length>i))break;if(a+=g,!f&&!p&&y+s.length>=i){c=`${Cs}(${e.length-d-1})`;break}c=""}return`${a}${c}`}se(Ln,"inspectList");function TN(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}se(TN,"quoteComplexKey");function Ts([e,t],r){return r.truncate-=2,typeof e=="string"?e=TN(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}se(Ts,"inspectProperty");function _N(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Ln(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Ln(r.map(i=>[i,e[i]]),t,Ts)),`[ ${n}${o?`, ${o}`:""} ]`}se(_N,"inspectArray");var See=se(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function vo(e,t){let r=See(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let s=`${t.stylize(hi(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){o+=`${Cs}(${e.length-e[a]+1})`;break}o+=s}let i="";return n.length&&(i=Ln(n.map(a=>[a,e[a]]),t,Ts)),`${r}[ ${o}${i?`, ${i}`:""} ]`}se(vo,"inspectTypedArray");function RN(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${hi(n[1],t.truncate-o.length-1)}`,"date")}se(RN,"inspectDate");function T1(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${hi(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}se(T1,"inspectFunction");function AN([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}se(AN,"inspectMapEntry");function PN(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}se(PN,"mapToEntries");function $N(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Ln(PN(e),t,AN)} }`)}se($N,"inspectMap");var xee=Number.isNaN||(e=>e!==e);function _1(e,t){return xee(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(hi(String(e),t.truncate),"number")}se(_1,"inspectNumber");function R1(e,t){let r=hi(e.toString(),t.truncate-1);return r!==Cs&&(r+="n"),t.stylize(r,"bigint")}se(R1,"inspectBigInt");function ON(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${hi(o,n)}/${r}`,"regexp")}se(ON,"inspectRegExp");function IN(e){let t=[];return e.forEach(r=>{t.push(r)}),t}se(IN,"arrayFromSet");function NN(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ln(IN(e),t)} }`)}se(NN,"inspectSet");var QR=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Cee={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Tee=16;function kN(e){return Cee[e]||`\\u${`0000${e.charCodeAt(0).toString(Tee)}`.slice(-4)}`}se(kN,"escape");function A1(e,t){return QR.test(e)&&(e=e.replace(QR,kN)),t.stylize(`'${hi(e,t.truncate-2)}'`,"string")}se(A1,"inspectString");function P1(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}se(P1,"inspectSymbol");var _ee=se(()=>"Promise{…}","getPromiseValue"),Ree=_ee;function pc(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Ln(r.map(s=>[s,e[s]]),t,Ts),i=Ln(n.map(s=>[s,e[s]]),t,Ts);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}se(pc,"inspectObject");var Zb=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function DN(e,t){let r="";return Zb&&Zb in e&&(r=e[Zb]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${pc(e,t)}`}se(DN,"inspectClass");function MN(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ln(e,t)} ]`)}se(MN,"inspectArguments");var Aee=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function LN(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>Aee.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=hi(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Ln(r.map(a=>[a,e[a]]),t,Ts);return`${n}${o}${i?` { ${i} }`:""}`}se(LN,"inspectObject");function BN([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}se(BN,"inspectAttribute");function Wp(e,t){return Ln(e,t,FN,`
`)}se(Wp,"inspectNodeCollection");function FN(e,t){switch(e.nodeType){case 1:return Qw(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}se(FN,"inspectNode");function Qw(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=Ln(r.map(f=>[f,e.getAttribute(f)]),t,BN," ")),t.truncate-=s.length;let c=t.truncate,d=Wp(e.children,t);return d&&d.length>c&&(d=`${Cs}(${e.children.length})`),`${o}${s}${i}${d}${a}`}se(Qw,"inspectHTML");var Pee=typeof Symbol=="function"&&typeof Symbol.for=="function",e0=Pee?Symbol.for("chai/inspect"):"@@chai/inspect",t0=Symbol.for("nodejs.util.inspect.custom"),ZR=new WeakMap,eA={},tA={undefined:se((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:se((e,t)=>t.stylize("null","null"),"null"),boolean:se((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:se((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:_1,Number:_1,bigint:R1,BigInt:R1,string:A1,String:A1,function:T1,Function:T1,symbol:P1,Symbol:P1,Array:_N,Date:RN,Map:$N,Set:NN,RegExp:ON,Promise:Ree,WeakSet:se((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:se((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:MN,Int8Array:vo,Uint8Array:vo,Uint8ClampedArray:vo,Int16Array:vo,Uint16Array:vo,Int32Array:vo,Uint32Array:vo,Float32Array:vo,Float64Array:vo,Generator:se(()=>"","Generator"),DataView:se(()=>"","DataView"),ArrayBuffer:se(()=>"","ArrayBuffer"),Error:LN,HTMLCollection:Wp,NodeList:Wp},$ee=se((e,t,r)=>e0 in e&&typeof e[e0]=="function"?e[e0](t):t0 in e&&typeof e[t0]=="function"?e[t0](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&ZR.has(e.constructor)?ZR.get(e.constructor)(e,t):eA[r]?eA[r](e,t):"","inspectCustom"),Oee=Object.prototype.toString;function Gp(e,t={}){let r=xN(t,Gp),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=Oee.call(e).slice(8,-1)),o in tA)return tA[o](e,r);if(n&&e){let a=$ee(e,r,o);if(a)return typeof a=="string"?a:Gp(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?pc(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Qw(e,r):"constructor"in e?e.constructor!==Object?DN(e,r):pc(e,r):e===Object(e)?pc(e,r):r.stylize(String(e),o)}se(Gp,"inspect");var Br={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Ze(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:Br.truncateThreshold?Br.truncateThreshold:1/0};return Gp(e,o)}se(Ze,"inspect");function rl(e){let t=Ze(e),r=Object.prototype.toString.call(e);if(Br.truncateThreshold&&t.length>=Br.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}se(rl,"objDisplay");function Zw(e,t){let r=qe(e,"negate"),n=qe(e,"object"),o=t[3],i=am(e,t),a=r?t[2]:t[1],s=qe(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return rl(n)}).replace(/#\{act\}/g,function(){return rl(i)}).replace(/#\{exp\}/g,function(){return rl(o)}),s?s+": "+a:a}se(Zw,"getMessage");function oo(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}se(oo,"transferFlags");function $1(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}se($1,"type");function eS(){this._key="chai/deep-eql__"+Math.random()+Date.now()}se(eS,"FakeMap");eS.prototype={get:se(function(e){return e[this._key]},"get"),set:se(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var jN=typeof WeakMap=="function"?WeakMap:eS;function O1(e,t,r){if(!r||cl(e)||cl(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}se(O1,"memoizeCompare");function rc(e,t,r,n){if(!(!r||cl(e)||cl(t))){var o=r.get(e);o?o.set(t,n):(o=new jN,o.set(t,n),r.set(e,o))}}se(rc,"memoizeSet");var qN=ld;function ld(e,t,r){if(r&&r.comparator)return I1(e,t,r);var n=tS(e,t);return n!==null?n:I1(e,t,r)}se(ld,"deepEqual");function tS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:cl(e)||cl(t)?!1:null}se(tS,"simpleEqual");function I1(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new jN;var n=r&&r.comparator,o=O1(e,t,r.memoize);if(o!==null)return o;var i=O1(t,e,r.memoize);if(i!==null)return i;if(n){var a=n(e,t);if(a===!1||a===!0)return rc(e,t,r.memoize,a),a;var s=tS(e,t);if(s!==null)return s}var c=$1(e);if(c!==$1(t))return rc(e,t,r.memoize,!1),!1;rc(e,t,r.memoize,!0);var d=HN(e,t,c,r);return rc(e,t,r.memoize,d),d}se(I1,"extensiveDeepEqual");function HN(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return ld(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return rS(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return aa(e,t,n);case"RegExp":return UN(e,t);case"Generator":return zN(e,t,n);case"DataView":return aa(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return aa(new Uint8Array(e),new Uint8Array(t),n);case"Set":return N1(e,t,n);case"Map":return N1(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return VN(e,t,n)}}se(HN,"extensiveDeepEqualByType");function UN(e,t){return e.toString()===t.toString()}se(UN,"regexpEqual");function N1(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],o=[];return e.forEach(se(function(i,a){n.push([i,a])},"gatherEntries")),t.forEach(se(function(i,a){o.push([i,a])},"gatherEntries")),aa(n.sort(),o.sort(),r)}se(N1,"entriesEqual");function aa(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var o=-1;++o<n;)if(ld(e[o],t[o],r)===!1)return!1;return!0}se(aa,"iterableEqual");function zN(e,t,r){return aa(Yp(e),Yp(t),r)}se(zN,"generatorEqual");function KN(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}se(KN,"hasIteratorFunction");function k1(e){if(KN(e))try{return Yp(e[Symbol.iterator]())}catch{return[]}return[]}se(k1,"getIteratorEntries");function Yp(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}se(Yp,"getGeneratorEntries");function D1(e){var t=[];for(var r in e)t.push(r);return t}se(D1,"getEnumerableKeys");function M1(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}se(M1,"getEnumerableSymbols");function rS(e,t,r,n){var o=r.length;if(o===0)return!0;for(var i=0;i<o;i+=1)if(ld(e[r[i]],t[r[i]],n)===!1)return!1;return!0}se(rS,"keysEqual");function VN(e,t,r){var n=D1(e),o=D1(t),i=M1(e),a=M1(t);if(n=n.concat(i),o=o.concat(a),n.length&&n.length===o.length)return aa(L1(n).sort(),L1(o).sort())===!1?!1:rS(e,t,n,r);var s=k1(e),c=k1(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),aa(s,c,r)):n.length===0&&s.length===0&&o.length===0&&c.length===0}se(VN,"objectEqual");function cl(e){return e===null||typeof e!="object"}se(cl,"isPrimitive");function L1(e){return e.map(se(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}se(L1,"mapSymbols");function lm(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}se(lm,"hasProperty");function WN(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}se(WN,"parsePath");function B1(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let i=0;i<r;i++){let a=t[i];n&&(typeof a.p>"u"?n=n[a.i]:n=n[a.p],i===r-1&&(o=n))}return o}se(B1,"internalGetPathValue");function nS(e,t){let r=WN(t),n=r[r.length-1],o={parent:r.length>1?B1(e,r,r.length-1):e,name:n.p||n.i,value:B1(e,r)};return o.exists=lm(o.parent,o.name),o}se(nS,"getPathInfo");var Hf,G=(Hf=class{constructor(e,t,r,n){ir(this,"__flags",{});return qe(this,"ssfi",r||Hf),qe(this,"lockSsfi",n),qe(this,"object",e),qe(this,"message",t),qe(this,"eql",Br.deepEqual||qN),Xs(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Br.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Br.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Br.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Br.showDiff=e}static addProperty(e,t){oS(this.prototype,e,t)}static addMethod(e,t){iS(this.prototype,e,t)}static addChainableMethod(e,t,r){sS(this.prototype,e,t,r)}static overwriteProperty(e,t){aS(this.prototype,e,t)}static overwriteMethod(e,t){lS(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){uS(this.prototype,e,t,r)}assert(e,t,r,n,o,i){let a=Jw(this,arguments);if(i!==!1&&(i=!0),n===void 0&&o===void 0&&(i=!1),Br.showDiff!==!0&&(i=!1),!a){t=Zw(this,arguments);let s={actual:am(this,arguments),expected:n,showDiff:i},c=fS(this,arguments);throw c&&(s.operator=c),new ot(t,s,Br.includeStack?this.assert:qe(this,"ssfi"))}}get _obj(){return qe(this,"object")}set _obj(e){qe(this,"object",e)}},se(Hf,"Assertion"),Hf);function sd(){return Br.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}se(sd,"isProxyEnabled");function oS(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:se(function n(){!sd()&&!qe(this,"lockSsfi")&&qe(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let i=new G;return oo(this,i),i},"propertyGetter"),configurable:!0})}se(oS,"addProperty");var Iee=Object.getOwnPropertyDescriptor(function(){},"length");function ud(e,t,r){return Iee.configurable&&Object.defineProperty(e,"length",{get:se(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}se(ud,"addLengthGuard");function GN(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}se(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}se(GN,"getProperties");var rA=["__flags","__methods","_obj","assert"];function Xs(e,t){return sd()?new Proxy(e,{get:se(function r(n,o){if(typeof o=="string"&&Br.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let i=null,a=4;throw GN(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&rA.indexOf(s)===-1){let c=YN(o,s,a);c<a&&(i=s,a=c)}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return rA.indexOf(o)===-1&&!qe(n,"lockSsfi")&&qe(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}se(Xs,"proxify");function YN(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let a=1;a<=t.length;a++){if(Math.abs(o-a)>=r){n[o][a]=r;continue}n[o][a]=Math.min(n[o-1][a]+1,n[o][a-1]+1,n[o-1][a-1]+(i===t.charCodeAt(a-1)?0:1))}}return n[e.length][t.length]}se(YN,"stringDistanceCapped");function iS(e,t,r){let n=se(function(){qe(this,"lockSsfi")||qe(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let i=new G;return oo(this,i),i},"methodWrapper");ud(n,t,!1),e[t]=Xs(n,t)}se(iS,"addMethod");function aS(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=se(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:se(function i(){!sd()&&!qe(this,"lockSsfi")&&qe(this,"ssfi",i);let a=qe(this,"lockSsfi");qe(this,"lockSsfi",!0);let s=r(o).call(this);if(qe(this,"lockSsfi",a),s!==void 0)return s;let c=new G;return oo(this,c),c},"overwritingPropertyGetter"),configurable:!0})}se(aS,"overwriteProperty");function lS(e,t,r){let n=e[t],o=se(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let i=se(function(){qe(this,"lockSsfi")||qe(this,"ssfi",i);let a=qe(this,"lockSsfi");qe(this,"lockSsfi",!0);let s=r(o).apply(this,arguments);if(qe(this,"lockSsfi",a),s!==void 0)return s;let c=new G;return oo(this,c),c},"overwritingMethodWrapper");ud(i,t,!1),e[t]=Xs(i,t)}se(lS,"overwriteMethod");var Nee=typeof Object.setPrototypeOf=="function",nA=se(function(){},"testFn"),kee=Object.getOwnPropertyNames(nA).filter(function(e){let t=Object.getOwnPropertyDescriptor(nA,e);return typeof t!="object"?!0:!t.configurable}),Dee=Function.prototype.call,Mee=Function.prototype.apply;function sS(e,t,r,n){typeof n!="function"&&(n=se(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:se(function(){o.chainingBehavior.call(this);let i=se(function(){qe(this,"lockSsfi")||qe(this,"ssfi",i);let a=o.method.apply(this,arguments);if(a!==void 0)return a;let s=new G;return oo(this,s),s},"chainableMethodWrapper");if(ud(i,t,!0),Nee){let a=Object.create(this);a.call=Dee,a.apply=Mee,Object.setPrototypeOf(i,a)}else Object.getOwnPropertyNames(e).forEach(function(a){if(kee.indexOf(a)!==-1)return;let s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,s)});return oo(this,i),Xs(i)},"chainableMethodGetter"),configurable:!0})}se(sS,"addChainableMethod");function uS(e,t,r,n){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=se(function(){let s=n(i).call(this);if(s!==void 0)return s;let c=new G;return oo(this,c),c},"overwritingChainableMethodGetter");let a=o.method;o.method=se(function(){let s=r(a).apply(this,arguments);if(s!==void 0)return s;let c=new G;return oo(this,c),c},"overwritingChainableMethodWrapper")}se(uS,"overwriteChainableMethod");function Xp(e,t){return Ze(e)<Ze(t)?-1:1}se(Xp,"compareByInspect");function cS(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}se(cS,"getOwnEnumerablePropertySymbols");function dS(e){return Object.keys(e).concat(cS(e))}se(dS,"getOwnEnumerableProperties");var Jp=Number.isNaN;function XN(e){let t=mt(e);return["Array","Object","Function"].indexOf(t)!==-1}se(XN,"isObjectType");function fS(e,t){let r=qe(e,"operator"),n=qe(e,"negate"),o=t[3],i=n?t[2]:t[1];if(r)return r;if(typeof i=="function"&&(i=i()),i=i||"",!i||/\shave\s/.test(i))return;let a=XN(o);return/\snot\s/.test(i)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}se(fS,"getOperator");function sm(e){return e.name}se(sm,"getName");function Qp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}se(Qp,"isRegExp");function lr(e){return["Number","BigInt"].includes(mt(e))}se(lr,"isNumeric");var{flag:ae}=Ro;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){G.addProperty(e)});G.addProperty("not",function(){ae(this,"negate",!0)});G.addProperty("deep",function(){ae(this,"deep",!0)});G.addProperty("nested",function(){ae(this,"nested",!0)});G.addProperty("own",function(){ae(this,"own",!0)});G.addProperty("ordered",function(){ae(this,"ordered",!0)});G.addProperty("any",function(){ae(this,"any",!0),ae(this,"all",!1)});G.addProperty("all",function(){ae(this,"all",!0),ae(this,"any",!1)});var oA={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function pS(e,t){t&&ae(this,"message",t),e=e.toLowerCase();let r=ae(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=mt(r).toLowerCase();oA.function.includes(e)?this.assert(oA[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}se(pS,"an");G.addChainableMethod("an",pS);G.addChainableMethod("a",pS);function JN(e,t){return Jp(e)&&Jp(t)||e===t}se(JN,"SameValueZero");function cd(){ae(this,"contains",!0)}se(cd,"includeChainingBehavior");function dd(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=mt(r).toLowerCase(),o=ae(this,"message"),i=ae(this,"negate"),a=ae(this,"ssfi"),s=ae(this,"deep"),c=s?"deep ":"",d=s?ae(this,"eql"):JN;o=o?o+": ":"";let f=!1;switch(n){case"string":f=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new ot(o+"unable to use .deep.include with WeakSet",void 0,a);f=r.has(e);break;case"map":r.forEach(function(p){f=f||d(p,e)});break;case"set":s?r.forEach(function(p){f=f||d(p,e)}):f=r.has(e);break;case"array":s?f=r.some(function(p){return d(p,e)}):f=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new ot(o+"the given combination of arguments ("+n+" and "+mt(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+mt(e).toLowerCase(),void 0,a);let p=Object.keys(e),h=null,g=0;if(p.forEach(function(y){let E=new G(r);if(oo(this,E,!0),ae(E,"lockSsfi",!0),!i||p.length===1){E.property(y,e[y]);return}try{E.property(y,e[y])}catch(w){if(!un.compatibleConstructor(w,ot))throw w;h===null&&(h=w),g++}},this),i&&p.length>1&&g===p.length)throw h;return}}this.assert(f,"expected #{this} to "+c+"include "+Ze(e),"expected #{this} to not "+c+"include "+Ze(e))}se(dd,"include");G.addChainableMethod("include",dd,cd);G.addChainableMethod("contain",dd,cd);G.addChainableMethod("contains",dd,cd);G.addChainableMethod("includes",dd,cd);G.addProperty("ok",function(){this.assert(ae(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});G.addProperty("true",function(){this.assert(ae(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!ae(this,"negate"))});G.addProperty("numeric",function(){let e=ae(this,"object");this.assert(["Number","BigInt"].includes(mt(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!ae(this,"negate"))});G.addProperty("callable",function(){let e=ae(this,"object"),t=ae(this,"ssfi"),r=ae(this,"message"),n=r?`${r}: `:"",o=ae(this,"negate"),i=o?`${n}expected ${Ze(e)} not to be a callable function`:`${n}expected ${Ze(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(mt(e));if(a&&o||!a&&!o)throw new ot(i,void 0,t)});G.addProperty("false",function(){this.assert(ae(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!ae(this,"negate"))});G.addProperty("null",function(){this.assert(ae(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});G.addProperty("undefined",function(){this.assert(ae(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});G.addProperty("NaN",function(){this.assert(Jp(ae(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function hS(){let e=ae(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}se(hS,"assertExist");G.addProperty("exist",hS);G.addProperty("exists",hS);G.addProperty("empty",function(){let e=ae(this,"object"),t=ae(this,"ssfi"),r=ae(this,"message"),n;switch(r=r?r+": ":"",mt(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new ot(r+".empty was passed a weak collection",void 0,t);case"function":{let o=r+".empty was passed a function "+sm(e);throw new ot(o.trim(),void 0,t)}default:if(e!==Object(e))throw new ot(r+".empty was passed non-string primitive "+Ze(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function mS(){let e=ae(this,"object"),t=mt(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}se(mS,"checkArguments");G.addProperty("arguments",mS);G.addProperty("Arguments",mS);function um(e,t){t&&ae(this,"message",t);let r=ae(this,"object");if(ae(this,"deep")){let n=ae(this,"lockSsfi");ae(this,"lockSsfi",!0),this.eql(e),ae(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}se(um,"assertEqual");G.addMethod("equal",um);G.addMethod("equals",um);G.addMethod("eq",um);function gS(e,t){t&&ae(this,"message",t);let r=ae(this,"eql");this.assert(r(e,ae(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}se(gS,"assertEql");G.addMethod("eql",gS);G.addMethod("eqls",gS);function cm(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"doLength"),o=ae(this,"message"),i=o?o+": ":"",a=ae(this,"ssfi"),s=mt(r).toLowerCase(),c=mt(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new G(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")throw new ot(i+"the argument to above must be a date",void 0,a);if(!lr(e)&&(n||lr(r)))throw new ot(i+"the argument to above must be a number",void 0,a);if(!n&&s!=="date"&&!lr(r)){let d=s==="string"?"'"+r+"'":r;throw new ot(i+"expected "+d+" to be a number or a date",void 0,a)}if(n){let d="length",f;s==="map"||s==="set"?(d="size",f=r.size):f=r.length,this.assert(f>e,"expected #{this} to have a "+d+" above #{exp} but got #{act}","expected #{this} to not have a "+d+" above #{exp}",e,f)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}se(cm,"assertAbove");G.addMethod("above",cm);G.addMethod("gt",cm);G.addMethod("greaterThan",cm);function dm(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"doLength"),o=ae(this,"message"),i=o?o+": ":"",a=ae(this,"ssfi"),s=mt(r).toLowerCase(),c=mt(e).toLowerCase(),d,f=!0;if(n&&s!=="map"&&s!=="set"&&new G(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")d=i+"the argument to least must be a date";else if(!lr(e)&&(n||lr(r)))d=i+"the argument to least must be a number";else if(!n&&s!=="date"&&!lr(r)){let p=s==="string"?"'"+r+"'":r;d=i+"expected "+p+" to be a number or a date"}else f=!1;if(f)throw new ot(d,void 0,a);if(n){let p="length",h;s==="map"||s==="set"?(p="size",h=r.size):h=r.length,this.assert(h>=e,"expected #{this} to have a "+p+" at least #{exp} but got #{act}","expected #{this} to have a "+p+" below #{exp}",e,h)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}se(dm,"assertLeast");G.addMethod("least",dm);G.addMethod("gte",dm);G.addMethod("greaterThanOrEqual",dm);function fm(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"doLength"),o=ae(this,"message"),i=o?o+": ":"",a=ae(this,"ssfi"),s=mt(r).toLowerCase(),c=mt(e).toLowerCase(),d,f=!0;if(n&&s!=="map"&&s!=="set"&&new G(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")d=i+"the argument to below must be a date";else if(!lr(e)&&(n||lr(r)))d=i+"the argument to below must be a number";else if(!n&&s!=="date"&&!lr(r)){let p=s==="string"?"'"+r+"'":r;d=i+"expected "+p+" to be a number or a date"}else f=!1;if(f)throw new ot(d,void 0,a);if(n){let p="length",h;s==="map"||s==="set"?(p="size",h=r.size):h=r.length,this.assert(h<e,"expected #{this} to have a "+p+" below #{exp} but got #{act}","expected #{this} to not have a "+p+" below #{exp}",e,h)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}se(fm,"assertBelow");G.addMethod("below",fm);G.addMethod("lt",fm);G.addMethod("lessThan",fm);function pm(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"doLength"),o=ae(this,"message"),i=o?o+": ":"",a=ae(this,"ssfi"),s=mt(r).toLowerCase(),c=mt(e).toLowerCase(),d,f=!0;if(n&&s!=="map"&&s!=="set"&&new G(r,o,a,!0).to.have.property("length"),!n&&s==="date"&&c!=="date")d=i+"the argument to most must be a date";else if(!lr(e)&&(n||lr(r)))d=i+"the argument to most must be a number";else if(!n&&s!=="date"&&!lr(r)){let p=s==="string"?"'"+r+"'":r;d=i+"expected "+p+" to be a number or a date"}else f=!1;if(f)throw new ot(d,void 0,a);if(n){let p="length",h;s==="map"||s==="set"?(p="size",h=r.size):h=r.length,this.assert(h<=e,"expected #{this} to have a "+p+" at most #{exp} but got #{act}","expected #{this} to have a "+p+" above #{exp}",e,h)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}se(pm,"assertMost");G.addMethod("most",pm);G.addMethod("lte",pm);G.addMethod("lessThanOrEqual",pm);G.addMethod("within",function(e,t,r){r&&ae(this,"message",r);let n=ae(this,"object"),o=ae(this,"doLength"),i=ae(this,"message"),a=i?i+": ":"",s=ae(this,"ssfi"),c=mt(n).toLowerCase(),d=mt(e).toLowerCase(),f=mt(t).toLowerCase(),p,h=!0,g=d==="date"&&f==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&c!=="map"&&c!=="set"&&new G(n,i,s,!0).to.have.property("length"),!o&&c==="date"&&(d!=="date"||f!=="date"))p=a+"the arguments to within must be dates";else if((!lr(e)||!lr(t))&&(o||lr(n)))p=a+"the arguments to within must be numbers";else if(!o&&c!=="date"&&!lr(n)){let y=c==="string"?"'"+n+"'":n;p=a+"expected "+y+" to be a number or a date"}else h=!1;if(h)throw new ot(p,void 0,s);if(o){let y="length",E;c==="map"||c==="set"?(y="size",E=n.size):E=n.length,this.assert(E>=e&&E<=t,"expected #{this} to have a "+y+" within "+g,"expected #{this} to not have a "+y+" within "+g)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+g,"expected #{this} to not be within "+g)});function yS(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"ssfi"),o=ae(this,"message"),i;try{i=r instanceof e}catch(s){throw s instanceof TypeError?(o=o?o+": ":"",new ot(o+"The instanceof assertion needs a constructor but "+mt(e)+" was given.",void 0,n)):s}let a=sm(e);a==null&&(a="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}se(yS,"assertInstanceOf");G.addMethod("instanceof",yS);G.addMethod("instanceOf",yS);function bS(e,t,r){r&&ae(this,"message",r);let n=ae(this,"nested"),o=ae(this,"own"),i=ae(this,"message"),a=ae(this,"object"),s=ae(this,"ssfi"),c=typeof e;if(i=i?i+": ":"",n){if(c!=="string")throw new ot(i+"the argument to property must be a string when using nested syntax",void 0,s)}else if(c!=="string"&&c!=="number"&&c!=="symbol")throw new ot(i+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&o)throw new ot(i+'The "nested" and "own" flags cannot be combined.',void 0,s);if(a==null)throw new ot(i+"Target cannot be null or undefined.",void 0,s);let d=ae(this,"deep"),f=ae(this,"negate"),p=n?nS(a,e):null,h=n?p.value:a[e],g=d?ae(this,"eql"):(w,b)=>w===b,y="";d&&(y+="deep "),o&&(y+="own "),n&&(y+="nested "),y+="property ";let E;o?E=Object.prototype.hasOwnProperty.call(a,e):n?E=p.exists:E=lm(a,e),(!f||arguments.length===1)&&this.assert(E,"expected #{this} to have "+y+Ze(e),"expected #{this} to not have "+y+Ze(e)),arguments.length>1&&this.assert(E&&g(t,h),"expected #{this} to have "+y+Ze(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+y+Ze(e)+" of #{act}",t,h),ae(this,"object",h)}se(bS,"assertProperty");G.addMethod("property",bS);function vS(e,t,r){ae(this,"own",!0),bS.apply(this,arguments)}se(vS,"assertOwnProperty");G.addMethod("ownProperty",vS);G.addMethod("haveOwnProperty",vS);function ES(e,t,r){typeof t=="string"&&(r=t,t=null),r&&ae(this,"message",r);let n=ae(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=ae(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Ze(e)+" on #{this} to match "+Ze(t)+", got "+Ze(o),"expected the own property descriptor for "+Ze(e)+" on #{this} to not match "+Ze(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+Ze(e),"expected #{this} to not have an own property descriptor for "+Ze(e)),ae(this,"object",o)}se(ES,"assertOwnPropertyDescriptor");G.addMethod("ownPropertyDescriptor",ES);G.addMethod("haveOwnPropertyDescriptor",ES);function wS(){ae(this,"doLength",!0)}se(wS,"assertLengthChain");function SS(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=mt(r).toLowerCase(),o=ae(this,"message"),i=ae(this,"ssfi"),a="length",s;switch(n){case"map":case"set":a="size",s=r.size;break;default:new G(r,o,i,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,s)}se(SS,"assertLength");G.addChainableMethod("length",SS,wS);G.addChainableMethod("lengthOf",SS,wS);function xS(e,t){t&&ae(this,"message",t);let r=ae(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}se(xS,"assertMatch");G.addMethod("match",xS);G.addMethod("matches",xS);G.addMethod("string",function(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"message"),o=ae(this,"ssfi");new G(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Ze(e),"expected #{this} to not contain "+Ze(e))});function CS(e){let t=ae(this,"object"),r=mt(t),n=mt(e),o=ae(this,"ssfi"),i=ae(this,"deep"),a,s="",c,d=!0,f=ae(this,"message");f=f?f+": ":"";let p=f+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")s=i?"deeply ":"",c=[],t.forEach(function(b,S){c.push(S)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(c=dS(t),n){case"Array":if(arguments.length>1)throw new ot(p,void 0,o);break;case"Object":if(arguments.length>1)throw new ot(p,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(b){return typeof b=="symbol"?b:String(b)})}if(!e.length)throw new ot(f+"keys required",void 0,o);let h=e.length,g=ae(this,"any"),y=ae(this,"all"),E=e,w=i?ae(this,"eql"):(b,S)=>b===S;if(!g&&!y&&(y=!0),g&&(d=E.some(function(b){return c.some(function(S){return w(b,S)})})),y&&(d=E.every(function(b){return c.some(function(S){return w(b,S)})}),ae(this,"contains")||(d=d&&e.length==c.length)),h>1){e=e.map(function(S){return Ze(S)});let b=e.pop();y&&(a=e.join(", ")+", and "+b),g&&(a=e.join(", ")+", or "+b)}else a=Ze(e[0]);a=(h>1?"keys ":"key ")+a,a=(ae(this,"contains")?"contain ":"have ")+a,this.assert(d,"expected #{this} to "+s+a,"expected #{this} to not "+s+a,E.slice(0).sort(Xp),c.sort(Xp),!0)}se(CS,"assertKeys");G.addMethod("keys",CS);G.addMethod("key",CS);function hm(e,t,r){r&&ae(this,"message",r);let n=ae(this,"object"),o=ae(this,"ssfi"),i=ae(this,"message"),a=ae(this,"negate")||!1;new G(n,i,o,!0).is.a("function"),(Qp(e)||typeof e=="string")&&(t=e,e=null);let s,c=!1;try{n()}catch(g){c=!0,s=g}let d=e===void 0&&t===void 0,f=!!(e&&t),p=!1,h=!1;if(d||!d&&!a){let g="an error";e instanceof Error?g="#{exp}":e&&(g=un.getConstructorName(e));let y=s;if(s instanceof Error)y=s.toString();else if(typeof s=="string")y=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{y=un.getConstructorName(s)}catch{}this.assert(c,"expected #{this} to throw "+g,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),y)}if(e&&s&&(e instanceof Error&&un.compatibleInstance(s,e)===a&&(f&&a?p=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!a?" but #{act} was thrown":""),e.toString(),s.toString())),un.compatibleConstructor(s,e)===a&&(f&&a?p=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&un.getConstructorName(e),s instanceof Error?s.toString():s&&un.getConstructorName(s)))),s&&t!==void 0&&t!==null){let g="including";Qp(t)&&(g="matching"),un.compatibleMessage(s,t)===a&&(f&&a?h=!0:this.assert(a,"expected #{this} to throw error "+g+" #{exp} but got #{act}","expected #{this} to throw error not "+g+" #{exp}",t,un.getMessage(s)))}p&&h&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&un.getConstructorName(e),s instanceof Error?s.toString():s&&un.getConstructorName(s)),ae(this,"object",s)}se(hm,"assertThrows");G.addMethod("throw",hm);G.addMethod("throws",hm);G.addMethod("Throw",hm);function TS(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+Ze(e),"expected #{this} to not respond to "+Ze(e))}se(TS,"respondTo");G.addMethod("respondTo",TS);G.addMethod("respondsTo",TS);G.addProperty("itself",function(){ae(this,"itself",!0)});function _S(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+rl(e),"expected #{this} to not satisfy"+rl(e),!ae(this,"negate"),n)}se(_S,"satisfy");G.addMethod("satisfy",_S);G.addMethod("satisfies",_S);function RS(e,t,r){r&&ae(this,"message",r);let n=ae(this,"object"),o=ae(this,"message"),i=ae(this,"ssfi");new G(n,o,i,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new ot(o?`${o}: ${a}`:a,void 0,i);if(new G(t,o,i,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new ot(o?`${o}: ${a}`:a,void 0,i);new G(e,o,i,!0).is.numeric;let s=se(d=>d<0n?-d:d,"abs"),c=se(d=>parseFloat(parseFloat(d).toPrecision(12)),"strip");this.assert(c(s(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}se(RS,"closeTo");G.addMethod("closeTo",RS);G.addMethod("approximately",RS);function QN(e,t,r,n,o){let i=Array.from(t),a=Array.from(e);if(!n){if(a.length!==i.length)return!1;i=i.slice()}return a.every(function(s,c){if(o)return r?r(s,i[c]):s===i[c];if(!r){let d=i.indexOf(s);return d===-1?!1:(n||i.splice(d,1),!0)}return i.some(function(d,f){return r(s,d)?(n||i.splice(f,1),!0):!1})})}se(QN,"isSubsetOf");G.addMethod("members",function(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"message"),o=ae(this,"ssfi");new G(r,n,o,!0).to.be.iterable,new G(e,n,o,!0).to.be.iterable;let i=ae(this,"contains"),a=ae(this,"ordered"),s,c,d;i?(s=a?"an ordered superset":"a superset",c="expected #{this} to be "+s+" of #{exp}",d="expected #{this} to not be "+s+" of #{exp}"):(s=a?"ordered members":"members",c="expected #{this} to have the same "+s+" as #{exp}",d="expected #{this} to not have the same "+s+" as #{exp}");let f=ae(this,"deep")?ae(this,"eql"):void 0;this.assert(QN(e,r,f,i,a),c,d,e,r,!0)});G.addProperty("iterable",function(e){e&&ae(this,"message",e);let t=ae(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function ZN(e,t){t&&ae(this,"message",t);let r=ae(this,"object"),n=ae(this,"message"),o=ae(this,"ssfi"),i=ae(this,"contains"),a=ae(this,"deep"),s=ae(this,"eql");new G(e,n,o,!0).to.be.an("array"),i?this.assert(e.some(function(c){return r.indexOf(c)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):a?this.assert(e.some(function(c){return s(r,c)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}se(ZN,"oneOf");G.addMethod("oneOf",ZN);function AS(e,t,r){r&&ae(this,"message",r);let n=ae(this,"object"),o=ae(this,"message"),i=ae(this,"ssfi");new G(n,o,i,!0).is.a("function");let a;t?(new G(e,o,i,!0).to.have.property(t),a=e[t]):(new G(e,o,i,!0).is.a("function"),a=e()),n();let s=t==null?e():e[t],c=t==null?a:"."+t;ae(this,"deltaMsgObj",c),ae(this,"initialDeltaValue",a),ae(this,"finalDeltaValue",s),ae(this,"deltaBehavior","change"),ae(this,"realDelta",s!==a),this.assert(a!==s,"expected "+c+" to change","expected "+c+" to not change")}se(AS,"assertChanges");G.addMethod("change",AS);G.addMethod("changes",AS);function PS(e,t,r){r&&ae(this,"message",r);let n=ae(this,"object"),o=ae(this,"message"),i=ae(this,"ssfi");new G(n,o,i,!0).is.a("function");let a;t?(new G(e,o,i,!0).to.have.property(t),a=e[t]):(new G(e,o,i,!0).is.a("function"),a=e()),new G(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],c=t==null?a:"."+t;ae(this,"deltaMsgObj",c),ae(this,"initialDeltaValue",a),ae(this,"finalDeltaValue",s),ae(this,"deltaBehavior","increase"),ae(this,"realDelta",s-a),this.assert(s-a>0,"expected "+c+" to increase","expected "+c+" to not increase")}se(PS,"assertIncreases");G.addMethod("increase",PS);G.addMethod("increases",PS);function $S(e,t,r){r&&ae(this,"message",r);let n=ae(this,"object"),o=ae(this,"message"),i=ae(this,"ssfi");new G(n,o,i,!0).is.a("function");let a;t?(new G(e,o,i,!0).to.have.property(t),a=e[t]):(new G(e,o,i,!0).is.a("function"),a=e()),new G(a,o,i,!0).is.a("number"),n();let s=t==null?e():e[t],c=t==null?a:"."+t;ae(this,"deltaMsgObj",c),ae(this,"initialDeltaValue",a),ae(this,"finalDeltaValue",s),ae(this,"deltaBehavior","decrease"),ae(this,"realDelta",a-s),this.assert(s-a<0,"expected "+c+" to decrease","expected "+c+" to not decrease")}se($S,"assertDecreases");G.addMethod("decrease",$S);G.addMethod("decreases",$S);function ek(e,t){t&&ae(this,"message",t);let r=ae(this,"deltaMsgObj"),n=ae(this,"initialDeltaValue"),o=ae(this,"finalDeltaValue"),i=ae(this,"deltaBehavior"),a=ae(this,"realDelta"),s;i==="change"?s=Math.abs(o-n)===Math.abs(e):s=a===Math.abs(e),this.assert(s,"expected "+r+" to "+i+" by "+e,"expected "+r+" to not "+i+" by "+e)}se(ek,"assertDelta");G.addMethod("by",ek);G.addProperty("extensible",function(){let e=ae(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});G.addProperty("sealed",function(){let e=ae(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});G.addProperty("frozen",function(){let e=ae(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});G.addProperty("finite",function(e){let t=ae(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function Zp(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return Zp(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?Zp(n,o):typeof n=="function"?n(o):o===n}):!1}se(Zp,"compareSubset");G.addMethod("containSubset",function(e){let t=qe(this,"object"),r=Br.showDiff;this.assert(Zp(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function nl(e,t){return new G(e,t)}se(nl,"expect");nl.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new ot(r,{actual:e,expected:t,operator:n},nl.fail)};var tk={};Xw(tk,{Should:()=>Bee,should:()=>Lee});function OS(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new G(this.valueOf(),null,e):new G(this,null,e)}se(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}se(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,o,i,a){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new ot(i,{actual:n,expected:o,operator:a},r.fail)},r.equal=function(n,o,i){new G(n,i).to.equal(o)},r.Throw=function(n,o,i,a){new G(n,a).to.Throw(o,i)},r.exist=function(n,o){new G(n,o).to.exist},r.not={},r.not.equal=function(n,o,i){new G(n,i).to.not.equal(o)},r.not.Throw=function(n,o,i,a){new G(n,a).to.not.Throw(o,i)},r.not.exist=function(n,o){new G(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}se(OS,"loadShould");var Lee=OS,Bee=OS;function W(e,t){new G(null,null,W,!0).assert(e,t,"[ negation message unavailable ]")}se(W,"assert");W.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new ot(r,{actual:e,expected:t,operator:n},W.fail)};W.isOk=function(e,t){new G(e,t,W.isOk,!0).is.ok};W.isNotOk=function(e,t){new G(e,t,W.isNotOk,!0).is.not.ok};W.equal=function(e,t,r){let n=new G(e,r,W.equal,!0);n.assert(t==qe(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};W.notEqual=function(e,t,r){let n=new G(e,r,W.notEqual,!0);n.assert(t!=qe(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};W.strictEqual=function(e,t,r){new G(e,r,W.strictEqual,!0).to.equal(t)};W.notStrictEqual=function(e,t,r){new G(e,r,W.notStrictEqual,!0).to.not.equal(t)};W.deepEqual=W.deepStrictEqual=function(e,t,r){new G(e,r,W.deepEqual,!0).to.eql(t)};W.notDeepEqual=function(e,t,r){new G(e,r,W.notDeepEqual,!0).to.not.eql(t)};W.isAbove=function(e,t,r){new G(e,r,W.isAbove,!0).to.be.above(t)};W.isAtLeast=function(e,t,r){new G(e,r,W.isAtLeast,!0).to.be.least(t)};W.isBelow=function(e,t,r){new G(e,r,W.isBelow,!0).to.be.below(t)};W.isAtMost=function(e,t,r){new G(e,r,W.isAtMost,!0).to.be.most(t)};W.isTrue=function(e,t){new G(e,t,W.isTrue,!0).is.true};W.isNotTrue=function(e,t){new G(e,t,W.isNotTrue,!0).to.not.equal(!0)};W.isFalse=function(e,t){new G(e,t,W.isFalse,!0).is.false};W.isNotFalse=function(e,t){new G(e,t,W.isNotFalse,!0).to.not.equal(!1)};W.isNull=function(e,t){new G(e,t,W.isNull,!0).to.equal(null)};W.isNotNull=function(e,t){new G(e,t,W.isNotNull,!0).to.not.equal(null)};W.isNaN=function(e,t){new G(e,t,W.isNaN,!0).to.be.NaN};W.isNotNaN=function(e,t){new G(e,t,W.isNotNaN,!0).not.to.be.NaN};W.exists=function(e,t){new G(e,t,W.exists,!0).to.exist};W.notExists=function(e,t){new G(e,t,W.notExists,!0).to.not.exist};W.isUndefined=function(e,t){new G(e,t,W.isUndefined,!0).to.equal(void 0)};W.isDefined=function(e,t){new G(e,t,W.isDefined,!0).to.not.equal(void 0)};W.isCallable=function(e,t){new G(e,t,W.isCallable,!0).is.callable};W.isNotCallable=function(e,t){new G(e,t,W.isNotCallable,!0).is.not.callable};W.isObject=function(e,t){new G(e,t,W.isObject,!0).to.be.a("object")};W.isNotObject=function(e,t){new G(e,t,W.isNotObject,!0).to.not.be.a("object")};W.isArray=function(e,t){new G(e,t,W.isArray,!0).to.be.an("array")};W.isNotArray=function(e,t){new G(e,t,W.isNotArray,!0).to.not.be.an("array")};W.isString=function(e,t){new G(e,t,W.isString,!0).to.be.a("string")};W.isNotString=function(e,t){new G(e,t,W.isNotString,!0).to.not.be.a("string")};W.isNumber=function(e,t){new G(e,t,W.isNumber,!0).to.be.a("number")};W.isNotNumber=function(e,t){new G(e,t,W.isNotNumber,!0).to.not.be.a("number")};W.isNumeric=function(e,t){new G(e,t,W.isNumeric,!0).is.numeric};W.isNotNumeric=function(e,t){new G(e,t,W.isNotNumeric,!0).is.not.numeric};W.isFinite=function(e,t){new G(e,t,W.isFinite,!0).to.be.finite};W.isBoolean=function(e,t){new G(e,t,W.isBoolean,!0).to.be.a("boolean")};W.isNotBoolean=function(e,t){new G(e,t,W.isNotBoolean,!0).to.not.be.a("boolean")};W.typeOf=function(e,t,r){new G(e,r,W.typeOf,!0).to.be.a(t)};W.notTypeOf=function(e,t,r){new G(e,r,W.notTypeOf,!0).to.not.be.a(t)};W.instanceOf=function(e,t,r){new G(e,r,W.instanceOf,!0).to.be.instanceOf(t)};W.notInstanceOf=function(e,t,r){new G(e,r,W.notInstanceOf,!0).to.not.be.instanceOf(t)};W.include=function(e,t,r){new G(e,r,W.include,!0).include(t)};W.notInclude=function(e,t,r){new G(e,r,W.notInclude,!0).not.include(t)};W.deepInclude=function(e,t,r){new G(e,r,W.deepInclude,!0).deep.include(t)};W.notDeepInclude=function(e,t,r){new G(e,r,W.notDeepInclude,!0).not.deep.include(t)};W.nestedInclude=function(e,t,r){new G(e,r,W.nestedInclude,!0).nested.include(t)};W.notNestedInclude=function(e,t,r){new G(e,r,W.notNestedInclude,!0).not.nested.include(t)};W.deepNestedInclude=function(e,t,r){new G(e,r,W.deepNestedInclude,!0).deep.nested.include(t)};W.notDeepNestedInclude=function(e,t,r){new G(e,r,W.notDeepNestedInclude,!0).not.deep.nested.include(t)};W.ownInclude=function(e,t,r){new G(e,r,W.ownInclude,!0).own.include(t)};W.notOwnInclude=function(e,t,r){new G(e,r,W.notOwnInclude,!0).not.own.include(t)};W.deepOwnInclude=function(e,t,r){new G(e,r,W.deepOwnInclude,!0).deep.own.include(t)};W.notDeepOwnInclude=function(e,t,r){new G(e,r,W.notDeepOwnInclude,!0).not.deep.own.include(t)};W.match=function(e,t,r){new G(e,r,W.match,!0).to.match(t)};W.notMatch=function(e,t,r){new G(e,r,W.notMatch,!0).to.not.match(t)};W.property=function(e,t,r){new G(e,r,W.property,!0).to.have.property(t)};W.notProperty=function(e,t,r){new G(e,r,W.notProperty,!0).to.not.have.property(t)};W.propertyVal=function(e,t,r,n){new G(e,n,W.propertyVal,!0).to.have.property(t,r)};W.notPropertyVal=function(e,t,r,n){new G(e,n,W.notPropertyVal,!0).to.not.have.property(t,r)};W.deepPropertyVal=function(e,t,r,n){new G(e,n,W.deepPropertyVal,!0).to.have.deep.property(t,r)};W.notDeepPropertyVal=function(e,t,r,n){new G(e,n,W.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};W.ownProperty=function(e,t,r){new G(e,r,W.ownProperty,!0).to.have.own.property(t)};W.notOwnProperty=function(e,t,r){new G(e,r,W.notOwnProperty,!0).to.not.have.own.property(t)};W.ownPropertyVal=function(e,t,r,n){new G(e,n,W.ownPropertyVal,!0).to.have.own.property(t,r)};W.notOwnPropertyVal=function(e,t,r,n){new G(e,n,W.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};W.deepOwnPropertyVal=function(e,t,r,n){new G(e,n,W.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};W.notDeepOwnPropertyVal=function(e,t,r,n){new G(e,n,W.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};W.nestedProperty=function(e,t,r){new G(e,r,W.nestedProperty,!0).to.have.nested.property(t)};W.notNestedProperty=function(e,t,r){new G(e,r,W.notNestedProperty,!0).to.not.have.nested.property(t)};W.nestedPropertyVal=function(e,t,r,n){new G(e,n,W.nestedPropertyVal,!0).to.have.nested.property(t,r)};W.notNestedPropertyVal=function(e,t,r,n){new G(e,n,W.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};W.deepNestedPropertyVal=function(e,t,r,n){new G(e,n,W.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};W.notDeepNestedPropertyVal=function(e,t,r,n){new G(e,n,W.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};W.lengthOf=function(e,t,r){new G(e,r,W.lengthOf,!0).to.have.lengthOf(t)};W.hasAnyKeys=function(e,t,r){new G(e,r,W.hasAnyKeys,!0).to.have.any.keys(t)};W.hasAllKeys=function(e,t,r){new G(e,r,W.hasAllKeys,!0).to.have.all.keys(t)};W.containsAllKeys=function(e,t,r){new G(e,r,W.containsAllKeys,!0).to.contain.all.keys(t)};W.doesNotHaveAnyKeys=function(e,t,r){new G(e,r,W.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};W.doesNotHaveAllKeys=function(e,t,r){new G(e,r,W.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};W.hasAnyDeepKeys=function(e,t,r){new G(e,r,W.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};W.hasAllDeepKeys=function(e,t,r){new G(e,r,W.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};W.containsAllDeepKeys=function(e,t,r){new G(e,r,W.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};W.doesNotHaveAnyDeepKeys=function(e,t,r){new G(e,r,W.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};W.doesNotHaveAllDeepKeys=function(e,t,r){new G(e,r,W.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};W.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new G(e,n,W.throws,!0).to.throw(t,r);return qe(o,"object")};W.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new G(e,n,W.doesNotThrow,!0).to.not.throw(t,r)};W.operator=function(e,t,r,n){let o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new ot(n+'Invalid operator "'+t+'"',void 0,W.operator)}let i=new G(o,n,W.operator,!0);i.assert(qe(i,"object")===!0,"expected "+Ze(e)+" to be "+t+" "+Ze(r),"expected "+Ze(e)+" to not be "+t+" "+Ze(r))};W.closeTo=function(e,t,r,n){new G(e,n,W.closeTo,!0).to.be.closeTo(t,r)};W.approximately=function(e,t,r,n){new G(e,n,W.approximately,!0).to.be.approximately(t,r)};W.sameMembers=function(e,t,r){new G(e,r,W.sameMembers,!0).to.have.same.members(t)};W.notSameMembers=function(e,t,r){new G(e,r,W.notSameMembers,!0).to.not.have.same.members(t)};W.sameDeepMembers=function(e,t,r){new G(e,r,W.sameDeepMembers,!0).to.have.same.deep.members(t)};W.notSameDeepMembers=function(e,t,r){new G(e,r,W.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};W.sameOrderedMembers=function(e,t,r){new G(e,r,W.sameOrderedMembers,!0).to.have.same.ordered.members(t)};W.notSameOrderedMembers=function(e,t,r){new G(e,r,W.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};W.sameDeepOrderedMembers=function(e,t,r){new G(e,r,W.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};W.notSameDeepOrderedMembers=function(e,t,r){new G(e,r,W.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};W.includeMembers=function(e,t,r){new G(e,r,W.includeMembers,!0).to.include.members(t)};W.notIncludeMembers=function(e,t,r){new G(e,r,W.notIncludeMembers,!0).to.not.include.members(t)};W.includeDeepMembers=function(e,t,r){new G(e,r,W.includeDeepMembers,!0).to.include.deep.members(t)};W.notIncludeDeepMembers=function(e,t,r){new G(e,r,W.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};W.includeOrderedMembers=function(e,t,r){new G(e,r,W.includeOrderedMembers,!0).to.include.ordered.members(t)};W.notIncludeOrderedMembers=function(e,t,r){new G(e,r,W.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};W.includeDeepOrderedMembers=function(e,t,r){new G(e,r,W.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};W.notIncludeDeepOrderedMembers=function(e,t,r){new G(e,r,W.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};W.oneOf=function(e,t,r){new G(e,r,W.oneOf,!0).to.be.oneOf(t)};W.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Ze(e)} to be an iterable`:`expected ${Ze(e)} to be an iterable`,new ot(t,void 0,W.isIterable)};W.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new G(e,n,W.changes,!0).to.change(t,r)};W.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new G(e,o,W.changesBy,!0).to.change(t,r).by(n)};W.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new G(e,n,W.doesNotChange,!0).to.not.change(t,r)};W.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new G(e,o,W.changesButNotBy,!0).to.change(t,r).but.not.by(n)};W.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new G(e,n,W.increases,!0).to.increase(t,r)};W.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new G(e,o,W.increasesBy,!0).to.increase(t,r).by(n)};W.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new G(e,n,W.doesNotIncrease,!0).to.not.increase(t,r)};W.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new G(e,o,W.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};W.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new G(e,n,W.decreases,!0).to.decrease(t,r)};W.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new G(e,o,W.decreasesBy,!0).to.decrease(t,r).by(n)};W.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new G(e,n,W.doesNotDecrease,!0).to.not.decrease(t,r)};W.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);return new G(e,o,W.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};W.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let i=n;n=r,o=i}else arguments.length===3&&(n=r,r=null);new G(e,o,W.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};W.ifError=function(e){if(e)throw e};W.isExtensible=function(e,t){new G(e,t,W.isExtensible,!0).to.be.extensible};W.isNotExtensible=function(e,t){new G(e,t,W.isNotExtensible,!0).to.not.be.extensible};W.isSealed=function(e,t){new G(e,t,W.isSealed,!0).to.be.sealed};W.isNotSealed=function(e,t){new G(e,t,W.isNotSealed,!0).to.not.be.sealed};W.isFrozen=function(e,t){new G(e,t,W.isFrozen,!0).to.be.frozen};W.isNotFrozen=function(e,t){new G(e,t,W.isNotFrozen,!0).to.not.be.frozen};W.isEmpty=function(e,t){new G(e,t,W.isEmpty,!0).to.be.empty};W.isNotEmpty=function(e,t){new G(e,t,W.isNotEmpty,!0).to.not.be.empty};W.containsSubset=function(e,t,r){new G(e,r).to.containSubset(t)};W.doesNotContainSubset=function(e,t,r){new G(e,r).to.not.containSubset(t)};var Fee=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of Fee)W[t]=W[e];var iA=[];function cs(e){let t={use:cs,AssertionError:ot,util:Ro,config:Br,expect:nl,assert:W,Assertion:G,...tk};return~iA.indexOf(e)||(e(t,Ro),iA.push(e)),t}se(cs,"use");var rk={};Wt(rk,{toAppearAfter:()=>Mre,toAppearBefore:()=>W1,toBeChecked:()=>Hk,toBeDisabled:()=>kk,toBeEmpty:()=>vk,toBeEmptyDOMElement:()=>Ek,toBeEnabled:()=>Dk,toBeInTheDOM:()=>q1,toBeInTheDocument:()=>bk,toBeInvalid:()=>Bk,toBePartiallyChecked:()=>zk,toBePartiallyPressed:()=>Yk,toBePressed:()=>Gk,toBeRequired:()=>Mk,toBeValid:()=>Fk,toBeVisible:()=>Pk,toContainElement:()=>H1,toContainHTML:()=>wk,toHaveAccessibleDescription:()=>U1,toHaveAccessibleErrorMessage:()=>xk,toHaveAccessibleName:()=>K1,toHaveAttribute:()=>Ck,toHaveClass:()=>Tk,toHaveDescription:()=>Kk,toHaveDisplayValue:()=>qk,toHaveErrorMessage:()=>Vk,toHaveFocus:()=>_k,toHaveFormValues:()=>Rk,toHaveRole:()=>z1,toHaveSelection:()=>Wk,toHaveStyle:()=>V1,toHaveTextContent:()=>Sk,toHaveValue:()=>jk});var aA=it(dN(),1);function nk(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function IS(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var ok={};nk(ok);IS(ok,"default",()=>ik);var ik=class extends Error{constructor(e,t,r,n,o){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=o}},ak={};nk(ak);IS(ak,"default",()=>lk);var lk=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r}},jee={};IS(jee,"CssTypes",()=>zt);var zt;(function(e){e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports"})(zt||(zt={}));var r0=/\/\*[^]*?(?:\*\/|$)/g,qee=(e,t)=>{t=t||{};let r=1,n=1;function o(U){let Z=U.match(/\n/g);Z&&(r+=Z.length);let de=U.lastIndexOf(`
`);n=~de?U.length-de:n+U.length}function i(){let U={line:r,column:n};return function(Z){return Z.position=new lk(U,{line:r,column:n},(t==null?void 0:t.source)||""),g(),Z}}let a=[];function s(U){let Z=new ik((t==null?void 0:t.source)||"",U,r,n,e);if(t!=null&&t.silent)a.push(Z);else throw Z}function c(){let U=p();return{type:zt.stylesheet,stylesheet:{source:t==null?void 0:t.source,rules:U,parsingErrors:a}}}function d(){return h(/^{\s*/)}function f(){return h(/^}/)}function p(){let U,Z=[];for(g(),y(Z);e.length&&e.charAt(0)!=="}"&&(U=F()||q());)U&&(Z.push(U),y(Z));return Z}function h(U){let Z=U.exec(e);if(!Z)return;let de=Z[0];return o(de),e=e.slice(de.length),Z}function g(){h(/^\s*/)}function y(U){let Z;for(U=U||[];Z=E();)Z&&U.push(Z);return U}function E(){let U=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let Z=h(/^\/\*[^]*?\*\//);return Z?U({type:zt.comment,comment:Z[0].slice(2,-2)}):s("End of comment missing")}function w(U,Z,de){let ee=Z+1,oe=!1,ge=U.indexOf(")",ee);for(;!oe&&ge!==-1;){let ye=U.indexOf("(",ee);ye!==-1&&ye<ge?(ee=w(U,ye+1)+1,ge=U.indexOf(")",ee)):oe=!0}return oe&&ge!==-1?ge:-1}function b(){let U=h(/^([^{]+)/);if(!U)return;let Z=Pn(U[0]).replace(r0,"");if(Z.indexOf(",")===-1)return[Z];let de=0,ee=Z.indexOf("(",de);for(;ee!==-1;){let oe=w(Z,ee);if(oe===-1)break;de=oe+1,Z=Z.substring(0,ee)+Z.substring(ee,oe).replace(/,/g,"")+Z.substring(oe),ee=Z.indexOf("(",de)}return Z=Z.replace(/("|')(?:\\\1|.)*?\1/g,oe=>oe.replace(/,/g,"")),Z.split(",").map(oe=>Pn(oe.replace(/\u200C/g,",")))}function S(){let U=i(),Z=h(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!Z)return;let de=Pn(Z[0]);if(!h(/^:\s*/))return s("property missing ':'");let ee=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),oe=U({type:zt.declaration,property:de.replace(r0,""),value:ee?Pn(ee[0]).replace(r0,""):""});return h(/^[;\s]*/),oe}function R(){let U=[];if(!d())return s("missing '{'");y(U);let Z;for(;Z=S();)Z&&(U.push(Z),y(U));return f()?U:s("missing '}'")}function O(){let U,Z=[],de=i();for(;U=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)Z.push(U[1]),h(/^,\s*/);if(Z.length)return de({type:zt.keyframe,values:Z,declarations:R()||[]})}function D(){let U=i(),Z=h(/^@([-\w]+)?keyframes\s*/);if(!Z)return;let de=Z[1],ee=h(/^([-\w]+)\s*/);if(!ee)return s("@keyframes missing name");let oe=ee[1];if(!d())return s("@keyframes missing '{'");let ge,ye=y();for(;ge=O();)ye.push(ge),ye=ye.concat(y());return f()?U({type:zt.keyframes,name:oe,vendor:de,keyframes:ye}):s("@keyframes missing '}'")}function T(){let U=i(),Z=h(/^@supports *([^{]+)/);if(!Z)return;let de=Pn(Z[1]);if(!d())return s("@supports missing '{'");let ee=y().concat(p());return f()?U({type:zt.supports,supports:de,rules:ee}):s("@supports missing '}'")}function P(){let U=i();if(!h(/^@host\s*/))return;if(!d())return s("@host missing '{'");let Z=y().concat(p());return f()?U({type:zt.host,rules:Z}):s("@host missing '}'")}function _(){let U=i(),Z=h(/^@container *([^{]+)/);if(!Z)return;let de=Pn(Z[1]);if(!d())return s("@container missing '{'");let ee=y().concat(p());return f()?U({type:zt.container,container:de,rules:ee}):s("@container missing '}'")}function N(){let U=i(),Z=h(/^@layer *([^{;@]+)/);if(!Z)return;let de=Pn(Z[1]);if(!d())return h(/^[;\s]*/),U({type:zt.layer,layer:de});let ee=y().concat(p());return f()?U({type:zt.layer,layer:de,rules:ee}):s("@layer missing '}'")}function V(){let U=i(),Z=h(/^@media *([^{]+)/);if(!Z)return;let de=Pn(Z[1]);if(!d())return s("@media missing '{'");let ee=y().concat(p());return f()?U({type:zt.media,media:de,rules:ee}):s("@media missing '}'")}function L(){let U=i(),Z=h(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(Z)return U({type:zt.customMedia,name:Pn(Z[1]),media:Pn(Z[2])})}function K(){let U=i();if(!h(/^@page */))return;let Z=b()||[];if(!d())return s("@page missing '{'");let de=y(),ee;for(;ee=S();)de.push(ee),de=de.concat(y());return f()?U({type:zt.page,selectors:Z,declarations:de}):s("@page missing '}'")}function Y(){let U=i(),Z=h(/^@([-\w]+)?document *([^{]+)/);if(!Z)return;let de=Pn(Z[1]),ee=Pn(Z[2]);if(!d())return s("@document missing '{'");let oe=y().concat(p());return f()?U({type:zt.document,document:ee,vendor:de,rules:oe}):s("@document missing '}'")}function $(){let U=i();if(!h(/^@font-face\s*/))return;if(!d())return s("@font-face missing '{'");let Z=y(),de;for(;de=S();)Z.push(de),Z=Z.concat(y());return f()?U({type:zt.fontFace,declarations:Z}):s("@font-face missing '}'")}function M(){let U=i();if(!h(/^@starting-style\s*/))return;if(!d())return s("@starting-style missing '{'");let Z=y().concat(p());return f()?U({type:zt.startingStyle,rules:Z}):s("@starting-style missing '}'")}let I=z("import"),B=z("charset"),k=z("namespace");function z(U){let Z=new RegExp("^@"+U+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let de=i(),ee=h(Z);if(!ee)return;let oe={type:U};return oe[U]=ee[1].trim(),de(oe)}}function F(){if(e[0]==="@")return D()||V()||L()||T()||I()||B()||k()||Y()||K()||P()||$()||_()||M()||N()}function q(){let U=i(),Z=b();return Z?(y(),U({type:zt.rule,selectors:Z,declarations:R()||[]})):s("selector missing")}return F1(c())};function Pn(e){return e?e.trim():""}function F1(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let o in e){let i=e[o];Array.isArray(i)?i.forEach(a=>{F1(a,n)}):i&&typeof i=="object"&&F1(i,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var Hee=qee,Uee=Hee,zee=Object.prototype.toString;function Kee(e){return typeof e=="function"||zee.call(e)==="[object Function]"}function Vee(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var Wee=Math.pow(2,53)-1;function Gee(e){var t=Vee(e);return Math.min(Math.max(t,0),Wee)}function Jn(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=Gee(n.length),i=Kee(r)?Object(new r(o)):new Array(o),a=0,s;a<o;)s=n[a],i[a]=s,a+=1;return i.length=o,i}function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function Yee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sk(n.key),n)}}function Jee(e,t,r){return t&&Xee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qee(e,t,r){return t=sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sk(e){var t=Zee(e,"string");return Ic(t)==="symbol"?t:String(t)}function Zee(e,t){if(Ic(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ic(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ete=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Yee(this,e),Qee(this,"items",void 0),this.items=t}return Jee(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),tte=typeof Set>"u"?Set:ete;function $r(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var rte={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},nte={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function ote(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=nte[t])!==null&&n!==void 0&&n.has(r))})}function uk(e,t){return ote(e,t)}function ite(e){var t=lte(e);if(t===null||j1.indexOf(t)!==-1){var r=ate(e);if(j1.indexOf(t||"")===-1||uk(e,r||""))return r}return t}function ate(e){var t=rte[$r(e)];if(t!==void 0)return t;switch($r(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!uk(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function lte(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var j1=["presentation","none"];function _t(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function ck(e){return _t(e)&&$r(e)==="caption"}function Sp(e){return _t(e)&&$r(e)==="input"}function ste(e){return _t(e)&&$r(e)==="optgroup"}function ute(e){return _t(e)&&$r(e)==="select"}function cte(e){return _t(e)&&$r(e)==="table"}function dte(e){return _t(e)&&$r(e)==="textarea"}function fte(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function pte(e){return _t(e)&&$r(e)==="fieldset"}function hte(e){return _t(e)&&$r(e)==="legend"}function mte(e){return _t(e)&&$r(e)==="slot"}function gte(e){return _t(e)&&e.ownerSVGElement!==void 0}function yte(e){return _t(e)&&$r(e)==="svg"}function bte(e){return gte(e)&&$r(e)==="title"}function eh(e,t){if(_t(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function ii(e,t){return _t(e)?t.indexOf(ite(e))!==-1:!1}function vte(e){return e.trim().replace(/\s\s+/g," ")}function Ete(e,t){if(!_t(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function wte(e){return ii(e,["button","combobox","listbox","textbox"])||dk(e,"range")}function dk(e,t){if(!_t(e))return!1;switch(t){case"range":return ii(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function lA(e,t){var r=Jn(e.querySelectorAll(t));return eh(e,"aria-owns").forEach(function(n){r.push.apply(r,Jn(n.querySelectorAll(t)))}),r}function Ste(e){return ute(e)?e.selectedOptions||lA(e,"[selected]"):lA(e,'[aria-selected="true"]')}function xte(e){return ii(e,j1)}function Cte(e){return ck(e)}function Tte(e){return ii(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function _te(e){return!1}function Rte(e){return Sp(e)||dte(e)?e.value:e.textContent||""}function sA(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function fk(e){var t=$r(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function pk(e){if(fk(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&_t(r)){var n=pk(r);n!==null&&(t=n)}}),t}function Ate(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):pk(e)}function Pte(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Jn(t);if(!fk(e))return null;var r=e.ownerDocument;return Jn(r.querySelectorAll("label")).filter(function(n){return Ate(n)===e})}function $te(e){var t=e.assignedNodes();return t.length===0?Jn(e.childNodes):t}function hk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new tte,n=fte(e),o=t.compute,i=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,c=t.getComputedStyle,d=c===void 0?n.getComputedStyle.bind(n):c,f=t.hidden,p=f===void 0?!1:f;function h(b,S){var R="";if(_t(b)&&s){var O=d(b,"::before"),D=sA(O);R="".concat(D," ").concat(R)}var T=mte(b)?$te(b):Jn(b.childNodes).concat(eh(b,"aria-owns"));if(T.forEach(function(N){var V=w(N,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),L=_t(N)?d(N).getPropertyValue("display"):"inline",K=L!=="inline"?" ":"";R+="".concat(K).concat(V).concat(K)}),_t(b)&&s){var P=d(b,"::after"),_=sA(P);R="".concat(R," ").concat(_)}return R.trim()}function g(b,S){var R=b.getAttributeNode(S);return R!==null&&!r.has(R)&&R.value.trim()!==""?(r.add(R),R.value):null}function y(b){return _t(b)?g(b,"title"):null}function E(b){if(!_t(b))return null;if(pte(b)){r.add(b);for(var S=Jn(b.childNodes),R=0;R<S.length;R+=1){var O=S[R];if(hte(O))return w(O,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(cte(b)){r.add(b);for(var D=Jn(b.childNodes),T=0;T<D.length;T+=1){var P=D[T];if(ck(P))return w(P,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(yte(b)){r.add(b);for(var _=Jn(b.childNodes),N=0;N<_.length;N+=1){var V=_[N];if(bte(V))return V.textContent}return null}else if($r(b)==="img"||$r(b)==="area"){var L=g(b,"alt");if(L!==null)return L}else if(ste(b)){var K=g(b,"label");if(K!==null)return K}if(Sp(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var Y=g(b,"value");if(Y!==null)return Y;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var $=Pte(b);if($!==null&&$.length!==0)return r.add(b),Jn($).map(function(k){return w(k,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(k){return k.length>0}).join(" ");if(Sp(b)&&b.type==="image"){var M=g(b,"alt");if(M!==null)return M;var I=g(b,"title");return I!==null?I:"Submit Query"}if(ii(b,["button"])){var B=h(b,{isEmbeddedInLabel:!1});if(B!=="")return B}return null}function w(b,S){if(r.has(b))return"";if(!p&&Ete(b,d)&&!S.isReferenced)return r.add(b),"";var R=_t(b)?b.getAttributeNode("aria-labelledby"):null,O=R!==null&&!r.has(R)?eh(b,"aria-labelledby"):[];if(i==="name"&&!S.isReferenced&&O.length>0)return r.add(R),O.map(function(L){return w(L,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var D=S.recursion&&wte(b)&&i==="name";if(!D){var T=(_t(b)&&b.getAttribute("aria-label")||"").trim();if(T!==""&&i==="name")return r.add(b),T;if(!xte(b)){var P=E(b);if(P!==null)return r.add(b),P}}if(ii(b,["menu"]))return r.add(b),"";if(D||S.isEmbeddedInLabel||S.isReferenced){if(ii(b,["combobox","listbox"])){r.add(b);var _=Ste(b);return _.length===0?Sp(b)?b.value:"":Jn(_).map(function(L){return w(L,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(dk(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(ii(b,["textbox"]))return r.add(b),Rte(b)}if(Tte(b)||_t(b)&&S.isReferenced||Cte(b)||_te()){var N=h(b,{isEmbeddedInLabel:S.isEmbeddedInLabel});if(N!=="")return r.add(b),N}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(S.recursion)return r.add(b),h(b,{isEmbeddedInLabel:S.isEmbeddedInLabel});var V=y(b);return V!==null?(r.add(b),V):(r.add(b),"")}return vte(w(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}function uA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(r),!0).forEach(function(n){Ote(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ote(e,t,r){return t=Ite(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ite(e){var t=Nte(e,"string");return Nc(t)==="symbol"?t:String(t)}function Nte(e,t){if(Nc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=eh(e,"aria-describedby").map(function(i){return hk(i,cA(cA({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var o=e.getAttribute("title");r=o===null?"":o}return r}function Dte(e){return ii(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function Mte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Dte(e)?"":hk(e,t)}var NS=it(Gw(),1),Lte=it(Iw(),1),Bte=it(fN(),1),mk=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let o="";try{o=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,o].join(`
`)}},dA=class extends mk{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},fA=class extends mk{constructor(...e){super("be a Node",...e)}};function gk(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function Fte(e,...t){gk(e,fA,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new fA(e,...t)}function Xe(e,...t){gk(e,dA,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new dA(e,...t)}var jte=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
`)}};function qte(e,...t){let r=Uee(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new jte({css:e,message:`Syntax error parsing expected css: ${n} on line: ${o}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:o,value:i})=>Object.assign(n,{[o]:i}),{})}function pA(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function Zt(e,t,r,n,o,i){return[`${t}
`,`${r}:
${e.utils.EXPECTED_COLOR((0,aA.default)(pA(e,n),2))}`,`${o}:
${e.utils.RECEIVED_COLOR((0,aA.default)(pA(e,i),2))}`].join(`
`)}function Hte(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function mm(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function gm(e){return e.replace(/\s+/g," ").trim()}function la(e){return e.tagName&&e.tagName.toLowerCase()}function Ute({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function zte(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var Kte=["meter","progressbar","slider","spinbutton"];function Vte(e){if(Kte.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function yk(e){if(e)switch(e.tagName.toLowerCase()){case"input":return zte(e);case"select":return Ute(e);default:return e.value??Vte(e)}}function Wte(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function kS(e,t){return Array.isArray(e)&&Array.isArray(t)?[...new Set(e)].every(r=>new Set(t).has(r)):e===t}function q1(e,t){return mm("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Xe(e,q1,this),t&&Xe(t,q1,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
`)}}function bk(e){(e!==null||!this.isNot)&&Xe(e,bk,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
`)}}function vk(e){return mm("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Xe(e,vk,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
`)}}function Ek(e){return Xe(e,Ek,this),{pass:Gte(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
`)}}function Gte(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function H1(e,t){return Xe(e,H1,this),t!==null&&Xe(t,H1,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
`)].join(`
`)}}function Yte(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function wk(e,t){if(Xe(e,wk,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(Yte(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
`)}}function Sk(e,t,r={normalizeWhitespace:!0}){Fte(e,Sk,this);let n=r.normalizeWhitespace?gm(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&Hte(n,t),message:()=>{let i=this.isNot?"not to":"to";return Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),o?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${i} have text content`,t,"Received",n)}}}function U1(e,t){Xe(e,U1,this);let r=kte(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let i=this.isNot?"not to":"to";return Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${U1.name}`,"element",""),`Expected element ${i} have accessible description`,t,"Received",r)}}}var Vu="aria-invalid",Xte=["false"];function xk(e,t){var s;Xe(e,xk,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",o=e.getAttribute("aria-errormessage");if(o&&/\s+/.test(o))return{pass:!1,message:()=>Zt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${o}"`)};let i=e.getAttribute(Vu);if(!e.hasAttribute(Vu)||Xte.includes(i))return{pass:!1,message:()=>Zt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Vu}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Vu}="${e.getAttribute(Vu)}`:null)};let a=gm(((s=e.ownerDocument.getElementById(o))==null?void 0:s.textContent)??"");return{pass:t===void 0?!!a:t instanceof RegExp?t.test(a):this.equals(a,t),message:()=>Zt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",a)}}var Jte=ere(NS.elementRoles);function z1(e,t){Xe(e,z1,this);let r=Qte(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${z1.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function Qte(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):Zte(e)}function Zte(e){for(let{match:t,roles:r}of Jte)if(t(e))return[...r];return[]}function ere(e){function t({name:a,attributes:s}){return`${a}${s.map(({name:c,value:d,constraints:f=[]})=>f.indexOf("undefined")!==-1?`:not([${c}])`:d?`[${c}="${d}"]`:`[${c}]`).join("")}`}function r({attributes:a=[]}){return a.length}function n({specificity:a},{specificity:s}){return s-a}function o(a){let{attributes:s=[]}=a,c=s.findIndex(f=>f.value&&f.name==="type"&&f.value==="text");c>=0&&(s=[...s.slice(0,c),...s.slice(c+1)]);let d=t({...a,attributes:s});return f=>c>=0&&f.type!=="text"?!1:f.matches(d)}let i=[];for(let[a,s]of e.entries())i=[...i,{match:o(a),roles:Array.from(s),specificity:r(a)}];return i.sort(n)}function K1(e,t){Xe(e,K1,this);let r=Mte(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let i=this.isNot?"not to":"to";return Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${K1.name}`,"element",""),`Expected element ${i} have accessible name`,t,"Received",r)}}}function hA(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function tre(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function Ck(e,t,r){Xe(e,Ck,this);let n=r!==void 0,o=e.hasAttribute(t),i=e.getAttribute(t);return{pass:n?o&&this.equals(i,r):o,message:()=>{let a=this.isNot?"not to":"to",s=o?hA(this.utils.stringify,t,i):null,c=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:tre(this.utils.stringify,t,r)});return Zt(this,c,`Expected the element ${a} have attribute`,hA(this.utils.stringify,t,r),"Received",s)}}}function rre(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function mA(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function gA(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function Tk(e,...t){Xe(e,Tk,this);let{expectedClassNames:r,options:n}=rre(t),o=mA(e.getAttribute("class")),i=r.reduce((s,c)=>s.concat(typeof c=="string"||!c?mA(c):c),[]),a=i.some(s=>s instanceof RegExp);if(n.exact&&a)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:gA(i,o)&&i.length===o.length,message:()=>{let s=this.isNot?"not to":"to";return Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${s} have EXACTLY defined classes`,i.join(" "),"Received",o.join(" "))}}:i.length>0?{pass:gA(i,o),message:()=>{let s=this.isNot?"not to":"to";return Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${s} have class`,i.join(" "),"Received",o.join(" "))}}:{pass:this.isNot?o.length>0:!1,message:()=>this.isNot?Zt(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",o.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
`)}}function nre(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(o=>{n.style[o]=t[o],r[o]=n.style[o]}),r}function ore(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let o=r.startsWith("--"),i=[r];return o||i.push(r.toLowerCase()),i.some(a=>t[a]===n||t.getPropertyValue(a)===n)})}function yA(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
`)}function ire(e,t,r){let n=Array.from(r).filter(o=>t[o]!==void 0).reduce((o,i)=>Object.assign(o,{[i]:r.getPropertyValue(i)}),{});return e(yA(t),yA(n)).replace(`${Lte.default.red("+ Received")}
`,"")}function V1(e,t){Xe(e,V1,this);let r=typeof t=="object"?t:qte(t,V1,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=nre(e.ownerDocument,r),i=n(e);return{pass:ore(o,i),message:()=>{let a=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(a,"element",""),ire(this.utils.diff,o,i)].join(`
`)}}}function _k(e){return Xe(e,_k,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
`)}}function are(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function lre(e,t){let r=[...e.querySelectorAll(`[name="${(0,Bte.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return yk(r[0]);default:return are(r)}}function sre(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function ure(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[sre(r)]:lre(e,r)}),{})}function Rk(e,t){if(Xe(e,Rk,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=ure(e);return{pass:Object.entries(t).every(([n,o])=>kS(r[n],o)),message:()=>{let n=this.isNot?"not to":"to",o=`${this.isNot?".not":""}.toHaveFormValues`,i=Object.keys(r).filter(a=>t.hasOwnProperty(a)).reduce((a,s)=>({...a,[s]:r[s]}),{});return[this.utils.matcherHint(o,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,i)].join(`
`)}}}function cre(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:o}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&o!=="0"&&o!==0}function dre(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function Ak(e,t){return cre(e)&&dre(e,t)&&(!e.parentElement||Ak(e.parentElement,e))}function Pk(e){Xe(e,Pk,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&Ak(e);return{pass:r,message:()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}var fre=["fieldset","input","select","optgroup","option","button","textarea"];function pre(e,t){return la(e)==="legend"&&la(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>la(r)==="legend"))}function hre(e,t){return Ok(t)&&!pre(e,t)}function mre(e){return e.includes("-")}function $k(e){let t=la(e);return fre.includes(t)||mre(t)}function Ok(e){return $k(e)&&e.hasAttribute("disabled")}function Ik(e){let t=e.parentElement;return!!t&&(hre(e,t)||Ik(t))}function Nk(e){return $k(e)&&(Ok(e)||Ik(e))}function kk(e){Xe(e,kk,this);let t=Nk(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}function Dk(e){Xe(e,Dk,this);let t=!Nk(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}var gre=["select","textarea"],yre=["input","select","textarea"],bre=["color","hidden","range","submit","image","reset"],vre=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function Ere(e){return gre.includes(la(e))&&e.hasAttribute("required")}function wre(e){return la(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!bre.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function Sre(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(yre.includes(la(e))||e.hasAttribute("role")&&vre.includes(e.getAttribute("role")))}function Mk(e){Xe(e,Mk,this);let t=Ere(e)||wre(e)||Sre(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}var xre=["form","input","select","textarea"];function Cre(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function Tre(e){return xre.includes(la(e))}function Lk(e){let t=Cre(e);return Tre(e)?t||!e.checkValidity():t}function Bk(e){Xe(e,Bk,this);let t=Lk(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}function Fk(e){Xe(e,Fk,this);let t=!Lk(e);return{pass:t,message:()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}function jk(e,t){if(Xe(e,jk,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=yk(e),n=t!==void 0,o=t,i=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,i=`${r} (${typeof r})`),{pass:n?kS(r,t):!!r,message:()=>{let a=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Zt(this,s,`Expected the element ${a} have value`,n?o:"(any)","Received",i)}}}function qk(e,t){Xe(e,qk,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=_re(r,e),o=Rre(t),i=o.filter(c=>n.some(d=>c instanceof RegExp?c.test(d):this.equals(d,String(c)))).length,a=i===n.length,s=i===o.length;return{pass:a&&s,message:()=>Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function _re(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function Rre(e){return e instanceof Array?e:[e]}function Hk(e){Xe(e,Hk,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>Uk(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${Are()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${o} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}function Are(){return Wte(Pre().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function Pre(){return NS.roles.keys().filter(Uk)}function Uk(e){var t;return((t=NS.roles.get(e))==null?void 0:t.props["aria-checked"])!==void 0}function zk(e){Xe(e,zk,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let n=()=>{let o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o};return{pass:n(),message:()=>{let o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${o} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}function Kk(e,t){mm("toHaveDescription","Please use toHaveAccessibleDescription."),Xe(e,Kk,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,a=n.map(s=>i.getElementById(s)).filter(Boolean);o=gm(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function Vk(e,t){if(mm("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Xe(e,Vk,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return{pass:!1,message:()=>Zt(this,this.utils.matcherHint(`${i}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,a=n.map(s=>i.getElementById(s)).filter(Boolean);o=gm(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return Zt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${i} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function $re(e){let t=e.ownerDocument.getSelection();if(["input","textarea"].includes(e.tagName.toLowerCase()))return["radio","checkbox"].includes(e.type)?"":e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return"";let r=t.getRangeAt(0),n=e.ownerDocument.createRange();if(t.containsNode(e,!1))n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let i=e===r.startContainer||e.contains(r.startContainer),a=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(i||a)&&(n.selectNodeContents(e),i&&n.setStart(r.startContainer,r.startOffset),a&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let o=t.toString();return t.removeAllRanges(),t.addRange(r),o}function Wk(e,t){Xe(e,Wk,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=$re(e);return{pass:r?kS(n,t):!!n,message:()=>{let o=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return Zt(this,i,`Expected the element ${o} have selection`,r?t:"(any)","Received",n)}}}function Gk(e){Xe(e,Gk,this);let t=(e.getAttribute("role")||"").split(" ").map(o=>o.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'}:{pass:r&&n==="true",message:()=>{let o=this.utils.matcherHint(`${this.isNot?".not":""}.toBePressed`,"element","");return Zt(this,o,"Expected element to have",`aria-pressed="${this.isNot?"false":"true"}"`,"Received",`aria-pressed="${n}"`)}}}function Yk(e){Xe(e,Yk,this);let t=(e.getAttribute("role")||"").split(" ").map(o=>o.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false"||n==="mixed")?{pass:!1,message:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'}:{pass:r&&n==="mixed",message:()=>{let o=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyPressed`,"element","");return Zt(this,i,`Expected element ${o} have`,'aria-pressed="mixed"',"Received",`aria-pressed="${n}"`)}}}var Ore=1,Xk=2,Jk=4,Ire=8,Nre=16,kre=32,bA={[Ore]:"Node.DOCUMENT_POSITION_DISCONNECTED",[Xk]:"Node.DOCUMENT_POSITION_PRECEDING",[Jk]:"Node.DOCUMENT_POSITION_FOLLOWING",[Ire]:"Node.DOCUMENT_POSITION_CONTAINS",[Nre]:"Node.DOCUMENT_POSITION_CONTAINED_BY",[kre]:"Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"};function Dre(e){return e in bA?`${bA[e]} (${e})`:`Unknown document position (${e})`}function Qk(e,t){return function(r,n){Xe(r,W1,this),Xe(n,W1,this);let o=r.compareDocumentPosition(n);return{pass:o===t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.${e}`,"element","secondElement"),"",`Received: ${Dre(o)}`].join(`
`)}}}function W1(e,t){return Qk("toAppearBefore",Jk).apply(this,[e,t])}function Mre(e,t){return Qk("toAppearAfter",Xk).apply(this,[e,t])}it(dN(),1);it(Gw(),1);it(Iw(),1);it(fN(),1);var n0,vA;function Lre(){if(vA)return n0;vA=1;var e,t,r,n,o,i,a,s,c,d,f,p,h,g,y,E,w,b,S;return h=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,y=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,f=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,E=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,S=/[\t\v\f\ufeff\p{Zs}]+/yu,s=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,g=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,b=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,w=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,d=RegExp(s.source),n0=function*(R,{jsx:O=!1}={}){var D,T,P,_,N,V,L,K,Y,$,M,I,B,k;for({length:V}=R,_=0,N="",k=[{tag:"JS"}],D=[],M=0,I=!1;_<V;){switch(K=k[k.length-1],K.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(R[_]==="/"&&(b.test(N)||i.test(N))&&(h.lastIndex=_,L=h.exec(R))){_=h.lastIndex,N=L[0],I=!0,yield{type:"RegularExpressionLiteral",value:L[0],closed:L[1]!==void 0&&L[1]!=="\\"};continue}if(p.lastIndex=_,L=p.exec(R)){switch(B=L[0],Y=p.lastIndex,$=B,B){case"(":N==="?NonExpressionParenKeyword"&&k.push({tag:"JSNonExpressionParen",nesting:M}),M++,I=!1;break;case")":M--,I=!0,K.tag==="JSNonExpressionParen"&&M===K.nesting&&(k.pop(),$="?NonExpressionParenEnd",I=!1);break;case"{":p.lastIndex=0,P=!w.test(N)&&(b.test(N)||i.test(N)),D.push(P),I=!1;break;case"}":switch(K.tag){case"InterpolationInTemplate":if(D.length===K.nesting){E.lastIndex=_,L=E.exec(R),_=E.lastIndex,N=L[0],L[1]==="${"?(N="?InterpolationInTemplate",I=!1,yield{type:"TemplateMiddle",value:L[0]}):(k.pop(),I=!0,yield{type:"TemplateTail",value:L[0],closed:L[1]==="`"});continue}break;case"InterpolationInJSX":if(D.length===K.nesting){k.pop(),_+=1,N="}",yield{type:"JSXPunctuator",value:"}"};continue}}I=D.pop(),$=I?"?ExpressionBraceEnd":"}";break;case"]":I=!0;break;case"++":case"--":$=I?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(O&&(b.test(N)||i.test(N))){k.push({tag:"JSXTag"}),_+=1,N="<",yield{type:"JSXPunctuator",value:B};continue}I=!1;break;default:I=!1}_=Y,N=$,yield{type:"Punctuator",value:B};continue}if(e.lastIndex=_,L=e.exec(R)){switch(_=e.lastIndex,$=L[0],L[0]){case"for":case"if":case"while":case"with":N!=="."&&N!=="?."&&($="?NonExpressionParenKeyword")}N=$,I=!i.test(L[0]),yield{type:L[1]==="#"?"PrivateIdentifier":"IdentifierName",value:L[0]};continue}if(y.lastIndex=_,L=y.exec(R)){_=y.lastIndex,N=L[0],I=!0,yield{type:"StringLiteral",value:L[0],closed:L[2]!==void 0};continue}if(f.lastIndex=_,L=f.exec(R)){_=f.lastIndex,N=L[0],I=!0,yield{type:"NumericLiteral",value:L[0]};continue}if(E.lastIndex=_,L=E.exec(R)){_=E.lastIndex,N=L[0],L[1]==="${"?(N="?InterpolationInTemplate",k.push({tag:"InterpolationInTemplate",nesting:D.length}),I=!1,yield{type:"TemplateHead",value:L[0]}):(I=!0,yield{type:"NoSubstitutionTemplate",value:L[0],closed:L[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=_,L=r.exec(R)){switch(_=r.lastIndex,$=L[0],L[0]){case"<":k.push({tag:"JSXTag"});break;case">":k.pop(),N==="/"||K.tag==="JSXTagEnd"?($="?JSX",I=!0):k.push({tag:"JSXChildren"});break;case"{":k.push({tag:"InterpolationInJSX",nesting:D.length}),$="?InterpolationInJSX",I=!1;break;case"/":N==="<"&&(k.pop(),k[k.length-1].tag==="JSXChildren"&&k.pop(),k.push({tag:"JSXTagEnd"}))}N=$,yield{type:"JSXPunctuator",value:L[0]};continue}if(t.lastIndex=_,L=t.exec(R)){_=t.lastIndex,N=L[0],yield{type:"JSXIdentifier",value:L[0]};continue}if(n.lastIndex=_,L=n.exec(R)){_=n.lastIndex,N=L[0],yield{type:"JSXString",value:L[0],closed:L[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=_,L=o.exec(R)){_=o.lastIndex,N=L[0],yield{type:"JSXText",value:L[0]};continue}switch(R[_]){case"<":k.push({tag:"JSXTag"}),_++,N="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":k.push({tag:"InterpolationInJSX",nesting:D.length}),_++,N="?InterpolationInJSX",I=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(S.lastIndex=_,L=S.exec(R)){_=S.lastIndex,yield{type:"WhiteSpace",value:L[0]};continue}if(s.lastIndex=_,L=s.exec(R)){_=s.lastIndex,I=!1,a.test(N)&&(N="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:L[0]};continue}if(c.lastIndex=_,L=c.exec(R)){_=c.lastIndex,d.test(L[0])&&(I=!1,a.test(N)&&(N="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:L[0],closed:L[1]!==void 0};continue}if(g.lastIndex=_,L=g.exec(R)){_=g.lastIndex,I=!1,yield{type:"SingleLineComment",value:L[0]};continue}T=String.fromCodePoint(R.codePointAt(_)),_+=T.length,N=T,I=!1,yield{type:K.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:T}}},n0}var Bre=Lre();W5(Bre);var Zk={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Zk.keyword);new Set(Zk.strict);var Fre={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},eD=Object.entries(Fre);function ym(e){return String(e)}ym.open="";ym.close="";eD.reduce((e,[t])=>(e[t]=ym,e),{isColorSupported:!1});function jre(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function qre(e=!1){let t=jre(e),r=(a,s,c,d)=>{let f="",p=0;do f+=a.substring(p,d)+c,p=d+s.length,d=a.indexOf(s,p);while(~d);return f+a.substring(p)},n=(a,s,c=a)=>{let d=f=>{let p=String(f),h=p.indexOf(s,a.length);return~h?a+r(p,s,c,h)+s:a+p+s};return d.open=a,d.close=s,d},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,s]of eD)o[a]=t?n(i(s[0]),i(s[1]),s[2]):ym;return o}var pn=qre();function o0(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}var kc=Symbol.for("matchers-object"),Dc=Symbol.for("$$jest-matchers-object-storybook"),DS=Symbol.for("expect-global"),G1=Symbol.for("asymmetric-matchers-object"),Hre={toSatisfy(e,t,r){let{printReceived:n,printExpected:o,matcherHint:i}=this.utils,a=t(e);return{pass:a,message:()=>a?`${i(".not.toSatisfy","received","")}
Expected value to not satisfy:
${r||o(t)}
Received:
${n(e)}`:`${i(".toSatisfy","received","")}
Expected value to satisfy:
${r||o(t)}
Received:
${n(e)}`}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:o,printExpected:i,matcherHint:a}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${a(".toBeOneOf")}, not '${typeof t}'.`);let s=t.length===0||t.some(c=>r(c,e,n));return{pass:s,message:()=>s?`${a(".not.toBeOneOf","received","")}
Expected value to not be one of:
${i(t)}
Received:
${o(e)}`:`${a(".toBeOneOf","received","")}
Expected value to be one of:
${i(t)}
Received:
${o(e)}`}}},th=pn.green,MS=pn.red,Ure=pn.inverse,zre=pn.bold,Gi=pn.dim;function Kre(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:a=!1,promise:s="",secondArgument:c="",expectedColor:d=th,receivedColor:f=MS,secondArgumentColor:p=th}=n,h="",g="expect";return!i&&t!==""&&(h+=Gi(`${g}(`)+f(t),g=")"),s!==""&&(h+=Gi(`${g}.`)+s,g=""),a&&(h+=`${Gi(`${g}.`)}not`,g=""),e.includes(".")?g+=e:(h+=Gi(`${g}.`)+e,g=""),r===""?g+="()":(h+=Gi(`${g}(`)+d(r),c&&(h+=Gi(", ")+p(c)),g=")"),o!==""&&(g+=` // ${o}`),g!==""&&(h+=Gi(g)),h}var Vre="·";function tD(e){return e.replace(/\s+$/gm,t=>Vre.repeat(t.length))}function Wre(e){return MS(tD(yn(e)))}function Gre(e){return th(tD(yn(e)))}function rD(){return{EXPECTED_COLOR:th,RECEIVED_COLOR:MS,INVERTED_COLOR:Ure,BOLD_WEIGHT:zre,DIM_COLOR:Gi,diff:Ys,matcherHint:Kre,printReceived:Wre,printExpected:Gre,printDiffOrStringify:sN,printWithType:Yre}}function Yre(e,t,r){let n=Vp(t),o=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
`:"",i=`${e} has value: ${r(t)}`;return o+i}function LS(){return globalThis[Dc].customEqualityTesters}function ut(e,t,r,n){return r=r||[],hc(e,t,[],[],r,n?nD:Qre)}function EA(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&ro("Function",e.asymmetricMatch)}function Xre(e,t){let r=EA(e),n=EA(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function hc(e,t,r,n,o,i){let a=!0,s=Xre(e,t);if(s!==void 0)return s;let c={equals:ut};for(let y=0;y<o.length;y++){let E=o[y].call(c,e,t,o);if(E!==void 0)return E}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let d=Object.prototype.toString.call(e);if(d!==Object.prototype.toString.call(t))return!1;switch(d){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let y=+e,E=+t;return y===E||Number.isNaN(y)&&Number.isNaN(E)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if(SA(e)&&SA(t))return e.isEqualNode(t);let f=r.length;for(;f--;){if(r[f]===e)return n[f]===t;if(n[f]===t)return!1}if(r.push(e),n.push(t),d==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return Jre(e,t,r,n,o,i)}finally{r.pop(),n.pop()}let p=wA(e,i),h,g=p.length;if(wA(t,i).length!==g)return!1;for(;g--;)if(h=p[g],a=i(t,h)&&hc(e[h],t[h],r,n,o,i),!a)return!1;return r.pop(),n.pop(),a}function Jre(e,t,r,n,o,i){let a=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&a&&(a=hc(e.cause,t.cause,r,n,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&a&&(a=hc(e.errors,t.errors,r,n,o,i)),a&&(a=hc({...e},{...t},r,n,o,i)),a}function wA(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function Qre(e,t){return nD(e,t)&&e[t]!==void 0}function nD(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ro(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function SA(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var oD="@@__IMMUTABLE_KEYED__@@",iD="@@__IMMUTABLE_SET__@@",Zre="@@__IMMUTABLE_LIST__@@",bm="@@__IMMUTABLE_ORDERED__@@",ene="@@__IMMUTABLE_RECORD__@@";function tne(e){return!!(e&&e[oD]&&!e[bm])}function rne(e){return!!(e&&e[iD]&&!e[bm])}function vm(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function nne(e){return!!(e&&vm(e)&&e[Zre])}function one(e){return!!(e&&vm(e)&&e[oD]&&e[bm])}function ine(e){return!!(e&&vm(e)&&e[iD]&&e[bm])}function ane(e){return!!(e&&vm(e)&&e[ene])}var aD=Symbol.iterator;function xA(e){return!!(e!=null&&e[aD])}function Nn(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!xA(e)||!xA(t))return;if(e.constructor!==t.constructor)return!1;let i=n.length;for(;i--;)if(n[i]===e)return o[i]===t;n.push(e),o.push(t);let a=[...r.filter(d=>d!==Nn),s];function s(d,f){return Nn(d,f,[...r],[...n],[...o])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(ro("Set",e)||rne(e)){let d=!0;for(let f of e)if(!t.has(f)){let p=!1;for(let h of t)ut(f,h,a)===!0&&(p=!0);if(p===!1){d=!1;break}}return n.pop(),o.pop(),d}else if(ro("Map",e)||tne(e)){let d=!0;for(let f of e)if(!t.has(f[0])||!ut(f[1],t.get(f[0]),a)){let p=!1;for(let h of t){let g=ut(f[0],h[0],a),y=!1;g===!0&&(y=ut(f[1],h[1],a)),y===!0&&(p=!0)}if(p===!1){d=!1;break}}return n.pop(),o.pop(),d}}let c=t[aD]();for(let d of e){let f=c.next();if(f.done||!ut(d,f.value,a))return!1}if(!c.next().done)return!1;if(!nne(e)&&!one(e)&&!ine(e)&&!ane(e)){let d=Object.entries(e),f=Object.entries(t);if(!ut(d,f,a))return!1}return n.pop(),o.pop(),!0}function BS(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||BS(Object.getPrototypeOf(e),t)}function lne(e){return wp(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function fd(e,t,r=[]){let n=r.filter(i=>i!==fd),o=(i=new WeakMap)=>(a,s)=>{if(lne(s))return Object.keys(s).every(c=>{if(s[c]!=null&&typeof s[c]=="object"){if(i.has(s[c]))return ut(a[c],s[c],n);i.set(s[c],!0)}let d=a!=null&&BS(a,c)&&ut(a[c],s[c],[...n,o(i)]);return i.delete(s[c]),d})};return o()(e,t)}function CA(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function TA(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==n.getUint8(o))return!1;return!0}function Y1(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),o=Object.keys(t),i=r.filter(a=>a!==Y1);return ut(e,t,i,!0)&&ut(n,o)}function sne(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
If it should pass with deep equality, replace "toBe" with "${e}"
Expected: ${t}
Received: serializes to the same string
`:n}function une(e,t){return`${t} ${e}${t===1?"":"s"}`}function i0(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))===null||r===void 0?void 0:r.enumerable})]}function cne(e,t,r){let n=0,o=(i=new WeakMap)=>(a,s)=>{if(Array.isArray(a)){if(Array.isArray(s)&&s.length===a.length)return s.map((c,d)=>o(i)(a[d],c))}else{if(a instanceof Date)return a;if(wp(a)&&wp(s)){if(ut(a,s,[...r,Nn,fd]))return s;let c={};i.set(a,c),typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&Object.defineProperty(c,"constructor",{enumerable:!1,value:a.constructor});for(let d of i0(a))BS(s,d)?c[d]=i.has(a[d])?i.get(a[d]):o(i)(a[d],s[d]):i.has(a[d])||(n+=1,wp(a[d])&&(n+=i0(a[d]).length),o(i)(a[d],s[d]));if(i0(c).length>0)return c}}return a};return{subset:o()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,kc)){let e=new WeakMap;Object.defineProperty(globalThis,kc,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,Dc)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,Dc,{configurable:!0,get:()=>({state:globalThis[kc].get(globalThis[DS]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,G1)){let e=Object.create(null);Object.defineProperty(globalThis,G1,{get:()=>e})}function rh(e){return globalThis[kc].get(e)}function a0(e,t){let r=globalThis[kc],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o)}var mi=class{constructor(e,t=!1){ir(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=e,this.inverse=t}getMatcherContext(e){return{...rh(e||globalThis[DS]),equals:ut,isNot:this.inverse,customTesters:LS(),utils:{...rD(),diff:Ys,stringify:yn,iterableEquality:Nn,subsetEquality:fd}}}};mi.prototype[Symbol.for("chai/inspect")]=function(e){let t=yn(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var _A=class extends mi{constructor(e,t=!1){if(!ro("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=ro("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},dne=class extends mi{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},RA=class extends mi{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!ut(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},AA=class extends mi{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(o=>ut(n,o,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},fne=class extends mi{constructor(e){if(typeof e>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:"<anonymous>"}asymmetricMatch(e){return this.sample===String?typeof e=="string"||e instanceof String:this.sample===Number?typeof e=="number"||e instanceof Number:this.sample===Function?typeof e=="function"||typeof e=="function":this.sample===Boolean?typeof e=="boolean"||e instanceof Boolean:this.sample===BigInt?typeof e=="bigint"||e instanceof BigInt:this.sample===Symbol?typeof e=="symbol"||e instanceof Symbol:this.sample===Object?typeof e=="object":e instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}},PA=class extends mi{constructor(e,t=!1){if(!ro("String",e)&&!ro("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=ro("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},$A=class extends mi{constructor(t,r=2,n=!1){if(!ro("Number",t))throw new Error("Expected is not a Number");if(!ro("Number",r))throw new Error("Precision is not a Number");super(t);ir(this,"precision");this.inverse=n,this.precision=r}asymmetricMatch(t){if(!ro("Number",t))return!1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${une("digit",this.precision)})`].join(" ")}},pne=(e,t)=>{t.addMethod(e.expect,"anything",()=>new dne),t.addMethod(e.expect,"any",r=>new fne(r)),t.addMethod(e.expect,"stringContaining",r=>new _A(r)),t.addMethod(e.expect,"objectContaining",r=>new RA(r)),t.addMethod(e.expect,"arrayContaining",r=>new AA(r)),t.addMethod(e.expect,"stringMatching",r=>new PA(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new $A(r,n)),e.expect.not={stringContaining:r=>new _A(r,!0),objectContaining:r=>new RA(r,!0),arrayContaining:r=>new AA(r,!0),stringMatching:r=>new PA(r,!0),closeTo:(r,n)=>new $A(r,n,!0)}};function OA(e,t,r){let n=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${r?"expected":""})`,i=e.flag(t,"promise");return`expect(actual)${i?`.${i}`:""}.${n}${o}`}function IA(e,t,r,n){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let a=o.promises.indexOf(t);a!==-1&&o.promises.splice(a,1)}),o.promises||(o.promises=[]),o.promises.push(t);let i=!1;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var a;let s=(((a=globalThis.__vitest_worker__)===null||a===void 0?void 0:a.onFilterStackTrace)||(c=>c||""))(n.stack);console.warn([`Promise returned by \`${r}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
`,s].join(""))}}),{then(a,s){return i=!0,t.then(a,s)},catch(a){return t.catch(a)},finally(a){return t.finally(a)},[Symbol.toStringTag]:"Promise"}}return t}function NA(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Vw(t))}function lD(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=r.apply(this,n);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(CX,a=>{NA(o,a)}):i}catch(i){NA(o,i)}}}var hne=(e,t)=>{let{AssertionError:r}=e,n=LS();function o(d,f){let p=h=>{let g=lD(t,h,f);t.addMethod(e.Assertion.prototype,h,g),t.addMethod(globalThis[Dc].matchers,h,g)};Array.isArray(d)?d.forEach(h=>p(h)):p(d)}["throw","throws","Throw"].forEach(d=>{t.overwriteMethod(e.Assertion.prototype,d,f=>function(...p){let h=t.flag(this,"promise"),g=t.flag(this,"object"),y=t.flag(this,"negate");if(h==="rejects")t.flag(this,"object",()=>{throw g});else if(h==="resolves"&&typeof g!="function"){if(y)return;{let E=t.flag(this,"message")||"expected promise to throw an error, but it didn't",w={showDiff:!1};throw new r(E,w,t.flag(this,"ssfi"))}}f.apply(this,p)})}),o("withTest",function(d){return t.flag(this,"vitest-test",d),this}),o("toEqual",function(d){let f=t.flag(this,"object"),p=ut(f,d,[...n,Nn]);return this.assert(p,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",d,f)}),o("toStrictEqual",function(d){let f=t.flag(this,"object"),p=ut(f,d,[...n,Nn,CA,Y1,TA],!0);return this.assert(p,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",d,f)}),o("toBe",function(d){let f=this._obj,p=Object.is(f,d),h="";return p||(ut(f,d,[...n,Nn,CA,Y1,TA],!0)?h="toStrictEqual":ut(f,d,[...n,Nn])&&(h="toEqual")),this.assert(p,sne(h),"expected #{this} not to be #{exp} // Object.is equality",d,f)}),o("toMatchObject",function(d){let f=this._obj,p=ut(f,d,[...n,Nn,fd]),h=t.flag(this,"negate"),{subset:g,stripped:y}=cne(f,d,n);if(p&&h||!p&&!h){let E=t.getMessage(this,[p,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",d,g,!1]),w=y===0?E:`${E}
(${y} matching ${y===1?"property":"properties"} omitted from actual)`;throw new r(w,{showDiff:!0,expected:d,actual:g})}}),o("toMatch",function(d){let f=this._obj;if(typeof f!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof f}`);return this.assert(typeof d=="string"?f.includes(d):f.match(d),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",d,f)}),o("toContain",function(d){let f=this._obj;if(typeof Node<"u"&&f instanceof Node){if(!(d instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof d}`);return this.assert(f.contains(d),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",d,f)}if(typeof DOMTokenList<"u"&&f instanceof DOMTokenList){Jo(d,"class name",["string"]);let p=t.flag(this,"negate")?f.value.replace(d,"").trim():`${f.value} ${d}`;return this.assert(f.contains(d),`expected "${f.value}" to contain "${d}"`,`expected "${f.value}" not to contain "${d}"`,p,f.value)}return typeof f=="string"&&typeof d=="string"?this.assert(f.includes(d),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",d,f):(f!=null&&typeof f!="string"&&t.flag(this,"object",Array.from(f)),this.contain(d))}),o("toContainEqual",function(d){let f=t.flag(this,"object"),p=Array.from(f).findIndex(h=>ut(h,d,n));this.assert(p!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",d)}),o("toBeTruthy",function(){let d=t.flag(this,"object");this.assert(!!d,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,d)}),o("toBeFalsy",function(){let d=t.flag(this,"object");this.assert(!d,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,d)}),o("toBeGreaterThan",function(d){let f=this._obj;return Jo(f,"actual",["number","bigint"]),Jo(d,"expected",["number","bigint"]),this.assert(f>d,`expected ${f} to be greater than ${d}`,`expected ${f} to be not greater than ${d}`,d,f,!1)}),o("toBeGreaterThanOrEqual",function(d){let f=this._obj;return Jo(f,"actual",["number","bigint"]),Jo(d,"expected",["number","bigint"]),this.assert(f>=d,`expected ${f} to be greater than or equal to ${d}`,`expected ${f} to be not greater than or equal to ${d}`,d,f,!1)}),o("toBeLessThan",function(d){let f=this._obj;return Jo(f,"actual",["number","bigint"]),Jo(d,"expected",["number","bigint"]),this.assert(f<d,`expected ${f} to be less than ${d}`,`expected ${f} to be not less than ${d}`,d,f,!1)}),o("toBeLessThanOrEqual",function(d){let f=this._obj;return Jo(f,"actual",["number","bigint"]),Jo(d,"expected",["number","bigint"]),this.assert(f<=d,`expected ${f} to be less than or equal to ${d}`,`expected ${f} to be not less than or equal to ${d}`,d,f,!1)}),o("toBeNaN",function(){let d=t.flag(this,"object");this.assert(Number.isNaN(d),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,d)}),o("toBeUndefined",function(){let d=t.flag(this,"object");this.assert(d===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,d)}),o("toBeNull",function(){let d=t.flag(this,"object");this.assert(d===null,"expected #{this} to be null","expected #{this} not to be null",null,d)}),o("toBeDefined",function(){let d=t.flag(this,"object");this.assert(typeof d<"u","expected #{this} to be defined","expected #{this} to be undefined",d)}),o("toBeTypeOf",function(d){let f=typeof this._obj,p=d===f;return this.assert(p,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",d,f)}),o("toBeInstanceOf",function(d){return this.instanceOf(d)}),o("toHaveLength",function(d){return this.have.length(d)}),o("toHaveProperty",function(...d){Array.isArray(d[0])&&(d[0]=d[0].map(S=>String(S).replace(/([.[\]])/g,"\\$1")).join("."));let f=this._obj,[p,h]=d,g=()=>Object.prototype.hasOwnProperty.call(f,p)?{value:f[p],exists:!0}:t.getPathInfo(f,p),{value:y,exists:E}=g(),w=E&&(d.length===1||ut(h,y,n)),b=d.length===1?"":` with value ${t.objDisplay(h)}`;return this.assert(w,`expected #{this} to have property "${p}"${b}`,`expected #{this} to not have property "${p}"${b}`,h,E?y:void 0)}),o("toBeCloseTo",function(d,f=2){let p=this._obj,h=!1,g=0,y=0;return d===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?h=!0:(g=10**-f/2,y=Math.abs(p-d),h=y<g),this.assert(h,`expected #{this} to be close to #{exp}, received difference is ${y}, but expected ${g}`,`expected #{this} to not be close to #{exp}, received difference is ${y}, but expected ${g}`,d,p,!1)});function i(d){if(!o0(d._obj))throw new TypeError(`${t.inspect(d._obj)} is not a spy or a call to a spy!`)}function a(d){return i(d),d._obj}o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(d){let f=a(this),p=f.getMockName(),h=f.mock.calls.length;return this.assert(h===d,`expected "${p}" to be called #{exp} times, but got ${h} times`,`expected "${p}" to not be called #{exp} times`,d,h,!1)}),o("toHaveBeenCalledOnce",function(){let d=a(this),f=d.getMockName(),p=d.mock.calls.length;return this.assert(p===1,`expected "${f}" to be called once, but got ${p} times`,`expected "${f}" to not be called once`,1,p,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let d=a(this),f=d.getMockName(),p=d.mock.calls.length,h=p>0,g=t.flag(this,"negate"),y=t.getMessage(this,[h,`expected "${f}" to be called at least once`,`expected "${f}" to not be called at all, but actually been called ${p} times`,!0,h]);if(h&&g&&(y=l0(d,y)),h&&g||!h&&!g)throw new r(y)});function s(d,f){return d.length===f.length&&d.every((p,h)=>ut(p,f[h],[...n,Nn]))}o(["toHaveBeenCalledWith","toBeCalledWith"],function(...d){let f=a(this),p=f.getMockName(),h=f.mock.calls.some(E=>s(E,d)),g=t.flag(this,"negate"),y=t.getMessage(this,[h,`expected "${p}" to be called with arguments: #{exp}`,`expected "${p}" to not be called with arguments: #{exp}`,d]);if(h&&g||!h&&!g)throw new r(l0(f,y,d))}),o("toHaveBeenCalledExactlyOnceWith",function(...d){let f=a(this),p=f.getMockName(),h=f.mock.calls.length,g=f.mock.calls.some(w=>s(w,d))&&h===1,y=t.flag(this,"negate"),E=t.getMessage(this,[g,`expected "${p}" to be called once with arguments: #{exp}`,`expected "${p}" to not be called once with arguments: #{exp}`,d]);if(g&&y||!g&&!y)throw new r(l0(f,E,d))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(d,...f){let p=a(this),h=p.getMockName(),g=p.mock.calls[d-1],y=p.mock.calls.length,E=d<=y;this.assert(g&&s(g,f),`expected ${mc(d)} "${h}" call to have been called with #{exp}${E?"":`, but called only ${y} times`}`,`expected ${mc(d)} "${h}" call to not have been called with #{exp}`,f,g,E)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...d){let f=a(this),p=f.getMockName(),h=f.mock.calls[f.mock.calls.length-1];this.assert(h&&s(h,d),`expected last "${p}" call to have been called with #{exp}`,`expected last "${p}" call to not have been called with #{exp}`,d,h)});function c(d,f,p){let h=d.mock.invocationCallOrder,g=f.mock.invocationCallOrder;return h.length===0?!p:g.length===0?!1:h[0]<g[0]}o(["toHaveBeenCalledBefore"],function(d,f=!0){let p=a(this);if(!o0(d))throw new TypeError(`${t.inspect(d)} is not a spy or a call to a spy`);this.assert(c(p,d,f),`expected "${p.getMockName()}" to have been called before "${d.getMockName()}"`,`expected "${p.getMockName()}" to not have been called before "${d.getMockName()}"`,d,p)}),o(["toHaveBeenCalledAfter"],function(d,f=!0){let p=a(this);if(!o0(d))throw new TypeError(`${t.inspect(d)} is not a spy or a call to a spy`);this.assert(c(d,p,f),`expected "${p.getMockName()}" to have been called after "${d.getMockName()}"`,`expected "${p.getMockName()}" to not have been called after "${d.getMockName()}"`,d,p)}),o(["toThrow","toThrowError"],function(d){if(typeof d=="string"||typeof d>"u"||d instanceof RegExp)return this.throws(d===""?/^$/:d);let f=this._obj,p=t.flag(this,"promise"),h=t.flag(this,"negate"),g=null;if(p==="rejects")g=f;else if(p==="resolves"&&typeof f!="function"){if(h)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",E={showDiff:!1};throw new r(y,E,t.flag(this,"ssfi"))}}else{let y=!1;try{f()}catch(E){y=!0,g=E}if(!y&&!h){let E=t.flag(this,"message")||"expected function to throw an error, but it didn't",w={showDiff:!1};throw new r(E,w,t.flag(this,"ssfi"))}}if(typeof d=="function"){let y=d.name||d.prototype.constructor.name;return this.assert(g&&g instanceof d,`expected error to be instance of ${y}`,`expected error not to be instance of ${y}`,d,g)}if(d instanceof Error){let y=ut(g,d,[...n,Nn]);return this.assert(y,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",d,g)}if(typeof d=="object"&&"asymmetricMatch"in d&&typeof d.asymmetricMatch=="function"){let y=d;return this.assert(g&&y.asymmetricMatch(g),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",y,g)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof d}"`)}),[{name:"toHaveResolved",condition:d=>d.mock.settledResults.length>0&&d.mock.settledResults.some(({type:f})=>f==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:d=>d.mock.calls.length>0&&d.mock.results.some(({type:f})=>f!=="throw"),action:"called"}].forEach(({name:d,condition:f,action:p})=>{o(d,function(){let h=a(this),g=h.getMockName(),y=f(h);this.assert(y,`expected "${g}" to be successfully ${p} at least once`,`expected "${g}" to not be successfully ${p}`,y,!y,!1)})}),[{name:"toHaveResolvedTimes",condition:(d,f)=>d.mock.settledResults.reduce((p,{type:h})=>h==="fulfilled"?++p:p,0)===f,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(d,f)=>d.mock.results.reduce((p,{type:h})=>h==="throw"?p:++p,0)===f,action:"called"}].forEach(({name:d,condition:f,action:p})=>{o(d,function(h){let g=a(this),y=g.getMockName(),E=f(g,h);this.assert(E,`expected "${y}" to be successfully ${p} ${h} times`,`expected "${y}" to not be successfully ${p} ${h} times`,`expected resolved times: ${h}`,`received resolved times: ${E}`,!1)})}),[{name:"toHaveResolvedWith",condition:(d,f)=>d.mock.settledResults.some(({type:p,value:h})=>p==="fulfilled"&&ut(f,h)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(d,f)=>d.mock.results.some(({type:p,value:h})=>p==="return"&&ut(f,h)),action:"return"}].forEach(({name:d,condition:f,action:p})=>{o(d,function(h){let g=a(this),y=f(g,h),E=t.flag(this,"negate");if(y&&E||!y&&!E){let w=g.getMockName(),b=t.getMessage(this,[y,`expected "${w}" to ${p} with: #{exp} at least once`,`expected "${w}" to not ${p} with: #{exp}`,h]),S=p==="return"?g.mock.results:g.mock.settledResults;throw new r(mne(g,S,b,h))}})}),[{name:"toHaveLastResolvedWith",condition:(d,f)=>{let p=d.mock.settledResults[d.mock.settledResults.length-1];return p&&p.type==="fulfilled"&&ut(p.value,f)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(d,f)=>{let p=d.mock.results[d.mock.results.length-1];return p&&p.type==="return"&&ut(p.value,f)},action:"return"}].forEach(({name:d,condition:f,action:p})=>{o(d,function(h){let g=a(this),y=p==="return"?g.mock.results:g.mock.settledResults,E=y[y.length-1],w=g.getMockName();this.assert(f(g,h),`expected last "${w}" call to ${p} #{exp}`,`expected last "${w}" call to not ${p} #{exp}`,h,E==null?void 0:E.value)})}),[{name:"toHaveNthResolvedWith",condition:(d,f,p)=>{let h=d.mock.settledResults[f-1];return h&&h.type==="fulfilled"&&ut(h.value,p)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(d,f,p)=>{let h=d.mock.results[f-1];return h&&h.type==="return"&&ut(h.value,p)},action:"return"}].forEach(({name:d,condition:f,action:p})=>{o(d,function(h,g){let y=a(this),E=y.getMockName(),w=(p==="return"?y.mock.results:y.mock.settledResults)[h-1],b=`${mc(h)} call`;this.assert(f(y,h,g),`expected ${b} "${E}" call to ${p} #{exp}`,`expected ${b} "${E}" call to not ${p} #{exp}`,g,w==null?void 0:w.value)})}),o("withContext",function(d){for(let f in d)t.flag(this,f,d[f]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let d=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",d);let f=t.flag(this,"vitest-test"),p=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof(p==null?void 0:p.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`);let h=new Proxy(this,{get:(g,y,E)=>{let w=Reflect.get(g,y,E);return typeof w!="function"?w instanceof e.Assertion?h:w:(...b)=>{t.flag(this,"_name",y);let S=p.then(R=>(t.flag(this,"object",R),w.call(this,...b)),R=>{let O=new r(`promise rejected "${t.inspect(R)}" instead of resolving`,{showDiff:!1});throw O.cause=R,O.stack=d.stack.replace(d.message,O.message),O});return IA(f,S,OA(t,this,!!b.length),d)}}});return h}),t.addProperty(e.Assertion.prototype,"rejects",function(){let d=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",d);let f=t.flag(this,"vitest-test"),p=t.flag(this,"object"),h=typeof p=="function"?p():p;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof(h==null?void 0:h.then)!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof h}'.`);let g=new Proxy(this,{get:(y,E,w)=>{let b=Reflect.get(y,E,w);return typeof b!="function"?b instanceof e.Assertion?g:b:(...S)=>{t.flag(this,"_name",E);let R=h.then(O=>{let D=new r(`promise resolved "${t.inspect(O)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:O});throw D.stack=d.stack.replace(d.message,D.message),D},O=>(t.flag(this,"object",O),b.call(this,...S)));return IA(f,R,OA(t,this,!!S.length),d)}}});return g})};function mc(e){let t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}function l0(e,t,r){return e.mock.calls.length&&(t+=pn.gray(`
Received:
${e.mock.calls.map((n,o)=>{let i=pn.bold(` ${mc(o+1)} ${e.getMockName()} call:
`);return r?i+=Ys(r,n,{omitAnnotationLines:!0}):i+=yn(n).split(`
`).map(a=>` ${a}`).join(`
`),i+=`
`,i}).join(`
`)}`)),t+=pn.gray(`
Number of calls: ${pn.bold(e.mock.calls.length)}
`),t}function mne(e,t,r,n){return t.length&&(r+=pn.gray(`
Received:
${t.map((o,i)=>{let a=pn.bold(` ${mc(i+1)} ${e.getMockName()} call return:
`);return n?a+=Ys(n,o.value,{omitAnnotationLines:!0}):a+=yn(o).split(`
`).map(s=>` ${s}`).join(`
`),a+=`
`,a}).join(`
`)}`)),r+=pn.gray(`
Number of calls: ${pn.bold(e.mock.calls.length)}
`),r}function gne(e,t){let r=e._obj,n=Ro.flag(e,"negate"),o=Ro.flag(e,"promise")||"",i={...rD(),diff:Ys,stringify:yn,iterableEquality:Nn,subsetEquality:fd};return{state:{...rh(t),customTesters:LS(),isNot:n,utils:i,promise:o,equals:ut,suppressedErrors:[],soft:Ro.flag(e,"soft"),poll:Ro.flag(e,"poll")},isNot:n,obj:r}}var kA=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function yne(e,t,r){return(n,o)=>{Object.entries(r).forEach(([i,a])=>{function s(...p){let{state:h,isNot:g,obj:y}=gne(this,t),E=a.call(h,y,...p);if(E&&typeof E=="object"&&typeof E.then=="function")return E.then(({pass:O,message:D,actual:T,expected:P})=>{if(O&&g||!O&&!g)throw new kA(D(),T,P)});let{pass:w,message:b,actual:S,expected:R}=E;if(w&&g||!w&&!g)throw new kA(b(),S,R)}let c=lD(o,i,s);o.addMethod(globalThis[Dc].matchers,i,c),o.addMethod(e.Assertion.prototype,i,c);class d extends mi{constructor(h=!1,...g){super(g,h)}asymmetricMatch(h){let{pass:g}=a.call(this.getMatcherContext(t),h,...this.sample);return this.inverse?!g:g}toString(){return`${this.inverse?"not.":""}${i}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(h=>yn(h)).join(", ")}>`}}let f=(...p)=>new d(!1,...p);Object.defineProperty(t,i,{configurable:!0,enumerable:!0,value:f,writable:!0}),Object.defineProperty(t.not,i,{configurable:!0,enumerable:!0,value:(...p)=>new d(!0,...p),writable:!0}),Object.defineProperty(globalThis[G1],i,{configurable:!0,enumerable:!0,value:f,writable:!0})})}}var bne=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{cs(yne(e,r,n))})};function vne(){cs(bne),cs(hne),cs(pne);let e=(n,o)=>{let{assertionCalls:i}=rh(e);return a0({assertionCalls:i+1,soft:!1},e),nl(n,o)};Object.assign(e,nl),e.getState=()=>rh(e),e.setState=n=>a0(n,e),e.extend=n=>nl.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.extend(Hre),e.unreachable=n=>{W.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let o=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o})}function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return a0({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Ro.addMethod(e,"assertions",t),Ro.addMethod(e,"hasAssertions",r),e.extend(rk),e}var sD=vne();Object.defineProperty(globalThis,DS,{value:sD,writable:!0,configurable:!0});globalThis.__STORYBOOK_MODULE_MOCK_SPIES__??(globalThis.__STORYBOOK_MODULE_MOCK_SPIES__=new Set);var DA=new Set;function Ene(e){return DA.add(e),()=>void DA.delete(e)}var uD={};Wt(uD,{buildQueries:()=>yi,configure:()=>Noe,createEvent:()=>Cp,findAllByAltText:()=>p4,findAllByDisplayValue:()=>l4,findAllByLabelText:()=>jD,findAllByPlaceholderText:()=>YD,findAllByRole:()=>_4,findAllByTestId:()=>I4,findAllByText:()=>t4,findAllByTitle:()=>v4,findByAltText:()=>h4,findByDisplayValue:()=>s4,findByLabelText:()=>qD,findByPlaceholderText:()=>XD,findByRole:()=>R4,findByTestId:()=>N4,findByText:()=>r4,findByTitle:()=>E4,fireEvent:()=>jc,getAllByAltText:()=>d4,getAllByDisplayValue:()=>i4,getAllByLabelText:()=>HD,getAllByPlaceholderText:()=>WD,getAllByRole:()=>C4,getAllByTestId:()=>$4,getAllByText:()=>ZD,getAllByTitle:()=>y4,getByAltText:()=>f4,getByDisplayValue:()=>a4,getByLabelText:()=>UD,getByPlaceholderText:()=>GD,getByRole:()=>T4,getByTestId:()=>O4,getByText:()=>e4,getByTitle:()=>b4,getConfig:()=>Ye,getDefaultNormalizer:()=>zS,getElementError:()=>wm,getMultipleElementsFoundError:()=>Sm,getNodeText:()=>pd,getQueriesForElement:()=>iE,getRoles:()=>ND,getSuggestedQuery:()=>oh,isInaccessible:()=>Em,logDOM:()=>X1,logRoles:()=>Boe,makeFindQuery:()=>Rs,makeGetAllQuery:()=>WS,makeSingleQuery:()=>_s,prettyDOM:()=>Bc,prettyFormat:()=>FS,queries:()=>ih,queryAllByAltText:()=>u4,queryAllByAttribute:()=>wl,queryAllByDisplayValue:()=>n4,queryAllByLabelText:()=>zD,queryAllByPlaceholderText:()=>KD,queryAllByRole:()=>S4,queryAllByTestId:()=>A4,queryAllByText:()=>JD,queryAllByTitle:()=>m4,queryByAltText:()=>c4,queryByAttribute:()=>DD,queryByDisplayValue:()=>o4,queryByLabelText:()=>BD,queryByPlaceholderText:()=>VD,queryByRole:()=>x4,queryByTestId:()=>P4,queryByText:()=>QD,queryByTitle:()=>g4,queryHelpers:()=>Qoe,screen:()=>_ie,waitFor:()=>VS,waitForElementToBeRemoved:()=>vie,within:()=>iE,wrapAllByQueryWithSuggestion:()=>Zr,wrapSingleQueryWithSuggestion:()=>sa});var FS=it(bee()),wne=Object.prototype.toString;function Sne(e){return typeof e=="function"||wne.call(e)==="[object Function]"}function xne(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var Cne=Math.pow(2,53)-1;function Tne(e){var t=xne(e);return Math.min(Math.max(t,0),Cne)}function Qn(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=Tne(n.length),i=Sne(r)?Object(new r(o)):new Array(o),a=0,s;a<o;)s=n[a],i[a]=s,a+=1;return i.length=o,i}function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function _ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cD(n.key),n)}}function Ane(e,t,r){return t&&Rne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pne(e,t,r){return t=cD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cD(e){var t=$ne(e,"string");return Mc(t)==="symbol"?t:String(t)}function $ne(e,t){if(Mc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var One=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_ne(this,e),Pne(this,"items",void 0),this.items=t}return Ane(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),Ine=typeof Set>"u"?Set:One;function Or(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Nne={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},kne={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function Dne(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=kne[t])!==null&&n!==void 0&&n.has(r))})}function dD(e,t){return Dne(e,t)}function Mne(e){var t=Bne(e);if(t===null||t==="presentation"){var r=Lne(e);if(t!=="presentation"||dD(e,r||""))return r}return t}function Lne(e){var t=Nne[Or(e)];if(t!==void 0)return t;switch(Or(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!dD(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function Bne(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Rt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function fD(e){return Rt(e)&&Or(e)==="caption"}function xp(e){return Rt(e)&&Or(e)==="input"}function Fne(e){return Rt(e)&&Or(e)==="optgroup"}function jne(e){return Rt(e)&&Or(e)==="select"}function qne(e){return Rt(e)&&Or(e)==="table"}function Hne(e){return Rt(e)&&Or(e)==="textarea"}function Une(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function zne(e){return Rt(e)&&Or(e)==="fieldset"}function Kne(e){return Rt(e)&&Or(e)==="legend"}function Vne(e){return Rt(e)&&Or(e)==="slot"}function Wne(e){return Rt(e)&&e.ownerSVGElement!==void 0}function Gne(e){return Rt(e)&&Or(e)==="svg"}function Yne(e){return Wne(e)&&Or(e)==="title"}function nh(e,t){if(Rt(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}function ai(e,t){return Rt(e)?t.indexOf(Mne(e))!==-1:!1}function Xne(e){return e.trim().replace(/\s\s+/g," ")}function Jne(e,t){if(!Rt(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function Qne(e){return ai(e,["button","combobox","listbox","textbox"])||pD(e,"range")}function pD(e,t){if(!Rt(e))return!1;switch(t){case"range":return ai(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function MA(e,t){var r=Qn(e.querySelectorAll(t));return nh(e,"aria-owns").forEach(function(n){r.push.apply(r,Qn(n.querySelectorAll(t)))}),r}function Zne(e){return jne(e)?e.selectedOptions||MA(e,"[selected]"):MA(e,'[aria-selected="true"]')}function eoe(e){return ai(e,["none","presentation"])}function toe(e){return fD(e)}function roe(e){return ai(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function noe(e){return!1}function ooe(e){return xp(e)||Hne(e)?e.value:e.textContent||""}function LA(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function hD(e){var t=Or(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function mD(e){if(hD(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Rt(r)){var n=mD(r);n!==null&&(t=n)}}),t}function ioe(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):mD(e)}function aoe(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Qn(t);if(!hD(e))return null;var r=e.ownerDocument;return Qn(r.querySelectorAll("label")).filter(function(n){return ioe(n)===e})}function loe(e){var t=e.assignedNodes();return t.length===0?Qn(e.childNodes):t}function gD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Ine,n=Une(e),o=t.compute,i=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,c=t.getComputedStyle,d=c===void 0?n.getComputedStyle.bind(n):c,f=t.hidden,p=f===void 0?!1:f;function h(b,S){var R="";if(Rt(b)&&s){var O=d(b,"::before"),D=LA(O);R="".concat(D," ").concat(R)}var T=Vne(b)?loe(b):Qn(b.childNodes).concat(nh(b,"aria-owns"));if(T.forEach(function(N){var V=w(N,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),L=Rt(N)?d(N).getPropertyValue("display"):"inline",K=L!=="inline"?" ":"";R+="".concat(K).concat(V).concat(K)}),Rt(b)&&s){var P=d(b,"::after"),_=LA(P);R="".concat(R," ").concat(_)}return R.trim()}function g(b,S){var R=b.getAttributeNode(S);return R!==null&&!r.has(R)&&R.value.trim()!==""?(r.add(R),R.value):null}function y(b){return Rt(b)?g(b,"title"):null}function E(b){if(!Rt(b))return null;if(zne(b)){r.add(b);for(var S=Qn(b.childNodes),R=0;R<S.length;R+=1){var O=S[R];if(Kne(O))return w(O,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(qne(b)){r.add(b);for(var D=Qn(b.childNodes),T=0;T<D.length;T+=1){var P=D[T];if(fD(P))return w(P,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Gne(b)){r.add(b);for(var _=Qn(b.childNodes),N=0;N<_.length;N+=1){var V=_[N];if(Yne(V))return V.textContent}return null}else if(Or(b)==="img"||Or(b)==="area"){var L=g(b,"alt");if(L!==null)return L}else if(Fne(b)){var K=g(b,"label");if(K!==null)return K}if(xp(b)&&(b.type==="button"||b.type==="submit"||b.type==="reset")){var Y=g(b,"value");if(Y!==null)return Y;if(b.type==="submit")return"Submit";if(b.type==="reset")return"Reset"}var $=aoe(b);if($!==null&&$.length!==0)return r.add(b),Qn($).map(function(k){return w(k,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(k){return k.length>0}).join(" ");if(xp(b)&&b.type==="image"){var M=g(b,"alt");if(M!==null)return M;var I=g(b,"title");return I!==null?I:"Submit Query"}if(ai(b,["button"])){var B=h(b,{isEmbeddedInLabel:!1});if(B!=="")return B}return null}function w(b,S){if(r.has(b))return"";if(!p&&Jne(b,d)&&!S.isReferenced)return r.add(b),"";var R=Rt(b)?b.getAttributeNode("aria-labelledby"):null,O=R!==null&&!r.has(R)?nh(b,"aria-labelledby"):[];if(i==="name"&&!S.isReferenced&&O.length>0)return r.add(R),O.map(function(L){return w(L,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var D=S.recursion&&Qne(b)&&i==="name";if(!D){var T=(Rt(b)&&b.getAttribute("aria-label")||"").trim();if(T!==""&&i==="name")return r.add(b),T;if(!eoe(b)){var P=E(b);if(P!==null)return r.add(b),P}}if(ai(b,["menu"]))return r.add(b),"";if(D||S.isEmbeddedInLabel||S.isReferenced){if(ai(b,["combobox","listbox"])){r.add(b);var _=Zne(b);return _.length===0?xp(b)?b.value:"":Qn(_).map(function(L){return w(L,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(pD(b,"range"))return r.add(b),b.hasAttribute("aria-valuetext")?b.getAttribute("aria-valuetext"):b.hasAttribute("aria-valuenow")?b.getAttribute("aria-valuenow"):b.getAttribute("value")||"";if(ai(b,["textbox"]))return r.add(b),ooe(b)}if(roe(b)||Rt(b)&&S.isReferenced||toe(b)||noe()){var N=h(b,{isEmbeddedInLabel:S.isEmbeddedInLabel});if(N!=="")return r.add(b),N}if(b.nodeType===b.TEXT_NODE)return r.add(b),b.textContent||"";if(S.recursion)return r.add(b),h(b,{isEmbeddedInLabel:S.isEmbeddedInLabel});var V=y(b);return V!==null?(r.add(b),V):(r.add(b),"")}return Xne(w(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}function BA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function FA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(r),!0).forEach(function(n){soe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function soe(e,t,r){return t=uoe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uoe(e){var t=coe(e,"string");return Lc(t)==="symbol"?t:String(t)}function coe(e,t){if(Lc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=nh(e,"aria-describedby").map(function(o){return gD(o,FA(FA({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function doe(e){return ai(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function jS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return doe(e)?"":gD(e,t)}var On=it(Gw()),foe=it(vee());function bD(e){return e.replace(/</g,"<").replace(/>/g,">")}var poe=(e,t,r,n,o,i,a)=>{let s=n+r.indent,c=r.colors;return e.map(d=>{let f=t[d],p=a(f,r,s,o,i);return typeof f!="string"&&(p.indexOf(`
`)!==-1&&(p=r.spacingOuter+s+p+r.spacingOuter+n),p="{"+p+"}"),r.spacingInner+n+c.prop.open+d+c.prop.close+"="+c.value.open+p+c.value.close}).join("")},hoe=3,moe=(e,t,r,n,o,i)=>e.map(a=>{let s=typeof a=="string"?vD(a,t):i(a,t,r,n,o);return s===""&&typeof a=="object"&&a!==null&&a.nodeType!==hoe?"":t.spacingOuter+r+s}).join(""),vD=(e,t)=>{let r=t.colors.content;return r.open+bD(e)+r.close},goe=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+bD(e)+"-->"+r.close},yoe=(e,t,r,n,o)=>{let i=n.colors.tag;return i.open+"<"+e+(t&&i.close+t+n.spacingOuter+o+i.open)+(r?">"+i.close+r+n.spacingOuter+o+i.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+i.close},boe=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},voe=1,ED=3,wD=8,SD=11,Eoe=/^((HTML|SVG)\w*)?Element$/,xD=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},woe=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===voe&&(Eoe.test(t)||xD(e))||r===ED&&t==="Text"||r===wD&&t==="Comment"||r===SD&&t==="DocumentFragment"};function Soe(e){return e.nodeType===ED}function xoe(e){return e.nodeType===wD}function s0(e){return e.nodeType===SD}function Coe(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||xD(t))&&woe(t)},serialize:(t,r,n,o,i,a)=>{if(Soe(t))return vD(t.data,r);if(xoe(t))return goe(t.data,r);let s=s0(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?boe(s,r):yoe(s,poe(s0(t)?[]:Array.from(t.attributes).map(c=>c.name).sort(),s0(t)?{}:Array.from(t.attributes).reduce((c,d)=>(c[d.name]=d.value,c),{}),r,n+r.indent,o,i,a),moe(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,a),r,n)}}}var CD=null,qS=null,HS=null;try{let e=module&&module.require;qS=e.call(module,"fs").readFileSync,HS=e.call(module,"@babel/code-frame").codeFrameColumns,CD=e.call(module,"picocolors")}catch{}function Toe(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[i,a,s]=[o[0],parseInt(o[1],10),parseInt(o[2],10)],c="";try{c=qS(i,"utf-8")}catch{return""}let d=HS(c,{start:{line:a,column:s}},{highlightCode:!0,linesBelow:0});return CD.dim(n)+`
`+d+`
`}function _oe(){if(!qS||!HS)return"";let e=new Error().stack.split(`
`).slice(1).find(t=>!t.includes("node_modules/"));return Toe(e)}var TD=3;function u0(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function US(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function _D(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function gi(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var Roe=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=C1)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:Aoe}=FS.plugins,Poe=1,$oe=8;function Ooe(e){return e.nodeType!==$oe&&(e.nodeType!==Poe||!e.matches(Ye().defaultIgnore))}function Bc(e,t,r){if(r===void 0&&(r={}),e||(e=US().body),typeof t!="number"&&(t=typeof process<"u"&&typeof C1<"u"&&C1.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:o=Ooe,...i}=r,a=FS.format(e,{plugins:[Coe(o),Aoe],printFunctionName:!1,highlight:Roe(),...i});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}var X1=function(){let e=_oe();console.log(e?Bc(...arguments)+`
`+e:Bc(...arguments))},ol={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=Bc(t),n=new Error([e,"Ignored nodes: comments, "+ol.defaultIgnore+`
`+r].filter(Boolean).join(`
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function Ioe(e){try{return ol._disableExpensiveErrorDiagnostics=!0,e()}finally{ol._disableExpensiveErrorDiagnostics=!1}}function Noe(e){typeof e=="function"&&(e=e(ol)),ol={...ol,...e}}function Ye(){return ol}var koe=["button","meter","output","progress","select","textarea","input"];function RD(e){return koe.includes(e.nodeName.toLowerCase())?"":e.nodeType===TD?e.textContent:Array.from(e.childNodes).map(t=>RD(t)).join("")}function J1(e){let t;return e.tagName.toLowerCase()==="label"?t=RD(e):t=e.value||e.textContent,t}function AD(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!Doe(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function Doe(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function PD(e,t,r){let{selector:n="*"}=r===void 0?{}:r,o=t.getAttribute("aria-labelledby"),i=o?o.split(" "):[];return i.length?i.map(a=>{let s=e.querySelector('[id="'+a+'"]');return s?{content:J1(s),formControl:null}:{content:"",formControl:null}}):Array.from(AD(t)).map(a=>{let s=J1(a),c=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(d=>d.matches(n))[0];return{content:s,formControl:c}})}function $D(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function Js(e,t,r,n){if(typeof e!="string")return!1;$D(r);let o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):OD(r,o)}function ci(e,t,r,n){if(typeof e!="string")return!1;$D(r);let o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?OD(r,o):o===String(r)}function zS(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let o=n;return o=t?o.trim():o,o=r?o.replace(/\s+/g," "):o,o}}function El(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return zS({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function OD(e,t){let r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function pd(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===TD&&!!t.textContent).map(t=>t.textContent).join("")}var Moe=Loe(On.elementRoles);function ID(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function Em(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=ID}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}function KS(e){for(let{match:t,roles:r}of Moe)if(t(e))return[...r];return[]}function Loe(e){function t(a){let{name:s,attributes:c}=a;return""+s+c.map(d=>{let{name:f,value:p,constraints:h=[]}=d,g=h.indexOf("undefined")!==-1,y=h.indexOf("set")!==-1;return typeof p<"u"?"["+f+'="'+p+'"]':g?":not(["+f+"])":y?"["+f+"]:not(["+f+'=""])':"["+f+"]"}).join("")}function r(a){let{attributes:s=[]}=a;return s.length}function n(a,s){let{specificity:c}=a,{specificity:d}=s;return d-c}function o(a){let{attributes:s=[]}=a,c=s.findIndex(f=>f.value&&f.name==="type"&&f.value==="text");c>=0&&(s=[...s.slice(0,c),...s.slice(c+1)]);let d=t({...a,attributes:s});return f=>c>=0&&f.type!=="text"?!1:f.matches(d)}let i=[];for(let[a,s]of e.entries())i=[...i,{match:o(a),roles:Array.from(s),specificity:r(a)}];return i.sort(n)}function ND(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return[o,...Array.from(o.children).reduce((i,a)=>[...i,...n(a)],[])]}return n(e).filter(o=>r===!1?Em(o)===!1:!0).reduce((o,i)=>{let a=[];return i.hasAttribute("role")?a=i.getAttribute("role").split(" ").slice(0,1):a=KS(i),a.reduce((s,c)=>Array.isArray(s[c])?{...s,[c]:[...s[c],i]}:{...s,[c]:[i]},o)},{})}function kD(e,t){let{hidden:r,includeDescription:n}=t,o=ND(e,{hidden:r});return Object.entries(o).filter(i=>{let[a]=i;return a!=="generic"}).map(i=>{let[a,s]=i,c="-".repeat(50),d=s.map(f=>{let p='Name "'+jS(f,{computedStyleSupportsPseudoElements:Ye().computedStyleSupportsPseudoElements})+`":
`,h=Bc(f.cloneNode(!1));if(n){let g='Description "'+yD(f,{computedStyleSupportsPseudoElements:Ye().computedStyleSupportsPseudoElements})+`":
`;return""+p+g+h}return""+p+h}).join(`
`);return a+`:
`+d+`
`+c}).join(`
`)}var Boe=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(kD(e,{hidden:r}))};function Foe(e){return e.tagName==="OPTION"?e.selected:hd(e,"aria-selected")}function joe(e){return e.getAttribute("aria-busy")==="true"}function qoe(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:hd(e,"aria-checked")}function Hoe(e){return hd(e,"aria-pressed")}function Uoe(e){var t,r;return(t=(r=hd(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function zoe(e){return hd(e,"aria-expanded")}function hd(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function Koe(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function Voe(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function Woe(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function Goe(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function Yoe(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var jA=zS();function Xoe(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function qA(e){return new RegExp(Xoe(e.toLowerCase()),"i")}function zi(e,t,r,n){let{variant:o,name:i}=n,a="",s={},c=[["Role","TestId"].includes(e)?r:qA(r)];i&&(s.name=qA(i)),e==="Role"&&Em(t)&&(s.hidden=!0,a=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
If you are using the aria-hidden prop, make sure this is the right choice for your case.
`),Object.keys(s).length>0&&c.push(s);let d=o+"By"+e;return{queryName:e,queryMethod:d,queryArgs:c,variant:o,warning:a,toString(){a&&console.warn(a);let[f,p]=c;return f=typeof f=="string"?"'"+f+"'":f,p=p?", { "+Object.entries(p).map(h=>{let[g,y]=h;return g+": "+y}).join(", ")+" }":"",d+"("+f+p+")"}}}function Ki(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function oh(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(Ye().defaultIgnore))return;let i=(n=e.getAttribute("role"))!=null?n:(o=KS(e))==null?void 0:o[0];if(i!=="generic"&&Ki("Role",r,i))return zi("Role",e,i,{variant:t,name:jS(e,{computedStyleSupportsPseudoElements:Ye().computedStyleSupportsPseudoElements})});let a=PD(document,e).map(h=>h.content).join(" ");if(Ki("LabelText",r,a))return zi("LabelText",e,a,{variant:t});let s=e.getAttribute("placeholder");if(Ki("PlaceholderText",r,s))return zi("PlaceholderText",e,s,{variant:t});let c=jA(pd(e));if(Ki("Text",r,c))return zi("Text",e,c,{variant:t});if(Ki("DisplayValue",r,e.value))return zi("DisplayValue",e,jA(e.value),{variant:t});let d=e.getAttribute("alt");if(Ki("AltText",r,d))return zi("AltText",e,d,{variant:t});let f=e.getAttribute("title");if(Ki("Title",r,f))return zi("Title",e,f,{variant:t});let p=e.getAttribute(Ye().testIdAttribute);if(Ki("TestId",r,p))return zi("TestId",e,p,{variant:t})}function Uf(e,t){e.stack=t.stack.replace(t.message,e.message)}function Joe(e,t){let{container:r=US(),timeout:n=Ye().asyncUtilTimeout,showOriginalStackTrace:o=Ye().showOriginalStackTrace,stackTraceError:i,interval:a=50,onTimeout:s=d=>(Object.defineProperty(d,"message",{value:Ye().getElementError(d.message,r).message}),d),mutationObserverOptions:c={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(d,f)=>{let p,h,g,y=!1,E="idle",w=setTimeout(D,n),b=u0();if(b){let{unstable_advanceTimersWrapper:T}=Ye();for(O();!y;){if(!u0()){let P=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");o||Uf(P,i),f(P);return}if(await T(async()=>{jest.advanceTimersByTime(a)}),y)break;O()}}else{try{gi(r)}catch(P){f(P);return}h=setInterval(R,a);let{MutationObserver:T}=_D(r);g=new T(R),g.observe(r,c),O()}function S(T,P){y=!0,clearTimeout(w),b||(clearInterval(h),g.disconnect()),T?f(T):d(P)}function R(){if(u0()){let T=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return o||Uf(T,i),f(T)}else return O()}function O(){if(E!=="pending")try{let T=Ioe(e);typeof(T==null?void 0:T.then)=="function"?(E="pending",T.then(P=>{E="resolved",S(null,P)},P=>{E="rejected",p=P})):S(null,T)}catch(T){p=T}}function D(){let T;p?(T=p,!o&&T.name==="TestingLibraryElementError"&&Uf(T,i)):(T=new Error("Timed out in waitFor."),o||Uf(T,i)),S(s(T),null)}})}function VS(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Ye().asyncWrapper(()=>Joe(e,{stackTraceError:r,...t}))}function wm(e,t){return Ye().getElementError(e,t)}function Sm(e,t){return wm(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function wl(e,t,r,n){let{exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=n===void 0?{}:n,c=o?ci:Js,d=El({collapseWhitespace:i,trim:a,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(f=>c(f.getAttribute(e),f,r,d))}function DD(e,t,r,n){let o=wl(e,t,r,n);if(o.length>1)throw Sm("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}function _s(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let a=e(r,...o);if(a.length>1){let s=a.map(c=>wm(null,c).message).join(`
`);throw Sm(t(r,...o)+`
Here are the matching elements:
`+s,r)}return a[0]||null}}function MD(e,t){return Ye().getElementError(`A better query is available, try this:
`+e.toString()+`
`,t)}function WS(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let a=e(r,...o);if(!a.length)throw Ye().getElementError(t(r,...o),r);return a}}function Rs(e){return(t,r,n,o)=>VS(()=>e(t,r,n),{container:t,...o})}var sa=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];let s=e(n,...i),[{suggest:c=Ye().throwSuggestions}={}]=i.slice(-1);if(s&&c){let d=oh(s,r);if(d&&!t.endsWith(d.queryName))throw MD(d.toString(),n)}return s},Zr=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];let s=e(n,...i),[{suggest:c=Ye().throwSuggestions}={}]=i.slice(-1);if(s.length&&c){let d=[...new Set(s.map(f=>{var p;return(p=oh(f,r))==null?void 0:p.toString()}))];if(d.length===1&&!t.endsWith(oh(s[0],r).queryName))throw MD(d[0],n)}return s};function yi(e,t,r){let n=sa(_s(e,t),e.name,"query"),o=WS(e,r),i=_s(o,t),a=sa(i,e.name,"get"),s=Zr(o,e.name.replace("query","get"),"getAll"),c=Rs(Zr(o,e.name,"findAll")),d=Rs(sa(i,e.name,"find"));return[n,s,a,c,d]}var Qoe=Object.freeze({__proto__:null,getElementError:wm,wrapAllByQueryWithSuggestion:Zr,wrapSingleQueryWithSuggestion:sa,getMultipleElementsFoundError:Sm,queryAllByAttribute:wl,queryByAttribute:DD,makeSingleQuery:_s,makeGetAllQuery:WS,makeFindQuery:Rs,buildQueries:yi});function Zoe(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:J1(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var eie=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:a}=r===void 0?{}:r,s=n?ci:Js,c=El({collapseWhitespace:i,trim:o,normalizer:a});return Zoe(e).filter(d=>{let{node:f,textToMatch:p}=d;return s(p,f,t,c)}).map(d=>{let{node:f}=d;return f})},Fc=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,normalizer:s}=r===void 0?{}:r;gi(e);let c=o?ci:Js,d=El({collapseWhitespace:i,trim:a,normalizer:s}),f=Array.from(e.querySelectorAll("*")).filter(p=>AD(p).length||p.hasAttribute("aria-labelledby")).reduce((p,h)=>{let g=PD(e,h,{selector:n});g.filter(E=>!!E.formControl).forEach(E=>{c(E.content,E.formControl,t,d)&&E.formControl&&p.push(E.formControl)});let y=g.filter(E=>!!E.content).map(E=>E.content);return c(y.join(" "),h,t,d)&&p.push(h),y.length>1&&y.forEach((E,w)=>{c(E,h,t,d)&&p.push(h);let b=[...y];b.splice(w,1),b.length>1&&c(b.join(" "),h,t,d)&&p.push(h)}),p},[]).concat(wl("aria-label",e,t,{exact:o,normalizer:d}));return Array.from(new Set(f)).filter(p=>p.matches(n))},dl=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];let i=Fc(e,t,...n);if(!i.length){let a=eie(e,t,...n);if(a.length){let s=a.map(c=>tie(e,c)).filter(c=>!!c);throw s.length?Ye().getElementError(s.map(c=>"Found a label with the text of: "+t+", however the element associated with this label (<"+c+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+c+" />, you can use aria-label or aria-labelledby instead.").join(`
`),e):Ye().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw Ye().getElementError("Unable to find a label with the text of: "+t,e)}return i};function tie(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var LD=(e,t)=>"Found multiple elements with the text of: "+t,BD=sa(_s(Fc,LD),Fc.name,"query"),FD=_s(dl,LD),jD=Rs(Zr(dl,dl.name,"findAll")),qD=Rs(sa(FD,dl.name,"find")),HD=Zr(dl,dl.name,"getAll"),UD=sa(FD,dl.name,"get"),zD=Zr(Fc,Fc.name,"queryAll"),Q1=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return gi(t[0]),wl("placeholder",...t)},rie=(e,t)=>"Found multiple elements with the placeholder text of: "+t,nie=(e,t)=>"Unable to find an element with the placeholder text of: "+t,KD=Zr(Q1,Q1.name,"queryAll"),[VD,WD,GD,YD,XD]=yi(Q1,rie,nie),Z1=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:a,ignore:s=Ye().defaultIgnore,normalizer:c}=r===void 0?{}:r;gi(e);let d=o?ci:Js,f=El({collapseWhitespace:i,trim:a,normalizer:c}),p=[];return typeof e.matches=="function"&&e.matches(n)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(n))].filter(h=>!s||!h.matches(s)).filter(h=>d(pd(h),h,t,f))},oie=(e,t)=>"Found multiple elements with the text: "+t,iie=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:o,normalizer:i,selector:a}=r,s=El({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),c=s!==t.toString(),d=(a??"*")!=="*";return"Unable to find an element with the text: "+(c?s+" (normalized from '"+t+"')":t)+(d?", which matches selector '"+a+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},JD=Zr(Z1,Z1.name,"queryAll"),[QD,ZD,e4,t4,r4]=yi(Z1,oie,iie),eE=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;gi(e);let s=n?ci:Js,c=El({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(d=>d.tagName==="SELECT"?Array.from(d.options).filter(f=>f.selected).some(f=>s(pd(f),f,t,c)):s(d.value,d,t,c))},aie=(e,t)=>"Found multiple elements with the display value: "+t+".",lie=(e,t)=>"Unable to find an element with the display value: "+t+".",n4=Zr(eE,eE.name,"queryAll"),[o4,i4,a4,l4,s4]=yi(eE,aie,lie),sie=/^(img|input|area|.+-.+)$/i,tE=function(e,t,r){return r===void 0&&(r={}),gi(e),wl("alt",e,t,r).filter(n=>sie.test(n.tagName))},uie=(e,t)=>"Found multiple elements with the alt text: "+t,cie=(e,t)=>"Unable to find an element with the alt text: "+t,u4=Zr(tE,tE.name,"queryAll"),[c4,d4,f4,p4,h4]=yi(tE,uie,cie),die=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},rE=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:a}=r===void 0?{}:r;gi(e);let s=n?ci:Js,c=El({collapseWhitespace:o,trim:i,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(d=>s(d.getAttribute("title"),d,t,c)||die(d)&&s(pd(d),d,t,c))},fie=(e,t)=>"Found multiple elements with the title: "+t+".",pie=(e,t)=>"Unable to find an element with the title: "+t+".",m4=Zr(rE,rE.name,"queryAll"),[g4,y4,b4,v4,E4]=yi(rE,fie,pie),nE=function(e,t,r){let{hidden:n=Ye().defaultHidden,name:o,description:i,queryFallbacks:a=!1,selected:s,busy:c,checked:d,pressed:f,current:p,level:h,expanded:g,value:{now:y,min:E,max:w,text:b}={}}=r===void 0?{}:r;if(gi(e),s!==void 0){var S;if(((S=On.roles.get(t))==null?void 0:S.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(c!==void 0){var R;if(((R=On.roles.get(t))==null?void 0:R.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(d!==void 0){var O;if(((O=On.roles.get(t))==null?void 0:O.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(f!==void 0){var D;if(((D=On.roles.get(t))==null?void 0:D.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(p!==void 0){var T;if(((T=On.roles.get(t))==null?void 0:T.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(h!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(y!==void 0){var P;if(((P=On.roles.get(t))==null?void 0:P.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(w!==void 0){var _;if(((_=On.roles.get(t))==null?void 0:_.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(E!==void 0){var N;if(((N=On.roles.get(t))==null?void 0:N.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(b!==void 0){var V;if(((V=On.roles.get(t))==null?void 0:V.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(g!==void 0){var L;if(((L=On.roles.get(t))==null?void 0:L.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let K=new WeakMap;function Y($){return K.has($)||K.set($,ID($)),K.get($)}return Array.from(e.querySelectorAll(hie(t))).filter($=>{if($.hasAttribute("role")){let M=$.getAttribute("role");if(a)return M.split(" ").filter(Boolean).some(B=>B===t);let[I]=M.split(" ");return I===t}return KS($).some(M=>M===t)}).filter($=>{if(s!==void 0)return s===Foe($);if(c!==void 0)return c===joe($);if(d!==void 0)return d===qoe($);if(f!==void 0)return f===Hoe($);if(p!==void 0)return p===Uoe($);if(g!==void 0)return g===zoe($);if(h!==void 0)return h===Koe($);if(y!==void 0||w!==void 0||E!==void 0||b!==void 0){let I=!0;if(y!==void 0&&I&&(I=y===Voe($)),w!==void 0&&I&&(I=w===Woe($)),E!==void 0&&I&&(I=E===Goe($)),b!==void 0){var M;I&&(I=ci((M=Yoe($))!=null?M:null,$,b,B=>B))}return I}return!0}).filter($=>o===void 0?!0:ci(jS($,{computedStyleSupportsPseudoElements:Ye().computedStyleSupportsPseudoElements}),$,o,M=>M)).filter($=>i===void 0?!0:ci(yD($,{computedStyleSupportsPseudoElements:Ye().computedStyleSupportsPseudoElements}),$,i,M=>M)).filter($=>n===!1?Em($,{isSubtreeInaccessible:Y})===!1:!0)};function hie(e){var t;let r='*[role~="'+e+'"]',n=(t=On.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(i=>{let{name:a}=i;return a}));return[r].concat(Array.from(o)).join(",")}var w4=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},mie=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+w4(n)},gie=function(e,t,r){let{hidden:n=Ye().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(Ye()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+w4(o);let a="";Array.from(e.children).forEach(f=>{a+=kD(f,{hidden:n,includeDescription:i!==void 0})});let s;a.length===0?n===!1?s="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":s="There are no available roles.":s=(`
Here are the `+(n===!1?"accessible":"available")+` roles:
`+a.replace(/\n/g,`
`).replace(/\n\s\s\n/g,`
`)+`
`).trim();let c="";o===void 0?c="":typeof o=="string"?c=' and name "'+o+'"':c=" and name `"+o+"`";let d="";return i===void 0?d="":typeof i=="string"?d=' and description "'+i+'"':d=" and description `"+i+"`",(`
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+c+d+`
`+s).trim()},S4=Zr(nE,nE.name,"queryAll"),[x4,C4,T4,_4,R4]=yi(nE,mie,gie),GS=()=>Ye().testIdAttribute,oE=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return gi(t[0]),wl(GS(),...t)},yie=(e,t)=>"Found multiple elements by: ["+GS()+'="'+t+'"]',bie=(e,t)=>"Unable to find an element by: ["+GS()+'="'+t+'"]',A4=Zr(oE,oE.name,"queryAll"),[P4,$4,O4,I4,N4]=yi(oE,yie,bie),ih=Object.freeze({__proto__:null,queryAllByLabelText:zD,queryByLabelText:BD,getAllByLabelText:HD,getByLabelText:UD,findAllByLabelText:jD,findByLabelText:qD,queryByPlaceholderText:VD,queryAllByPlaceholderText:KD,getByPlaceholderText:GD,getAllByPlaceholderText:WD,findAllByPlaceholderText:YD,findByPlaceholderText:XD,queryByText:QD,queryAllByText:JD,getByText:e4,getAllByText:ZD,findAllByText:t4,findByText:r4,queryByDisplayValue:o4,queryAllByDisplayValue:n4,getByDisplayValue:a4,getAllByDisplayValue:i4,findAllByDisplayValue:l4,findByDisplayValue:s4,queryByAltText:c4,queryAllByAltText:u4,getByAltText:f4,getAllByAltText:d4,findAllByAltText:p4,findByAltText:h4,queryByTitle:g4,queryAllByTitle:m4,getByTitle:b4,getAllByTitle:y4,findAllByTitle:v4,findByTitle:E4,queryByRole:x4,queryAllByRole:S4,getAllByRole:C4,getByRole:T4,findAllByRole:_4,findByRole:R4,queryByTestId:P4,queryAllByTestId:A4,getByTestId:O4,getAllByTestId:$4,findAllByTestId:I4,findByTestId:N4});function iE(e,t,r){return t===void 0&&(t=ih),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let i=t[o];return n[o]=i.bind(null,e),n},r)}var k4=e=>!e||Array.isArray(e)&&!e.length;function HA(e){if(k4(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function vie(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){HA(e);let n=(Array.isArray(e)?e:[e]).map(o=>{let i=o.parentElement;if(i===null)return()=>null;for(;i.parentElement;)i=i.parentElement;return()=>i.contains(o)?o:null});e=()=>n.map(o=>o()).filter(Boolean)}return HA(e()),VS(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!k4(n))throw r},t)}var UA={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},zA={doubleClick:"dblClick"};function jc(e,t){return Ye().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Cp(e,t,r,n){let{EventType:o="Event",defaultInit:i={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let a={...i,...r},{target:{value:s,files:c,...d}={}}=a;s!==void 0&&Eie(t,s),c!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,d);let f=_D(t),p=f[o]||f.Event,h;if(typeof p=="function")h=new p(e,a);else{h=f.document.createEvent(o);let{bubbles:g,cancelable:y,detail:E,...w}=a;h.initEvent(e,g,y,E),Object.keys(w).forEach(b=>{h[b]=w[b]})}return["dataTransfer","clipboardData"].forEach(g=>{let y=a[g];typeof y=="object"&&(typeof f.DataTransfer=="function"?Object.defineProperty(h,g,{value:Object.getOwnPropertyNames(y).reduce((E,w)=>(Object.defineProperty(E,w,{value:y[w]}),E),new f.DataTransfer)}):Object.defineProperty(h,g,{value:y}))}),h}Object.keys(UA).forEach(e=>{let{EventType:t,defaultInit:r}=UA[e],n=e.toLowerCase();Cp[e]=(o,i)=>Cp(n,o,i,{EventType:t,defaultInit:r}),jc[e]=(o,i)=>jc(o,Cp[e](o,i))});function Eie(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(zA).forEach(e=>{let t=zA[e];jc[e]=function(){return jc[t](...arguments)}});function wie(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
`)}function Sie(e){return foe.default.compressToEncodedURIComponent(wie(e))}function xie(e){return"https://testing-playground.com/#markup="+Sie(e)}var Cie=(e,t,r)=>Array.isArray(e)?e.forEach(n=>X1(n,t,r)):X1(e,t,r),Tie=function(e){if(e===void 0&&(e=US().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}let t=xie(e.innerHTML);return console.log(`Open this URL in your browser
`+t),t},KA={debug:Cie,logTestingPlaygroundURL:Tie},_ie=typeof document<"u"&&document.body?iE(document.body,ih,KA):Object.keys(ih).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),KA);function ze(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,o])=>e[n]===o):!0}function jn(e){var t;if(Rie(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${Aie(e)}`)}function Rie(e){return e.nodeType===9}function Aie(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function D4(e,t){return new Promise((r,n)=>{let o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}function YS(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function na(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M4=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){na(this,"kind",void 0),na(this,"type",void 0),na(this,"file",null),na(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e)}},Pie=class extends Array{add(...e){let t=new M4(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function zf(e,t){let[r,n]=e.split("/"),o=!n||n==="*";return i=>t?i.type===(o?r:e):o?i.type.startsWith(`${r}/`):i.type===r}function $ie(e){return new class{getData(t){var r;let n=(r=this.items.find(zf(t,!0)))!==null&&r!==void 0?r:this.items.find(zf(t,!1)),o="";return n==null||n.getAsString(i=>{o=i}),o}setData(t,r){let n=this.items.findIndex(zf(t,!0)),o=new M4(r,t);n>=0?this.items.splice(n,1,o):this.items.push(o)}clearData(t){if(t){let r=this.items.findIndex(zf(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){na(this,"dropEffect","none"),na(this,"effectAllowed","uninitialized"),na(this,"items",new Pie),na(this,"files",YS(e,[]))}}}function XS(e,t=[]){let r=typeof e.DataTransfer>"u"?$ie(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>YS(e,t)}),r}async function Oie(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function L4(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B4(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let o=await this.data[n];if(!o)throw new Error(`${n} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:n})}constructor(n){L4(this,"data",void 0),this.data=n}}(r)}var As=Symbol("Manage ClipboardSub");function VA(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let o=n.types.includes("text/plain")?"text/plain":n.types.find(i=>i.startsWith("text/"));o&&(r+=await n.getType(o).then(i=>D4(i,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[B4(e,r)]}constructor(...r){super(...r),L4(this,"items",[])}},{[As]:t})}function JS(e){return!!(e!=null&&e[As])}function Iie(e){if(JS(e.navigator.clipboard))return e.navigator.clipboard[As];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=VA(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=VA(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[As]}function Nie(e){JS(e.navigator.clipboard)&&e.navigator.clipboard[As].resetClipboardStub()}function kie(e){JS(e.navigator.clipboard)&&e.navigator.clipboard[As].detachClipboardStub()}async function Die(e){let t=e.defaultView,r=t==null?void 0:t.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let o=XS(t);for(let i of n)for(let a of i.types)o.setData(a,await i.getType(a).then(s=>D4(s,t.FileReader)));return o}async function F4(e,t){let r=jn(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){let a=t.items[i],s=await Oie(r,a);o.push(B4(r,s))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var ah=globalThis;typeof ah.afterEach=="function"&&ah.afterEach(()=>{typeof globalThis.window<"u"&&Nie(globalThis.window)});typeof ah.afterAll=="function"&&ah.afterAll(()=>{typeof globalThis.window<"u"&&kie(globalThis.window)});var j4=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function QS(e){return e.matches(j4)}function Mie(e){return new e.constructor(e.type,e)}function fi(e){for(let r=e;r;r=r.parentElement)if(ze(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(ze(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}function md(e){let t=e.activeElement;return t!=null&&t.shadowRoot?md(t.shadowRoot):fi(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function c0(e){var t;return(t=md(e))!==null&&t!==void 0?t:e.body}function Lie(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function fl(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function qc(e){let t=Bie(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function Bie(e){return e.nodeType===1?e:e.parentElement}var q4=function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e}(q4||{});function H4(e){return ze(e,"button")||ze(e,"input")&&e.type in q4}function Ps(e){return z4(e)&&!e.readOnly||fl(e)}var U4=function(e){return e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week",e}(U4||{});function z4(e){return ze(e,"textarea")||ze(e,"input")&&e.type in U4}function Do(e){return K4(e)&&z4(e)}function Fie(e){return K4(e)&&H4(e)}function K4(e){return e.nodeType===1}function jie(e){let t=e.ownerDocument.getSelection();if(t!=null&&t.focusNode&&Do(e)){let n=qc(t.focusNode);if(n){if(!t.isCollapsed){var r;let o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}function $s(e,t){return Ye().eventWrapper(e)}function da(e){let t=Lie(e,QS),r=md(e.ownerDocument);(t??e.ownerDocument.body)!==r&&($s(t?()=>t.focus():()=>r==null?void 0:r.blur()),jie(t??e.ownerDocument.body))}function qie(e){!QS(e)||md(e.ownerDocument)!==e||$s(()=>e.blur())}var fa={};fa.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&ze(n,"label")&&n.control;if(o&&o!==t)return()=>{QS(o)&&(da(o),r.dispatchEvent(o,Mie(e)))};if(ze(t,"input",{type:"file"}))return()=>{qie(t),t.dispatchEvent(new(jn(t)).Event("fileDialog")),da(t)}};var Os=Symbol("Displayed value in UI"),li=Symbol("Displayed selection in UI"),lh=Symbol("Initial value to compare on blur");function Hie(e){return typeof e=="object"&&Os in e}function Uie(e){return!!e&&typeof e=="object"&&li in e}function zie(e,t){e[lh]===void 0&&(e[lh]=e.value),e[Os]=t,e.value=Object.assign(new String(t),{[Os]:!0})}function Mo(e){return e[Os]===void 0?e.value:String(e[Os])}function ZS(e){e[Os]=void 0}function V4(e){e[lh]=void 0}function Kie(e){return e[lh]}function Vie(e,t){e[li]=t}function Qs(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=Mo(e).length,i=p=>Math.max(0,Math.min(o,p)),a=n==="replace"||e[li]===void 0?i(r):e[li].anchorOffset,s=i(t),c=Math.min(a,s),d=Math.max(a,s);if(e[li]={anchorOffset:a,focusOffset:s},e.selectionStart===c&&e.selectionEnd===d)return;let f=Object.assign(new Number(c),{[li]:!0});try{e.setSelectionRange(f,d)}catch{}}function Hc(e){var t,r,n;let o=(n=e[li])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}function Wie(e){return!!e[li]}function Tp(e){e[li]=void 0}var sh=globalThis.parseInt;function Gie(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=sh(t[0],10),n=sh(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,WA(t,o)}return e.length===2?e:WA(t,2)}function WA(e,t){let r=e.slice(0,t),n=Math.min(sh(r,10),23),o=e.slice(t),i=sh(o,10),a=Math.min(i,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}function W4(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var G4=function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e}(G4||{});function Yie(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function Xie(e){return ze(e,"textarea")||ze(e,"input")&&e.type in G4}function Y4(e,t,r,n){if(_p(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let o=GA(e,t,r);if(o){if(_p(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(ze(o,"br")){let i=GA(o,void 0,r);return i?_p(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&ze(i,"br")?{node:o.parentNode,offset:Kf(o)}:{node:i.parentNode,offset:Kf(i)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:Kf(o)}:void 0}else return{node:o.parentNode,offset:Kf(o)+(r>0?1:0)}}}function GA(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&ex(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),Qie(e,r===1?"next":"previous",Jie)}function Jie(e){if(_p(e))return!0;if(ex(e)){if(ze(e,["input","textarea"]))return e.type!=="hidden";if(ze(e,"br"))return!0}return!1}function Kf(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function ex(e){return e.nodeType===1}function _p(e){return e.nodeType===3}function Qie(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=Zie(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!ex(e.parentNode)||!fl(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function Zie(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var Uc=Symbol("Track programmatic changes for React workaround");function eae(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&jn(e).REACT_VERSION===17}function tae(e){eae(e)&&(e[Uc]={previousValue:String(e.value),tracked:[]})}function rae(e,t){var r,n;(n=e[Uc])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Uc]||(ZS(e),Qs(e,{focusOffset:t.length}))}function nae(e,t){var r;let n=e[Uc];if(e[Uc]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||ZS(e),Wie(e)&&Qs(e,{focusOffset:o?t:e.value.length})}function X4(e){let t=oae(e);if(t&&Do(t))return{type:"input",selection:Hc(t)};let r=t==null?void 0:t.ownerDocument.getSelection();return{type:qc(e)&&(r!=null&&r.anchorNode)&&qc(r.anchorNode)?"contenteditable":"default",selection:r}}function oae(e){return e.nodeType===1?e:e.parentElement}function iae(e){let t=X4(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function pl({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,i;if(X4(e).type==="input")return Qs(e,{anchorOffset:n,focusOffset:t});(i=r.ownerDocument)===null||i===void 0||(o=i.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}function J4(e){return ze(e,"input")&&["date","time"].includes(e.type)}function Is(e,t,r,n="insertText"){let o=iae(t);o&&(!J4(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?aae(e,t,o,r,n):lae(e,t,o,r,n)))}function aae(e,t,r,n,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let a=Y4(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(a){i=!0;let s=r.cloneRange();s.comparePoint(a.node,a.offset)<0?s.setStart(a.node,a.offset):s.setEnd(a.node,a.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let a=r.endOffset;r.endContainer.insertData(a,n),r.setStart(r.endContainer,a+n.length),r.setEnd(r.endContainer,a+n.length)}else{let a=t.ownerDocument.createTextNode(n);r.insertNode(a),r.setStart(a,n.length),r.setEnd(a,n.length)}(i||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}function lae(e,t,r,n,o){let i=n;if(Xie(t)){let d=Yie(t);if(d!==void 0&&n.length>0){let f=d-t.value.length;if(f>0)i=n.substring(0,f);else return}}let{newValue:a,newOffset:s,oldValue:c}=sae(i,t,r,o);a===c&&s===r.startOffset&&s===r.endOffset||ze(t,"input",{type:"number"})&&!uae(a)||(zie(t,a),pl({focusNode:t,anchorOffset:s,focusOffset:s}),J4(t)?W4(t,a)&&(YA(e,t,s,{}),e.dispatchUIEvent(t,"change"),V4(t)):YA(e,t,s,{data:n,inputType:o}))}function sae(e,t,{startOffset:r,endOffset:n},o){let i=Mo(t),a=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),s=i.substring(0,a),c=Math.min(i.length,r===n&&o==="deleteContentForward"?r+1:n),d=i.substring(c,i.length),f=`${s}${e}${d}`,p=a+e.length;if(ze(t,"input",{type:"time"})){let h=Gie(f);h!==""&&W4(t,h)&&(f=h,p=h.length)}return{oldValue:i,newValue:f,newOffset:p}}function YA(e,t,r,n){e.dispatchUIEvent(t,"input",n),nae(t,r)}function uae(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}fa.cut=(e,t,r)=>()=>{Ps(t)&&Is(r,t,"","deleteByCut")};function cae(e){return e?fl(e)?e.textContent:Mo(e):null}function dae(e){let t=jn(e);for(let r=e;r!=null&&r.ownerDocument;r=r.parentElement){let{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}function fae(e,t){let r=e.ownerDocument,n=r.querySelectorAll(j4),o=Array.from(n).filter(c=>c===e||!(Number(c.getAttribute("tabindex"))<0||fi(c)));Number(e.getAttribute("tabindex"))>=0&&o.sort((c,d)=>{let f=Number(c.getAttribute("tabindex")),p=Number(d.getAttribute("tabindex"));return f===p?0:f===0?1:p===0?-1:f-p});let i={},a=[r.body],s=ze(e,"input",{type:"radio"})?e.name:void 0;o.forEach(c=>{let d=c;if(ze(d,"input",{type:"radio"})&&d.name){if(d===e){a.push(d);return}else if(d.name===s)return;if(d.checked){a=a.filter(f=>!ze(f,"input",{type:"radio",name:d.name})),a.push(d),i[d.name]=d;return}if(typeof i[d.name]<"u")return}a.push(d)});for(let c=a.findIndex(d=>d===e);;)if(c+=t?-1:1,c===a.length?c=0:c===-1&&(c=a.length-1),a[c]===e||a[c]===r.body||dae(a[c]))return a[c]}function XA(e,t){if(Do(e)){let r=Hc(e);pl({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!(r!=null&&r.focusNode))return;if(r.isCollapsed){let n=Y4(r.focusNode,r.focusOffset,t);n&&pl({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function Q4(e){if(Do(e))return pl({focusNode:e,anchorOffset:0,focusOffset:Mo(e).length});var t;let r=(t=qc(e))!==null&&t!==void 0?t:e.ownerDocument.body;pl({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function pae(e){if(Do(e))return Hc(e).startOffset===0&&Hc(e).endOffset===Mo(e).length;var t;let r=(t=qc(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return(n==null?void 0:n.anchorNode)===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function nc(e,t,r){var n;if(Do(e))return pl({focusNode:e,anchorOffset:t,focusOffset:r});if(fl(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return pl({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function Vf(e,t,r){let n=jn(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=o.findIndex(a=>a===t)+r;;i+=r){if(o[i]||(i=r>0?0:o.length-1),o[i]===t)return;if(!fi(o[i])){da(o[i]),e.dispatchUIEvent(o[i],"click");return}}}fa.keydown=(e,t,r)=>{var n,o;return(o=(n=JA[e.key])===null||n===void 0?void 0:n.call(JA,e,t,r))!==null&&o!==void 0?o:hae(e,t,r)};var JA={ArrowDown:(e,t,r)=>{if(ze(t,"input",{type:"radio"}))return()=>Vf(r,t,1)},ArrowLeft:(e,t,r)=>ze(t,"input",{type:"radio"})?()=>Vf(r,t,-1):()=>XA(t,-1),ArrowRight:(e,t,r)=>ze(t,"input",{type:"radio"})?()=>Vf(r,t,1):()=>XA(t,1),ArrowUp:(e,t,r)=>{if(ze(t,"input",{type:"radio"}))return()=>Vf(r,t,-1)},Backspace:(e,t,r)=>{if(Ps(t))return()=>{Is(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(Ps(t))return()=>{Is(r,t,"","deleteContentForward")}},End:(e,t)=>{if(ze(t,["input","textarea"])||fl(t))return()=>{var r,n;let o=(n=(r=cae(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;nc(t,o,o)}},Home:(e,t)=>{if(ze(t,["input","textarea"])||fl(t))return()=>{nc(t,0,0)}},PageDown:(e,t)=>{if(ze(t,["input"]))return()=>{let r=Mo(t).length;nc(t,r,r)}},PageUp:(e,t)=>{if(ze(t,["input"]))return()=>{nc(t,0,0)}},Tab:(e,t,r)=>()=>{let n=fae(t,r.system.keyboard.modifiers.Shift);da(n),Do(n)&&Qs(n,{anchorOffset:0,focusOffset:n.value.length})}},hae=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Q4(t)};fa.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ze(t,"button")||ze(t,"input")&&mae.includes(t.type)||ze(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(ze(t,"input")){let n=t.form,o=n==null?void 0:n.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&gae.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Ps(t)){let n=e.key==="Enter"?fl(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
`:e.key;return()=>Is(r,t,o,n)}};var mae=["button","color","file","image","reset","submit"],gae=["email","month","password","search","tel","text","url","week"];fa.keyup=(e,t,r)=>{var n;return(n=QA[e.key])===null||n===void 0?void 0:n.call(QA,e,t,r)};var QA={" ":(e,t,r)=>{if(H4(t))return()=>r.dispatchUIEvent(t,"click")}};fa.paste=(e,t,r)=>{if(Ps(t))return()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&Is(r,t,o,"insertFromPaste")}};var Z4={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusin:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusout:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function eM(e){return Z4[e].EventType}var yae=["MouseEvent","PointerEvent"];function bae(e){return yae.includes(eM(e))}function vae(e){return eM(e)==="KeyboardEvent"}var Eae={ClipboardEvent:[Sae],Event:[],FocusEvent:[Wu,xae],InputEvent:[Wu,Cae],MouseEvent:[Wu,d0,ZA],PointerEvent:[Wu,d0,ZA,_ae],KeyboardEvent:[Wu,d0,Tae]};function tM(e,t,r){let n=jn(t),{EventType:o,defaultInit:i}=Z4[e],a=new(wae(n))[o](e,i);var s={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(s[c]=r[c]);return s.view=n,Eae[o].forEach(function(d){d(a,s)}),a}function wae(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var i;let a=(i=e.ClipboardEvent)!==null&&i!==void 0?i:class extends r{};var s;let c=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var d;let f=(d=e.ProgressEvent)!==null&&d!==void 0?d:class extends r{};var p;let h=(p=e.TransitionEvent)!==null&&p!==void 0?p:class extends r{};var g;let y=(g=e.UIEvent)!==null&&g!==void 0?g:class extends r{};var E;let w=(E=e.CompositionEvent)!==null&&E!==void 0?E:class extends y{};var b;let S=(b=e.FocusEvent)!==null&&b!==void 0?b:class extends y{};var R;let O=(R=e.InputEvent)!==null&&R!==void 0?R:class extends y{};var D;let T=(D=e.KeyboardEvent)!==null&&D!==void 0?D:class extends y{};var P;let _=(P=e.MouseEvent)!==null&&P!==void 0?P:class extends y{};var N;let V=(N=e.DragEvent)!==null&&N!==void 0?N:class extends _{};var L;let K=(L=e.PointerEvent)!==null&&L!==void 0?L:class extends _{};var Y;let $=(Y=e.TouchEvent)!==null&&Y!==void 0?Y:class extends y{};return{Event:r,AnimationEvent:o,ClipboardEvent:a,PopStateEvent:c,ProgressEvent:f,TransitionEvent:h,UIEvent:y,CompositionEvent:w,FocusEvent:S,InputEvent:O,KeyboardEvent:T,MouseEvent:_,DragEvent:V,PointerEvent:K,TouchEvent:$}}function Ea(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function Dt(e){return Number(e??0)}function Sae(e,{clipboardData:t}){Ea(e,{clipboardData:t})}function xae(e,{relatedTarget:t}){Ea(e,{relatedTarget:t})}function Cae(e,{data:t,inputType:r,isComposing:n}){Ea(e,{data:t,isComposing:!!n,inputType:String(r)})}function Wu(e,{view:t,detail:r}){Ea(e,{view:t,detail:Dt(r??0)})}function d0(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:i,modifierCapsLock:a,modifierFn:s,modifierFnLock:c,modifierNumLock:d,modifierScrollLock:f,modifierSymbol:p,modifierSymbolLock:h}){Ea(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(g){return!!{Alt:t,AltGraph:i,CapsLock:a,Control:r,Fn:s,FnLock:c,Meta:n,NumLock:d,ScrollLock:f,Shift:o,Symbol:p,SymbolLock:h}[g]}})}function Tae(e,{key:t,code:r,location:n,repeat:o,isComposing:i,charCode:a}){Ea(e,{key:String(t),code:String(r),location:Dt(n),repeat:!!o,isComposing:!!i,charCode:a})}function ZA(e,{x:t,y:r,screenX:n,screenY:o,clientX:i=t,clientY:a=r,button:s,buttons:c,relatedTarget:d,offsetX:f,offsetY:p,pageX:h,pageY:g}){Ea(e,{screenX:Dt(n),screenY:Dt(o),clientX:Dt(i),x:Dt(i),clientY:Dt(a),y:Dt(a),button:Dt(s),buttons:Dt(c),relatedTarget:d,offsetX:Dt(f),offsetY:Dt(p),pageX:Dt(h),pageY:Dt(g)})}function _ae(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:i,tiltX:a,tiltY:s,twist:c,pointerType:d,isPrimary:f}){Ea(e,{pointerId:Dt(t),width:Dt(r??1),height:Dt(n??1),pressure:Dt(o),tangentialPressure:Dt(i),tiltX:Dt(a),tiltY:Dt(s),twist:Dt(c),pointerType:String(d),isPrimary:!!f})}function Rae(e,t,r,n=!1){(bae(t)||vae(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=tM(t,e,r);return rM.call(this,e,o,n)}function rM(e,t,r=!1){var n;let o=t.type,i=r?()=>{}:(n=fa[o])===null||n===void 0?void 0:n.call(fa,t,e,this);if(i){t.preventDefault();let a=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>a}),Object.defineProperty(t,"preventDefault",{value:()=>{a=t.cancelable}}),$s(()=>e.dispatchEvent(t)),a||i(),!a}return $s(()=>e.dispatchEvent(t))}function Ja(e,t,r){let n=tM(t,e,r);$s(()=>e.dispatchEvent(n))}var eP=Symbol("patched focus/blur methods");function nM(e){if(e.prototype[eP])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>o},blur:{configurable:!0,get:()=>i},[eP]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function o(a){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,a);let s=tP(this.ownerDocument);if(s===this)return;let c=Symbol("focus call");n=c,s&&(r.call(s),Ja(s,"blur",{relatedTarget:this}),Ja(s,"focusout",{relatedTarget:n===c?this:null})),n===c&&(t.call(this,a),Ja(this,"focus",{relatedTarget:s})),n===c&&Ja(this,"focusin",{relatedTarget:s})}function i(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let a=tP(this.ownerDocument);a===this&&(n=Symbol("blur call"),r.call(this),Ja(a,"blur",{relatedTarget:null}),Ja(a,"focusout",{relatedTarget:null}))}}function tP(e){let t=md(e);return(t==null?void 0:t.tagName)==="BODY"?null:t}var f0=Symbol("Interceptor for programmatical calls");function os(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=n!=null&&n.set?"set":"value";if(typeof(n==null?void 0:n[i])!="function"||n[i][f0])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function a(...s){let{applyNative:c=!1,realArgs:d,then:f}=r.call(this,...s),p=(!c&&o||n)[i];i==="set"?p.call(this,d):p.call(this,...d),f==null||f()}a[f0]=f0,Object.defineProperty(e,t,{...o??n,[i]:a})}function Aae(e){os(e,"value",function(t){let r=Hie(t);return r&&tae(this),{applyNative:!!r,realArgs:Pae(this,t),then:r?void 0:()=>rae(this,String(t))}})}function Pae(e,t){return ze(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function $ae(e){os(e,"setSelectionRange",function(t,...r){let n=Uie(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:Tp(e)}}),os(e,"selectionStart",function(t){return{realArgs:t,then:()=>Tp(e)}}),os(e,"selectionEnd",function(t){return{realArgs:t,then:()=>Tp(e)}}),os(e,"select",function(){return{realArgs:[],then:()=>Vie(e,{anchorOffset:0,focusOffset:Mo(e).length})}})}function Oae(e){os(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{ZS(e),Tp(e)}}})}var ds=Symbol("Node prepared with document state workarounds");function oM(e){e[ds]||(e.addEventListener("focus",t=>{let r=t.target;rP(r)},{capture:!0,passive:!0}),e.activeElement&&rP(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=Kie(r);n!==void 0&&(r.value!==n&&Ja(r,"change"),V4(r))},{capture:!0,passive:!0}),e[ds]=ds)}function rP(e){e[ds]||(ze(e,["input","textarea"])&&(Aae(e),$ae(e),Oae(e)),e[ds]=ds)}function Iae(e){return Nae(e)?e:e.ownerDocument}function Nae(e){return e.nodeType===9}var dn=function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e}({});function oc(e,t){e.levelRefs[t]={}}function Wf(e,t){return e.levelRefs[t]}function Ns(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var Rp=function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e}({});function Fa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var go=function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e}({}),kae=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function nP(e){return kae.includes(e)}var Dae=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function oP(e){return Dae.includes(e)}var Mae=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let r=String(t.key),n=String(t.code),o=c0(e.config.document);this.setKeydownTarget(o),this.pressed.add(n,t),nP(r)&&(this.modifiers[r]=!0);let i=e.dispatchUIEvent(o,"keydown",{key:r,code:n});oP(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),i&&this.pressed.setUnprevented(n),i&&this.hasKeyPress(r)&&e.dispatchUIEvent(c0(e.config.document),"keypress",{key:r,code:n,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),o=this.pressed.isUnprevented(n);this.pressed.delete(n),nP(r)&&!this.pressed.values().find(i=>i.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(c0(e.config.document),"keyup",{key:r,code:n},!o),oP(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){Fa(this,"system",void 0),Fa(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),Fa(this,"pressed",new class{add(t,r){var n,o,i;(i=(n=this.registry)[o=t])!==null&&i!==void 0||(n[o]={keyDef:r,unpreventedDefault:!1})}has(t){return!!this.registry[t]}setUnprevented(t){let r=this.registry[t];r&&(r.unpreventedDefault=!0)}isUnprevented(t){var r;return!!(!((r=this.registry[t])===null||r===void 0)&&r.unpreventedDefault)}delete(t){delete this.registry[t]}values(){return Object.values(this.registry)}constructor(){Fa(this,"registry",{})}}),Fa(this,"carryChar",""),Fa(this,"lastKeydownTarget",void 0),Fa(this,"modifierLockStart",{}),this.system=e}},Lae=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:go.LEFT},{code:"AltRight",key:"Alt",location:go.RIGHT},{code:"ShiftLeft",key:"Shift",location:go.LEFT},{code:"ShiftRight",key:"Shift",location:go.RIGHT},{code:"ControlLeft",key:"Control",location:go.LEFT},{code:"ControlRight",key:"Control",location:go.RIGHT},{code:"MetaLeft",key:"Meta",location:go.LEFT},{code:"MetaRight",key:"Meta",location:go.RIGHT},{code:"OSLeft",key:"OS",location:go.LEFT},{code:"OSRight",key:"OS",location:go.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],Bae=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function Fae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var iM=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=aE(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=aE(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){Fae(this,"pressed",{})}},iP={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function aE(e=0){return e in iP?iP[e]:Number(e)}var aP={1:2,2:1};function lE(e){return e=aE(e),e in aP?aP[e]:e}function jae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qae=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){jae(this,"pressedKeys",new Set)}};function gc(e,t){let r=[];for(let i=e;i;i=i.parentElement)r.push(i);let n=[];for(let i=t;i;i=i.parentElement)n.push(i);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return[r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}function sE({target:e,node:t,offset:r}){return Do(e)?{node:e,offset:r??Mo(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:aM(e,r)}function aM(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let i=e.childNodes.item(n),a=String(i.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(i.nodeType===1)return aM(i,t,!1);if(i.nodeType===3)return{node:i,offset:t??i.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}function Hae({document:e,target:t,clickCount:r,node:n,offset:o}){if(Fie(t))return;let i=Do(t),a=String(i?Mo(t):t.textContent),[s,c]=n?[o,o]:Uae(a,o,r);if(i)return Qs(t,{anchorOffset:s??a.length,focusOffset:c??a.length}),{node:t,start:s??0,end:c??a.length};{let{node:d,offset:f}=sE({target:t,node:n,offset:s}),{node:p,offset:h}=sE({target:t,node:n,offset:c}),g=t.ownerDocument.createRange();try{g.setStart(d,f),g.setEnd(p,h)}catch{throw new Error("The given offset is out of bounds.")}let y=e.getSelection();return y==null||y.removeAllRanges(),y==null||y.addRange(g.cloneRange()),g}}function Uae(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function zae(e,{document:t,target:r,node:n,offset:o}){let i=sE({target:r,node:n,offset:o});if("node"in e){if(i.node===e.node){let a=i.offset<e.start?e.end:e.start,s=i.offset>e.end||i.offset<e.start?i.offset:e.end;Qs(e.node,{anchorOffset:a,focusOffset:s})}}else{let a=e.cloneRange(),s=a.comparePoint(i.node,i.offset);s<0?a.setStart(i.node,i.offset):s>0&&a.setEnd(i.node,i.offset);let c=t.getSelection();c==null||c.removeAllRanges(),c==null||c.addRange(a.cloneRange())}}function lM(e,t){var r,n,o,i,a,s,c,d,f,p,h,g,y,E,w,b,S,R,O,D,T,P,_,N;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((i=t.coords)===null||i===void 0?void 0:i.y)||((a=e.coords)===null||a===void 0?void 0:a.clientX)!==((s=t.coords)===null||s===void 0?void 0:s.clientX)||((c=e.coords)===null||c===void 0?void 0:c.clientY)!==((d=t.coords)===null||d===void 0?void 0:d.clientY)||((f=e.coords)===null||f===void 0?void 0:f.offsetX)!==((p=t.coords)===null||p===void 0?void 0:p.offsetX)||((h=e.coords)===null||h===void 0?void 0:h.offsetY)!==((g=t.coords)===null||g===void 0?void 0:g.offsetY)||((y=e.coords)===null||y===void 0?void 0:y.pageX)!==((E=t.coords)===null||E===void 0?void 0:E.pageX)||((w=e.coords)===null||w===void 0?void 0:w.pageY)!==((b=t.coords)===null||b===void 0?void 0:b.pageY)||((S=e.coords)===null||S===void 0?void 0:S.screenX)!==((R=t.coords)===null||R===void 0?void 0:R.screenX)||((O=e.coords)===null||O===void 0?void 0:O.screenY)!==((D=t.coords)===null||D===void 0?void 0:D.screenY)||((T=e.caret)===null||T===void 0?void 0:T.node)!==((P=t.caret)===null||P===void 0?void 0:P.node)||((_=e.caret)===null||_===void 0?void 0:_.offset)!==((N=t.caret)===null||N===void 0?void 0:N.offset)}function ja(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Kae=class{move(e,t,r){let n=this.position,o=this.getTarget(e);if(this.position=t,!lM(n,t))return;let i=this.getTarget(e),a=this.getEventInit("mousemove"),[s,c]=gc(o,i);return{leave:()=>{o!==i&&(e.dispatchUIEvent(o,"mouseout",a),s.forEach(d=>e.dispatchUIEvent(d,"mouseleave",a)))},enter:()=>{o!==i&&(e.dispatchUIEvent(i,"mouseover",a),c.forEach(d=>e.dispatchUIEvent(d,"mouseenter",a)))},move:()=>{r||(e.dispatchUIEvent(i,"mousemove",a),this.modifySelecting(e))}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[n]=o;let i=this.getEventInit("mousedown",t.button),a=fi(o);!r&&(a||e.dispatchUIEvent(o,"mousedown",i))&&(this.startSelecting(e,i.detail),da(o)),!a&&lE(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let o=this.getTarget(e);if(!fi(o)){if(!r){let a=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(o,"mouseup",a),this.endSelecting()}let i=gc(this.buttonDownTarget[n],o)[2][0];if(i){let a=this.getEventInit("click",t.button);a.detail&&(e.dispatchUIEvent(i,a.button===0?"click":"auxclick",a),a.button===0&&a.detail===2&&e.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",t.button),detail:a.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let r={...this.position.coords};return r.button=lE(t),r.buttons=this.buttons.getButtons(),e==="mousedown"?r.detail=this.clickCount.getOnDown(r.button):e==="mouseup"?r.detail=this.clickCount.getOnUp(r.button):(e==="click"||e==="auxclick")&&(r.detail=this.clickCount.incOnClick(r.button)),r}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=Hae({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&zae(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){ja(this,"position",{}),ja(this,"buttons",new iM),ja(this,"selecting",void 0),ja(this,"buttonDownTarget",{}),ja(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){ja(this,"down",{}),ja(this,"count",{})}})}};function uh(e,t){var r;return((r=sM(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function Vae(e){let t=jn(e);for(let r=e,n=[];r!=null&&r.ownerDocument;r=r.parentElement){n.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}var lP=Symbol("Last check for pointer-events");function sM(e,t){let r=t[lP];if(!(e.config.pointerEventsCheck!==Rp.Never&&(!r||sP(e.config.pointerEventsCheck,Rp.EachApiCall)&&r[dn.Call]!==Wf(e,dn.Call)||sP(e.config.pointerEventsCheck,Rp.EachTrigger)&&r[dn.Trigger]!==Wf(e,dn.Trigger))))return r==null?void 0:r.result;let n=Vae(t);return t[lP]={[dn.Call]:Wf(e,dn.Call),[dn.Trigger]:Wf(e,dn.Trigger),result:n},n}function ic(e,t){let r=sM(e,t);if((r==null?void 0:r.pointerEvents)==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",Wae(r.tree)].join(`
`))}function Wae(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,Gae(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
`)}function Gae(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim()}else if(ze(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(a=>{var s;return(s=a.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(ze(e,"button")){var i;r=(i=e.textContent)===null||i===void 0?void 0:i.trim()}return r=r==null?void 0:r.replace(/\n/g," "),Number(r==null?void 0:r.length)>30&&(r=`${r==null?void 0:r.substring(0,29)}…`),r?`(label=${r})`:""}function sP(e,t){return(e&t)>0}function Zo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yae=class{init(e){let t=this.getTarget(e),[,r]=gc(null,t),n=this.getEventInit();return ic(e,t),e.dispatchUIEvent(t,"pointerover",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerenter",n)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!lM(r,t))return;let o=this.getTarget(e),i=this.getEventInit(-1),[a,s]=gc(n,o);return{leave:()=>{uh(e,n)&&n!==o&&(e.dispatchUIEvent(n,"pointerout",i),a.forEach(c=>e.dispatchUIEvent(c,"pointerleave",i)))},enter:()=>{ic(e,o),n!==o&&(e.dispatchUIEvent(o,"pointerover",i),s.forEach(c=>e.dispatchUIEvent(c,"pointerenter",i)))},move:()=>{e.dispatchUIEvent(o,"pointermove",i)}}}down(e,t=0){if(this.isDown)return;let r=this.getTarget(e);ic(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let r=this.getTarget(e);ic(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=gc(t,null),n=this.getEventInit();uh(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:lE(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){Zo(this,"pointerId",void 0),Zo(this,"pointerType",void 0),Zo(this,"isPrimary",void 0),Zo(this,"buttons",void 0),Zo(this,"isMultitouch",!1),Zo(this,"isCancelled",!1),Zo(this,"isDown",!1),Zo(this,"isPrevented",!1),Zo(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function Vi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xae=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let n=this.getPointerName(t),o=t.pointerType==="touch"?this.pointers.new(n,t.pointerType,this.buttons):this.pointers.get(n);o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),o.pointerType==="touch"&&o.init(e),o.down(e,t.button),o.pointerType!=="touch"&&this.mouse.down(e,t,o.isPrevented)}async move(e,t,r){let n=this.pointers.get(t),o=n.move(e,r),i=n.pointerType==="touch"?void 0:this.mouse.move(e,r,n.isPrevented);o==null||o.leave(),i==null||i.leave(),o==null||o.enter(),i==null||i.enter(),o==null||o.move(),i==null||i.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let o=this.pointers.get(this.getPointerName(t)),i=o.isPrevented;if(o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&o.up(e,t.button),o.pointerType==="touch"&&o.release(e),o.pointerType==="touch"&&!o.isMultitouch){let a=this.mouse.move(e,r,i);a==null||a.leave(),a==null||a.enter(),a==null||a.move(),this.mouse.down(e,t,i)}if(!o.isMultitouch){let a=this.mouse.move(e,r,i);a==null||a.leave(),a==null||a.enter(),a==null||a.move(),this.mouse.up(e,t,i)}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){Vi(this,"system",void 0),Vi(this,"mouse",void 0),Vi(this,"buttons",void 0),Vi(this,"devices",new class{get(t){var r,n,o;return(o=(r=this.registry)[n=t])!==null&&o!==void 0?o:r[n]=new qae}constructor(){Vi(this,"registry",{})}}),Vi(this,"pointers",new class{new(t,r,n){let o=r!=="touch"||!Object.values(this.registry).some(i=>i.pointerType==="touch"&&!i.isCancelled);return o||Object.values(this.registry).forEach(i=>{i.pointerType===r&&!i.isCancelled&&(i.isMultitouch=!0)}),this.registry[t]=new Yae({pointerId:this.nextId++,pointerType:r,isPrimary:o},n),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){Vi(this,"registry",{}),Vi(this,"nextId",1)}}),this.system=e,this.buttons=new iM,this.mouse=new Kae,this.pointers.new("mouse","mouse",this.buttons)}};function uP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var uM=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){uP(this,"keyboard",new Mae(this)),uP(this,"pointer",new Xae(this))}};async function Jae(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function Qae(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function Zae(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function ele(e){return this.pointer({target:e})}async function tle(e){return ic(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function rle({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var tx=function(e){return e["{"]="}",e["["]="]",e}(tx||{});function cM(e,t){let r=0,n=e[r]in tx?e[r]:"";r+=n.length;let o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:o,...o===""?nle(e,r,t):ole(e,r,o,t)}}function nle(e,t,r){let n=e[t];return dM(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function ole(e,t,r,n){var o,i;let a=e[t]==="/"?"/":"";t+=a.length;let s=r==="{"&&e[t]==="\\";t+=Number(s);let c=s?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];dM(c,e,t,n),t+=c.length;var d;let f=(d=(i=e.slice(t).match(/^>\d+/))===null||i===void 0?void 0:i[0])!==null&&d!==void 0?d:"";t+=f.length;let p=e[t]==="/"||!f&&e[t]===">"?e[t]:"";t+=p.length;let h=tx[r],g=e[t]===h?h:"";if(!g)throw new Error(fM([!f&&"repeat modifier",!p&&"release modifier",`"${h}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=g.length,{consumedLength:t,descriptor:c,releasePrevious:!!a,repeat:f?Math.max(Number(f.substr(1)),1):1,releaseSelf:ile(p,f)}}function dM(e,t,r,n){if(!e)throw new Error(fM("key descriptor",t[r],t,n))}function ile(e,t){if(e)return e==="/";if(t)return!1}function fM(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
for more information about how userEvent parses your input.`}function ale(e,t){let r=[];do{let{type:o,descriptor:i,consumedLength:a,releasePrevious:s,releaseSelf:c=!0,repeat:d}=cM(t,"keyboard");var n;let f=(n=e.find(p=>{if(o==="["){var h;return((h=p.code)===null||h===void 0?void 0:h.toLowerCase())===i.toLowerCase()}else if(o==="{"){var g;return((g=p.key)===null||g===void 0?void 0:g.toLowerCase())===i.toLowerCase()}return p.key===i}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:i};r.push({keyDef:f,releasePrevious:s,releaseSelf:c,repeat:d}),t=t.slice(a)}while(t);return r}async function lle(e){let t=ale(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Ns(this.config),await sle(this,t[r])}async function sle(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){let{system:i}=e;if(i.keyboard.isKeyPressed(t)&&await i.keyboard.keyup(e,t),!r){for(let a=1;a<=o;a++)await i.keyboard.keydown(e,t),a<o&&await Ns(e.config);n&&await i.keyboard.keyup(e,t)}}async function ule(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function pM(e){let t=Do(e)?{"text/plain":cle(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=XS(jn(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function cle(e){let t=Hc(e);return Mo(e).substring(t.startOffset,t.endOffset)}async function dle(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=pM(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await F4(e,n),n}async function fle(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=pM(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await F4(r.ownerDocument,n),n}async function ple(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;let i=(o=typeof e=="string"?hle(t,e):e)!==null&&o!==void 0?o:await Die(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:i})}function hle(e,t){let r=XS(jn(e));return r.setData("text",t),r}function cP(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:i,releaseSelf:a=!0}=cM(t,"pointer"),s=e.find(c=>c.name===n);s&&r.push({keyDef:s,releasePrevious:i,releaseSelf:a}),t=t.slice(o)}while(t);return r}async function mle(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...cP(t,n)):"keys"in n?r.push(...cP(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Ns(this.config),await gle(this,r[n]);this.system.pointer.resetClickCount()}async function gle(e,t){var r,n;let o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",i=e.system.pointer.getPreviousPosition(o);var a,s,c,d;let f={target:(a=t.target)!==null&&a!==void 0?a:yle(e,i),coords:(s=t.coords)!==null&&s!==void 0?s:i==null?void 0:i.coords,caret:{node:(c=t.node)!==null&&c!==void 0?c:dP(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(d=t.offset)!==null&&d!==void 0?d:dP(t)||i==null||(n=i.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(oc(e,dn.Trigger),await e.system.pointer.release(e,t.keyDef,f)),t.releasePrevious||(oc(e,dn.Trigger),await e.system.pointer.press(e,t.keyDef,f),t.releaseSelf&&(oc(e,dn.Trigger),await e.system.pointer.release(e,t.keyDef,f)))):(oc(e,dn.Trigger),await e.system.pointer.move(e,o,f))}function dP(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function yle(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function ble(e){if(!Ps(e)||fi(e))throw new Error("clear()` is only supported on editable elements.");if(da(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(Q4(e),!pae(e))throw new Error("The element content to be cleared could not be selected.");Is(this,e,"","deleteContentBackward")}async function vle(e,t){return hM.call(this,!0,e,t)}async function Ele(e,t){return hM.call(this,!1,e,t)}async function hM(e,t,r){if(!e&&!t.multiple)throw Ye().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),i=n.map(s=>{if(typeof s!="string"&&o.includes(s))return s;{let c=o.find(d=>d.value===s||d.innerHTML===s);if(c)return c;throw Ye().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!fi(s));if(fi(t)||!i.length)return;let a=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(ze(t,"select"))if(t.multiple)for(let s of i){let c=this.config.pointerEventsCheck===0?!0:uh(this,s);c&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),da(t),c&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),a(s),c&&this.dispatchUIEvent(s,"click"),await Ns(this.config)}else if(i.length===1){let s=this.config.pointerEventsCheck===0?!0:uh(this,t);s?await this.click(t):da(t),a(i[0]),s&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await Ns(this.config)}else throw Ye().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let s of i)await this.click(s),await this.unhover(s);else throw Ye().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function wle(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:i}={}){e.disabled||(r||await this.click(e),o!==void 0&&nc(e,o,i??o),await this.keyboard(t),n||await ule(this))}var fP=Symbol("files and value properties are mocked");function p0(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function Sle(e,t){var r;(r=e[fP])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function a(){p0(e,"type",n),p0(e,"value",o),p0(e,"files",i)}e[fP]={restore:a},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")a();else{var c;o==null||(c=o.set)===null||c===void 0||c.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(a(),e.type=s)}}})}async function xle(e,t){let r=ze(e,"label")?e.control:e;if(!r||!ze(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r==null?void 0:r.tagName} element does not accept file uploads`);if(fi(e))return;let n=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||Cle(i,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var i;n.length===((i=r.files)===null||i===void 0?void 0:i.length)&&n.every((a,s)=>{var c;return a===((c=r.files)===null||c===void 0?void 0:c.item(s))})||(Sle(r,YS(jn(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}function Gf(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function Cle(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return Gf(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?Gf(e.name).endsWith(n):r.includes(n)?Gf(e.type).startsWith(n.replace("*","")):Gf(e.type)===n)}var pP={click:Jae,dblClick:Qae,tripleClick:Zae,hover:ele,unhover:tle,tab:rle,keyboard:lle,copy:dle,cut:fle,paste:ple,pointer:mle,clear:ble,deselectOptions:Ele,selectOptions:vle,type:wle,upload:xle};function Tle(e){return Ye().asyncWrapper(e)}var mM={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:Lae,pointerMap:Bae,pointerEventsCheck:Rp.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},_le={...mM,writeToClipboard:!0};function gM(e={},t=_le,r){let n=$le(e,r,t);return{...t,...e,document:n}}function Rle(e={}){let t=gM(e);oM(t.document),nM(jn(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return Iie(n),rx(t).api}function Ir({keyboardState:e,pointerState:t,...r}={},n){let o=gM(r,mM,n);oM(o.document),nM(jn(o.document).HTMLElement);var i;let a=(i=t??e)!==null&&i!==void 0?i:new uM;return{api:rx(o,a).api,system:a}}function Ale(e){return rx({...this.config,...e},this.system).api}function Ple(e,t){function r(...n){return oc(e,dn.Call),Tle(()=>t.apply(e,n).then(async o=>(await Ns(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function rx(e,t=new uM){let r={};return Object.assign(r,{config:e,dispatchEvent:rM.bind(r),dispatchUIEvent:Rae.bind(r),system:t,levelRefs:{},...pP}),{instance:r,api:{...Object.fromEntries(Object.entries(pP).map(([n,o])=>[n,Ple(r,o)])),setup:Ale.bind(r)}}}function $le(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&Iae(t))!==null&&o!==void 0?o:r.document}var yM={};Wt(yM,{clear:()=>Ole,click:()=>Ile,copy:()=>Nle,cut:()=>kle,dblClick:()=>Dle,deselectOptions:()=>Mle,hover:()=>Lle,keyboard:()=>Ble,paste:()=>jle,pointer:()=>Fle,selectOptions:()=>qle,tab:()=>Vle,tripleClick:()=>Hle,type:()=>Ule,unhover:()=>zle,upload:()=>Kle});function Ole(e){return Ir().api.clear(e)}function Ile(e,t={}){return Ir(t,e).api.click(e)}function Nle(e={}){return Ir(e).api.copy()}function kle(e={}){return Ir(e).api.cut()}function Dle(e,t={}){return Ir(t).api.dblClick(e)}function Mle(e,t,r={}){return Ir(r).api.deselectOptions(e,t)}function Lle(e,t={}){return Ir(t).api.hover(e)}async function Ble(e,t={}){let{api:r,system:n}=Ir(t);return r.keyboard(e).then(()=>n)}async function Fle(e,t={}){let{api:r,system:n}=Ir(t);return r.pointer(e).then(()=>n)}function jle(e,t){return Ir(t).api.paste(e)}function qle(e,t,r={}){return Ir(r).api.selectOptions(e,t)}function Hle(e,t={}){return Ir(t).api.tripleClick(e)}function Ule(e,t,r={}){return Ir(r,e).api.type(e,t,r)}function zle(e,t={}){let{api:r,system:n}=Ir(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function Kle(e,t,r={}){return Ir(r).api.upload(e,t)}function Vle(e={}){return Ir().api.tab(e)}var Wle={...yM,setup:Rle},uE=nm({...uD},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});uE.screen=new Proxy(uE.screen,{get(e,t,r){var n,o;return typeof window<"u"&&((o=(n=globalThis.location)==null?void 0:n.href)!=null&&o.includes("viewMode=docs"))&&gr.warn(Fr`
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
`),Reflect.get(e,t,r)}});var{buildQueries:bEe,configure:vEe,createEvent:EEe,fireEvent:wEe,findAllByAltText:SEe,findAllByDisplayValue:xEe,findAllByLabelText:CEe,findAllByPlaceholderText:TEe,findAllByRole:_Ee,findAllByTestId:REe,findAllByText:AEe,findAllByTitle:PEe,findByAltText:$Ee,findByDisplayValue:OEe,findByLabelText:IEe,findByPlaceholderText:NEe,findByRole:kEe,findByTestId:DEe,findByText:MEe,findByTitle:LEe,getAllByAltText:BEe,getAllByDisplayValue:FEe,getAllByLabelText:jEe,getAllByPlaceholderText:qEe,getAllByRole:HEe,getAllByTestId:UEe,getAllByText:zEe,getAllByTitle:KEe,getByAltText:VEe,getByDisplayValue:WEe,getByLabelText:GEe,getByPlaceholderText:YEe,getByRole:XEe,getByTestId:JEe,getByText:QEe,getByTitle:ZEe,getConfig:ewe,getDefaultNormalizer:twe,getElementError:rwe,getNodeText:nwe,getQueriesForElement:owe,getRoles:iwe,getSuggestedQuery:awe,isInaccessible:lwe,logDOM:swe,logRoles:uwe,prettyDOM:cwe,queries:dwe,queryAllByAltText:fwe,queryAllByAttribute:pwe,queryAllByDisplayValue:hwe,queryAllByLabelText:mwe,queryAllByPlaceholderText:gwe,queryAllByRole:ywe,queryAllByTestId:bwe,queryAllByText:vwe,queryAllByTitle:Ewe,queryByAltText:wwe,queryByAttribute:Swe,queryByDisplayValue:xwe,queryByLabelText:Cwe,queryByPlaceholderText:Twe,queryByRole:_we,queryByTestId:Rwe,queryByText:Awe,queryByTitle:Pwe,queryHelpers:$we,screen:Owe,waitFor:Iwe,waitForElementToBeRemoved:Nwe,within:kwe,prettyFormat:Dwe}=uE,{userEvent:Mwe}=nm({userEvent:Wle},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:Lwe}=nm({expect:sD},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===G){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},mutate:!0,intercept:e=>e!=="expect"}),Gle=ne({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return function a(s,c,d){var f,p,h,g=t.call(s),y=t.call(c);if(s===c)return!0;if(s==null||c==null)return!1;if(d.indexOf(s)>-1&&d.indexOf(c)>-1)return!0;if(d.push(s,c),g!=y||(f=n(s),p=n(c),f.length!=p.length||f.some(function(E){return!a(s[E],c[E],d)})))return!1;switch(g.slice(8,-1)){case"Symbol":return s.valueOf()==c.valueOf();case"Date":case"Number":return+s==+c||+s!=+s&&+c!=+c;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+c;case"Set":case"Map":f=s.entries(),p=c.entries();do if(!a((h=f.next()).value,p.next().value,d))return!1;while(!h.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),c=new Uint8Array(c);case"DataView":s=new Uint8Array(s.buffer),c=new Uint8Array(c.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=c.length)return!1;for(h=0;h<s.length;h++)if((h in s||h in c)&&(h in s!=h in c||!a(s[h],c[h],d)))return!1;return!0;case"Object":return a(r(s),r(c),d);default:return!1}}(o,i,[])}}()}});it(Gle(),1);var Yle={};Wt(Yle,{argsEnhancers:()=>Qle});var bM=(e,t)=>typeof t[e]>"u"&&!(e in t),Xle=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([a])=>!!i.test(a)).reduce((a,[s,c])=>(bM(s,t)&&(a[s]=Dw(s,{implicit:!0,id:n})),a),{})},Jle=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,a])=>(bM(i,t)&&(o[i]=Dw(typeof a.action=="string"?a.action:i)),o),{})},Qle=[Jle,Xle],Zle={};Wt(Zle,{loaders:()=>tse});var hP=!1,ese=e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||hP||(Ene((n,o)=>{let i=n.getMockName();i!=="spy"&&i!=="vi.fn()"&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(a=>i.startsWith(a)))&&Dw(i)(o)}),hP=!0)},tse=[ese],{document:eo}=globalThis,rse=()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},mP=e=>{(Array.isArray(e)?e:[e]).forEach(nse)},nse=e=>{if(!eo)return;let t=eo.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},ose=(e,t)=>{if(!eo)return;let r=eo.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=eo.createElement("style");n.setAttribute("id",e),n.innerHTML=t,eo.head.appendChild(n)}},ise=(e,t,r)=>{var o;if(!eo)return;let n=eo.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let i=eo.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,s=eo.getElementById(a);s?(o=s.parentElement)==null||o.insertBefore(i,s):eo.head.appendChild(i)}},ase={cellSize:100,cellAmount:10,opacity:.8},gP="addon-backgrounds",yP="addon-backgrounds-grid",lse=rse()?"":"transition: background-color 0.3s;",sse=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=QW,disable:s,grid:c=ase}=n[rR]||{},d=r[rR]||{},f=typeof d=="string"?d:d==null?void 0:d.value,p=f?a[f]:void 0,h=typeof p=="string"?p:(p==null?void 0:p.value)||"transparent",g=typeof d=="string"?!1:d.grid||!1,y=!!p&&!s,E=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",w=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",S=o==="docs"?20:b?16:0,{cellAmount:R,cellSize:O,opacity:D,offsetX:T=S,offsetY:P=S}=c,_=o==="docs"?`${gP}-docs-${i}`:`${gP}-color`,N=o==="docs"?i:null;Pc(()=>{let L=`
${E} {
background: ${h} !important;
${lse}
}`;if(!y){mP(_);return}ise(_,L,N)},[E,_,N,y,h]);let V=o==="docs"?`${yP}-docs-${i}`:`${yP}`;return Pc(()=>{if(!g){mP(V);return}let L=[`${O*R}px ${O*R}px`,`${O*R}px ${O*R}px`,`${O}px ${O}px`,`${O}px ${O}px`].join(", "),K=`
${w} {
background-size: ${L} !important;
background-position: ${T}px ${P}px, ${T}px ${P}px, ${T}px ${P}px, ${T}px ${P}px !important;
background-blend-mode: difference !important;
background-image: linear-gradient(rgba(130, 130, 130, ${D}) 1px, transparent 1px),
linear-gradient(90deg, rgba(130, 130, 130, ${D}) 1px, transparent 1px),
linear-gradient(rgba(130, 130, 130, ${D/2}) 1px, transparent 1px),
linear-gradient(90deg, rgba(130, 130, 130, ${D/2}) 1px, transparent 1px) !important;
}
`;ose(V,K)},[R,O,w,V,g,T,P,D]),e()},wI;(wI=globalThis.FEATURES)!=null&&wI.backgrounds;var{step:Bwe}=nm({step:async(e,t,r)=>t(r)},{intercept:!0}),bP={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},use="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Xt=(e,t={},r)=>{let n=use.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r==null||r.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},Yf=e=>bP[e]&&Xt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},bP[e].map(t=>Xt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),cse=e=>{if("elements"in e){let{elements:n,color:o,style:i}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${i} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},dse=e=>e instanceof Function,Gu=new Map,qa=new Map,Xf=new Map,ei=e=>{let t=Symbol();return qa.set(t,[]),Gu.set(t,e),{get:()=>Gu.get(t),set:r=>{var i;let n=Gu.get(t),o=dse(r)?r(n):r;o!==n&&(Gu.set(t,o),(i=qa.get(t))==null||i.forEach(a=>{var s;(s=Xf.get(a))==null||s(),Xf.set(a,a(o))}))},subscribe:r=>{var n;return(n=qa.get(t))==null||n.push(r),()=>{let o=qa.get(t);o&&qa.set(t,o.filter(i=>i!==r))}},teardown:()=>{var r;(r=qa.get(t))==null||r.forEach(n=>{var o;(o=Xf.get(n))==null||o(),Xf.delete(n)}),qa.delete(t),Gu.delete(t)}}},vP=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...(t==null?void 0:t.querySelectorAll(i))||[]];for(let s of a){let c=r.get(s);(!c||c.priority<=o)&&r.set(s,{...n,priority:o,selectors:Array.from(new Set(((c==null?void 0:c.selectors)||[]).concat(i)))})}}}return r},fse=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:s,left:c,width:d,height:f}=t.getBoundingClientRect(),{position:p}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a,top:p==="fixed"?s:s+window.scrollY,left:p==="fixed"?c:c+window.scrollX,width:d,height:f}}).sort((t,r)=>r.width*r.height-t.width*t.height),EP=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return(r==null?void 0:r.top)&&(r==null?void 0:r.left)&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},wP=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a<Ji&&(o=o-Math.round((Ji-a)/2),a=Ji),i<Ji&&(n=n-Math.round((Ji-i)/2),i=Ji),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:s,y:c}=r;return s>=n&&s<=n+i&&c>=o&&c<=o+a},pse=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:s=!1}=r,{scrollX:c,scrollY:d,innerHeight:f,innerWidth:p}=window,h=Math.min(e.style.position==="fixed"?o-d:o,f-e.clientHeight-i-a+d),g=s?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-c,p-g-i),g+i):Math.max(Math.min(n,p-g-i+c),g+i+c);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...h!==o&&{top:`${h}px`}})},SP=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},hse=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},mse=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),xt="storybook-highlights-menu",xP="storybook-highlights-root",gse="storybook-root",yse=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=ei([]),n=ei(new Map),o=ei([]),i=ei(),a=ei(),s=ei([]),c=ei([]),d=ei(),f=ei(),p=t.getElementById(xP);r.subscribe(()=>{p||(p=Xt("div",{id:xP}),t.body.appendChild(p))}),r.subscribe(P=>{let _=t.getElementById(gse);if(!_)return;n.set(vP(P));let N=new MutationObserver(()=>n.set(vP(P)));return N.observe(_,{subtree:!0,childList:!0}),()=>{N.disconnect()}}),n.subscribe(P=>{let _=()=>requestAnimationFrame(()=>o.set(fse(P))),N=new ResizeObserver(_);N.observe(t.body),Array.from(P.keys()).forEach(L=>N.observe(L));let V=Array.from(t.body.querySelectorAll("*")).filter(L=>{let{overflow:K,overflowX:Y,overflowY:$}=window.getComputedStyle(L);return["auto","scroll"].some(M=>[K,Y,$].includes(M))});return V.forEach(L=>L.addEventListener("scroll",_)),()=>{N.disconnect(),V.forEach(L=>L.removeEventListener("scroll",_))}}),n.subscribe(P=>{let _=Array.from(P.keys()).filter(({style:V})=>V.position==="sticky"),N=()=>requestAnimationFrame(()=>{o.set(V=>V.map(L=>{if(_.includes(L.element)){let{top:K,left:Y}=L.element.getBoundingClientRect();return{...L,top:K+window.scrollY,left:Y+window.scrollX}}return L}))});return t.addEventListener("scroll",N),()=>t.removeEventListener("scroll",N)}),n.subscribe(P=>{s.set(_=>_.filter(({element:N})=>P.has(N)))}),s.subscribe(P=>{P.length?(f.set(_=>P.some(N=>N.element===(_==null?void 0:_.element))?_:void 0),d.set(_=>P.some(N=>N.element===(_==null?void 0:_.element))?_:void 0)):(f.set(void 0),d.set(void 0),i.set(void 0))});let h=new Map(new Map);r.subscribe(P=>{P.forEach(({keyframes:_})=>{if(_){let N=h.get(_);N||(N=t.createElement("style"),N.setAttribute("data-highlight","keyframes"),h.set(_,N),t.head.appendChild(N)),N.innerHTML=_}}),h.forEach((_,N)=>{P.some(V=>V.keyframes===N)||(_.remove(),h.delete(N))})});let g=new Map(new Map);o.subscribe(P=>{P.forEach(_=>{let N=g.get(_.element);if(p&&!N){let V={popover:"manual","data-highlight-dimensions":`w${_.width.toFixed(0)}h${_.height.toFixed(0)}`,"data-highlight-coordinates":`x${_.left.toFixed(0)}y${_.top.toFixed(0)}`};N=p.appendChild(Xt("div",V,[Xt("div")])),g.set(_.element,N)}}),g.forEach((_,N)=>{P.some(({element:V})=>V===N)||(_.remove(),g.delete(N))})}),o.subscribe(P=>{let _=P.filter(V=>V.menu);if(!_.length)return;let N=V=>{requestAnimationFrame(()=>{let L=t.getElementById(xt),K={x:V.pageX,y:V.pageY};if(L&&!EP(L,K)){let Y=_.filter($=>{let M=g.get($.element);return wP($,M,K)});i.set(Y.length?K:void 0),s.set(Y)}})};return t.addEventListener("click",N),()=>t.removeEventListener("click",N)});let y=()=>{let P=t.getElementById(xt),_=a.get();!_||P&&EP(P,_)||c.set(N=>{let V=o.get().filter($=>{let M=g.get($.element);return wP($,M,_)}),L=N.filter($=>V.includes($)),K=V.filter($=>!N.includes($)),Y=N.length-L.length;return K.length||Y?[...L,...K]:N})};a.subscribe(y),o.subscribe(y);let E=()=>{let P=f.get(),_=P?[P]:s.get(),N=_.length===1?_[0]:d.get(),V=i.get()!==void 0;o.get().forEach(L=>{var Y;let K=g.get(L.element);if(K){let $=N===L,M=V?N?$:_.includes(L):(Y=c.get())==null?void 0:Y.includes(L);Object.assign(K.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...L.styles,...M?L.hoverStyles:{},...$?L.focusStyles:{},position:getComputedStyle(L.element).position==="fixed"?"fixed":"absolute",zIndex:iR-10,top:`${L.top}px`,left:`${L.left}px`,width:`${L.width}px`,height:`${L.height}px`,margin:0,padding:0,cursor:L.menu&&M?"pointer":"default",pointerEvents:L.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(K.children[0].style,{width:"100%",height:"100%",minHeight:`${Ji}px`,minWidth:`${Ji}px`,boxSizing:"content-box",padding:K.style.outlineWidth||"0px"}),SP(K)}})};o.subscribe(E),s.subscribe(E),c.subscribe(E),d.subscribe(E),f.subscribe(E);let w=()=>{var L;if(!p)return;let P=t.getElementById(xt);if(P)P.innerHTML="";else{let K={id:xt,popover:"manual"};P=p.appendChild(Xt("div",K)),p.appendChild(Xt("style",{},[`
#${xt} {
position: absolute;
z-index: ${iR};
width: 300px;
padding: 0px;
margin: 15px 0 0 0;
transform: translateX(-50%);
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
background: white;
border: none;
border-radius: 6px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
color: #2E3438;
}
#${xt} ul {
list-style: none;
margin: 0;
padding: 0;
}
#${xt} > ul {
max-height: 300px;
overflow-y: auto;
padding: 4px 0;
}
#${xt} li {
padding: 0 4px;
margin: 0;
}
#${xt} li > :not(ul) {
display: flex;
padding: 8px;
margin: 0;
align-items: center;
gap: 8px;
border-radius: 4px;
}
#${xt} button {
width: 100%;
border: 0;
background: transparent;
color: inherit;
text-align: left;
font-family: inherit;
font-size: inherit;
}
#${xt} button:focus-visible {
outline-color: #029CFD;
}
#${xt} button:hover {
background: rgba(2, 156, 253, 0.07);
color: #029CFD;
cursor: pointer;
}
#${xt} li code {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 16px;
font-size: 11px;
}
#${xt} li svg {
flex-shrink: 0;
margin: 1px;
color: #73828C;
}
#${xt} li > button:hover svg, #${xt} li > button:focus-visible svg {
color: #029CFD;
}
#${xt} .element-list li svg {
display: none;
}
#${xt} li.selectable svg, #${xt} li.selected svg {
display: block;
}
#${xt} .menu-list {
border-top: 1px solid rgba(38, 85, 115, 0.15);
}
#${xt} .menu-list > li:not(:last-child) {
padding-bottom: 4px;
margin-bottom: 4px;
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
}
#${xt} .menu-items, #${xt} .menu-items li {
padding: 0;
}
#${xt} .menu-item {
display: flex;
}
#${xt} .menu-item-content {
display: flex;
flex-direction: column;
flex-grow: 1;
}
`]))}let _=f.get(),N=_?[_]:s.get();if(N.length&&(P.style.position=getComputedStyle(N[0].element).position==="fixed"?"fixed":"absolute",P.appendChild(Xt("ul",{class:"element-list"},N.map(K=>{var I;let Y=N.length>1&&!!((I=K.menu)!=null&&I.some(B=>B.some(k=>!k.selectors||k.selectors.some(z=>K.selectors.includes(z))))),$=Y?{class:"selectable",onClick:()=>f.set(K),onMouseEnter:()=>d.set(K),onMouseLeave:()=>d.set(void 0)}:_?{class:"selected",onClick:()=>f.set(void 0)}:{},M=Y||_;return Xt("li",$,[Xt(M?"button":"div",M?{type:"button"}:{},[_?Yf("chevronLeft"):null,Xt("code",{},[K.element.outerHTML]),Y?Yf("chevronRight"):null])])})))),f.get()||s.get().length===1){let K=f.get()||s.get()[0],Y=(L=K.menu)==null?void 0:L.filter($=>$.some(M=>!M.selectors||M.selectors.some(I=>K.selectors.includes(I))));Y!=null&&Y.length&&P.appendChild(Xt("ul",{class:"menu-list"},Y.map($=>Xt("li",{},[Xt("ul",{class:"menu-items"},$.map(({id:M,title:I,description:B,iconLeft:k,iconRight:z,clickEvent:F})=>{let q=F&&(()=>e.emit(F,M,mse(K)));return Xt("li",{},[Xt(q?"button":"div",q?{class:"menu-item",type:"button",onClick:q}:{class:"menu-item"},[k?Yf(k):null,Xt("div",{class:"menu-item-content"},[Xt(B?"strong":"span",{},[I]),B&&Xt("span",{},[B])]),z?Yf(z):null])])}))]))))}let V=i.get();V?(Object.assign(P.style,{display:"block",left:`${P.style.position==="fixed"?V.x-window.scrollX:V.x}px`,top:`${P.style.position==="fixed"?V.y-window.scrollY:V.y}px`}),SP(P),requestAnimationFrame(()=>pse(P,V,{topOffset:15,centered:!0}))):(hse(P),Object.assign(P.style,{display:"none"}))};s.subscribe(w),f.subscribe(w);let b=P=>{let _=cse(P);r.set(N=>{var L;let V=_.id?N.filter(K=>K.id!==_.id):N;return(L=_.selectors)!=null&&L.length?[...V,_]:V})},S=P=>{P&&r.set(_=>_.filter(N=>N.id!==P))},R=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),s.set([]),c.set([]),d.set(void 0),f.set(void 0)},O,D=(P,_)=>{let N="scrollIntoView-highlight";clearTimeout(O),S(N);let V=t.querySelector(P);if(!V){console.warn(`Cannot scroll into view: ${P} not found`);return}V.scrollIntoView({behavior:"smooth",block:"center",..._});let L=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(K=>[...K,{id:N,priority:1e3,selectors:[P],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${L} 3s linear forwards`},keyframes:`@keyframes ${L} {
0% { outline: 2px solid #1EA7FD; }
20% { outline: 2px solid #1EA7FD00; }
40% { outline: 2px solid #1EA7FD; }
60% { outline: 2px solid #1EA7FD00; }
80% { outline: 2px solid #1EA7FD; }
100% { outline: 2px solid #1EA7FD00; }
}`}]),O=setTimeout(()=>S(N),3500)},T=P=>{requestAnimationFrame(()=>a.set({x:P.pageX,y:P.pageY}))};t.body.addEventListener("mousemove",T),e.on(pG,b),e.on(hG,S),e.on(mG,R),e.on(gG,D),e.on(m5,({newPhase:P})=>{P==="loading"&&R()})},SI;(SI=globalThis==null?void 0:globalThis.FEATURES)!=null&&SI.highlight&&(tc!=null&&tc.ready)&&tc.ready().then(yse);function vM(){let e=Re.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function bse(){let e=Re.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");y1(t!=null);let{width:r,height:n}=vM();return cE(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",Re.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function cE(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=Re.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var Jt={};function vse(){Jt.canvas||(Jt=bse())}function EM(){Jt.context&&Jt.context.clearRect(0,0,Jt.width??0,Jt.height??0)}function Ese(e){EM(),e(Jt.context)}function wse(){y1(Jt.canvas),y1(Jt.context),cE(Jt.canvas,Jt.context,{width:0,height:0});let{width:e,height:t}=vM();cE(Jt.canvas,Jt.context,{width:e,height:t}),Jt.width=e,Jt.height=t}function Sse(){var e;Jt.canvas&&(EM(),(e=Jt.canvas.parentNode)==null||e.removeChild(Jt.canvas),Jt={})}var Ql={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},si=6;function CP(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}function xse(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let s=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom,d=a+r.left+t.left,f=i+r.top+t.top;return e==="top"?d+=s/2:e==="right"?(d+=s,f+=c/2):e==="bottom"?(d+=s/2,f+=c):e==="left"?f+=c/2:e==="center"&&(d+=s/2,f+=c/2),{x:d,y:f}}function Cse(e,t,{margin:r,border:n,padding:o},i,a){let s=h=>0,c=0,d=0,f=a?1:.5,p=a?i*2:0;return e==="padding"?s=h=>o[h]*f+p:e==="border"?s=h=>o[h]+n[h]*f+p:e==="margin"&&(s=h=>o[h]+n[h]+r[h]*f+p),t==="top"?d=-s("top"):t==="right"?c=s("right"):t==="bottom"?d=s("bottom"):t==="left"&&(c=-s("left")),{offsetX:c,offsetY:d}}function Tse(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function _se(e,t,r){return e==="top"?t.y=r.y-r.h-si:e==="right"?t.x=r.x+r.w/2+si+t.w/2:e==="bottom"?t.y=r.y+r.h+si:e==="left"&&(t.x=r.x-r.w/2-si-t.w/2),{x:t.x,y:t.y}}function wM(e,t,{x:r,y:n,w:o,h:i},a){return CP(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Ql[t]}dd`,e.fill(),e.strokeStyle=Ql[t],e.stroke(),e.fillStyle=Ql.text,e.fillText(a,r,n),CP(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Ql[t]}dd`,e.fill(),e.strokeStyle=Ql[t],e.stroke(),e.fillStyle=Ql.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:i}}function SM(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+si*2,i=n+si*2;return{w:o,h:i}}function Rse(e,t,{type:r,position:n="center",text:o},i,a=!1){let{x:s,y:c}=xse(n,t),{offsetX:d,offsetY:f}=Cse(r,n,t,si+1,a);s+=d,c+=f;let{w:p,h}=SM(e,o);if(i&&Tse({x:s,y:c,w:p,h},i)){let g=_se(n,{x:s,y:c,w:p},i);s=g.x,c=g.y}return wM(e,r,{x:s,y:c,w:p,h},o)}function Ase(e,{w:t,h:r}){let n=t*.5+si,o=r*.5+si;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function Pse(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,a=i[o.x],s=i[o.y],{w:c,h:d}=SM(e,n),{offsetX:f,offsetY:p}=Ase(o,{w:c,h:d});return a+=f,s+=p,wM(e,r,{x:a,y:s,w:c,h:d},n)}function Yu(e,t,r,n){let o=[];r.forEach((i,a)=>{let s=n&&i.position==="center"?Pse(e,t,i):Rse(e,t,i,o[a-1],n);o[a]=s})}function $se(e,t,r,n){let o=r.reduce((i,a)=>{var s;return Object.prototype.hasOwnProperty.call(i,a.position)||(i[a.position]=[]),(s=i[a.position])==null||s.push(a),i},{});o.top&&Yu(e,t,o.top,n),o.right&&Yu(e,t,o.right,n),o.bottom&&Yu(e,t,o.bottom,n),o.left&&Yu(e,t,o.left,n),o.center&&Yu(e,t,o.center,n)}var xm={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},TP=30;function $n(e){return parseInt(e.replace("px",""),10)}function is(e){return Number.isInteger(e)?e:e.toFixed(2)}function nx(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function Ose(e){let t={top:Re.window.scrollY,bottom:Re.window.scrollY+Re.window.innerHeight,left:Re.window.scrollX,right:Re.window.scrollX+Re.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function Ise(e){let t=Re.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:s}=e.getBoundingClientRect(),{marginTop:c,marginBottom:d,marginLeft:f,marginRight:p,paddingTop:h,paddingBottom:g,paddingLeft:y,paddingRight:E,borderBottomWidth:w,borderTopWidth:b,borderLeftWidth:S,borderRightWidth:R}=t;r=r+Re.window.scrollY,n=n+Re.window.scrollX,i=i+Re.window.scrollY,o=o+Re.window.scrollX;let O={top:$n(c),bottom:$n(d),left:$n(f),right:$n(p)},D={top:$n(h),bottom:$n(g),left:$n(y),right:$n(E)},T={top:$n(b),bottom:$n(w),left:$n(S),right:$n(R)},P={top:r-O.top,bottom:i+O.bottom,left:n-O.left,right:o+O.right};return{margin:O,padding:D,border:T,top:r,left:n,bottom:i,right:o,width:a,height:s,extremities:P,floatingAlignment:Ose(P)}}function Nse(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:s}){let c=n+t.bottom+t.top;e.fillStyle=xm.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(s,o-t.top,t.right,c),e.fillRect(i,a,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,c);let d=[{type:"margin",text:is(t.top),position:"top"},{type:"margin",text:is(t.right),position:"right"},{type:"margin",text:is(t.bottom),position:"bottom"},{type:"margin",text:is(t.left),position:"left"}];return nx(d)}function kse(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:s,right:c}){let d=n-r.left-r.right,f=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=xm.padding,e.fillRect(a+r.left,i+r.top,d,t.top),e.fillRect(c-t.right-r.right,i+t.top+r.top,t.right,f),e.fillRect(a+r.left,s-t.bottom-r.bottom,d,t.bottom),e.fillRect(a+r.left,i+t.top+r.top,t.left,f);let p=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return nx(p)}function Dse(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:s}){let c=n-t.top-t.bottom;e.fillStyle=xm.border,e.fillRect(i,o,r,t.top),e.fillRect(i,a-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,c),e.fillRect(s-t.right,o+t.top,t.right,c);let d=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return nx(d)}function Mse(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let s=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=xm.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,s,c),[{type:"content",position:"center",text:`${is(s)} x ${is(c)}`}]}function Lse(e){return t=>{if(e&&t){let r=Ise(e),n=Nse(t,r),o=kse(t,r),i=Dse(t,r),a=Mse(t,r),s=r.width<=TP*3||r.height<=TP;$se(t,r,[...a,...o,...i,...n],s)}}}function Bse(e){Ese(Lse(e))}var Fse=(e,t)=>{let r=Re.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o};return n(r)||r},_P,Jf={x:0,y:0};function RP(e,t){_P=Fse(e,t),Bse(_P)}var jse=(e,t)=>{let{measureEnabled:r}=t.globals||{};return Pc(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Jf.x=o.clientX,Jf.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Pc(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),RP(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{wse()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),vse(),globalThis.window.addEventListener("resize",o),RP(Jf.x,Jf.y)),()=>{globalThis.window.removeEventListener("resize",o),Sse()}},[r,t.viewMode]),e()},xI;(xI=globalThis.FEATURES)!=null&&xI.measure;var AP=e=>{(Array.isArray(e)?e:[e]).forEach(qse)},qse=e=>{let t=typeof e=="string"?e:e.join(""),r=Re.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},Hse=(e,t)=>{let r=Re.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Re.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Re.document.head.appendChild(n)}};function Use(e){return Fr`
${e} body {
outline: 1px solid #2980b9 !important;
}
${e} article {
outline: 1px solid #3498db !important;
}
${e} nav {
outline: 1px solid #0088c3 !important;
}
${e} aside {
outline: 1px solid #33a0ce !important;
}
${e} section {
outline: 1px solid #66b8da !important;
}
${e} header {
outline: 1px solid #99cfe7 !important;
}
${e} footer {
outline: 1px solid #cce7f3 !important;
}
${e} h1 {
outline: 1px solid #162544 !important;
}
${e} h2 {
outline: 1px solid #314e6e !important;
}
${e} h3 {
outline: 1px solid #3e5e85 !important;
}
${e} h4 {
outline: 1px solid #449baf !important;
}
${e} h5 {
outline: 1px solid #c7d1cb !important;
}
${e} h6 {
outline: 1px solid #4371d0 !important;
}
${e} main {
outline: 1px solid #2f4f90 !important;
}
${e} address {
outline: 1px solid #1a2c51 !important;
}
${e} div {
outline: 1px solid #036cdb !important;
}
${e} p {
outline: 1px solid #ac050b !important;
}
${e} hr {
outline: 1px solid #ff063f !important;
}
${e} pre {
outline: 1px solid #850440 !important;
}
${e} blockquote {
outline: 1px solid #f1b8e7 !important;
}
${e} ol {
outline: 1px solid #ff050c !important;
}
${e} ul {
outline: 1px solid #d90416 !important;
}
${e} li {
outline: 1px solid #d90416 !important;
}
${e} dl {
outline: 1px solid #fd3427 !important;
}
${e} dt {
outline: 1px solid #ff0043 !important;
}
${e} dd {
outline: 1px solid #e80174 !important;
}
${e} figure {
outline: 1px solid #ff00bb !important;
}
${e} figcaption {
outline: 1px solid #bf0032 !important;
}
${e} table {
outline: 1px solid #00cc99 !important;
}
${e} caption {
outline: 1px solid #37ffc4 !important;
}
${e} thead {
outline: 1px solid #98daca !important;
}
${e} tbody {
outline: 1px solid #64a7a0 !important;
}
${e} tfoot {
outline: 1px solid #22746b !important;
}
${e} tr {
outline: 1px solid #86c0b2 !important;
}
${e} th {
outline: 1px solid #a1e7d6 !important;
}
${e} td {
outline: 1px solid #3f5a54 !important;
}
${e} col {
outline: 1px solid #6c9a8f !important;
}
${e} colgroup {
outline: 1px solid #6c9a9d !important;
}
${e} button {
outline: 1px solid #da8301 !important;
}
${e} datalist {
outline: 1px solid #c06000 !important;
}
${e} fieldset {
outline: 1px solid #d95100 !important;
}
${e} form {
outline: 1px solid #d23600 !important;
}
${e} input {
outline: 1px solid #fca600 !important;
}
${e} keygen {
outline: 1px solid #b31e00 !important;
}
${e} label {
outline: 1px solid #ee8900 !important;
}
${e} legend {
outline: 1px solid #de6d00 !important;
}
${e} meter {
outline: 1px solid #e8630c !important;
}
${e} optgroup {
outline: 1px solid #b33600 !important;
}
${e} option {
outline: 1px solid #ff8a00 !important;
}
${e} output {
outline: 1px solid #ff9619 !important;
}
${e} progress {
outline: 1px solid #e57c00 !important;
}
${e} select {
outline: 1px solid #e26e0f !important;
}
${e} textarea {
outline: 1px solid #cc5400 !important;
}
${e} details {
outline: 1px solid #33848f !important;
}
${e} summary {
outline: 1px solid #60a1a6 !important;
}
${e} command {
outline: 1px solid #438da1 !important;
}
${e} menu {
outline: 1px solid #449da6 !important;
}
${e} del {
outline: 1px solid #bf0000 !important;
}
${e} ins {
outline: 1px solid #400000 !important;
}
${e} img {
outline: 1px solid #22746b !important;
}
${e} iframe {
outline: 1px solid #64a7a0 !important;
}
${e} embed {
outline: 1px solid #98daca !important;
}
${e} object {
outline: 1px solid #00cc99 !important;
}
${e} param {
outline: 1px solid #37ffc4 !important;
}
${e} video {
outline: 1px solid #6ee866 !important;
}
${e} audio {
outline: 1px solid #027353 !important;
}
${e} source {
outline: 1px solid #012426 !important;
}
${e} canvas {
outline: 1px solid #a2f570 !important;
}
${e} track {
outline: 1px solid #59a600 !important;
}
${e} map {
outline: 1px solid #7be500 !important;
}
${e} area {
outline: 1px solid #305900 !important;
}
${e} a {
outline: 1px solid #ff62ab !important;
}
${e} em {
outline: 1px solid #800b41 !important;
}
${e} strong {
outline: 1px solid #ff1583 !important;
}
${e} i {
outline: 1px solid #803156 !important;
}
${e} b {
outline: 1px solid #cc1169 !important;
}
${e} u {
outline: 1px solid #ff0430 !important;
}
${e} s {
outline: 1px solid #f805e3 !important;
}
${e} small {
outline: 1px solid #d107b2 !important;
}
${e} abbr {
outline: 1px solid #4a0263 !important;
}
${e} q {
outline: 1px solid #240018 !important;
}
${e} cite {
outline: 1px solid #64003c !important;
}
${e} dfn {
outline: 1px solid #b4005a !important;
}
${e} sub {
outline: 1px solid #dba0c8 !important;
}
${e} sup {
outline: 1px solid #cc0256 !important;
}
${e} time {
outline: 1px solid #d6606d !important;
}
${e} code {
outline: 1px solid #e04251 !important;
}
${e} kbd {
outline: 1px solid #5e001f !important;
}
${e} samp {
outline: 1px solid #9c0033 !important;
}
${e} var {
outline: 1px solid #d90047 !important;
}
${e} mark {
outline: 1px solid #ff0053 !important;
}
${e} bdi {
outline: 1px solid #bf3668 !important;
}
${e} bdo {
outline: 1px solid #6f1400 !important;
}
${e} ruby {
outline: 1px solid #ff7b93 !important;
}
${e} rt {
outline: 1px solid #ff2f54 !important;
}
${e} rp {
outline: 1px solid #803e49 !important;
}
${e} span {
outline: 1px solid #cc2643 !important;
}
${e} br {
outline: 1px solid #db687d !important;
}
${e} wbr {
outline: 1px solid #db175b !important;
}`}var zse=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[JW]),o=t.viewMode==="docs",i=cG(()=>Use(o?'[data-story-block="true"]':".sb-show-main"),[t]);return Pc(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?Hse(a,i):AP(a),()=>{AP(a)}},[n,i,t]),e()},CI;(CI=globalThis.FEATURES)!=null&&CI.outline;var ks=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),PP=(e,t)=>{let r=ks(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Qf=(e,t)=>`${PP(e,"kind")}${t?`--${PP(t,"name")}`:""}`,ox=it(pi(),1),xM=it(od(),1),Kse=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,ox.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(Kse)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var Ap=Symbol("Deeply equal"),dE=(e,t)=>{if(typeof e!=typeof t)return t;if(To(e,t))return Ap;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=dE(e[i],o);return a!==Ap&&(n[i]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return No(e)&&No(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=dE(e==null?void 0:e[n],t==null?void 0:t[n]);return o===Ap?r:Object.assign(r,{[n]:o})},{}):t},$P=/^[a-zA-Z0-9 _-]*$/,Vse=/^-?[0-9]+(\.[0-9]+)?$/,CM=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,TM=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,fE=(e="",t)=>e===null||e===""||!$P.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?$P.test(t)||Vse.test(t)||CM.test(t)||TM.test(t):Array.isArray(t)?t.every(r=>fE(e,r)):No(t)?Object.entries(t).every(([r,n])=>fE(r,n)):!1,pE=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?CM.test(e)?`!hex(${e.slice(1)})`:TM.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(pE):No(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:pE(n)}),{}):e,Wse=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},Gse=/%[0-9A-F]{2}/g,OP=(e,t)=>{let r=dE(e,t);if(!r||r===Ap)return"";let n=Object.entries(r).reduce((o,[i,a])=>fE(i,a)?Object.assign(o,{[i]:a}):(gr.warn(Fr`
Omitted potentially unsafe URL args.
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
`),o),{});return(0,xM.stringify)(pE(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(Gse,Wse).split(";").map(o=>o.replace("=",":")).join(";")},Yse=(0,ox.default)(1e3)(e=>e!==void 0?(0,xM.parse)(e):{}),Xse=e=>Yse(e.search?e.search.slice(1):"");(0,ox.default)(1e3)((e,t,r=!0)=>{if(r){if(typeof t!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(t)?{path:e}:null}let n=typeof t=="string"&&e===t,o=e&&t&&e.match(t);return n||o?{path:e}:null});function hE(){return hE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hE.apply(this,arguments)}var IP;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(IP||(IP={}));function Mn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function mE(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function _M(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var NP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(NP||(NP={}));function gE(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Jse(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?_M(e):e;return{pathname:r?r.startsWith("/")?r:Qse(r,t):t,search:Zse(n),hash:eue(o)}}function Qse(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function h0(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function RM(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function AM(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=_M(e):(o=hE({},e),Mn(!o.pathname||!o.pathname.includes("?"),h0("?","pathname","search",o)),Mn(!o.pathname||!o.pathname.includes("#"),h0("#","pathname","hash",o)),Mn(!o.search||!o.search.includes("#"),h0("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let p=t.length-1;if(a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}s=p>=0?t[p]:"/"}let c=Jse(o,s),d=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}var ix=e=>e.join("/").replace(/\/\/+/g,"/"),Zse=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eue=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tue(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var PM=["post","put","patch","delete"];new Set(PM);var rue=["get",...PM];new Set(rue);function yE(){return yE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yE.apply(this,arguments)}var ax=x.createContext(null),$M=x.createContext(null);x.createContext(null);var Sl=x.createContext(null),OM=x.createContext(null),gd=x.createContext({outlet:null,matches:[],isDataRoute:!1}),nue=x.createContext(null);function oue(e,t){let{relative:r}=t===void 0?{}:t;lx()||Mn(!1);let{basename:n,navigator:o}=x.useContext(Sl),{hash:i,pathname:a,search:s}=Cm(e,{relative:r}),c=a;return n!=="/"&&(c=a==="/"?n:ix([n,a])),o.createHref({pathname:c,search:s,hash:i})}function lx(){return x.useContext(OM)!=null}function yd(){return lx()||Mn(!1),x.useContext(OM).location}function IM(e){x.useContext(Sl).static||x.useLayoutEffect(e)}function iue(){let{isDataRoute:e}=x.useContext(gd);return e?pue():aue()}function aue(){lx()||Mn(!1);let e=x.useContext(ax),{basename:t,navigator:r}=x.useContext(Sl),{matches:n}=x.useContext(gd),{pathname:o}=yd(),i=JSON.stringify(RM(n).map(s=>s.pathnameBase)),a=x.useRef(!1);return IM(()=>{a.current=!0}),x.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let d=AM(s,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ix([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,i,o,e])}x.createContext(null);function Cm(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=x.useContext(gd),{pathname:o}=yd(),i=JSON.stringify(RM(n).map(a=>a.pathnameBase));return x.useMemo(()=>AM(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function lue(){let e=fue(),t=tue(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),r?x.createElement("pre",{style:o},r):null,null)}x.createElement(lue,null);var NM=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(NM||{}),zc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(zc||{});function sue(e){let t=x.useContext(ax);return t||Mn(!1),t}function uue(e){let t=x.useContext($M);return t||Mn(!1),t}function cue(e){let t=x.useContext(gd);return t||Mn(!1),t}function sx(e){let t=cue(),r=t.matches[t.matches.length-1];return r.route.id||Mn(!1),r.route.id}function due(){return sx(zc.UseRouteId)}function fue(){var e;let t=x.useContext(nue),r=uue(zc.UseRouteError),n=sx(zc.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function pue(){let{router:e}=sue(NM.UseNavigateStable),t=sx(zc.UseNavigateStable),r=x.useRef(!1);return IM(()=>{r.current=!0}),x.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,yE({fromRouteId:t},o)))},[e,t])}var hue=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(hue||{});new Promise(()=>{});function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hl.apply(this,arguments)}function ux(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Pp="get",m0="application/x-www-form-urlencoded";function Tm(e){return e!=null&&typeof e.tagName=="string"}function mue(e){return Tm(e)&&e.tagName.toLowerCase()==="button"}function gue(e){return Tm(e)&&e.tagName.toLowerCase()==="form"}function yue(e){return Tm(e)&&e.tagName.toLowerCase()==="input"}function bue(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vue(e,t){return e.button===0&&(!t||t==="_self")&&!bue(e)}var Zf=null;function Eue(){if(Zf===null)try{new FormData(document.createElement("form"),0),Zf=!1}catch{Zf=!0}return Zf}var wue=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g0(e){return e!=null&&!wue.has(e)?null:e}function Sue(e,t){let r,n,o,i,a;if(gue(e)){let s=e.getAttribute("action");n=s?gE(s,t):null,r=e.getAttribute("method")||Pp,o=g0(e.getAttribute("enctype"))||m0,i=new FormData(e)}else if(mue(e)||yue(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||s.getAttribute("action");if(n=c?gE(c,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||Pp,o=g0(e.getAttribute("formenctype"))||g0(s.getAttribute("enctype"))||m0,i=new FormData(s,e),!Eue()){let{name:d,type:f,value:p}=e;if(f==="image"){let h=d?d+".":"";i.append(h+"x","0"),i.append(h+"y","0")}else d&&i.append(d,p)}}else{if(Tm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pp,n=null,o=m0,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}var xue=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Cue=["aria-current","caseSensitive","className","end","style","to","children"],Tue=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],_ue=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rue=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Aue=x.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:i,state:a,target:s,to:c,preventScrollReset:d}=e,f=ux(e,xue),{basename:p}=x.useContext(Sl),h,g=!1;if(typeof c=="string"&&Rue.test(c)&&(h=c,_ue))try{let b=new URL(window.location.href),S=c.startsWith("//")?new URL(b.protocol+c):new URL(c),R=gE(S.pathname,p);S.origin===b.origin&&R!=null?c=R+S.search+S.hash:g=!0}catch{}let y=oue(c,{relative:n}),E=Oue(c,{replace:i,state:a,target:s,preventScrollReset:d,relative:n});function w(b){r&&r(b),b.defaultPrevented||E(b)}return x.createElement("a",hl({},f,{href:h||y,onClick:g||o?r:w,ref:t,target:s}))});x.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:a,to:s,children:c}=e,d=ux(e,Cue),f=Cm(s,{relative:d.relative}),p=yd(),h=x.useContext($M),{navigator:g}=x.useContext(Sl),y=g.encodeLocation?g.encodeLocation(f).pathname:f.pathname,E=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(E=E.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase());let b=E===y||!i&&E.startsWith(y)&&E.charAt(y.length)==="/",S=w!=null&&(w===y||!i&&w.startsWith(y)&&w.charAt(y.length)==="/"),R=b?r:void 0,O;typeof o=="function"?O=o({isActive:b,isPending:S}):O=[o,b?"active":null,S?"pending":null].filter(Boolean).join(" ");let D=typeof a=="function"?a({isActive:b,isPending:S}):a;return x.createElement(Aue,hl({},d,{"aria-current":R,className:O,ref:t,style:D,to:s}),typeof c=="function"?c({isActive:b,isPending:S}):c)});x.forwardRef((e,t)=>{let r=Nue();return x.createElement(Pue,hl({},e,{submit:r,ref:t}))});var Pue=x.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:i=Pp,action:a,onSubmit:s,submit:c,relative:d,preventScrollReset:f}=e,p=ux(e,Tue),h=i.toLowerCase()==="get"?"get":"post",g=kue(a,{relative:d});return x.createElement("form",hl({ref:t,method:h,action:g,onSubmit:r?s:y=>{if(s&&s(y),y.defaultPrevented)return;y.preventDefault();let E=y.nativeEvent.submitter,w=(E==null?void 0:E.getAttribute("formmethod"))||i;c(E||y.currentTarget,{method:w,replace:n,state:o,relative:d,preventScrollReset:f})}},p))}),bE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(bE||(bE={}));var kP;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(kP||(kP={}));function $ue(e){let t=x.useContext(ax);return t||Mn(!1),t}function Oue(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=iue(),c=yd(),d=Cm(e,{relative:a});return x.useCallback(f=>{if(vue(f,r)){f.preventDefault();let p=n!==void 0?n:mE(c)===mE(d);s(e,{replace:p,state:o,preventScrollReset:i,relative:a})}},[c,s,d,n,o,r,e,i,a])}function Iue(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function Nue(){let{router:e}=$ue(bE.UseSubmit),{basename:t}=x.useContext(Sl),r=due();return x.useCallback(function(n,o){o===void 0&&(o={}),Iue();let{action:i,method:a,encType:s,formData:c,body:d}=Sue(n,t);e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function kue(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=x.useContext(Sl),o=x.useContext(gd);o||Mn(!1);let[i]=o.matches.slice(-1),a=hl({},Cm(e||".",{relative:r})),s=yd();if(e==null&&(a.search=s.search,i.route.index)){let c=new URLSearchParams(a.search);c.delete("index"),a.search=c.toString()?"?"+c.toString():""}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:ix([n,a.pathname])),mE(a)}var{document:Fwe}=Re,ep={exports:{}},y0,DP;function _m(){if(DP)return y0;DP=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,o=t-6;return y0={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},y0}var b0,MP;function Rm(){if(MP)return b0;MP=1;var e={};return b0=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},b0}var LP;function bd(){return LP||(LP=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=_m(),i=Rm();t=e.exports={};const a=t.re=[],s=t.safeRe=[],c=t.src=[],d=t.safeSrc=[],f=t.t={};let p=0;const h="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",o],[h,n]],y=w=>{for(const[b,S]of g)w=w.split(`${b}*`).join(`${b}{0,${S}}`).split(`${b}+`).join(`${b}{1,${S}}`);return w},E=(w,b,S)=>{const R=y(b),O=p++;i(w,O,b),f[w]=O,c[O]=b,d[O]=R,a[O]=new RegExp(b,S?"g":void 0),s[O]=new RegExp(R,S?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","\\d+"),E("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),E("MAINVERSION",`(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${c[f.NONNUMERICIDENTIFIER]}|${c[f.NUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${c[f.NONNUMERICIDENTIFIER]}|${c[f.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASE",`(?:-(${c[f.PRERELEASEIDENTIFIER]}(?:\\.${c[f.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${c[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[f.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER",`${h}+`),E("BUILD",`(?:\\+(${c[f.BUILDIDENTIFIER]}(?:\\.${c[f.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${c[f.MAINVERSION]}${c[f.PRERELEASE]}?${c[f.BUILD]}?`),E("FULL",`^${c[f.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${c[f.MAINVERSIONLOOSE]}${c[f.PRERELEASELOOSE]}?${c[f.BUILD]}?`),E("LOOSE",`^${c[f.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${c[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${c[f.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:${c[f.PRERELEASE]})?${c[f.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:${c[f.PRERELEASELOOSE]})?${c[f.BUILD]}?)?)?`),E("XRANGE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAINLOOSE]}$`),E("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),E("COERCE",`${c[f.COERCEPLAIN]}(?:$|[^\\d])`),E("COERCEFULL",c[f.COERCEPLAIN]+`(?:${c[f.PRERELEASE]})?(?:${c[f.BUILD]})?(?:$|[^\\d])`),E("COERCERTL",c[f.COERCE],!0),E("COERCERTLFULL",c[f.COERCEFULL],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${c[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",E("TILDE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${c[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",E("CARET",`^${c[f.LONECARET]}${c[f.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${c[f.LONECARET]}${c[f.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${c[f.GTLT]}\\s*(${c[f.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]}|${c[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${c[f.XRANGEPLAIN]})\\s+-\\s+(${c[f.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${c[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[f.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ep,ep.exports)),ep.exports}var v0,BP;function cx(){if(BP)return v0;BP=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return v0=n=>n?typeof n!="object"?e:n:t,v0}var E0,FP;function kM(){if(FP)return E0;FP=1;const e=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:n<o?-1:1;const i=e.test(n),a=e.test(o);return i&&a&&(n=+n,o=+o),n===o?0:i&&!a?-1:a&&!i?1:n<o?-1:1};return E0={compareIdentifiers:t,rcompareIdentifiers:(n,o)=>t(o,n)},E0}var w0,jP;function qr(){if(jP)return w0;jP=1;const e=Rm(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=_m(),{safeRe:n,t:o}=bd(),i=cx(),{compareIdentifiers:a}=kM();class s{constructor(d,f){if(f=i(f),d instanceof s){if(d.loose===!!f.loose&&d.includePrerelease===!!f.includePrerelease)return d;d=d.version}else if(typeof d!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof d}".`);if(d.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",d,f),this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease;const p=d.trim().match(f.loose?n[o.LOOSE]:n[o.FULL]);if(!p)throw new TypeError(`Invalid Version: ${d}`);if(this.raw=d,this.major=+p[1],this.minor=+p[2],this.patch=+p[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");p[4]?this.prerelease=p[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const g=+h;if(g>=0&&g<r)return g}return h}):this.prerelease=[],this.build=p[5]?p[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(d){if(e("SemVer.compare",this.version,this.options,d),!(d instanceof s)){if(typeof d=="string"&&d===this.version)return 0;d=new s(d,this.options)}return d.version===this.version?0:this.compareMain(d)||this.comparePre(d)}compareMain(d){return d instanceof s||(d=new s(d,this.options)),this.major<d.major?-1:this.major>d.major?1:this.minor<d.minor?-1:this.minor>d.minor?1:this.patch<d.patch?-1:this.patch>d.patch?1:0}comparePre(d){if(d instanceof s||(d=new s(d,this.options)),this.prerelease.length&&!d.prerelease.length)return-1;if(!this.prerelease.length&&d.prerelease.length)return 1;if(!this.prerelease.length&&!d.prerelease.length)return 0;let f=0;do{const p=this.prerelease[f],h=d.prerelease[f];if(e("prerelease compare",f,p,h),p===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(p===void 0)return-1;if(p===h)continue;return a(p,h)}while(++f)}compareBuild(d){d instanceof s||(d=new s(d,this.options));let f=0;do{const p=this.build[f],h=d.build[f];if(e("build compare",f,p,h),p===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(p===void 0)return-1;if(p===h)continue;return a(p,h)}while(++f)}inc(d,f,p){if(d.startsWith("pre")){if(!f&&p===!1)throw new Error("invalid increment argument: identifier is empty");if(f){const h=`-${f}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!h||h[1]!==f)throw new Error(`invalid identifier: ${f}`)}}switch(d){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",f,p);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",f,p);break;case"prepatch":this.prerelease.length=0,this.inc("patch",f,p),this.inc("pre",f,p);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",f,p),this.inc("pre",f,p);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(p)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let g=this.prerelease.length;for(;--g>=0;)typeof this.prerelease[g]=="number"&&(this.prerelease[g]++,g=-2);if(g===-1){if(f===this.prerelease.join(".")&&p===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(f){let g=[f,h];p===!1&&(g=[f]),a(this.prerelease[0],f)===0?isNaN(this.prerelease[1])&&(this.prerelease=g):this.prerelease=g}break}default:throw new Error(`invalid increment argument: ${d}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return w0=s,w0}var S0,qP;function Zs(){if(qP)return S0;qP=1;const e=qr();return S0=(r,n,o=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(i){if(!o)return null;throw i}},S0}var x0,HP;function Due(){if(HP)return x0;HP=1;const e=Zs();return x0=(r,n)=>{const o=e(r,n);return o?o.version:null},x0}var C0,UP;function Mue(){if(UP)return C0;UP=1;const e=Zs();return C0=(r,n)=>{const o=e(r.trim().replace(/^[=v]+/,""),n);return o?o.version:null},C0}var T0,zP;function Lue(){if(zP)return T0;zP=1;const e=qr();return T0=(r,n,o,i,a)=>{typeof o=="string"&&(a=i,i=o,o=void 0);try{return new e(r instanceof e?r.version:r,o).inc(n,i,a).version}catch{return null}},T0}var _0,KP;function Bue(){if(KP)return _0;KP=1;const e=Zs();return _0=(r,n)=>{const o=e(r,null,!0),i=e(n,null,!0),a=o.compare(i);if(a===0)return null;const s=a>0,c=s?o:i,d=s?i:o,f=!!c.prerelease.length;if(!!d.prerelease.length&&!f){if(!d.patch&&!d.minor)return"major";if(d.compareMain(c)===0)return d.minor&&!d.patch?"minor":"patch"}const h=f?"pre":"";return o.major!==i.major?h+"major":o.minor!==i.minor?h+"minor":o.patch!==i.patch?h+"patch":"prerelease"},_0}var R0,VP;function Fue(){if(VP)return R0;VP=1;const e=qr();return R0=(r,n)=>new e(r,n).major,R0}var A0,WP;function jue(){if(WP)return A0;WP=1;const e=qr();return A0=(r,n)=>new e(r,n).minor,A0}var P0,GP;function que(){if(GP)return P0;GP=1;const e=qr();return P0=(r,n)=>new e(r,n).patch,P0}var $0,YP;function Hue(){if(YP)return $0;YP=1;const e=Zs();return $0=(r,n)=>{const o=e(r,n);return o&&o.prerelease.length?o.prerelease:null},$0}var O0,XP;function io(){if(XP)return O0;XP=1;const e=qr();return O0=(r,n,o)=>new e(r,o).compare(new e(n,o)),O0}var I0,JP;function Uue(){if(JP)return I0;JP=1;const e=io();return I0=(r,n,o)=>e(n,r,o),I0}var N0,QP;function zue(){if(QP)return N0;QP=1;const e=io();return N0=(r,n)=>e(r,n,!0),N0}var k0,ZP;function dx(){if(ZP)return k0;ZP=1;const e=qr();return k0=(r,n,o)=>{const i=new e(r,o),a=new e(n,o);return i.compare(a)||i.compareBuild(a)},k0}var D0,e$;function Kue(){if(e$)return D0;e$=1;const e=dx();return D0=(r,n)=>r.sort((o,i)=>e(o,i,n)),D0}var M0,t$;function Vue(){if(t$)return M0;t$=1;const e=dx();return M0=(r,n)=>r.sort((o,i)=>e(i,o,n)),M0}var L0,r$;function Am(){if(r$)return L0;r$=1;const e=io();return L0=(r,n,o)=>e(r,n,o)>0,L0}var B0,n$;function fx(){if(n$)return B0;n$=1;const e=io();return B0=(r,n,o)=>e(r,n,o)<0,B0}var F0,o$;function DM(){if(o$)return F0;o$=1;const e=io();return F0=(r,n,o)=>e(r,n,o)===0,F0}var j0,i$;function MM(){if(i$)return j0;i$=1;const e=io();return j0=(r,n,o)=>e(r,n,o)!==0,j0}var q0,a$;function px(){if(a$)return q0;a$=1;const e=io();return q0=(r,n,o)=>e(r,n,o)>=0,q0}var H0,l$;function hx(){if(l$)return H0;l$=1;const e=io();return H0=(r,n,o)=>e(r,n,o)<=0,H0}var U0,s$;function LM(){if(s$)return U0;s$=1;const e=DM(),t=MM(),r=Am(),n=px(),o=fx(),i=hx();return U0=(s,c,d,f)=>{switch(c){case"===":return typeof s=="object"&&(s=s.version),typeof d=="object"&&(d=d.version),s===d;case"!==":return typeof s=="object"&&(s=s.version),typeof d=="object"&&(d=d.version),s!==d;case"":case"=":case"==":return e(s,d,f);case"!=":return t(s,d,f);case">":return r(s,d,f);case">=":return n(s,d,f);case"<":return o(s,d,f);case"<=":return i(s,d,f);default:throw new TypeError(`Invalid operator: ${c}`)}},U0}var z0,u$;function Wue(){if(u$)return z0;u$=1;const e=qr(),t=Zs(),{safeRe:r,t:n}=bd();return z0=(i,a)=>{if(i instanceof e)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;a=a||{};let s=null;if(!a.rtl)s=i.match(a.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const g=a.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let y;for(;(y=g.exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||y.index+y[0].length!==s.index+s[0].length)&&(s=y),g.lastIndex=y.index+y[1].length+y[2].length;g.lastIndex=-1}if(s===null)return null;const c=s[2],d=s[3]||"0",f=s[4]||"0",p=a.includePrerelease&&s[5]?`-${s[5]}`:"",h=a.includePrerelease&&s[6]?`+${s[6]}`:"";return t(`${c}.${d}.${f}${p}${h}`,a)},z0}var K0,c$;function Gue(){if(c$)return K0;c$=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(r,n)}return this}}return K0=e,K0}var V0,d$;function ao(){if(d$)return V0;d$=1;const e=/\s+/g;class t{constructor(M,I){if(I=o(I),M instanceof t)return M.loose===!!I.loose&&M.includePrerelease===!!I.includePrerelease?M:new t(M.raw,I);if(M instanceof i)return this.raw=M.value,this.set=[[M]],this.formatted=void 0,this;if(this.options=I,this.loose=!!I.loose,this.includePrerelease=!!I.includePrerelease,this.raw=M.trim().replace(e," "),this.set=this.raw.split("||").map(B=>this.parseRange(B.trim())).filter(B=>B.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const B=this.set[0];if(this.set=this.set.filter(k=>!E(k[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const k of this.set)if(k.length===1&&w(k[0])){this.set=[k];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let M=0;M<this.set.length;M++){M>0&&(this.formatted+="||");const I=this.set[M];for(let B=0;B<I.length;B++)B>0&&(this.formatted+=" "),this.formatted+=I[B].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(M){const B=((this.options.includePrerelease&&g)|(this.options.loose&&y))+":"+M,k=n.get(B);if(k)return k;const z=this.options.loose,F=z?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];M=M.replace(F,K(this.options.includePrerelease)),a("hyphen replace",M),M=M.replace(c[d.COMPARATORTRIM],f),a("comparator trim",M),M=M.replace(c[d.TILDETRIM],p),a("tilde trim",M),M=M.replace(c[d.CARETTRIM],h),a("caret trim",M);let q=M.split(" ").map(ee=>S(ee,this.options)).join(" ").split(/\s+/).map(ee=>L(ee,this.options));z&&(q=q.filter(ee=>(a("loose invalid filter",ee,this.options),!!ee.match(c[d.COMPARATORLOOSE])))),a("range list",q);const U=new Map,Z=q.map(ee=>new i(ee,this.options));for(const ee of Z){if(E(ee))return[ee];U.set(ee.value,ee)}U.size>1&&U.has("")&&U.delete("");const de=[...U.values()];return n.set(B,de),de}intersects(M,I){if(!(M instanceof t))throw new TypeError("a Range is required");return this.set.some(B=>b(B,I)&&M.set.some(k=>b(k,I)&&B.every(z=>k.every(F=>z.intersects(F,I)))))}test(M){if(!M)return!1;if(typeof M=="string")try{M=new s(M,this.options)}catch{return!1}for(let I=0;I<this.set.length;I++)if(Y(this.set[I],M,this.options))return!0;return!1}}V0=t;const r=Gue(),n=new r,o=cx(),i=Pm(),a=Rm(),s=qr(),{safeRe:c,t:d,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:h}=bd(),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:y}=_m(),E=$=>$.value==="<0.0.0-0",w=$=>$.value==="",b=($,M)=>{let I=!0;const B=$.slice();let k=B.pop();for(;I&&B.length;)I=B.every(z=>k.intersects(z,M)),k=B.pop();return I},S=($,M)=>($=$.replace(c[d.BUILD],""),a("comp",$,M),$=T($,M),a("caret",$),$=O($,M),a("tildes",$),$=_($,M),a("xrange",$),$=V($,M),a("stars",$),$),R=$=>!$||$.toLowerCase()==="x"||$==="*",O=($,M)=>$.trim().split(/\s+/).map(I=>D(I,M)).join(" "),D=($,M)=>{const I=M.loose?c[d.TILDELOOSE]:c[d.TILDE];return $.replace(I,(B,k,z,F,q)=>{a("tilde",$,B,k,z,F,q);let U;return R(k)?U="":R(z)?U=`>=${k}.0.0 <${+k+1}.0.0-0`:R(F)?U=`>=${k}.${z}.0 <${k}.${+z+1}.0-0`:q?(a("replaceTilde pr",q),U=`>=${k}.${z}.${F}-${q} <${k}.${+z+1}.0-0`):U=`>=${k}.${z}.${F} <${k}.${+z+1}.0-0`,a("tilde return",U),U})},T=($,M)=>$.trim().split(/\s+/).map(I=>P(I,M)).join(" "),P=($,M)=>{a("caret",$,M);const I=M.loose?c[d.CARETLOOSE]:c[d.CARET],B=M.includePrerelease?"-0":"";return $.replace(I,(k,z,F,q,U)=>{a("caret",$,k,z,F,q,U);let Z;return R(z)?Z="":R(F)?Z=`>=${z}.0.0${B} <${+z+1}.0.0-0`:R(q)?z==="0"?Z=`>=${z}.${F}.0${B} <${z}.${+F+1}.0-0`:Z=`>=${z}.${F}.0${B} <${+z+1}.0.0-0`:U?(a("replaceCaret pr",U),z==="0"?F==="0"?Z=`>=${z}.${F}.${q}-${U} <${z}.${F}.${+q+1}-0`:Z=`>=${z}.${F}.${q}-${U} <${z}.${+F+1}.0-0`:Z=`>=${z}.${F}.${q}-${U} <${+z+1}.0.0-0`):(a("no pr"),z==="0"?F==="0"?Z=`>=${z}.${F}.${q}${B} <${z}.${F}.${+q+1}-0`:Z=`>=${z}.${F}.${q}${B} <${z}.${+F+1}.0-0`:Z=`>=${z}.${F}.${q} <${+z+1}.0.0-0`),a("caret return",Z),Z})},_=($,M)=>(a("replaceXRanges",$,M),$.split(/\s+/).map(I=>N(I,M)).join(" ")),N=($,M)=>{$=$.trim();const I=M.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return $.replace(I,(B,k,z,F,q,U)=>{a("xRange",$,B,k,z,F,q,U);const Z=R(z),de=Z||R(F),ee=de||R(q),oe=ee;return k==="="&&oe&&(k=""),U=M.includePrerelease?"-0":"",Z?k===">"||k==="<"?B="<0.0.0-0":B="*":k&&oe?(de&&(F=0),q=0,k===">"?(k=">=",de?(z=+z+1,F=0,q=0):(F=+F+1,q=0)):k==="<="&&(k="<",de?z=+z+1:F=+F+1),k==="<"&&(U="-0"),B=`${k+z}.${F}.${q}${U}`):de?B=`>=${z}.0.0${U} <${+z+1}.0.0-0`:ee&&(B=`>=${z}.${F}.0${U} <${z}.${+F+1}.0-0`),a("xRange return",B),B})},V=($,M)=>(a("replaceStars",$,M),$.trim().replace(c[d.STAR],"")),L=($,M)=>(a("replaceGTE0",$,M),$.trim().replace(c[M.includePrerelease?d.GTE0PRE:d.GTE0],"")),K=$=>(M,I,B,k,z,F,q,U,Z,de,ee,oe)=>(R(B)?I="":R(k)?I=`>=${B}.0.0${$?"-0":""}`:R(z)?I=`>=${B}.${k}.0${$?"-0":""}`:F?I=`>=${I}`:I=`>=${I}${$?"-0":""}`,R(Z)?U="":R(de)?U=`<${+Z+1}.0.0-0`:R(ee)?U=`<${Z}.${+de+1}.0-0`:oe?U=`<=${Z}.${de}.${ee}-${oe}`:$?U=`<${Z}.${de}.${+ee+1}-0`:U=`<=${U}`,`${I} ${U}`.trim()),Y=($,M,I)=>{for(let B=0;B<$.length;B++)if(!$[B].test(M))return!1;if(M.prerelease.length&&!I.includePrerelease){for(let B=0;B<$.length;B++)if(a($[B].semver),$[B].semver!==i.ANY&&$[B].semver.prerelease.length>0){const k=$[B].semver;if(k.major===M.major&&k.minor===M.minor&&k.patch===M.patch)return!0}return!1}return!0};return V0}var W0,f$;function Pm(){if(f$)return W0;f$=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,p){if(p=r(p),f instanceof t){if(f.loose===!!p.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),a("comparator",f,p),this.options=p,this.loose=!!p.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(f){const p=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],h=f.match(p);if(!h)throw new TypeError(`Invalid comparator: ${f}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new s(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(a("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new s(f,this.options)}catch{return!1}return i(f,this.operator,this.semver,this.options)}intersects(f,p){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(f.value,p).test(this.value):f.operator===""?f.value===""?!0:new c(this.value,p).test(f.semver):(p=r(p),p.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||i(this.semver,"<",f.semver,p)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||i(this.semver,">",f.semver,p)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}W0=t;const r=cx(),{safeRe:n,t:o}=bd(),i=LM(),a=Rm(),s=qr(),c=ao();return W0}var G0,p$;function $m(){if(p$)return G0;p$=1;const e=ao();return G0=(r,n,o)=>{try{n=new e(n,o)}catch{return!1}return n.test(r)},G0}var Y0,h$;function Yue(){if(h$)return Y0;h$=1;const e=ao();return Y0=(r,n)=>new e(r,n).set.map(o=>o.map(i=>i.value).join(" ").trim().split(" ")),Y0}var X0,m$;function Xue(){if(m$)return X0;m$=1;const e=qr(),t=ao();return X0=(n,o,i)=>{let a=null,s=null,c=null;try{c=new t(o,i)}catch{return null}return n.forEach(d=>{c.test(d)&&(!a||s.compare(d)===-1)&&(a=d,s=new e(a,i))}),a},X0}var J0,g$;function Jue(){if(g$)return J0;g$=1;const e=qr(),t=ao();return J0=(n,o,i)=>{let a=null,s=null,c=null;try{c=new t(o,i)}catch{return null}return n.forEach(d=>{c.test(d)&&(!a||s.compare(d)===1)&&(a=d,s=new e(a,i))}),a},J0}var Q0,y$;function Que(){if(y$)return Q0;y$=1;const e=qr(),t=ao(),r=Am();return Q0=(o,i)=>{o=new t(o,i);let a=new e("0.0.0");if(o.test(a)||(a=new e("0.0.0-0"),o.test(a)))return a;a=null;for(let s=0;s<o.set.length;++s){const c=o.set[s];let d=null;c.forEach(f=>{const p=new e(f.semver.version);switch(f.operator){case">":p.prerelease.length===0?p.patch++:p.prerelease.push(0),p.raw=p.format();case"":case">=":(!d||r(p,d))&&(d=p);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${f.operator}`)}}),d&&(!a||r(a,d))&&(a=d)}return a&&o.test(a)?a:null},Q0}var Z0,b$;function Zue(){if(b$)return Z0;b$=1;const e=ao();return Z0=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},Z0}var ev,v$;function mx(){if(v$)return ev;v$=1;const e=qr(),t=Pm(),{ANY:r}=t,n=ao(),o=$m(),i=Am(),a=fx(),s=hx(),c=px();return ev=(f,p,h,g)=>{f=new e(f,g),p=new n(p,g);let y,E,w,b,S;switch(h){case">":y=i,E=s,w=a,b=">",S=">=";break;case"<":y=a,E=c,w=i,b="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(f,p,g))return!1;for(let R=0;R<p.set.length;++R){const O=p.set[R];let D=null,T=null;if(O.forEach(P=>{P.semver===r&&(P=new t(">=0.0.0")),D=D||P,T=T||P,y(P.semver,D.semver,g)?D=P:w(P.semver,T.semver,g)&&(T=P)}),D.operator===b||D.operator===S||(!T.operator||T.operator===b)&&E(f,T.semver))return!1;if(T.operator===S&&w(f,T.semver))return!1}return!0},ev}var tv,E$;function ece(){if(E$)return tv;E$=1;const e=mx();return tv=(r,n,o)=>e(r,n,">",o),tv}var rv,w$;function tce(){if(w$)return rv;w$=1;const e=mx();return rv=(r,n,o)=>e(r,n,"<",o),rv}var nv,S$;function rce(){if(S$)return nv;S$=1;const e=ao();return nv=(r,n,o)=>(r=new e(r,o),n=new e(n,o),r.intersects(n,o)),nv}var ov,x$;function nce(){if(x$)return ov;x$=1;const e=$m(),t=io();return ov=(r,n,o)=>{const i=[];let a=null,s=null;const c=r.sort((h,g)=>t(h,g,o));for(const h of c)e(h,n,o)?(s=h,a||(a=h)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const d=[];for(const[h,g]of i)h===g?d.push(h):!g&&h===c[0]?d.push("*"):g?h===c[0]?d.push(`<=${g}`):d.push(`${h} - ${g}`):d.push(`>=${h}`);const f=d.join(" || "),p=typeof n.raw=="string"?n.raw:String(n);return f.length<p.length?f:n},ov}var iv,C$;function oce(){if(C$)return iv;C$=1;const e=ao(),t=Pm(),{ANY:r}=t,n=$m(),o=io(),i=(p,h,g={})=>{if(p===h)return!0;p=new e(p,g),h=new e(h,g);let y=!1;e:for(const E of p.set){for(const w of h.set){const b=c(E,w,g);if(y=y||b!==null,b)continue e}if(y)return!1}return!0},a=[new t(">=0.0.0-0")],s=[new t(">=0.0.0")],c=(p,h,g)=>{if(p===h)return!0;if(p.length===1&&p[0].semver===r){if(h.length===1&&h[0].semver===r)return!0;g.includePrerelease?p=a:p=s}if(h.length===1&&h[0].semver===r){if(g.includePrerelease)return!0;h=s}const y=new Set;let E,w;for(const _ of p)_.operator===">"||_.operator===">="?E=d(E,_,g):_.operator==="<"||_.operator==="<="?w=f(w,_,g):y.add(_.semver);if(y.size>1)return null;let b;if(E&&w){if(b=o(E.semver,w.semver,g),b>0)return null;if(b===0&&(E.operator!==">="||w.operator!=="<="))return null}for(const _ of y){if(E&&!n(_,String(E),g)||w&&!n(_,String(w),g))return null;for(const N of h)if(!n(_,String(N),g))return!1;return!0}let S,R,O,D,T=w&&!g.includePrerelease&&w.semver.prerelease.length?w.semver:!1,P=E&&!g.includePrerelease&&E.semver.prerelease.length?E.semver:!1;T&&T.prerelease.length===1&&w.operator==="<"&&T.prerelease[0]===0&&(T=!1);for(const _ of h){if(D=D||_.operator===">"||_.operator===">=",O=O||_.operator==="<"||_.operator==="<=",E){if(P&&_.semver.prerelease&&_.semver.prerelease.length&&_.semver.major===P.major&&_.semver.minor===P.minor&&_.semver.patch===P.patch&&(P=!1),_.operator===">"||_.operator===">="){if(S=d(E,_,g),S===_&&S!==E)return!1}else if(E.operator===">="&&!n(E.semver,String(_),g))return!1}if(w){if(T&&_.semver.prerelease&&_.semver.prerelease.length&&_.semver.major===T.major&&_.semver.minor===T.minor&&_.semver.patch===T.patch&&(T=!1),_.operator==="<"||_.operator==="<="){if(R=f(w,_,g),R===_&&R!==w)return!1}else if(w.operator==="<="&&!n(w.semver,String(_),g))return!1}if(!_.operator&&(w||E)&&b!==0)return!1}return!(E&&O&&!w&&b!==0||w&&D&&!E&&b!==0||P||T)},d=(p,h,g)=>{if(!p)return h;const y=o(p.semver,h.semver,g);return y>0?p:y<0||h.operator===">"&&p.operator===">="?h:p},f=(p,h,g)=>{if(!p)return h;const y=o(p.semver,h.semver,g);return y<0?p:y>0||h.operator==="<"&&p.operator==="<="?h:p};return iv=i,iv}var av,T$;function ice(){if(T$)return av;T$=1;const e=bd(),t=_m(),r=qr(),n=kM(),o=Zs(),i=Due(),a=Mue(),s=Lue(),c=Bue(),d=Fue(),f=jue(),p=que(),h=Hue(),g=io(),y=Uue(),E=zue(),w=dx(),b=Kue(),S=Vue(),R=Am(),O=fx(),D=DM(),T=MM(),P=px(),_=hx(),N=LM(),V=Wue(),L=Pm(),K=ao(),Y=$m(),$=Yue(),M=Xue(),I=Jue(),B=Que(),k=Zue(),z=mx(),F=ece(),q=tce(),U=rce(),Z=nce(),de=oce();return av={parse:o,valid:i,clean:a,inc:s,diff:c,major:d,minor:f,patch:p,prerelease:h,compare:g,rcompare:y,compareLoose:E,compareBuild:w,sort:b,rsort:S,gt:R,lt:O,eq:D,neq:T,gte:P,lte:_,cmp:N,coerce:V,Comparator:L,Range:K,satisfies:Y,toComparators:$,maxSatisfying:M,minSatisfying:I,minVersion:B,validRange:k,outside:z,gtr:F,ltr:q,intersects:U,simplifyRange:Z,subset:de,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},av}var ace=ice();const ln=JE(ace);var lce=ne({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var n=document.activeElement,o=[],i=0;i<r.rangeCount;i++)o.push(r.getRangeAt(i));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||o.forEach(function(a){r.addRange(a)}),n&&n.focus()}}}}),sce=ne({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=lce(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function i(s){var c=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,c)}function a(s,c){var d,f,p,h,g,y,E=!1;c||(c={}),d=c.debug||!1;try{p=r(),h=document.createRange(),g=document.getSelection(),y=document.createElement("span"),y.textContent=s,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(b){if(b.stopPropagation(),c.format)if(b.preventDefault(),typeof b.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=n[c.format]||n.default;window.clipboardData.setData(S,s)}else b.clipboardData.clearData(),b.clipboardData.setData(c.format,s);c.onCopy&&(b.preventDefault(),c.onCopy(b.clipboardData))}),document.body.appendChild(y),h.selectNodeContents(y),g.addRange(h);var w=document.execCommand("copy");if(!w)throw new Error("copy command was unsuccessful");E=!0}catch(b){d&&console.error("unable to copy using execCommand: ",b),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",s),c.onCopy&&c.onCopy(window.clipboardData),E=!0}catch(S){d&&console.error("unable to copy using clipboardData: ",S),d&&console.error("falling back to prompt"),f=i("message"in c?c.message:o),window.prompt(f,s)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(h):g.removeAllRanges()),y&&document.body.removeChild(y),p()}return E}t.exports=a}}),uce=ne({"../../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var o={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(a,s){for(var c in a)s.hasOwnProperty(c)||Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(a,c));return s},stringify:function(a,s){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a,s||o.replace)},parse:function(a,s){try{return JSON.parse(a,s||o.revive)}catch{return a}},fn:function(a,s){o.storeAPI[a]=s;for(var c in o.apis)o.apis[c][a]=s},get:function(a,s){return a.getItem(s)},set:function(a,s,c){a.setItem(s,c)},remove:function(a,s){a.removeItem(s)},key:function(a,s){return a.key(s)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,s,c){var d=o.inherit(o.storeAPI,function(p,h,g){return arguments.length===0?d.getAll():typeof h=="function"?d.transact(p,h,g):h!==void 0?d.set(p,h,g):typeof p=="string"||typeof p=="number"?d.get(p):typeof p=="function"?d.each(p):p?d.setAll(p,h):d.clear()});d._id=a;try{var f="__store2_test";s.setItem(f,"ok"),d._area=s,s.removeItem(f)}catch{d._area=o.storage("fake")}return d._ns=c||"",o.areas[a]||(o.areas[a]=d._area),o.apis[d._ns+d._id]||(o.apis[d._ns+d._id]=d),d},storeAPI:{area:function(a,s){var c=this[a];return(!c||!c.area)&&(c=o.Store(a,s,this._ns),this[a]||(this[a]=c)),c},namespace:function(a,s,c){if(c=c||this._delim||o.nsdelim,!a)return this._ns?this._ns.substring(0,this._ns.length-c.length):"";var d=a,f=this[d];if((!f||!f.namespace)&&(f=o.Store(this._id,this._area,this._ns+d+c),f._delim=c,this[d]||(this[d]=f),!s))for(var p in o.areas)f.area(p,o.areas[p]);return f},isFake:function(a){return a?(this._real=this._area,this._area=o.storage("fake")):a===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,s){for(var c=0,d=o.length(this._area);c<d;c++){var f=this._out(o.key(this._area,c));if(f!==void 0&&a.call(this,f,this.get(f),s)===!1)break;d>o.length(this._area)&&(d--,c--)}return s||this},keys:function(a){return this.each(function(s,c,d){d.push(s)},a||[])},get:function(a,s){var c=o.get(this._area,this._in(a)),d;return typeof s=="function"&&(d=s,s=null),c!==null?o.parse(c,d):s??c},getAll:function(a){return this.each(function(s,c,d){d[s]=c},a||{})},transact:function(a,s,c){var d=this.get(a,c),f=s(d);return this.set(a,f===void 0?d:f),this},set:function(a,s,c){var d=this.get(a),f;return d!=null&&c===!1?s:(typeof c=="function"&&(f=c,c=void 0),o.set(this._area,this._in(a),o.stringify(s,f),c)||d)},setAll:function(a,s){var c,d;for(var f in a)d=a[f],this.set(f,d,s)!==d&&(c=!0);return c},add:function(a,s,c){var d=this.get(a);if(d instanceof Array)s=d.concat(s);else if(d!==null){var f=typeof d;if(f===typeof s&&f==="object"){for(var p in s)d[p]=s[p];s=d}else s=d+s}return o.set(this._area,this._in(a),o.stringify(s,c)),s},remove:function(a,s){var c=this.get(a,s);return o.remove(this._area,this._in(a)),c},clear:function(){return this._ns?this.each(function(a){o.remove(this._area,this._in(a))},1):o.clear(this._area),this},clearAll:function(){var a=this._area;for(var s in o.areas)o.areas.hasOwnProperty(s)&&(this._area=o.areas[s],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=o.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return o.inherit(o.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var s=0;for(var c in this.items)if(this.has(c)&&a===s++)return c},setItem:function(a,s){this.has(a)||this.length++,this.items[a]=s},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},i=o.Store("local",function(){try{return localStorage}catch{}}());i.local=i,i._=o,i.area("session",function(){try{return sessionStorage}catch{}}()),i.area("page",o.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return i}):typeof t<"u"&&t.exports?t.exports=i:(r.store&&(o.conflict=r.store),r.store=i)})(e,e&&e.define)}}),cce=({api:e,state:t})=>x.createContext({api:e,state:t}),il=(e,...t)=>{let r={};r=fn({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(i=>{n.find(a=>a===i||To(a,i))||n.push(i)}),n;if(Array.isArray(n))return Xr.log(["the types mismatch, picking",n]),n});for(let n of t)r=fn(r,n,(o,i)=>{if(Array.isArray(i)&&Array.isArray(o))return i.forEach(a=>{o.find(s=>s===a||To(s,a))||o.push(a)}),o;if(Array.isArray(o))return Xr.log(["the types mismatch, picking",o]),o});return r},dce=(e,...t)=>{let r={};r=fn({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=fn(r,n,(o,i)=>{if(Array.isArray(i))return i});return r},fce=(...e)=>e.reduce((t,r)=>il(t,r),{}),vE=fce;function pce(){let e={setHandler:()=>{},send:()=>{}};return new g5({transport:e})}var hce=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(pce()),this.channel),this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(zp,this.config):this.ready().then(t=>{t.emit(zp,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&Xr.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:r}=t,n=this.getElements(r);n[e]={...t,id:e}}experimental_getRegisteredAddons(){return Object.keys(this.loaders)}},lv="__STORYBOOK_ADDONS_MANAGER";function mce(){return Re[lv]||(Re[lv]=new hce),Re[lv]}mce();var BM={};Wt(BM,{ensurePanel:()=>EE,init:()=>gce});function EE(e,t,r){let n=Object.keys(e);return n.indexOf(t)>=0?t:n.length?n[0]:r}var gce=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return EE(n.getElements(g1.PANEL),o,o)},setSelectedPanel:o=>{t.setState({selectedPanel:o},{persistence:"session"})},setAddonState(o,i,a){let s=typeof i=="function"?i:()=>i;return t.setState(c=>({...c,addons:{...c.addons,[o]:s(c.addons[o])}}),a).then(()=>n.getAddonState(o))},getAddonState:o=>t.getState().addons[o]||(globalThis==null?void 0:globalThis.STORYBOOK_ADDON_STATE[o])};return{api:n,state:{selectedPanel:EE(n.getElements(g1.PANEL),t.getState().selectedPanel),addons:{}}}},FM={};Wt(FM,{init:()=>yce});var yce=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,r)=>{var n;return(n=e.channel)==null||n.on(t,r),()=>{var o;return(o=e.channel)==null?void 0:o.off(t,r)}},off:(t,r)=>{var n;return(n=e.channel)==null?void 0:n.off(t,r)},once:(t,r)=>{var n;return(n=e.channel)==null?void 0:n.once(t,r)},emit:(t,r,...n)=>{var o,i;(o=r==null?void 0:r.options)!=null&&o.target&&r.options.target!=="storybook-preview-iframe"&&!r.options.target.startsWith("storybook-ref-")&&(r.options.target=r.options.target!=="storybook_internal"?`storybook-ref-${r.options.target}`:"storybook-preview-iframe"),(i=e.channel)==null||i.emit(t,r,...n)}},state:{}}),jM={};Wt(jM,{init:()=>Oce});var qM={};Wt(qM,{defaultStoryMapper:()=>zM,getSourceType:()=>UM,init:()=>$ce});var HM=it(pi(),1),bce=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),vce=/\s*\/\s*/,Ece=({globalParameters:e,kindParameters:t,stories:r})=>bW(r,n=>({...n,parameters:mde(e,t[n.kind],n.parameters)})),wce=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let{docsOnly:o,fileName:i,...a}=n.parameters,s={title:n.kind,id:r,name:n.name,importPath:i};if(o)t[r]={type:"docs",tags:["stories-mdx"],storiesImports:[],...s};else{let{argTypes:c,args:d,initialArgs:f}=n;t[r]={type:"story",subtype:"story",...s,parameters:a,argTypes:c,args:d,initialArgs:f}}return t},{})}),Sce=e=>({v:3,stories:Object.values(e.stories).reduce((t,r)=>(t[r.id]={...r,title:r.kind,name:r.name||r.story,importPath:r.parameters.fileName||""},t),{})}),xce=e=>{let t=BV(Object.values(e.stories),r=>r.title);return{v:4,entries:Object.values(e.stories).reduce((r,n)=>{var i;let o="story";return((i=n.parameters)!=null&&i.docsOnly||n.name==="Page"&&t[n.title]===1)&&(o="docs"),r[n.id]={type:o,...o==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...n},delete r[n.id].story,delete r[n.id].kind,r},{})}},Cce=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[us.DEV,us.TEST,...r.tags]:[us.DEV]},t),{})}),ch=(e,{provider:t,docsOptions:r,filters:n,allStatuses:o})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let i=e;i=i.v===2?Sce(i):i,i=i.v===3?xce(i):i,i=i.v===4?Cce(i):i,i=i;let a=Object.values(i.entries),s=Object.values(n),c=a.filter(b=>{let S=o[b.id]??{};return Object.values(S).some(({value:R})=>R==="status-value:error")||s.every(R=>R({...b,statuses:S}))?!0:a.filter(R=>"parent"in R&&R.parent===b.id).some(R=>s.every(O=>O({...R,statuses:S})))}),{sidebar:d={}}=t.getConfig(),{showRoots:f,collapsedRoots:p=[],renderLabel:h}=d,g=typeof f<"u",y=c.reduce((b,S)=>{if(r.docsMode&&S.type!=="docs")return b;let{title:R}=S,O=R.trim().split(vce),D=(!g||f)&&O.length>1?[O.shift()]:[],T=[...D,...O],P=T.reduce((_,N,V)=>{let L=V>0&&_[V-1],K=ks(L?`${L}-${N}`:N);if(N.trim()==="")throw new Error(Fr`Invalid title ${R} ending in slash.`);if(L===K)throw new Error(Fr`
Invalid part '${N}', leading to id === parentId ('${K}'), inside title '${R}'
Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
`);return _.push(K),_},[]);return P.forEach((_,N)=>{let V=P[N+1]||S.id;D.length&&N===0?b[_]=il(b[_]||{},{type:"root",id:_,name:T[N],tags:[],depth:N,renderLabel:h,startCollapsed:p.includes(_),children:[V]}):(!b[_]||b[_].type==="component")&&N===P.length-1?b[_]=il(b[_]||{},{type:"component",id:_,name:T[N],tags:[],parent:P[N-1],depth:N,renderLabel:h,...V&&{children:[V]}}):b[_]=il(b[_]||{},{type:"group",id:_,name:T[N],tags:[],parent:P[N-1],depth:N,renderLabel:h,...V&&{children:[V]}})}),b[S.id]={tags:[],...S,depth:P.length,parent:"parent"in S?S.parent:P[P.length-1],renderLabel:h,prepared:!!S.parameters},b},{});function E(b,S){if(b[S.id]||(b[S.id]=S,"children"in S&&S.children&&(S.children.forEach(R=>E(b,y[R])),S.tags=S.children.reduce((R,O)=>R===null?b[O].tags:bce(R,b[O].tags),null)||[])),S.type==="component"){let R=b[S.children[0]];R&&"importPath"in R&&(S.importPath=R.importPath)}return b}let w=Object.values(y).filter(b=>b.type!=="root"&&!b.parent).reduce((b,S)=>E(b,S),{});return w=Object.values(y).filter(b=>b.type==="root").reduce(E,w),w=Object.values(w).reduce((b,S)=>{if(S.type==="story"&&S.subtype==="test"){let R=b[S.parent],O=b[R.parent];b[O.id]={...O,children:O.children&&O.children.filter(D=>D!==S.id)},b[R.id]={...R,children:(R.children||[]).concat(S.id)},b[S.id]={...S,depth:S.depth+1}}else b[S.id]=S;return b},{}),w},_$=(e,t)=>t?Object.fromEntries(Object.entries(e).map(([r,n])=>{let o=t[r];return n.type==="story"&&(o==null?void 0:o.type)==="story"&&o.prepared?("children"in o&&delete o.children,[r,{...o,...n,prepared:!0}]):[r,n]})):e,Tce=(0,HM.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),_ce=(0,HM.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:Rce,fetch:R$}=Re,UM=(e,t)=>{let{origin:r,pathname:n}=Rce,{origin:o,pathname:i}=new URL(e),a=`${r+n}`.replace(/\/[^\/]*$/,""),s=`${o+i}`.replace(/\/[^\/]*$/,"");return a===s?["local",s]:t||e?["external",s]:[null,null]},zM=(e,t)=>({...t,kind:t.kind.replace("|","/")}),A$=(e,t)=>Object.entries(e).reduce((r,[n,o])=>({...r,[n]:{...o,refId:t.id}}),{});async function P$(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw new Error("Unexpected boolean response");if(!t.ok){if(t.status===401)try{let n=await t.json();if(n.loginUrl)return{loginUrl:n.loginUrl}}catch{}throw new Error(`Unexpected response not OK: ${t.statusText}`)}let r=await t.json();return r.entries||r.stories?{storyIndex:r}:r}catch(t){return{indexError:t}}}var Ace=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},Pce=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[i,a])=>({...o,[i]:n(t,a)}),{}):e},$ce=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:o=!0}={})=>{let i={findRef:c=>{let d=i.getRefs();return Object.values(d).find(({url:f})=>f.match(c))},changeRefVersion:async(c,d)=>{let{versions:f,title:p}=i.getRefs()[c],h={id:c,url:d,versions:f,title:p,index:{},filteredIndex:{},expanded:!0};await i.setRef(c,{...h,type:"unknown"},!1),await i.checkRef(h)},changeRefState:(c,d)=>{let{[c]:f,...p}=i.getRefs();p[c]={...f,previewInitialized:d},e.setState({refs:p})},checkRef:async c=>{let{id:d,url:f,version:p,type:h}=c,g=h==="server-checked",y={},E=p?`?version=${p}`:"",w=g?"omit":"include",b=Ace(f),S={Accept:"application/json"};b.authorization&&Object.assign(S,{Authorization:`Basic ${b.authorization}`});let[R,O]=await Promise.all(["index.json","stories.json"].map(async T=>P$(R$(`${b.url}/${T}${E}`,{headers:S,credentials:w}))));if(!R.indexError||!O.indexError){let T=await P$(R$(`${b.url}/metadata.json${E}`,{headers:S,credentials:w,cache:"no-cache"}).catch(()=>!1));Object.assign(y,{...R.indexError?O:R,...!T.indexError&&T})}else g||(y.indexError={message:Fr`
Error: Loading of ref failed
at fetch (lib/api/src/modules/refs.ts)
URL: ${b.url}
We weren't able to load the above URL,
it's possible a CORS error happened.
Please check your dev-tools network tab.
`});let D=c.versions&&Object.keys(c.versions).length?c.versions:y.versions;await i.setRef(d,{id:d,url:b.url,...y,...D?{versions:D}:{},type:y.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:c={}}=e.getState();return c},setRef:async(c,{storyIndex:d,setStoriesData:f,...p},h=!1)=>{if(r)return;let g,y,E,{filters:w}=e.getState(),{storyMapper:b=zM}=t.getConfig(),S=i.getRefs()[c];(d||f)&&(g=f?wce(Pce(f,S,{storyMapper:b})):d,E=ch(d,{provider:t,docsOptions:n,filters:w,allStatuses:{}}),y=ch(d,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),y&&(y=A$(y,S)),E&&(E=A$(E,S)),await i.updateRef(c,{...S,...p,index:y,filteredIndex:E,internal_index:g})},updateRef:async(c,d)=>{let{[c]:f,...p}=i.getRefs();p[c]={...f,...d};let h=Object.keys(s).reduce((g,y)=>(g[y]=p[y],g),{});await e.setState({refs:h})}},a=!r&&Re.REFS||{},s=a;return o&&new Promise(async c=>{for(let d of Object.values(a))await i.checkRef({...d,stories:{}});c(void 0)}),{api:i,state:{refs:s}}},sn=(e,t)=>{let{source:r,refId:n,type:o}=e,[i,a]=UM(r,n),s;(n||i==="external")&&(s=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(a));let c={source:r,sourceType:i,sourceLocation:a,refId:n,ref:s,type:o};switch(!0){case typeof n=="string":case i==="local":case i==="external":return c;default:return Xr.warn(`Received a ${o} frame that was not configured as a ref`),null}},Oce=({store:e,fullAPI:t,provider:r})=>{var a,s;let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(c){var d;(d=r.channel)==null||d.emit(jW,{globals:c,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},i=({globals:c,storyGlobals:d,userGlobals:f})=>{let{globals:p,userGlobals:h,storyGlobals:g}=e.getState();Co(c,p)||e.setState({globals:c}),Co(f,h)||e.setState({userGlobals:f}),Co(d,g)||e.setState({storyGlobals:d})};return(a=r.channel)==null||a.on(p5,function({globals:c,storyGlobals:d,userGlobals:f}){let{ref:p}=sn(this,t);p?Xr.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i({globals:c,storyGlobals:d,userGlobals:f})}),(s=r.channel)==null||s.on($W,function({globals:c,globalTypes:d}){var h;let{ref:f}=sn(this,t),p=(h=e.getState())==null?void 0:h.userGlobals;f?Object.keys(c).length>0&&Xr.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:c,userGlobals:c,globalTypes:d}),p&&Object.keys(p).length!==0&&!Co(c,p)&&n.updateGlobals(p)}),{api:n,state:o}},gx={};Wt(gx,{ActiveTabs:()=>KM,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>dh,DEFAULT_NAV_SIZE:()=>Kc,DEFAULT_RIGHT_PANEL_WIDTH:()=>fh,focusableUIElements:()=>Yi,getDefaultLayoutState:()=>VM,init:()=>Ice});var{document:tp}=Re,sv=e=>typeof e=="function",KM={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},Kc=300,dh=300,fh=400,VM=()=>({ui:{enableShortcuts:!0},layout:{initialActive:KM.CANVAS,showToolbar:!0,navSize:Kc,bottomPanelHeight:dh,rightPanelWidth:fh,recentVisibleSizes:{navSize:Kc,bottomPanelHeight:dh,rightPanelWidth:fh},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:BI()}),Yi={addonPanel:"storybook-panel-region",storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root",showAddonPanel:"storybook-show-addon-panel",sidebarRegion:"storybook-sidebar-region",showSidebar:"storybook-show-sidebar"},wE=e=>e.layout.navSize>0,SE=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},$$=e=>!wE(e)&&!SE(e),rp=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),Ice=({store:e,provider:t,singleStory:r})=>{var i;let n={toggleFullscreen(a){return e.setState(s=>{let c=$$(s),d=typeof a=="boolean"?a:!c;return d===c?{layout:s.layout}:d?{layout:{...s.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:rp(s.layout)}}:{layout:{...s.layout,navSize:s.singleStory?0:s.layout.recentVisibleSizes.navSize,bottomPanelHeight:s.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:s.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(s=>{let c=SE(s),d=typeof a=="boolean"?a:!c;return d===c?{layout:s.layout}:d?{layout:{...s.layout,bottomPanelHeight:s.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:s.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...s.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:rp(s.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(s=>{let c=a||(s.layout.panelPosition==="right"?"bottom":"right");return{layout:{...s.layout,panelPosition:c,bottomPanelHeight:s.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:s.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(s=>{if(s.singleStory)return{layout:s.layout};let c=wE(s),d=typeof a=="boolean"?a:!c;return d===c?{layout:s.layout}:d?{layout:{...s.layout,navSize:s.layout.recentVisibleSizes.navSize}}:{layout:{...s.layout,navSize:0,recentVisibleSizes:rp(s.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(s=>{let c=typeof a<"u"?a:!s.layout.showToolbar;return{layout:{...s.layout,showToolbar:c}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:s,rightPanelWidth:c}){return e.setState(d=>{let f={...d.layout,navSize:a??d.layout.navSize,bottomPanelHeight:s??d.layout.bottomPanelHeight,rightPanelWidth:c??d.layout.rightPanelWidth};return{layout:{...f,recentVisibleSizes:rp(f)}}},{persistence:"session"})},focusOnUIElement(a,s){let{forceFocus:c=!1,select:d=!1,poll:f=!0}=typeof s=="boolean"?{select:s}:s??{};if(!a)return!1;let p=()=>{var g,y;let h=tp.getElementById(a);return!h||(h.focus(),h!==tp.activeElement&&c&&h.getAttribute("tabindex")===null&&(h.setAttribute("tabindex","-1"),h.focus()),h!==tp.activeElement&&h.id!==((g=tp.activeElement)==null?void 0:g.id))?!1:(d&&((y=h.select)==null||y.call(h)),!0)};return p()?!0:f?new Promise(h=>{let g=Date.now(),y=500,E=setInterval(()=>{let w=Date.now()-g;if(p()){clearInterval(E),h(!0);return}w>=y&&(clearInterval(E),h(!1))},50)}):!1},getInitialOptions(){let{theme:a,selectedPanel:s,layoutCustomisations:c,...d}=t.getConfig(),f=VM();return{...f,layout:{...jb(f.layout,zu(d,Object.keys(f.layout))),...r&&{navSize:0}},layoutCustomisations:{...f.layoutCustomisations,...c??{}},ui:jb(f.ui,zu(d,Object.keys(f.ui))),selectedPanel:s||f.selectedPanel,theme:a||f.theme}},getIsFullscreen(){return $$(e.getState())},getIsPanelShown(){return SE(e.getState())},getIsNavShown(){return wE(e.getState())},getShowToolbarWithCustomisations(a){let s=e.getState();return sv(s.layoutCustomisations.showToolbar)?s.layoutCustomisations.showToolbar(s,a)??a:a},getShowPanelWithCustomisations(a){let s=e.getState();return sv(s.layoutCustomisations.showPanel)?s.layoutCustomisations.showPanel(s,a)??a:a},getNavSizeWithCustomisations(a){let s=e.getState();if(sv(s.layoutCustomisations.showSidebar)){let c=s.layoutCustomisations.showSidebar(s,a!==0);if(a===0&&c===!0)return s.layout.recentVisibleSizes.navSize;if(a!==0&&c===!1)return 0}return a},setOptions:a=>{let{layout:s,ui:c,selectedPanel:d,theme:f}=e.getState();if(!a)return;let p={...s,...a.layout||{},...zu(a,Object.keys(s)),...r&&{navSize:0}},h={...c,...a.ui,...jb(a.ui||{},zu(a,Object.keys(c)))},g={...f,...a.theme},y={};To(c,h)||(y.ui=h),To(s,p)||(y.layout=p),a.selectedPanel&&!To(d,a.selectedPanel)&&(y.selectedPanel=a.selectedPanel),Object.keys(y).length&&e.setState(y,{persistence:"permanent"}),To(f,g)||e.setState({theme:g})}},o=zu(e.getState(),["layout","selectedPanel"]);return(i=t.channel)==null||i.on(zp,()=>{n.setOptions(il(n.getInitialOptions(),o))}),{api:n,state:il(n.getInitialOptions(),o)}},WM={};Wt(WM,{init:()=>Nce});var Nce=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=J_(r,i=>i.id===t.id);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=J_(r,i=>i.id===t);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),GM={};Wt(GM,{init:()=>kce});var kce=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{var c,d;let{file:o,line:i,column:a}=r,s=f=>{var p;f.file===o&&f.line===i&&f.column===a&&((p=e.channel)==null||p.off(qb,s),n(f))};(c=e.channel)==null||c.on(qb,s),(d=e.channel)==null||d.emit(WW,r)})}},state:{notifications:[]},init:async()=>{var n;let{color:r}=await vs(async()=>{const{color:o}=await Promise.resolve().then(()=>cq);return{color:o}},void 0,import.meta.url);(n=e.channel)==null||n.on(qb,o=>{o.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:o.error||"Check the Storybook process on the command line for more details."},icon:H.createElement(TU,{color:r.negative}),duration:8e3})})}}),YM={};Wt(YM,{init:()=>Dce});var Dce=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),XM={};Wt(XM,{init:()=>Mce});var Mce=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:{...o,lastTrackedStoryId:n}})}}}),JM={};Wt(JM,{controlOrMetaKey:()=>es,defaultShortcuts:()=>ts,init:()=>Vce,isMacLike:()=>QM,keys:()=>xE});var Lce=it(sce(),1),{navigator:uv}=Re,Bce=()=>uv&&uv.platform?!!uv.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Fce=()=>Bce()?"⌥":"alt",jce=e=>{var i;if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=(i=e.code)==null?void 0:i.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let a=e.key.toUpperCase(),s=o;s&&s.length===1&&s!==a?t.push([a,s]):t.push(a)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},qce=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),Hce=e=>e==="alt"?Fce():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e==null?void 0:e.toUpperCase(),Uce=e=>e.map(Hce).join(" "),zce=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:cv,document:ea}=Re;function O$(e){return ea.activeElement&&(e==null?void 0:e.contains(ea.activeElement))}var QM=()=>cv&&cv.platform?!!cv.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,es=()=>QM()?"meta":"control";function xE(e){return Object.keys(e)}var ts=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[es(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[es(),"shift",","],aboutPage:[es(),","],escape:["escape"],collapseAll:[es(),"shift","ArrowUp"],expandAll:[es(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),dv={};function Kce(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var Vce=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...ts,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return dv},getAddonsShortcutLabels(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([s,{label:c}])=>{a[s]=c}),a},getAddonsShortcutDefaults(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([s,{defaultShortcut:c}])=>{a[s]=c}),a},async setShortcuts(a){let{shortcuts:s}=await e.setState(c=>({shortcuts:typeof a=="function"?a(c.shortcuts):a}),{persistence:"permanent"});return s},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(a,s){return await n.setShortcuts(c=>({...c,[a]:s})),s},async setAddonShortcut(a,s){return await n.setShortcuts(c=>({...c,[`${a}-${s.actionName}`]:s.defaultShortcut})),dv[`${a}-${s.actionName}`]=s,s},async restoreDefaultShortcut(a){let s=n.getDefaultShortcuts()[a];return n.setShortcut(a,s)},handleKeydownEvent(a){let s=jce(a),c=n.getShortcutKeys(),d=xE(c).find(f=>qce(s,c[f]));d&&n.handleShortcutFeature(d,a)},handleShortcutFeature(a,s){let{ui:{enableShortcuts:c},storyId:d,refId:f,viewMode:p}=e.getState();if(c)switch(s!=null&&s.preventDefault&&s.preventDefault(),a){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"goToNextLandmark":case"goToPreviousLandmark":break;case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(Yi.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Yi.storySearchField,!0)},0);break}case"focusIframe":{let h=ea.getElementById("storybook-preview-iframe");if(h)try{h.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(Yi.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{let h=t.getIsPanelShown(),g=ea.getElementById(Yi.addonPanel);t.togglePanel(),h&&O$(g)&&t.focusOnUIElement(Yi.showAddonPanel,{poll:!0}).then(y=>{y===!1&&ea.body.focus()});break}case"toggleNav":{let h=t.getIsNavShown(),g=ea.getElementById(Yi.sidebarRegion);t.toggleNav(),h&&O$(g)&&t.focusOnUIElement(Yi.showSidebar,{poll:!0}).then(y=>{y===!1&&ea.body.focus()});break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(NW);break}case"expandAll":{t.emit(kW);break}case"remount":{t.emit(m1,{storyId:d});break}case"openInEditor":{Re.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(d&&p==="story"){let{previewHref:h}=t.getStoryHrefs(d,{refId:f});window.open(h,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(d){let{managerHref:h}=t.getStoryHrefs(d,{refId:f});(0,Lce.default)(h)}break}default:dv[a].action();break}}},{shortcuts:o=ts}=e.getState(),i={shortcuts:xE(ts).reduce((a,s)=>({...a,[s]:o[s]||ts[s]}),ts)};return{api:n,state:i,init:()=>{var a;ea.addEventListener("keydown",s=>{Kce(s)||n.handleKeydownEvent(s)}),(a=r.channel)==null||a.on(_W,s=>{n.handleKeydownEvent(s.event)})}}},ZM={};Wt(ZM,{getDefaultTagsFromPreset:()=>tL,init:()=>tde});var Wce=it(pi(),1);it(Iw(),1);var Gce=class extends Qh{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},Yce={id:"storybook/status",leader:!0,initialState:{}},fv={SELECT:"select"};function Xce({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(i){e.setState(a=>{let s={...a};for(let c of i){let{storyId:d,typeId:f}=c;s[d]={...s[d]??{},[f]:c}}return s})},onAllStatusChange(i){return e.onStateChange((a,s)=>{i(a,s)})},onSelect(i){return e.subscribe(fv.SELECT,a=>{i(a.payload)})},selectStatuses:i=>{e.send({type:fv.SELECT,payload:i})},unset(i){if(!i){e.setState({});return}e.setState(a=>{let s={...a};for(let c of i)delete s[c];return s})},typeId:void 0},o=i=>({getAll:n.getAll,set(a){e.setState(s=>{let c={...s};for(let d of a){let{storyId:f}=d;if(d.typeId!==i)switch(r){case"server":throw new Gce({status:d,typeId:i});case"manager":throw new DV({status:d,typeId:i});case"preview":default:throw new LV({status:d,typeId:i})}c[f]={...c[f]??{},[i]:d}}return c})},onAllStatusChange:n.onAllStatusChange,onSelect(a){return e.subscribe(fv.SELECT,s=>{s.payload.some(c=>c.typeId===i)&&a(s.payload)})},unset(a){e.setState(s=>{var d;let c={...s};for(let f in c)if((d=c[f])!=null&&d[i]&&(!a||a!=null&&a.includes(f))){let{[i]:p,...h}=c[f];c[f]=h}return c})},typeId:i});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:i=>t(e,i)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var eL=(e,t)=>{let r=x.useRef(t?t(e.getState()):e.getState()),n=x.useCallback(i=>e.onStateChange((a,s)=>{if(!t){r.current=a,i();return}let c=t(a),d=t(s);!To(c,d)&&(r.current=c,i())}),[e,t]),o=x.useCallback(()=>{let i=e.getState(),a=t?t(i):i;return To(a,r.current)||(r.current=a),r.current},[e,t]);return[x.useSyncExternalStore(n,o),e.setState]},Jce=Xce({universalStatusStore:ww.create({...Yce,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:eL,environment:"manager"}),{fullStatusStore:I$}=Jce,{fetch:Qce}=Re,Zce="./index.json",pv="tags-filter",N$="static-filter",tL=(0,Wce.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,r])=>r.defaultFilterSelection==="include").map(([r])=>r),excluded:t.filter(([,r])=>r.defaultFilterSelection==="exclude").map(([r])=>r)}}),k$=e=>{let t=Object.entries(e).reduce((r,n)=>{let[o,i]=n;return i.excludeFromSidebar&&(r[o]=!0),r},{});return r=>{let n=r.tags??[];return(n.includes(us.DEV)||r.type==="docs")&&n.filter(o=>t[o]).length===0}},hv=(e,t)=>{let r=n=>Object.values(n.reduce((o,i)=>(Object.hasOwn(Q_,i)?o["built-in"].push(Q_[i]):o.user.push(FV(i)),o),{"built-in":[],user:[]})).filter(o=>o.length>0);return n=>{let o=r(e),i=r(t);return(!o.length||o.every(a=>a.some(s=>s(n,!1))))&&(!i.length||i.every(a=>a.every(s=>s(n,!0))))}},ede=["enableShortcuts","theme","showRoots"];function mv(e){if(!e||typeof e=="string")return e;let t={...e};return ede.forEach(r=>{r in t&&delete t[r]}),t}var tde=({fullAPI:e,store:t,navigate:r,provider:n,storyId:o,viewMode:i,docsOptions:a={}})=>{var w,b,S,R,O,D,T,P,_,N,V,L,K,Y,$,M;let s={storyId:Qf,getData:(I,B)=>{let k=s.resolveStory(I,B);if((k==null?void 0:k.type)==="story"||(k==null?void 0:k.type)==="docs")return k},isPrepared:(I,B)=>{let k=s.getData(I,B);return k?k.type==="story"?k.prepared:!0:!1},resolveStory:(I,B)=>{var F,q;let{refs:k,index:z}=t.getState();if(!(B&&!k[B]))return B?((q=(F=k==null?void 0:k[B])==null?void 0:F.index)==null?void 0:q[I])??void 0:z?z[I]:void 0},getCurrentStoryData:()=>{let{storyId:I,refId:B}=t.getState();return s.getData(I,B)},getIndex:()=>{let{internal_index:I}=t.getState();return I},getParameters:(I,B)=>{let{storyId:k,refId:z}=typeof I=="string"?{storyId:I,refId:void 0}:I,F=s.getData(k,z);if(["story","docs"].includes(F==null?void 0:F.type)){let{parameters:q}=F;if(q)return B?q[B]:q}return null},getCurrentParameter:I=>{let{storyId:B,refId:k}=t.getState();return s.getParameters({storyId:B,refId:k},I)||void 0},jumpToComponent:I=>{let{filteredIndex:B,storyId:k,refs:z,refId:F}=t.getState();if(!s.getData(k,F))return;let q=F?z[F].filteredIndex||{}:B;if(!q)return;let U=s.findSiblingStoryId(k,q,I,!0);U&&s.selectStory(U,void 0,{ref:F})},jumpToStory:I=>{let{filteredIndex:B,storyId:k,refs:z,refId:F}=t.getState(),q=s.getData(k,F);if(!q)return;let U=q.refId?z[q.refId].filteredIndex:B;if(!U)return;let Z=s.findSiblingStoryId(k,U,I,!1);Z&&s.selectStory(Z,void 0,{ref:F})},selectFirstStory:()=>{let{index:I}=t.getState();if(!I)return;let B=Object.keys(I).find(k=>I[k].type==="story");if(B){s.selectStory(B);return}r("/")},selectStory:(I=void 0,B=void 0,k={})=>{let{ref:z}=k,{storyId:F,index:q,filteredIndex:U,refs:Z,settings:de}=t.getState(),ee=ve=>(ve==null?void 0:ve.type)==="docs"||(ve==null?void 0:ve.type)==="story"?(t.setState({settings:{...de,lastTrackedStoryId:ve.id}}),r(`/${ve.type}/${ve.refId?`${ve.refId}_${ve.id}`:ve.id}`),!0):!1,oe=F==null?void 0:F.split("--",2)[0],ge=z?Z[z].index:q,ye=z?Z[z].filteredIndex:U;if(!(!ge||!ye))if(B)if(!I)ee(ge[Qf(oe,B)]);else{let ve=z?`${z}_${Qf(I,B)}`:Qf(I,B);if(ge[ve])ee(ge[ve]);else{let J=ge[ks(I)];if((J==null?void 0:J.type)==="component"){let me=J.children.find(he=>ge[he].name===B);ee(me?ge[me]:void 0)}}}else{let ve=I?ge[I]||ge[ks(I)]:ge[oe];if(!ve)throw new Error(`Unknown id or title: '${I}'`);ee(ve)||ee(s.findLeafEntry(ye,ve.id))}},findLeafEntry(I,B){let k=I[B];if(k.type==="docs"||k.type==="story")return k;let z=k.children.find(F=>I[F])||k.children[0];return s.findLeafEntry(I,z)},findLeafStoryId(I,B){var k;return(k=s.findLeafEntry(I,B))==null?void 0:k.id},findAllLeafStoryIds(I){let{index:B}=t.getState();if(!B)return[];let k=(z,F=[])=>{var U;let q=B[z];return q&&(q.type==="story"&&F.push(q.id),"children"in q&&((U=q.children)==null||U.forEach(Z=>k(Z,F)))),F};return k(I,[])},findSiblingStoryId(I,B,k,z){if(z){let U=Tce(B),Z=U.findIndex(de=>de.includes(I));return Z===U.length-1&&k>0||Z===0&&k<0?void 0:U[Z+k]?U[Z+k][0]:void 0}let F=_ce(B),q=F.indexOf(I);if(!(q===F.length-1&&k>0)&&!(q===0&&k<0))return F[q+k]},updateStoryArgs:(I,B)=>{var F;let{id:k,refId:z}=I;(F=n.channel)==null||F.emit(HW,{storyId:k,updatedArgs:B,options:{target:z}})},resetStoryArgs:(I,B)=>{var F;let{id:k,refId:z}=I;(F=n.channel)==null||F.emit(RW,{storyId:k,argNames:B,options:{target:z}})},fetchIndex:async()=>{try{let I=await Qce(Zce);if(I.status!==200)throw new Error(await I.text());let B=await I.json();if(B.v<3){Xr.warn(`Skipping story index with version v${B.v}, awaiting SET_STORIES.`);return}await s.setIndex(B)}catch(I){await t.setState({indexError:I})}},setIndex:async I=>{let{filteredIndex:B,index:k,filters:z}=t.getState(),F=I$.getAll(),q=ch(I,{provider:n,docsOptions:a,filters:z,allStatuses:F}),U=ch(I,{provider:n,docsOptions:a,filters:{},allStatuses:F});await t.setState({internal_index:I,filteredIndex:_$(q,B),index:_$(U,k),indexError:void 0})},updateStory:async(I,B,k)=>{if(k){let{id:z,index:F,filteredIndex:q}=k;F&&F[I]&&(F[I]={...F[I],...B}),q&&q[I]&&(q[I]={...q[I],...B}),await e.updateRef(z,{index:F,filteredIndex:q})}else{let{index:z,filteredIndex:F}=t.getState();z&&z[I]&&(z[I]={...z[I],...B}),F&&F[I]&&(F[I]={...F[I],...B}),(z||F)&&await t.setState({index:z,filteredIndex:F})}},updateDocs:async(I,B,k)=>{if(k){let{id:z,index:F,filteredIndex:q}=k;F[I]={...F[I],...B},q[I]={...q[I],...B},await e.updateRef(z,{index:F,filteredIndex:q})}else{let{index:z,filteredIndex:F}=t.getState();z&&(z[I]={...z[I],...B}),F&&(F[I]={...F[I],...B}),(z||F)&&await t.setState({index:z,filteredIndex:F})}},setPreviewInitialized:async I=>{I?e.updateRef(I.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(I,B)=>{var F;await t.setState({filters:{...t.getState().filters,[I]:B}});let{internal_index:k}=t.getState();if(!k)return;await s.setIndex(k);let z=await e.getRefs();for(let[q,{internal_index:U,...Z}]of Object.entries(z))await e.setRef(q,{...Z,storyIndex:U},!0);(F=n.channel)==null||F.emit(PW,{id:I})},resetTagFilters:async()=>{await t.setState(I=>({includedTagFilters:I.defaultIncludedTagFilters,excludedTagFilters:I.defaultExcludedTagFilters}),{persistence:"permanent"}),c()},setAllTagFilters:async(I,B)=>{await t.setState({includedTagFilters:I,excludedTagFilters:B},{persistence:"permanent"}),c()},addTagFilters:async(I,B)=>{let k=t.getState(),z=new Set(k.includedTagFilters),F=new Set(k.excludedTagFilters);for(let q of I)B?(z.delete(q),F.add(q)):(z.add(q),F.delete(q));await t.setState({includedTagFilters:Array.from(z),excludedTagFilters:Array.from(F)},{persistence:"permanent"}),c()},removeTagFilters:async I=>{let B=t.getState();await t.setState({includedTagFilters:B.includedTagFilters.filter(k=>!I.includes(k)),excludedTagFilters:B.excludedTagFilters.filter(k=>!I.includes(k))},{persistence:"permanent"}),c()}},c=()=>{let{includedTagFilters:I,excludedTagFilters:B}=t.getState();s.experimental_setFilter(pv,hv(I,B))};(w=n.channel)==null||w.on(FW,function({storyId:I,viewMode:B}){var z,F;let{sourceType:k}=sn(this,e);if(k==="local"){let q=t.getState(),U=q.path==="/"||q.viewMode==="story"||q.viewMode==="docs",Z=q.viewMode&&q.storyId,de=q.viewMode!==B||q.storyId!==I,{type:ee}=((z=q.index)==null?void 0:z[q.storyId])||{};U&&(Z&&de&&!(ee==="root"||ee==="component"||ee==="group")?(F=n.channel)==null||F.emit(kw,{storyId:q.storyId,viewMode:q.viewMode}):de&&r(`/${B}/${I}`))}}),(b=n.channel)==null||b.on(SW,function(){let{ref:I}=sn(this,e);s.setPreviewInitialized(I)}),(S=n.channel)==null||S.on(DW,function(){let{sourceType:I}=sn(this,e);if(I==="local"){let B=s.getCurrentParameter("options");B&&e.setOptions(mv(B))}}),(R=n.channel)==null||R.on(BW,function({id:I,...B}){var F;let{ref:k,sourceType:z}=sn(this,e);if(s.updateStory(I,{...B,prepared:!0},k),!k&&!t.getState().hasCalledSetOptions){let{options:q}=B.parameters;e.setOptions(mv(q)),t.setState({hasCalledSetOptions:!0})}if(z==="local"){let{storyId:q,index:U,refId:Z}=t.getState();if(!U)return;let de=Array.from(new Set([s.findSiblingStoryId(q,U,1,!0),s.findSiblingStoryId(q,U,-1,!0)])).filter(Boolean);(F=n.channel)==null||F.emit(TW,{ids:de,options:{target:Z}})}}),(O=n.channel)==null||O.on(xW,function({id:I,...B}){let{ref:k}=sn(this,e);s.updateStory(I,{...B,prepared:!0},k)}),(D=n.channel)==null||D.on(OW,function(I){let{ref:B}=sn(this,e);if(B)e.setRef(B.id,{...B,storyIndex:I},!0);else{s.setIndex(I);let k=s.getCurrentParameter("options");e.setOptions(mv(k))}}),(T=n.channel)==null||T.on(IW,function(I){let{ref:B}=sn(this,e),k=I.v?Ece(I):I.stories;if(B)e.setRef(B.id,{...B,setStoriesData:k},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),(P=n.channel)==null||P.on(AW,function({kind:I,title:B=I,story:k,name:z=k,storyId:F,...q}){let{ref:U}=sn(this,e);U?e.selectStory(F||B,z,{...q,ref:U.id}):e.selectStory(F||B,z,q)}),(_=n.channel)==null||_.on(h5,function({storyId:I,args:B}){let{ref:k}=sn(this,e);s.updateStory(I,{args:B},k)}),(N=n.channel)==null||N.on(wW,function(I){let{ref:B}=sn(this,e);s.setPreviewInitialized(B)}),(V=n.channel)==null||V.on(LW,function(I){let{ref:B}=sn(this,e);s.setPreviewInitialized(B)}),(L=n.channel)==null||L.on(zp,()=>{var F,q;let I=((q=(F=n.getConfig())==null?void 0:F.sidebar)==null?void 0:q.filters)||{},{includedTagFilters:B,excludedTagFilters:k,tagPresets:z}=t.getState();t.setState({filters:{...t.getState().filters,...I,[N$]:k$(z),[pv]:hv(B,k)}})}),I$.onAllStatusChange(async()=>{let{internal_index:I}=t.getState();if(!I)return;await s.setIndex(I);let B=await e.getRefs();Object.entries(B).forEach(([k,{internal_index:z,...F}])=>{e.setRef(k,{...F,storyIndex:z},!0)})});let d=((Y=(K=n.getConfig())==null?void 0:K.sidebar)==null?void 0:Y.filters)||{},f=Re.TAGS_OPTIONS||{},p=tL(f),h=t.getState(),g=h.includedTagFilters??(($=h.layout)==null?void 0:$.includedTagFilters)??p.included,y=h.excludedTagFilters??((M=h.layout)==null?void 0:M.excludedTagFilters)??p.excluded,E={...d,[N$]:k$(f),[pv]:hv(g,y)};return{api:s,state:{storyId:o,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:E,tagPresets:f,defaultIncludedTagFilters:p.included,defaultExcludedTagFilters:p.excluded,includedTagFilters:g,excludedTagFilters:y},init:async()=>{var I;(I=n.channel)==null||I.on(MW,()=>s.fetchIndex()),await s.fetchIndex()}}},rL={};Wt(rL,{init:()=>nde});var D$=it(od(),1),Ha=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},M$=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),L$=(e,t)=>{let r=M$(e),n=M$(t);return Object.entries({...r,...n}).map(([o,i])=>`${o}:${i}`).join(";")},gv,rde=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:i,panel:a,nav:s,shortcuts:c,addonPanel:d,tabs:f,path:p,...h}=Xse(e),g,y,E;Ha(i)===!0?(g=0,y=0,E=0):Ha(i)===!1&&(g=Kc,y=dh,E=fh),o||(Ha(s)===!0&&(g=Kc),Ha(s)===!1&&(g=0)),Ha(a)===!1&&(y=0,E=0);let w={navSize:g,bottomPanelHeight:y,rightPanelWidth:E,panelPosition:["right","bottom"].includes(a)?a:void 0,showTabs:Ha(f)},b={enableShortcuts:Ha(c)},S=d||void 0,R=n,O=Co(gv,h)?gv:h;return gv=O,{viewMode:r,layout:w,ui:b,selectedPanel:S,location:e,path:t,customQueryParams:O,storyId:R}},nde=e=>{var d,f,p,h;let{store:t,navigate:r,provider:n,fullAPI:o}=e,i=(g,y={},E={})=>{let w=Object.entries(y).filter(([,S])=>S).sort(([S],[R])=>S<R?-1:1).map(([S,R])=>`${S}=${R}`),b=[g,...w].join("&");return r(b,E)},a={getStoryHrefs(g,y={}){let{id:E,refId:w}=o.getCurrentStoryData()??{},b=g===E&&y.refId===w,{customQueryParams:S,location:R,refs:O}=t.getState(),{base:D,inheritArgs:T=b,inheritGlobals:P=!0,queryParams:_={},refId:N,viewMode:V="story"}=y;if(N&&!O[N])throw new Error(`Invalid refId: ${N}`);let L=R.pathname||"/",K=Re.window.location.origin+L,Y=Re.STORYBOOK_NETWORK_ADDRESS??K,$=D==="origin"?K:D==="network"?Y:L,M=N?O[N].url+"/iframe.html":Re.PREVIEW_URL||`${$.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,I=N?`&refId=${encodeURIComponent(N)}`:"",{args:B="",globals:k="",...z}=_,F=T?L$((S==null?void 0:S.args)??"",B):B,q=P?L$((S==null?void 0:S.globals)??"",k):k,U=(0,D$.stringify)(z,{nesting:!0,nestingSyntax:"js"}),Z=(0,D$.stringify)(EW(z,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return F=F&&`&args=${F}`,q=q&&`&globals=${q}`,U=U&&`&${U}`,Z=Z&&`&${Z}`,{managerHref:`${$}?path=/${V}/${N?`${N}_`:""}${g}${F}${q}${U}`,previewHref:`${M}?id=${g}&viewMode=${V}${I}${F}${N?"":q}${Z}`}},getQueryParam(g){let{customQueryParams:y}=t.getState();return y?y[g]:void 0},getUrlState(){let{location:g,path:y,customQueryParams:E,storyId:w,url:b,viewMode:S}=t.getState();return{path:y,hash:g.hash??"",queryParams:E,storyId:w,url:b,viewMode:S}},setQueryParams(g){var b;let{customQueryParams:y}=t.getState(),E={},w={...y,...Object.entries(g).reduce((S,[R,O])=>(O!==null&&(S[R]=O),S),E)};Co(y,w)||(t.setState({customQueryParams:w}),(b=n.channel)==null||b.emit(qW,w))},applyQueryParams(g,y){let{path:E,hash:w="",queryParams:b}=a.getUrlState();i(`${E}${w}`,{...b,...g},y),a.setQueryParams(g)},navigateUrl(g,y){r(g,{plain:!0,...y})}},s=()=>{let{path:g,hash:y="",queryParams:E,viewMode:w}=a.getUrlState();if(w!=="story")return;let b=o.getCurrentStoryData();if((b==null?void 0:b.type)!=="story")return;let{args:S,initialArgs:R}=b,O=OP(R,S);i(`${g}${y}`,{...E,args:O},{replace:!0}),a.setQueryParams({args:O})};(d=n.channel)==null||d.on(kw,()=>s());let c;return(f=n.channel)==null||f.on(h5,()=>{"requestIdleCallback"in Re.window?(c&&Re.window.cancelIdleCallback(c),c=Re.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),(p=n.channel)==null||p.on(p5,({userGlobals:g,initialGlobals:y})=>{let{path:E,hash:w="",queryParams:b}=a.getUrlState(),S=OP(y,il(y,g));i(`${E}${w}`,{...b,globals:S},{replace:!0}),a.setQueryParams({globals:S})}),(h=n.channel)==null||h.on(CW,(g,y)=>{a.navigateUrl(g,y)}),{api:a,state:rde(e)}},nL={};Wt(nL,{init:()=>sde});var ode=it(pi(),1),ide="10.3.6",{VERSIONCHECK:ade}=Re,B$=(0,ode.default)(1)(()=>{try{return{...JSON.parse(ade).data||{}}}catch{return{}}}),lde=e=>e.includes("vue")?"vue":e,sde=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:ide},...B$()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:i,current:a}}=e.getState();return a&&ln.prerelease(a.version)&&i?o&&ln.gt(o.version,i.version)?o:i:o},getDocsUrl:({asset:o,subpath:i=o,versioned:a,renderer:s,ref:c="ui"})=>{var w,b;let{versions:d}=e.getState(),f=(w=d.latest)==null?void 0:w.version,p=(b=d.current)==null?void 0:b.version,h=(p==null?void 0:p.startsWith("0.0.0"))&&f||p,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&h)g+=`${ln.major(h)}.${ln.minor(h)}/`;else if(a&&h&&f){let S=ln.diff(f,h);S==="patch"||S===null||(g+=`${ln.major(h)}.${ln.minor(h)}/`)}let[y,E]=(i==null?void 0:i.split("#"))||[];if(y&&(g+=o?y:`${y}/`),s&&typeof Re.STORYBOOK_RENDERER<"u"){let S=Re.STORYBOOK_RENDERER;S&&(g+=`?renderer=${lde(S)}`)}return c&&(g+=`${g.includes("?")?"&":"?"}ref=${c}`),E&&(g+=`#${E}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),i=n.getCurrentVersion();if(o){if(!o.version||!i.version)return!0;let a=ln.prerelease(i.version)?`${ln.major(i.version)}.${ln.minor(i.version)}.${ln.patch(i.version)}`:i.version,s=ln.diff(a,o.version);return ln.gt(o.version,a)&&s!=="patch"&&!s.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:i,next:a}=B$();await e.setState({versions:{...o,latest:i,next:a}})},state:r,api:n}},oL={};Wt(oL,{init:()=>cde});var F$="whats-new",ude=({color:e="currentColor",size:t=14})=>H.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),cde=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(c){t.setState({whatsNewData:c}),n.whatsNewData=c}let i={isWhatsNewUnread(){var c;return((c=n.whatsNewData)==null?void 0:c.status)==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){var c;((c=n.whatsNewData)==null?void 0:c.status)==="SUCCESS"&&(s({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(F$))},toggleWhatsNewNotifications(){var c,d;((c=n.whatsNewData)==null?void 0:c.status)==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),(d=r.channel)==null||d.emit(VW,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function a(){var c;return(c=r.channel)==null||c.emit(UW),new Promise(d=>{var f;return(f=r.channel)==null?void 0:f.once(zW,({data:p})=>d(p))})}function s(c){var d;(d=r.channel)==null||d.emit(KW,c)}return{init:async()=>{var f;if(Re.CONFIG_TYPE!=="DEVELOPMENT")return;let c=await a();o(c);let d=e.getUrlState();!((d==null?void 0:d.path)==="/onboarding"||((f=d.queryParams)==null?void 0:f.onboarding)==="true")&&c.status==="SUCCESS"&&!c.disableWhatsNewNotifications&&c.showNotification&&e.addNotification({id:F$,link:"/settings/whats-new",content:{headline:c.title,subHeadline:"Learn what's new in Storybook"},icon:H.createElement(ude,null),onClear({dismissed:p}){p&&s({lastDismissedPost:c.url})}})},state:n,api:i}},ac=it(uce(),1),dde=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),IV(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?kV(n):r||n})};dde(ac.default._);var iL="@storybook/manager/store";function CE(e){return e.get(iL)||{}}function fde(e,t){return e.set(iL,t)}function pde(e,t){let r=CE(e);return fde(e,{...r,...t})}var hde=class{constructor({allowPersistence:e,setState:t,getState:r}){this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}getInitialState(e){return{...e,...CE(ac.default.local),...CE(ac.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:i="none"}=o||{},a={},s={};typeof e=="function"?a=d=>(s=e(d),s):(a=e,s=a);let c=await new Promise(d=>{this.upstreamSetState(a,()=>{d(this.getState())})});if(i!=="none"&&this.upstreamPersistence){let d=i==="session"?ac.default.session:ac.default.local;await pde(d,s)}return n&&n(c),c}},{ActiveTabs:jwe}=gx,aL=cce({api:void 0,state:vE({})}),mde=(...e)=>dce({},...e),gde=class extends x.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(E=>{"init"in E&&E.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:i,storyId:a,docsOptions:s,navigate:c}=e,d=new hde({getState:()=>this.state,setState:(E,w)=>(this.setState(E,()=>w(this.state)),this.state)}),f={location:t,path:r,viewMode:o,singleStory:i,storyId:a,refId:n},p={docsOptions:s};this.state=d.getInitialState(vE({...f,...p}));let h={navigate:c,store:d,provider:e.provider};this.modules=[YM,FM,BM,gx,WM,XM,JM,ZM,qM,jM,rL,nL,oL,GM].map(E=>E.init({...f,...p,...h,state:this.state,fullAPI:this.api}));let g=vE(this.state,...this.modules.map(E=>E.state)),y=Object.assign(this.api,{navigate:c},...this.modules.map(E=>E.api));this.state=g,this.api=y}static getDerivedStateFromProps(e,t){return t.path!==e.path?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!To(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return H.createElement(yde,{effect:this.initModules},H.createElement(aL.Provider,{value:t},H.createElement(vde,null,e)))}};gde.displayName="Manager";var yde=({children:e,effect:t})=>(H.useEffect(t,[]),e),bde=e=>e;function vde({filter:e=bde,children:t}){let r=x.useContext(aL),n=x.useRef(t),o=x.useRef(e);if(typeof n.current!="function")return H.createElement(x.Fragment,null,n.current);let i=o.current(r),a=x.useMemo(()=>[...Object.entries(i).reduce((s,c)=>s.concat(c),[])],[r.state]);return x.useMemo(()=>{let s=n.current;return H.createElement(s,{...i})},a)}globalThis.STORYBOOK_ADDON_STATE={};var Ede={id:"storybook/test-provider",leader:!0,initialState:{}};function wde({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:i=>e.subscribe("run-all",i),onClearAll:i=>e.subscribe("clear-all",i)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:i=>e.subscribe("settings-changed",i),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=i=>{let a=()=>e.getState()[i]??"test-provider-state:pending",s=c=>{e.untilReady().then(()=>{e.setState(d=>({...d,[i]:c}))})};return{...r,testProviderId:i,getState:a,setState:s,runWithState:async c=>{s("test-provider-state:running");try{await c(),s("test-provider-state:succeeded")}catch{s("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:i=>t(e,i)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}wde({universalTestProviderStore:ww.create({...Ede,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:eL});var Sde={items:{accessibilityTests:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},publishStorybook:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},xde={id:"storybook/checklist",initialState:Sde};ww.create({...xde,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var yv={exports:{}},bv={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var j$;function Cde(){if(j$)return bv;j$=1;var e=Ph();function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(p,h){var g=h(),y=n({inst:{value:g,getSnapshot:h}}),E=y[0].inst,w=y[1];return i(function(){E.value=g,E.getSnapshot=h,c(E)&&w({inst:E})},[p,g,h]),o(function(){return c(E)&&w({inst:E}),p(function(){c(E)&&w({inst:E})})},[p]),a(g),g}function c(p){var h=p.getSnapshot;p=p.value;try{var g=h();return!r(p,g)}catch{return!0}}function d(p,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return bv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,bv}var q$;function Tde(){return q$||(q$=1,yv.exports=Cde()),yv.exports}var _de=Tde(),kt=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},eu=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),Om=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),ur=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),xl={margin:"16px 0"},Rde=Q.div(ur),Ade=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return H.createElement("a",{href:r,target:n,...t})},Pde=Q(Ade)(({theme:e})=>({...ur({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}})),$de=Q.blockquote(({theme:e})=>({...ur({theme:e}),...xl,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),al=[],Ds=null,Ode=x.lazy(async()=>{let{SyntaxHighlighter:e}=await vs(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-OH4MV7E3-QIwo8fvs.js");return{SyntaxHighlighter:t}},[],import.meta.url);return al.length>0&&(al.forEach(t=>{e.registerLanguage(...t)}),al=[]),Ds===null&&(Ds=e),{default:t=>H.createElement(e,{...t})}}),Ide=x.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([vs(()=>import("./syntaxhighlighter-OH4MV7E3-QIwo8fvs.js"),[],import.meta.url),vs(()=>import("./formatter-EIJCOSYU-BprGK1n7.js"),[],import.meta.url)]);return al.length>0&&(al.forEach(r=>{e.registerLanguage(...r)}),al=[]),Ds===null&&(Ds=e),{default:r=>H.createElement(e,{...r,formatter:t})}}),lL=e=>H.createElement(x.Suspense,{fallback:H.createElement("div",null)},e.format!==!1?H.createElement(Ide,{...e}):H.createElement(Ode,{...e}));lL.registerLanguage=(...e)=>{if(Ds!==null){Ds.registerLanguage(...e);return}al.push(e)};var Nde=e=>typeof e=="string",kde=/[\n\r]/g,Dde=Q.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...Om({theme:e})})),Mde=Q(lL)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Lde=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=x.Children.toArray(t);return o.filter(Nde).some(i=>i.match(kde))?H.createElement(Mde,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):H.createElement(Dde,{...r,className:e},o)},Bde=Q.dl(({theme:e})=>({...ur({theme:e}),...xl,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),Fde=Q.div(ur),jde=Q.h1(({theme:e})=>({...ur({theme:e}),...eu({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),qde=Q.h2(({theme:e})=>({...ur({theme:e}),...eu({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Hde=Q.h3(({theme:e})=>({...ur({theme:e}),...eu({theme:e}),fontSize:`${e.typography.size.m1}px`})),Ude=Q.h4(({theme:e})=>({...ur({theme:e}),...eu({theme:e}),fontSize:`${e.typography.size.s3}px`})),zde=Q.h5(({theme:e})=>({...ur({theme:e}),...eu({theme:e}),fontSize:`${e.typography.size.s2}px`})),Kde=Q.h6(({theme:e})=>({...ur({theme:e}),...eu({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),Vde=Q.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),Wde=Q.img({maxWidth:"100%"}),Gde=Q.li(({theme:e})=>({...ur({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Om({theme:e})})),Yde={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Xde=Q.ol(({theme:e})=>({...ur({theme:e}),...xl,...Yde,listStyle:"decimal"})),Jde=Q.p(({theme:e})=>({...ur({theme:e}),...xl,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Om({theme:e})})),Qde=Q.pre(({theme:e})=>({...ur({theme:e}),...xl,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),Zde=Q.span(({theme:e})=>({...ur({theme:e}),"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),efe=Q.title(Om),tfe=Q.table(({theme:e})=>({...ur({theme:e}),...xl,fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),rfe={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},nfe=Q.ul(({theme:e})=>({...ur({theme:e}),...xl,...rfe,listStyle:"disc"})),ofe={h1:e=>H.createElement(jde,{...kt(e,"h1")}),h2:e=>H.createElement(qde,{...kt(e,"h2")}),h3:e=>H.createElement(Hde,{...kt(e,"h3")}),h4:e=>H.createElement(Ude,{...kt(e,"h4")}),h5:e=>H.createElement(zde,{...kt(e,"h5")}),h6:e=>H.createElement(Kde,{...kt(e,"h6")}),pre:e=>H.createElement(Qde,{...kt(e,"pre")}),a:e=>H.createElement(Pde,{...kt(e,"a")}),hr:e=>H.createElement(Vde,{...kt(e,"hr")}),dl:e=>H.createElement(Bde,{...kt(e,"dl")}),blockquote:e=>H.createElement($de,{...kt(e,"blockquote")}),table:e=>H.createElement(tfe,{...kt(e,"table")}),img:e=>H.createElement(Wde,{...kt(e,"img")}),div:e=>H.createElement(Fde,{...kt(e,"div")}),span:e=>H.createElement(Zde,{...kt(e,"span")}),li:e=>H.createElement(Gde,{...kt(e,"li")}),ul:e=>H.createElement(nfe,{...kt(e,"ul")}),ol:e=>H.createElement(Xde,{...kt(e,"ol")}),p:e=>H.createElement(Jde,{...kt(e,"p")}),code:e=>H.createElement(Lde,{...kt(e,"code")}),tt:e=>H.createElement(efe,{...kt(e,"tt")}),resetwrapper:e=>H.createElement(Rde,{...kt(e,"resetwrapper")})};Q.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${di(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Rr(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${di(.9,e.color.secondary)}`};default:return{}}});var ife=0,afe=e=>e.button===ife&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,lfe=(e,t)=>{afe(e)&&(e.preventDefault(),t(e))},sfe=Q.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),ufe=Q.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Rr(.07,e.color.secondary),"svg path:not([fill])":{fill:Rr(.07,e.color.secondary)}},"&:active":{color:Rr(.1,e.color.secondary),"svg path:not([fill])":{fill:Rr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),cfe=x.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:i=void 0,isButton:a=void 0,href:s,...c},d)=>(a!==void 0&&Ht("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),H.createElement(ufe,{as:s?"a":"button",href:s,...c,ref:d,isButton:!s||a===!0,onClick:r&&e?f=>lfe(f,r):r,className:i},H.createElement(sfe,{withArrow:n,containsIcon:o},t,n&&H.createElement(_U,null)))));cfe.displayName="Link";Q.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));function H$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dfe(...e){return t=>{let r=!1,n=e.map(o=>{let i=H$(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){let i=n[o];typeof i=="function"?i():H$(e[o],null)}}}}var ffe=Symbol.for("react.lazy"),ph=_9[" use ".trim().toString()];function pfe(e){return typeof e=="object"&&e!==null&&"then"in e}function sL(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ffe&&"_payload"in e&&pfe(e._payload)}function hfe(e){let t=gfe(e),r=x.forwardRef((n,o)=>{let{children:i,...a}=n;sL(i)&&typeof ph=="function"&&(i=ph(i._payload));let s=x.Children.toArray(i),c=s.find(bfe);if(c){let d=c.props.children,f=s.map(p=>p===c?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:p);return re.jsx(t,{...a,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,f):null})}return re.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var mfe=hfe("Slot");function gfe(e){let t=x.forwardRef((r,n)=>{let{children:o,...i}=r;if(sL(o)&&typeof ph=="function"&&(o=ph(o._payload)),x.isValidElement(o)){let a=Efe(o),s=vfe(i,o.props);return o.type!==x.Fragment&&(s.ref=n?dfe(n,a):a),x.cloneElement(o,s)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yfe=Symbol("radix.slottable");function bfe(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yfe}function vfe(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{let s=i(...a);return o(...a),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Efe(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var wfe=Q.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),Sfe=({note:e,...t})=>H.createElement(wfe,{...t},e),ct=typeof document<"u"?H.useLayoutEffect:()=>{};function xfe(e){let[t,r]=x.useState(e),n=x.useRef(t),o=x.useRef(null),i=x.useRef(()=>{if(!o.current)return;let s=o.current.next();if(s.done){o.current=null;return}n.current===s.value?i.current():r(s.value)});ct(()=>{n.current=t,o.current&&i.current()});let a=x.useCallback(s=>{o.current=s(n.current),i.current()},[i]);return[t,a]}var uL={prefix:String(Math.round(Math.random()*1e10)),current:0},cL=H.createContext(uL),Cfe=H.createContext(!1),vv=new WeakMap;function Tfe(e=!1){let t=x.useContext(cL),r=x.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=vv.get(i);a==null?vv.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,vv.delete(i))}r.current=++t.current}return r.current}function _fe(e){let t=x.useContext(cL),r=Tfe(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function Rfe(e){let t=H.useId(),[r]=x.useState(Cl()),n=r?"react-aria":`react-aria${uL.prefix}`;return e||`${n}-${t}`}var Afe=typeof H.useId=="function"?Rfe:_fe;function Pfe(){return!1}function $fe(){return!0}function Ofe(e){return()=>{}}function Cl(){return typeof H.useSyncExternalStore=="function"?H.useSyncExternalStore(Ofe,Pfe,$fe):x.useContext(Cfe)}var Ife=!!(typeof window<"u"&&window.document&&window.document.createElement),fs=new Map,lc;typeof FinalizationRegistry<"u"&&(lc=new FinalizationRegistry(e=>{fs.delete(e)}));function yr(e){let[t,r]=x.useState(e),n=x.useRef(null),o=Afe(t),i=x.useRef(null);if(lc&&lc.register(i,o),Ife){let a=fs.get(o);a&&!a.includes(n)?a.push(n):fs.set(o,[n])}return ct(()=>{let a=o;return()=>{lc&&lc.unregister(i),fs.delete(a)}},[o]),x.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function Nfe(e,t){if(e===t)return e;let r=fs.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=fs.get(t);return n?(n.forEach(o=>o.current=e),e):t}function $p(e=[]){let t=yr(),[r,n]=xfe(t),o=x.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ct(o,[t,o,...e]),r}function vd(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var ft=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Dn=e=>e&&"window"in e&&e.window===e?e:ft(e).defaultView||window;function In(e,t){return t&&e?e.contains(t):!1}var Pr=(e=document)=>e.activeElement;function qt(e){return e.target}function kfe(e,t,r,n){return e.createTreeWalker(t,r,n)}function dL(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=dL(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Dfe(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=dL(e))&&(n&&(n+=" "),n+=t);return n}var Mfe=Dfe;function He(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=vd(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Mfe(i,a):o==="id"&&i&&a?t.id=Nfe(i,a):t[o]=a!==void 0?a:i}}return t}function yx(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let i=U$(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():U$(e[i],null)})}}}function U$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var Lfe=new Set(["id"]),Bfe=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ffe=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),jfe=new Set(["dir","lang","hidden","inert","translate"]),z$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),qfe=/^(data-.*)$/;function Lt(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,s={};for(let c in e)Object.prototype.hasOwnProperty.call(e,c)&&(Lfe.has(c)||r&&Bfe.has(c)||n&&Ffe.has(c)||o&&jfe.has(c)||i&&(z$.has(c)||c.endsWith("Capture")&&z$.has(c.slice(0,-7)))||a!=null&&a.has(c)||qfe.test(c))&&(s[c]=e[c]);return s}function Yr(e){if(Hfe())e.focus({preventScroll:!0});else{let t=Ufe(e);e.focus(),zfe(t)}}var np=null;function Hfe(){if(np==null){np=!1;try{document.createElement("div").focus({get preventScroll(){return np=!0,!0}})}catch{}}return np}function Ufe(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function zfe(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Im(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function bx(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function bi(e){let t=null;return()=>(t==null&&(t=e()),t)}var ml=bi(function(){return bx(/^Mac/i)}),Kfe=bi(function(){return bx(/^iPhone/i)}),fL=bi(function(){return bx(/^iPad/i)||ml()&&navigator.maxTouchPoints>1}),Nm=bi(function(){return Kfe()||fL()}),Vfe=bi(function(){return ml()||Nm()}),pL=bi(function(){return Im(/AppleWebKit/i)&&!hL()}),hL=bi(function(){return Im(/Chrome/i)}),vx=bi(function(){return Im(/Android/i)}),Wfe=bi(function(){return Im(/Firefox/i)}),Gfe=x.createContext({isNative:!0,open:Jfe,useHref:e=>e});function km(){return x.useContext(Gfe)}function Yfe(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function gl(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:c}=t;Wfe()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(ml()?i=!0:a=!0);let d=pL()&&ml()&&!fL()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});gl.isOpening=r,Yr(e),e.dispatchEvent(d),gl.isOpening=!1}gl.isOpening=!1;function Xfe(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function Jfe(e,t){Xfe(e,r=>gl(r,t))}function mL(e){let t=km();var r;let n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function Qfe(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Yfe(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var ra=new Map,TE=new Set;function K$(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=ra.get(n.target);o||(o=new Set,ra.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=ra.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),ra.delete(n.target)),ra.size===0)){for(let i of TE)i();TE.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?K$():document.addEventListener("DOMContentLoaded",K$));function Zfe(){for(let[e]of ra)"isConnected"in e&&!e.isConnected&&ra.delete(e)}function gL(e){requestAnimationFrame(()=>{Zfe(),ra.size===0?e():TE.add(e)})}function Dm(){let e=x.useRef(new Map),t=x.useCallback((o,i,a,s)=>{let c=s!=null&&s.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:i,eventTarget:o,fn:c,options:s}),o.addEventListener(i,c,s)},[]),r=x.useCallback((o,i,a,s)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;o.removeEventListener(i,d,s),e.current.delete(a)},[]),n=x.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return x.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Mm(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=yr(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function lo(e){let t=x.useRef(null),r=x.useRef(void 0),n=x.useCallback(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return x.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}var Ev,epe=(Ev=H.useInsertionEffect)!==null&&Ev!==void 0?Ev:ct;function hr(e){let t=x.useRef(null);return epe(()=>{t.current=e},[e]),x.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function V$(e,t){let r=x.useRef(!0),n=x.useRef(null);ct(()=>(r.current=!0,()=>{r.current=!1}),[]),ct(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function tpe(){return typeof window.ResizeObserver<"u"}function hh(e){let{ref:t,box:r,onResize:n}=e,o=hr(n);x.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(tpe()){let a=new window.ResizeObserver(s=>{s.length&&o()});return a.observe(i,{box:r}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Ex(e,t){ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ms(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function yL(e,t){let r=e;for(Ms(r,t)&&(r=r.parentElement);r&&!Ms(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function rpe(e,t){let r=[];for(;e&&e!==document.documentElement;)Ms(e,t)&&r.push(e),e=e.parentElement;return r}function rs(e){return ml()?e.metaKey:e.ctrlKey}var npe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function wv(e){return e instanceof HTMLInputElement&&!npe.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var ope=0,Sv=new Map;function ipe(e){let[t,r]=x.useState();return ct(()=>{if(!e)return;let n=Sv.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${ope++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},Sv.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Sv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function sc(e,t,r,n){let o=hr(r),i=r==null;x.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i])}function bL(e,t){let r=W$(e,t,"left"),n=W$(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d,scrollPaddingTop:f,scrollPaddingRight:p,scrollPaddingBottom:h,scrollPaddingLeft:g}=getComputedStyle(e),y=a+parseInt(d,10),E=s+parseInt(c,10),w=y+e.clientWidth,b=E+e.clientHeight,S=parseInt(f,10)||0,R=parseInt(h,10)||0,O=parseInt(p,10)||0,D=parseInt(g,10)||0;r<=a+D?a=r-parseInt(d,10)-D:r+o>w-O&&(a+=r+o-w+O),n<=E+S?s=n-parseInt(c,10)-S:n+i>b-R&&(s+=n+i-b+R),e.scrollLeft=a,e.scrollTop=s}function W$(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function G$(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,s=window.getComputedStyle(a).overflow==="hidden";if(s){let c=rpe(e);s||c.push(a);for(let d of c)bL(d,e)}else{var r;let{left:c,top:d}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:f,top:p}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-p)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function vL(e){return e.pointerType===""&&e.isTrusted?!0:vx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ape(e){return!vx()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Y$(e){let t=x.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var lpe="react-aria-clear-focus",spe="react-aria-focus";function EL(e,t=!0){let[r,n]=x.useState(!0),o=r&&t;return ct(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),SL(e,o,x.useCallback(()=>n(!1),[])),o}function wL(e,t){let[r,n]=x.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return SL(e,o,x.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function SL(e,t,r){ct(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||td.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var upe=typeof Element<"u"&&"checkVisibility"in Element.prototype;function cpe(e){let t=Dn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:i}=e.ownerDocument.defaultView,{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function dpe(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function wx(e,t){return upe?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&cpe(e)&&dpe(e,t)&&(!e.parentElement||wx(e.parentElement,e))}var Sx=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],fpe=Sx.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Sx.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var ppe=Sx.join(':not([hidden]):not([tabindex="-1"]),');function xL(e){return e.matches(fpe)&&wx(e)&&!CL(e)}function hpe(e){return e.matches(ppe)&&wx(e)&&!CL(e)}function CL(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var xv,mpe=typeof document<"u"?(xv=H.useInsertionEffect)!==null&&xv!==void 0?xv:H.useLayoutEffect:()=>{};function Lm(e,t,r){let[n,o]=x.useState(e||t),i=x.useRef(n),a=x.useRef(e!==void 0),s=e!==void 0;x.useEffect(()=>{a.current,a.current=s},[s]);let c=s?e:n;mpe(()=>{i.current=c});let[,d]=x.useReducer(()=>({}),{}),f=x.useCallback((p,...h)=>{let g=typeof p=="function"?p(i.current):p;Object.is(i.current,g)||(i.current=g,o(g),d(),r==null||r(g,...h))},[r]);return[c,f]}function Vc(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function xx(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function TL(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function _L(e){let t=x.useRef({isFocused:!1,observer:null});ct(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=hr(n=>{e==null||e(n)});return x.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let s=xx(a);r(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var mh=!1;function gpe(e){for(;e&&!xL(e);)e=e.parentElement;let t=Dn(e),r=t.document.activeElement;if(!r||r===e)return;mh=!0;let n=!1,o=f=>{(f.target===r||n)&&f.stopImmediatePropagation()},i=f=>{(f.target===r||n)&&(f.stopImmediatePropagation(),!e&&!n&&(n=!0,Yr(r),c()))},a=f=>{(f.target===e||n)&&f.stopImmediatePropagation()},s=f=>{(f.target===e||n)&&(f.stopImmediatePropagation(),n||(n=!0,Yr(r),c()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let c=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),mh=!1,n=!1},d=requestAnimationFrame(c);return c}var as="default",_E="",Op=new WeakMap;function ype(e){if(Nm()){if(as==="default"){let t=ft(e);_E=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}as="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Op.set(e,e.style[t]),e.style[t]="none"}}function X$(e){if(Nm()){if(as!=="disabled")return;as="restoring",setTimeout(()=>{gL(()=>{if(as==="restoring"){let t=ft(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=_E||""),_E="",as="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Op.has(e)){let t=Op.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Op.delete(e)}}var Wc=H.createContext({register:()=>{}});Wc.displayName="PressResponderContext";function bpe(e,t){return t.get?t.get.call(e):t.value}function RL(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function vpe(e,t){var r=RL(e,t,"get");return bpe(e,r)}function Epe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function wpe(e,t,r){Epe(e,t),t.set(e,r)}function Spe(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function J$(e,t,r){var n=RL(e,t,"set");return Spe(e,n,r),r}function xpe(e){let t=x.useContext(Wc);if(t){let{register:r,...n}=t;e=He(n,e),r()}return Ex(t,e.ref),e}var op=new WeakMap,ip=class{continuePropagation(){J$(this,op,!1)}get shouldStopPropagation(){return vpe(this,op)}constructor(e,t,r,n){wpe(this,op,{writable:!0,value:void 0}),J$(this,op,!0);var o;let i=(o=n==null?void 0:n.target)!==null&&o!==void 0?o:r.currentTarget,a=i==null?void 0:i.getBoundingClientRect(),s,c=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(s=d-a.left,c=f-a.top):(s=a.width/2,c=a.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=s,this.y=c}},Q$=Symbol("linkClicked"),Z$="react-aria-pressable-style",eO="data-react-aria-pressable";function Ed(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:p,ref:h,...g}=xpe(e),[y,E]=x.useState(!1),w=x.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:S}=Dm(),R=hr((L,K)=>{let Y=w.current;if(s||Y.didFirePressStart)return!1;let $=!0;if(Y.isTriggeringEvent=!0,n){let M=new ip("pressstart",K,L);n(M),$=M.shouldStopPropagation}return r&&r(!0),Y.isTriggeringEvent=!1,Y.didFirePressStart=!0,E(!0),$}),O=hr((L,K,Y=!0)=>{let $=w.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let M=!0;if(o){let I=new ip("pressend",K,L);o(I),M=I.shouldStopPropagation}if(r&&r(!1),E(!1),t&&Y&&!s){let I=new ip("press",K,L);t(I),M&&(M=I.shouldStopPropagation)}return $.isTriggeringEvent=!1,M}),D=hr((L,K)=>{let Y=w.current;if(s)return!1;if(i){Y.isTriggeringEvent=!0;let $=new ip("pressup",K,L);return i($),Y.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),T=hr(L=>{let K=w.current;if(K.isPressed&&K.target){K.didFirePressStart&&K.pointerType!=null&&O(Ua(K.target,L),K.pointerType,!1),K.isPressed=!1,K.isOverTarget=!1,K.activePointerId=null,K.pointerType=null,S(),p||X$(K.target);for(let Y of K.disposables)Y();K.disposables=[]}}),P=hr(L=>{f&&T(L)}),_=hr(L=>{s||(a==null||a(L))}),N=hr((L,K)=>{if(!s&&a){let Y=new MouseEvent("click",L);TL(Y,K),a(xx(Y))}}),V=x.useMemo(()=>{let L=w.current,K={onKeyDown($){if(Cv($.nativeEvent,$.currentTarget)&&In($.currentTarget,qt($.nativeEvent))){var M;tO(qt($.nativeEvent),$.key)&&$.preventDefault();let I=!0;if(!L.isPressed&&!$.repeat){L.target=$.currentTarget,L.isPressed=!0,L.pointerType="keyboard",I=R($,"keyboard");let B=$.currentTarget,k=z=>{Cv(z,B)&&!z.repeat&&In(B,qt(z))&&L.target&&D(Ua(L.target,z),"keyboard")};b(ft($.currentTarget),"keyup",vd(k,Y),!0)}I&&$.stopPropagation(),$.metaKey&&ml()&&((M=L.metaKeyEvents)===null||M===void 0||M.set($.key,$.nativeEvent))}else $.key==="Meta"&&(L.metaKeyEvents=new Map)},onClick($){if(!($&&!In($.currentTarget,qt($.nativeEvent)))&&$&&$.button===0&&!L.isTriggeringEvent&&!gl.isOpening){let M=!0;if(s&&$.preventDefault(),!L.ignoreEmulatedMouseEvents&&!L.isPressed&&(L.pointerType==="virtual"||vL($.nativeEvent))){let I=R($,"virtual"),B=D($,"virtual"),k=O($,"virtual");_($),M=I&&B&&k}else if(L.isPressed&&L.pointerType!=="keyboard"){let I=L.pointerType||$.nativeEvent.pointerType||"virtual",B=D(Ua($.currentTarget,$),I),k=O(Ua($.currentTarget,$),I,!0);M=B&&k,L.isOverTarget=!1,_($),T($)}L.ignoreEmulatedMouseEvents=!1,M&&$.stopPropagation()}}},Y=$=>{var M;if(L.isPressed&&L.target&&Cv($,L.target)){var I;tO(qt($),$.key)&&$.preventDefault();let k=qt($),z=In(L.target,qt($));O(Ua(L.target,$),"keyboard",z),z&&N($,L.target),S(),$.key!=="Enter"&&Cx(L.target)&&In(L.target,k)&&!$[Q$]&&($[Q$]=!0,gl(L.target,$,!1)),L.isPressed=!1,(I=L.metaKeyEvents)===null||I===void 0||I.delete($.key)}else if($.key==="Meta"&&!((M=L.metaKeyEvents)===null||M===void 0)&&M.size){var B;let k=L.metaKeyEvents;L.metaKeyEvents=void 0;for(let z of k.values())(B=L.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",z))}};if(typeof PointerEvent<"u"){K.onPointerDown=I=>{if(I.button!==0||!In(I.currentTarget,qt(I.nativeEvent)))return;if(ape(I.nativeEvent)){L.pointerType="virtual";return}L.pointerType=I.pointerType;let B=!0;if(!L.isPressed){L.isPressed=!0,L.isOverTarget=!0,L.activePointerId=I.pointerId,L.target=I.currentTarget,p||ype(L.target),B=R(I,L.pointerType);let k=qt(I.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(I.pointerId),b(ft(I.currentTarget),"pointerup",$,!1),b(ft(I.currentTarget),"pointercancel",M,!1)}B&&I.stopPropagation()},K.onMouseDown=I=>{if(In(I.currentTarget,qt(I.nativeEvent))&&I.button===0){if(d){let B=gpe(I.target);B&&L.disposables.push(B)}I.stopPropagation()}},K.onPointerUp=I=>{!In(I.currentTarget,qt(I.nativeEvent))||L.pointerType==="virtual"||I.button===0&&!L.isPressed&&D(I,L.pointerType||I.pointerType)},K.onPointerEnter=I=>{I.pointerId===L.activePointerId&&L.target&&!L.isOverTarget&&L.pointerType!=null&&(L.isOverTarget=!0,R(Ua(L.target,I),L.pointerType))},K.onPointerLeave=I=>{I.pointerId===L.activePointerId&&L.target&&L.isOverTarget&&L.pointerType!=null&&(L.isOverTarget=!1,O(Ua(L.target,I),L.pointerType,!1),P(I))};let $=I=>{if(I.pointerId===L.activePointerId&&L.isPressed&&I.button===0&&L.target){if(In(L.target,qt(I))&&L.pointerType!=null){let B=!1,k=setTimeout(()=>{L.isPressed&&L.target instanceof HTMLElement&&(B?T(I):(Yr(L.target),L.target.click()))},80);b(I.currentTarget,"click",()=>B=!0,!0),L.disposables.push(()=>clearTimeout(k))}else T(I);L.isOverTarget=!1}},M=I=>{T(I)};K.onDragStart=I=>{In(I.currentTarget,qt(I.nativeEvent))&&T(I)}}return K},[b,s,d,S,p,T,P,O,R,D,_,N]);return x.useEffect(()=>{if(!h)return;let L=ft(h.current);if(!L||!L.head||L.getElementById(Z$))return;let K=L.createElement("style");K.id=Z$,K.textContent=`
@layer {
[${eO}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(),L.head.prepend(K)},[h]),x.useEffect(()=>{let L=w.current;return()=>{var K;p||X$((K=L.target)!==null&&K!==void 0?K:void 0);for(let Y of L.disposables)Y();L.disposables=[]}},[p]),{isPressed:c||y,pressProps:He(g,V,{[eO]:!0})}}function Cx(e){return e.tagName==="A"&&e.hasAttribute("href")}function Cv(e,t){let{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Dn(o).HTMLInputElement&&!AL(o,r)||o instanceof Dn(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Cx(o))&&r!=="Enter")}function Ua(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Cpe(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Cx(e)}function tO(e,t){return e instanceof HTMLInputElement?!AL(e,t):Cpe(e)}var Tpe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function AL(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Tpe.has(e.type)}var pa=null,Gc=new Set,yc=new Map,yl=!1,RE=!1,_pe={Tab:!0,Escape:!0};function Tx(e,t){for(let r of Gc)r(e,t)}function Rpe(e){return!(e.metaKey||!ml()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function gh(e){yl=!0,Rpe(e)&&(pa="keyboard",Tx("keyboard",e))}function ps(e){pa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(yl=!0,Tx("pointer",e))}function PL(e){vL(e)&&(yl=!0,pa="virtual")}function $L(e){e.target===window||e.target===document||mh||!e.isTrusted||(!yl&&!RE&&(pa="virtual",Tx("virtual",e)),yl=!1,RE=!1)}function OL(){mh||(yl=!1,RE=!0)}function yh(e){if(typeof window>"u"||typeof document>"u"||yc.get(Dn(e)))return;let t=Dn(e),r=ft(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){yl=!0,n.apply(this,arguments)},r.addEventListener("keydown",gh,!0),r.addEventListener("keyup",gh,!0),r.addEventListener("click",PL,!0),t.addEventListener("focus",$L,!0),t.addEventListener("blur",OL,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",ps,!0),r.addEventListener("pointermove",ps,!0),r.addEventListener("pointerup",ps,!0)),t.addEventListener("beforeunload",()=>{IL(e)},{once:!0}),yc.set(t,{focus:n})}var IL=(e,t)=>{let r=Dn(e),n=ft(e);t&&n.removeEventListener("DOMContentLoaded",t),yc.has(r)&&(r.HTMLElement.prototype.focus=yc.get(r).focus,n.removeEventListener("keydown",gh,!0),n.removeEventListener("keyup",gh,!0),n.removeEventListener("click",PL,!0),r.removeEventListener("focus",$L,!0),r.removeEventListener("blur",OL,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",ps,!0),n.removeEventListener("pointermove",ps,!0),n.removeEventListener("pointerup",ps,!0)),yc.delete(r))};function Ape(e){let t=ft(e),r;return t.readyState!=="loading"?yh(e):(r=()=>{yh(e)},t.addEventListener("DOMContentLoaded",r)),()=>IL(e,r)}typeof document<"u"&&Ape();function Yc(){return pa!=="pointer"}function Xc(){return pa}function Ppe(){yh();let[e,t]=x.useState(pa);return x.useEffect(()=>{let r=()=>{t(pa)};return Gc.add(r),()=>{Gc.delete(r)}},[]),Cl()?null:e}var $pe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ope(e,t,r){let n=ft(r==null?void 0:r.target),o=typeof window<"u"?Dn(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Dn(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Dn(r==null?void 0:r.target).HTMLElement:HTMLElement,s=typeof window<"u"?Dn(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!$pe.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof s&&!_pe[r.key])}function Ipe(e,t,r){yh(),x.useEffect(()=>{let n=(o,i)=>{Ope(!!(r!=null&&r.isTextInput),o,i)&&e(Yc())};return Gc.add(n),()=>{Gc.delete(n)}},t)}function ha(e){let t=ft(e),r=Pr(t);if(Xc()==="virtual"){let n=r;gL(()=>{Pr(t)===n&&e.isConnected&&Yr(e)})}else Yr(e)}function _x(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,i=x.useCallback(c=>{if(c.target===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),a=_L(i),s=x.useCallback(c=>{let d=ft(c.target),f=d?Pr(d):Pr();c.target===c.currentTarget&&f===qt(c.nativeEvent)&&(r&&r(c),o&&o(!0),a(c))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?i:void 0}}}function rO(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function NL(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:rO(e.onKeyDown),onKeyUp:rO(e.onKeyUp)}}}var bh=H.createContext(null);function Npe(e){let t=x.useContext(bh)||{};Ex(t,e);let{ref:r,...n}=t;return n}var kpe=H.forwardRef(function(e,t){let{children:r,...n}=e,o=lo(t),i={...n,ref:o};return H.createElement(bh.Provider,{value:i},r)});function wd(e,t){let{focusProps:r}=_x(e),{keyboardProps:n}=NL(e),o=He(r,n),i=Npe(t),a=e.isDisabled?{}:i,s=x.useRef(e.autoFocus);x.useEffect(()=>{s.current&&t.current&&ha(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:He({...o,tabIndex:c},a)}}var Dpe=x.forwardRef(({children:e,...t},r)=>{r=lo(r);let{focusableProps:n}=wd(t,r),o=H.Children.only(e);x.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(H.version,10)<19?o.ref:o.props.ref;return H.cloneElement(o,{...He(n,o.props),ref:yx(i,r)})}),Mpe=H.forwardRef(({children:e,...t},r)=>{r=lo(r);let{pressProps:n}=Ed({...t,ref:r}),{focusableProps:o}=wd(t,r),i=H.Children.only(e);x.useEffect(()=>{},[r,t.isDisabled]);let a=parseInt(H.version,10)<19?i.ref:i.props.ref;return H.cloneElement(i,{...He(n,o,i.props),ref:yx(a,r)})}),Lpe=H.forwardRef(({children:e,...t},r)=>{let n=x.useRef(!1),o=x.useContext(Wc);r=lo(r||(o==null?void 0:o.ref));let i=He(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return Ex(o,r),x.useEffect(()=>{n.current||(n.current=!0)},[]),H.createElement(Wc.Provider,{value:i},e)});function Bpe({children:e}){let t=x.useMemo(()=>({register:()=>{}}),[]);return H.createElement(Wc.Provider,{value:t},e)}function Rx(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=x.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=Dm(),c=x.useCallback(p=>{p.currentTarget.contains(p.target)&&i.current.isFocusWithin&&!p.currentTarget.contains(p.relatedTarget)&&(i.current.isFocusWithin=!1,s(),r&&r(p),o&&o(!1))},[r,o,i,s]),d=_L(c),f=x.useCallback(p=>{if(!p.currentTarget.contains(p.target))return;let h=ft(p.target),g=Pr(h);if(!i.current.isFocusWithin&&g===qt(p.nativeEvent)){n&&n(p),o&&o(!0),i.current.isFocusWithin=!0,d(p);let y=p.currentTarget;a(h,"focus",E=>{if(i.current.isFocusWithin&&!In(y,E.target)){let w=new h.defaultView.FocusEvent("blur",{relatedTarget:E.target});TL(w,y);let b=xx(w);c(b)}},{capture:!0})}},[n,o,d,a,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:c}}}var AE=!1,ap=0;function Fpe(){AE=!0,setTimeout(()=>{AE=!1},50)}function nO(e){e.pointerType==="touch"&&Fpe()}function jpe(){if(!(typeof document>"u"))return ap===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",nO)),ap++,()=>{ap--,!(ap>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",nO))}}function tu(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=x.useState(!1),s=x.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;x.useEffect(jpe,[]);let{addGlobalListener:c,removeAllGlobalListeners:d}=Dm(),{hoverProps:f,triggerHoverEnd:p}=x.useMemo(()=>{let h=(E,w)=>{if(s.pointerType=w,o||w==="touch"||s.isHovered||!E.currentTarget.contains(E.target))return;s.isHovered=!0;let b=E.currentTarget;s.target=b,c(ft(E.target),"pointerover",S=>{s.isHovered&&s.target&&!In(s.target,S.target)&&g(S,S.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:w}),r&&r(!0),a(!0)},g=(E,w)=>{let b=s.target;s.pointerType="",s.target=null,!(w==="touch"||!s.isHovered||!b)&&(s.isHovered=!1,d(),n&&n({type:"hoverend",target:b,pointerType:w}),r&&r(!1),a(!1))},y={};return typeof PointerEvent<"u"&&(y.onPointerEnter=E=>{AE&&E.pointerType==="mouse"||h(E,E.pointerType)},y.onPointerLeave=E=>{!o&&E.currentTarget.contains(E.target)&&g(E,E.pointerType)}),{hoverProps:y,triggerHoverEnd:g}},[t,r,n,o,s,c,d]);return x.useEffect(()=>{o&&p({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:f,isHovered:i}}function kL(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=x.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=hr(c=>{r&&oO(c,t)&&(o&&o(c),i.current.isPointerDown=!0)}),s=hr(c=>{r&&r(c)});x.useEffect(()=>{let c=i.current;if(n)return;let d=t.current,f=ft(d);if(typeof PointerEvent<"u"){let p=h=>{c.isPointerDown&&oO(h,t)&&s(h),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("click",p,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("click",p,!0)}}},[t,n,a,s])}function oO(e,t){if(e.button>0)return!1;if(e.target){let r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}var qpe=500;function Hpe(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=qpe,accessibilityDescription:a}=e,s=x.useRef(void 0),{addGlobalListener:c,removeGlobalListener:d}=Dm(),{pressProps:f}=Ed({isDisabled:t,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(r&&r({...h,type:"longpressstart"}),s.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),ft(h.target).activeElement!==h.target&&Yr(h.target),o&&o({...h,type:"longpress"}),s.current=void 0},i),h.pointerType==="touch")){let g=y=>{y.preventDefault()};c(h.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(h.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(h){s.current&&clearTimeout(s.current),n&&(h.pointerType==="mouse"||h.pointerType==="touch")&&n({...h,type:"longpressend"})}}),p=ipe(o&&!t?a:void 0);return{longPressProps:He(f,p)}}var vh=Symbol("default");function vi({values:e,children:t}){for(let[r,n]of e)t=H.createElement(r.Provider,{value:n},t);return t}function En(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return x.useMemo(()=>{let c,d,f;return typeof t=="function"?c=t({...s,defaultClassName:o}):c=t,typeof r=="function"?d=r({...s,defaultStyle:a||{}}):d=r,typeof n=="function"?f=n({...s,defaultChildren:i}):n==null?f=i:f=n,{className:c??o,style:d||a?{...a,...d}:void 0,children:f??i,"data-rac":""}},[t,r,n,o,i,a,s])}function Ax(e,t){let r=x.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||vh;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Nr(e,t,r){let n=Ax(r,e.slot)||{},{ref:o,...i}=n,a=lo(x.useMemo(()=>yx(t,o),[t,o])),s=He(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=c=>{let d=typeof i.style=="function"?i.style(c):i.style,f={...c.defaultStyle,...d},p=typeof e.style=="function"?e.style({...c,defaultStyle:f}):e.style;return{...f,...p}}:s.style={...i.style,...e.style}),[s,a]}function DL(e=!0){let[t,r]=x.useState(e),n=x.useRef(!1),o=x.useCallback(i=>{n.current=!0,r(!!i)},[]);return ct(()=>{n.current||r(!1)},[]),[o,t]}var Px=x.createContext({placement:"bottom"});x.forwardRef(function(e,t){[e,t]=Nr(e,t,Px);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=En({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});o.style&&Object.keys(o.style).forEach(a=>o.style[a]===void 0&&delete o.style[a]);let i=Lt(e);return H.createElement("div",{...i,...o,style:{...n,...o.style},ref:t,"data-placement":r})});function Upe(e,t){let r=Lt(e,{labelable:!0}),{hoverProps:n}=tu({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:He(r,n,{role:"tooltip"})}}function zpe(e,t,r){let{isDisabled:n,trigger:o}=e,i=yr(),a=x.useRef(!1),s=x.useRef(!1),c=()=>{(a.current||s.current)&&t.open(s.current)},d=b=>{!a.current&&!s.current&&t.close(b)};x.useEffect(()=>{let b=S=>{r&&r.current&&S.key==="Escape"&&(S.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[r,t]);let f=()=>{o!=="focus"&&(Xc()==="pointer"?a.current=!0:a.current=!1,c())},p=()=>{o!=="focus"&&(s.current=!1,a.current=!1,d())},h=()=>{s.current=!1,a.current=!1,d(!0)},g=()=>{Yc()&&(s.current=!0,c())},y=()=>{s.current=!1,a.current=!1,d(!0)},{hoverProps:E}=tu({isDisabled:n,onHoverStart:f,onHoverEnd:p}),{focusableProps:w}=wd({isDisabled:n,onFocus:g,onBlur:y},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...He(w,E,{onPointerDown:h,onKeyDown:h}),tabIndex:void 0},tooltipProps:{id:i}}}var Ao={top:"top",bottom:"top",left:"left",right:"left"},Eh={top:"bottom",bottom:"top",left:"right",right:"left"},Kpe={top:"left",left:"top"},PE={top:"height",left:"width"},ML={width:"totalWidth",height:"totalHeight"},lp={},ar=typeof document<"u"?window.visualViewport:null;function iO(e){let t=0,r=0,n=0,o=0,i=0,a=0,s={};var c;let d=((c=ar==null?void 0:ar.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;n=y.clientWidth,o=y.clientHeight;var f;t=(f=ar==null?void 0:ar.width)!==null&&f!==void 0?f:n;var p;r=(p=ar==null?void 0:ar.height)!==null&&p!==void 0?p:o,s.top=y.scrollTop||e.scrollTop,s.left=y.scrollLeft||e.scrollLeft,ar&&(i=ar.offsetTop,a=ar.offsetLeft)}else({width:t,height:r,top:i,left:a}=hs(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,n=t,o=r;if(pL()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){s.top=0,s.left=0;var h;i=(h=ar==null?void 0:ar.pageTop)!==null&&h!==void 0?h:0;var g;a=(g=ar==null?void 0:ar.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:s,top:i,left:a}}function Vpe(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function aO(e,t,r,n,o,i,a){var s;let c=(s=o.scroll[e])!==null&&s!==void 0?s:0,d=n[PE[e]],f=n.scroll[Ao[e]]+i,p=d+n.scroll[Ao[e]]-i,h=t-c+a[e]-n[Ao[e]],g=t-c+r+a[e]-n[Ao[e]];return h<f?f-h:g>p?Math.max(p-g,f-h):0}function Wpe(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function lO(e){if(lp[e])return lp[e];let[t,r]=e.split(" "),n=Ao[t]||"right",o=Kpe[n];Ao[r]||(r="center");let i=PE[n],a=PE[o];return lp[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},lp[e]}function Tv(e,t,r,n,o,i,a,s,c,d){let{placement:f,crossPlacement:p,axis:h,crossAxis:g,size:y,crossSize:E}=n,w={};var b;w[g]=(b=e[g])!==null&&b!==void 0?b:0;var S,R,O,D;p==="center"?w[g]+=(((S=e[E])!==null&&S!==void 0?S:0)-((R=r[E])!==null&&R!==void 0?R:0))/2:p!==g&&(w[g]+=((O=e[E])!==null&&O!==void 0?O:0)-((D=r[E])!==null&&D!==void 0?D:0)),w[g]+=i;let T=e[g]-r[E]+c+d,P=e[g]+e[E]-c-d;if(w[g]=Vc(w[g],T,P),f===h){let _=s?a[y]:t[ML[y]];w[Eh[h]]=Math.floor(_-e[h]+o)}else w[h]=Math.floor(e[h]+e[y]+o);return w}function Gpe(e,t,r,n,o,i,a,s){let c=n?r.height:t[ML.height];var d;let f=e.top!=null?r.top+e.top:r.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var p,h,g,y,E,w;let b=s!=="top"?Math.max(0,t.height+t.top+((p=t.scroll.top)!==null&&p!==void 0?p:0)-f-(((h=o.top)!==null&&h!==void 0?h:0)+((g=o.bottom)!==null&&g!==void 0?g:0)+i)):Math.max(0,f+a-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((E=o.top)!==null&&E!==void 0?E:0)+((w=o.bottom)!==null&&w!==void 0?w:0)+i));return Math.min(t.height-i*2,b)}function sO(e,t,r,n,o,i){let{placement:a,axis:s,size:c}=i;var d,f;if(a===s)return Math.max(0,r[s]-e[s]-((d=e.scroll[s])!==null&&d!==void 0?d:0)+t[s]-((f=n[s])!==null&&f!==void 0?f:0)-n[Eh[s]]-o);var p;return Math.max(0,e[c]+e[s]+e.scroll[s]-t[s]-r[s]-r[c]-((p=n[s])!==null&&p!==void 0?p:0)-n[Eh[s]]-o)}function Ype(e,t,r,n,o,i,a,s,c,d,f,p,h,g,y,E){let w=lO(e),{size:b,crossAxis:S,crossSize:R,placement:O,crossPlacement:D}=w,T=Tv(t,s,r,w,f,p,d,h,y,E),P=f,_=sO(s,d,t,o,i+f,w);if(a&&n[b]>_){let ge=lO(`${Eh[O]} ${D}`),ye=Tv(t,s,r,ge,f,p,d,h,y,E);sO(s,d,t,o,i+f,ge)>_&&(w=ge,T=ye,P=f)}let N="bottom";w.axis==="top"?w.placement==="top"?N="top":w.placement==="bottom"&&(N="bottom"):w.crossAxis==="top"&&(w.crossPlacement==="top"?N="bottom":w.crossPlacement==="bottom"&&(N="top"));let V=aO(S,T[S],r[R],s,c,i,d);T[S]+=V;let L=Gpe(T,s,d,h,o,i,r.height,N);g&&g<L&&(L=g),r.height=Math.min(r.height,L),T=Tv(t,s,r,w,P,p,d,h,y,E),V=aO(S,T[S],r[R],s,c,i,d),T[S]+=V;let K={},Y=t[S]-T[S]-o[Ao[S]],$=Y+.5*t[R],M=y/2+E;var I,B,k,z;let F=Ao[S]==="left"?((I=o.left)!==null&&I!==void 0?I:0)+((B=o.right)!==null&&B!==void 0?B:0):((k=o.top)!==null&&k!==void 0?k:0)+((z=o.bottom)!==null&&z!==void 0?z:0),q=r[R]-F-y/2-E,U=t[S]+y/2-(T[S]+o[Ao[S]]),Z=t[S]+t[R]-y/2-(T[S]+o[Ao[S]]),de=Vc($,U,Z);K[S]=Vc(de,M,q),{placement:O,crossPlacement:D}=w,y?Y=K[S]:D==="right"?Y+=t[R]:D==="center"&&(Y+=t[R]/2);let ee=O==="left"||O==="top"?r[b]:0,oe={x:O==="top"||O==="bottom"?Y:ee,y:O==="left"||O==="right"?Y:ee};return{position:T,maxHeight:L,arrowOffsetLeft:K.left,arrowOffsetTop:K.top,placement:O,triggerAnchorPoint:oe}}function Xpe(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:c,crossOffset:d,maxHeight:f,arrowSize:p=0,arrowBoundaryOffset:h=0}=e,g=n instanceof HTMLElement?Jpe(n):document.documentElement,y=g===document.documentElement,E=window.getComputedStyle(g).position,w=!!E&&E!=="static",b=y?hs(r,!1):uO(r,g,!1);if(!y){let{marginTop:K,marginLeft:Y}=window.getComputedStyle(r);b.top+=parseInt(K,10)||0,b.left+=parseInt(Y,10)||0}let S=hs(n,!0),R=Wpe(n);var O,D;S.width+=((O=R.left)!==null&&O!==void 0?O:0)+((D=R.right)!==null&&D!==void 0?D:0);var T,P;S.height+=((T=R.top)!==null&&T!==void 0?T:0)+((P=R.bottom)!==null&&P!==void 0?P:0);let _=Vpe(o),N=iO(s),V=iO(g),L=s.tagName==="BODY"?hs(g,!1):uO(g,s,!1);return g.tagName==="HTML"&&s.tagName==="BODY"&&(V.scroll.top=0,V.scroll.left=0),Ype(t,b,S,_,R,i,a,N,V,L,c,d,w,f,p,h)}function $x(e,t){let{top:r,left:n,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:o,height:i}}function hs(e,t){let{top:r,left:n,width:o,height:i}=$x(e,t),{scrollTop:a,scrollLeft:s,clientTop:c,clientLeft:d}=document.documentElement;return{top:r+a-c,left:n+s-d,width:o,height:i}}function uO(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=$x(e,r);else{o=hs(e,r);let i=hs(t,r),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function Jpe(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!cO(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!cO(t);)t=t.parentElement;return t||document.documentElement}function cO(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}var LL=new WeakMap;function Qpe(e){let{triggerRef:t,isOpen:r,onClose:n}=e;x.useEffect(()=>{if(!r||n===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=n||LL.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var Zpe=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ehe=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function the(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Zpe.has(r.script)}let t=e.split("-")[0];return ehe.has(t)}var rhe=Symbol.for("react-aria.i18n.locale");function BL(){let e=typeof window<"u"&&window[rhe]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:the(e)?"rtl":"ltr"}}var $E=BL(),uc=new Set;function dO(){$E=BL();for(let e of uc)e($E)}function nhe(){let e=Cl(),[t,r]=x.useState($E);return x.useEffect(()=>(uc.size===0&&window.addEventListener("languagechange",dO),uc.add(r),()=>{uc.delete(r),uc.size===0&&window.removeEventListener("languagechange",dO)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var ohe=H.createContext(null);function wa(){let e=nhe();return x.useContext(ohe)||e}var OE=function(e,t){return OE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},OE(e,t)};function Bm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");OE(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nt=function(){return nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nt.apply(this,arguments)};function ihe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function _v(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Rv(e,t){var r=t&&t.cache?t.cache:fhe,n=t&&t.serializer?t.serializer:che,o=t&&t.strategy?t.strategy:she;return o(e,{cache:r,serializer:n})}function ahe(e){return e==null||typeof e=="number"||typeof e=="boolean"}function lhe(e,t,r,n){var o=ahe(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function FL(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function jL(e,t,r,n,o){return r.bind(t,e,n,o)}function she(e,t){var r=e.length===1?lhe:FL;return jL(e,this,r,t.cache.create(),t.serializer)}function uhe(e,t){return jL(e,this,FL,t.cache.create(),t.serializer)}var che=function(){return JSON.stringify(arguments)},dhe=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),fhe={create:function(){return new dhe}},Av={variadic:uhe},We;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(We||(We={}));var Tt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Tt||(Tt={}));var Ls;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ls||(Ls={}));function fO(e){return e.type===Tt.literal}function phe(e){return e.type===Tt.argument}function qL(e){return e.type===Tt.number}function HL(e){return e.type===Tt.date}function UL(e){return e.type===Tt.time}function zL(e){return e.type===Tt.select}function KL(e){return e.type===Tt.plural}function hhe(e){return e.type===Tt.pound}function VL(e){return e.type===Tt.tag}function WL(e){return!!(e&&typeof e=="object"&&e.type===Ls.number)}function IE(e){return!!(e&&typeof e=="object"&&e.type===Ls.dateTime)}var GL=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,mhe=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ghe(e){var t={};return e.replace(mhe,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var yhe=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function bhe(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(yhe).filter(function(h){return h.length>0}),r=[],n=0,o=t;n<o.length;n++){var i=o[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],c=a.slice(1),d=0,f=c;d<f.length;d++){var p=f[d];if(p.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:c})}return r}function vhe(e){return e.replace(/^(.*?)-/,"")}var pO=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,YL=/^(@+)?(\+|#+)?[rs]?$/g,Ehe=/(\*)(0+)|(#+)(0+)|(0+)/g,XL=/^(0+)$/;function hO(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(YL,function(r,n,o){return typeof o!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):o==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof o=="string"?o.length:0)),""}),t}function JL(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function whe(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!XL.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function mO(e){var t={},r=JL(e);return r||t}function She(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=vhe(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=nt(nt(nt({},t),{notation:"scientific"}),o.options.reduce(function(c,d){return nt(nt({},c),mO(d))},{}));continue;case"engineering":t=nt(nt(nt({},t),{notation:"engineering"}),o.options.reduce(function(c,d){return nt(nt({},c),mO(d))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ehe,function(c,d,f,p,h,g){if(d)t.minimumIntegerDigits=f.length;else{if(p&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(XL.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(pO.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(pO,function(c,d,f,p,h,g){return f==="*"?t.minimumFractionDigits=d.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:h&&g?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+g.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});var i=o.options[0];i==="w"?t=nt(nt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=nt(nt({},t),hO(i)));continue}if(YL.test(o.stem)){t=nt(nt({},t),hO(o.stem));continue}var a=JL(o.stem);a&&(t=nt(nt({},t),a));var s=whe(o.stem);s&&(t=nt(nt({},t),s))}return t}var sp={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function xhe(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(i&1),s=i<2?1:3+(i>>1),c="a",d=Che(t);for((d=="H"||d=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=d+r}else o==="J"?r+="H":r+=o}return r}function Che(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=sp[n||""]||sp[r||""]||sp["".concat(r,"-001")]||sp["001"];return o[0]}var Pv,The=new RegExp("^".concat(GL.source,"*")),_he=new RegExp("".concat(GL.source,"*$"));function Ge(e,t){return{start:e,end:t}}var Rhe=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ahe=!!String.fromCodePoint,Phe=!!Object.fromEntries,$he=!!String.prototype.codePointAt,Ohe=!!String.prototype.trimStart,Ihe=!!String.prototype.trimEnd,Nhe=!!Number.isSafeInteger,khe=Nhe?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},NE=!0;try{gO=ZL("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),NE=((Pv=gO.exec("a"))===null||Pv===void 0?void 0:Pv[0])==="a"}catch{NE=!1}var gO,yO=Rhe?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},kE=Ahe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=e.length,o=0,i;n>o;){if(i=e[o++],i>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return r},bO=Phe?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},QL=$he?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t),o;return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},Dhe=Ohe?function(e){return e.trimStart()}:function(e){return e.replace(The,"")},Mhe=Ihe?function(e){return e.trimEnd()}:function(e){return e.replace(_he,"")};function ZL(e,t){return new RegExp(e,t)}var DE;NE?($v=ZL("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),DE=function(e,t){var r;$v.lastIndex=t;var n=$v.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):DE=function(e,t){for(var r=[];;){var n=QL(e,t);if(n===void 0||e8(n)||jhe(n))break;r.push(n),t+=n>=65536?2:1}return kE.apply(void 0,r)};var $v,Lhe=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:Tt.pound,location:Ge(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(We.UNMATCHED_CLOSING_TAG,Ge(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&ME(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Tt.literal,value:"<".concat(o,"/>"),location:Ge(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ME(this.char()))return this.error(We.INVALID_TAG,Ge(s,this.clonePosition()));var c=this.clonePosition(),d=this.parseTagName();return o!==d?this.error(We.UNMATCHED_CLOSING_TAG,Ge(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Tt.tag,value:o,children:a,location:Ge(n,this.clonePosition())},err:null}:this.error(We.INVALID_TAG,Ge(s,this.clonePosition())))}else return this.error(We.UNCLOSED_TAG,Ge(n,this.clonePosition()))}else return this.error(We.INVALID_TAG,Ge(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Fhe(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var c=Ge(n,this.clonePosition());return{val:{type:Tt.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Bhe(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return kE.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),kE(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(We.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(We.EMPTY_ARGUMENT,Ge(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(We.MALFORMED_ARGUMENT,Ge(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(We.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Tt.argument,value:o,location:Ge(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(We.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(We.MALFORMED_ARGUMENT,Ge(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=DE(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=Ge(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(We.EXPECT_ARGUMENT_TYPE,Ge(a,c));case"number":case"date":case"time":{this.bumpSpace();var d=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var h=Mhe(p.val);if(h.length===0)return this.error(We.EXPECT_ARGUMENT_STYLE,Ge(this.clonePosition(),this.clonePosition()));var g=Ge(f,this.clonePosition());d={style:h,styleLocation:g}}var y=this.tryParseArgumentClose(o);if(y.err)return y;var E=Ge(o,this.clonePosition());if(d&&yO(d==null?void 0:d.style,"::",0)){var w=Dhe(d.style.slice(2));if(s==="number"){var p=this.parseNumberSkeletonFromString(w,d.styleLocation);return p.err?p:{val:{type:Tt.number,value:n,location:E,style:p.val},err:null}}else{if(w.length===0)return this.error(We.EXPECT_DATE_TIME_SKELETON,E);var b=w;this.locale&&(b=xhe(w,this.locale));var h={type:Ls.dateTime,pattern:b,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?ghe(b):{}},S=s==="date"?Tt.date:Tt.time;return{val:{type:S,value:n,location:E,style:h},err:null}}}return{val:{type:s==="number"?Tt.number:s==="date"?Tt.date:Tt.time,value:n,location:E,style:(i=d==null?void 0:d.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(We.EXPECT_SELECT_ARGUMENT_OPTIONS,Ge(R,nt({},R)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),D=0;if(s!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(We.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ge(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(We.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,We.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),O=this.parseIdentifierIfPossible(),D=p.val}var T=this.tryParsePluralOrSelectOptions(t,s,r,O);if(T.err)return T;var y=this.tryParseArgumentClose(o);if(y.err)return y;var P=Ge(o,this.clonePosition());return s==="select"?{val:{type:Tt.select,value:n,options:bO(T.val),location:P},err:null}:{val:{type:Tt.plural,value:n,options:bO(T.val),offset:D,pluralType:s==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(We.INVALID_ARGUMENT_TYPE,Ge(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(We.EXPECT_ARGUMENT_CLOSING_BRACE,Ge(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(We.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ge(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=bhe(t)}catch{return this.error(We.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ls.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?She(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,s=[],c=new Set,d=o.value,f=o.location;;){if(d.length===0){var p=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(We.EXPECT_PLURAL_ARGUMENT_SELECTOR,We.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=Ge(p,this.clonePosition()),d=this.message.slice(p.offset,this.offset())}else break}if(c.has(d))return this.error(r==="select"?We.DUPLICATE_SELECT_ARGUMENT_SELECTOR:We.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);d==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?We.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:We.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ge(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var E=this.tryParseArgumentClose(g);if(E.err)return E;s.push([d,{value:y.val,location:Ge(g,this.clonePosition())}]),c.add(d),this.bumpSpace(),i=this.parseIdentifierIfPossible(),d=i.value,f=i.location}return s.length===0?this.error(r==="select"?We.EXPECT_SELECT_ARGUMENT_SELECTOR:We.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ge(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(We.MISSING_OTHER_CLAUSE,Ge(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var c=Ge(o,this.clonePosition());return i?(a*=n,khe(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=QL(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(yO(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&e8(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function ME(e){return e>=97&&e<=122||e>=65&&e<=90}function Bhe(e){return ME(e)||e===47}function Fhe(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function e8(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function jhe(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function LE(e){e.forEach(function(t){if(delete t.location,zL(t)||KL(t))for(var r in t.options)delete t.options[r].location,LE(t.options[r].value);else qL(t)&&WL(t.style)||(HL(t)||UL(t))&&IE(t.style)?delete t.style.location:VL(t)&&LE(t.children)})}function qhe(e,t){t===void 0&&(t={}),t=nt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Lhe(e,t).parse();if(r.err){var n=SyntaxError(We[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||LE(r.val),r.val}var Bs;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Bs||(Bs={}));var Fm=function(e){Bm(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),vO=function(e){Bm(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Bs.INVALID_VALUE,i)||this}return t}(Fm),Hhe=function(e){Bm(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Bs.INVALID_VALUE,o)||this}return t}(Fm),Uhe=function(e){Bm(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Bs.MISSING_VALUE,n)||this}return t}(Fm),Lr;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Lr||(Lr={}));function zhe(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Lr.literal||r.type!==Lr.literal?t.push(r):n.value+=r.value,t},[])}function Khe(e){return typeof e=="function"}function Ip(e,t,r,n,o,i,a){if(e.length===1&&fO(e[0]))return[{type:Lr.literal,value:e[0].value}];for(var s=[],c=0,d=e;c<d.length;c++){var f=d[c];if(fO(f)){s.push({type:Lr.literal,value:f.value});continue}if(hhe(f)){typeof i=="number"&&s.push({type:Lr.literal,value:r.getNumberFormat(t).format(i)});continue}var p=f.value;if(!(o&&p in o))throw new Uhe(p,a);var h=o[p];if(phe(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),s.push({type:typeof h=="string"?Lr.literal:Lr.object,value:h});continue}if(HL(f)){var g=typeof f.style=="string"?n.date[f.style]:IE(f.style)?f.style.parsedOptions:void 0;s.push({type:Lr.literal,value:r.getDateTimeFormat(t,g).format(h)});continue}if(UL(f)){var g=typeof f.style=="string"?n.time[f.style]:IE(f.style)?f.style.parsedOptions:n.time.medium;s.push({type:Lr.literal,value:r.getDateTimeFormat(t,g).format(h)});continue}if(qL(f)){var g=typeof f.style=="string"?n.number[f.style]:WL(f.style)?f.style.parsedOptions:void 0;g&&g.scale&&(h=h*(g.scale||1)),s.push({type:Lr.literal,value:r.getNumberFormat(t,g).format(h)});continue}if(VL(f)){var y=f.children,E=f.value,w=o[E];if(!Khe(w))throw new Hhe(E,"function",a);var b=Ip(y,t,r,n,o,i),S=w(b.map(function(D){return D.value}));Array.isArray(S)||(S=[S]),s.push.apply(s,S.map(function(D){return{type:typeof D=="string"?Lr.literal:Lr.object,value:D}}))}if(zL(f)){var R=f.options[h]||f.options.other;if(!R)throw new vO(f.value,h,Object.keys(f.options),a);s.push.apply(s,Ip(R.value,t,r,n,o));continue}if(KL(f)){var R=f.options["=".concat(h)];if(!R){if(!Intl.PluralRules)throw new Fm(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,Bs.MISSING_INTL_API,a);var O=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));R=f.options[O]||f.options.other}if(!R)throw new vO(f.value,h,Object.keys(f.options),a);s.push.apply(s,Ip(R.value,t,r,n,o,h-(f.offset||0)));continue}}return zhe(s)}function Vhe(e,t){return t?nt(nt(nt({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=nt(nt({},e[n]),t[n]||{}),r},{})):e}function Whe(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Vhe(e[n],t[n]),r},nt({},e)):e}function Ov(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ghe(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Rv(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,_v([void 0],r,!1)))},{cache:Ov(e.number),strategy:Av.variadic}),getDateTimeFormat:Rv(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,_v([void 0],r,!1)))},{cache:Ov(e.dateTime),strategy:Av.variadic}),getPluralRules:Rv(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,_v([void 0],r,!1)))},{cache:Ov(e.pluralRules),strategy:Av.variadic})}}(function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var d=i.formatToParts(c);if(d.length===1)return d[0].value;var f=d.reduce(function(p,h){return!p.length||h.type!==Lr.literal||typeof p[p.length-1]!="string"?p.push(h.value):p[p.length-1]+=h.value,p},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return Ip(i.ast,i.locales,i.formatters,i.formats,c,void 0,i.message)},this.resolvedOptions=function(){var c;return{locale:((c=i.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=o||{};a.formatters;var s=ihe(a,["formatters"]);this.ast=e.__parse(t,nt(nt({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Whe(e.formats,n),this.formatters=o&&o.formatters||Ghe(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=qhe,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var Yhe=Symbol.for("react-aria.i18n.locale"),Xhe=Symbol.for("react-aria.i18n.strings"),Zl,t8=class r8{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=Jhe(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[Yhe];if(Zl===void 0){let o=window[Xhe];if(!o)return null;Zl={};for(let i in o)Zl[i]=new r8({[r]:o[i]},r)}let n=Zl==null?void 0:Zl[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}};function Jhe(e,t,r="en-US"){if(t[e])return t[e];let n=Qhe(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Qhe(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var EO=new Map,wO=new Map,Zhe=class{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return typeof n=="function"?n():n;let o=this.locale+":"+r,i=EO.get(o);i||(i=new Intl.PluralRules(this.locale,{type:r}),EO.set(o,i));let a=i.select(e);return n=t[a]||t.other,typeof n=="function"?n():n}number(e){let t=wO.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),wO.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return typeof r=="function"?r():r}constructor(e,t){this.locale=e,this.strings=t}},SO=new WeakMap;function eme(e){let t=SO.get(e);return t||(t=new t8(e),SO.set(e,t)),t}function tme(e,t){return t8.getGlobalDictionaryForPackage(t)||eme(e)}function rme(e,t){let{locale:r}=wa(),n=tme(e,t);return x.useMemo(()=>new Zhe(r,n),[r,n])}var Iv=new Map,BE=!1;try{BE=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var wh=!1;try{wh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var n8={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},nme=class{format(e){let t="";if(!BE&&this.options.signDisplay!=null?t=ime(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!wh){var r;let{unit:n,unitDisplay:o="short",locale:i}=this.resolvedOptions();if(!n)return t;let a=(r=n8[n])===null||r===void 0?void 0:r[o];t+=a[i]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!BE&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!wh&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=ome(e,t),this.options=t}};function ome(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!wh){var n;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=n8[a])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Iv.has(o))return Iv.get(o);let i=new Intl.NumberFormat(e,t);return Iv.set(o,i),i}function ime(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}function ame(e={}){let{locale:t}=wa();return x.useMemo(()=>new nme(t,e),[t,e])}var Nv=new Map;function lme(e){let{locale:t}=wa(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Nv.has(r))return Nv.get(r);let n=new Intl.Collator(t,e);return Nv.set(r,n),n}var jt=typeof document<"u"?window.visualViewport:null;function Ox(e){let{direction:t}=wa(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:s="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:p=0,crossOffset:h=0,shouldUpdatePosition:g=!0,isOpen:y=!0,onClose:E,maxHeight:w,arrowBoundaryOffset:b=0}=e,[S,R]=x.useState(null),O=[g,s,o.current,n.current,i==null?void 0:i.current,a.current,c,d,f,p,h,y,t,w,b,r],D=x.useRef(jt==null?void 0:jt.scale);x.useEffect(()=>{y&&(D.current=jt==null?void 0:jt.scale)},[y]);let T=x.useCallback(()=>{if(g===!1||!y||!o.current||!n.current||!f||(jt==null?void 0:jt.scale)!==D.current)return;let K=null;if(a.current&&a.current.contains(document.activeElement)){var Y;let F=(Y=document.activeElement)===null||Y===void 0?void 0:Y.getBoundingClientRect(),q=a.current.getBoundingClientRect();var $;if(K={type:"top",offset:(($=F==null?void 0:F.top)!==null&&$!==void 0?$:0)-q.top},K.offset>q.height/2){K.type="bottom";var M;K.offset=((M=F==null?void 0:F.bottom)!==null&&M!==void 0?M:0)-q.bottom}}let I=o.current;if(!w&&o.current){var B;I.style.top="0px",I.style.bottom="";var k;I.style.maxHeight=((k=(B=window.visualViewport)===null||B===void 0?void 0:B.height)!==null&&k!==void 0?k:window.innerHeight)+"px"}let z=Xpe({placement:ume(s,t),overlayNode:o.current,targetNode:n.current,scrollNode:a.current||o.current,padding:c,shouldFlip:d,boundaryElement:f,offset:p,crossOffset:h,maxHeight:w,arrowSize:r??(i!=null&&i.current?$x(i.current,!0).width:0),arrowBoundaryOffset:b});if(z.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(z.position).forEach(F=>I.style[F]=z.position[F]+"px"),I.style.maxHeight=z.maxHeight!=null?z.maxHeight+"px":"",K&&document.activeElement&&a.current){let F=document.activeElement.getBoundingClientRect(),q=a.current.getBoundingClientRect(),U=F[K.type]-q[K.type];a.current.scrollTop+=U-K.offset}R(z)}},O);ct(T,O),sme(T),hh({ref:o,onResize:T}),hh({ref:n,onResize:T});let P=x.useRef(!1);ct(()=>{let K,Y=()=>{P.current=!0,clearTimeout(K),K=setTimeout(()=>{P.current=!1},500),T()},$=()=>{P.current&&Y()};return jt==null||jt.addEventListener("resize",Y),jt==null||jt.addEventListener("scroll",$),()=>{jt==null||jt.removeEventListener("resize",Y),jt==null||jt.removeEventListener("scroll",$)}},[T]);let _=x.useCallback(()=>{P.current||(E==null||E())},[E,P]);Qpe({triggerRef:n,isOpen:y,onClose:E&&_});var N,V,L;return{overlayProps:{style:{position:S?"absolute":"fixed",top:S?void 0:0,left:S?void 0:0,zIndex:1e5,...S==null?void 0:S.position,maxHeight:(N=S==null?void 0:S.maxHeight)!==null&&N!==void 0?N:"100vh"}},placement:(V=S==null?void 0:S.placement)!==null&&V!==void 0?V:null,triggerAnchorPoint:(L=S==null?void 0:S.triggerAnchorPoint)!==null&&L!==void 0?L:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:S==null?void 0:S.arrowOffsetLeft,top:S==null?void 0:S.arrowOffsetTop}},updatePosition:T}}function sme(e){ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function ume(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var xO=H.createContext(null),FE="react-aria-focus-scope-restore",Et=null;function Ix(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=x.useRef(null),a=x.useRef(null),s=x.useRef([]),{parentNode:c}=x.useContext(xO)||{},d=x.useMemo(()=>new qE({scopeRef:s}),[s]);ct(()=>{let h=c||Kt.root;if(Kt.getTreeNode(h.scopeRef)&&Et&&!Sh(Et,h.scopeRef)){let g=Kt.getTreeNode(Et);g&&(h=g)}h.addChild(d),Kt.addNode(d)},[d,c]),ct(()=>{let h=Kt.getTreeNode(s);h&&(h.contain=!!r)},[r]),ct(()=>{var h;let g=(h=i.current)===null||h===void 0?void 0:h.nextSibling,y=[],E=w=>w.stopPropagation();for(;g&&g!==a.current;)y.push(g),g.addEventListener(FE,E),g=g.nextSibling;return s.current=y,()=>{for(let w of y)w.removeEventListener(FE,E)}},[t]),mme(s,n,r),fme(s,r),gme(s,n,r),hme(s,o),x.useEffect(()=>{let h=Pr(ft(s.current?s.current[0]:void 0)),g=null;if(Bn(h,s.current)){for(let y of Kt.traverse())y.scopeRef&&Bn(h,y.scopeRef.current)&&(g=y);g===Kt.getTreeNode(s)&&(Et=g.scopeRef)}},[s]),ct(()=>()=>{var h,g,y;let E=(y=(g=Kt.getTreeNode(s))===null||g===void 0||(h=g.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&y!==void 0?y:null;(s===Et||Sh(s,Et))&&(!E||Kt.getTreeNode(E))&&(Et=E),Kt.removeTreeNode(s)},[s]);let f=x.useMemo(()=>cme(s),[]),p=x.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return H.createElement(xO.Provider,{value:p},H.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,H.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function cme(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var s;let c=n||Pr(ft((s=r[0])!==null&&s!==void 0?s:void 0)),d=r[0].previousElementSibling,f=el(r),p=Po(f,{tabbable:o,accept:a},r);p.currentNode=Bn(c,r)?c:d;let h=p.nextNode();return!h&&i&&(p.currentNode=d,h=p.nextNode()),h&&ui(h,!0),h},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var s;let c=n||Pr(ft((s=r[0])!==null&&s!==void 0?s:void 0)),d=r[r.length-1].nextElementSibling,f=el(r),p=Po(f,{tabbable:o,accept:a},r);p.currentNode=Bn(c,r)?c:d;let h=p.previousNode();return!h&&i&&(p.currentNode=d,h=p.previousNode()),h&&ui(h,!0),h},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=el(r),a=Po(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let s=a.nextNode();return s&&ui(s,!0),s},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=el(r),a=Po(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let s=a.previousNode();return s&&ui(s,!0),s}}}function el(e){return e[0].parentElement}function cc(e){let t=Kt.getTreeNode(Et);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function dme(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...ft(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(o=>!o.form);else{var r,n;t=[...((n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name))??[]]}return t?!t.some(o=>o.checked):!1}function fme(e,t){let r=x.useRef(void 0),n=x.useRef(void 0);ct(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let i=ft(o?o[0]:void 0),a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!cc(e)||d.isComposing)return;let f=Pr(i),p=e.current;if(!p||!Bn(f,p))return;let h=el(p),g=Po(h,{tabbable:!0},p);if(!f)return;g.currentNode=f;let y=d.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=d.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,y=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),y&&ui(y,!0)},s=d=>{(!Et||Sh(Et,e))&&Bn(qt(d),e.current)?(Et=e,r.current=qt(d)):cc(e)&&!oa(qt(d),e)?r.current?r.current.focus():Et&&Et.current&&jE(Et.current):cc(e)&&(r.current=qt(d))},c=d=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let f=Xc(),p=(f==="virtual"||f===null)&&vx()&&hL(),h=Pr(i);if(!p&&h&&cc(e)&&!oa(h,e)){Et=e;let y=qt(d);if(y&&y.isConnected){var g;r.current=y,(g=r.current)===null||g===void 0||g.focus()}else Et.current&&jE(Et.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(d=>d.addEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(d=>d.removeEventListener("focusin",s,!1)),o==null||o.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),ct(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function o8(e){return oa(e)}function Bn(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function oa(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Kt.traverse(Kt.getTreeNode(t)))if(r&&Bn(e,r.current))return!0;return!1}function pme(e){return oa(e,Et)}function Sh(e,t){var r;let n=(r=Kt.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function ui(e,t=!1){if(e!=null&&!t)try{ha(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function i8(e,t=!0){let r=e[0].previousElementSibling,n=el(e),o=Po(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=el(e),o=Po(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function jE(e,t=!0){ui(i8(e,t))}function hme(e,t){let r=H.useRef(t);x.useEffect(()=>{if(r.current){Et=e;let n=ft(e.current?e.current[0]:void 0);!Bn(Pr(n),Et.current)&&e.current&&jE(e.current)}r.current=!1},[e])}function mme(e,t,r){ct(()=>{if(t||r)return;let n=e.current,o=ft(n?n[0]:void 0),i=a=>{let s=qt(a);Bn(s,e.current)?Et=e:o8(s)||(Et=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function CO(e){let t=Kt.getTreeNode(Et);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function gme(e,t,r){let n=x.useRef(typeof document<"u"?Pr(ft(e.current?e.current[0]:void 0)):null);ct(()=>{let o=e.current,i=ft(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!Et||Sh(Et,e))&&Bn(Pr(i),e.current)&&(Et=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,r]),ct(()=>{let o=ft(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!cc(e)||a.isComposing)return;let s=o.activeElement;if(!oa(s,e)||!CO(e))return;let c=Kt.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=Po(o.body,{tabbable:!0});f.currentNode=s;let p=a.shiftKey?f.previousNode():f.nextNode();if((!d||!d.isConnected||d===o.body)&&(d=void 0,c.nodeToRestore=void 0),(!p||!oa(p,e))&&d){f.currentNode=d;do p=a.shiftKey?f.previousNode():f.nextNode();while(oa(p,e));a.preventDefault(),a.stopPropagation(),p?ui(p,!0):o8(d)?ui(d,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),ct(()=>{let o=ft(e.current?e.current[0]:void 0);if(!t)return;let i=Kt.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let s=Kt.getTreeNode(e);if(!s)return;let c=s.nodeToRestore,d=Pr(o);if(t&&c&&(d&&oa(d,e)||d===o.body&&CO(e))){let f=Kt.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let p=f.getTreeNode(e);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){TO(p.nodeToRestore);return}p=p.parent}for(p=f.getTreeNode(e);p;){if(p.scopeRef&&p.scopeRef.current&&Kt.getTreeNode(p.scopeRef)){let h=i8(p.scopeRef.current,!0);TO(h);return}p=p.parent}}})}}}},[e,t])}function TO(e){e.dispatchEvent(new CustomEvent(FE,{bubbles:!0,cancelable:!0}))&&ui(e)}function Po(e,t,r){let n=t!=null&&t.tabbable?hpe:xL,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=ft(o),a=kfe(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var c;return!(t==null||(c=t.from)===null||c===void 0)&&c.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!dme(s)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:n(s)&&(!r||Bn(s,r))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}var yme=class a8{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new qE({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Bn(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new a8;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new qE({scopeRef:null}),this.fastMap.set(null,this.root)}},qE=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},Kt=new yme;function jm(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=x.useRef({isFocused:!1,isFocusVisible:t||Yc()}),[i,a]=x.useState(!1),[s,c]=x.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=x.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=x.useCallback(g=>{o.current.isFocused=g,a(g),d()},[d]);Ipe(g=>{o.current.isFocusVisible=g,d()},[],{isTextInput:r});let{focusProps:p}=_x({isDisabled:n,onFocusChange:f}),{focusWithinProps:h}=Rx({isDisabled:!n,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:s,focusProps:n?h:p}}function bme(e,t){let[r,n]=x.useState(!1);return ct(()=>{if(e!=null&&e.current){let o=()=>{if(e.current){let a=Po(e.current,{tabbable:!0});n(!!a.nextNode())}};o();let i=new MutationObserver(o);return i.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),r}function l8(e){let t=Eme(ft(e));t!==e&&(t&&vme(t,e),e&&s8(e,t))}function vme(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function s8(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function Eme(e){let t=Pr(e),r=t==null?void 0:t.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var yo=[];function Nx(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;x.useEffect(()=>{if(o&&!yo.includes(t))return yo.push(t),()=>{let y=yo.indexOf(t);y>=0&&yo.splice(y,1)}},[o,t]);let c=()=>{yo[yo.length-1]===t&&r&&r()},d=y=>{(!s||s(y.target))&&yo[yo.length-1]===t&&(y.stopPropagation(),y.preventDefault())},f=y=>{(!s||s(y.target))&&(yo[yo.length-1]===t&&(y.stopPropagation(),y.preventDefault()),c())},p=y=>{y.key==="Escape"&&!a&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),c())};kL({ref:t,onInteractOutside:i&&o?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:h}=Rx({isDisabled:!n,onBlurWithin:y=>{!y.relatedTarget||pme(y.relatedTarget)||(!s||s(y.relatedTarget))&&(r==null||r())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:p,...h},underlayProps:{onPointerDown:g}}}function wme(e,t,r){let{isOpen:n}=t;x.useEffect(()=>{r&&r.current&&LL.set(r.current,t.close)});let o,i=yr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}var bc=typeof document<"u"&&window.visualViewport,up=0,kv;function u8(e={}){let{isDisabled:t}=e;ct(()=>{if(!t)return up++,up===1&&(Nm()?kv=xme():kv=Sme()),()=>{up--,up===0&&kv()}},[t])}function Sme(){let e=window.innerWidth-document.documentElement.clientWidth;return vd(e>0&&("scrollbarGutter"in document.documentElement.style?Dv(document.documentElement,"scrollbarGutter","stable"):Dv(document.documentElement,"paddingRight",`${e}px`)),Dv(document.documentElement,"overflow","hidden"))}function xme(){let e,t=!1,r=c=>{let d=c.target;e=Ms(d)?d:yL(d,!0),t=!1;let f=d.ownerDocument.defaultView.getSelection();f&&!f.isCollapsed&&f.containsNode(d,!0)&&(t=!0),"selectionStart"in d&&"selectionEnd"in d&&d.selectionStart<d.selectionEnd&&d.ownerDocument.activeElement===d&&(t=!0)},n=document.createElement("style");n.textContent=`
@layer {
* {
overscroll-behavior: contain;
}
}`.trim(),document.head.prepend(n);let o=c=>{if(!(c.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()}},i=c=>{let d=c.target,f=c.relatedTarget;if(f&&wv(f))f.focus({preventScroll:!0}),_O(f,wv(d));else if(!f){var p;let h=(p=d.parentElement)===null||p===void 0?void 0:p.closest("[tabindex]");h==null||h.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let d=document.activeElement!=null&&wv(document.activeElement);a.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&_O(this,d)};let s=vd(Mv(document,"touchstart",r,{passive:!1,capture:!0}),Mv(document,"touchmove",o,{passive:!1,capture:!0}),Mv(document,"blur",i,!0));return()=>{s(),n.remove(),HTMLElement.prototype.focus=a}}function Dv(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Mv(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function _O(e,t){t||!bc?RO(e):bc.addEventListener("resize",()=>RO(e),{once:!0})}function RO(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=yL(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let a=o.bottom;bc&&(a=Math.min(a,bc.offsetTop+bc.height));let s=i.top-o.top-((a-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+s)),behavior:"smooth"})}}r=n.parentElement}}var Cme=x.createContext({});function c8(){var e;return(e=x.useContext(Cme))!==null&&e!==void 0?e:{}}var HE=H.createContext(null);function Tme(e){let{children:t}=e,r=x.useContext(HE),[n,o]=x.useState(0),i=x.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return H.createElement(HE.Provider,{value:i},t)}function _me(){let e=x.useContext(HE);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function Rme(e){let{modalProviderProps:t}=_me();return H.createElement("div",{"data-overlay-container":!0,...e,...t})}function Ame(e){return H.createElement(Tme,null,H.createElement(Rme,e))}function Pme(e){let t=Cl(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=c8();if(!e.portalContainer&&o&&(r=o()),H.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=H.createElement(Ame,n);return _3.createPortal(i,r)}var d8={};d8={dismiss:"تجاهل"};var f8={};f8={dismiss:"Отхвърляне"};var p8={};p8={dismiss:"Odstranit"};var h8={};h8={dismiss:"Luk"};var m8={};m8={dismiss:"Schließen"};var g8={};g8={dismiss:"Απόρριψη"};var y8={};y8={dismiss:"Dismiss"};var b8={};b8={dismiss:"Descartar"};var v8={};v8={dismiss:"Lõpeta"};var E8={};E8={dismiss:"Hylkää"};var w8={};w8={dismiss:"Rejeter"};var S8={};S8={dismiss:"התעלם"};var x8={};x8={dismiss:"Odbaci"};var C8={};C8={dismiss:"Elutasítás"};var T8={};T8={dismiss:"Ignora"};var _8={};_8={dismiss:"閉じる"};var R8={};R8={dismiss:"무시"};var A8={};A8={dismiss:"Atmesti"};var P8={};P8={dismiss:"Nerādīt"};var $8={};$8={dismiss:"Lukk"};var O8={};O8={dismiss:"Negeren"};var I8={};I8={dismiss:"Zignoruj"};var N8={};N8={dismiss:"Descartar"};var k8={};k8={dismiss:"Dispensar"};var D8={};D8={dismiss:"Revocare"};var M8={};M8={dismiss:"Пропустить"};var L8={};L8={dismiss:"Zrušiť"};var B8={};B8={dismiss:"Opusti"};var F8={};F8={dismiss:"Odbaci"};var j8={};j8={dismiss:"Avvisa"};var q8={};q8={dismiss:"Kapat"};var H8={};H8={dismiss:"Скасувати"};var U8={};U8={dismiss:"取消"};var z8={};z8={dismiss:"關閉"};var K8={};K8={"ar-AE":d8,"bg-BG":f8,"cs-CZ":p8,"da-DK":h8,"de-DE":m8,"el-GR":g8,"en-US":y8,"es-ES":b8,"et-EE":v8,"fi-FI":E8,"fr-FR":w8,"he-IL":S8,"hr-HR":x8,"hu-HU":C8,"it-IT":T8,"ja-JP":_8,"ko-KR":R8,"lt-LT":A8,"lv-LV":P8,"nb-NO":$8,"nl-NL":O8,"pl-PL":I8,"pt-BR":N8,"pt-PT":k8,"ro-RO":D8,"ru-RU":M8,"sk-SK":L8,"sl-SI":B8,"sr-SP":F8,"sv-SE":j8,"tr-TR":q8,"uk-UA":H8,"zh-CN":U8,"zh-TW":z8};var AO={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function $me(e={}){let{style:t,isFocusable:r}=e,[n,o]=x.useState(!1),{focusWithinProps:i}=Rx({isDisabled:!r,onFocusWithinChange:s=>o(s)}),a=x.useMemo(()=>n?t:t?{...AO,...t}:AO,[n]);return{visuallyHiddenProps:{...i,style:a}}}function Ome(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:a}=$me(e);return H.createElement(r,He(i,a),t)}function Ime(e){return e&&e.__esModule?e.default:e}function PO(e){let{onDismiss:t,...r}=e,n=rme(Ime(K8),"@react-aria/overlays"),o=Mm(r,n.format("dismiss")),i=()=>{t&&t()};return H.createElement(Ome,null,H.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var Nme=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Xu=new WeakMap,Gr=[];function qm(e,t){let r=Dn(e==null?void 0:e[0]),n=t instanceof r.Element?{root:t}:t;var o;let i=(o=n==null?void 0:n.root)!==null&&o!==void 0?o:document.body,a=(n==null?void 0:n.shouldUseInert)&&Nme,s=new Set(e),c=new Set,d=E=>a&&E instanceof r.HTMLElement?E.inert:E.getAttribute("aria-hidden")==="true",f=(E,w)=>{a&&E instanceof r.HTMLElement?E.inert=w:w?E.setAttribute("aria-hidden","true"):(E.removeAttribute("aria-hidden"),E instanceof r.HTMLElement&&(E.inert=!1))},p=E=>{for(let R of E.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(R);let w=R=>{if(c.has(R)||s.has(R)||R.parentElement&&c.has(R.parentElement)&&R.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let O of s)if(R.contains(O))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(E,NodeFilter.SHOW_ELEMENT,{acceptNode:w}),S=w(E);if(S===NodeFilter.FILTER_ACCEPT&&h(E),S!==NodeFilter.FILTER_REJECT){let R=b.nextNode();for(;R!=null;)h(R),R=b.nextNode()}},h=E=>{var w;let b=(w=Xu.get(E))!==null&&w!==void 0?w:0;d(E)&&b===0||(b===0&&f(E,!0),c.add(E),Xu.set(E,b+1))};Gr.length&&Gr[Gr.length-1].disconnect(),p(i);let g=new MutationObserver(E=>{for(let w of E)if(w.type==="childList"&&![...s,...c].some(b=>b.contains(w.target)))for(let b of w.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?s.add(b):b instanceof Element&&p(b)});g.observe(i,{childList:!0,subtree:!0});let y={visibleNodes:s,hiddenNodes:c,observe(){g.observe(i,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return Gr.push(y),()=>{g.disconnect();for(let E of c){let w=Xu.get(E);w!=null&&(w===1?(f(E,!1),Xu.delete(E)):Xu.set(E,w-1))}y===Gr[Gr.length-1]?(Gr.pop(),Gr.length&&Gr[Gr.length-1].observe()):Gr.splice(Gr.indexOf(y),1)}}function kme(e){let t=Gr[Gr.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function Dme(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...c}=e,d=c.trigger==="SubmenuTrigger",{overlayProps:f,underlayProps:p}=Nx({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||d,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},o??n),{overlayProps:h,arrowProps:g,placement:y,triggerAnchorPoint:E}=Ox({...c,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:i&&!d?t.close:null});return u8({isDisabled:i||!t.isOpen}),x.useEffect(()=>{if(t.isOpen&&n.current){var w,b;return i?kme((w=o==null?void 0:o.current)!==null&&w!==void 0?w:n.current):qm([(b=o==null?void 0:o.current)!==null&&b!==void 0?b:n.current],{shouldUseInert:!0})}},[i,t.isOpen,n,o]),{popoverProps:He(f,h),arrowProps:g,underlayProps:p,placement:y,triggerAnchorPoint:E}}var V8=H.createContext(null);function xh(e){let t=Cl(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=x.useState(!1),a=x.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=c8();if(!e.portalContainer&&s&&(r=s()),!r)return null;let c=e.children;return e.disableFocusManagement||(c=H.createElement(Ix,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},c)),c=H.createElement(V8.Provider,{value:a},H.createElement(Bpe,null,c)),_3.createPortal(c,r)}function W8(){let e=x.useContext(V8),t=e==null?void 0:e.setContain;ct(()=>{t==null||t(!0)},[t])}function Mme(e,t,r){let{overlayProps:n,underlayProps:o}=Nx({...e,isOpen:t.isOpen,onClose:t.close},r);return u8({isDisabled:!t.isOpen}),W8(),x.useEffect(()=>{if(t.isOpen&&r.current)return qm([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:He(n),underlayProps:o}}function Sd(e){let[t,r]=Lm(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=x.useCallback(()=>{r(!0)},[r]),o=x.useCallback(()=>{r(!1)},[r]),i=x.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}var Lme=1500,$O=500,za={},Bme=0,Ju=!1,ti=null,Ka=null;function G8(e={}){let{delay:t=Lme,closeDelay:r=$O}=e,{isOpen:n,open:o,close:i}=Sd(e),a=x.useMemo(()=>`${++Bme}`,[]),s=x.useRef(null),c=x.useRef(i),d=()=>{za[a]=h},f=()=>{for(let y in za)y!==a&&(za[y](!0),delete za[y])},p=()=>{s.current&&clearTimeout(s.current),s.current=null,f(),d(),Ju=!0,o(),ti&&(clearTimeout(ti),ti=null),Ka&&(clearTimeout(Ka),Ka=null)},h=y=>{y||r<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||(s.current=setTimeout(()=>{s.current=null,c.current()},r)),ti&&(clearTimeout(ti),ti=null),Ju&&(Ka&&clearTimeout(Ka),Ka=setTimeout(()=>{delete za[a],Ka=null,Ju=!1},Math.max($O,r)))},g=()=>{f(),d(),!n&&!ti&&!Ju?ti=setTimeout(()=>{ti=null,Ju=!0,p()},t):n||p()};return x.useEffect(()=>{c.current=i},[i]),x.useEffect(()=>()=>{s.current&&clearTimeout(s.current),za[a]&&delete za[a]},[a]),{isOpen:n,open:y=>{!y&&t>0&&!s.current?g():p()},close:h}}var kx=x.createContext(null),Y8=x.createContext(null);function Fme(e){let t=G8(e),r=x.useRef(null),{triggerProps:n,tooltipProps:o}=zpe(e,t,r);return H.createElement(vi,{values:[[kx,t],[Y8,{...o,triggerRef:r}]]},H.createElement(kpe,{...n,ref:r},e.children))}var jme=x.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=Nr(t,r,Y8);let n=x.useContext(kx),o=G8(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,a=wL(r,i.isOpen)||t.isExiting||!1;return!i.isOpen&&!a?null:H.createElement(Pme,{portalContainer:e},H.createElement(qme,{...t,tooltipRef:r,isExiting:a}))});function qme(e){let t=x.useContext(kx),r=x.useRef(null),{overlayProps:n,arrowProps:o,placement:i,triggerAnchorPoint:a}=Ox({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:r,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=EL(e.tooltipRef,!!i)||e.isEntering||!1,c=En({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:s,isExiting:e.isExiting,state:t}});e=He(e,n);let{tooltipProps:d}=Upe(e,t),f=Lt(e,{global:!0});return H.createElement("div",{...He(f,c,d),ref:e.tooltipRef,style:{...n.style,"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0,...c.style},"data-placement":i??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},H.createElement(Px.Provider,{value:{...o,placement:i,ref:r}},c.children))}var Hme=it(pi(),1),X8=(0,Hme.default)(1e3)(e=>e==="left-end"?"left bottom":e==="right-end"?"right bottom":e==="left-start"?"left top":e==="right-start"?"right top":e.replace("-"," "));Q.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var Ume=x.forwardRef((e,t)=>H.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));Ume.displayName="Trigger";var zme=({triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:o,defaultVisible:i,startOpen:a,delayShow:s=400,delayHide:c=200,visible:d,onVisibleChange:f,...p})=>{let h=X8(t),g=H.Children.only(o);a!==void 0&&Ht("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[y,E]=x.useState(i??a??!1),w=x.useCallback(b=>{E(b),f==null||f(b)},[f]);return H.createElement(Fme,{delay:s,closeDelay:c,isOpen:d??y,onOpenChange:w,trigger:e?"focus":void 0,...p},H.createElement(Dpe,null,H.cloneElement(g,{"aria-describedby":null})),H.createElement(jme,{"data-testid":"tooltip",placement:h,offset:r,onOpenChange:w,style:{outline:"none"},...p},n))},J8=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=x.useMemo(()=>{var a;let i=((a=document==null?void 0:document.body)==null?void 0:a.getAttribute("data-shortcuts-enabled"))!=="false";if(!(!n&&(!r||!i)))return[n,r&&i&&`[${Uce(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?H.createElement(zme,{placement:"top",tooltip:H.createElement(Sfe,{note:o}),visible:t?!1:void 0},e):H.createElement(H.Fragment,null,e)};J8.displayName="InteractiveTooltipWrapper";function Kme(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?H.createElement("span",{id:t,hidden:!0},e):null}}var jr=x.forwardRef(({as:e="button",asChild:t=!1,animation:r="none",size:n="small",variant:o="outline",padding:i="medium",disabled:a=!1,readOnly:s=!1,active:c,onClick:d,ariaLabel:f,ariaDescription:p=void 0,tooltip:h=void 0,shortcut:g=void 0,disableAllTooltips:y=!1,...E},w)=>{let b=t?mfe:e,S;!s&&(f===void 0||f==="")&&(S="ariaLabel",Ht(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${E.children}.`)),c!==void 0&&(S="active",Ht("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:R,AriaDescription:O}=Kme(p),D=x.useMemo(()=>g?zce(g):void 0,[g]),[T,P]=x.useState(!1),_=N=>{d&&d(N),r!=="none"&&P(!0)};return x.useEffect(()=>{let N=setTimeout(()=>{T&&P(!1)},1e3);return()=>clearTimeout(N)},[T]),H.createElement(H.Fragment,null,H.createElement(J8,{disableAllTooltips:y,shortcut:g,tooltip:h||(f!==!1?f:void 0)},H.createElement(Vme,{"data-deprecated":S,as:b,ref:w,variant:o,size:n,padding:i,$disabled:a||s,"aria-disabled":a||s?"true":void 0,readOnly:s,active:c,animating:T,animation:r,onClick:a||s?void 0:_,"aria-label":!s&&f!==!1?f:void 0,"aria-keyshortcuts":s?void 0:D,...s?{}:R,...E})),H.createElement(O,null))});jr.displayName="Button";var Vme=Q("button",{shouldForwardProp:e=>qh(e)})(({theme:e,variant:t,size:r,$disabled:n,readOnly:o,active:i,animating:a,animation:s="none",padding:c})=>({border:0,cursor:o?"inherit":n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="none"?0:c==="small"&&r==="small"?"0 7px":c==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n&&!o?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.base==="light"?e.color.secondary:Rr(.18,e.color.secondary):t==="outline"?e.button.background:t==="ghost"&&i?di(.93,e.barSelectedColor):"transparent",color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&i?e.base==="light"?Rr(.1,e.color.secondary):e.color.secondary:t==="ghost"?e.textMutedColor:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,...!o&&{"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let d=e.color.secondary;return t==="solid"&&(d=e.base==="light"?hp(.1,e.color.secondary):Rr(.3,e.color.secondary)),t==="outline"&&(d=e.button.background),t==="ghost"?di(.86,e.color.secondary):e.base==="light"?Rr(.02,d):hp(.03,d)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let d=e.color.secondary;return t==="solid"&&(d=e.color.secondary),t==="outline"&&(d=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Rr(.02,d):hp(.03,d)})()},"&:focus-visible":{outline:`2px solid ${ul(e.color.secondary,1)}`,outlineOffset:2,zIndex:"1"},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:"0 0 auto",animation:a&&s!=="none"?`${e.animation[s]} 1000ms ease-out`:""}})),Q8=x.forwardRef((e,t)=>(Ht("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),H.createElement(jr,{ref:t,...e,"data-deprecated":"IconButton"})));Q8.displayName="IconButton";var Z8=x.forwardRef(({pressed:e,...t},r)=>H.createElement(Wme,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));Z8.displayName="ToggleButton";var Wme=Q(jr)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?Rr(.1,e.color.secondary):Rr(.2,e.color.secondary)}:{},...t==="outline"?{background:di(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:di(.93,e.barSelectedColor),color:e.base==="light"?Rr(.1,e.color.secondary):e.color.secondary}:{}}:{}})),e6=Q.li(({active:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:"0 0 auto",overflow:"hidden",minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?"var(--listbox-item-active-color)":t.color.defaultText,"--listbox-item-active-color":t.base==="light"?Rr(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?"var(--listbox-item-active-color)":t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:"var(--listbox-item-active-color)",fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":"var(--listbox-item-active-color)"},"&:not(:hover, :has(:focus-visible)) svg + input":{position:"absolute",opacity:0},'&[role="option"]':{cursor:"pointer",borderRadius:t.input.borderRadius,outlineOffset:-2,padding:"0 9px",gap:8,"&:hover":{background:di(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionBehavior:"allow-discrete",transitionDuration:"var(--transition-duration, 0.2s)",transitionProperty:"opacity, block-size, content-visibility"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}),({transitionStatus:e})=>{switch(e){case"preEnter":case"exiting":case"exited":return{opacity:0,blockSize:0,contentVisibility:"hidden"};default:return{opacity:1,blockSize:"auto",contentVisibility:"visible"}}}),Gme=Q(e6)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:"auto",marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionProperty:"inline-size, margin-left, opacity, padding-inline",transitionDuration:"var(--transition-duration, 0.2s)"}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),Yme=Q(jr)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),Xme=Q(Z8)({"&:focus-visible":{outlineOffset:-2}}),t6=x.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return H.createElement(Yme,{...n,variant:r,padding:e,size:t,ref:o})}),Jme=x.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return H.createElement(Xme,{...n,variant:r,padding:e,size:t,ref:o})}),r6=Q(t6)(({theme:e})=>({height:"auto",minHeight:32,flex:"0 1 100%",textAlign:"start",justifyContent:"space-between",fontWeight:"inherit",color:"inherit","&:hover":{color:"inherit"},"& input:enabled:focus-visible":{outline:"none"},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),Qme=e=>H.createElement(r6,{as:"a",...e}),Zme=Q.div(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",flexGrow:1,minWidth:0,padding:"8px 0",lineHeight:"16px","& > *":{margin:0,whiteSpace:"normal"},"& > span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& small":{fontSize:"inherit",color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),ege=Q.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),Lv=Object.assign(Q.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:e6,HoverItem:Gme,Button:t6,Toggle:Jme,Action:r6,Link:Qme,Text:Zme,Icon:ege}),OO=Q.div(({collapsed:e=!1})=>({blockSize:e?0:"auto",contentVisibility:e?"hidden":"visible",transform:e?"translateY(-10px)":"translateY(0)",opacity:e?0:1,overflow:"hidden","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s)",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}));Object.assign(function({children:e,summary:t,collapsed:r,disabled:n,initialCollapsed:o,storageKey:i,state:a,...s}){let c=rge({collapsed:r,disabled:n,initialCollapsed:o,storageKey:i}),d=a||c;return H.createElement(H.Fragment,null,typeof t=="function"?t(d):t,H.createElement(OO,{...s,id:d.contentId,collapsed:d.isCollapsed,"aria-hidden":d.isCollapsed},typeof e=="function"?e(d):e))},{Content:OO});var tge=(e,t)=>{let[r,n]=x.useState(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return x.useEffect(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,n]},rge=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[o,i]=tge(n&&`useCollapsible:${n}`,!!r);x.useEffect(()=>{e!==void 0&&i(e)},[e,i]);let a=x.useCallback(c=>{c==null||c.stopPropagation(),t||i(d=>!d)},[t,i]),s=yr();return{contentId:s,isCollapsed:o,isDisabled:!!t,setCollapsed:i,toggleCollapsed:a,toggleProps:{disabled:t,onClick:a,"aria-controls":s,"aria-expanded":!o}}},nge=er({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),oge=er({"0%":{transform:"rotate(0deg)"},"10%":{transform:"rotate(10deg)"},"40%":{transform:"rotate(170deg)"},"50%":{transform:"rotate(180deg)"},"60%":{transform:"rotate(190deg)"},"90%":{transform:"rotate(350deg)"},"100%":{transform:"rotate(360deg)"}}),ige=er({to:{backgroundPositionX:"36%"}}),IO=Q.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:"relative"})),NO=Q.div(({animation:e="none",color:t,theme:r})=>({position:"relative",width:"100%",padding:1,overflow:"hidden",backgroundColor:r.background.content,borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e==="none"&&t&&r.color[t]||r.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:"box-shadow 1s","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s), box-shadow 1s",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"box-shadow 1s"},"&:before":{content:'""',display:e==="none"?"none":"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:1,...e==="rainbow"&&{animation:`${ige} 10s infinite linear, ${nge} 60s infinite linear`,backgroundImage:"linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",backgroundSize:"1000%",backgroundPositionX:"100%"},...e==="spin"&&{left:"50%",top:"50%",marginLeft:"calc(max(100vw, 100vh) * -0.5)",marginTop:"calc(max(100vw, 100vh) * -0.5)",height:"max(100vw, 100vh)",width:"max(100vw, 100vh)",animation:`${oge} 3s linear infinite`,backgroundImage:t==="negative"?"conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"}}}));Object.assign(x.forwardRef(function({outlineAnimation:e="none",outlineColor:t,outlineAttrs:r={},...n},o){return H.createElement(NO,{animation:e,color:t,ref:o,...r},H.createElement(IO,{...n}))}),{Content:IO,Outline:NO});var age=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],n6=e=>({_s:e,status:age[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),UE=e=>e?6:5,lge=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return UE(t)}},sge=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],uge=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),kO=(e,t,r,n,o)=>{clearTimeout(n.current);let i=n6(e);t(i),r.current=i,o&&o({current:i})},cge=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:i,mountOnEnter:a,unmountOnExit:s,onStateChange:c}={})=>{let[d,f]=x.useState(()=>n6(i?2:UE(a))),p=x.useRef(d),h=x.useRef(),[g,y]=sge(o),E=x.useCallback(()=>{let b=lge(p.current._s,s);b&&kO(b,f,p,h,c)},[c,s]),w=x.useCallback(b=>{let S=O=>{switch(kO(O,f,p,h,c),O){case 1:g>=0&&(h.current=setTimeout(E,g));break;case 4:y>=0&&(h.current=setTimeout(E,y));break;case 0:case 3:h.current=uge(S,O);break}},R=p.current.isEnter;typeof b!="boolean"&&(b=!R),b?!R&&S(e?r?0:1:2):R&&S(t?n?3:4:UE(s))},[E,c,e,t,r,n,g,y,s]);return[d,w,E]};function dge(e){let t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[r,n]=x.useState(t(e));function o(){n(t(e))}return x.useEffect(()=>{let i=window.matchMedia(e);return o(),i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[e]),r}var o6={};Wt(o6,{Actions:()=>_ge,Close:()=>Hm,CloseButton:()=>wge,Col:()=>d6,Container:()=>u6,Content:()=>Sge,Description:()=>Tge,Dialog:()=>Ege,Error:()=>Rge,ErrorWrapper:()=>f6,Header:()=>xge,Overlay:()=>s6,Row:()=>c6,Title:()=>Cge});x.createContext(null);x.createContext(null);x.createContext(null);x.createContext(null);x.createContext(null);var i6=x.createContext({}),fge=x.forwardRef(function(e,t){[e,t]=Nr(e,t,i6);let{children:r,level:n=3,className:o,...i}=e,a=`h${n}`;return H.createElement(a,{...i,ref:t,className:o??"react-aria-Heading"},r)}),a6=x.createContext({}),pge=x.forwardRef(function(e,t){[e,t]=Nr(e,t,a6);let{elementType:r="span",...n}=e;return H.createElement(r,{className:"react-aria-Text",...n,ref:t})}),l6=er({from:{opacity:0},to:{opacity:1}}),hge=er({from:{opacity:1},to:{opacity:0}}),mge=er({from:{maxHeight:0},to:{}}),gge=er({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),yge=er({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),bge=er({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),vge=er({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),s6=Q.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${hge} ${t}ms`:`${l6} ${t}ms`,animationFillMode:"forwards"}})),u6=Q.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:1e5,"&:focus-visible":{outline:"none"}}),({theme:e,width:t,height:r,$variant:n,$status:o,$transitionDuration:i})=>n==="dialog"?{top:"50%",left:"50%",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh","@media (prefers-reduced-motion: no-preference)":{willChange:"transform, opacity",animationTimingFunction:"cubic-bezier(0.32, 0.72, 0, 1)",animation:o==="exiting"||o==="preExit"?`${yge} ${i}ms`:`${gge} ${i}ms`,animationFillMode:"forwards !important"},"@media (prefers-reduced-motion: reduce)":{transform:"translate(-50%, -50%) scale(1)"}}:{bottom:"0",left:"0",right:"0",borderRadius:"10px 10px 0 0",overflow:"hidden",width:t??"100%",height:r??"80%",maxWidth:"100%",background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords"},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:"cubic-bezier(.9,.16,.77,.64)",animation:o==="exiting"||o==="preExit"?`${vge} ${i}ms`:`${bge} ${i}ms`,animationFillMode:"forwards !important"}}),Hm=({asChild:e,children:t,onClick:r,...n})=>{let{close:o}=x.useContext(p6);if(e&&H.isValidElement(t)){let i=a=>{var s,c;r==null||r(a),(c=(s=t.props).onClick)==null||c.call(s,a),o==null||o()};return H.cloneElement(t,{...n,onClick:i})}return H.createElement(jr,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:o},H.createElement(U3,null))},Ege={Close:()=>(Ht("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),H.createElement(Hm,{"data-deprecated":"Modal.Dialog.Close"}))},wge=({ariaLabel:e,...t})=>(Ht("Modal.CloseButton is deprecated, please use Modal.Close instead."),H.createElement(Hm,{asChild:!0},H.createElement(jr,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},H.createElement(U3,null)))),Sge=Q.div({display:"flex",flexDirection:"column",margin:16,gap:16}),c6=Q.div({display:"flex",justifyContent:"space-between",gap:16}),d6=Q.div({display:"flex",flexDirection:"column",gap:4}),xge=({hasClose:e=!0,onClose:t,...r})=>H.createElement(c6,null,H.createElement(d6,{...r}),e&&H.createElement(Hm,{onClick:t})),Cge=Q(e=>H.createElement(fge,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),Tge=Q(pge)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),_ge=Q.div({display:"flex",flexDirection:"row-reverse",gap:8}),f6=Q.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${mge} 300ms, ${l6} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),Rge=({children:e,...t})=>H.createElement(f6,{...t},H.createElement("div",null,e)),p6=x.createContext({});function Age({container:e,portalSelector:t,children:r,width:n,height:o,ariaLabel:i,dismissOnClickOutside:a=!0,dismissOnEscape:s=!0,className:c,open:d,onEscapeKeyDown:f,onInteractOutside:p,onOpenChange:h,defaultOpen:g,transitionDuration:y=200,variant:E="dialog",...w}){let b;(i===void 0||i==="")&&(b="ariaLabel",Ht("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),f!==void 0&&(b="onEscapeKeyDown",Ht("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),p!==void 0&&(b="onInteractOutside",Ht("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let S=x.useRef(null),R=dge("(prefers-reduced-motion: reduce)"),[{status:O,isMounted:D},T]=cge({timeout:R?0:y,mountOnEnter:!0,unmountOnExit:!0}),P=Sd({isOpen:d||D,defaultOpen:g,onOpenChange:Y=>{T(Y),h==null||h(Y)}}),_=()=>{P.close()},{modalProps:N,underlayProps:V}=Mme({isDismissable:a,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:p?Y=>{let $=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:Y});return p($),!$.defaultPrevented}:void 0},P,S);if(x.useEffect(()=>{let Y=d??g??!1;Y&&!D?T(!0):!Y&&D&&T(!1)},[d,g,D,T]),x.useEffect(()=>{D&&(d||g)&&(h==null||h(!0))},[D]),x.useEffect(()=>{if(D&&(d||g)&&S.current)return qm([S.current],{shouldUseInert:!0})},[D,d,g,S]),!D||O==="exited"||O==="unmounted")return null;let L=He(N,{onKeyDown:Y=>{var $;Y.key!=="Escape"?($=N.onKeyDown)==null||$.call(N,Y):s&&(f==null||f(Y.nativeEvent),Y.nativeEvent.defaultPrevented||_())}}),K=e??(t?document.querySelector(t):void 0);return H.createElement(xh,{disableFocusManagement:!0,portalContainer:K||void 0},H.createElement(Ix,{restoreFocus:!0,contain:!0,autoFocus:!0},H.createElement(s6,{$status:O,$transitionDuration:y,...V}),H.createElement("div",{role:"dialog","aria-label":i,ref:S,...L},H.createElement(p6.Provider,{value:{close:_}},H.createElement("div",{tabIndex:-1},H.createElement(u6,{"data-deprecated":b,$variant:E,$status:O,$transitionDuration:y,className:c,width:n,height:o,...w},r))))))}Object.assign(Age,o6);Q.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${a1}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${a1}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}});var Pge=Q.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),$ge=Q.div(),Oge=Q.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),Ige=({children:e,...t})=>{let[r,n]=x.Children.toArray(e);return H.createElement(Oge,{...t},H.createElement(Pge,null,r),n&&H.createElement($ge,null,n))};function Nge(e,t){var r=x.useRef(null),n=x.useRef(null);n.current=t;var o=x.useRef(null);x.useEffect(function(){i()});var i=x.useCallback(function(){var a=o.current,s=n.current,c=a||(s?s instanceof Element?s:s.current:null);r.current&&r.current.element===c&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:c,subscriber:e,cleanup:c?e(c):void 0})},[e]);return x.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),x.useCallback(function(a){o.current=a,i()},[i])}function DO(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function kge(e){e===void 0&&(e={});var t=e.onResize,r=x.useRef(void 0);r.current=t;var n=e.round||Math.round,o=x.useRef(),i=x.useState({width:void 0,height:void 0}),a=i[0],s=i[1],c=x.useRef(!1);x.useEffect(function(){return c.current=!1,function(){c.current=!0}},[]);var d=x.useRef({width:void 0,height:void 0}),f=Nge(x.useCallback(function(p){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(h){var g=h[0],y=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",E=DO(g,y,"inlineSize"),w=DO(g,y,"blockSize"),b=E?n(E):void 0,S=w?n(w):void 0;if(d.current.width!==b||d.current.height!==S){var R={width:b,height:S};d.current.width=b,d.current.height=S,r.current?r.current(R):c.current||s(R)}})}),o.current.instance.observe(p,{box:e.box}),function(){o.current&&o.current.instance.unobserve(p)}},[e.box,n]),e.ref);return x.useMemo(function(){return{ref:f,width:a.width,height:a.height}},[f,a.width,a.height])}Q.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));var{document:qwe}=Re;Q.strong(({theme:e})=>({color:e.color.orange}));Q.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"}));Q.em(({theme:e})=>({color:e.textMutedColor}));var Dge=Q.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:2,display:"grid",flexShrink:0,height:14,margin:0,placeContent:"center",transition:"background-color 0.1s",width:14,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base==="dark"?ke.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:ke.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),Mge=e=>H.createElement(Dge,{...e,type:"checkbox"}),Lge=Q.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Bge=Q.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Fge=({label:e,children:t,...r})=>H.createElement(Lge,{...r},e?H.createElement(Bge,null,H.createElement("span",null,e)):null,t),Dx=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},h6=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},m6=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},jge={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Mx=({theme:e})=>({...jge,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},'&[disabled], &[aria-disabled="true"]':{background:e.base==="light"?e.color.lighter:"transparent",cursor:"not-allowed"},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),qge=Q.div({position:"relative",width:"100%"}),Hge=Q.div(({theme:e})=>({position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none",overflow:"hidden",color:e.textMutedColor,"span:first-of-type":{opacity:0}}),e=>{let{fontSize:t,lineHeight:r,padding:n}=Mx(e);return{fontSize:t,lineHeight:r,padding:n}}),Uge=Object.assign(Q(x.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:o,...i},a){let s=yr();return H.createElement(qge,null,H.createElement("input",{...i,value:n,ref:a,"aria-describedby":o?s:void 0}),o&&H.createElement(Hge,{"aria-hidden":!0},H.createElement("span",null,n),H.createElement("span",{id:s},o)))}))(Mx,Dx,h6,m6,{minHeight:32,width:"100%"}),{displayName:"Input"}),zge=Q.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:8,display:"grid",flexShrink:0,height:16,margin:-1,placeContent:"center",transition:"background-color 0.1s",width:16,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base==="dark"?ke.dark:e.color.mediumdark,borderColor:e.base==="dark"?ke.dark:e.color.mediumdark},"&:checked":{backgroundColor:ke.secondary,borderColor:ke.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),Kge=e=>H.createElement(zge,{...e,type:"radio"}),Vge=Q.select(Dx,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:`1px solid ${e.input.border}`,padding:4,marginTop:4,background:e.base==="light"?ew(e.background.app):e.background.app,filter:`
drop-shadow(0 5px 5px rgba(0,0,0,0.05))
drop-shadow(0 0 3px rgba(0,0,0,0.1))
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),Wge=({children:e,...t})=>H.createElement(Vge,{...t},!SU()&&H.createElement("button",null,H.createElement("selectedcontent",null),H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},H.createElement("path",{d:"m6 9 6 6 6-6"}))),H.createElement("optgroup",null,e)),Gge=x.useLayoutEffect,Yge=function(e){var t=H.useRef(e);return Gge(function(){t.current=e}),t},MO=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},Xge=function(e,t){var r=H.useRef();return H.useCallback(function(n){e.current=n,r.current&&MO(r.current,null),r.current=t,t&&MO(t,n)},[t])},LO={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Jge=function(e){Object.keys(LO).forEach(function(t){e.style.setProperty(t,LO[t],"important")})},BO=Jge,Mr=null,FO=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function Qge(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Mr||(Mr=document.createElement("textarea"),Mr.setAttribute("tabindex","-1"),Mr.setAttribute("aria-hidden","true"),BO(Mr)),Mr.parentNode===null&&document.body.appendChild(Mr);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach(function(h){var g=h;Mr.style[g]=a[g]}),BO(Mr),Mr.value=t;var c=FO(Mr,e);Mr.value=t,c=FO(Mr,e),Mr.value="x";var d=Mr.scrollHeight-o,f=d*r;s==="border-box"&&(f=f+o+i),c=Math.max(f,c);var p=d*n;return s==="border-box"&&(p=p+o+i),c=Math.min(p,c),[c,d]}var jO=function(){},Zge=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},eye=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],tye=!!document.documentElement.currentStyle,rye=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=Zge(eye,t),n=r.boxSizing;if(n==="")return null;tye&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:i}},nye=rye;function Lx(e,t,r){var n=Yge(r);x.useLayoutEffect(function(){var o=function(i){return n.current(i)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var oye=function(e,t){Lx(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},iye=function(e){Lx(window,"resize",e)},aye=function(e){Lx(document.fonts,"loadingdone",e)},lye=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],sye=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=i===void 0?jO:i,s=e.onHeightChange,c=s===void 0?jO:s,d=wU(e,lye),f=d.value!==void 0,p=x.useRef(null),h=Xge(p,t),g=x.useRef(0),y=x.useRef(),E=function(){var b=p.current,S=r&&y.current?y.current:nye(b);if(S){y.current=S;var R=Qge(S,b.value||b.placeholder||"x",o,n),O=R[0],D=R[1];g.current!==O&&(g.current=O,b.style.setProperty("height",O+"px","important"),c(O,{rowHeight:D}))}},w=function(b){f||E(),a(b)};return x.useLayoutEffect(E),oye(p,function(){if(!f){var b=p.current.value;requestAnimationFrame(function(){var S=p.current;S&&b!==S.value&&E()})}}),iye(E),aye(E),x.createElement("textarea",sr({},d,{onChange:w,ref:h}))},uye=x.forwardRef(sye),cye=Object.assign(Q(x.forwardRef(function({size:e,valid:t,align:r,...n},o){return H.createElement(uye,{...n,ref:o})}))(Mx,Dx,h6,m6,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),dye=Object.assign(Q.form({boxSizing:"border-box",width:"100%"}),{Field:Fge,Input:Uge,Select:Wge,Textarea:cye,Button:jr,Checkbox:Mge,Radio:Kge}),fye=Q.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?ew(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),pye=Q(jr)({position:"absolute",top:4,right:4}),Um=x.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:i=8,...a},s)=>H.createElement(fye,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:i,ref:s,...a},e,o&&H.createElement(pye,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},H.createElement(CU,null))));Um.displayName="Popover";var g6=({id:e,title:t,description:r,icon:n,aside:o,children:i,isSelected:a,isActive:s,onClick:c,onFocus:d,onKeyDown:f,shouldLookDisabled:p=!1,...h})=>H.createElement(Lv.Item,{...h,id:e,role:"option",tabIndex:s?0:-1,"aria-selected":a,"aria-disabled":p?!0:void 0,onClick:c,onFocus:d,onKeyDown:f},i??H.createElement(H.Fragment,null,n&&H.createElement(Lv.Icon,null,n),H.createElement(Lv.Text,null,H.createElement("p",null,t),r&&H.createElement("small",null,r)),o));g6.displayName="SelectOption";var cp=5,y6=Symbol.for("undefined");function hye(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function zE(e){return{...e,type:"option",value:Np(e.value)}}function Bv(e){return"type"in e&&e.type==="reset"?e:zE(e)}function Qu(e){if(e!==y6)return e}function Np(e){return e===void 0?y6:e}var mye=Q("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function qO(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var gye=Q.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function HO(e,t){return t===void 0?[]:hye(t)?e.filter(r=>r.value===t).map(zE):e.filter(r=>t.some(n=>r.value===n)).map(zE)}var yye=Q(jr)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:di(.93,r.barSelectedColor),color:r.base==="light"?Rr(.1,r.color.secondary):r.color.secondary}:{}),bye=Q.div({position:"fixed",inset:0,zIndex:1e3}),vye=({children:e,handleClose:t,triggerRef:r})=>{let n=H.useRef(null);kL({ref:n,onInteractOutside:t}),x.useEffect(()=>{if(n.current)return qm([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Ox({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:i,underlayProps:a}=Nx({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),s=QI();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:"thin"},H.createElement(xh,{disableFocusManagement:!0,...i},H.createElement(bye,{...a}),H.createElement(Um,{hasChrome:!0,ref:n,padding:0,...o},e))},Eye=x.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:i=!1,onReset:a,padding:s="small",resetLabel:c,onSelect:d,onDeselect:f,onChange:p,tooltip:h,ariaLabel:g,showSelectedOptionTitle:y=!0,...E},w)=>{var de;let[b,S]=x.useState(E.defaultOpen||!1),[R,O]=x.useState(!1),D=lo(w),T=x.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),P=`${T}-listbox`,_=x.useRef(null),N=Sd({isOpen:b&&!r,onOpenChange:S}),V=x.useCallback(()=>{S(!1),O(!0)},[]);x.useEffect(()=>{var ee;!N.isOpen&&R&&((ee=D.current)==null||ee.focus(),O(!1))},[N.isOpen,R,D]);let[L,K]=x.useState(HO(n,o)),Y=x.useCallback(ee=>{ee.type==="reset"?(p==null||p([]),a==null||a(),K([])):K(i?oe=>{let ge=[];return oe!=null&&oe.some(ye=>ye.value===ee.value)?(f==null||f(Qu(ee.value)),ge=(oe==null?void 0:oe.filter(ye=>ye.value!==ee.value))??[]):(d==null||d(Qu(ee.value)),ge=[...oe??[],ee]),p==null||p(ge.map(ye=>Qu(ye.value))),ge}:oe=>oe.every(ge=>ge.value!==ee.value)?(d==null||d(Qu(ee.value)),p==null||p([Qu(ee.value)]),[ee]):oe)},[i,p,d,f,a]),$=x.useMemo(()=>a?{type:"reset",value:void 0,title:c??"Reset selection",icon:H.createElement(PU,null),description:void 0,children:void 0}:void 0,[a,c]),M=x.useMemo(()=>$?[$,...n]:n,[n,$]);x.useEffect(()=>{o&&K(HO(n,o))},[o,n]);let[I,B]=x.useState(void 0),k=x.useCallback((ee,oe=!0)=>{B(Bv(ee)),!i&&oe&&Y(Bv(ee))},[i,Y]),z=x.useCallback((ee=1)=>{if(!b||!I){k(M[ee===1?0:Math.min(ee,M.length-1)]);return}let oe=M.findIndex(ve=>I.type==="reset"?"type"in ve&&ve.type==="reset":Np(ve.value)===I.value),ge=oe+ee,ye;ge>=M.length&&oe===M.length-1?ye=M[0]:ye=M[Math.min(M.length-1,ge)],k(ye)},[b,I,k,M]),F=x.useCallback((ee=1)=>{if(!b||!I){k(M[Math.max(0,M.length-ee)]);return}let oe=M.findIndex(ve=>I.type==="reset"?"type"in ve&&ve.type==="reset":Np(ve.value)===I.value),ge=oe-ee,ye;ge<0&&oe===0?ye=M[M.length-1]:ye=M[Math.max(0,ge)],k(ye)},[b,I,k,M]),q=x.useCallback(ee=>{let oe=me=>{ee.preventDefault(),k(M[me]),S(!0)},ge=M.findIndex(me=>L.some(he=>he.value===Np(me.value))),ye=ge!==-1,ve=$&&!ye?1:0,J=M.length-1;ee.key==="Enter"||ee.key===" "?oe(ye?Math.min(ge,J):ve):ee.key==="ArrowDown"?oe(ye?Math.min(ge+1,J):ve):ee.key==="ArrowUp"?oe(ye?Math.max(ge-1,ve):J):ee.key==="Home"?oe(ve):ee.key==="End"?oe(J):ee.key==="PageDown"?oe(Math.min((ye?ge:ve)+cp,J)):ee.key==="PageUp"&&oe(Math.max(0,(ye?ge:J)-cp))},[M,$,k,L]),U=x.useCallback(ee=>{ee.key!=="Tab"?ee.preventDefault():V(),ee.key==="Escape"?V():ee.key==="ArrowDown"?z():ee.key==="ArrowUp"?F():ee.key==="Home"?k(M[0]):ee.key==="End"?k(M[M.length-1]):ee.key==="PageDown"?z(cp):ee.key==="PageUp"&&F(cp)},[V,z,F,M,k]);x.useEffect(()=>{var ee;if(b&&I){let oe=document.getElementById(qO(T,I));oe&&(oe.scrollIntoView({block:"nearest"}),oe.focus())}else b&&((ee=_.current)==null||ee.focus())},[b,I,T]);let Z=x.useMemo(()=>L.length===1?`${g} ${L[0].title}`:L.length?`${g}, ${L.length} values selected`:g,[g,L]);return H.createElement(H.Fragment,null,H.createElement(yye,{...E,variant:"ghost",ariaLabel:Z,tooltip:h??g,disableAllTooltips:b,id:T,ref:D,padding:s,$isOpen:b,$hasSelection:!!L.length,"aria-disabled":r,disabled:r,onClick:()=>{b?V():S(!0)},tabIndex:b?-1:0,onKeyDown:q,role:"button","aria-controls":b?P:void 0,"aria-expanded":b,"aria-haspopup":"listbox"},!i&&H.createElement(H.Fragment,null,t,y&&((de=L[0])==null?void 0:de.title)||e),i&&H.createElement(H.Fragment,null,t,e,!!L.length&&H.createElement(gye,{"aria-label":`${L.length} ${L.length>1?"items":"item"} selected`},L==null?void 0:L.length))),N.isOpen&&H.createElement(vye,{handleClose:V,triggerRef:D},H.createElement(mye,{"aria-label":g,role:"listbox",id:P,ref:_,"aria-multiselectable":i,onKeyDown:U,tabIndex:b?0:-1},M.map(ee=>({option:Bv(ee),externalOption:ee})).map(({externalOption:ee,option:oe})=>{let ge=(L==null?void 0:L.some(ve=>ve.value===oe.value))&&oe!==$,ye=oe===$;return H.createElement(g6,{key:oe.value===void 0?"sb-reset":String(oe.value),title:oe.title,description:oe.description,aside:oe.aside,icon:!ye&&i?H.createElement(dye.Checkbox,{checked:ge,hidden:!0,role:"presentation"}):oe.icon,id:qO(T,oe),isActive:b&&(I==null?void 0:I.value)===oe.value,isSelected:ge,onClick:()=>{Y(oe),i||V()},onFocus:()=>k(ee,!1),shouldLookDisabled:ye&&L.length===0&&i,onKeyDown:ve=>{ve.key==="Enter"||ve.key===" "?(ve.preventDefault(),Y(oe),i||V()):ve.key==="Tab"&&(i||Y(oe),V())}},oe.children)}))))});Eye.displayName="Select";var Tl=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},b6=class extends Tl{filter(e,t,r){let[n,o]=S6(e,t,this.firstChildKey,r),i=this.clone();return i.firstChildKey=n,i.lastChildKey=o,i}},v6=class extends Tl{};v6.type="header";var wye=class extends Tl{};wye.type="loader";var E6=class extends b6{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};E6.type="item";var w6=class extends b6{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};w6.type="section";var Sye=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=S6(this,t,this.firstKey,e);return t==null||t.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function S6(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,a=e.getItem(r);for(;a!=null;){let d=a.filter(e,t,n);d!=null&&(d.nextKey=null,i&&(d.prevKey=i.key,i.nextKey=d.key),o==null&&(o=d),t.addNode(d),i=d),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let d=i.prevKey;t.removeNode(i.key),d?(i=t.getItem(d),i.nextKey=null):i=null}var s,c;return[(s=o==null?void 0:o.key)!==null&&s!==void 0?s:null,(c=i==null?void 0:i.key)!==null&&c!==void 0?c:null]}var x6=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},Fv=class KE extends x6{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof KE?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,i,a,s,c;let d=this.nextVisibleSibling,f=this.getMutableNode();if(f!=null){f.index=this.index,f.level=this.level;var p;f.parentKey=this.parentNode instanceof KE&&(p=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&p!==void 0?p:null;var h;f.prevKey=(h=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&h!==void 0?h:null;var g;f.nextKey=(g=d==null||(o=d.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null,f.hasChildNodes=!!this.firstChild;var y;f.firstChildKey=(y=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.key)!==null&&y!==void 0?y:null;var E;if(f.lastChildKey=(E=(c=this.lastVisibleChild)===null||c===void 0||(s=c.node)===null||s===void 0?void 0:s.key)!==null&&E!==void 0?E:null,(f.colSpan!=null||f.colIndex!=null)&&d){var w,b;let S=((w=f.colIndex)!==null&&w!==void 0?w:f.index)+((b=f.colSpan)!==null&&b!==void 0?b:1);if(d.node!=null&&S!==d.node.colIndex){let R=d.getMutableNode();R.colIndex=S}}}}setProps(t,r,n,o,i){let a,{value:s,textValue:c,id:d,...f}=t;if(this.node==null?(a=new n(d??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),f.ref=r,a.props=f,a.rendered=o,a.render=i,a.value=s,a.textValue=c||(typeof f.children=="string"?f.children:"")||t["aria-label"]||"",d!=null&&d!==a.key)throw new Error("Cannot change the id of an item");f.colSpan!=null&&(a.colSpan=f.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,s=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),s&&t.ownerDocument.markDirty(s),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},xye=class extends x6{get isConnected(){return this.isMounted}createElement(e){return new Fv(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let a of this.dirtyNodes)a instanceof Fv&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof Fv&&(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,i;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(i=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function C6(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=x.useMemo(()=>new WeakMap,i);return x.useMemo(()=>{if(r&&typeof t=="function"){let d=[];for(let f of r){let p=a.get(f);if(!p){p=t(f);var s,c;let h=(c=(s=p.props.id)!==null&&s!==void 0?s:f.key)!==null&&c!==void 0?c:f.id;if(h==null)throw new Error("Could not determine key for item");n&&(h=n+":"+h),p=x.cloneElement(p,o?{key:h,id:h,value:f}:{key:h}),a.set(f,p)}d.push(p)}return d}else if(typeof t!="function")return t},[t,r,a,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Ch=x.createContext(!1);function Cye(e){if(x.useContext(Ch))return H.createElement(H.Fragment,null,e.children);let t=H.createElement(Ch.Provider,{value:!0},e.children);return H.createElement("template",{"data-react-aria-hidden":!0},t)}function Bx(e){let t=(r,n)=>x.useContext(Ch)?null:e(r,n);return t.displayName=e.displayName||e.name,x.forwardRef(t)}function Tye(){return x.useContext(Ch)}var T6=x.createContext(!1),Jc=x.createContext(null);function _6(e){if(x.useContext(Jc))return e.content;let{collection:t,document:r}=Pye(e.createCollection);return H.createElement(H.Fragment,null,H.createElement(Cye,null,H.createElement(Jc.Provider,{value:r},e.content)),H.createElement(_ye,{render:e.children,collection:t}))}function _ye({collection:e,render:t}){return t(e)}function Rye(e,t,r){let n=Cl(),o=x.useRef(n);o.current=n;let i=x.useCallback(()=>o.current?r():t(),[t,r]);return _de.useSyncExternalStore(e,i)}var Aye=typeof H.useSyncExternalStore=="function"?H.useSyncExternalStore:Rye;function Pye(e){let[t]=x.useState(()=>new xye((e==null?void 0:e())||new Sye)),r=x.useCallback(a=>t.subscribe(a),[t]),n=x.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=x.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=Aye(r,n,o);return ct(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}var VE=x.createContext(null);function $ye(e){var t;return t=class extends Tl{},t.type=e,t}function R6(e,t,r,n,o,i){typeof e=="string"&&(e=$ye(e));let a=x.useCallback(c=>{c==null||c.setProps(t,r,e,n,i)},[t,r,n,i,e]),s=x.useContext(VE);if(s){let c=s.ownerDocument.nodesByProps.get(t);return c||(c=s.ownerDocument.createElement(e.type),c.setProps(t,r,e,n,i),s.appendChild(c),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,c)),o?H.createElement(VE.Provider,{value:c},o):null}return H.createElement(e.type,{ref:a},o)}function zm(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=x.forwardRef((o,i)=>{let a=x.useContext(bh);if(!x.useContext(T6)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return R6(e,o,i,"children"in o?o.children:null,null,s=>H.createElement(bh.Provider,{value:a},H.createElement(r,{node:s})))});return n.displayName=t.name,n}function Fx(e,t,r=A6){let n=({node:i})=>t(i.props,i.props.ref,i),o=x.forwardRef((i,a)=>{let s=r(i);var c;return(c=R6(e,i,a,null,s,d=>H.createElement(n,{node:d})))!==null&&c!==void 0?c:H.createElement(H.Fragment,null)});return o.displayName=t.name,o}function A6(e){return C6({...e,addIdAndValue:!0})}var UO=x.createContext(null);function P6(e){let t=x.useContext(UO),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),o=A6({...e,idScope:n,dependencies:r});return x.useContext(Jc)&&(o=H.createElement(Oye,null,o)),t=x.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),H.createElement(UO.Provider,{value:t},o)}function Oye({children:e}){let t=x.useContext(Jc),r=x.useMemo(()=>H.createElement(Jc.Provider,{value:null},H.createElement(T6.Provider,{value:!0},e)),[e]);return Cl()?H.createElement(VE.Provider,{value:t},r):td.createPortal(r,t)}var $6=x.createContext({});Bx(function(e,t){[e,t]=Nr(e,t,$6);let{elementType:r="label",...n}=e;return H.createElement(r,{className:"react-aria-Label",...n,ref:t})});function Iye(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=yr(t);let a=yr(),s={};r&&(n=n?`${a} ${n}`:a,s={id:a,htmlFor:i==="label"?t:void 0});let c=Mm({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:c}}function Nye(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=Lt(e,{labelable:!0}),{labelProps:c,fieldProps:d}=Iye({...e,labelElementType:"span"});t=Vc(t,r,n);let f=(t-r)/(n-r),p=ame(a);if(!i&&!o){let h=a.style==="percent"?f:t;o=p.format(h)}return{progressBarProps:He(s,{...d,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:c}}var O6=x.createContext(null);x.forwardRef(function(e,t){[e,t]=Nr(e,t,O6);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:i=!1}=e;r=Vc(r,n,o);let[a,s]=DL(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:c,labelProps:d}=Nye({...e,label:s}),f=i?void 0:(r-n)/(o-n)*100,p=En({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:f,valueText:c["aria-valuetext"],isIndeterminate:i}}),h=Lt(e,{global:!0});return H.createElement("div",{...He(h,p,c),ref:t,slot:e.slot||void 0},H.createElement($6.Provider,{value:{...d,ref:a,elementType:"span"}},p.children))});var bo=null;function zO(e,t="assertive",r=7e3){bo?bo.announce(e,t,r):(bo=new kye,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?bo.announce(e,t,r):setTimeout(()=>{bo!=null&&bo.isAttached()&&(bo==null||bo.announce(e,t,r))},100))}var kye=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(i):(o=this.politeLog)===null||o===void 0||o.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function Dye(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:p,href:h,target:g,rel:y,type:E="button"}=e,w;r==="button"?w={type:E,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:w={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?g:void 0,type:r==="input"?E:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:b,isPressed:S}=Ed({onPressStart:i,onPressEnd:a,onPressChange:c,onPress:o,onPressUp:s,onClick:p,isDisabled:n,preventFocusOnPress:d,ref:t}),{focusableProps:R}=wd(e,t);f&&(R.tabIndex=n?-1:R.tabIndex);let O=He(R,b,Lt(e,{labelable:!0}));return{isPressed:S,buttonProps:He(w,O,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var I6=x.createContext({});Bx(function(e,t){[e,t]=Nr(e,t,I6),e=Mye(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:i}=Dye(e,t),{focusProps:a,isFocused:s,isFocusVisible:c}=jm(e),{hoverProps:d,isHovered:f}=tu({...e,isDisabled:e.isDisabled||n}),p={isHovered:f,isPressed:(r.isPressed||i)&&!n,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:n??!1},h=En({...e,values:p,defaultClassName:"react-aria-Button"}),g=yr(o.id),y=yr(),E=o["aria-labelledby"];n&&(E?E=`${E} ${y}`:o["aria-label"]&&(E=`${g} ${y}`));let w=x.useRef(n);x.useEffect(()=>{let S={"aria-labelledby":E||g};(!w.current&&s&&n||w.current&&s&&!n)&&zO(S,"assertive"),w.current=n},[n,s,E,g]);let b=Lt(e,{global:!0});return delete b.onClick,H.createElement("button",{...He(b,h,o,a,d),type:o.type==="submit"&&n?"button":o.type,id:g,ref:t,"aria-labelledby":E,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":n||void 0,"data-focus-visible":c||void 0},H.createElement(O6.Provider,{value:{id:y}},h.children))});function Mye(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var jx=x.createContext(null),KO=x.createContext(null),Lye=x.forwardRef(function(e,t){[e,t]=Nr(e,t,jx);let r=x.useContext(Vm),n=Sd(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,i=wL(t,o.isOpen)||e.isExiting||!1,a=Tye(),{direction:s}=wa();if(a){let c=e.children;return typeof c=="function"&&(c=c({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),H.createElement(H.Fragment,null,c)}return o&&!o.isOpen&&!i?null:H.createElement(Bye,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i,dir:s})});function Bye({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=x.useRef(null),a=x.useRef(null),s=x.useContext(KO),c=s&&o.trigger==="SubmenuTrigger";var d;let{popoverProps:f,underlayProps:p,arrowProps:h,placement:g,triggerAnchorPoint:y}=Dme({...o,offset:(d=o.offset)!==null&&d!==void 0?d:8,arrowRef:i,groupRef:c?s:a},e),E=o.popoverRef,w=EL(E,!!g)||o.isEntering||!1,b=En({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:w,isExiting:t}}),S=!o.isNonModal||o.trigger==="SubmenuTrigger",[R,O]=x.useState(!1);ct(()=>{E.current&&O(S&&!E.current.querySelector("[role=dialog]"))},[E,S]),x.useEffect(()=>{R&&o.trigger!=="SubmenuTrigger"&&E.current&&!E.current.contains(document.activeElement)&&ha(E.current)},[R,E,o.trigger]);let D=x.useMemo(()=>{let N=b.children;if(n)for(let V of n)N=H.createElement(V.Provider,{value:null},N);return N},[b.children,n]),T={...f.style,"--trigger-anchor-point":y?`${y.x}px ${y.y}px`:void 0,...b.style},P=H.createElement("div",{...He(Lt(o,{global:!0}),f),...b,role:R?"dialog":void 0,tabIndex:R?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:E,slot:o.slot||void 0,style:T,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":w||void 0,"data-exiting":t||void 0},!o.isNonModal&&H.createElement(PO,{onDismiss:e.close}),H.createElement(Px.Provider,{value:{...h,placement:g,ref:i}},D),H.createElement(PO,{onDismiss:e.close}));if(!c)return H.createElement(xh,{...o,shouldContainFocus:R,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&H.createElement("div",{"data-testid":"underlay",...p,style:{position:"fixed",inset:0}}),H.createElement("div",{ref:a,style:{display:"contents"}},H.createElement(KO.Provider,{value:a},P)));var _;return H.createElement(xh,{...o,shouldContainFocus:R,isExiting:t,portalContainer:(_=r??(s==null?void 0:s.current))!==null&&_!==void 0?_:void 0},P)}var N6=x.createContext(null);Fx("section",(e,t,r)=>{let{name:n,render:o}=x.useContext(N6);return o(e,t,r,"react-aria-Section")});var k6={CollectionRoot({collection:e,renderDropIndicator:t}){return VO(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return VO(e,t,r)}};function VO(e,t,r){return C6({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:H.createElement(H.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,Fye(e,n,r))}})}function Fye(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let s=[];if(a==null){let c=t;for(;c&&(!i||c.parentKey!==i.parentKey&&i.level<c.level);){let d=r({type:"item",key:c.key,dropPosition:"after"});x.isValidElement(d)&&s.push(x.cloneElement(d,{key:`${c.key}-after`})),c=c.parentKey!=null?e.getItem(c.parentKey):null}}return s}var xd=x.createContext(k6);function D6(e){return x.useMemo(()=>e!=null?new Set([e]):null,[e])}var WO=x.createContext(null),jye=x.createContext(null),M6=x.createContext({});zm(v6,function(e,t){return[e,t]=Nr(e,t,M6),H.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var L6=x.createContext({});x.forwardRef(function(e,t){return[e,t]=Nr(e,t,L6),H.createElement("kbd",{dir:"ltr",...e,ref:t})});function qye(e){let t=Lt(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var B6=x.createContext({}),F6=class extends Tl{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};F6.type="separator";zm(F6,function(e,t){[e,t]=Nr(e,t,B6);let{elementType:r,orientation:n,style:o,className:i,slot:a,...s}=e,c=r||"hr";c==="hr"&&n==="vertical"&&(c="div");let{separatorProps:d}=qye({...s,elementType:r,orientation:n}),f=Lt(e,{global:!0});return H.createElement(c,{...He(f,d),style:o,className:i??"react-aria-Separator",ref:t,slot:a||void 0})});var j6=new WeakMap;function WE(e){return Vfe()?e.altKey:e.ctrlKey}function kp(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var q6=new WeakMap;function Hye(e){let t=yr();return q6.set(e,t),t}function Uye(e){return q6.get(e)}var zye=1e3;function Kye(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=x.useRef({search:"",timeout:void 0}).current,i=a=>{let s=Vye(a.key);if(!(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&s===" ")){if(s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s,t.getKeyForSearch!=null){let c=t.getKeyForSearch(o.search,r.focusedKey);c==null&&(c=t.getKeyForSearch(o.search)),c!=null&&(r.setFocusedKey(c),n&&n(c))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},zye)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function Vye(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function H6(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:p,allowsTabNavigation:h=!1,isVirtualized:g,scrollRef:y=n,linkBehavior:E="action"}=e,{direction:w}=wa(),b=km(),S=B=>{var k;if(B.altKey&&B.key==="Tab"&&B.preventDefault(),!(!((k=n.current)===null||k===void 0)&&k.contains(B.target)))return;let z=(he,Se)=>{if(he!=null){if(t.isLink(he)&&E==="selection"&&d&&!WE(B)){td.flushSync(()=>{t.setFocusedKey(he,Se)});let _e=kp(n,he),$e=t.getItemProps(he);_e&&b.open(_e,B,$e.href,$e.routerOptions);return}if(t.setFocusedKey(he,Se),t.isLink(he)&&E==="override")return;B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(he):d&&!WE(B)&&t.replaceSelection(he)}};switch(B.key){case"ArrowDown":if(r.getKeyBelow){var F,q,U;let he=t.focusedKey!=null?(F=r.getKeyBelow)===null||F===void 0?void 0:F.call(r,t.focusedKey):(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r);he==null&&i&&(he=(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r,t.focusedKey)),he!=null&&(B.preventDefault(),z(he))}break;case"ArrowUp":if(r.getKeyAbove){var Z,de,ee;let he=t.focusedKey!=null?(Z=r.getKeyAbove)===null||Z===void 0?void 0:Z.call(r,t.focusedKey):(de=r.getLastKey)===null||de===void 0?void 0:de.call(r);he==null&&i&&(he=(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),he!=null&&(B.preventDefault(),z(he))}break;case"ArrowLeft":if(r.getKeyLeftOf){var oe,ge,ye;let he=t.focusedKey!=null?(oe=r.getKeyLeftOf)===null||oe===void 0?void 0:oe.call(r,t.focusedKey):null;he==null&&i&&(he=w==="rtl"?(ge=r.getFirstKey)===null||ge===void 0?void 0:ge.call(r,t.focusedKey):(ye=r.getLastKey)===null||ye===void 0?void 0:ye.call(r,t.focusedKey)),he!=null&&(B.preventDefault(),z(he,w==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var ve,J,me;let he=t.focusedKey!=null?(ve=r.getKeyRightOf)===null||ve===void 0?void 0:ve.call(r,t.focusedKey):null;he==null&&i&&(he=w==="rtl"?(J=r.getLastKey)===null||J===void 0?void 0:J.call(r,t.focusedKey):(me=r.getFirstKey)===null||me===void 0?void 0:me.call(r,t.focusedKey)),he!=null&&(B.preventDefault(),z(he,w==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&B.shiftKey)return;B.preventDefault();let he=r.getFirstKey(t.focusedKey,rs(B));t.setFocusedKey(he),he!=null&&(rs(B)&&B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(he):d&&t.replaceSelection(he))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&B.shiftKey)return;B.preventDefault();let he=r.getLastKey(t.focusedKey,rs(B));t.setFocusedKey(he),he!=null&&(rs(B)&&B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(he):d&&t.replaceSelection(he))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let he=r.getKeyPageBelow(t.focusedKey);he!=null&&(B.preventDefault(),z(he))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let he=r.getKeyPageAbove(t.focusedKey);he!=null&&(B.preventDefault(),z(he))}break;case"a":rs(B)&&t.selectionMode==="multiple"&&s!==!0&&(B.preventDefault(),t.selectAll());break;case"Escape":c==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(B.stopPropagation(),B.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(B.shiftKey)n.current.focus();else{let he=Po(n.current,{tabbable:!0}),Se,_e;do _e=he.lastChild(),_e&&(Se=_e);while(_e);Se&&!Se.contains(document.activeElement)&&Yr(Se)}break}}},R=x.useRef({top:0,left:0});sc(y,"scroll",g?void 0:()=>{var B,k,z,F;R.current={top:(z=(B=y.current)===null||B===void 0?void 0:B.scrollTop)!==null&&z!==void 0?z:0,left:(F=(k=y.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&F!==void 0?F:0}});let O=B=>{if(t.isFocused){B.currentTarget.contains(B.target)||t.setFocused(!1);return}if(B.currentTarget.contains(B.target)){if(t.setFocused(!0),t.focusedKey==null){var k,z;let U=de=>{de!=null&&(t.setFocusedKey(de),d&&!t.isSelected(de)&&t.replaceSelection(de))},Z=B.relatedTarget;var F,q;Z&&B.currentTarget.compareDocumentPosition(Z)&Node.DOCUMENT_POSITION_FOLLOWING?U((F=t.lastSelectedKey)!==null&&F!==void 0?F:(k=r.getLastKey)===null||k===void 0?void 0:k.call(r)):U((q=t.firstSelectedKey)!==null&&q!==void 0?q:(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r))}else!g&&y.current&&(y.current.scrollTop=R.current.top,y.current.scrollLeft=R.current.left);if(t.focusedKey!=null&&y.current){let U=kp(n,t.focusedKey);U instanceof HTMLElement&&(!U.contains(document.activeElement)&&!p&&Yr(U),Xc()==="keyboard"&&G$(U,{containingElement:n.current}))}}},D=B=>{B.currentTarget.contains(B.relatedTarget)||t.setFocused(!1)},T=x.useRef(!1);sc(n,spe,p?B=>{let{detail:k}=B;B.stopPropagation(),t.setFocused(!0),(k==null?void 0:k.focusStrategy)==="first"&&(T.current=!0)}:void 0);let P=hr(()=>{var B,k;let z=(k=(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))!==null&&k!==void 0?k:null;if(z==null){let F=Pr();l8(n.current),s8(F,null),t.collection.size>0&&(T.current=!1)}else t.setFocusedKey(z),T.current=!1});V$(()=>{T.current&&P()},[t.collection,P]);let _=hr(()=>{t.collection.size>0&&(T.current=!1)});V$(()=>{_()},[t.focusedKey,_]),sc(n,lpe,p?B=>{var k;B.stopPropagation(),t.setFocused(!1),!((k=B.detail)===null||k===void 0)&&k.clearFocusKey&&t.setFocusedKey(null)}:void 0);let N=x.useRef(o),V=x.useRef(!1);x.useEffect(()=>{if(N.current){var B,k;let q=null;var z;o==="first"&&(q=(z=(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))!==null&&z!==void 0?z:null);var F;o==="last"&&(q=(F=(k=r.getLastKey)===null||k===void 0?void 0:k.call(r))!==null&&F!==void 0?F:null);let U=t.selectedKeys;if(U.size){for(let Z of U)if(t.canSelectItem(Z)){q=Z;break}}t.setFocused(!0),t.setFocusedKey(q),q==null&&!p&&n.current&&ha(n.current),t.collection.size>0&&(N.current=!1,V.current=!0)}});let L=x.useRef(t.focusedKey),K=x.useRef(null);x.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==L.current||V.current)&&y.current&&n.current){let B=Xc(),k=kp(n,t.focusedKey);if(!(k instanceof HTMLElement))return;(B==="keyboard"||V.current)&&(K.current&&cancelAnimationFrame(K.current),K.current=requestAnimationFrame(()=>{y.current&&(bL(y.current,k),B!=="virtual"&&G$(k,{containingElement:n.current}))}))}!p&&t.isFocused&&t.focusedKey==null&&L.current!=null&&n.current&&ha(n.current),L.current=t.focusedKey,V.current=!1}),x.useEffect(()=>()=>{K.current&&cancelAnimationFrame(K.current)},[]),sc(n,"react-aria-focus-scope-restore",B=>{B.preventDefault(),t.setFocused(!0)});let Y={onKeyDown:S,onFocus:O,onBlur:D,onMouseDown(B){y.current===B.target&&B.preventDefault()}},{typeSelectProps:$}=Kye({keyboardDelegate:r,selectionManager:t});f||(Y=He($,Y));let M;p||(M=t.focusedKey==null?0:-1);let I=Hye(t.collection);return{collectionProps:He(Y,{tabIndex:M,"data-collection":I})}}function U6(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:c,onAction:d,allowsDifferentPressOrigin:f,linkBehavior:p="action"}=e,h=km();t=yr(t);let g=F=>{if(F.pointerType==="keyboard"&&WE(F))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(p==="selection"&&o.current){let q=r.getItemProps(n);h.open(o.current,F,q.href,q.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(p==="override"||p==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):F&&F.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||F&&(rs(F)||F.pointerType==="touch"||F.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};x.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?l8(o.current):s?s():document.activeElement!==o.current&&o.current&&ha(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),c=c||r.isDisabled(n);let y={};!a&&!c?y={tabIndex:n===r.focusedKey?0:-1,onFocus(F){F.target===o.current&&r.setFocusedKey(n)}}:c&&(y.onMouseDown=F=>{F.preventDefault()});let E=r.isLink(n)&&p==="override",w=d&&e.UNSTABLE_itemBehavior==="action",b=r.isLink(n)&&p!=="selection"&&p!=="none",S=!c&&r.canSelectItem(n)&&!E&&!w,R=(d||b)&&!c,O=R&&(r.selectionBehavior==="replace"?!S:!S||r.isEmpty),D=R&&S&&r.selectionBehavior==="replace",T=O||D,P=x.useRef(null),_=T&&S,N=x.useRef(!1),V=x.useRef(!1),L=r.getItemProps(n),K=F=>{if(d){var q;d(),(q=o.current)===null||q===void 0||q.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&h.open(o.current,F,L.href,L.routerOptions)},Y={ref:o};if(i?(Y.onPressStart=F=>{P.current=F.pointerType,N.current=_,F.pointerType==="keyboard"&&(!T||YO())&&g(F)},f?(Y.onPressUp=O?void 0:F=>{F.pointerType==="mouse"&&S&&g(F)},Y.onPress=O?K:F=>{F.pointerType!=="keyboard"&&F.pointerType!=="mouse"&&S&&g(F)}):Y.onPress=F=>{if(O||D&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!GO())return;K(F)}else F.pointerType!=="keyboard"&&S&&g(F)}):(Y.onPressStart=F=>{P.current=F.pointerType,N.current=_,V.current=O,S&&(F.pointerType==="mouse"&&!O||F.pointerType==="keyboard"&&(!R||YO()))&&g(F)},Y.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&T&&GO()||F.pointerType==="mouse"&&V.current)&&(T?K(F):S&&g(F))}),y["data-collection"]=Uye(r.collection),y["data-key"]=n,Y.preventFocusOnPress=a,a&&(Y=He(Y,{onPressStart(F){F.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(F){F.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),L)for(let F of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])L[F]&&(Y[F]=vd(Y[F],L[F]));let{pressProps:$,isPressed:M}=Ed(Y),I=D?F=>{P.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),K(F))}:void 0,{longPressProps:B}=Hpe({isDisabled:!_,onLongPress(F){F.pointerType==="touch"&&(g(F),r.setSelectionBehavior("toggle"))}}),k=F=>{P.current==="touch"&&N.current&&F.preventDefault()},z=p!=="none"&&r.isLink(n)?F=>{gl.isOpening||F.preventDefault()}:void 0;return{itemProps:He(y,S||O||a&&!c?$:{},_?B:{},{onDoubleClick:I,onDragStartCapture:k,onClick:z,id:t},a?{onMouseDown:F=>F.preventDefault()}:void 0),isPressed:M,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:c,allowsSelection:S,hasAction:T}}function GO(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function YO(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var XO=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?kp(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(n=e==null?void 0:e.clientWidth)!==null&&n!==void 0?n:0,height:(o=e==null?void 0:e.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},Wye=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let i=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(i,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Ms(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Ms(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let i=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(i,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new XO(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new XO(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function Gye(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=lme({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=x.useMemo(()=>i||new Wye({collection:r,disabledKeys:n,disabledBehavior:c,ref:o,collator:s,layoutDelegate:a}),[i,a,r,n,o,s,c]),{collectionProps:f}=H6({...e,ref:o,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function Yye(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let s=Lt(e,{labelable:!0}),{listProps:c}=Gye({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return j6.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:He(s,{onKeyDown:o,onKeyUp:i},{role:"menu",...c,onKeyDown:d=>{var f;(d.key!=="Escape"||e.shouldUseVirtualFocus)&&((f=c.onKeyDown)===null||f===void 0||f.call(c,d))}})}}var Xye=class{build(e,t){return this.context=t,JO(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(H.isValidElement(t)&&t.type===H.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*this.getFullNode({value:o,index:n},{renderer:t}),n++}else{let n=[];H.Children.forEach(t,i=>{i&&n.push(i)});let o=0;for(let i of n){let a=this.getFullNode({element:i,index:o},{});for(let s of a)o++,yield s}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var i;let a=(i=o.key)!==null&&i!==void 0?i:o.id;if(a==null)throw new Error("No key found for item");return a}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(H.isValidElement(e.element)&&e.element.type===H.Fragment){let E=[];H.Children.forEach(e.element.props.children,b=>{E.push(b)});var o;let w=(o=e.index)!==null&&o!==void 0?o:0;for(let b of E)yield*this.getFullNode({element:b,index:w++},t,r,n);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let E=this.cache.get(e.value);if(E&&(!E.shouldInvalidate||!E.shouldInvalidate(this.context))){E.index=e.index,E.parentKey=n?n.key:null,yield E;return}i=t.renderer(e.value)}if(H.isValidElement(i)){let E=i.type;if(typeof E!="function"&&typeof E.getCollectionNode!="function"){let R=i.type;throw new Error(`Unknown element <${R}> in collection.`)}let w=E.getCollectionNode(i.props,this.context);var a;let b=(a=e.index)!==null&&a!==void 0?a:0,S=w.next();for(;!S.done&&S.value;){let R=S.value;e.index=b;var s;let O=(s=R.key)!==null&&s!==void 0?s:null;O==null&&(O=R.element?null:this.getKey(i,e,t,r));let D=[...this.getFullNode({...R,key:O,index:b,wrapper:Jye(e.wrapper,R.wrapper)},this.getChildState(t,R),r?`${r}${i.key}`:i.key,n)];for(let T of D){var c,d;T.value=(d=(c=R.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,T.value&&this.cache.set(T.value,T);var f;if(e.type&&T.type!==e.type)throw new Error(`Unsupported type <${jv(T.type)}> in <${jv((f=n==null?void 0:n.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${jv(e.type)}> is supported.`);b++,yield T}S=w.next(D)}return}if(e.key==null||e.type==null)return;let p=this;var h,g;let y={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(h=e.value)!==null&&h!==void 0?h:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:JO(function*(){if(!e.hasChildNodes||!e.childNodes)return;let E=0;for(let w of e.childNodes()){w.key!=null&&(w.key=`${y.key}${w.key}`);let b=p.getFullNode({...w,index:E},p.getChildState(t,w),y.key,y);for(let S of b)E++,yield S}})};yield y}constructor(){this.cache=new WeakMap}};function JO(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function Jye(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function jv(e){return e[0].toUpperCase()+e.slice(1)}function z6(e,t,r){let n=x.useMemo(()=>new Xye,[]),{children:o,items:i,collection:a}=e;return x.useMemo(()=>{if(a)return a;let s=n.build({children:o,items:i},r);return t(s)},[n,o,i,a,r,t])}function K6(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Qye(e){return Zye(e)}function Zye(e,t){for(let r of e)return r}function qv(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...QO(e,t),t],o=[...QO(e,r),r],i=n.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function QO(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var ZO=new WeakMap;function ebe(e){let t=ZO.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(K6(i,e)):i.type==="item"&&r++};return n(e),ZO.set(e,r),r}function tbe(e,t,r){let{id:n,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":s,onPressStart:c,onPressUp:d,onPress:f,onPressChange:p,onPressEnd:h,onClick:g,onHoverStart:y,onHoverChange:E,onHoverEnd:w,onKeyDown:b,onKeyUp:S,onFocus:R,onFocusChange:O,onBlur:D,selectionManager:T=t.selectionManager}=e,P=!!s,_=P&&e["aria-expanded"]==="true";var N;let V=(N=e.isDisabled)!==null&&N!==void 0?N:T.isDisabled(o);var L;let K=(L=e.isSelected)!==null&&L!==void 0?L:T.isSelected(o),Y=j6.get(t),$=t.collection.getItem(o),M=e.onClose||Y.onClose,I=km(),B=()=>{var Te;if(!P&&(!($==null||(Te=$.props)===null||Te===void 0)&&Te.onAction?$.props.onAction():e.onAction&&e.onAction(o),Y.onAction)){let et=Y.onAction;et(o)}},k="menuitem";P||(T.selectionMode==="single"?k="menuitemradio":T.selectionMode==="multiple"&&(k="menuitemcheckbox"));let z=$p(),F=$p(),q=$p(),U={id:n,"aria-disabled":V||void 0,role:k,"aria-label":e["aria-label"],"aria-labelledby":z,"aria-describedby":[F,q].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};T.selectionMode!=="none"&&!P&&(U["aria-checked"]=K),a&&(U["aria-posinset"]=$==null?void 0:$.index,U["aria-setsize"]=ebe(t.collection));let Z=x.useRef(!1),de=Te=>{p==null||p(Te),Z.current=Te},ee=x.useRef(null),oe=Te=>{Te.pointerType!=="keyboard"&&(ee.current={pointerType:Te.pointerType}),Te.pointerType==="mouse"&&(Z.current||Te.target.click()),d==null||d(Te)},ge=Te=>{var et,At;g==null||g(Te),B(),Qfe(Te,I,$.props.href,$==null?void 0:$.props.routerOptions);let yt=((et=ee.current)===null||et===void 0?void 0:et.pointerType)==="keyboard"?((At=ee.current)===null||At===void 0?void 0:At.key)==="Enter"||T.selectionMode==="none"||T.isLink(o):T.selectionMode!=="multiple"||T.isLink(o);yt=i??yt,M&&!P&&yt&&M(),ee.current=null},{itemProps:ye,isFocused:ve}=U6({id:n,selectionManager:T,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:Y.shouldUseVirtualFocus}),{pressProps:J,isPressed:me}=Ed({onPressStart:c,onPress:f,onPressUp:oe,onPressChange:de,onPressEnd:h,isDisabled:V}),{hoverProps:he}=tu({isDisabled:V,onHoverStart(Te){!Yc()&&!(_&&s)&&(T.setFocused(!0),T.setFocusedKey(o)),y==null||y(Te)},onHoverChange:E,onHoverEnd:w}),{keyboardProps:Se}=NL({onKeyDown:Te=>{if(Te.repeat){Te.continuePropagation();return}switch(Te.key){case" ":ee.current={pointerType:"keyboard",key:" "},Te.target.click();break;case"Enter":ee.current={pointerType:"keyboard",key:"Enter"},Te.target.tagName!=="A"&&Te.target.click();break;default:P||Te.continuePropagation(),b==null||b(Te);break}},onKeyUp:S}),{focusProps:_e}=_x({onBlur:D,onFocus:R,onFocusChange:O}),$e=Lt($==null?void 0:$.props);delete $e.id;let Oe=mL($==null?void 0:$.props);return{menuItemProps:{...U,...He($e,Oe,P?{onFocus:ye.onFocus,"data-collection":ye["data-collection"],"data-key":ye["data-key"]}:ye,J,he,Se,_e,Y.shouldUseVirtualFocus||P?{onMouseDown:Te=>Te.preventDefault()}:void 0,V?void 0:{onClick:ge}),tabIndex:ye.tabIndex!=null&&_&&!Y.shouldUseVirtualFocus?-1:ye.tabIndex},labelProps:{id:z},descriptionProps:{id:F},keyboardShortcutProps:{id:q},isFocused:ve,isFocusVisible:ve&&T.isFocused&&Yc()&&!_,isSelected:K,isPressed:me,isDisabled:V}}function rbe(e){let{heading:t,"aria-label":r}=e,n=yr();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var dp=2,nbe=50,obe=1e3,eI=Math.PI/12;function ibe(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,i=x.useRef(void 0),a=x.useRef(void 0),s=x.useRef(0),c=x.useRef(void 0),d=x.useRef(void 0),f=x.useRef(void 0),p=x.useRef(2),[h,g]=x.useState(!1);hh({ref:r,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),f.current=void 0)}});let y=()=>{g(!1),p.current=dp,i.current=void 0},E=Ppe(),w=hr(b=>{h&&b.preventDefault()});x.useEffect(()=>{h&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,h]),x.useEffect(()=>{let b=r.current,S=t.current;if(o||!b||!n||E!=="pointer"||!S){y();return}a.current=b.getBoundingClientRect();let R=O=>{if(O.pointerType==="touch"||O.pointerType==="pen")return;let D=Date.now();if(D-s.current<nbe)return;clearTimeout(c.current),clearTimeout(d.current);let{clientX:T,clientY:P}=O;if(!i.current){i.current={x:T,y:P};return}if(!a.current)return;if(f.current||(f.current=T>a.current.right?"left":"right"),T<S.getBoundingClientRect().left||T>S.getBoundingClientRect().right||P<S.getBoundingClientRect().top||P>S.getBoundingClientRect().bottom){y();return}let _=i.current.x,N=i.current.y,V=f.current==="right"?a.current.left-_:_-a.current.right,L=Math.atan2(N-a.current.top,V)+eI,K=Math.atan2(N-a.current.bottom,V)-eI,Y=Math.atan2(N-P,f.current==="left"?-(T-_):T-_),$=Y<L&&Y>K;p.current=$?Math.min(p.current+1,dp):Math.max(p.current-1,0),p.current>=dp?g(!0):g(!1),s.current=D,i.current={x:T,y:P},$&&(c.current=setTimeout(()=>{y(),d.current=setTimeout(()=>{let M=document.elementFromPoint(T,P);M&&S.contains(M)&&M.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},obe))};return window.addEventListener("pointermove",R),window.addEventListener("pointerdown",w,!0),()=>{window.removeEventListener("pointermove",R),window.removeEventListener("pointerdown",w,!0),clearTimeout(c.current),clearTimeout(d.current),p.current=dp}},[o,n,t,E,g,w,r])}function abe(e,t,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:a,delay:s=200,shouldUseVirtualFocus:c}=e,d=yr(),f=yr(),{direction:p}=wa(),h=x.useRef(void 0),g=x.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=void 0)},[h]),y=hr(_=>{g(),t.open(_)}),E=hr(()=>{g(),t.close()});ct(()=>()=>{g()},[g]);let w=_=>{if(_.currentTarget.contains(document.activeElement))switch(_.key){case"ArrowLeft":p==="ltr"&&_.currentTarget.contains(_.target)&&(_.preventDefault(),_.stopPropagation(),E(),!c&&r.current&&Yr(r.current));break;case"ArrowRight":p==="rtl"&&_.currentTarget.contains(_.target)&&(_.preventDefault(),_.stopPropagation(),E(),!c&&r.current&&Yr(r.current));break;case"Escape":var N;!((N=o.current)===null||N===void 0)&&N.contains(_.target)&&(_.stopPropagation(),E(),!c&&r.current&&Yr(r.current));break}};var b;let S={id:f,"aria-labelledby":d,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:w}},R=_=>{switch(_.key){case"ArrowRight":a||(p==="ltr"?(_.preventDefault(),t.isOpen||y("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&Yr(o.current)):t.isOpen?E():_.continuePropagation());break;case"ArrowLeft":a||(p==="rtl"?(_.preventDefault(),t.isOpen||y("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&Yr(o.current)):t.isOpen?E():_.continuePropagation());break;default:_.continuePropagation();break}},O=_=>{!a&&(_.pointerType==="virtual"||_.pointerType==="keyboard")&&y("first")},D=_=>{!a&&(_.pointerType==="touch"||_.pointerType==="mouse")&&y()},T=_=>{a||(_&&!t.isOpen?h.current||(h.current=setTimeout(()=>{y()},s)):_||g())};sc(n,"focusin",_=>{var N;t.isOpen&&!((N=n.current)===null||N===void 0)&&N.contains(_.target)&&_.target!==r.current&&E()});let P=_=>_!==r.current;return ibe({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:d,"aria-controls":t.isOpen?f:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:O,onPress:D,onHoverChange:T,onKeyDown:R,isOpen:t.isOpen},submenuProps:S,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:P}}}function V6(e){let t=Sd(e),[r,n]=x.useState(null),[o,i]=x.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(s=null){n(s),t.open()},toggle(s=null){n(s),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(s,c)=>{i(d=>c>d.length?d:[...d.slice(0,c),s])},closeSubmenu:(s,c)=>{i(d=>d[c]===s?d.slice(0,c):d)}}}function lbe(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:a}=t,[s]=x.useState(n==null?void 0:n.length),c=x.useMemo(()=>n[s]===r,[n,r,s]),[d,f]=x.useState(null),p=x.useCallback(y=>{f(y??null),o(r,s)},[o,s,r]),h=x.useCallback(()=>{f(null),i(r,s)},[i,s,r]),g=x.useCallback(y=>{f(y??null),c?h():p(y)},[h,p,c]);return x.useMemo(()=>({focusStrategy:d,isOpen:c,open:p,close:h,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:g}),[c,p,h,a,d,g,s])}var sbe=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||t.has(a.key)))for(let s of a.childNodes)r(s)};for(let a of e)r(a);let n=null,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}},ri=class W6 extends Set{constructor(t,r,n){super(t),t instanceof W6?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function ube(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function qx(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=x.useRef(!1),[,s]=x.useState(!1),c=x.useRef(null),d=x.useRef(null),[,f]=x.useState(null),p=x.useMemo(()=>tI(e.selectedKeys),[e.selectedKeys]),h=x.useMemo(()=>tI(e.defaultSelectedKeys,new ri),[e.defaultSelectedKeys]),[g,y]=Lm(p,h,e.onSelectionChange),E=x.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,b]=x.useState(o);o==="replace"&&w==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let S=x.useRef(o);return x.useEffect(()=>{o!==S.current&&(b(o),S.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:w,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(R){a.current=R,s(R)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(R,O="first"){c.current=R,d.current=O,f(R)},selectedKeys:g,setSelectedKeys(R){(n||!ube(R,g))&&y(R)},disabledKeys:E,disabledBehavior:i}}function tI(e,t){return e?e==="all"?"all":new ri(e):t}var Hx=class G6{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&qv(this.collection,o,t)<0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&qv(this.collection,o,t)>0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ri([r],r,r);else{let a=this.state.selectedKeys;var o;let s=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new ri(a,s,r);var i;for(let c of this.getKeyRange(s,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(c);for(let c of this.getKeyRange(r,s))this.canSelectItem(c)&&n.add(c)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?qv(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new ri(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new ri([r],r,r):new ri;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new ri;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&t.push(n);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=Qye(K6(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ri)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new G6(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}};function cbe(e){let{onExpandedChange:t}=e,[r,n]=Lm(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=qx(e),i=x.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=z6(e,x.useCallback(s=>new sbe(s,{expandedKeys:r}),[r]),null);return x.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:s=>{n(dbe(r,s))},setExpandedKeys:n,selectionManager:new Hx(a,o)}}function dbe(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var Y6=x.createContext(null),Km=x.createContext(null),Th=x.createContext(null),_h=x.createContext(null),X6=x.createContext(null),J6=class extends Tl{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};J6.type="submenutrigger";Fx(J6,(e,t,r)=>{let{CollectionBranch:n}=x.useContext(xd),o=x.useContext(Km),i=x.useContext(Th),a=lbe({triggerKey:r.key},i),s=x.useRef(null),c=lo(t),{parentMenuRef:d,shouldUseVirtualFocus:f}=x.useContext(X6),{submenuTriggerProps:p,submenuProps:h,popoverProps:g}=abe({parentMenuRef:d,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:f},a,c);return H.createElement(vi,{values:[[Rh,{...p,onAction:void 0,ref:c}],[Y6,{ref:s,...h}],[Vm,a],[jx,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":h["aria-labelledby"],...g}]]},H.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);x.forwardRef(function(e,t){return[e,t]=Nr(e,t,Y6),H.createElement(_6,{content:H.createElement(P6,e)},r=>H.createElement(fbe,{props:e,collection:r,menuRef:t}))});function fbe({props:e,collection:t,menuRef:r}){[e,r]=Nr(e,r,WO);let{filter:n,...o}=e,i=x.useMemo(()=>n?t.filter(n):t,[t,n]),a=cbe({...e,collection:i,children:void 0}),s=x.useContext(Th),{isVirtualized:c,CollectionRoot:d}=x.useContext(xd),{menuProps:f}=Yye({...e,isVirtualized:c,onClose:e.onClose||(s==null?void 0:s.close)},a,r),p=En({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),h=null;a.collection.size===0&&e.renderEmptyState&&(h=H.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=Lt(e,{global:!0});return H.createElement(Ix,null,H.createElement("div",{...He(g,p,f),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},H.createElement(vi,{values:[[Km,a],[B6,{elementType:"div"}],[N6,{name:"MenuSection",render:Q6}],[X6,{parentMenuRef:r,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[Rh,null],[WO,null],[jye,null],[_h,a.selectionManager],[Th,s??V6({})]]},H.createElement(d,{collection:a.collection,persistedKeys:D6(a.selectionManager.focusedKey),scrollRef:r})),h))}var pbe=class extends Hx{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function Q6(e,t,r,n="react-aria-MenuSection"){var o,i;let a=x.useContext(Km),{CollectionBranch:s}=x.useContext(xd),[c,d]=DL();var f;let{headingProps:p,groupProps:h}=rbe({heading:d,"aria-label":(f=r.props["aria-label"])!==null&&f!==void 0?f:void 0}),g=En({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(i=r.props)===null||i===void 0?void 0:i.style,values:{}}),y=x.useContext(_h),E=qx(e),w=e.selectionMode!=null?new pbe(y,E):y,b=Lt(e,{global:!0});return delete b.id,H.createElement("section",{...He(b,g,h),ref:t},H.createElement(vi,{values:[[M6,{...p,ref:c}],[_h,w]]},H.createElement(s,{collection:a.collection,parent:r})))}Fx(w6,Q6);var Rh=x.createContext(null);zm(E6,function(e,t,r){var n;[e,t]=Nr(e,t,Rh);let o=(n=Ax(Rh))===null||n===void 0?void 0:n.id,i=x.useContext(Km),a=lo(t),s=x.useContext(_h),{menuItemProps:c,labelProps:d,descriptionProps:f,keyboardShortcutProps:p,...h}=tbe({...e,id:o,key:r.key,selectionManager:s},i,a),{hoverProps:g,isHovered:y}=tu({isDisabled:h.isDisabled}),E=En({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...h,isHovered:y,isFocusVisible:h.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),w=e.href?"a":"div",b=Lt(e,{global:!0});return delete b.id,delete b.onClick,H.createElement(w,{...He(b,E,c,g),ref:a,"data-disabled":h.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-selected":h.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},H.createElement(vi,{values:[[a6,{slots:{[vh]:d,label:d,description:f}}],[L6,p]]},E.children))});function hbe(e,t){let{role:r="dialog"}=e,n=$p();n=e["aria-label"]?void 0:n;let o=x.useRef(!1);return x.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ha(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),ha(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),W8(),{dialogProps:{...Lt(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var Z6=x.createContext(null),Vm=x.createContext(null);function mbe(e){let t=V6(e),r=x.useRef(null),{triggerProps:n,overlayProps:o}=wme({},t,r),[i,a]=x.useState(null),s=x.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return hh({ref:r,onResize:s}),n.id=yr(),o["aria-labelledby"]=n.id,H.createElement(vi,{values:[[Vm,t],[Th,t],[Z6,o],[jx,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},H.createElement(Lpe,{...n,ref:r,isPressed:t.isOpen},e.children))}x.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Nr(e,t,Z6);let{dialogProps:n,titleProps:o}=hbe({...e,"aria-labelledby":r},t),i=x.useContext(Vm);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let a=En({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),s=Lt(e,{global:!0});return H.createElement("section",{...He(s,a,n),ref:t,slot:e.slot||void 0},H.createElement(vi,{values:[[i6,{slots:{[vh]:{},title:{...o,level:2}}}],[I6,{slots:{[vh]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},a.children))});var gbe=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:i=8,padding:a,popover:s,children:c,defaultVisible:d,visible:f,onVisibleChange:p,...h})=>{e||Ht("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let g=X8(t),[y,E]=x.useState(d??!1),w=x.useCallback(S=>{E(S),p==null||p(S)},[p]),b=x.useCallback(()=>w(!1),[w]);return H.createElement(mbe,{defaultOpen:d,isOpen:f??y,onOpenChange:w,...h},H.createElement(Mpe,null,x.cloneElement(c,{"aria-haspopup":"dialog"})),H.createElement(Lye,{"aria-label":e,placement:g,offset:i,style:{outline:"none"}},H.createElement(Um,{hasChrome:r,hideLabel:o,onHide:n?b:void 0,padding:a},typeof s=="function"?s({onHide:b}):s)))},ybe=x.forwardRef((e,t)=>H.createElement(Um,{ref:t,...e}));ybe.displayName="Tooltip";x.lazy(()=>vs(()=>import("./WithTooltip-65CFNBJE-BzZCnCAS.js"),[],import.meta.url).then(e=>({default:e.WithTooltip})));x.lazy(()=>vs(()=>import("./WithTooltip-65CFNBJE-BzZCnCAS.js"),[],import.meta.url).then(e=>({default:e.WithTooltipPure})));Q.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));Q.span();Q.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));Q.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));Q.div({padding:15,width:280,boxSizing:"border-box"});var bbe=it(pi(),1),vbe=Q(({active:e,loading:t,disabled:r,...n})=>H.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),Ebe=Q.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),wbe=Q.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),Sbe=Q.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),xbe=Q.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Cbe=Q.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),Tbe=(0,bbe.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),eB=x.forwardRef((e,t)=>{let{loading:r=!1,title:n=H.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:a=!1,disabled:s=!1,isIndented:c=!1,href:d=void 0,onClick:f=void 0,icon:p,input:h,LinkWrapper:g=void 0,...y}=e,E={active:a,disabled:s},w=Tbe(e),b=p||h;return Ht("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),H.createElement(Cbe,{"data-deprecated":"ListItem",ref:t,...y,...E,...w},H.createElement(H.Fragment,null,b&&H.createElement(xbe,{...E},b),n||o?H.createElement(wbe,{isIndented:c&&!b},n&&H.createElement(vbe,{...E,loading:r},n),o&&H.createElement(Sbe,{...E},o)):null,i&&H.createElement(Ebe,{...E},i)))});eB.displayName="ListItem";var _be=eB,Rbe=Q.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),Abe=Q.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),Pbe=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:i,href:a}=r,s=x.useCallback(c=>t==null?void 0:t(c,{id:e,active:n,disabled:o,title:i,href:a}),[t,e,n,o,i,a]);return H.createElement(_be,{id:`list-item-${e}`,...r,...t&&{onClick:s}})},$be=({links:e,LinkWrapper:t,...r})=>{Ht("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],o=n.some(i=>i.some(a=>"icon"in a&&a.icon||"input"in a&&a.input));return H.createElement(Rbe,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(i=>i.length).map((i,a)=>H.createElement(Abe,{key:i.map(s=>s.id).join(`~${a}~`)},i.map(s=>"content"in s?H.createElement(x.Fragment,{key:s.id},s.content):H.createElement(Pbe,{key:s.id,isIndented:o,LinkWrapper:t,...s})))))},Obe=Q.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{},...r})),Ibe=Q.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),tB=x.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>H.createElement(Obe,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?H.createElement(Ibe,{innerStyle:r},t):t));tB.displayName="Bar";var GE=Q.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});GE.displayName="Side";var Nbe=Q.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),kbe=Q(tB)({paddingInline:0}),rB=({children:e,backgroundColor:t,className:r="",...n})=>{Ht('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,i]=x.Children.toArray(e);return H.createElement(kbe,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},H.createElement(Nbe,{bgColor:t},H.createElement(GE,{scrollable:n.scrollable,left:!0},o),i?H.createElement(GE,{right:!0},i):null))};rB.displayName="FlexBar";var Dbe=e=>typeof e.props.href=="string",Mbe=e=>typeof e.props.href!="string";function Lbe({children:e,...t},r){let n={props:t,ref:r};if(Dbe(n))return H.createElement("a",{ref:n.ref,...n.props},e);if(Mbe(n))return H.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var nB=x.forwardRef(Lbe);nB.displayName="ButtonOrLink";var Bbe=Q(nB,{shouldForwardProp:qh})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Fs=x.forwardRef((e,t)=>(Ht("The `TabButton` component is deprecated. Use `TabList` instead."),H.createElement(Bbe,{"data-deprecated":"TabButton",ref:t,...e})));Fs.displayName="TabButton";var Fbe=Q.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),jbe=Q.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),qbe=Q.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),Hbe=Q.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),Ube=Q.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),oB=({title:e,description:t,footer:r})=>H.createElement(Fbe,null,H.createElement(jbe,null,H.createElement(qbe,null,e),t&&H.createElement(Ube,null,t)),r&&H.createElement(Hbe,null,r)),iB=Q.div(({active:e})=>e?{display:"block"}:{display:"none"}),zbe=e=>(Ht("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),x.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let i=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:a})=>H.createElement(iB,{active:a,role:"tabpanel"},i)}})),Kbe=Q.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Vbe=Q(Fs)(({active:e,theme:t,preActive:r})=>`
color: ${r||e?t.barSelectedColor:t.barTextColor};
.addon-collapsible-icon {
color: ${r||e?t.barSelectedColor:t.barTextColor};
}
&:hover {
color: ${t.barHoverColor};
.addon-collapsible-icon {
color: ${t.barHoverColor};
}
}
`);function Wbe(e){Ht("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=x.useRef(),r=x.useRef(),n=x.useRef(new Map),{width:o=1}=kge({ref:t}),[i,a]=x.useState(e),[s,c]=x.useState([]),d=x.useRef(e),f=x.useCallback(({menuName:h,actions:g})=>{let y=s.some(({active:b})=>b),[E,w]=x.useState(!1);return H.createElement(H.Fragment,null,H.createElement(gbe,{ariaLabel:"Additional tabs",visible:E,onVisibleChange:w,placement:"bottom",popover:H.createElement($be,{links:s.map(({title:b,id:S,color:R,active:O})=>({id:S,title:b,color:R,active:O,onClick:D=>{D.preventDefault(),g.onSelect(S)}}))})},H.createElement(Vbe,{id:"addons-menu-button",ref:r,active:y,preActive:E,style:{visibility:s.length?"visible":"hidden"},"aria-hidden":!s.length,className:"tabbutton",type:"button",role:"tab"},h,H.createElement(Kbe,{className:"addon-collapsible-icon",isActive:y||E}))),s.map(({title:b,id:S,color:R},O)=>{let D=`index-${O}`;return H.createElement(Fs,{id:`tabbutton-${ks(S)??D}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:T=>{n.current.set(S,T)},className:"tabbutton",type:"button",key:S,textColor:R,role:"tab"},b)}))},[s]),p=x.useCallback(()=>{if(!t.current||!r.current)return;let{x:h,width:g}=t.current.getBoundingClientRect(),{width:y}=r.current.getBoundingClientRect(),E=s.length?h+g-y:h+g,w=[],b=0,S=e.filter(R=>{let{id:O}=R,D=n.current.get(O),{width:T=0}=(D==null?void 0:D.getBoundingClientRect())||{},P=h+b+T>E;return(!P||!D)&&w.push(R),b+=T,P});(w.length!==i.length||d.current!==e)&&(a(w),c(S),d.current=e)},[s.length,e,i]);return x.useLayoutEffect(p,[p,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:i,invisibleList:s,AddonTab:f}}var Gbe="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Ybe=Q.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),Xbe=Q.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),aB=x.forwardRef((e,t)=>(Ht("The `TabBar` component is deprecated. Use `TabsView` instead."),H.createElement(Xbe,{"data-deprecated":"TabBar",...e,ref:t})));aB.displayName="TabBar";var Jbe=Q.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${Gbe}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),Qbe=x.forwardRef(({active:e,render:t,children:r},n)=>(Ht("The `TabWrapper` component is deprecated. Use `TabsView` instead."),H.createElement(iB,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));Qbe.displayName="TabWrapper";var Zbe=class extends x.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Error rendering addon panel"),console.error(e),console.error(t.componentStack)}render(){return this.state.hasError&&this.props.active?H.createElement(oB,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}},Ux=x.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:i=null,backgroundColor:a,id:s=null,menuName:c="Tabs",emptyState:d,showToolsWhenEmpty:f})=>{Ht("The `Tabs` component is deprecated. Use `TabsView` instead.");let p=x.useMemo(()=>zbe(e).map((b,S)=>({...b,active:t?b.id===t:S===0})),[e,t]),{visibleList:h,tabBarRef:g,tabRefs:y,AddonTab:E}=Wbe(p),w=d??H.createElement(oB,{title:"Nothing found"});return!f&&p.length===0?w:H.createElement(Ybe,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:s},H.createElement(rB,{scrollable:!1,border:!0,backgroundColor:a},H.createElement(aB,{style:{whiteSpace:"normal"},ref:g,role:"tablist"},h.map(({title:b,id:S,active:R,color:O},D)=>{let T=`index-${D}`;return H.createElement(Fs,{id:`tabbutton-${ks(S)??T}`,ref:P=>{y.current.set(S,P)},className:`tabbutton ${R?"tabbutton-active":""}`,type:"button",key:S,active:R,textColor:O,onClick:P=>{P.preventDefault(),r.onSelect(S)},role:"tab","aria-selected":R},typeof b=="function"?H.createElement("title",null):b)}),H.createElement(E,{menuName:c,actions:r})),i),H.createElement(Jbe,{id:"panel-tab-content",bordered:o,absolute:n},p.length?p.map(({id:b,active:S,render:R})=>H.createElement(Zbe,{key:b,active:S},H.createElement(R,{active:S},null))):w))});Ux.displayName="Tabs";var e0e=class extends x.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},Ht("The `TabsState` class is deprecated. Use `TabsView` instead."),this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:i}=this.state;return H.createElement(Ux,{bordered:e,absolute:t,selected:i,backgroundColor:n,menuName:o,actions:this.handlers},r)}};e0e.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var t0e=Q.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});t0e.displayName="Separator";Q.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));var lB=new WeakMap;function Ah(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${lB.get(e)}-${r}-${t}`):""}function sB(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:i}=e,{selectionManager:a,selectedKey:s}=t,c=n===s,d=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:f,isPressed:p}=U6({selectionManager:a,key:n,ref:r,isDisabled:d,shouldSelectOnPressUp:i,linkBehavior:"selection"}),h=Ah(t,n,"tab"),g=Ah(t,n,"tabpanel"),{tabIndex:y}=f,E=t.collection.getItem(n),w=Lt(E==null?void 0:E.props,{labelable:!0});delete w.id;let b=mL(E==null?void 0:E.props),{focusableProps:S}=wd({isDisabled:d},r);return{tabProps:He(w,S,b,f,{id:h,"aria-selected":c,"aria-disabled":d||void 0,"aria-controls":c?g:void 0,tabIndex:d?void 0:y,role:"tab"}),isSelected:c,isDisabled:d,isPressed:p}}function uB(e,t,r){let n=bme(r)?void 0:0;var o;let i=Ah(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=Mm({...e,id:i,"aria-labelledby":Ah(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:He(a,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var r0e=class{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,r,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&r==="horizontal",this.disabledKeys=n,this.tabDirection=r==="horizontal"}};function cB(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:s}=t,{direction:c}=wa(),d=x.useMemo(()=>new r0e(i,c,n,s),[i,s,n,c]),{collectionProps:f}=H6({ref:r,selectionManager:a,keyboardDelegate:d,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),p=yr();lB.set(t,p);let h=Mm({...e,id:p});return{tabListProps:{...He(f,h),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var n0e=Q.button({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`}}),({isSelected:e,theme:t})=>e?{color:t.barSelectedColor,borderBottomColor:t.barSelectedColor}:{color:t.barTextColor,borderBottomColor:"transparent","&:hover":{color:t.barHoverColor}}),o0e=Q.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),i0e=Q.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),a0e=Q.div({display:"flex",flexShrink:0}),rI=28,nI=Q.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"})),oI=Q(jr)({flexShrink:0,paddingInline:0,width:16}),l0e=({item:e,state:t})=>{let{rendered:r}=e,n=H.useRef(null),o=t,{tabProps:i,isDisabled:a,isPressed:s,isSelected:c}=sB(e,o,n);return H.createElement(n0e,{...i,isDisabled:a,isPressed:s,isSelected:c,className:`tabbutton ${c?"tabbutton-active":""}`,ref:n},r)},s0e=({state:e,...t})=>{let r=x.useRef(null),n=x.useRef(null),o=x.useRef(null),{tabListProps:i}=cB({orientation:"horizontal"},e,o),[a,s]=x.useState(!1),[c,d]=x.useState(!1),[f,p]=x.useState(!1),h=x.useCallback(()=>{let b=n.current,S=r.current;if(!b||!S)return;let{scrollLeft:R,scrollWidth:O,clientWidth:D}=b,T=S.clientWidth-(a?rI*2:0),P=O>T;s(P),P?(d(R>0),p(R<O-D)):(d(!1),p(!1))},[a]),g=x.useCallback(()=>{h()},[h]);x.useEffect(()=>{let b=n.current;if(!b||typeof window>"u")return;b.addEventListener("scroll",g,{passive:!0});let S=null;typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),S.observe(b));let R=setTimeout(g,0);return()=>{clearTimeout(R),b.removeEventListener("scroll",g),S&&S.disconnect()}},[g]);let y=x.useCallback(b=>{let S=n.current,R=r.current;if(!S||!R||typeof window>"u")return;let O=R.clientWidth-rI*2,D=b==="backward"?-O:O;typeof S.scrollBy=="function"?S.scrollBy({left:D,behavior:"smooth"}):S.scrollLeft+=D},[]),E=x.useCallback(()=>y("backward"),[y]),w=x.useCallback(()=>y("forward"),[y]);return H.createElement(o0e,{...t,ref:r,"data-show-scroll-buttons":a},a&&H.createElement(nI,{$showEndBorder:c},H.createElement(oI,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!c,onClick:E,tabIndex:-1},H.createElement(RU,null))),H.createElement(i0e,{ref:n},H.createElement(a0e,{ref:o,...i},[...e.collection].map(b=>H.createElement(l0e,{key:b.key,item:b,state:e})))),a&&H.createElement(nI,{$showStartBorder:f},H.createElement(oI,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!f,onClick:w,tabIndex:-1},H.createElement(AU,null))))},u0e=Q.div({overflowY:"hidden",height:"100%"}),c0e=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=x.useRef(null),o=r,{tabPanelProps:i}=uB(o.selectedItem??{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(a=>!!a).map(a=>{let s=o.selectedKey===a.key;return H.createElement(u0e,{key:a.key,ref:s?n:void 0,...s?i:{},id:s?`${i.id}`.replace(/null$/,`${a.key}`):void 0,hidden:s?void 0:!0},e?H.createElement(Gh,{vertical:!0},a.props.children):a.props.children)})},iI=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(t==null?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)t(s)};for(let a of e)t(a);let r=null,n=0,o=0;for(let[a,s]of this.keyMap)r?(r.nextKey=a,s.prevKey=r.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=n++),(s.type==="section"||s.type==="item")&&o++,r=s,r.nextKey=void 0;this._size=o;var i;this.lastKey=(i=r==null?void 0:r.key)!==null&&i!==void 0?i:null}};function d0e(e){let{filter:t,layoutDelegate:r}=e,n=qx(e),o=x.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=x.useCallback(d=>t?new iI(t(d)):new iI(d),[t]),a=x.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=z6(e,i,a),c=x.useMemo(()=>new Hx(s,n,{layoutDelegate:r}),[s,n,r]);return f0e(s,c),{collection:s,disabledKeys:o,selectionManager:c}}function f0e(e,t){let r=x.useRef(null);x.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let f=r.current.getItem(t.focusedKey),p=[...r.current.getKeys()].map(b=>{let S=r.current.getItem(b);return(S==null?void 0:S.type)==="item"?S:null}).filter(b=>b!==null),h=[...e.getKeys()].map(b=>{let S=e.getItem(b);return(S==null?void 0:S.type)==="item"?S:null}).filter(b=>b!==null);var n,o;let g=((n=p==null?void 0:p.length)!==null&&n!==void 0?n:0)-((o=h==null?void 0:h.length)!==null&&o!==void 0?o:0);var i,a,s;let y=Math.min(g>1?Math.max(((i=f==null?void 0:f.index)!==null&&i!==void 0?i:0)-g+1,0):(a=f==null?void 0:f.index)!==null&&a!==void 0?a:0,((s=h==null?void 0:h.length)!==null&&s!==void 0?s:0)-1),E=null,w=!1;for(;y>=0;){if(!t.isDisabled(h[y].key)){E=h[y];break}if(y<h.length-1&&!w)y++;else{w=!0;var c,d;y>((c=f==null?void 0:f.index)!==null&&c!==void 0?c:0)&&(y=(d=f==null?void 0:f.index)!==null&&d!==void 0?d:0),y--}}t.setFocusedKey(E?E.key:null)}r.current=e},[e,t])}function p0e(e){var t;let[r,n]=Lm(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=x.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:a,selectionManager:s}=d0e({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:d=>{if(d==="all")return;var f;let p=(f=d.values().next().value)!==null&&f!==void 0?f:null;p===r&&e.onSelectionChange&&e.onSelectionChange(p),n(p)}}),c=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:r,setSelectedKey:n,selectedItem:c}}function h0e(e){var t,r;let n=p0e({...e,onSelectionChange:e.onSelectionChange?c=>{var d;c!=null&&((d=e.onSelectionChange)===null||d===void 0||d.call(e,c))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:aI(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:i,selectedKey:a}=n,s=x.useRef(a);return x.useEffect(()=>{let c=a;e.selectedKey==null&&(o.isEmpty||c==null||!i.getItem(c))&&(c=aI(i,n.disabledKeys),c!=null&&o.setSelectedKeys([c])),(c!=null&&o.focusedKey==null||!o.isFocused&&c!==s.current)&&o.setFocusedKey(c),s.current=c}),{...n,isDisabled:e.isDisabled||!1}}function aI(e,t){let r=null;if(e){var n,o,i,a;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((a=e.getItem(r))===null||a===void 0||(i=a.props)===null||i===void 0)&&i.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}Q.div({display:"flex",flexDirection:"column",height:"100%"});Q(c0e)(()=>({flex:1}));Q(s0e)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}}));var Wm=x.createContext(null),js=x.createContext(null),m0e=x.forwardRef(function(e,t){[e,t]=Nr(e,t,Wm);let{children:r,orientation:n="horizontal"}=e;return r=x.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),H.createElement(_6,{content:r},o=>H.createElement(g0e,{props:e,collection:o,tabsRef:t}))});function g0e({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=h0e({...e,collection:r,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:s}=jm({within:!0}),c=x.useMemo(()=>({orientation:n,isFocusWithin:a,isFocusVisible:s}),[n,a,s]),d=En({...e,defaultClassName:"react-aria-Tabs",values:c}),f=Lt(e,{global:!0});return H.createElement("div",{...He(f,d,i),ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":n,"data-focus-visible":s||void 0,"data-disabled":o.isDisabled||void 0},H.createElement(vi,{values:[[Wm,e],[js,o]]},d.children))}var y0e=x.forwardRef(function(e,t){return x.useContext(js)?H.createElement(b0e,{props:e,forwardedRef:t}):H.createElement(P6,e)});function b0e({props:e,forwardedRef:t}){let r=x.useContext(js),{CollectionRoot:n}=x.useContext(xd),{orientation:o="horizontal",keyboardActivation:i="automatic"}=Ax(Wm),a=lo(t),{tabListProps:s}=cB({...e,orientation:o,keyboardActivation:i},r,a),c=En({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}}),d=Lt(e,{global:!0});return delete d.id,H.createElement("div",{...He(d,c,s),ref:a,"data-orientation":o||void 0},H.createElement(n,{collection:r.collection,persistedKeys:D6(r.selectionManager.focusedKey)}))}var dB=class extends Tl{};dB.type="item";var v0e=zm(dB,(e,t,r)=>{let n=x.useContext(js),o=lo(t),{tabProps:i,isSelected:a,isDisabled:s,isPressed:c}=sB({key:r.key,...e},n,o),{focusProps:d,isFocused:f,isFocusVisible:p}=jm(),{hoverProps:h,isHovered:g}=tu({isDisabled:s,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),y=En({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:s,isFocused:f,isFocusVisible:p,isPressed:c,isHovered:g}}),E=r.props.href?"a":"div",w=Lt(e,{global:!0});return delete w.id,delete w.onClick,H.createElement(E,{...He(w,y,i,d,h),ref:o,"data-selected":a||void 0,"data-disabled":s||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0,"data-pressed":c||void 0,"data-hovered":g||void 0},y.children)}),E0e=Bx(function(e,t){let r=x.useContext(js),n=lo(t),{id:o,...i}=e,{tabPanelProps:a}=uB(e,r,n),{focusProps:s,isFocused:c,isFocusVisible:d}=jm(),f=r.selectedKey===e.id,p=En({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:d,isInert:Y$(!f),state:r}});if(!f&&!e.shouldForceMount)return null;let h=Lt(i,{global:!0});delete h.id;let g=f?He(h,a,s,p):p;return H.createElement("div",{...g,ref:n,"data-focused":c||void 0,"data-focus-visible":d||void 0,inert:Y$(!f||e.inert),"data-inert":f?void 0:"true"},H.createElement(vi,{values:[[Wm,null],[js,null]]},H.createElement(xd.Provider,{value:k6},p.children)))});Q.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});Q.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});Q(y0e)({display:"flex",flexShrink:0});Q.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"}));Q(jr)({flexShrink:0,paddingInline:0,width:16});Q(E0e)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});Q(m0e)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));Q(v0e)(({theme:e})=>({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"},padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`},color:e.barTextColor,borderBottomColor:"transparent","&:hover":{color:e.barHoverColor},"&[data-selected]":{color:e.barSelectedColor,borderBottomColor:e.barSelectedColor}}));var w0e=er`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,S0e=Q.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${w0e} 0.7s linear infinite`,mixBlendMode:"difference"})),lI=Q.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),x0e=Q.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:di(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),C0e=Q.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),sI=Q.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),T0e=Q(xU)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),_0e=er`
from { content: "..." }
33% { content: "." }
66% { content: ".." }
to { content: "..." }
`,R0e=Q.span({"&::after":{content:"'...'",animation:`${_0e} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),Gm=({progress:e,error:t,size:r,...n})=>{if(t)return H.createElement(lI,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},H.createElement(T0e,null),H.createElement(sI,null,t.message));if(e){let{value:o,modules:i}=e,{message:a}=e;return i&&(a+=` ${i.complete} / ${i.total} modules`),H.createElement(lI,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":a,role:"progressbar",...n},H.createElement(x0e,null,H.createElement(C0e,{style:{width:`${o*100}%`}})),H.createElement(sI,null,a,o<1&&H.createElement(R0e,{key:a})))}return H.createElement(S0e,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},A0e=er({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});Q.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));Q.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${A0e} 1s linear infinite`,circle:{opacity:.25}});Q.pre`
line-height: 18px;
padding: 11px 1rem;
white-space: pre-wrap;
background: rgba(0, 0, 0, 0.05);
color: ${ke.darkest};
border-radius: 3px;
margin: 1rem 0;
width: 100%;
display: block;
overflow: hidden;
font-family: ${to.fonts.mono};
font-size: ${to.size.s2-1}px;
`;Object.keys(ofe).forEach(e=>{x.forwardRef((t,r)=>x.createElement(e,{...t,ref:r}))});var P0e=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),$0e=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",fill:e}))),O0e=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",fill:e}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),zx=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",fill:e}))),fB=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M2.03.97A.75.75 0 00.97 2.03L5.94 7 .97 11.97a.75.75 0 101.06 1.06L7 8.06l4.97 4.97a.75.75 0 101.06-1.06L8.06 7l4.97-4.97A.75.75 0 0011.97.97L7 5.94 2.03.97z",fill:e}))),pB=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),I0e=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",fill:e}))),N0e=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",fill:e}))),k0e=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M14 7A7 7 0 110 7a7 7 0 0114 0z",fill:e}))),hB=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.493 5.493 0 01-1.3-.16c-.42-.1-.91-.25-1.47-.45a5.056 5.056 0 00-.95-.27H2.88a.84.84 0 01-.62-.26.84.84 0 01-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 01.62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 01.62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7.15.31.23.73.23 1.27a3 3 0 01-.32 1.31h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98a2.05 2.05 0 01-.4 1.51 1.9 1.9 0 01-.57 1.5zm.473-5.33a.965.965 0 00.027-.25.742.742 0 00-.227-.513.683.683 0 00-.523-.227H7.927l.73-1.45a2 2 0 00.213-.867c0-.444-.068-.695-.127-.822a.53.53 0 00-.245-.244 1.296 1.296 0 00-.539-.116.989.989 0 00-.141.28 9.544 9.544 0 00-.174.755c-.069.387-.213.779-.484 1.077l-.009.01-.009.01c-.195.202-.41.46-.67.798l-.003.004c-.235.3-.44.555-.613.753-.151.173-.343.381-.54.516l-.255.176H5v4.133l.018.003c.384.07.76.176 1.122.318.532.189.98.325 1.352.413l.007.002a4.5 4.5 0 001.063.131h.878c.429 0 .683-.115.871-.285a.9.9 0 00.262-.702l-.028-.377.229-.3a1.05 1.05 0 00.205-.774l-.044-.333.165-.292a.969.969 0 00.13-.487.457.457 0 00-.019-.154l-.152-.458.263-.404a1.08 1.08 0 00.152-.325zM3.5 10.8a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),D0e=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),YE=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),mB=x.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>x.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},x.createElement("path",{d:"M7 2a.5.5 0 01.5.5v4H10a.5.5 0 010 1H7a.5.5 0 01-.5-.5V2.5A.5.5 0 017 2z",fill:e}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e})));const M0e=Q.div({display:"flex",alignItems:"center",fontSize:"14px",lineHeight:"22px",padding:"2px 6px"}),fp=Q.div(({color:e})=>({color:e??"inherit",display:"inline-flex",flexDirection:"row",alignItems:"center",margin:"0 4px","&:first-of-type":{marginLeft:0},"& svg":{marginRight:5,width:10,height:10}})),Hv=Q.div({"&::before":{content:"'/'",display:"block",marginRight:4}}),pp=Q(Q8)({marginTop:0,padding:0,height:"24px"}),L0e=Je(({successCount:e,failedCount:t,pendingCount:r,approvedCount:n,onClickByStatus:o,theme:i})=>re.jsxs(M0e,{children:[re.jsx(pp,{onClick:()=>{o("pending")},children:re.jsxs(fp,{color:i==null?void 0:i.color.mediumdark,children:[re.jsx(mB,{}),r]})}),re.jsx(Hv,{}),re.jsx(pp,{onClick:()=>{o("success")},children:re.jsxs(fp,{color:i==null?void 0:i.color.green,children:[re.jsx(zx,{})," ",e]})}),re.jsx(Hv,{}),re.jsx(pp,{onClick:()=>{o("failed")},children:re.jsxs(fp,{color:i==null?void 0:i.color.negative,children:[re.jsx(pB,{})," ",t]})}),re.jsx(Hv,{}),re.jsx(pp,{onClick:()=>{o("approved")},children:re.jsxs(fp,{color:i==null?void 0:i.color.defaultText,children:[re.jsx(hB,{})," ",n]})})]})),B0e=Je(Q.input(({theme:e})=>({appearance:"none",border:"none",boxSizing:"border-box",display:"block",outline:"none",width:"100%",background:"transparent",padding:0,fontSize:"inherit","&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"::placeholder":{color:e.color.mediumdark},"&:placeholder-shown ~ button":{opacity:0}}))),F0e=Je(Q.button(({theme:e})=>({border:0,margin:0,padding:4,textDecoration:"none",background:e.appBorderColor,borderRadius:"1em",cursor:"pointer",opacity:1,transition:"all 150ms ease-out",position:"absolute",top:"50%",transform:"translateY(-50%)",right:2,"> svg":{display:"block",height:8,width:8,color:e.input.color,transition:"all 150ms ease-out"}}))),j0e=Je(Q.form(({theme:e,focussed:t})=>({transition:"all 150ms ease-out",borderBottom:"1px solid transparent",borderBottomColor:e.appBorderColor,outline:0,position:"relative",color:e.input.color,input:{color:e.input.color,fontSize:e.typography.size.s2-1,lineHeight:"20px",paddingTop:2,paddingBottom:2,paddingLeft:20,paddingRight:20},"> svg":{transition:"all 150ms ease-out",position:"absolute",top:"50%",height:12,width:12,transform:"translateY(-50%)",zIndex:1,background:"transparent",path:{transition:"all 150ms ease-out",fill:"currentColor",opacity:t?1:.3}}}))),q0e=({onChange:e,value:t})=>{const{setSidebarFocusedItem:r}=zs(),[n,o]=x.useState(!1),i=x.useRef(null);return re.jsxs(j0e,{autoComplete:"off",focussed:n,onReset:()=>{e("")},onSubmit:a=>{a.preventDefault()},children:[re.jsx(B0e,{type:"text",ref:i,onFocus:()=>{o(!0),r(null)},onBlur:()=>{o(!1)},onChange:a=>{e(a.target.value)},placeholder:"search by status or substring",value:t}),re.jsx(P0e,{}),re.jsx(F0e,{tabIndex:-1,type:"reset",value:"reset",title:"Clear search",children:re.jsx(fB,{})})]})},H0e=Je(Q.div(({theme:e})=>({padding:"24px 36px 8px",background:e.background.content,height:"130px",zIndex:5,position:"sticky",top:"0"}))),U0e=Q.div({display:"flex",justifyContent:"space-between"}),z0e=Q.h2({fontWeight:"normal",margin:0,padding:"2px 6px"}),uI=Je(Q(jr)(({theme:e})=>({display:"flex",justifyContent:"center",transform:"none",width:"60px",padding:"8px 12px","& svg":{width:"24px",height:"24px",marginRight:0},"&:active svg path":{fill:e.color.inverseText}}))),K0e=Je(Q.div(({theme:e})=>({fontSize:"0.8em",marginTop:"4px",padding:"2px 6px",color:e.color.positive,backgroundColor:`${e.color.positive}20`}))),cI=Q.div(({left:e,right:t,top:r,bottom:n})=>({marginLeft:e??0,marginRight:t??0,marginTop:r??0,marginBottom:n??0,padding:"2px 6px"})),V0e=e=>{let t=null;const r=[];return e.split(" ").filter(Boolean).map(o=>o.toLowerCase()).forEach(o=>{const[,i]=/^status:(failed|success|pending)$/i.exec(o)??[];if(i)return t=i;r.push(o)}),{status:t,subStrings:r}};function W0e({testsStatus:e,onStop:t,onStart:r,filter:n,onFilterChange:o,canStart:i}){const{isReport:a,isRunning:s,isUpdateMode:c}=x.useContext(ed),[d,f]=x.useState(""),p=g=>{g===n.status?(f(n.subStrings.join(" ")),o({status:null,subStrings:n.subStrings})):(f(n.subStrings.join(" ")+" status:"+g),o({status:g,subStrings:n.subStrings}))},h=g=>{f(g),o(V0e(g))};return re.jsxs(H0e,{children:[re.jsxs(U0e,{children:[re.jsxs("div",{children:[re.jsx(z0e,{children:"colin.creevey"}),c&&re.jsx(K0e,{children:"Review and approve screenshots from previous test runs"}),re.jsx(L0e,{...e,onClickByStatus:p})]}),a||c?null:re.jsx(cI,{top:"10px",children:s?re.jsx(uI,{variant:"outline",onClick:t,children:re.jsx(O0e,{})}):re.jsx(uI,{variant:"outline",onClick:r,disabled:!i,children:re.jsx($0e,{})})})]}),re.jsx(cI,{top:"12px",bottom:"12px",children:re.jsx(q0e,{onChange:h,value:d})})]})}const G0e=Je(Q.label(({theme:e,disabled:t})=>({display:"inline-flex",alignItems:"baseline",position:"relative",whiteSpace:"nowrap",cursor:"pointer",fontSize:e.typography.size.s1,padding:"0px",pointerEvents:t?"none":"auto",input:{display:"inline-block",opacity:"0",width:0,height:0,position:"absolute",zIndex:-1,"&:focus + span":{outline:"none",boxShadow:`${ss(.5,e.color.defaultText)} 0 0 0 1px inset`}}}))),Y0e=Je(Q.span(({theme:e})=>({display:"inline-block",width:"16px",height:"16px",border:e.appBorderColor,borderRadius:e.input.borderRadius,margin:"2px",boxShadow:`${ss(.8,e.color.defaultText)} 0 0 0 1px inset`,color:ss(.3,e.color.defaultText),background:e.background.content,"&:hover, &:focus":{outline:"none",boxShadow:`${ss(.5,e.color.defaultText)} 0 0 0 1px inset`}}))),X0e=Q(k0e)({margin:"4px",verticalAlign:"baseline"}),J0e=Q(zx)({margin:"2px",verticalAlign:"baseline"}),gB=Q.span({paddingLeft:"8px",verticalAlign:"middle",alignSelf:"center",lineHeight:"18px"});class yB extends x.Component{constructor(){super(...arguments);ir(this,"state",{indeterminate:!1});ir(this,"handleIndeterminateChange",r=>{this.setState({indeterminate:r})});ir(this,"setIndeterminate",()=>{this.handleIndeterminateChange(!0)});ir(this,"resetIndeterminate",()=>{this.handleIndeterminateChange(!1)})}render(){const{checked:r,disabled:n,onValueChange:o}=this.props,{indeterminate:i}=this.state;return re.jsxs(G0e,{disabled:n,children:[re.jsx("input",{type:"checkbox",onChange:a=>{o(a.target.checked)},checked:r??!1}),re.jsx(Y0e,{children:i?re.jsx(X0e,{width:"8",height:"8"}):r?re.jsx(J0e,{width:"12",height:"12"}):" "})]})}}const Q0e=Q.span({width:"16px",height:"13px",padding:1,display:"inline-block"}),ru={position:"relative",top:"1px",verticalAlign:"baseline"},Z0e=Q(pB)(ru),eve=Q(zx)(ru),tve=Q(hB)(ru),rve=Q(I0e)(ru),nve=Q(mB)(ru),ove=Q(N0e)(ru),ive=Q(Gm)({top:"12px",left:"unset",marginLeft:"0px"}),bB=Je(({inverted:e,status:t,skip:r,theme:n})=>{let o=null;switch(t){case"failed":{o=re.jsx(Z0e,{color:e?n.color.lightest:n.color.negative});break}case"success":{o=re.jsx(eve,{color:e?n.color.lightest:n.color.green});break}case"approved":{o=re.jsx(tve,{color:e?n.color.lightest:n.color.mediumdark});break}case"running":{o=re.jsx(ive,{size:10});break}case"pending":{o=re.jsx(nve,{color:e?n.color.lightest:n.color.mediumdark});break}default:{r?o=re.jsx(rve,{color:e?n.color.lightest:void 0}):o=re.jsx(ove,{color:e?n.color.lightest:void 0});break}}return re.jsx(Q0e,{children:o})}),vB=Je(Q.div(({theme:e,disabled:t,active:r,focused:n})=>({position:"relative",width:"100%",height:"28px",lineHeight:"20px",display:"flex",background:r?e.color.secondary:n?e.background.hoverable:"none",color:r?e.color.inverseText:"inherit",outline:n?`1px solid ${e.color.ancillary}`:"none",...t?{color:e.color.mediumdark,pointerEvents:"none"}:{},"&:hover, &.hover":r?{}:{background:e.background.hoverable}}))),EB=Je(Q.button(({theme:e,active:t})=>({flexGrow:1,boxSizing:"border-box",appearance:"none",padding:"4px 16px 4px 8px",lineHeight:"18px",cursor:"pointer",border:"none",zIndex:1,textAlign:"left",background:"none",outline:"none",color:t?e.color.inverseText:"inherit"}))),wB={paddingRight:"4px",display:"inline-block",width:"12px",height:"18px",verticalAlign:"unset"},ave=Q(D0e)(wB),lve=Q(YE)(wB),SB=Q.span(({padding:e})=>({paddingLeft:e,whiteSpace:"normal",display:"grid",gridTemplateColumns:"repeat(2, min-content) auto"})),xB=Q.span({paddingLeft:"4px",whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis"});function dI({title:e,suite:t,"data-testid":r}){const{onSuiteOpen:n,onSuiteToggle:o,sidebarFocusedItem:i,setSidebarFocusedItem:a,isUpdateMode:s}=zs(),c=x.useRef(null),d=x.useRef(null),f=x.useMemo(()=>Array.isArray(i)&&i.length===t.path.length&&i.every(E=>t.path.includes(E)),[t,i]);x.useEffect(()=>{var E,w;return t.indeterminate?(E=c.current)==null?void 0:E.setIndeterminate():(w=c.current)==null?void 0:w.resetIndeterminate()},[t.indeterminate]),x.useEffect(()=>{var E;f&&((E=d.current)==null||E.focus())},[f]);const p=t.path.length==0,h=E=>{o(t.path,E)},g=()=>{p||(n(t.path,!t.opened),a(t.path))},y=()=>{a(t.path)};return re.jsxs(vB,{focused:f,children:[re.jsx(gB,{children:!s&&re.jsx(yB,{ref:c,checked:t.skip?!1:t.checked,disabled:!!t.skip,onValueChange:h})}),re.jsx(EB,{onClick:g,onFocus:y,"data-testid":r,ref:d,children:re.jsxs(SB,{padding:(t.path.length-1)*8,children:[gt(t)||!!t.path.length&&(t.opened?re.jsx(ave,{}):re.jsx(lve,{})),re.jsx(bB,{status:t.status,skip:t.skip}),re.jsx(xB,{children:e})]})})]})}const sve=Q(SB)({gridTemplateColumns:"min-content auto"});function uve({title:e,opened:t,test:r}){var y;const{onSuiteToggle:n,sidebarFocusedItem:o,setSidebarFocusedItem:i,isUpdateMode:a}=zs(),{onOpenTest:s}=x.useContext(CB),c=x.useRef(null),d=(((y=r.results)==null?void 0:y.length)??0)==0,f=x.useMemo(()=>kn(r),[r]),p=x.useMemo(()=>Array.isArray(o)&&f.length===o.length&&f.every(E=>o.includes(E)),[f,o]),h=x.useCallback(E=>{n(f,E)},[f,n]);x.useEffect(()=>{var E;p&&((E=c.current)==null||E.focus())},[p]);const g=x.useCallback(()=>{s(r),i(kn(r))},[r,s,i]);return re.jsxs(vB,{disabled:d,active:t,focused:p,children:[re.jsx(gB,{children:!a&&re.jsx(yB,{checked:r.skip?!1:r.checked,disabled:!!r.skip,onValueChange:h})}),re.jsx(EB,{onClick:g,disabled:d,ref:c,children:re.jsxs(sve,{padding:(f.length+1)*8,children:[re.jsx(bB,{inverted:t,status:r.status,skip:r.skip}),re.jsx(xB,{children:e})]})})]})}const cve=Je(Q.div(({theme:e})=>({padding:"24px 32px 8px",background:e.background.content,height:"50px",zIndex:5,position:"sticky",bottom:"0"}))),dve=Q.div({display:"flex",justifyContent:"space-between"});function fve(){const{onApproveAll:e,onImageApprove:t,onImageNext:r}=zs(),[n,o]=x.useState(!1),i=x.useCallback(s=>{s.code==="AltLeft"&&(s.preventDefault(),o(!0))},[]),a=x.useCallback(s=>{s.code==="AltLeft"&&(s.preventDefault(),o(!1))},[]);return x.useEffect(()=>(document.addEventListener("keydown",i,!1),document.addEventListener("keyup",a,!1),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("keyup",a,!1)}),[i,a]),re.jsx(re.Fragment,{children:re.jsx(cve,{children:re.jsxs(dve,{children:[n?re.jsxs(jr,{variant:"outline",size:"medium",onClick:r,disabled:!t,children:["Next",re.jsx(YE,{})]}):re.jsxs(jr,{variant:"solid",size:"medium",onClick:t,disabled:!t,children:["Approve",re.jsx(YE,{})]}),re.jsx(jr,{variant:"outline",size:"medium",onClick:e,children:"Approve all"})]})})})}const CB=x.createContext({onOpenTest:cn}),pve=Je(Q.div(({theme:e})=>({width:"300px",boxShadow:`0 0 5px ${ss(.8,e.color.defaultText)}`,zIndex:1e3,background:e.background.content}))),hve=Q.div({height:"calc(100vh - 245px)",width:300,flex:"none",overflowY:"auto",position:"sticky",top:"0",left:"0"}),mve=Q(Gh)({'& > [data-state="visible"]':{zIndex:5}}),fI=Je(Q.div(({theme:e,position:t})=>({[t]:"0px",position:"sticky",boxShadow:`0 0 5px 2.5px ${ss(.8,e.color.defaultText)}`,zIndex:3}))),gve=Q.div({marginBottom:"30px",paddingTop:"9px"}),yve=Q.div({position:"relative",height:"100%"}),pI=Je(Q.div(({theme:e,position:t})=>({...t==="top"?{position:"absolute"}:{position:"relative",bottom:"8px"},height:"8px",width:"100%",zIndex:4,background:e.background.content})));function bve({rootSuite:e,testId:t,onOpenTest:r,filter:n,setFilter:o}){const{onStart:i,onStop:a}=zs(),s=hw(e,n),c=Yq(e),d=mw(s),f=pw(e).length,p=()=>{i(s)};return re.jsx(CB.Provider,{value:{onOpenTest:r},children:re.jsxs(pve,{children:[re.jsx(W0e,{testsStatus:c,filter:n,onFilterChange:o,onStart:p,onStop:a,canStart:f!==0}),re.jsxs(hve,{children:[re.jsxs(mve,{vertical:!0,children:[re.jsx(fI,{position:"top"}),re.jsxs(yve,{children:[re.jsx(pI,{position:"top"}),re.jsx(gve,{children:re.jsx(dI,{title:"Select all",suite:e,"data-testid":"selectAll"})}),d.map(({title:h,suite:g})=>gt(g)?re.jsx(uve,{title:h,opened:g.id==t,test:g},g.id):re.jsx(dI,{title:h,suite:g,"data-testid":h},g.path.join("/")))]}),re.jsx(pI,{position:"bottom"})]}),re.jsx(fI,{position:"bottom"})]}),re.jsx(fve,{})]})})}const Oo={actual:"negative",expect:"positive",diff:"secondary"},vve=(e,t)=>t in e.color;function Io(e,t){return vve(e,t)?e.color[t]:t}const Eve=Q.div({display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"}),wve=Q.div(({layout:e})=>({display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexDirection:e=="horizontal"?"row":"column","& > :not(:first-of-type)":{marginLeft:e=="horizontal"?"20px":0,marginTop:e=="horizontal"?0:"20px"}})),hI=Q.a({lineHeight:0,flexShrink:0}),Sve=Q.a({lineHeight:0}),XE=Q.img(({borderColor:e})=>({boxSizing:"border-box",border:`1px solid ${e}`,maxWidth:"100%",flexShrink:0})),xve=Q(XE)({flexShrink:1}),Cve=Je(({actual:e,diff:t,expect:r,theme:n})=>{const[o,i]=x.useState("horizontal"),[a,s]=x.useState(1),c=x.useRef(null),d=x.useRef(null),f=x.useRef(null),p=x.useRef(null),h=zh(r,t,e),g=x.useCallback(()=>{const y=c.current,E=d.current,w=f.current,b=p.current;if(!y||!E||!b||!w||!h){s(1);return}const S=gw(w);if(o=="vertical"){const R=(w.getBoundingClientRect().width-S*2)/w.naturalWidth;s(Math.min(1,R))}if(o=="horizontal"){const R=(y.getBoundingClientRect().width-40-S*6)/[E,w,b].map(O=>O.naturalWidth).reduce((O,D)=>O+D,0);s(Math.min(1,R))}},[h,o]);return E3(c,g),x.useLayoutEffect(g,[g]),x.useLayoutEffect(()=>{const y=f.current;if(!y||!h)return;const E=y.naturalWidth/y.naturalHeight;i(E>=2?"vertical":"horizontal")},[h]),ca(d,a),ca(p,a),re.jsx(Eve,{ref:c,children:h?re.jsxs(wve,{layout:o,children:[re.jsx(hI,{href:r,target:"_blank",rel:"noopener noreferrer",children:re.jsx(XE,{ref:d,borderColor:Io(n,Oo.expect),alt:"expect",src:r})}),re.jsx(Sve,{href:t,target:"_blank",rel:"noopener noreferrer",children:re.jsx(xve,{ref:f,borderColor:Io(n,Oo.diff),alt:"diff",src:t})}),re.jsx(hI,{href:e,target:"_blank",rel:"noopener noreferrer",children:re.jsx(XE,{ref:p,borderColor:Io(n,Oo.actual),alt:"actual",src:e})})]}):re.jsx(Gm,{size:64})})}),Tve=Q.div({position:"relative",display:"flex"}),TB=Q.img(({borderColor:e})=>({boxSizing:"border-box",border:`1px solid ${e}`,maxWidth:"100%"})),mI=Q(TB)({position:"absolute"}),_ve=Q(TB)({cursor:"pointer",outline:"none",opacity:0,zIndex:1}),Rve=Je(({theme:e,expect:t,actual:r,diff:n})=>{const[o,i]=x.useState("actual"),a=x.useRef(null),s=x.useRef(null),c=x.useRef(null),d=zh(t,n,r),f=yw(s,d);ca(a,f,o),ca(c,f,o);const p=x.useCallback(()=>{i(g=>g=="actual"?"expect":"actual")},[]),h=x.useCallback(g=>{g.code==="Space"&&g.altKey&&(g.preventDefault(),p())},[p]);return x.useEffect(()=>(document.addEventListener("keydown",h,!1),()=>{document.removeEventListener("keydown",h,!1)}),[h]),d?re.jsxs(Tve,{children:[re.jsx(mI,{ref:a,borderColor:Io(e,Oo.expect),alt:"expect",src:t,hidden:o!="expect"}),re.jsx(_ve,{ref:s,borderColor:"transparent",tabIndex:0,alt:"diff",src:n,onClick:p}),re.jsx(mI,{ref:c,borderColor:Io(e,Oo.actual),alt:"actual",src:r,hidden:o!="actual"})]}):re.jsx(Gm,{size:64})}),Ave=Q.div({position:"relative",display:"flex"}),Pve=Q.input({position:"absolute",cursor:"ew-resize",appearance:"none",background:"none",boxShadow:"none",outline:"none",height:"100%",width:"100%",margin:"0",zIndex:1,"&::-webkit-slider-runnable-track":{height:"100%"},"&::-webkit-slider-thumb":{boxShadow:"0 0 0 0.5px #888",height:"100%",width:"0px",appearance:"none"},"&::-moz-focus-outer":{border:"0"},"&::-moz-range-track":{height:"0"},"&::-moz-range-thumb":{border:"none",boxShadow:"0 0 0 0.5px #888",height:"100%",width:"0px"}}),gI=Q.div({position:"absolute",width:"100%",height:"100%",overflow:"hidden"}),yI=Je(Q.div(({theme:e})=>({background:e.base=="light"?e.color.mediumlight:e.color.darker,position:"relative",width:"100%",height:"100%",display:"flex"}))),_B=Q.img(({borderColor:e})=>({boxSizing:"border-box",border:`1px solid ${e}`,maxWidth:"100%"})),bI=Q(_B)({position:"absolute"}),$ve=Q(_B)({opacity:"0"}),Ove=Je(({actual:e,diff:t,expect:r,theme:n})=>{const[o,i]=x.useState(0),a=x.useRef(null),s=x.useRef(null),c=x.useRef(null),d=x.useRef(null),f=x.useRef(null),p=zh(r,t,e),h=yw(d,p);ca(c,h),ca(f,h);const g=x.useCallback(y=>{if(!a.current||!s.current)return;const E=Number(y.target.value);a.current.style.right=`${100-E}%`,s.current.style.left=`${100-E}%`},[]);return x.useLayoutEffect(()=>{p&&d.current&&i(100/d.current.getBoundingClientRect().width)},[p,h]),x.useLayoutEffect(()=>{p&&a.current&&s.current&&(a.current.style.right="100%",s.current.style.left="100%")},[p]),p?re.jsxs(Ave,{children:[re.jsx(Pve,{"data-testid":"slider",type:"range",min:0,max:100,defaultValue:0,step:o,onChange:g}),re.jsx(gI,{children:re.jsx(yI,{children:re.jsx(bI,{ref:f,borderColor:Io(n,Oo.actual),alt:"actual",src:e})})}),re.jsx(gI,{ref:a,children:re.jsx(yI,{ref:s,children:re.jsx(bI,{ref:c,borderColor:Io(n,Oo.expect),alt:"expect",src:r})})}),re.jsx($ve,{ref:d,borderColor:"transparent",alt:"diff",src:t})]}):re.jsx(Gm,{size:64})}),Ive=Q.div({position:"relative",display:"flex",filter:"invert(100%)"}),vI=Q.div({position:"absolute",width:"100%",height:"100%",display:"flex"}),Kx=Q.img(({borderColor:e})=>({boxSizing:"border-box",border:`1px solid ${e}`,maxWidth:"100%",filter:"invert(100%)"})),Nve=Q(Kx)({mixBlendMode:"difference"}),kve=Q(Kx)({opacity:"0"}),Dve=Je(({actual:e,diff:t,expect:r,theme:n})=>{const o=x.useRef(null),i=x.useRef(null),a=x.useRef(null),s=zh(r,t,e),c=yw(i,s);return ca(o,c,s),ca(a,c,s),re.jsxs(Ive,{children:[re.jsx(vI,{children:re.jsx(Kx,{ref:o,borderColor:Io(n,Oo.expect),alt:"expect",src:r})}),re.jsx(kve,{ref:i,borderColor:"transparent",alt:"diff",src:t}),re.jsx(vI,{children:re.jsx(Nve,{ref:a,borderColor:Io(n,Oo.actual),alt:"actual",src:e})})]})}),Mve={"side-by-side":Cve,swap:Rve,slide:Ove,blend:Dve},Lve=Q.div({height:"100%",display:"flex",textAlign:"center",alignItems:"center",justifyContent:"center",padding:"0 20px"}),Bve=Q.a({lineHeight:0}),Fve=Je(Q.img(({theme:e})=>({border:`1px solid ${Io(e,Oo.expect)}`,maxWidth:"100%"})));function Zu(e,t){return t?`${t}/${e}`:e}function jve({url:e,image:t,canApprove:r,mode:n}){const o=Mve[n],{actual:i,diff:a,expect:s}=t;return re.jsx(Lve,{children:r&&a&&s?re.jsx(o,{actual:Zu(i,e),diff:Zu(a,e),expect:Zu(s,e)}):re.jsx(Bve,{href:Zu(i,e),target:"_blank",rel:"noopener noreferrer",children:re.jsx(Fve,{alt:"actual",src:Zu(i,e)})})})}const dc=64,Wi=(2*(dc-8)**2)**(1/2),qve=Q.button(({borderColor:e})=>({appearance:"none",background:"none",color:"inherit",font:"inherit",cursor:"pointer",outline:"none",zIndex:1,margin:"0 10px",border:"2px solid transparent",borderColor:e??"transparent","&:first-of-type":{marginLeft:0}})),Hve=Je(Q.img(({hasBorder:e,backgroundColor:t,theme:r})=>({maxHeight:`${dc}px`,width:`${dc}px`,overflow:"hidden",transform:e?"translateY(2px)":void 0,"&::before":{content:"' '",display:"block",height:`${dc-8}px`,width:`${dc-8}px`,margin:"4px",backgroundColor:t,backgroundImage:`linear-gradient(
45deg,
rgba(0, 0, 0, 0) ${Wi/2-.5}px,
${r.color.medium} ${Wi/2-.5}px,
${r.color.medium} ${Wi/2+.5}px,
rgba(0, 0, 0, 0) ${Wi/2+.5}px
),
linear-gradient(
315deg,
rgba(0, 0, 0, 0) ${Wi/2+.2}px,
${r.color.medium} ${Wi/2+.2}px,
${r.color.medium} ${Wi/2+1.2}px,
rgba(0, 0, 0, 0) ${Wi/2+1.2}px
)`}}))),Uve=Je(({isActive:e,onClick:t,imageName:r,url:n,theme:o,error:i})=>{const a=()=>{t(r)};return re.jsx(qve,{onClick:a,borderColor:e?o.barSelectedColor:i?o.color.negative:void 0,children:re.jsx(Hve,{hasBorder:e||i,src:n,alt:r,title:r,backgroundColor:o.background.content})})}),RB="Creevey_view_mode",ta=["side-by-side","swap","slide","blend"],zve=()=>{const e=localStorage.getItem(RB);return e&&ta.includes(e)?e:"side-by-side"},Kve=Q.div({marginTop:"24px"}),Vve=Je(Q.div(({theme:e})=>({marginTop:"8px",padding:"8px",background:`${e.background.negative}20`,color:e.color.negative,borderRadius:"2px",display:"flex",alignItems:"baseline","& svg":{margin:"0 5px",width:8,height:8},"& pre":{margin:"0 4px",padding:0,lineHeight:"22px"}}))),Wve=Je(Q.div(({theme:e})=>({padding:"8px 32px",backgroundColor:`${e.color.positive}20`,color:e.color.positive,fontSize:"12px",textAlign:"center",fontWeight:"bold"}))),Gve=Q.h1({marginLeft:"44px",marginBottom:"8px"}),Yve=Je(Q.span(({theme:e})=>({padding:"0 8px",color:e.color.mediumdark}))),Xve=Q.div({display:"flex",margin:"16px 0 8px"});function Jve({title:e,imageName:t,images:r={},errorMessage:n,showViewModes:o,viewMode:i,imagesWithError:a=[],onImageChange:s,onViewModeChange:c}){var y;const{isReport:d,isUpdateMode:f}=x.useContext(ed),p=Object.entries(r),h=E=>{c(E)};x.useEffect(()=>{if(t===""){if(a.length>0){s(a[0]);return}const E=Object.keys(r).at(0);E&&s(E)}},[t,r,a,s]);const g=n||a.includes(t)?((y=r[t])==null?void 0:y.error)??n:null;return re.jsxs(Kve,{children:[re.jsx(Gve,{children:e.flatMap(E=>[E,re.jsx(Yve,{children:"/"},E)]).slice(0,-1)}),g&&re.jsxs(Vve,{children:[re.jsx(fB,{}),re.jsx("pre",{children:g})]}),p.length>1?re.jsx(Xve,{children:p.map(([E,w])=>re.jsx(Uve,{imageName:E,url:`${v3(e,E,d)}/${w.actual}`,isActive:E===t,onClick:s,error:a.includes(E)},E))}):null,f&&re.jsx(Wve,{children:"Update Mode: Review and approve screenshots from previous test runs"}),o&&re.jsx(Ux,{selected:i,actions:{onSelect:h},children:ta.map(E=>re.jsx("div",{id:E,title:E},E))})]})}function Qve(e){const t=(n,o)=>{switch(n){case".":return re.jsx(Fs,{disabled:!0,autoFocus:!1,content:"",nonce:"",rel:"",rev:"",children:"..."},`dots${o<5?"Left":"Right"}`);default:return re.jsx(Fs,{rel:n,rev:n,autoFocus:!1,nonce:n,content:n,onClick:()=>{r(n)},active:e.activePage===n,children:n},n)}},r=n=>{const o=Number(n);1<=o&&n!==e.activePage&&o<=e.pagesCount&&e.onPageChange(o)};return re.jsx("div",{children:Zve(e.activePage,e.pagesCount).map(t)})}function Zve(e,t){const r=Number(e),n=[],o=Math.max(Math.min(r-2,t-4),1),i=Math.min(Math.max(5,r+2),t),a=o>3,s=a?o:1,c=i<t-2,d=c?i:t;a&&n.push("1",".");for(let f=s;f<=d;++f)n.push(`${f}`);return c&&n.push("."),c&&isFinite(t)&&n.push(`${t}`),n}const e1e=Je(Q.div(({theme:e})=>({display:"flex",padding:"24px 32px 20px",justifyContent:"space-between",background:e.background.content})));function t1e({retriesCount:e,retry:t,onRetryChange:r}){return re.jsx(e1e,{children:re.jsx(Qve,{activePage:`${t}`,onPageChange:r,pagesCount:e})})}const r1e=Q.div({width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}),n1e=Q.div(({theme:e})=>({background:e.base=="light"?e.color.mediumlight:e.color.darker,flexGrow:1,padding:"20px 0"})),o1e=Q.div({position:"sticky",top:0,zIndex:1}),i1e=Q.div({flexGrow:1,minHeight:0}),a1e=Q.div({position:"sticky",bottom:0,zIndex:1}),l1e=Q.div(({height:e="100vh"})=>({height:e,width:"100%",overflowY:"hidden",display:"flex",flexDirection:"column"}));function s1e({path:e,results:t=[],approved:r,theme:n,height:o,retry:i,imageName:a,onImageChange:s,onRetryChange:c}){var R;const d=t[i-1]??{},{isReport:f}=x.useContext(ed),[p,h]=x.useState(zve()),g=v3(e,a,f),y=(R=d.images)==null?void 0:R[a],E=!!(y&&(r==null?void 0:r[a])!=i-1&&d.status!="success"),w=E&&!!(y!=null&&y.diff&&y.expect),b=d.images?Object.keys(d.images).filter(O=>{var D,T;return d.status!="success"&&(r==null?void 0:r[O])!=i-1&&((T=(D=d.images)==null?void 0:D[O])==null?void 0:T.error)!=null}):[],S=x.useCallback(O=>{E&&O.code==="Tab"&&(O.preventDefault(),O.shiftKey?h(D=>ta.at((ta.indexOf(D)-1)%ta.length)):h(D=>ta.at((ta.indexOf(D)+1)%ta.length)))},[E]);return x.useEffect(()=>{localStorage.setItem(RB,p)},[p]),x.useEffect(()=>(document.addEventListener("keydown",S,!1),()=>{document.removeEventListener("keydown",S,!1)}),[S]),re.jsxs(l1e,{height:o,children:[re.jsx(o1e,{children:re.jsx(Jve,{title:e,imageName:a,images:d.images,errorMessage:d.error,showViewModes:w,viewMode:p,onViewModeChange:h,onImageChange:s,imagesWithError:b})}),re.jsx(i1e,{children:re.jsx(Gh,{vertical:!0,children:re.jsx(r1e,{children:re.jsx(n1e,{theme:n,children:y?re.jsx(jve,{url:g,image:y,canApprove:E,mode:p}):re.jsx(Ige,{children:`Image ${a} not found`})})})})}),t.length?re.jsx(a1e,{children:re.jsx(t1e,{retry:i,retriesCount:t.length,onRetryChange:c})}):null]})}const u1e=Je(s1e),c1e=Je(Q.span(({theme:e})=>({lineHeight:"10px",display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.base=="light"?e.color.mediumlight:e.color.darker,borderRadius:"3em",padding:2,verticalAlign:"middle",marginLeft:10,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",cursor:"pointer","&:focus":{outline:"none"}},span:{cursor:"pointer",display:"inline-block",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"100%",background:e.background.bar,boxShadow:`${Mb(.1,e.appBorderColor)} 0 0 2px`,color:e.color.defaultText,width:20,height:20,boxSizing:"border-box",lineHeight:"19px",textAlign:"center","&:hover":{boxShadow:`${Mb(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Mb(.05,e.appBorderColor)} 0 0 0 2px inset`}},"input:checked ~ span":{marginLeft:20},"input:not(:checked) ~ span":{marginRight:20}}))),d1e=({value:e,onChange:t})=>re.jsxs(c1e,{children:[re.jsx("input",{type:"checkbox",onChange:()=>{t(!e)},checked:e??!1}),re.jsx("span",{children:e?"☪":"☀"})]}),AB="Creevey_theme";function f1e(e){return Qt(e)&&Object.prototype.hasOwnProperty.call(ia,e)}function p1e(){const e=localStorage.getItem(AB);return f1e(e)?e:"light"}function PB(){const[e,t]=x.useState(p1e());return x.useEffect(()=>{localStorage.setItem(AB,e)},[e]),[e,t]}const h1e=Je(Q.div(({theme:e})=>({height:"100vh",display:"flex",background:e.background.content,color:e.color.defaultText}))),m1e=Q.div({zIndex:1,position:"absolute",right:10,top:10});function g1e({api:e,initialState:t}){var I,B;const[r,n]=U9(t.tests),[o,i]=x.useState(t.isRunning),[a,s]=x.useState([]),[c,d]=x.useState({status:null,subStrings:[]}),[f,p]=PB(),h=Vq(r,a),g=x.useMemo(()=>m3(r),[r]),[y,E]=x.useState(((I=h==null?void 0:h.results)==null?void 0:I.length)??0),w=x.useMemo(()=>{var k;return(k=h==null?void 0:h.results)==null?void 0:k[y-1]},[h,y]),[b,S]=x.useState(Object.keys((w==null?void 0:w.images)??{})[0]??""),[R,O]=x.useState([]),D=x.useMemo(()=>{var k,z,F;return!!((z=(k=h==null?void 0:h.results)==null?void 0:k[y-1])!=null&&z.images&&((F=h.approved)==null?void 0:F[b])!=y-1&&h.results[y-1].status!="success")},[b,h,y]);a.length>0&&!Qt(h)&&s([]);const T=x.useCallback((k,z)=>{n(F=>{Mf(F,k,z)})},[n]),P=x.useCallback((k,z)=>{n(F=>{Wq(F,k,z)})},[n]),_=x.useCallback(k=>{const z=kn(k);Xq(z),O(z),n(F=>{Mf(F,z,!0),s(z)})},[n]),N=x.useCallback(()=>{if(g.length==0)return;const k=g.findIndex(F=>F.id===(h==null?void 0:h.id)),z=Object.entries((w==null?void 0:w.images)??{}).filter(([F,q])=>{var U;return(q==null?void 0:q.error)!=null&&((U=h==null?void 0:h.approved)==null?void 0:U[F])!=y-1&&(w==null?void 0:w.status)!="success"}).map(([F])=>F);if(z.length>1&&(g.length==1||z.indexOf(b)<z.length-1))S(F=>z[z.indexOf(F)+1]??z[0]);else{const F=g[k+1]??g[0];_(F)}},[g,_,h,y,w,b]),V=x.useCallback(()=>{const k=h==null?void 0:h.id;k&&(e==null||e.approve(k,y-1,b))},[e,b,h==null?void 0:h.id,y]),L=x.useCallback(()=>{V(),N()},[V,N]),K=x.useCallback(()=>{e==null||e.approveAll()},[e]),Y=x.useCallback(k=>e==null?void 0:e.start(pw(k).map(z=>z.id)),[e]),$=x.useCallback(()=>e==null?void 0:e.stop(),[e]),M=x.useCallback(k=>{p(k?"dark":"light")},[p]);return x.useEffect(()=>{var F,q;const k=((F=h==null?void 0:h.results)==null?void 0:F.length)??0,z=((q=h==null?void 0:h.results)==null?void 0:q[k-1])??{images:{}};S(Object.keys(z.images??{})[0]??""),E(k)},[h==null?void 0:h.results]),x.useEffect(()=>{window.addEventListener("popstate",k=>{n(z=>{const F=k.state;if(F&&typeof F=="object"&&"testPath"in F){const{testPath:q}=F;Array.isArray(q)&&(Mf(z,q,!0),s(q))}})}),n(k=>{const z=Jq();Mf(k,z,!0),s(z)})},[n]),x.useEffect(()=>e==null?void 0:e.onUpdate(({isRunning:k,tests:z,removedTests:F=[]})=>{Qt(k)&&i(k),Qt(z)&&n(q=>{Object.values(z).forEach(U=>{U&&g3(q,kn(U),U)}),F.forEach(U=>{y3(q,kn(U))})})}),[e,n]),re.jsx(ed.Provider,{value:{isReport:t.isReport,isRunning:o,onImageNext:D?N:void 0,onImageApprove:D?L:void 0,onApproveAll:K,onStart:Y,onStop:$,onSuiteOpen:T,onSuiteToggle:P,sidebarFocusedItem:R,setSidebarFocusedItem:O,isUpdateMode:t.isUpdateMode},children:re.jsx(lw,{theme:uw(ia[f]),children:re.jsx(Qq,{rootSuite:r,filter:c,children:re.jsxs(h1e,{children:[re.jsx(bve,{rootSuite:r,testId:h==null?void 0:h.id,onOpenTest:_,filter:c,setFilter:d}),h&&re.jsx(u1e,{path:a,results:h.results,approved:h.approved,retry:y,imageName:b,onImageChange:S,onRetryChange:E},`${h.id}_${((B=h.results)==null?void 0:B.length)??0}`),re.jsx(m1e,{children:re.jsx(d1e,{value:f=="dark",onChange:M})})]})})})})}async function y1e(){let e=cn,t=cn;const r=new Set;let n=null,o=cn,i=!1;const a=new WebSocket(`ws://${b3()}`);function s(c){a.send(JSON.stringify(c))}return a.addEventListener("error",c=>{t(c)}),a.addEventListener("open",()=>{e({start(c){if(i){console.warn("Tests cannot be started in Update Mode. This mode is for approving screenshots only.");return}s({type:"start",payload:c})},stop(){if(i){console.warn("Tests cannot be stopped in Update Mode. This mode is for approving screenshots only.");return}s({type:"stop"})},approve(c,d,f){s({type:"approve",payload:{id:c,retry:d,image:f}})},approveAll(){s({type:"approveAll"})},onUpdate(c){return r.add(c),()=>r.delete(c)},get status(){return n||(s({type:"status"}),n=new Promise(c=>o=c))}})}),a.addEventListener("message",c=>{const d=JSON.parse(c.data);d.type=="update"&&r.forEach(f=>{f(d.payload)}),d.type=="status"&&(i=d.payload.isUpdateMode,o(d.payload),o=cn,n=null)}),new Promise((c,d)=>{e=c,t=d})}const b1e=Je(Q.div(({theme:e})=>({height:"100vh",width:"100vw",background:e.background.app}))),v1e=Je(Q.div(({size:e=32,theme:t})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:t.base==="light"?"rgba(97, 97, 97, 0.29)":"rgba(255, 255, 255, 0.2)",borderTopColor:t.base==="light"?"rgb(100,100,100)":"rgba(255, 255, 255, 0.4)",animation:`${E1e} 0.7s linear infinite`,mixBlendMode:"difference"}))),E1e=er`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`;function w1e(){const[e]=PB();return re.jsx(lw,{theme:uw(ia[e]),children:re.jsx(b1e,{children:re.jsx(v1e,{size:64})})})}function EI(){return new Promise(e=>{const t=document.createElement("script");t.src="data.js",t.onload=()=>{e(__CREEVEY_DATA__)},document.body.appendChild(t)})}const S1e=x.lazy(async()=>{let e=!1,t,r;if(window.location.host)try{r=await y1e(),t=await r.status}catch{e=!0,t={isRunning:!1,tests:await EI(),browsers:[],isUpdateMode:!1}}else e=!0,t={isRunning:!1,tests:await EI(),browsers:[],isUpdateMode:!1};return{default(){return re.jsx(g1e,{api:r,initialState:{isReport:e,isRunning:t.isRunning,tests:Gq(t.tests),isUpdateMode:t.isUpdateMode}})}}}),x1e=O9.createRoot(document.getElementById("root"));x1e.render(re.jsx(x.Suspense,{fallback:re.jsx(w1e,{}),children:re.jsx(S1e,{})}));export{T1e as A,H as R,Gh as S,wU as _,it as a,Q as b,R1e as c,ne as d,sr as e,pi as f,Fr as g,Ht as h,ew as i,_3 as j,td as k,Xr as l,x as r,Re as s};