Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

798 строки
954 KiB

  1. const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-W7WJGI2T-CFwd4H-A.js","./iframe-5Xit0S_1.js","./preload-helper-C1FmrZbK.js","./iframe-CEWz_cm1.css","./formatter-EIJCOSYU-CDko68bk.js","./WithTooltip-65CFNBJE-0H9QN3fm.js","./Color-23OOGO2C-_eEjzUwN.js"])))=>i.map(i=>d[i]);
  2. var mD=Object.defineProperty;var yD=(e,t,r)=>t in e?mD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Wr=(e,t,r)=>yD(e,typeof t!="symbol"?t+"":t,r);import{_ as On}from"./preload-helper-C1FmrZbK.js";import{D as dn,E as bD,F as vD,z as X1,w as ED,L as SD,P as wD,r as xD,o as $D,J as CD,O as _D,K as Df,y as J1,t as TD,q as OD,k as AD,v as RD,u as DD,m as PD,B as kD,A as FD,C as ID,n as LD,T as ND,Q as MD,V as BD,U as jD,l as HD,N as UD,I as zD,j as Q1,e as Tt,g as Bs,i as Lt,f as bt,H as KD,R as WD,b as GD,S as VD,M as Z1,a as zn,x as Zm,c as eb,s as YD,d as Pf}from"./iframe-5Xit0S_1.js";function qD(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 XD(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 JD(e){return e==="__proto__"}function Zt(e,t,r){let n=Object.keys(t);for(let o=0;o<n.length;o++){let i=n[o];if(JD(i))continue;let a=t[i],l=e[i],s=r(l,a,i,e,t);s!==void 0?e[i]=s:Array.isArray(a)?Array.isArray(l)?e[i]=Zt(l,a,r):e[i]=Zt([],a,r):dn(a)?dn(l)?e[i]=Zt(l,a,r):e[i]=Zt({},a,r):(l===void 0||a!==void 0)&&(e[i]=a)}return e}function Ha(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 kf(e){if(bD(e))return e;if(Array.isArray(e)||vD(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 QD(e,t){let r={...e};for(let n=0;n<t.length;n++){let o=t[n];delete r[o]}return r}function Ff(e,t){return Zt(kf(e),t,function r(n,o){if(Array.isArray(o))return Array.isArray(n)?Zt(kf(n),o,r):Zt([],o,r);if(dn(o))return dn(n)?Zt(kf(n),o,r):Zt({},o,r)})}function ZD(){}function eP(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function tP(e,t,r){return sl(e,t,void 0,void 0,void 0,void 0,r)}function sl(e,t,r,n,o,i,a){let l=a(e,t,r,n,o,i);if(l!==void 0)return l;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 bl(e,t,i,a)}return bl(e,t,i,a)}function bl(e,t,r,n){if(Object.is(e,t))return!0;let o=X1(e),i=X1(t);if(o===Q1&&(o=Df),i===Q1&&(i=Df),o!==i)return!1;switch(o){case _D:return e.toString()===t.toString();case CD:{let s=e.valueOf(),u=t.valueOf();return eP(s,u)}case $D:case xD:case wD:return Object.is(e.valueOf(),t.valueOf());case SD:return e.source===t.source&&e.flags===t.flags;case ED:return e===t}r=r??new Map;let a=r.get(e),l=r.get(t);if(a!=null&&l!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case zD:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!sl(u,t.get(s),s,e,t,r,n))return!1;return!0}case UD:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],f=u.findIndex(p=>sl(d,p,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case HD:case jD:case BD:case MD:case ND:case LD:case ID:case FD:case kD:case PD:case DD:case RD:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!sl(e[s],t[s],s,e,t,r,n))return!1;return!0}case AD:return e.byteLength!==t.byteLength?!1:bl(new Uint8Array(e),new Uint8Array(t),r,n);case OD:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:bl(new Uint8Array(e),new Uint8Array(t),r,n);case TD:return e.name===t.name&&e.message===t.message;case Df:{if(!(bl(e.constructor,t.constructor,r,n)||dn(e)&&dn(t)))return!1;let s=[...Object.keys(e),...J1(e)],u=[...Object.keys(t),...J1(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],f=e[d];if(!Object.hasOwn(t,d))return!1;let p=t[d];if(!sl(f,p,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function tn(e,t){return tP(e,t,ZD)}var tb="backgrounds",rP="outline",nP={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};function oP(){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 zi={PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},mc={_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(zi.PLAY_FN)):e.type==="story"&&!!((n=e.tags)!=null&&n.includes(zi.PLAY_FN))},_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},iP=e=>(t,r)=>{var n,o;return r?!((n=t.tags)!=null&&n.includes(e)):!!((o=t.tags)!=null&&o.includes(e))},Zx=Tt({"../../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="",l=0,s=0;e:for(;s<i;s++){let u=o.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(l<s&&(a+=o.slice(l,s)),l=s+1,a+=t[u]),++s===i)break e;u=o.charCodeAt(s)}if(l<s&&(a+=o.slice(l,s)),u<2048){l=s+1,a+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,a+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=i)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),a+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<i?a+o.slice(l):a}}}),e0=Tt({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Zx(),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}}}),e$=Tt({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=e0(),r=Zx();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,f,p,y,b){if(n(f))return d;let S=d[f];return typeof S=="object"&&S!==null?S:!y&&(b||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[f]=[]:d[f]={}}var i=20,a="[]",l="[",s="]",u=".";function c(d,f,p=0,y,b){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:g=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:E=t.defaultOptions.nesting,delimiter:w=t.defaultOptions.delimiter,valueSerializer:$=t.defaultOptions.valueSerializer,shouldSerializeObject:x=t.defaultOptions.shouldSerializeObject}=f,C=typeof w=="number"?String.fromCharCode(w):w,T=b===!0&&g,A=S==="dot"||S==="js"&&!b;if(p>i)return"";let O="",_=!0,I=!1;for(let L in d){let M=d[L];if(M===void 0)continue;let U;y?(U=y,T?v==="bracket"&&(U+=a):A?(U+=u,U+=L):(U+=l,U+=L,U+=s)):U=L,_||(O+=C),typeof M=="object"&&M!==null&&!x(M)?(I=M.pop!==void 0,(E||g&&I)&&(O+=c(M,f,p+1,U,I))):(O+=(0,r.encodeString)(U),O+="=",O+=$(M,L)),_&&(_=!1)}return O}}}),aP=Tt({"../../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(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,f=0,p=s,y=t;for(;s>-1&&s<u;){let b=a(l[s+1],4),S=a(l[s+2],0),g=b|S,v=n[g];if(y=n[256+y+v],f=f<<6|g&n[364+v],y===t)c+=l.slice(d,p),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=p=l.indexOf("%",d);else{if(y===r)return null;if(s+=3,s<u&&l.charCodeAt(s)===37)continue;return null}}return c+l.slice(d)}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(l,s){let u=i[l];return u===void 0?255:u<<s}}}),lP=Tt({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=e$(),r=e0(),n=aP(),o=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var i=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=i;var a=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,f,p,y){let b=c.substring(d,f);return p&&(b=b.replace(a," ")),y&&(b=(0,n.decodeURIComponent)(b)||b),b}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:p=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:b=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:g=r.defaultOptions.nestingSyntax,delimiter:v=r.defaultOptions.delimiter}=d??{},E=typeof v=="string"?v.charCodeAt(0):v,w=g==="js",$=new l;if(typeof c!="string")return $;let x=c.length,C="",T=-1,A=-1,O=-1,_=$,I,L="",M="",U=!1,k=!1,F=!1,P=!1,B=!1,D=!1,z=0,V=-1,Z=-1,q=-1;for(let K=0;K<x+1;K++){if(z=K!==x?c.charCodeAt(K):E,z===E){if(D=A>T,D||(A=K),O!==A-1&&(M=s(c,O+1,V>-1?V:A,F,U),L=p(M),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,w&&B,void 0))),D||L!==""){D&&(C=c.slice(A+1,K),P&&(C=C.replace(a," ")),k&&(C=(0,n.decodeURIComponent)(C)||C));let X=f(C,L);if(S){let ee=_[L];ee===void 0?V>-1?_[L]=[X]:_[L]=X:ee.pop?ee.push(X):_[L]=[ee,X]}else _[L]=X}C="",T=K,A=K,U=!1,k=!1,F=!1,P=!1,B=!1,V=-1,O=K,_=$,I=void 0,L=""}else z===93?(S&&y==="bracket"&&q===91&&(V=Z),b&&(g==="index"||w)&&A<=T&&(O!==Z&&(M=s(c,O+1,K,F,U),L=p(M),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,void 0,void 0)),I=L,F=!1,U=!1),O=K,B=!1)):z===46?b&&(g==="dot"||w)&&A<=T&&(O!==Z&&(M=s(c,O+1,K,F,U),L=p(M),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,w)),I=L,F=!1,U=!1),B=!0,O=K):z===91?b&&(g==="index"||w)&&A<=T&&(O!==Z&&(M=s(c,O+1,K,F,U),L=p(M),w&&I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,w)),I=L,F=!1,U=!1,B=!1),O=K):z===61?A<=T?A=K:k=!0:z===43?A>T?P=!0:F=!0:z===37&&(A>T?k=!0:U=!0);Z=K,q=z}return $}}}),sP=Tt({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=e$();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),t$=Tt({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(i,a,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(a,l);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(i,s,u)}:function(i,a,l,s){s===void 0&&(s=l),i[s]=a[l]}),r=e&&e.__exportStar||function(i,a){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&t(a,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=lP();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=sP();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(e0(),e)}}),uP="Invariant failed";function Bh(e,t){if(!e)throw new Error(uP)}var ai=Tt({"../../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(u,c){if(!o[u]){if(!n[u]){var d=typeof Bs=="function"&&Bs;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=o[u]={exports:{}};n[u][0].call(p.exports,function(y){var b=n[u][1][y];return a(b||y)},p,p.exports,r,n,o,i)}return o[u].exports}for(var l=typeof Bs=="function"&&Bs,s=0;s<i.length;s++)a(i[s]);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 l;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(l=this.indexOf(a),l>=0)return this.lastItem=this.list[l],this.list[l].val},i.prototype.set=function(a,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},i.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},i.prototype.forEach=function(a,l){var s;for(s=0;s<this.size;s++)a.call(l||this,this.list[s].val,this.list[s].key,this)},i.prototype.indexOf=function(a){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,a))return l;return-1},i.prototype.isEqual=function(a,l){return a===l||a!==a&&l!==l},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(u){var c=new i(!1),d=[];return function(f){var p=function(){var y=c,b,S,g=arguments.length-1,v=Array(g+1),E=!0,w;if((p.numArgs||p.numArgs===0)&&p.numArgs!==g+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(w=0;w<g;w++){if(v[w]={cacheItem:y,arg:arguments[w]},y.has(arguments[w])){y=y.get(arguments[w]);continue}E=!1,b=new i(!1),y.set(arguments[w],b),y=b}return E&&(y.has(arguments[g])?S=y.get(arguments[g]):E=!1),E||(S=f.apply(null,arguments),y.set(arguments[g],S)),u>0&&(v[g]={cacheItem:y,arg:arguments[g]},E?a(d,v):d.push(v),d.length>u&&l(d.shift())),p.wasMemoized=E,p.numArgs=g+1,S};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function a(u,c){var d=u.length,f=c.length,p,y,b;for(y=0;y<d;y++){for(p=!0,b=0;b<f;b++)if(!s(u[y][b].arg,c[b].arg)){p=!1;break}if(p)break}u.push(u.splice(y,1)[0])}function l(u){var c=u.length,d=u[c-1],f,p;for(d.cacheItem.delete(d.arg),p=c-2;p>=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function gr(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(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):l},[]);if(o.length){var i=new RegExp(`
  3. [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(i,`
  4. `)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(l,s){var u=a.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=l;typeof l=="string"&&l.includes(`
  5. `)&&(d=String(l).split(`
  6. `).map(function(f,p){return p===0?f:""+c+f}).join(`
  7. `)),a+=d+n[s+1]}),a}var cP="storybook/actions",dP=`${cP}/action-event`,fP={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:pP}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:rb}=__STORYBOOK_MODULE_GLOBAL__,{addons:hP}=__STORYBOOK_MODULE_PREVIEW_API__;var r$=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:r$(r,t)},gP=e=>!!(typeof e=="object"&&e&&r$(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),mP=e=>{if(gP(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 t0(e,t={}){let r={...fP,...t},n=function(...o){var d,f;if(t.implicit){let p=(d="__STORYBOOK_PREVIEW__"in rb?rb.__STORYBOOK_PREVIEW__:void 0)==null?void 0:d.storyRenders.find(y=>y.phase==="playing"||y.phase==="rendering");if(p){let y=!((f=globalThis==null?void 0:globalThis.FEATURES)!=null&&f.disallowImplicitActionsInRenderV8),b=new pP({phase:p.phase,name:e,deprecated:y});if(y)console.warn(b);else throw b}}let i=hP.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(mP),u=o.length>1?s:s[0],c={id:a,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};i.emit(dP,c)};return n.isAction=!0,n.implicit=t.implicit,n}var hn={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"},yP={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]},n$=Object.entries(yP);function vd(e){return String(e)}vd.open="";vd.close="";n$.reduce((e,[t])=>(e[t]=vd,e),{isColorSupported:!1});function bP(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 vP(e=!1){let t=bP(e),r=(a,l,s,u)=>{let c="",d=0;do c+=a.substring(d,u)+s,d=u+l.length,u=a.indexOf(l,d);while(~u);return c+a.substring(d)},n=(a,l,s=a)=>{let u=c=>{let d=String(c),f=d.indexOf(l,a.length);return~f?a+r(d,l,s,f)+l:a+d+l};return u.open=a,u.close=l,u},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,l]of n$)o[a]=t?n(i(l[0]),i(l[1]),l[2]):vd;return o}var wn=vP();function o$(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 EP(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 hs(e,t,r,n,o,i,a=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(l+=c,s++===t.maxWidth){l+="…";break}let d=i(u.value[0],t,c,n,o),f=i(u.value[1],t,c,n,o);l+=d+a+f,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function r0(e,t,r,n,o,i){let a="",l=0,s=e.next();if(!s.done){a+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(a+=u,l++===t.maxWidth){a+="…";break}a+=i(s.value,t,u,n,o),s=e.next(),s.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function yc(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){a+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<s;c++){if(a+=u,c===t.maxWidth){a+="…";break}(l(e)||c in e)&&(a+=i(l(e)?e.getInt8(c):e[c],t,u,n,o)),c<s-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function n0(e,t,r,n,o,i){let a="",l=EP(e,t.compareKeys);if(l.length>0){a+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let c=l[u],d=i(c,t,s,n,o),f=i(e[c],t,s,n,o);a+=`${s+d}: ${f}`,u<l.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var SP=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,If=" ",wP=(e,t,r,n,o,i)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+If}[${yc(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+If}{${n0(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+If+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()},xP=e=>e&&e.$$typeof===SP,$P={serialize:wP,test:xP},CP=" ",i$=new Set(["DOMStringMap","NamedNodeMap"]),_P=/^(?:HTML\w*Collection|NodeList)$/;function TP(e){return i$.has(e)||_P.test(e)}var OP=e=>e&&e.constructor&&!!e.constructor.name&&TP(e.constructor.name);function AP(e){return e.constructor.name==="NamedNodeMap"}var RP=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+CP)+(i$.has(a)?`{${n0(AP(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,i)}}`:`[${yc([...e],t,r,n,o,i)}]`)},DP={serialize:RP,test:OP};function a$(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function o0(e,t,r,n,o,i,a){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=a(c,r,l,o,i);return typeof c!="string"&&(d.includes(`
  8. `)&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${d}${s.value.close}`}).join("")}function i0(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?l$(a,t):i(a,t,r,n,o))).join("")}function l$(e,t){let r=t.colors.content;return r.open+a$(e)+r.close}function PP(e,t){let r=t.colors.comment;return`${r.open}<!--${a$(e)}-->${r.close}`}function a0(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 l0(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var kP=1,s$=3,u$=8,c$=11,FP=/^(?:(?:HTML|SVG)\w*)?Element$/;function IP(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function LP(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||IP(e);return r===kP&&(FP.test(t)||o)||r===s$&&t==="Text"||r===u$&&t==="Comment"||r===c$&&t==="DocumentFragment"}var NP=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&LP(e)};function MP(e){return e.nodeType===s$}function BP(e){return e.nodeType===u$}function Lf(e){return e.nodeType===c$}var jP=(e,t,r,n,o,i)=>{if(MP(e))return l$(e.data,t);if(BP(e))return PP(e.data,t);let a=Lf(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?l0(a,t):a0(a,o0(Lf(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Lf(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,i),i0(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},HP={serialize:jP,test:NP},UP="@@__IMMUTABLE_ITERABLE__@@",zP="@@__IMMUTABLE_LIST__@@",KP="@@__IMMUTABLE_KEYED__@@",WP="@@__IMMUTABLE_MAP__@@",nb="@@__IMMUTABLE_ORDERED__@@",GP="@@__IMMUTABLE_RECORD__@@",VP="@@__IMMUTABLE_SEQ__@@",YP="@@__IMMUTABLE_SET__@@",qP="@@__IMMUTABLE_STACK__@@",ea=e=>`Immutable.${e}`,Ed=e=>`[${e}]`,kl=" ",ob="…";function XP(e,t,r,n,o,i,a){return++n>t.maxDepth?Ed(ea(a)):`${ea(a)+kl}{${hs(e.entries(),t,r,n,o,i)}}`}function JP(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 QP(e,t,r,n,o,i){let a=ea(e._name||"Record");return++n>t.maxDepth?Ed(a):`${a+kl}{${hs(JP(e),t,r,n,o,i)}}`}function ZP(e,t,r,n,o,i){let a=ea("Seq");return++n>t.maxDepth?Ed(a):e[KP]?`${a+kl}{${e._iter||e._object?hs(e.entries(),t,r,n,o,i):ob}}`:`${a+kl}[${e._iter||e._array||e._collection||e._iterable?r0(e.values(),t,r,n,o,i):ob}]`}function Nf(e,t,r,n,o,i,a){return++n>t.maxDepth?Ed(ea(a)):`${ea(a)+kl}[${r0(e.values(),t,r,n,o,i)}]`}var e4=(e,t,r,n,o,i)=>e[WP]?XP(e,t,r,n,o,i,e[nb]?"OrderedMap":"Map"):e[zP]?Nf(e,t,r,n,o,i,"List"):e[YP]?Nf(e,t,r,n,o,i,e[nb]?"OrderedSet":"Set"):e[qP]?Nf(e,t,r,n,o,i,"Stack"):e[VP]?ZP(e,t,r,n,o,i):QP(e,t,r,n,o,i),t4=e=>e&&(e[UP]===!0||e[GP]===!0),r4={serialize:e4,test:t4};function d$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ib={exports:{}},Oe={},ab;function n4(){if(ab)return Oe;ab=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"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case e:switch(b=b.type,b){case r:case o:case n:case s:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case a:case l:case d:case c:return b;case i:return b;default:return S}}case t:return S}}}return Oe.ContextConsumer=i,Oe.ContextProvider=a,Oe.Element=e,Oe.ForwardRef=l,Oe.Fragment=r,Oe.Lazy=d,Oe.Memo=c,Oe.Portal=t,Oe.Profiler=o,Oe.StrictMode=n,Oe.Suspense=s,Oe.SuspenseList=u,Oe.isContextConsumer=function(b){return y(b)===i},Oe.isContextProvider=function(b){return y(b)===a},Oe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Oe.isForwardRef=function(b){return y(b)===l},Oe.isFragment=function(b){return y(b)===r},Oe.isLazy=function(b){return y(b)===d},Oe.isMemo=function(b){return y(b)===c},Oe.isPortal=function(b){return y(b)===t},Oe.isProfiler=function(b){return y(b)===o},Oe.isStrictMode=function(b){return y(b)===n},Oe.isSuspense=function(b){return y(b)===s},Oe.isSuspenseList=function(b){return y(b)===u},Oe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===s||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===c||b.$$typeof===a||b.$$typeof===i||b.$$typeof===l||b.$$typeof===p||b.getModuleId!==void 0)},Oe.typeOf=y,Oe}var lb;function o4(){return lb||(lb=1,ib.exports=n4()),ib.exports}var f$=o4(),i4=d$(f$),a4=o$({__proto__:null,default:i4},[f$]),sb={exports:{}},$e={},ub;function l4(){if(ub)return $e;ub=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"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function b(S){if(typeof S=="object"&&S!==null){var g=S.$$typeof;switch(g){case e:switch(S=S.type,S){case r:case o:case n:case u:case c:return S;default:switch(S=S&&S.$$typeof,S){case l:case a:case s:case f:case d:case i:return S;default:return g}}case t:return g}}}return $e.ContextConsumer=a,$e.ContextProvider=i,$e.Element=e,$e.ForwardRef=s,$e.Fragment=r,$e.Lazy=f,$e.Memo=d,$e.Portal=t,$e.Profiler=o,$e.StrictMode=n,$e.Suspense=u,$e.SuspenseList=c,$e.isAsyncMode=function(){return!1},$e.isConcurrentMode=function(){return!1},$e.isContextConsumer=function(S){return b(S)===a},$e.isContextProvider=function(S){return b(S)===i},$e.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},$e.isForwardRef=function(S){return b(S)===s},$e.isFragment=function(S){return b(S)===r},$e.isLazy=function(S){return b(S)===f},$e.isMemo=function(S){return b(S)===d},$e.isPortal=function(S){return b(S)===t},$e.isProfiler=function(S){return b(S)===o},$e.isStrictMode=function(S){return b(S)===n},$e.isSuspense=function(S){return b(S)===u},$e.isSuspenseList=function(S){return b(S)===c},$e.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===o||S===n||S===u||S===c||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===f||S.$$typeof===d||S.$$typeof===i||S.$$typeof===a||S.$$typeof===s||S.$$typeof===y||S.getModuleId!==void 0)},$e.typeOf=b,$e}var cb;function s4(){return cb||(cb=1,sb.exports=l4()),sb.exports}var p$=s4(),u4=d$(p$),c4=o$({__proto__:null,default:u4},[p$]),d4=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Ao=Object.fromEntries(d4.map(e=>[e,t=>c4[e](t)||a4[e](t)]));function h$(e,t=[]){if(Array.isArray(e))for(let r of e)h$(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function db(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Ao.isFragment(e))return"React.Fragment";if(Ao.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Ao.isContextProvider(e))return"Context.Provider";if(Ao.isContextConsumer(e))return"Context.Consumer";if(Ao.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Ao.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function f4(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var p4=(e,t,r,n,o,i)=>++n>t.maxDepth?l0(db(e),t):a0(db(e),o0(f4(e),e.props,t,r+t.indent,n,o,i),i0(h$(e.props.children),t,r+t.indent,n,o,i),t,r),h4=e=>e!=null&&Ao.isElement(e),g4={serialize:p4,test:h4},m4=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function y4(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var b4=(e,t,r,n,o,i)=>++n>t.maxDepth?l0(e.type,t):a0(e.type,e.props?o0(y4(e),e.props,t,r+t.indent,n,o,i):"",e.children?i0(e.children,t,r+t.indent,n,o,i):"",t,r),v4=e=>e&&e.$$typeof===m4,E4={serialize:b4,test:v4},g$=Object.prototype.toString,S4=Date.prototype.toISOString,w4=Error.prototype.toString,fb=RegExp.prototype.toString;function Nu(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function x4(e){return typeof window<"u"&&e===window}var $4=/^Symbol\((.*)\)(.*)$/,C4=/\n/g,m$=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function _4(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 T4(e){return Object.is(e,-0)?"-0":String(e)}function O4(e){return`${e}n`}function pb(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function hb(e){return String(e).replace($4,"Symbol($1)")}function gb(e){return`[${w4.call(e)}]`}function y$(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 T4(e);if(o==="bigint")return O4(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return pb(e,t);if(o==="symbol")return hb(e);let i=g$.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?pb(e,t):i==="[object Symbol]"?hb(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":S4.call(e):i==="[object Error]"?gb(e):i==="[object RegExp]"?r?fb.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):fb.call(e):e instanceof Error?gb(e):null}function b$(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let a=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Kn(e.toJSON(),t,r,n,o,!0);let s=g$.call(e);return s==="[object Arguments]"?a?"[Arguments]":`${l?"":"Arguments "}[${yc(e,t,r,n,o,Kn)}]`:_4(s)?a?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${yc(e,t,r,n,o,Kn)}]`:s==="[object Map]"?a?"[Map]":`Map {${hs(e.entries(),t,r,n,o,Kn," => ")}}`:s==="[object Set]"?a?"[Set]":`Set {${r0(e.values(),t,r,n,o,Kn)}}`:a||x4(e)?`[${Nu(e)}]`:`${l||!t.printBasicPrototype&&Nu(e)==="Object"?"":`${Nu(e)} `}{${n0(e,t,r,n,o,Kn)}}`}var A4={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:l,cause:s,...u}=e,c={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},d=e.name!=="Error"?e.name:Nu(e);return a?`[${d}]`:`${d} {${hs(Object.entries(c).values(),t,r,n,o,i)}}`}};function R4(e){return e.serialize!=null}function v$(e,t,r,n,o,i){let a;try{a=R4(e)?e.serialize(t,r,n,o,i,Kn):e.print(t,l=>Kn(l,r,n,o,i),l=>{let s=n+r.indent;return s+l.replaceAll(C4,`
  9. ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new m$(l.message,l.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function E$(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new m$(n.message,n.stack)}return null}function Kn(e,t,r,n,o,i){let a=E$(t.plugins,e);if(a!==null)return v$(a,e,t,r,n,o);let l=y$(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:b$(e,t,r,n,o,i)}var s0={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},S$=Object.keys(s0),Rr={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:s0};function D4(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Rr,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 P4(){return S$.reduce((e,t)=>{let r=s0[t],n=r&&wn[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 k4(){return S$.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function w$(e){return(e==null?void 0:e.printFunctionName)??Rr.printFunctionName}function x$(e){return(e==null?void 0:e.escapeRegex)??Rr.escapeRegex}function $$(e){return(e==null?void 0:e.escapeString)??Rr.escapeString}function mb(e){return{callToJSON:(e==null?void 0:e.callToJSON)??Rr.callToJSON,colors:e!=null&&e.highlight?P4():k4(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Rr.compareKeys,escapeRegex:x$(e),escapeString:$$(e),indent:e!=null&&e.min?"":F4((e==null?void 0:e.indent)??Rr.indent),maxDepth:(e==null?void 0:e.maxDepth)??Rr.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??Rr.maxWidth,min:(e==null?void 0:e.min)??Rr.min,plugins:(e==null?void 0:e.plugins)??Rr.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:w$(e),spacingInner:e!=null&&e.min?" ":`
  10. `,spacingOuter:e!=null&&e.min?"":`
  11. `}}function F4(e){return Array.from({length:e+1}).join(" ")}function rn(e,t){if(t&&(D4(t),t.plugins)){let n=E$(t.plugins,e);if(n!==null)return v$(n,e,mb(t),"",0,[])}let r=y$(e,w$(t),x$(t),$$(t));return r!==null?r:b$(e,mb(t),"",0,[])}var u0={AsymmetricMatcher:$P,DOMCollection:DP,DOMElement:HP,Immutable:r4,ReactElement:g4,ReactTestComponent:E4,Error:A4},yb={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"]},I4={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ta="…";function L4(e,t){let r=yb[I4[t]]||yb[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function N4({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=L4),d}function M4(e){return e>="\uD800"&&e<="\uDBFF"}function ho(e,t,r=ta){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&&M4(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function Br(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",l="",s="";for(let u=0;u<o;u+=1){let c=u+1===e.length,d=u+2===e.length;s=`${ta}(${e.length-u})`;let f=e[u];t.truncate=i-a.length-(c?0:n.length);let p=l||r(f,t)+(c?"":n),y=a.length+p.length,b=y+s.length;if(c&&y>i&&a.length+s.length<=i||!c&&!d&&b>i||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&b>i&&y+l.length>i))break;if(a+=p,!c&&!d&&y+l.length>=i){s=`${ta}(${e.length-u-1})`;break}s=""}return`${a}${s}`}function B4(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Fl([e,t],r){return r.truncate-=2,typeof e=="string"?e=B4(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function j4(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Br(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Br(r.map(i=>[i,e[i]]),t,Fl)),`[ ${n}${o?`, ${o}`:""} ]`}var H4=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function gn(e,t){let r=H4(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 l=`${t.stylize(ho(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=l.length,e[a]!==e.length&&t.truncate<=3){o+=`${ta}(${e.length-e[a]+1})`;break}o+=l}let i="";return n.length&&(i=Br(n.map(a=>[a,e[a]]),t,Fl)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function U4(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${ho(n[1],t.truncate-o.length-1)}`,"date")}function bb(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${ho(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function z4([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function K4(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function W4(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Br(K4(e),t,z4)} }`)}var G4=Number.isNaN||(e=>e!==e);function vb(e,t){return G4(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(ho(String(e),t.truncate),"number")}function Eb(e,t){let r=ho(e.toString(),t.truncate-1);return r!==ta&&(r+="n"),t.stylize(r,"bigint")}function V4(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${ho(o,n)}/${r}`,"regexp")}function Y4(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function q4(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Br(Y4(e),t)} }`)}var Sb=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),X4={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},J4=16;function Q4(e){return X4[e]||`\\u${`0000${e.charCodeAt(0).toString(J4)}`.slice(-4)}`}function wb(e,t){return Sb.test(e)&&(e=e.replace(Sb,Q4)),t.stylize(`'${ho(e,t.truncate-2)}'`,"string")}function xb(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var C$=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(C$=(n,o)=>{let[i,a]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(a,o)}}`})}catch{}var Z4=C$;function Mu(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=Br(r.map(l=>[l,e[l]]),t,Fl),i=Br(n.map(l=>[l,e[l]]),t,Fl);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var Mf=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function ek(e,t){let r="";return Mf&&Mf in e&&(r=e[Mf]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Mu(e,t)}`}function tk(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Br(e,t)} ]`)}var rk=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function nk(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>rk.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=ho(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=Br(r.map(a=>[a,e[a]]),t,Fl);return`${n}${o}${i?` { ${i} }`:""}`}function ok([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function jh(e,t){return Br(e,t,ik,`
  12. `)}function ik(e,t){switch(e.nodeType){case 1:return _$(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function _$(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 l="";r.length>0&&(l+=" ",l+=Br(r.map(c=>[c,e.getAttribute(c)]),t,ok," ")),t.truncate-=l.length;let s=t.truncate,u=jh(e.children,t);return u&&u.length>s&&(u=`${ta}(${e.children.length})`),`${o}${l}${i}${u}${a}`}var ak=typeof Symbol=="function"&&typeof Symbol.for=="function",Bf=ak?Symbol.for("chai/inspect"):"@@chai/inspect",jf=Symbol.for("nodejs.util.inspect.custom"),$b=new WeakMap,Cb={},_b={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:vb,Number:vb,bigint:Eb,BigInt:Eb,string:wb,String:wb,function:bb,Function:bb,symbol:xb,Symbol:xb,Array:j4,Date:U4,Map:W4,Set:q4,RegExp:V4,Promise:Z4,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:tk,Int8Array:gn,Uint8Array:gn,Uint8ClampedArray:gn,Int16Array:gn,Uint16Array:gn,Int32Array:gn,Uint32Array:gn,Float32Array:gn,Float64Array:gn,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:nk,HTMLCollection:jh,NodeList:jh},lk=(e,t,r)=>Bf in e&&typeof e[Bf]=="function"?e[Bf](t):jf in e&&typeof e[jf]=="function"?e[jf](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&$b.has(e.constructor)?$b.get(e.constructor)(e,t):Cb[r]?Cb[r](e,t):"",sk=Object.prototype.toString;function Hh(e,t={}){let r=N4(t,Hh),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=sk.call(e).slice(8,-1)),o in _b)return _b[o](e,r);if(n&&e){let a=lk(e,r,o);if(a)return typeof a=="string"?a:Hh(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Mu(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?_$(e,r):"constructor"in e?e.constructor!==Object?ek(e,r):Mu(e,r):e===Object(e)?Mu(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:uk,DOMCollection:ck,DOMElement:dk,Immutable:fk,ReactElement:pk,ReactTestComponent:hk}=u0,Tb=[hk,pk,dk,ck,fk,uk];function Il(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=rn(e,{maxDepth:t,escapeString:!1,plugins:Tb,...n})}catch{i=rn(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Tb,...n})}return i.length>=o&&t>1?Il(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var gk=/%[sdjifoOc%]/g;function mk(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a<e.length;a++)i.push(Ua(e[a],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(gk,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():Ua(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 Ua(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Ua(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let l=a.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.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+=` ${Ua(i)}`;return o}function Ua(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Hh(e,t)}function yk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bk(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Uh(e){return Object.prototype.toString.apply(e).slice(8,-1)}function vk(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function T$(e){let t=new Set;return bk(e)?[]:(vk(e,t),Array.from(t))}var O$={forceWritable:!1};function Ob(e,t=O$){return zh(e,new WeakMap,t)}function zh(e,t,r=O$){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]=zh(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=T$(e);for(let a of i){let l=Object.getOwnPropertyDescriptor(e,a);if(!l)continue;let s=zh(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,a,{...l,get(){return s}}):Object.defineProperty(o,a,{...l,value:s})}return o}return e}var Ct=-1,pt=1,We=0,Be=class{constructor(e,t){Wr(this,0);Wr(this,1);this[0]=e,this[1]=t}};function Ek(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 A$(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 Ab(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 l=e.substring(o-a),s=t.indexOf(l);if(s===-1)return i;a+=s,(s===0||e.substring(o-a)===t.substring(0,a))&&(i=a,a++)}}function Sk(e){let t=!1,r=[],n=0,o=null,i=0,a=0,l=0,s=0,u=0;for(;i<e.length;)e[i][0]===We?(r[n++]=i,a=s,l=u,s=0,u=0,o=e[i][1]):(e[i][0]===pt?s+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(a,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new Be(Ct,o)),e[r[n-1]+1][0]=pt,n--,n--,i=n>0?r[n-1]:-1,a=0,l=0,s=0,u=0,o=null,t=!0)),i++;for(t&&R$(e),$k(e),i=1;i<e.length;){if(e[i-1][0]===Ct&&e[i][0]===pt){let c=e[i-1][1],d=e[i][1],f=Ab(c,d),p=Ab(d,c);f>=p?(f>=c.length/2||f>=d.length/2)&&(e.splice(i,0,new Be(We,d.substring(0,f))),e[i-1][1]=c.substring(0,c.length-f),e[i+1][1]=d.substring(f),i++):(p>=c.length/2||p>=d.length/2)&&(e.splice(i,0,new Be(We,c.substring(0,p))),e[i-1][0]=pt,e[i-1][1]=d.substring(0,d.length-p),e[i+1][0]=Ct,e[i+1][1]=c.substring(p),i++),i++}i++}}var Rb=/[^a-z0-9]/i,Db=/\s/,Pb=/[\r\n]/,wk=/\n\r?\n$/,xk=/^\r?\n\r?\n/;function $k(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===We&&e[t+1][0]===We){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=A$(r,n);if(i){let c=n.substring(n.length-i);r=r.substring(0,r.length-i),n=c+n.substring(0,n.length-i),o=c+o}let a=r,l=n,s=o,u=js(r,n)+js(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 c=js(r,n)+js(n,o);c>=u&&(u=c,a=r,l=n,s=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function R$(e){e.push(new Be(We,""));let t=0,r=0,n=0,o="",i="",a;for(;t<e.length;)switch(e[t][0]){case pt:n++,i+=e[t][1],t++;break;case Ct:r++,o+=e[t][1],t++;break;case We:r+n>1?(r!==0&&n!==0&&(a=Ek(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===We?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new Be(We,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=A$(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 Be(Ct,o)),t++),i.length&&(e.splice(t,0,new Be(pt,i)),t++),t++):t!==0&&e[t-1][0]===We?(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 l=!1;for(t=1;t<e.length-1;)e[t-1][0]===We&&e[t+1][0]===We&&(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),l=!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),l=!0)),t++;l&&R$(e)}function js(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Rb),i=n.match(Rb),a=o&&r.match(Db),l=i&&n.match(Db),s=a&&r.match(Pb),u=l&&n.match(Pb),c=s&&e.match(wk),d=u&&t.match(xk);return c||d?5:s||u?4:o&&!a&&l?3:a||l?2:o||i?1:0}var D$="Compared values have no visual difference.",Ck="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Hs={},kb;function _k(){if(kb)return Hs;kb=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=f;let e="diff-sequences",t=0,r=(p,y,b,S,g)=>{let v=0;for(;p<y&&b<S&&g(p,b);)p+=1,b+=1,v+=1;return v},n=(p,y,b,S,g)=>{let v=0;for(;p<=y&&b<=S&&g(y,S);)y-=1,S-=1,v+=1;return v},o=(p,y,b,S,g,v,E)=>{let w=0,$=-p,x=v[w],C=x;v[w]+=r(x+1,y,S+x-$+1,b,g);let T=p<E?p:E;for(w+=1,$+=2;w<=T;w+=1,$+=2){if(w!==p&&C<v[w])x=v[w];else if(x=C+1,y<=x)return w-1;C=v[w],v[w]=x+r(x+1,y,S+x-$+1,b,g)}return E},i=(p,y,b,S,g,v,E)=>{let w=0,$=p,x=v[w],C=x;v[w]-=n(y,x-1,b,S+x-$-1,g);let T=p<E?p:E;for(w+=1,$-=2;w<=T;w+=1,$-=2){if(w!==p&&v[w]<C)x=v[w];else if(x=C-1,x<y)return w-1;C=v[w],v[w]=x-n(y,x-1,b,S+x-$-1,g)}return E},a=(p,y,b,S,g,v,E,w,$,x,C)=>{let T=S-y,A=b-y,O=g-S-A,_=-O-(p-1),I=-O+(p-1),L=t,M=p<w?p:w;for(let U=0,k=-p;U<=M;U+=1,k+=2){let F=U===0||U!==p&&L<E[U],P=F?E[U]:L,B=F?P:P+1,D=T+B-k,z=r(B+1,b,D+1,g,v),V=B+z;if(L=E[U],E[U]=V,_<=k&&k<=I){let Z=(p-1-(k+O))/2;if(Z<=x&&$[Z]-1<=V){let q=T+P-(F?k+1:k-1),K=n(y,P,S,q,v),X=P-K,ee=q-K,N=X+1,H=ee+1;C.nChangePreceding=p-1,p-1===N+H-y-S?(C.aEndPreceding=y,C.bEndPreceding=S):(C.aEndPreceding=N,C.bEndPreceding=H),C.nCommonPreceding=K,K!==0&&(C.aCommonPreceding=N,C.bCommonPreceding=H),C.nCommonFollowing=z,z!==0&&(C.aCommonFollowing=B+1,C.bCommonFollowing=D+1);let Y=V+1,W=D+z+1;return C.nChangeFollowing=p-1,p-1===b+g-Y-W?(C.aStartFollowing=b,C.bStartFollowing=g):(C.aStartFollowing=Y,C.bStartFollowing=W),!0}}}return!1},l=(p,y,b,S,g,v,E,w,$,x,C)=>{let T=g-b,A=b-y,O=g-S-A,_=O-p,I=O+p,L=t,M=p<x?p:x;for(let U=0,k=p;U<=M;U+=1,k-=2){let F=U===0||U!==p&&$[U]<L,P=F?$[U]:L,B=F?P:P-1,D=T+B-k,z=n(y,B-1,S,D-1,v),V=B-z;if(L=$[U],$[U]=V,_<=k&&k<=I){let Z=(p+(k-O))/2;if(Z<=w&&V-1<=E[Z]){let q=D-z;if(C.nChangePreceding=p,p===V+q-y-S?(C.aEndPreceding=y,C.bEndPreceding=S):(C.aEndPreceding=V,C.bEndPreceding=q),C.nCommonPreceding=z,z!==0&&(C.aCommonPreceding=V,C.bCommonPreceding=q),C.nChangeFollowing=p-1,p===1)C.nCommonFollowing=0,C.aStartFollowing=b,C.bStartFollowing=g;else{let K=T+P-(F?k-1:k+1),X=r(P,b,K,g,v);C.nCommonFollowing=X,X!==0&&(C.aCommonFollowing=P,C.bCommonFollowing=K);let ee=P+X,N=K+X;p-1===b+g-ee-N?(C.aStartFollowing=b,C.bStartFollowing=g):(C.aStartFollowing=ee,C.bStartFollowing=N)}return!0}}}return!1},s=(p,y,b,S,g,v,E,w,$)=>{let x=S-y,C=g-b,T=b-y,A=g-S,O=A-T,_=T,I=T;if(E[0]=y-1,w[0]=b,O%2===0){let L=(p||O)/2,M=(T+A)/2;for(let U=1;U<=M;U+=1)if(_=o(U,b,g,x,v,E,_),U<L)I=i(U,y,S,C,v,w,I);else if(l(U,y,b,S,g,v,E,_,w,I,$))return}else{let L=((p||O)+1)/2,M=(T+A+1)/2,U=1;for(_=o(U,b,g,x,v,E,_),U+=1;U<=M;U+=1)if(I=i(U-1,y,S,C,v,w,I),U<L)_=o(U,b,g,x,v,E,_);else if(a(U,y,b,S,g,v,E,_,w,I,$))return}throw new Error(`${e}: no overlap aStart=${y} aEnd=${b} bStart=${S} bEnd=${g}`)},u=(p,y,b,S,g,v,E,w,$,x)=>{if(g-S<b-y){if(v=!v,v&&E.length===1){let{foundSubsequence:Z,isCommon:q}=E[0];E[1]={foundSubsequence:(K,X,ee)=>{Z(K,ee,X)},isCommon:(K,X)=>q(X,K)}}let z=y,V=b;y=S,b=g,S=z,g=V}let{foundSubsequence:C,isCommon:T}=E[v?1:0];s(p,y,b,S,g,T,w,$,x);let{nChangePreceding:A,aEndPreceding:O,bEndPreceding:_,nCommonPreceding:I,aCommonPreceding:L,bCommonPreceding:M,nCommonFollowing:U,aCommonFollowing:k,bCommonFollowing:F,nChangeFollowing:P,aStartFollowing:B,bStartFollowing:D}=x;y<O&&S<_&&u(A,y,O,S,_,v,E,w,$,x),I!==0&&C(I,L,M),U!==0&&C(U,k,F),B<b&&D<g&&u(P,B,b,D,g,v,E,w,$,x)},c=(p,y)=>{if(typeof y!="number")throw new TypeError(`${e}: ${p} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${p} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${p} value ${y} is a negative integer`)},d=(p,y)=>{let b=typeof y;if(b!=="function")throw new TypeError(`${e}: ${p} typeof ${b} is not a function`)};function f(p,y,b,S){c("aLength",p),c("bLength",y),d("isCommon",b),d("foundSubsequence",S);let g=r(0,p,0,y,b);if(g!==0&&S(g,0,0),p!==g||y!==g){let v=g,E=g,w=n(v,p-1,E,y-1,b),$=p-w,x=y-w,C=g+w;p!==C&&y!==C&&u(0,v,$,E,x,!1,[{foundSubsequence:S,isCommon:b}],[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}),w!==0&&S(w,$,x)}}return Hs}var Tk=_k(),P$=yk(Tk);function Ok(e,t){return e.replace(/\s+$/,r=>t(r))}function c0(e,t,r,n,o,i){return e.length!==0?r(`${n} ${Ok(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function k$(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return c0(e,t,r,n,o,i)}function F$(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return c0(e,t,r,n,o,i)}function I$(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return c0(e,t,r,n,o,i)}function Fb(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function Ak(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,a=!1,l=0,s=0;for(;s!==r;){let w=s;for(;s!==r&&e[s][0]===We;)s+=1;if(w!==s)if(w===0)s>n&&(i-=s-n,a=!0);else if(s===r){let $=s-w;$>n&&(i-=$-n,a=!0)}else{let $=s-w;$>o&&(i-=$-o,l+=1)}for(;s!==r&&e[s][0]!==We;)s+=1}let u=l!==0||a;l!==0?i+=l+1:a&&(i+=1);let c=i-1,d=[],f=0;u&&d.push("");let p=0,y=0,b=0,S=0,g=w=>{let $=d.length;d.push(I$(w,$===0||$===c,t)),b+=1,S+=1},v=w=>{let $=d.length;d.push(k$(w,$===0||$===c,t)),b+=1},E=w=>{let $=d.length;d.push(F$(w,$===0||$===c,t)),S+=1};for(s=0;s!==r;){let w=s;for(;s!==r&&e[s][0]===We;)s+=1;if(w!==s)if(w===0){s>n&&(w=s-n,p=w,y=w,b=p,S=y);for(let $=w;$!==s;$+=1)g(e[$][1])}else if(s===r){let $=s-w>n?w+n:s;for(let x=w;x!==$;x+=1)g(e[x][1])}else{let $=s-w;if($>o){let x=w+n;for(let T=w;T!==x;T+=1)g(e[T][1]);d[f]=Fb(p,b,y,S,t),f=d.length,d.push("");let C=$-o;p=b+C,y=S+C,b=p,S=y;for(let T=s-n;T!==s;T+=1)g(e[T][1])}else for(let x=w;x!==s;x+=1)g(e[x][1])}for(;s!==r&&e[s][0]===Ct;)v(e[s][1]),s+=1;for(;s!==r&&e[s][0]===pt;)E(e[s][1]),s+=1}return u&&(d[f]=Fb(p,b,y,S,t)),d.join(`
  13. `)}function Rk(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case Ct:return k$(i,a,t);case pt:return F$(i,a,t);default:return I$(i,a,t)}}).join(`
  14. `)}var Hf=e=>e,L$=5,Dk=0;function Pk(){return{aAnnotation:"Expected",aColor:wn.green,aIndicator:"-",bAnnotation:"Received",bColor:wn.red,bIndicator:"+",changeColor:wn.inverse,changeLineTrailingSpaceColor:Hf,commonColor:wn.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Hf,compareKeys:void 0,contextLines:L$,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:wn.yellow,printBasicPrototype:!1,truncateThreshold:Dk,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Hf}}function kk(e){return e&&typeof e=="function"?e:void 0}function Fk(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:L$}function li(e={}){return{...Pk(),...e,compareKeys:kk(e.compareKeys),contextLines:Fk(e.contextLines)}}function Ti(e){return e.length===1&&e[0].length===0}function Ik(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ct:t+=1;break;case pt:r+=1;break}}),{a:t,b:r}}function Lk({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(a){let p=String(s.a),y=String(s.b),b=n.length-e.length,S=" ".repeat(Math.max(0,b)),g=" ".repeat(Math.max(0,-b)),v=y.length-p.length,E=" ".repeat(Math.max(0,v)),w=" ".repeat(Math.max(0,-v));u=`${S} ${r} ${E}${p}`,c=`${g} ${i} ${w}${y}`}let d=`${r} ${e}${u}`,f=`${i} ${n}${c}`;return`${t(d)}
  15. ${o(f)}
  16. `}function d0(e,t,r){return Lk(r,Ik(e))+(r.expand?Rk(e,r):Ak(e,r))+(t?r.truncateAnnotationColor(`
  17. ${r.truncateAnnotation}`):"")}function Sd(e,t,r){let n=li(r),[o,i]=N$(Ti(e)?[]:e,Ti(t)?[]:t,n);return d0(o,i,n)}function Nk(e,t,r,n,o){if(Ti(e)&&Ti(r)&&(e=[],r=[]),Ti(t)&&Ti(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Sd(e,t,o);let[i,a]=N$(r,n,o),l=0,s=0;return i.forEach(u=>{switch(u[0]){case Ct:u[1]=e[l],l+=1;break;case pt:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),d0(i,a,li(o))}function N$(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,l=i!==e.length||a!==t.length,s=(f,p)=>e[f]===t[p],u=[],c=0,d=0;for(P$(i,a,s,(f,p,y)=>{for(;c!==p;c+=1)u.push(new Be(Ct,e[c]));for(;d!==y;d+=1)u.push(new Be(pt,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new Be(We,t[d]))});c!==i;c+=1)u.push(new Be(Ct,e[c]));for(;d!==a;d+=1)u.push(new Be(pt,t[d]));return[u,l]}function Ib(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 Lb(e){return e.includes(`\r
  18. `)?`\r
  19. `:`
  20. `}function Mk(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 f=e.includes(`
  21. `),p=t.includes(`
  22. `),y=Lb(e),b=Lb(t),S=f?`${e.split(y,o).join(y)}
  23. `:e,g=p?`${t.split(b,o).join(b)}
  24. `:t;i=S.length,a=g.length}let l=i!==e.length||a!==t.length,s=(f,p)=>e[f]===t[p],u=0,c=0,d=[];return P$(i,a,s,(f,p,y)=>{u!==p&&d.push(new Be(Ct,e.slice(u,p))),c!==y&&d.push(new Be(pt,t.slice(c,y))),u=p+f,c=y+f,d.push(new Be(We,t.slice(y,c)))}),u!==i&&d.push(new Be(Ct,e.slice(u))),c!==a&&d.push(new Be(pt,t.slice(c))),[d,l]}function Bk(e,t,r){return t.reduce((n,o)=>n+(o[0]===We?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Nb=class{constructor(e,t){Wr(this,"op");Wr(this,"line");Wr(this,"lines");Wr(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Be(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Be(this.op,Bk(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Be(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(`
  25. `)){let r=t.split(`
  26. `),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}},jk=class{constructor(e,t){Wr(this,"deleteBuffer");Wr(this,"insertBuffer");Wr(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(`
  27. `)){let n=r.split(`
  28. `),o=n.length-1;n.forEach((i,a)=>{if(a===0){let l=new Be(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else a<o?this.pushDiffCommonLine(new Be(t,i)):i.length!==0&&this.pushDiffChangeLines(new Be(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function Hk(e,t){let r=new Nb(Ct,t),n=new Nb(pt,t),o=new jk(r,n);return e.forEach(i=>{switch(i[0]){case Ct:r.align(i);break;case pt:n.align(i);break;default:o.align(i)}}),o.getLines()}function Uk(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===We&&(o!==r||n[1]!==`
  29. `))}return e.some(r=>r[0]===We)}function zk(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
  30. `)||t.includes(`
  31. `),[o,i]=M$(n?`${e}
  32. `:e,n?`${t}
  33. `:t,!0,r);if(Uk(o,n)){let a=li(r),l=Hk(o,a.changeColor);return d0(l,i,a)}}return Sd(e.split(`
  34. `),t.split(`
  35. `),r)}function M$(e,t,r,n){let[o,i]=Mk(e,t,n);return Sk(o),[o,i]}function Kh(e,t){let{commonColor:r}=li(t);return r(e)}var{AsymmetricMatcher:Kk,DOMCollection:Wk,DOMElement:Gk,Immutable:Vk,ReactElement:Yk,ReactTestComponent:qk}=u0,B$=[qk,Yk,Gk,Wk,Vk,Kk,u0.Error],Wh={maxDepth:20,plugins:B$},j$={callToJSON:!1,maxDepth:8,plugins:B$};function Xk(e,t,r){if(Object.is(e,t))return"";let n=Ib(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!==Ib(t)){let a=function(E){return E.length<=S?E:`${E.slice(0,S)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=li(r),p=Gh(j$,r),y=rn(e,p),b=rn(t,p),S=1e5;y=a(y),b=a(b);let g=`${s(`${u} ${l}:`)}
  36. ${y}`,v=`${d(`${f} ${c}:`)}
  37. ${b}`;return`${g}
  38. ${v}`}if(!i)switch(n){case"string":return Sd(e.split(`
  39. `),t.split(`
  40. `),r);case"boolean":case"number":return Jk(e,t,r);case"map":return Uf(Mb(e),Mb(t),r);case"set":return Uf(Bb(e),Bb(t),r);default:return Uf(e,t,r)}}function Jk(e,t,r){let n=rn(e,Wh),o=rn(t,Wh);return n===o?"":Sd(n.split(`
  41. `),o.split(`
  42. `),r)}function Mb(e){return new Map(Array.from(e.entries()).sort())}function Bb(e){return new Set(Array.from(e.values()).sort())}function Uf(e,t,r){let n,o=!1;try{let a=Gh(Wh,r);n=jb(e,t,a,r)}catch{o=!0}let i=Kh(D$,r);if(n===void 0||n===i){let a=Gh(j$,r);n=jb(e,t,a,r),n!==i&&!o&&(n=`${Kh(Ck,r)}
  43. ${n}`)}return n}function Gh(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=li(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function jb(e,t,r,n){let o={...r,indent:0},i=rn(e,o),a=rn(t,o);if(i===a)return Kh(D$,n);{let l=rn(e,r),s=rn(t,r);return Nk(l.split(`
  44. `),s.split(`
  45. `),i.split(`
  46. `),a.split(`
  47. `),n)}}var Hb=2e4;function Ub(e){return Uh(e)==="Object"&&typeof e.asymmetricMatch=="function"}function zb(e,t){let r=Uh(e),n=Uh(t);return r===n&&(r==="Object"||r==="Array")}function Qk(e,t,r){let{aAnnotation:n,bAnnotation:o}=li(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Hb&&e.length<=Hb&&t!==e){if(t.includes(`
  48. `)||e.includes(`
  49. `))return zk(t,e,r);let[u]=M$(t,e),c=u.some(y=>y[0]===We),d=Zk(n,o),f=d(n)+rF(Kb(u,Ct,c)),p=d(o)+tF(Kb(u,pt,c));return`${f}
  50. ${p}`}let i=Ob(t,{forceWritable:!0}),a=Ob(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=H$(a,i);return Xk(l,s,r)}function H$(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}):zb(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),T$(t).forEach(o=>{let i=t[o],a=e[o];if(Ub(i))i.asymmetricMatch(a)&&(e[o]=i);else if(Ub(a))a.asymmetricMatch(i)&&(t[o]=a);else if(zb(a,i)){let l=H$(a,i,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Zk(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var eF="·";function U$(e){return e.replace(/\s+$/gm,t=>eF.repeat(t.length))}function tF(e){return wn.red(U$(Il(e)))}function rF(e){return wn.green(U$(Il(e)))}function Kb(e,t,r){return e.reduce((n,o)=>n+(o[0]===We?o[1]:o[0]===t?r?wn.inverse(o[1]):o[1]:""),"")}var nF="@@__IMMUTABLE_RECORD__@@",oF="@@__IMMUTABLE_ITERABLE__@@";function iF(e){return e&&(e[oF]||e[nF])}var aF=Object.getPrototypeOf({});function Wb(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Wn(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"&&Us(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Us(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Us(()=>r.name??(r.name=e.name)),e.cause!=null&&Us(()=>r.cause??(r.cause=Wn(e.cause,t)))),Wn(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(iF(e))return Wn(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()} ${mk(e.sample)}`;if(typeof e.toJSON=="function")return Wn(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]=Wn(n,t)}catch(i){r[o]=Wb(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==aF;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Wn(e[o],t)}catch(i){delete r[o],r[o]=Wb(i)}}),n=Object.getPrototypeOf(n);return r}}function Us(e){try{return e()}catch{}}function lF(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function z$(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=Qk(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Il(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Il(n.actual,10));try{typeof n.message=="string"&&(n.message=lF(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=z$(n.cause,t,r))}catch{}try{return Wn(n)}catch(o){return Wn(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message}
  51. Inner error message: ${n==null?void 0:n.message}`))}}const{once:sF}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Gb,SET_CURRENT_STORY:uF,STORY_RENDER_PHASE_CHANGED:cF}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:hr}=__STORYBOOK_MODULE_GLOBAL__;var zf=globalThis.__STORYBOOK_ADDONS_PREVIEW,dF=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Vb=e=>Object.prototype.toString.call(e)==="[object Object]",fF=e=>Object.prototype.toString.call(e)==="[object Module]",pF=e=>{if(!Vb(e)&&!fF(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Vb(t)},hF=e=>{try{return new e.constructor}catch{return{}}},Kf=()=>({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}),Yb=(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}},gF=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{var l,s;try{this.state=((s=(l=hr.window)==null?void 0:l.parent)==null?void 0:s.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{hr.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:l,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(l);this.setState(l,{...Kf(),...Yb(d,c),renderPhase:s||d.renderPhase,shadowCalls:c?d.shadowCalls:[],chainedCallIds:c?d.chainedCallIds:new Set,playUntil:c?d.playUntil:void 0,isPlaying:u,isDebugging:c}),this.sync(l)},t=l=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let c=this.getLog(s);this.setState(s,({shadowCalls:d})=>{var p;if(u||!c.length)return{playUntil:u};let f=d.findIndex(y=>y.id===c[0].callId);return{playUntil:(p=d.slice(0,f).filter(y=>{var b;return y.interceptable&&!((b=y.ancestors)!=null&&b.length)}).slice(-1)[0])==null?void 0:p.id}}),l.emit(Gb,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{var d;let u=this.getLog(s).filter(f=>{var p;return!((p=f.ancestors)!=null&&p.length)}),c=u.reduceRight((f,p,y)=>f>=0||p.status==="waiting"?f:y,-1);t(l)({storyId:s,playUntil:(d=u[c-1])==null?void 0:d.callId})},n=l=>({storyId:s,callId:u})=>{var b;let{calls:c,shadowCalls:d,resolvers:f}=this.getState(s),p=c.find(({id:S})=>S===u),y=d.find(({id:S})=>S===u);if(!p&&y&&Object.values(f).length>0){let S=(b=this.getLog(s).find(g=>g.status==="waiting"))==null?void 0:b.callId;y.id!==S&&this.setState(s,{playUntil:y.id}),Object.values(f).forEach(g=>g())}else t(l)({storyId:s,playUntil:u})},o=l=>({storyId:s})=>{var c;let{resolvers:u}=this.getState(s);if(Object.values(u).length>0)Object.values(u).forEach(d=>d());else{let d=(c=this.getLog(s).find(f=>f.status==="waiting"))==null?void 0:c.callId;d?t(l)({storyId:s,playUntil:d}):i({storyId:s})}},i=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},a=({storyId:l,newPhase:s})=>{let{isDebugging:u}=this.getState(l);if(s==="preparing"&&u)return e({storyId:l,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:l,renderPhase:s,isDebugging:u});s==="played"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(l,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:s}),this.sync(l)};zf&&zf.ready().then(()=>{this.channel=zf.getChannel(),this.channel.on(Gb,e),this.channel.on(cF,a),this.channel.on(uF,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(hn.START,t(this.channel)),this.channel.on(hn.BACK,r(this.channel)),this.channel.on(hn.GOTO,n(this.channel)),this.channel.on(hn.NEXT,o(this.channel)),this.channel.on(hn.END,i)})}getState(e){return this.state[e]||Kf()}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=Yb(o);return i&&(r[n]=Object.assign(Kf(),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(hn.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(l=>{l!=null&&l.__callId__&&o.add(l.__callId__)}),a.path.forEach(l=>{l.__callId__&&o.add(l.__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(!pF(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,l)=>{let s=yF(e,l);if(typeof(s==null?void 0:s.get)=="function"){if(s.configurable){let c=()=>{var d,f;return(f=(d=s==null?void 0:s.get)==null?void 0:d.bind(e))==null?void 0:f()};Object.defineProperty(a,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)})}return a}let u=e[l];return typeof u!="function"?(a[l]=this.instrument(u,{...t,path:o.concat(l)},r),a):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(a[l]=u,a):(a[l]=(...c)=>this.track(l,u,e,c,t),a[l].__originalFn__=u,Object.defineProperty(a[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(a[l],this.instrument({...u},{...t,path:o.concat(l)},r)),a)},n?e:hF(e))}track(e,t,r,n,o){var b,S,g,v;let i=((b=n==null?void 0:n[0])==null?void 0:b.__storyId__)||((v=(g=(S=hr.__STORYBOOK_PREVIEW__)==null?void 0:S.selectionStore)==null?void 0:g.selection)==null?void 0:v.storyId),{cursor:a,ancestors:l}=this.getState(i);this.setState(i,{cursor:a+1});let s=`${l.slice(-1)[0]||i} [${a}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,f=typeof c=="function"?c(e,u):c,p={id:s,cursor:a,storyId:i,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},y=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,p,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:a}=this.getState(r.storyId),l=o.has(r.id);return!i||l||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(s=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:s}}))}).then(()=>(this.setState(r.storyId,s=>{let{[r.id]:u,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),a=25,l=(c,d,f)=>{var p,y,b;if(f.includes(c))return"[Circular]";if(f=[...f,c],d>a)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(S=>l(S,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:S,message:g,stack:v}=c;return{__error__:{name:S,message:g,stack:v}}}if(c instanceof RegExp){let{flags:S,source:g}=c;return{__regexp__:{flags:S,source:g}}}if(c instanceof((p=hr.window)==null?void 0:p.HTMLElement)){let{prefix:S,localName:g,id:v,classList:E,innerText:w}=c,$=Array.from(E);return{__element__:{prefix:S,localName:g,id:v,classNames:$,innerText:w}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&((y=c==null?void 0:c.constructor)!=null&&y.name)&&((b=c==null?void 0:c.constructor)==null?void 0:b.name)!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([S,g])=>[S,l(g,++d,f)])):c},s={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c!=null&&c.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(c.__callId__))}))});let u=c=>{var d;if(c instanceof Error){let{name:f,message:p,stack:y,callId:b=r.id}=c,{showDiff:S=void 0,diff:g=void 0,actual:v=void 0,expected:E=void 0}=c.name==="AssertionError"?z$(c):c,w={name:f,message:p,stack:y,callId:b,showDiff:S,diff:g,actual:v,expected:E};if(this.update({...s,status:"error",exception:w}),this.setState(r.storyId,$=>({callRefsByResult:new Map([...Array.from($.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),(d=r.ancestors)==null?void 0:d.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(i==="played"&&!r.retain)throw dF;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||bF(f)||Object.keys(f).length?f:(...p)=>{let{cursor:y,ancestors:b}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...b,r.id]});let S=()=>this.setState(r.storyId,{cursor:y,ancestors:b}),g=!1;try{let v=f(...p);return v instanceof Promise?(g=!0,v.finally(S)):v}finally{g||S()}}),d=e.apply(t,c);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...s,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(f=>(this.update({...s,status:"done"}),f),u):d}catch(c){return u(c)}}update(e){var t;(t=this.channel)==null||t.emit(hn.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 u,c,d;let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=(u=o.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting"))==null?void 0:u.callId,a=o.some(f=>f.status==="active");if(this.detached||r||a||o.length===0){let f={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};(c=this.channel)==null||c.emit(hn.SYNC,f);return}let l=o.some(f=>f.status==="done"||f.status==="error"),s={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:n,end:n},logItems:o,pausedAt:i};(d=this.channel)==null||d.emit(hn.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function mF(e,t={}){var r,n,o,i,a,l,s,u;try{let c=!1,d=!1;return(o=(n=(r=hr.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&o.includes("instrument=true")?c=!0:(l=(a=(i=hr.window)==null?void 0:i.location)==null?void 0:a.search)!=null&&l.includes("instrument=false")&&(d=!0),((s=hr.window)==null?void 0:s.parent)===hr.window&&!c||d?e:(hr.window&&!hr.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(hr.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new gF),((u=hr.window)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(c){return sF.warn(c),e}}function yF(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function bF(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var vF=Tt({"../../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(l,s,u){var c,d,f,p=t.call(l),y=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),p!=y||(c=n(l),d=n(s),c.length!=d.length||c.some(function(b){return!a(l[b],s[b],u)})))return!1;switch(p.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":c=l.entries(),d=s.entries();do if(!a((f=c.next()).value,d.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(f=0;f<l.length;f++)if((f in l||f in s)&&(f in l!=f in s||!a(l[f],s[f],u)))return!1;return!0;case"Object":return a(r(l),r(s),u);default:return!1}}(o,i,[])}}()}}),qb=Lt(vF(),1),K$=e=>e.map(t=>typeof t<"u").filter(Boolean).length,EF=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(K$([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,qb.isEqual)(t,n);if(typeof o<"u")return!(0,qb.isEqual)(t,o);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof i>"u"||i?!!t:!t},SF=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(K$([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return EF(e.if,i)},wF={};bt(wF,{argsEnhancers:()=>CF});var W$=(e,t)=>typeof t[e]>"u"&&!(e in t),xF=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,[l,s])=>(W$(l,t)&&(a[l]=t0(l,{implicit:!0,id:n})),a),{})},$F=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])=>(W$(i,t)&&(o[i]=t0(typeof a.action=="string"?a.action:i)),o),{})},CF=[$F,xF],_F={};bt(_F,{loaders:()=>AF});const{onMockCall:TF}=__STORYBOOK_MODULE_TEST__;var Xb=!1,OF=e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||Xb||(TF((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)))&&t0(i)(o)}),Xb=!0)},AF=[OF];const{useEffect:Jb}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:Ir}=globalThis,RF=()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},Qb=e=>{(Array.isArray(e)?e:[e]).forEach(DF)},DF=e=>{if(!Ir)return;let t=Ir.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},PF=(e,t)=>{if(!Ir)return;let r=Ir.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Ir.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Ir.head.appendChild(n)}},kF=(e,t,r)=>{var o;if(!Ir)return;let n=Ir.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let i=Ir.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,l=Ir.getElementById(a);l?(o=l.parentElement)==null||o.insertBefore(i,l):Ir.head.appendChild(i)}},FF={cellSize:100,cellAmount:10,opacity:.8},Zb="addon-backgrounds",ev="addon-backgrounds-grid",IF=RF()?"":"transition: background-color 0.3s;",LF=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=nP,disable:l,grid:s=FF}=n[tb]||{},u=r[tb]||{},c=typeof u=="string"?u:u==null?void 0:u.value,d=c?a[c]:void 0,f=typeof d=="string"?d:(d==null?void 0:d.value)||"transparent",p=typeof u=="string"?!1:u.grid||!1,y=!!d&&!l,b=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",S=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",g=n.layout===void 0||n.layout==="padded",v=o==="docs"?20:g?16:0,{cellAmount:E,cellSize:w,opacity:$,offsetX:x=v,offsetY:C=v}=s,T=o==="docs"?`${Zb}-docs-${i}`:`${Zb}-color`,A=o==="docs"?i:null;Jb(()=>{let _=`
  52. ${b} {
  53. background: ${f} !important;
  54. ${IF}
  55. }`;if(!y){Qb(T);return}kF(T,_,A)},[b,T,A,y,f]);let O=o==="docs"?`${ev}-docs-${i}`:`${ev}`;return Jb(()=>{if(!p){Qb(O);return}let _=[`${w*E}px ${w*E}px`,`${w*E}px ${w*E}px`,`${w}px ${w}px`,`${w}px ${w}px`].join(", "),I=`
  56. ${S} {
  57. background-size: ${_} !important;
  58. background-position: ${x}px ${C}px, ${x}px ${C}px, ${x}px ${C}px, ${x}px ${C}px !important;
  59. background-blend-mode: difference !important;
  60. background-image: linear-gradient(rgba(130, 130, 130, ${$}) 1px, transparent 1px),
  61. linear-gradient(90deg, rgba(130, 130, 130, ${$}) 1px, transparent 1px),
  62. linear-gradient(rgba(130, 130, 130, ${$/2}) 1px, transparent 1px),
  63. linear-gradient(90deg, rgba(130, 130, 130, ${$/2}) 1px, transparent 1px) !important;
  64. }
  65. `;PF(O,I)},[E,w,S,O,p,x,C,$]),e()},qx;(qx=globalThis.FEATURES)!=null&&qx.backgrounds;var{step:bce}=mF({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:zs}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:NF}=__STORYBOOK_MODULE_CORE_EVENTS__;var tv={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"]},MF="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),tt=(e,t={},r)=>{let n=MF.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},Ks=e=>tv[e]&&tt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},tv[e].map(t=>tt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),BF=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}},jF=e=>e instanceof Function,za=new Map,wo=new Map,Ws=new Map,mn=e=>{let t=Symbol();return wo.set(t,[]),za.set(t,e),{get:()=>za.get(t),set:r=>{var i;let n=za.get(t),o=jF(r)?r(n):r;o!==n&&(za.set(t,o),(i=wo.get(t))==null||i.forEach(a=>{var l;(l=Ws.get(a))==null||l(),Ws.set(a,a(o))}))},subscribe:r=>{var n;return(n=wo.get(t))==null||n.push(r),()=>{let o=wo.get(t);o&&wo.set(t,o.filter(i=>i!==r))}},teardown:()=>{var r;(r=wo.get(t))==null||r.forEach(n=>{var o;(o=Ws.get(n))==null||o(),Ws.delete(n)}),wo.delete(t),za.delete(t)}}},rv=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 l of a){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set(((s==null?void 0:s.selectors)||[]).concat(i)))})}}}return r},HF=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:l,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),nv=(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},ov=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a<zn&&(o=o-Math.round((zn-a)/2),a=zn),i<zn&&(n=n-Math.round((zn-i)/2),i=zn),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+i&&s>=o&&s<=o+a},UF=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,f=Math.min(e.style.position==="fixed"?o-u:o,c-e.clientHeight-i-a+u),p=l?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-s,d-p-i),p+i):Math.max(Math.min(n,d-p-i+s),p+i+s);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==o&&{top:`${f}px`}})},iv=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},zF=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},KF=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}}),De="storybook-highlights-menu",av="storybook-highlights-root",WF="storybook-root",GF=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=mn([]),n=mn(new Map),o=mn([]),i=mn(),a=mn(),l=mn([]),s=mn([]),u=mn(),c=mn(),d=t.getElementById(av);r.subscribe(()=>{d||(d=tt("div",{id:av}),t.body.appendChild(d))}),r.subscribe(C=>{let T=t.getElementById(WF);if(!T)return;n.set(rv(C));let A=new MutationObserver(()=>n.set(rv(C)));return A.observe(T,{subtree:!0,childList:!0}),()=>{A.disconnect()}}),n.subscribe(C=>{let T=()=>requestAnimationFrame(()=>o.set(HF(C))),A=new ResizeObserver(T);A.observe(t.body),Array.from(C.keys()).forEach(_=>A.observe(_));let O=Array.from(t.body.querySelectorAll("*")).filter(_=>{let{overflow:I,overflowX:L,overflowY:M}=window.getComputedStyle(_);return["auto","scroll"].some(U=>[I,L,M].includes(U))});return O.forEach(_=>_.addEventListener("scroll",T)),()=>{A.disconnect(),O.forEach(_=>_.removeEventListener("scroll",T))}}),n.subscribe(C=>{let T=Array.from(C.keys()).filter(({style:O})=>O.position==="sticky"),A=()=>requestAnimationFrame(()=>{o.set(O=>O.map(_=>{if(T.includes(_.element)){let{top:I,left:L}=_.element.getBoundingClientRect();return{..._,top:I+window.scrollY,left:L+window.scrollX}}return _}))});return t.addEventListener("scroll",A),()=>t.removeEventListener("scroll",A)}),n.subscribe(C=>{l.set(T=>T.filter(({element:A})=>C.has(A)))}),l.subscribe(C=>{C.length?(c.set(T=>C.some(A=>A.element===(T==null?void 0:T.element))?T:void 0),u.set(T=>C.some(A=>A.element===(T==null?void 0:T.element))?T:void 0)):(c.set(void 0),u.set(void 0),i.set(void 0))});let f=new Map(new Map);r.subscribe(C=>{C.forEach(({keyframes:T})=>{if(T){let A=f.get(T);A||(A=t.createElement("style"),A.setAttribute("data-highlight","keyframes"),f.set(T,A),t.head.appendChild(A)),A.innerHTML=T}}),f.forEach((T,A)=>{C.some(O=>O.keyframes===A)||(T.remove(),f.delete(A))})});let p=new Map(new Map);o.subscribe(C=>{C.forEach(T=>{let A=p.get(T.element);if(d&&!A){let O={popover:"manual","data-highlight-dimensions":`w${T.width.toFixed(0)}h${T.height.toFixed(0)}`,"data-highlight-coordinates":`x${T.left.toFixed(0)}y${T.top.toFixed(0)}`};A=d.appendChild(tt("div",O,[tt("div")])),p.set(T.element,A)}}),p.forEach((T,A)=>{C.some(({element:O})=>O===A)||(T.remove(),p.delete(A))})}),o.subscribe(C=>{let T=C.filter(O=>O.menu);if(!T.length)return;let A=O=>{requestAnimationFrame(()=>{let _=t.getElementById(De),I={x:O.pageX,y:O.pageY};if(_&&!nv(_,I)){let L=T.filter(M=>{let U=p.get(M.element);return ov(M,U,I)});i.set(L.length?I:void 0),l.set(L)}})};return t.addEventListener("click",A),()=>t.removeEventListener("click",A)});let y=()=>{let C=t.getElementById(De),T=a.get();!T||C&&nv(C,T)||s.set(A=>{let O=o.get().filter(M=>{let U=p.get(M.element);return ov(M,U,T)}),_=A.filter(M=>O.includes(M)),I=O.filter(M=>!A.includes(M)),L=A.length-_.length;return I.length||L?[..._,...I]:A})};a.subscribe(y),o.subscribe(y);let b=()=>{let C=c.get(),T=C?[C]:l.get(),A=T.length===1?T[0]:u.get(),O=i.get()!==void 0;o.get().forEach(_=>{var L;let I=p.get(_.element);if(I){let M=A===_,U=O?A?M:T.includes(_):(L=s.get())==null?void 0:L.includes(_);Object.assign(I.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",..._.styles,...U?_.hoverStyles:{},...M?_.focusStyles:{},position:getComputedStyle(_.element).position==="fixed"?"fixed":"absolute",zIndex:Z1-10,top:`${_.top}px`,left:`${_.left}px`,width:`${_.width}px`,height:`${_.height}px`,margin:0,padding:0,cursor:_.menu&&U?"pointer":"default",pointerEvents:_.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(I.children[0].style,{width:"100%",height:"100%",minHeight:`${zn}px`,minWidth:`${zn}px`,boxSizing:"content-box",padding:I.style.outlineWidth||"0px"}),iv(I)}})};o.subscribe(b),l.subscribe(b),s.subscribe(b),u.subscribe(b),c.subscribe(b);let S=()=>{var _;if(!d)return;let C=t.getElementById(De);if(C)C.innerHTML="";else{let I={id:De,popover:"manual"};C=d.appendChild(tt("div",I)),d.appendChild(tt("style",{},[`
  66. #${De} {
  67. position: absolute;
  68. z-index: ${Z1};
  69. width: 300px;
  70. padding: 0px;
  71. margin: 15px 0 0 0;
  72. transform: translateX(-50%);
  73. font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  74. font-size: 12px;
  75. background: white;
  76. border: none;
  77. border-radius: 6px;
  78. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
  79. color: #2E3438;
  80. }
  81. #${De} ul {
  82. list-style: none;
  83. margin: 0;
  84. padding: 0;
  85. }
  86. #${De} > ul {
  87. max-height: 300px;
  88. overflow-y: auto;
  89. padding: 4px 0;
  90. }
  91. #${De} li {
  92. padding: 0 4px;
  93. margin: 0;
  94. }
  95. #${De} li > :not(ul) {
  96. display: flex;
  97. padding: 8px;
  98. margin: 0;
  99. align-items: center;
  100. gap: 8px;
  101. border-radius: 4px;
  102. }
  103. #${De} button {
  104. width: 100%;
  105. border: 0;
  106. background: transparent;
  107. color: inherit;
  108. text-align: left;
  109. font-family: inherit;
  110. font-size: inherit;
  111. }
  112. #${De} button:focus-visible {
  113. outline-color: #029CFD;
  114. }
  115. #${De} button:hover {
  116. background: rgba(2, 156, 253, 0.07);
  117. color: #029CFD;
  118. cursor: pointer;
  119. }
  120. #${De} li code {
  121. white-space: nowrap;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. line-height: 16px;
  125. font-size: 11px;
  126. }
  127. #${De} li svg {
  128. flex-shrink: 0;
  129. margin: 1px;
  130. color: #73828C;
  131. }
  132. #${De} li > button:hover svg, #${De} li > button:focus-visible svg {
  133. color: #029CFD;
  134. }
  135. #${De} .element-list li svg {
  136. display: none;
  137. }
  138. #${De} li.selectable svg, #${De} li.selected svg {
  139. display: block;
  140. }
  141. #${De} .menu-list {
  142. border-top: 1px solid rgba(38, 85, 115, 0.15);
  143. }
  144. #${De} .menu-list > li:not(:last-child) {
  145. padding-bottom: 4px;
  146. margin-bottom: 4px;
  147. border-bottom: 1px solid rgba(38, 85, 115, 0.15);
  148. }
  149. #${De} .menu-items, #${De} .menu-items li {
  150. padding: 0;
  151. }
  152. #${De} .menu-item {
  153. display: flex;
  154. }
  155. #${De} .menu-item-content {
  156. display: flex;
  157. flex-direction: column;
  158. flex-grow: 1;
  159. }
  160. `]))}let T=c.get(),A=T?[T]:l.get();if(A.length&&(C.style.position=getComputedStyle(A[0].element).position==="fixed"?"fixed":"absolute",C.appendChild(tt("ul",{class:"element-list"},A.map(I=>{var k;let L=A.length>1&&!!((k=I.menu)!=null&&k.some(F=>F.some(P=>!P.selectors||P.selectors.some(B=>I.selectors.includes(B))))),M=L?{class:"selectable",onClick:()=>c.set(I),onMouseEnter:()=>u.set(I),onMouseLeave:()=>u.set(void 0)}:T?{class:"selected",onClick:()=>c.set(void 0)}:{},U=L||T;return tt("li",M,[tt(U?"button":"div",U?{type:"button"}:{},[T?Ks("chevronLeft"):null,tt("code",{},[I.element.outerHTML]),L?Ks("chevronRight"):null])])})))),c.get()||l.get().length===1){let I=c.get()||l.get()[0],L=(_=I.menu)==null?void 0:_.filter(M=>M.some(U=>!U.selectors||U.selectors.some(k=>I.selectors.includes(k))));L!=null&&L.length&&C.appendChild(tt("ul",{class:"menu-list"},L.map(M=>tt("li",{},[tt("ul",{class:"menu-items"},M.map(({id:U,title:k,description:F,iconLeft:P,iconRight:B,clickEvent:D})=>{let z=D&&(()=>e.emit(D,U,KF(I)));return tt("li",{},[tt(z?"button":"div",z?{class:"menu-item",type:"button",onClick:z}:{class:"menu-item"},[P?Ks(P):null,tt("div",{class:"menu-item-content"},[tt(F?"strong":"span",{},[k]),F&&tt("span",{},[F])]),B?Ks(B):null])])}))]))))}let O=i.get();O?(Object.assign(C.style,{display:"block",left:`${C.style.position==="fixed"?O.x-window.scrollX:O.x}px`,top:`${C.style.position==="fixed"?O.y-window.scrollY:O.y}px`}),iv(C),requestAnimationFrame(()=>UF(C,O,{topOffset:15,centered:!0}))):(zF(C),Object.assign(C.style,{display:"none"}))};l.subscribe(S),c.subscribe(S);let g=C=>{let T=BF(C);r.set(A=>{var _;let O=T.id?A.filter(I=>I.id!==T.id):A;return(_=T.selectors)!=null&&_.length?[...O,T]:O})},v=C=>{C&&r.set(T=>T.filter(A=>A.id!==C))},E=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},w,$=(C,T)=>{let A="scrollIntoView-highlight";clearTimeout(w),v(A);let O=t.querySelector(C);if(!O){console.warn(`Cannot scroll into view: ${C} not found`);return}O.scrollIntoView({behavior:"smooth",block:"center",...T});let _=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(I=>[...I,{id:A,priority:1e3,selectors:[C],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${_} 3s linear forwards`},keyframes:`@keyframes ${_} {
  161. 0% { outline: 2px solid #1EA7FD; }
  162. 20% { outline: 2px solid #1EA7FD00; }
  163. 40% { outline: 2px solid #1EA7FD; }
  164. 60% { outline: 2px solid #1EA7FD00; }
  165. 80% { outline: 2px solid #1EA7FD; }
  166. 100% { outline: 2px solid #1EA7FD00; }
  167. }`}]),w=setTimeout(()=>v(A),3500)},x=C=>{requestAnimationFrame(()=>a.set({x:C.pageX,y:C.pageY}))};t.body.addEventListener("mousemove",x),e.on(KD,g),e.on(WD,v),e.on(GD,E),e.on(VD,$),e.on(NF,({newPhase:C})=>{C==="loading"&&E()})},Xx;(Xx=globalThis==null?void 0:globalThis.FEATURES)!=null&&Xx.highlight&&(zs!=null&&zs.ready)&&zs.ready().then(GF);const{useEffect:lv}=__STORYBOOK_MODULE_PREVIEW_API__,{global:bc}=__STORYBOOK_MODULE_GLOBAL__;function G$(){let e=bc.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function VF(){let e=bc.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Bh(t!=null);let{width:r,height:n}=G$();return Vh(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",bc.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Vh(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=bc.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var rt={};function YF(){rt.canvas||(rt=VF())}function V$(){rt.context&&rt.context.clearRect(0,0,rt.width??0,rt.height??0)}function qF(e){V$(),e(rt.context)}function XF(){Bh(rt.canvas),Bh(rt.context),Vh(rt.canvas,rt.context,{width:0,height:0});let{width:e,height:t}=G$();Vh(rt.canvas,rt.context,{width:e,height:t}),rt.width=e,rt.height=t}function JF(){var e;rt.canvas&&(V$(),(e=rt.canvas.parentNode)==null||e.removeChild(rt.canvas),rt={})}const{global:kr}=__STORYBOOK_MODULE_GLOBAL__;var bi={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},$n=6;function sv(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 QF(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=a+r.left+t.left,c=i+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,c+=s/2):e==="bottom"?(u+=l/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=l/2,c+=s/2),{x:u,y:c}}function ZF(e,t,{margin:r,border:n,padding:o},i,a){let l=f=>0,s=0,u=0,c=a?1:.5,d=a?i*2:0;return e==="padding"?l=f=>o[f]*c+d:e==="border"?l=f=>o[f]+n[f]*c+d:e==="margin"&&(l=f=>o[f]+n[f]+r[f]*c+d),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}function eI(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 tI(e,t,r){return e==="top"?t.y=r.y-r.h-$n:e==="right"?t.x=r.x+r.w/2+$n+t.w/2:e==="bottom"?t.y=r.y+r.h+$n:e==="left"&&(t.x=r.x-r.w/2-$n-t.w/2),{x:t.x,y:t.y}}function Y$(e,t,{x:r,y:n,w:o,h:i},a){return sv(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${bi[t]}dd`,e.fill(),e.strokeStyle=bi[t],e.stroke(),e.fillStyle=bi.text,e.fillText(a,r,n),sv(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${bi[t]}dd`,e.fill(),e.strokeStyle=bi[t],e.stroke(),e.fillStyle=bi.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:i}}function q$(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+$n*2,i=n+$n*2;return{w:o,h:i}}function rI(e,t,{type:r,position:n="center",text:o},i,a=!1){let{x:l,y:s}=QF(n,t),{offsetX:u,offsetY:c}=ZF(r,n,t,$n+1,a);l+=u,s+=c;let{w:d,h:f}=q$(e,o);if(i&&eI({x:l,y:s,w:d,h:f},i)){let p=tI(n,{x:l,y:s,w:d},i);l=p.x,s=p.y}return Y$(e,r,{x:l,y:s,w:d,h:f},o)}function nI(e,{w:t,h:r}){let n=t*.5+$n,o=r*.5+$n;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function oI(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,a=i[o.x],l=i[o.y],{w:s,h:u}=q$(e,n),{offsetX:c,offsetY:d}=nI(o,{w:s,h:u});return a+=c,l+=d,Y$(e,r,{x:a,y:l,w:s,h:u},n)}function Ka(e,t,r,n){let o=[];r.forEach((i,a)=>{let l=n&&i.position==="center"?oI(e,t,i):rI(e,t,i,o[a-1],n);o[a]=l})}function iI(e,t,r,n){let o=r.reduce((i,a)=>{var l;return Object.prototype.hasOwnProperty.call(i,a.position)||(i[a.position]=[]),(l=i[a.position])==null||l.push(a),i},{});o.top&&Ka(e,t,o.top,n),o.right&&Ka(e,t,o.right,n),o.bottom&&Ka(e,t,o.bottom,n),o.left&&Ka(e,t,o.left,n),o.center&&Ka(e,t,o.center,n)}var wd={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},uv=30;function cr(e){return parseInt(e.replace("px",""),10)}function Oi(e){return Number.isInteger(e)?e:e.toFixed(2)}function f0(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function aI(e){let t={top:kr.window.scrollY,bottom:kr.window.scrollY+kr.window.innerHeight,left:kr.window.scrollX,right:kr.window.scrollX+kr.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 lI(e){let t=kr.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:p,paddingLeft:y,paddingRight:b,borderBottomWidth:S,borderTopWidth:g,borderLeftWidth:v,borderRightWidth:E}=t;r=r+kr.window.scrollY,n=n+kr.window.scrollX,i=i+kr.window.scrollY,o=o+kr.window.scrollX;let w={top:cr(s),bottom:cr(u),left:cr(c),right:cr(d)},$={top:cr(f),bottom:cr(p),left:cr(y),right:cr(b)},x={top:cr(g),bottom:cr(S),left:cr(v),right:cr(E)},C={top:r-w.top,bottom:i+w.bottom,left:n-w.left,right:o+w.right};return{margin:w,padding:$,border:x,top:r,left:n,bottom:i,right:o,width:a,height:l,extremities:C,floatingAlignment:aI(C)}}function sI(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n+t.bottom+t.top;e.fillStyle=wd.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(i,a,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:Oi(t.top),position:"top"},{type:"margin",text:Oi(t.right),position:"right"},{type:"margin",text:Oi(t.bottom),position:"bottom"},{type:"margin",text:Oi(t.left),position:"left"}];return f0(u)}function uI(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=wd.padding,e.fillRect(a+r.left,i+r.top,u,t.top),e.fillRect(s-t.right-r.right,i+t.top+r.top,t.right,c),e.fillRect(a+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(a+r.left,i+t.top+r.top,t.left,c);let d=[{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 f0(d)}function cI(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n-t.top-t.bottom;e.fillStyle=wd.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,s),e.fillRect(l-t.right,o+t.top,t.right,s);let u=[{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 f0(u)}function dI(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=wd.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,l,s),[{type:"content",position:"center",text:`${Oi(l)} x ${Oi(s)}`}]}function fI(e){return t=>{if(e&&t){let r=lI(e),n=sI(t,r),o=uI(t,r),i=cI(t,r),a=dI(t,r),l=r.width<=uv*3||r.height<=uv;iI(t,r,[...a,...o,...i,...n],l)}}}function pI(e){qF(fI(e))}const{global:hI}=__STORYBOOK_MODULE_GLOBAL__;var gI=(e,t)=>{let r=hI.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},cv,Gs={x:0,y:0};function dv(e,t){cv=gI(e,t),pI(cv)}var mI=(e,t)=>{let{measureEnabled:r}=t.globals||{};return lv(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Gs.x=o.clientX,Gs.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),lv(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),dv(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{XF()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),YF(),globalThis.window.addEventListener("resize",o),dv(Gs.x,Gs.y)),()=>{globalThis.window.removeEventListener("resize",o),JF()}},[r,t.viewMode]),e()},Jx;(Jx=globalThis.FEATURES)!=null&&Jx.measure;const{useEffect:yI,useMemo:bI}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Bu}=__STORYBOOK_MODULE_GLOBAL__;var fv=e=>{(Array.isArray(e)?e:[e]).forEach(vI)},vI=e=>{let t=typeof e=="string"?e:e.join(""),r=Bu.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},EI=(e,t)=>{let r=Bu.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Bu.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Bu.document.head.appendChild(n)}};function SI(e){return gr`
  168. ${e} body {
  169. outline: 1px solid #2980b9 !important;
  170. }
  171. ${e} article {
  172. outline: 1px solid #3498db !important;
  173. }
  174. ${e} nav {
  175. outline: 1px solid #0088c3 !important;
  176. }
  177. ${e} aside {
  178. outline: 1px solid #33a0ce !important;
  179. }
  180. ${e} section {
  181. outline: 1px solid #66b8da !important;
  182. }
  183. ${e} header {
  184. outline: 1px solid #99cfe7 !important;
  185. }
  186. ${e} footer {
  187. outline: 1px solid #cce7f3 !important;
  188. }
  189. ${e} h1 {
  190. outline: 1px solid #162544 !important;
  191. }
  192. ${e} h2 {
  193. outline: 1px solid #314e6e !important;
  194. }
  195. ${e} h3 {
  196. outline: 1px solid #3e5e85 !important;
  197. }
  198. ${e} h4 {
  199. outline: 1px solid #449baf !important;
  200. }
  201. ${e} h5 {
  202. outline: 1px solid #c7d1cb !important;
  203. }
  204. ${e} h6 {
  205. outline: 1px solid #4371d0 !important;
  206. }
  207. ${e} main {
  208. outline: 1px solid #2f4f90 !important;
  209. }
  210. ${e} address {
  211. outline: 1px solid #1a2c51 !important;
  212. }
  213. ${e} div {
  214. outline: 1px solid #036cdb !important;
  215. }
  216. ${e} p {
  217. outline: 1px solid #ac050b !important;
  218. }
  219. ${e} hr {
  220. outline: 1px solid #ff063f !important;
  221. }
  222. ${e} pre {
  223. outline: 1px solid #850440 !important;
  224. }
  225. ${e} blockquote {
  226. outline: 1px solid #f1b8e7 !important;
  227. }
  228. ${e} ol {
  229. outline: 1px solid #ff050c !important;
  230. }
  231. ${e} ul {
  232. outline: 1px solid #d90416 !important;
  233. }
  234. ${e} li {
  235. outline: 1px solid #d90416 !important;
  236. }
  237. ${e} dl {
  238. outline: 1px solid #fd3427 !important;
  239. }
  240. ${e} dt {
  241. outline: 1px solid #ff0043 !important;
  242. }
  243. ${e} dd {
  244. outline: 1px solid #e80174 !important;
  245. }
  246. ${e} figure {
  247. outline: 1px solid #ff00bb !important;
  248. }
  249. ${e} figcaption {
  250. outline: 1px solid #bf0032 !important;
  251. }
  252. ${e} table {
  253. outline: 1px solid #00cc99 !important;
  254. }
  255. ${e} caption {
  256. outline: 1px solid #37ffc4 !important;
  257. }
  258. ${e} thead {
  259. outline: 1px solid #98daca !important;
  260. }
  261. ${e} tbody {
  262. outline: 1px solid #64a7a0 !important;
  263. }
  264. ${e} tfoot {
  265. outline: 1px solid #22746b !important;
  266. }
  267. ${e} tr {
  268. outline: 1px solid #86c0b2 !important;
  269. }
  270. ${e} th {
  271. outline: 1px solid #a1e7d6 !important;
  272. }
  273. ${e} td {
  274. outline: 1px solid #3f5a54 !important;
  275. }
  276. ${e} col {
  277. outline: 1px solid #6c9a8f !important;
  278. }
  279. ${e} colgroup {
  280. outline: 1px solid #6c9a9d !important;
  281. }
  282. ${e} button {
  283. outline: 1px solid #da8301 !important;
  284. }
  285. ${e} datalist {
  286. outline: 1px solid #c06000 !important;
  287. }
  288. ${e} fieldset {
  289. outline: 1px solid #d95100 !important;
  290. }
  291. ${e} form {
  292. outline: 1px solid #d23600 !important;
  293. }
  294. ${e} input {
  295. outline: 1px solid #fca600 !important;
  296. }
  297. ${e} keygen {
  298. outline: 1px solid #b31e00 !important;
  299. }
  300. ${e} label {
  301. outline: 1px solid #ee8900 !important;
  302. }
  303. ${e} legend {
  304. outline: 1px solid #de6d00 !important;
  305. }
  306. ${e} meter {
  307. outline: 1px solid #e8630c !important;
  308. }
  309. ${e} optgroup {
  310. outline: 1px solid #b33600 !important;
  311. }
  312. ${e} option {
  313. outline: 1px solid #ff8a00 !important;
  314. }
  315. ${e} output {
  316. outline: 1px solid #ff9619 !important;
  317. }
  318. ${e} progress {
  319. outline: 1px solid #e57c00 !important;
  320. }
  321. ${e} select {
  322. outline: 1px solid #e26e0f !important;
  323. }
  324. ${e} textarea {
  325. outline: 1px solid #cc5400 !important;
  326. }
  327. ${e} details {
  328. outline: 1px solid #33848f !important;
  329. }
  330. ${e} summary {
  331. outline: 1px solid #60a1a6 !important;
  332. }
  333. ${e} command {
  334. outline: 1px solid #438da1 !important;
  335. }
  336. ${e} menu {
  337. outline: 1px solid #449da6 !important;
  338. }
  339. ${e} del {
  340. outline: 1px solid #bf0000 !important;
  341. }
  342. ${e} ins {
  343. outline: 1px solid #400000 !important;
  344. }
  345. ${e} img {
  346. outline: 1px solid #22746b !important;
  347. }
  348. ${e} iframe {
  349. outline: 1px solid #64a7a0 !important;
  350. }
  351. ${e} embed {
  352. outline: 1px solid #98daca !important;
  353. }
  354. ${e} object {
  355. outline: 1px solid #00cc99 !important;
  356. }
  357. ${e} param {
  358. outline: 1px solid #37ffc4 !important;
  359. }
  360. ${e} video {
  361. outline: 1px solid #6ee866 !important;
  362. }
  363. ${e} audio {
  364. outline: 1px solid #027353 !important;
  365. }
  366. ${e} source {
  367. outline: 1px solid #012426 !important;
  368. }
  369. ${e} canvas {
  370. outline: 1px solid #a2f570 !important;
  371. }
  372. ${e} track {
  373. outline: 1px solid #59a600 !important;
  374. }
  375. ${e} map {
  376. outline: 1px solid #7be500 !important;
  377. }
  378. ${e} area {
  379. outline: 1px solid #305900 !important;
  380. }
  381. ${e} a {
  382. outline: 1px solid #ff62ab !important;
  383. }
  384. ${e} em {
  385. outline: 1px solid #800b41 !important;
  386. }
  387. ${e} strong {
  388. outline: 1px solid #ff1583 !important;
  389. }
  390. ${e} i {
  391. outline: 1px solid #803156 !important;
  392. }
  393. ${e} b {
  394. outline: 1px solid #cc1169 !important;
  395. }
  396. ${e} u {
  397. outline: 1px solid #ff0430 !important;
  398. }
  399. ${e} s {
  400. outline: 1px solid #f805e3 !important;
  401. }
  402. ${e} small {
  403. outline: 1px solid #d107b2 !important;
  404. }
  405. ${e} abbr {
  406. outline: 1px solid #4a0263 !important;
  407. }
  408. ${e} q {
  409. outline: 1px solid #240018 !important;
  410. }
  411. ${e} cite {
  412. outline: 1px solid #64003c !important;
  413. }
  414. ${e} dfn {
  415. outline: 1px solid #b4005a !important;
  416. }
  417. ${e} sub {
  418. outline: 1px solid #dba0c8 !important;
  419. }
  420. ${e} sup {
  421. outline: 1px solid #cc0256 !important;
  422. }
  423. ${e} time {
  424. outline: 1px solid #d6606d !important;
  425. }
  426. ${e} code {
  427. outline: 1px solid #e04251 !important;
  428. }
  429. ${e} kbd {
  430. outline: 1px solid #5e001f !important;
  431. }
  432. ${e} samp {
  433. outline: 1px solid #9c0033 !important;
  434. }
  435. ${e} var {
  436. outline: 1px solid #d90047 !important;
  437. }
  438. ${e} mark {
  439. outline: 1px solid #ff0053 !important;
  440. }
  441. ${e} bdi {
  442. outline: 1px solid #bf3668 !important;
  443. }
  444. ${e} bdo {
  445. outline: 1px solid #6f1400 !important;
  446. }
  447. ${e} ruby {
  448. outline: 1px solid #ff7b93 !important;
  449. }
  450. ${e} rt {
  451. outline: 1px solid #ff2f54 !important;
  452. }
  453. ${e} rp {
  454. outline: 1px solid #803e49 !important;
  455. }
  456. ${e} span {
  457. outline: 1px solid #cc2643 !important;
  458. }
  459. ${e} br {
  460. outline: 1px solid #db687d !important;
  461. }
  462. ${e} wbr {
  463. outline: 1px solid #db175b !important;
  464. }`}var wI=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[rP]),o=t.viewMode==="docs",i=bI(()=>SI(o?'[data-story-block="true"]':".sb-show-main"),[t]);return yI(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?EI(a,i):fv(a),()=>{fv(a)}},[n,i,t]),e()},Qx;(Qx=globalThis.FEATURES)!=null&&Qx.outline;const{clearAllMocks:vce,fn:Ece,isMockFunction:Sce,resetAllMocks:wce,restoreAllMocks:xce,uninstrumentedUserEvent:$ce,within:Cce}=__STORYBOOK_MODULE_TEST__;var ra=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),pv=(e,t)=>{let r=ra(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Vs=(e,t)=>`${pv(e,"kind")}${t?`--${pv(t,"name")}`:""}`,X$={exports:{}},fe={};/**
  465. * @license React
  466. * react.production.min.js
  467. *
  468. * Copyright (c) Facebook, Inc. and its affiliates.
  469. *
  470. * This source code is licensed under the MIT license found in the
  471. * LICENSE file in the root directory of this source tree.
  472. */var gs=Symbol.for("react.element"),xI=Symbol.for("react.portal"),$I=Symbol.for("react.fragment"),CI=Symbol.for("react.strict_mode"),_I=Symbol.for("react.profiler"),TI=Symbol.for("react.provider"),OI=Symbol.for("react.context"),AI=Symbol.for("react.forward_ref"),RI=Symbol.for("react.suspense"),DI=Symbol.for("react.memo"),PI=Symbol.for("react.lazy"),hv=Symbol.iterator;function kI(e){return e===null||typeof e!="object"?null:(e=hv&&e[hv]||e["@@iterator"],typeof e=="function"?e:null)}var J$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q$=Object.assign,Z$={};function Ca(e,t,r){this.props=e,this.context=t,this.refs=Z$,this.updater=r||J$}Ca.prototype.isReactComponent={};Ca.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ca.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eC(){}eC.prototype=Ca.prototype;function p0(e,t,r){this.props=e,this.context=t,this.refs=Z$,this.updater=r||J$}var h0=p0.prototype=new eC;h0.constructor=p0;Q$(h0,Ca.prototype);h0.isPureReactComponent=!0;var gv=Array.isArray,tC=Object.prototype.hasOwnProperty,g0={current:null},rC={key:!0,ref:!0,__self:!0,__source:!0};function nC(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)tC.call(t,n)&&!rC.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)o[n]===void 0&&(o[n]=l[n]);return{$$typeof:gs,type:e,key:i,ref:a,props:o,_owner:g0.current}}function FI(e,t){return{$$typeof:gs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function m0(e){return typeof e=="object"&&e!==null&&e.$$typeof===gs}function II(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var mv=/\/+/g;function Wf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?II(""+e.key):t.toString(36)}function ju(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case gs:case xI:a=!0}}if(a)return a=e,o=o(a),e=n===""?"."+Wf(a,0):n,gv(o)?(r="",e!=null&&(r=e.replace(mv,"$&/")+"/"),ju(o,t,r,"",function(u){return u})):o!=null&&(m0(o)&&(o=FI(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(mv,"$&/")+"/")+e)),t.push(o)),1;if(a=0,n=n===""?".":n+":",gv(e))for(var l=0;l<e.length;l++){i=e[l];var s=n+Wf(i,l);a+=ju(i,t,r,s,o)}else if(s=kI(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=n+Wf(i,l++),a+=ju(i,t,r,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ys(e,t,r){if(e==null)return e;var n=[],o=0;return ju(e,n,"","",function(i){return t.call(r,i,o++)}),n}function LI(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Nt={current:null},Hu={transition:null},NI={ReactCurrentDispatcher:Nt,ReactCurrentBatchConfig:Hu,ReactCurrentOwner:g0};function oC(){throw Error("act(...) is not supported in production builds of React.")}fe.Children={map:Ys,forEach:function(e,t,r){Ys(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ys(e,function(){t++}),t},toArray:function(e){return Ys(e,function(t){return t})||[]},only:function(e){if(!m0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=Ca;fe.Fragment=$I;fe.Profiler=_I;fe.PureComponent=p0;fe.StrictMode=CI;fe.Suspense=RI;fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NI;fe.act=oC;fe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Q$({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=g0.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)tC.call(t,s)&&!rC.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:gs,type:e.type,key:o,ref:i,props:n,_owner:a}};fe.createContext=function(e){return e={$$typeof:OI,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:TI,_context:e},e.Consumer=e};fe.createElement=nC;fe.createFactory=function(e){var t=nC.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:AI,render:e}};fe.isValidElement=m0;fe.lazy=function(e){return{$$typeof:PI,_payload:{_status:-1,_result:e},_init:LI}};fe.memo=function(e,t){return{$$typeof:DI,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Hu.transition;Hu.transition={};try{e()}finally{Hu.transition=t}};fe.unstable_act=oC;fe.useCallback=function(e,t){return Nt.current.useCallback(e,t)};fe.useContext=function(e){return Nt.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return Nt.current.useDeferredValue(e)};fe.useEffect=function(e,t){return Nt.current.useEffect(e,t)};fe.useId=function(){return Nt.current.useId()};fe.useImperativeHandle=function(e,t,r){return Nt.current.useImperativeHandle(e,t,r)};fe.useInsertionEffect=function(e,t){return Nt.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return Nt.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return Nt.current.useMemo(e,t)};fe.useReducer=function(e,t,r){return Nt.current.useReducer(e,t,r)};fe.useRef=function(e){return Nt.current.useRef(e)};fe.useState=function(e){return Nt.current.useState(e)};fe.useSyncExternalStore=function(e,t,r){return Nt.current.useSyncExternalStore(e,t,r)};fe.useTransition=function(){return Nt.current.useTransition()};fe.version="18.3.1";X$.exports=fe;var h=X$.exports;const m=Zm(h),MI=qD({__proto__:null,default:m},[h]);var iC={exports:{}},or={},aC={exports:{}},lC={};/**
  473. * @license React
  474. * scheduler.production.min.js
  475. *
  476. * Copyright (c) Facebook, Inc. and its affiliates.
  477. *
  478. * This source code is licensed under the MIT license found in the
  479. * LICENSE file in the root directory of this source tree.
  480. */(function(e){function t(P,B){var D=P.length;P.push(B);e:for(;0<D;){var z=D-1>>>1,V=P[z];if(0<o(V,B))P[z]=B,P[D]=V,D=z;else break e}}function r(P){return P.length===0?null:P[0]}function n(P){if(P.length===0)return null;var B=P[0],D=P.pop();if(D!==B){P[0]=D;e:for(var z=0,V=P.length,Z=V>>>1;z<Z;){var q=2*(z+1)-1,K=P[q],X=q+1,ee=P[X];if(0>o(K,D))X<V&&0>o(ee,K)?(P[z]=ee,P[X]=D,z=X):(P[z]=K,P[q]=D,z=q);else if(X<V&&0>o(ee,D))P[z]=ee,P[X]=D,z=X;else break e}}return B}function o(P,B){var D=P.sortIndex-B.sortIndex;return D!==0?D:P.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,y=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(P){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=P)n(u),B.sortIndex=B.expirationTime,t(s,B);else break;B=r(u)}}function w(P){if(b=!1,E(P),!y)if(r(s)!==null)y=!0,k($);else{var B=r(u);B!==null&&F(w,B.startTime-P)}}function $(P,B){y=!1,b&&(b=!1,g(T),T=-1),p=!0;var D=f;try{for(E(B),d=r(s);d!==null&&(!(d.expirationTime>B)||P&&!_());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var V=z(d.expirationTime<=B);B=e.unstable_now(),typeof V=="function"?d.callback=V:d===r(s)&&n(s),E(B)}else n(s);d=r(s)}if(d!==null)var Z=!0;else{var q=r(u);q!==null&&F(w,q.startTime-B),Z=!1}return Z}finally{d=null,f=D,p=!1}}var x=!1,C=null,T=-1,A=5,O=-1;function _(){return!(e.unstable_now()-O<A)}function I(){if(C!==null){var P=e.unstable_now();O=P;var B=!0;try{B=C(!0,P)}finally{B?L():(x=!1,C=null)}}else x=!1}var L;if(typeof v=="function")L=function(){v(I)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,U=M.port2;M.port1.onmessage=I,L=function(){U.postMessage(null)}}else L=function(){S(I,0)};function k(P){C=P,x||(x=!0,L())}function F(P,B){T=S(function(){P(e.unstable_now())},B)}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(P){P.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,k($))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(s)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var B=3;break;default:B=f}var D=f;f=B;try{return P()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,B){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var D=f;f=P;try{return B()}finally{f=D}},e.unstable_scheduleCallback=function(P,B,D){var z=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?z+D:z):D=z,P){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=D+V,P={id:c++,callback:B,priorityLevel:P,startTime:D,expirationTime:V,sortIndex:-1},D>z?(P.sortIndex=D,t(u,P),r(s)===null&&P===r(u)&&(b?(g(T),T=-1):b=!0,F(w,D-z))):(P.sortIndex=V,t(s,P),y||p||(y=!0,k($))),P},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(P){var B=f;return function(){var D=f;f=B;try{return P.apply(this,arguments)}finally{f=D}}}})(lC);aC.exports=lC;var BI=aC.exports;/**
  481. * @license React
  482. * react-dom.production.min.js
  483. *
  484. * Copyright (c) Facebook, Inc. and its affiliates.
  485. *
  486. * This source code is licensed under the MIT license found in the
  487. * LICENSE file in the root directory of this source tree.
  488. */var jI=h,nr=BI;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sC=new Set,Ll={};function si(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(Ll[e]=t,e=0;e<t.length;e++)sC.add(t[e])}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yh=Object.prototype.hasOwnProperty,HI=/^[: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]*$/,yv={},bv={};function UI(e){return Yh.call(bv,e)?!0:Yh.call(yv,e)?!1:HI.test(e)?bv[e]=!0:(yv[e]=!0,!1)}function zI(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function KI(e,t,r,n){if(t===null||typeof t>"u"||zI(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mt(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Mt(e,2,!1,e,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(e){gt[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var y0=/[\-:]([a-z])/g;function b0(e){return e[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(e){var t=e.replace(y0,b0);gt[t]=new Mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y0,b0);gt[t]=new Mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y0,b0);gt[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function v0(e,t,r,n){var o=gt.hasOwnProperty(t)?gt[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(KI(t,r,o,n)&&(r=null),n||o===null?UI(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Fn=jI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qs=Symbol.for("react.element"),Ai=Symbol.for("react.portal"),Ri=Symbol.for("react.fragment"),E0=Symbol.for("react.strict_mode"),qh=Symbol.for("react.profiler"),uC=Symbol.for("react.provider"),cC=Symbol.for("react.context"),S0=Symbol.for("react.forward_ref"),Xh=Symbol.for("react.suspense"),Jh=Symbol.for("react.suspense_list"),w0=Symbol.for("react.memo"),Gn=Symbol.for("react.lazy"),dC=Symbol.for("react.offscreen"),vv=Symbol.iterator;function Wa(e){return e===null||typeof e!="object"?null:(e=vv&&e[vv]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,Gf;function ul(e){if(Gf===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Gf=t&&t[1]||""}return`
  489. `+Gf+e}var Vf=!1;function Yf(e,t){if(!e||Vf)return"";Vf=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var o=u.stack.split(`
  490. `),i=n.stack.split(`
  491. `),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
  492. `+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Vf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ul(e):""}function WI(e){switch(e.tag){case 5:return ul(e.type);case 16:return ul("Lazy");case 13:return ul("Suspense");case 19:return ul("SuspenseList");case 0:case 2:case 15:return e=Yf(e.type,!1),e;case 11:return e=Yf(e.type.render,!1),e;case 1:return e=Yf(e.type,!0),e;default:return""}}function Qh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ri:return"Fragment";case Ai:return"Portal";case qh:return"Profiler";case E0:return"StrictMode";case Xh:return"Suspense";case Jh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cC:return(e.displayName||"Context")+".Consumer";case uC:return(e._context.displayName||"Context")+".Provider";case S0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case w0:return t=e.displayName||null,t!==null?t:Qh(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return Qh(e(t))}catch{}}return null}function GI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qh(t);case 8:return t===E0?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function VI(e){var t=fC(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){e._valueTracker||(e._valueTracker=VI(e))}function pC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=fC(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function vc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zh(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ev(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=uo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hC(e,t){t=t.checked,t!=null&&v0(e,"checked",t,!1)}function eg(e,t){hC(e,t);var r=uo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tg(e,t.type,r):t.hasOwnProperty("defaultValue")&&tg(e,t.type,uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sv(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function tg(e,t,r){(t!=="number"||vc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var cl=Array.isArray;function Ki(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+uo(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function rg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wv(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Q(92));if(cl(r)){if(1<r.length)throw Error(Q(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:uo(r)}}function gC(e,t){var r=uo(t.value),n=uo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function xv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mC(e){switch(e){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 ng(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mC(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Js,yC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Js=Js||document.createElement("div"),Js.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Js.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vl={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},YI=["Webkit","ms","Moz","O"];Object.keys(vl).forEach(function(e){YI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vl[t]=vl[e]})});function bC(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vl.hasOwnProperty(e)&&vl[e]?(""+t).trim():t+"px"}function vC(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=bC(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var qI=He({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 og(e,t){if(t){if(qI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function ig(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ag=null;function x0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lg=null,Wi=null,Gi=null;function $v(e){if(e=bs(e)){if(typeof lg!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=Td(t),lg(e.stateNode,e.type,t))}}function EC(e){Wi?Gi?Gi.push(e):Gi=[e]:Wi=e}function SC(){if(Wi){var e=Wi,t=Gi;if(Gi=Wi=null,$v(e),t)for(e=0;e<t.length;e++)$v(t[e])}}function wC(e,t){return e(t)}function xC(){}var qf=!1;function $C(e,t,r){if(qf)return e(t,r);qf=!0;try{return wC(e,t,r)}finally{qf=!1,(Wi!==null||Gi!==null)&&(xC(),SC())}}function Ml(e,t){var r=e.stateNode;if(r===null)return null;var n=Td(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Q(231,t,typeof r));return r}var sg=!1;if(An)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){sg=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{sg=!1}function XI(e,t,r,n,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var El=!1,Ec=null,Sc=!1,ug=null,JI={onError:function(e){El=!0,Ec=e}};function QI(e,t,r,n,o,i,a,l,s){El=!1,Ec=null,XI.apply(JI,arguments)}function ZI(e,t,r,n,o,i,a,l,s){if(QI.apply(this,arguments),El){if(El){var u=Ec;El=!1,Ec=null}else throw Error(Q(198));Sc||(Sc=!0,ug=u)}}function ui(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function CC(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Cv(e){if(ui(e)!==e)throw Error(Q(188))}function e8(e){var t=e.alternate;if(!t){if(t=ui(e),t===null)throw Error(Q(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return Cv(o),e;if(i===n)return Cv(o),t;i=i.sibling}throw Error(Q(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,l=o.child;l;){if(l===r){a=!0,r=o,n=i;break}if(l===n){a=!0,n=o,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,n=o;break}if(l===n){a=!0,n=i,r=o;break}l=l.sibling}if(!a)throw Error(Q(189))}}if(r.alternate!==n)throw Error(Q(190))}if(r.tag!==3)throw Error(Q(188));return r.stateNode.current===r?e:t}function _C(e){return e=e8(e),e!==null?TC(e):null}function TC(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=TC(e);if(t!==null)return t;e=e.sibling}return null}var OC=nr.unstable_scheduleCallback,_v=nr.unstable_cancelCallback,t8=nr.unstable_shouldYield,r8=nr.unstable_requestPaint,Ye=nr.unstable_now,n8=nr.unstable_getCurrentPriorityLevel,$0=nr.unstable_ImmediatePriority,AC=nr.unstable_UserBlockingPriority,wc=nr.unstable_NormalPriority,o8=nr.unstable_LowPriority,RC=nr.unstable_IdlePriority,xd=null,sn=null;function i8(e){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(xd,e,void 0,(e.current.flags&128)===128)}catch{}}var Nr=Math.clz32?Math.clz32:s8,a8=Math.log,l8=Math.LN2;function s8(e){return e>>>=0,e===0?32:31-(a8(e)/l8|0)|0}var Qs=64,Zs=4194304;function dl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=dl(l):(i&=a,i!==0&&(n=dl(i)))}else a=r&~o,a!==0?n=dl(a):i!==0&&(n=dl(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Nr(t),o=1<<r,n|=e[r],t&=~o;return n}function u8(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 c8(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Nr(i),l=1<<a,s=o[a];s===-1?(!(l&r)||l&n)&&(o[a]=u8(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function cg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function DC(){var e=Qs;return Qs<<=1,!(Qs&4194240)&&(Qs=64),e}function Xf(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ms(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nr(t),e[t]=r}function d8(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Nr(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function C0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Nr(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var _e=0;function PC(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kC,_0,FC,IC,LC,dg=!1,eu=[],to=null,ro=null,no=null,Bl=new Map,jl=new Map,qn=[],f8="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 Tv(e,t){switch(e){case"focusin":case"focusout":to=null;break;case"dragenter":case"dragleave":ro=null;break;case"mouseover":case"mouseout":no=null;break;case"pointerover":case"pointerout":Bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jl.delete(t.pointerId)}}function Va(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=bs(t),t!==null&&_0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function p8(e,t,r,n,o){switch(t){case"focusin":return to=Va(to,e,t,r,n,o),!0;case"dragenter":return ro=Va(ro,e,t,r,n,o),!0;case"mouseover":return no=Va(no,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Bl.set(i,Va(Bl.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,jl.set(i,Va(jl.get(i)||null,e,t,r,n,o)),!0}return!1}function NC(e){var t=Mo(e.target);if(t!==null){var r=ui(t);if(r!==null){if(t=r.tag,t===13){if(t=CC(r),t!==null){e.blockedOn=t,LC(e.priority,function(){FC(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Uu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=fg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);ag=n,r.target.dispatchEvent(n),ag=null}else return t=bs(r),t!==null&&_0(t),e.blockedOn=r,!1;t.shift()}return!0}function Ov(e,t,r){Uu(e)&&r.delete(t)}function h8(){dg=!1,to!==null&&Uu(to)&&(to=null),ro!==null&&Uu(ro)&&(ro=null),no!==null&&Uu(no)&&(no=null),Bl.forEach(Ov),jl.forEach(Ov)}function Ya(e,t){e.blockedOn===t&&(e.blockedOn=null,dg||(dg=!0,nr.unstable_scheduleCallback(nr.unstable_NormalPriority,h8)))}function Hl(e){function t(o){return Ya(o,e)}if(0<eu.length){Ya(eu[0],e);for(var r=1;r<eu.length;r++){var n=eu[r];n.blockedOn===e&&(n.blockedOn=null)}}for(to!==null&&Ya(to,e),ro!==null&&Ya(ro,e),no!==null&&Ya(no,e),Bl.forEach(t),jl.forEach(t),r=0;r<qn.length;r++)n=qn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<qn.length&&(r=qn[0],r.blockedOn===null);)NC(r),r.blockedOn===null&&qn.shift()}var Vi=Fn.ReactCurrentBatchConfig,$c=!0;function g8(e,t,r,n){var o=_e,i=Vi.transition;Vi.transition=null;try{_e=1,T0(e,t,r,n)}finally{_e=o,Vi.transition=i}}function m8(e,t,r,n){var o=_e,i=Vi.transition;Vi.transition=null;try{_e=4,T0(e,t,r,n)}finally{_e=o,Vi.transition=i}}function T0(e,t,r,n){if($c){var o=fg(e,t,r,n);if(o===null)ap(e,t,n,Cc,r),Tv(e,n);else if(p8(o,e,t,r,n))n.stopPropagation();else if(Tv(e,n),t&4&&-1<f8.indexOf(e)){for(;o!==null;){var i=bs(o);if(i!==null&&kC(i),i=fg(e,t,r,n),i===null&&ap(e,t,n,Cc,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else ap(e,t,n,null,r)}}var Cc=null;function fg(e,t,r,n){if(Cc=null,e=x0(n),e=Mo(e),e!==null)if(t=ui(e),t===null)e=null;else if(r=t.tag,r===13){if(e=CC(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Cc=e,null}function MC(e){switch(e){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(n8()){case $0:return 1;case AC:return 4;case wc:case o8:return 16;case RC:return 536870912;default:return 16}default:return 16}}var Qn=null,O0=null,zu=null;function BC(){if(zu)return zu;var e,t=O0,r=t.length,n,o="value"in Qn?Qn.value:Qn.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===o[i-n];n++);return zu=o.slice(e,1<n?1-n:void 0)}function Ku(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function tu(){return!0}function Av(){return!1}function ir(e){function t(r,n,o,i,a){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?tu:Av,this.isPropagationStopped=Av,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=tu)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=tu)},persist:function(){},isPersistent:tu}),t}var _a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},A0=ir(_a),ys=He({},_a,{view:0,detail:0}),y8=ir(ys),Jf,Qf,qa,$d=He({},ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:R0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==qa&&(qa&&e.type==="mousemove"?(Jf=e.screenX-qa.screenX,Qf=e.screenY-qa.screenY):Qf=Jf=0,qa=e),Jf)},movementY:function(e){return"movementY"in e?e.movementY:Qf}}),Rv=ir($d),b8=He({},$d,{dataTransfer:0}),v8=ir(b8),E8=He({},ys,{relatedTarget:0}),Zf=ir(E8),S8=He({},_a,{animationName:0,elapsedTime:0,pseudoElement:0}),w8=ir(S8),x8=He({},_a,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$8=ir(x8),C8=He({},_a,{data:0}),Dv=ir(C8),_8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T8={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"},O8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=O8[e])?!!t[e]:!1}function R0(){return A8}var R8=He({},ys,{key:function(e){if(e.key){var t=_8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ku(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?T8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:R0,charCode:function(e){return e.type==="keypress"?Ku(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ku(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D8=ir(R8),P8=He({},$d,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pv=ir(P8),k8=He({},ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:R0}),F8=ir(k8),I8=He({},_a,{propertyName:0,elapsedTime:0,pseudoElement:0}),L8=ir(I8),N8=He({},$d,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),M8=ir(N8),B8=[9,13,27,32],D0=An&&"CompositionEvent"in window,Sl=null;An&&"documentMode"in document&&(Sl=document.documentMode);var j8=An&&"TextEvent"in window&&!Sl,jC=An&&(!D0||Sl&&8<Sl&&11>=Sl),kv=" ",Fv=!1;function HC(e,t){switch(e){case"keyup":return B8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Di=!1;function H8(e,t){switch(e){case"compositionend":return UC(t);case"keypress":return t.which!==32?null:(Fv=!0,kv);case"textInput":return e=t.data,e===kv&&Fv?null:e;default:return null}}function U8(e,t){if(Di)return e==="compositionend"||!D0&&HC(e,t)?(e=BC(),zu=O0=Qn=null,Di=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jC&&t.locale!=="ko"?null:t.data;default:return null}}var z8={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 Iv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!z8[e.type]:t==="textarea"}function zC(e,t,r,n){EC(n),t=_c(t,"onChange"),0<t.length&&(r=new A0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var wl=null,Ul=null;function K8(e){e_(e,0)}function Cd(e){var t=Fi(e);if(pC(t))return e}function W8(e,t){if(e==="change")return t}var KC=!1;if(An){var ep;if(An){var tp="oninput"in document;if(!tp){var Lv=document.createElement("div");Lv.setAttribute("oninput","return;"),tp=typeof Lv.oninput=="function"}ep=tp}else ep=!1;KC=ep&&(!document.documentMode||9<document.documentMode)}function Nv(){wl&&(wl.detachEvent("onpropertychange",WC),Ul=wl=null)}function WC(e){if(e.propertyName==="value"&&Cd(Ul)){var t=[];zC(t,Ul,e,x0(e)),$C(K8,t)}}function G8(e,t,r){e==="focusin"?(Nv(),wl=t,Ul=r,wl.attachEvent("onpropertychange",WC)):e==="focusout"&&Nv()}function V8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cd(Ul)}function Y8(e,t){if(e==="click")return Cd(t)}function q8(e,t){if(e==="input"||e==="change")return Cd(t)}function X8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jr=typeof Object.is=="function"?Object.is:X8;function zl(e,t){if(jr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!Yh.call(t,o)||!jr(e[o],t[o]))return!1}return!0}function Mv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bv(e,t){var r=Mv(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Mv(r)}}function GC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?GC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function VC(){for(var e=window,t=vc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=vc(e.document)}return t}function P0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function J8(e){var t=VC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&GC(r.ownerDocument.documentElement,r)){if(n!==null&&P0(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Bv(r,i);var a=Bv(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Q8=An&&"documentMode"in document&&11>=document.documentMode,Pi=null,pg=null,xl=null,hg=!1;function jv(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;hg||Pi==null||Pi!==vc(n)||(n=Pi,"selectionStart"in n&&P0(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),xl&&zl(xl,n)||(xl=n,n=_c(pg,"onSelect"),0<n.length&&(t=new A0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Pi)))}function ru(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ki={animationend:ru("Animation","AnimationEnd"),animationiteration:ru("Animation","AnimationIteration"),animationstart:ru("Animation","AnimationStart"),transitionend:ru("Transition","TransitionEnd")},rp={},YC={};An&&(YC=document.createElement("div").style,"AnimationEvent"in window||(delete ki.animationend.animation,delete ki.animationiteration.animation,delete ki.animationstart.animation),"TransitionEvent"in window||delete ki.transitionend.transition);function _d(e){if(rp[e])return rp[e];if(!ki[e])return e;var t=ki[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in YC)return rp[e]=t[r];return e}var qC=_d("animationend"),XC=_d("animationiteration"),JC=_d("animationstart"),QC=_d("transitionend"),ZC=new Map,Hv="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 go(e,t){ZC.set(e,t),si(t,[e])}for(var np=0;np<Hv.length;np++){var op=Hv[np],Z8=op.toLowerCase(),e6=op[0].toUpperCase()+op.slice(1);go(Z8,"on"+e6)}go(qC,"onAnimationEnd");go(XC,"onAnimationIteration");go(JC,"onAnimationStart");go("dblclick","onDoubleClick");go("focusin","onFocus");go("focusout","onBlur");go(QC,"onTransitionEnd");na("onMouseEnter",["mouseout","mouseover"]);na("onMouseLeave",["mouseout","mouseover"]);na("onPointerEnter",["pointerout","pointerover"]);na("onPointerLeave",["pointerout","pointerover"]);si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));si("onBeforeInput",["compositionend","keypress","textInput","paste"]);si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fl="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(" "),t6=new Set("cancel close invalid load scroll toggle".split(" ").concat(fl));function Uv(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,ZI(n,t,void 0,e),e.currentTarget=null}function e_(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var l=n[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Uv(o,l,u),i=s}else for(a=0;a<n.length;a++){if(l=n[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Uv(o,l,u),i=s}}}if(Sc)throw e=ug,Sc=!1,ug=null,e}function Pe(e,t){var r=t[vg];r===void 0&&(r=t[vg]=new Set);var n=e+"__bubble";r.has(n)||(t_(t,e,2,!1),r.add(n))}function ip(e,t,r){var n=0;t&&(n|=4),t_(r,e,n,t)}var nu="_reactListening"+Math.random().toString(36).slice(2);function Kl(e){if(!e[nu]){e[nu]=!0,sC.forEach(function(r){r!=="selectionchange"&&(t6.has(r)||ip(r,!1,e),ip(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nu]||(t[nu]=!0,ip("selectionchange",!1,t))}}function t_(e,t,r,n){switch(MC(t)){case 1:var o=g8;break;case 4:o=m8;break;default:o=T0}r=o.bind(null,t,r,e),o=void 0,!sg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function ap(e,t,r,n,o){var i=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var l=n.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=n.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;l!==null;){if(a=Mo(l),a===null)return;if(s=a.tag,s===5||s===6){n=i=a;continue e}l=l.parentNode}}n=n.return}$C(function(){var u=i,c=x0(r),d=[];e:{var f=ZC.get(e);if(f!==void 0){var p=A0,y=e;switch(e){case"keypress":if(Ku(r)===0)break e;case"keydown":case"keyup":p=D8;break;case"focusin":y="focus",p=Zf;break;case"focusout":y="blur",p=Zf;break;case"beforeblur":case"afterblur":p=Zf;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Rv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=v8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=F8;break;case qC:case XC:case JC:p=w8;break;case QC:p=L8;break;case"scroll":p=y8;break;case"wheel":p=M8;break;case"copy":case"cut":case"paste":p=$8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Pv}var b=(t&4)!==0,S=!b&&e==="scroll",g=b?f!==null?f+"Capture":null:f;b=[];for(var v=u,E;v!==null;){E=v;var w=E.stateNode;if(E.tag===5&&w!==null&&(E=w,g!==null&&(w=Ml(v,g),w!=null&&b.push(Wl(v,w,E)))),S)break;v=v.return}0<b.length&&(f=new p(f,y,null,r,c),d.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&r!==ag&&(y=r.relatedTarget||r.fromElement)&&(Mo(y)||y[Rn]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(y=r.relatedTarget||r.toElement,p=u,y=y?Mo(y):null,y!==null&&(S=ui(y),y!==S||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(b=Rv,w="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=Pv,w="onPointerLeave",g="onPointerEnter",v="pointer"),S=p==null?f:Fi(p),E=y==null?f:Fi(y),f=new b(w,v+"leave",p,r,c),f.target=S,f.relatedTarget=E,w=null,Mo(c)===u&&(b=new b(g,v+"enter",y,r,c),b.target=E,b.relatedTarget=S,w=b),S=w,p&&y)t:{for(b=p,g=y,v=0,E=b;E;E=vi(E))v++;for(E=0,w=g;w;w=vi(w))E++;for(;0<v-E;)b=vi(b),v--;for(;0<E-v;)g=vi(g),E--;for(;v--;){if(b===g||g!==null&&b===g.alternate)break t;b=vi(b),g=vi(g)}b=null}else b=null;p!==null&&zv(d,f,p,b,!1),y!==null&&S!==null&&zv(d,S,y,b,!0)}}e:{if(f=u?Fi(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var $=W8;else if(Iv(f))if(KC)$=q8;else{$=V8;var x=G8}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&($=Y8);if($&&($=$(e,u))){zC(d,$,r,c);break e}x&&x(e,f,u),e==="focusout"&&(x=f._wrapperState)&&x.controlled&&f.type==="number"&&tg(f,"number",f.value)}switch(x=u?Fi(u):window,e){case"focusin":(Iv(x)||x.contentEditable==="true")&&(Pi=x,pg=u,xl=null);break;case"focusout":xl=pg=Pi=null;break;case"mousedown":hg=!0;break;case"contextmenu":case"mouseup":case"dragend":hg=!1,jv(d,r,c);break;case"selectionchange":if(Q8)break;case"keydown":case"keyup":jv(d,r,c)}var C;if(D0)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Di?HC(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(jC&&r.locale!=="ko"&&(Di||T!=="onCompositionStart"?T==="onCompositionEnd"&&Di&&(C=BC()):(Qn=c,O0="value"in Qn?Qn.value:Qn.textContent,Di=!0)),x=_c(u,T),0<x.length&&(T=new Dv(T,e,null,r,c),d.push({event:T,listeners:x}),C?T.data=C:(C=UC(r),C!==null&&(T.data=C)))),(C=j8?H8(e,r):U8(e,r))&&(u=_c(u,"onBeforeInput"),0<u.length&&(c=new Dv("onBeforeInput","beforeinput",null,r,c),d.push({event:c,listeners:u}),c.data=C))}e_(d,t)})}function Wl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function _c(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ml(e,r),i!=null&&n.unshift(Wl(e,i,o)),i=Ml(e,t),i!=null&&n.push(Wl(e,i,o))),e=e.return}return n}function vi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zv(e,t,r,n,o){for(var i=t._reactName,a=[];r!==null&&r!==n;){var l=r,s=l.alternate,u=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&u!==null&&(l=u,o?(s=Ml(r,i),s!=null&&a.unshift(Wl(r,s,l))):o||(s=Ml(r,i),s!=null&&a.push(Wl(r,s,l)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var r6=/\r\n?/g,n6=/\u0000|\uFFFD/g;function Kv(e){return(typeof e=="string"?e:""+e).replace(r6,`
  493. `).replace(n6,"")}function ou(e,t,r){if(t=Kv(t),Kv(e)!==t&&r)throw Error(Q(425))}function Tc(){}var gg=null,mg=null;function yg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bg=typeof setTimeout=="function"?setTimeout:void 0,o6=typeof clearTimeout=="function"?clearTimeout:void 0,Wv=typeof Promise=="function"?Promise:void 0,i6=typeof queueMicrotask=="function"?queueMicrotask:typeof Wv<"u"?function(e){return Wv.resolve(null).then(e).catch(a6)}:bg;function a6(e){setTimeout(function(){throw e})}function lp(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),Hl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Hl(t)}function oo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Gv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ta=Math.random().toString(36).slice(2),en="__reactFiber$"+Ta,Gl="__reactProps$"+Ta,Rn="__reactContainer$"+Ta,vg="__reactEvents$"+Ta,l6="__reactListeners$"+Ta,s6="__reactHandles$"+Ta;function Mo(e){var t=e[en];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Rn]||r[en]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Gv(e);e!==null;){if(r=e[en])return r;e=Gv(e)}return t}e=r,r=e.parentNode}return null}function bs(e){return e=e[en]||e[Rn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function Td(e){return e[Gl]||null}var Eg=[],Ii=-1;function mo(e){return{current:e}}function Fe(e){0>Ii||(e.current=Eg[Ii],Eg[Ii]=null,Ii--)}function Re(e,t){Ii++,Eg[Ii]=e.current,e.current=t}var co={},_t=mo(co),Wt=mo(!1),qo=co;function oa(e,t){var r=e.type.contextTypes;if(!r)return co;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Gt(e){return e=e.childContextTypes,e!=null}function Oc(){Fe(Wt),Fe(_t)}function Vv(e,t,r){if(_t.current!==co)throw Error(Q(168));Re(_t,t),Re(Wt,r)}function r_(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Q(108,GI(e)||"Unknown",o));return He({},r,n)}function Ac(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,qo=_t.current,Re(_t,e),Re(Wt,Wt.current),!0}function Yv(e,t,r){var n=e.stateNode;if(!n)throw Error(Q(169));r?(e=r_(e,t,qo),n.__reactInternalMemoizedMergedChildContext=e,Fe(Wt),Fe(_t),Re(_t,e)):Fe(Wt),Re(Wt,r)}var Sn=null,Od=!1,sp=!1;function n_(e){Sn===null?Sn=[e]:Sn.push(e)}function u6(e){Od=!0,n_(e)}function yo(){if(!sp&&Sn!==null){sp=!0;var e=0,t=_e;try{var r=Sn;for(_e=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Sn=null,Od=!1}catch(o){throw Sn!==null&&(Sn=Sn.slice(e+1)),OC($0,yo),o}finally{_e=t,sp=!1}}return null}var Li=[],Ni=0,Rc=null,Dc=0,mr=[],yr=0,Xo=null,Cn=1,_n="";function Ro(e,t){Li[Ni++]=Dc,Li[Ni++]=Rc,Rc=e,Dc=t}function o_(e,t,r){mr[yr++]=Cn,mr[yr++]=_n,mr[yr++]=Xo,Xo=e;var n=Cn;e=_n;var o=32-Nr(n)-1;n&=~(1<<o),r+=1;var i=32-Nr(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,Cn=1<<32-Nr(t)+o|r<<o|n,_n=i+e}else Cn=1<<i|r<<o|n,_n=e}function k0(e){e.return!==null&&(Ro(e,1),o_(e,1,0))}function F0(e){for(;e===Rc;)Rc=Li[--Ni],Li[Ni]=null,Dc=Li[--Ni],Li[Ni]=null;for(;e===Xo;)Xo=mr[--yr],mr[yr]=null,_n=mr[--yr],mr[yr]=null,Cn=mr[--yr],mr[yr]=null}var tr=null,er=null,Ne=!1,Fr=null;function i_(e,t){var r=br(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function qv(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,tr=e,er=oo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tr=e,er=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Xo!==null?{id:Cn,overflow:_n}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=br(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,tr=e,er=null,!0):!1;default:return!1}}function Sg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wg(e){if(Ne){var t=er;if(t){var r=t;if(!qv(e,t)){if(Sg(e))throw Error(Q(418));t=oo(r.nextSibling);var n=tr;t&&qv(e,t)?i_(n,r):(e.flags=e.flags&-4097|2,Ne=!1,tr=e)}}else{if(Sg(e))throw Error(Q(418));e.flags=e.flags&-4097|2,Ne=!1,tr=e}}}function Xv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tr=e}function iu(e){if(e!==tr)return!1;if(!Ne)return Xv(e),Ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yg(e.type,e.memoizedProps)),t&&(t=er)){if(Sg(e))throw a_(),Error(Q(418));for(;t;)i_(e,t),t=oo(t.nextSibling)}if(Xv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){er=oo(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}er=null}}else er=tr?oo(e.stateNode.nextSibling):null;return!0}function a_(){for(var e=er;e;)e=oo(e.nextSibling)}function ia(){er=tr=null,Ne=!1}function I0(e){Fr===null?Fr=[e]:Fr.push(e)}var c6=Fn.ReactCurrentBatchConfig;function Xa(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Q(309));var n=r.stateNode}if(!n)throw Error(Q(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(Q(284));if(!r._owner)throw Error(Q(290,e))}return e}function au(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jv(e){var t=e._init;return t(e._payload)}function l_(e){function t(g,v){if(e){var E=g.deletions;E===null?(g.deletions=[v],g.flags|=16):E.push(v)}}function r(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function n(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function o(g,v){return g=so(g,v),g.index=0,g.sibling=null,g}function i(g,v,E){return g.index=E,e?(E=g.alternate,E!==null?(E=E.index,E<v?(g.flags|=2,v):E):(g.flags|=2,v)):(g.flags|=1048576,v)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,v,E,w){return v===null||v.tag!==6?(v=gp(E,g.mode,w),v.return=g,v):(v=o(v,E),v.return=g,v)}function s(g,v,E,w){var $=E.type;return $===Ri?c(g,v,E.props.children,w,E.key):v!==null&&(v.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Gn&&Jv($)===v.type)?(w=o(v,E.props),w.ref=Xa(g,v,E),w.return=g,w):(w=Ju(E.type,E.key,E.props,null,g.mode,w),w.ref=Xa(g,v,E),w.return=g,w)}function u(g,v,E,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==E.containerInfo||v.stateNode.implementation!==E.implementation?(v=mp(E,g.mode,w),v.return=g,v):(v=o(v,E.children||[]),v.return=g,v)}function c(g,v,E,w,$){return v===null||v.tag!==7?(v=Ko(E,g.mode,w,$),v.return=g,v):(v=o(v,E),v.return=g,v)}function d(g,v,E){if(typeof v=="string"&&v!==""||typeof v=="number")return v=gp(""+v,g.mode,E),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case qs:return E=Ju(v.type,v.key,v.props,null,g.mode,E),E.ref=Xa(g,null,v),E.return=g,E;case Ai:return v=mp(v,g.mode,E),v.return=g,v;case Gn:var w=v._init;return d(g,w(v._payload),E)}if(cl(v)||Wa(v))return v=Ko(v,g.mode,E,null),v.return=g,v;au(g,v)}return null}function f(g,v,E,w){var $=v!==null?v.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return $!==null?null:l(g,v,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case qs:return E.key===$?s(g,v,E,w):null;case Ai:return E.key===$?u(g,v,E,w):null;case Gn:return $=E._init,f(g,v,$(E._payload),w)}if(cl(E)||Wa(E))return $!==null?null:c(g,v,E,w,null);au(g,E)}return null}function p(g,v,E,w,$){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(E)||null,l(v,g,""+w,$);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case qs:return g=g.get(w.key===null?E:w.key)||null,s(v,g,w,$);case Ai:return g=g.get(w.key===null?E:w.key)||null,u(v,g,w,$);case Gn:var x=w._init;return p(g,v,E,x(w._payload),$)}if(cl(w)||Wa(w))return g=g.get(E)||null,c(v,g,w,$,null);au(v,w)}return null}function y(g,v,E,w){for(var $=null,x=null,C=v,T=v=0,A=null;C!==null&&T<E.length;T++){C.index>T?(A=C,C=null):A=C.sibling;var O=f(g,C,E[T],w);if(O===null){C===null&&(C=A);break}e&&C&&O.alternate===null&&t(g,C),v=i(O,v,T),x===null?$=O:x.sibling=O,x=O,C=A}if(T===E.length)return r(g,C),Ne&&Ro(g,T),$;if(C===null){for(;T<E.length;T++)C=d(g,E[T],w),C!==null&&(v=i(C,v,T),x===null?$=C:x.sibling=C,x=C);return Ne&&Ro(g,T),$}for(C=n(g,C);T<E.length;T++)A=p(C,g,T,E[T],w),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?T:A.key),v=i(A,v,T),x===null?$=A:x.sibling=A,x=A);return e&&C.forEach(function(_){return t(g,_)}),Ne&&Ro(g,T),$}function b(g,v,E,w){var $=Wa(E);if(typeof $!="function")throw Error(Q(150));if(E=$.call(E),E==null)throw Error(Q(151));for(var x=$=null,C=v,T=v=0,A=null,O=E.next();C!==null&&!O.done;T++,O=E.next()){C.index>T?(A=C,C=null):A=C.sibling;var _=f(g,C,O.value,w);if(_===null){C===null&&(C=A);break}e&&C&&_.alternate===null&&t(g,C),v=i(_,v,T),x===null?$=_:x.sibling=_,x=_,C=A}if(O.done)return r(g,C),Ne&&Ro(g,T),$;if(C===null){for(;!O.done;T++,O=E.next())O=d(g,O.value,w),O!==null&&(v=i(O,v,T),x===null?$=O:x.sibling=O,x=O);return Ne&&Ro(g,T),$}for(C=n(g,C);!O.done;T++,O=E.next())O=p(C,g,T,O.value,w),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?T:O.key),v=i(O,v,T),x===null?$=O:x.sibling=O,x=O);return e&&C.forEach(function(I){return t(g,I)}),Ne&&Ro(g,T),$}function S(g,v,E,w){if(typeof E=="object"&&E!==null&&E.type===Ri&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case qs:e:{for(var $=E.key,x=v;x!==null;){if(x.key===$){if($=E.type,$===Ri){if(x.tag===7){r(g,x.sibling),v=o(x,E.props.children),v.return=g,g=v;break e}}else if(x.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Gn&&Jv($)===x.type){r(g,x.sibling),v=o(x,E.props),v.ref=Xa(g,x,E),v.return=g,g=v;break e}r(g,x);break}else t(g,x);x=x.sibling}E.type===Ri?(v=Ko(E.props.children,g.mode,w,E.key),v.return=g,g=v):(w=Ju(E.type,E.key,E.props,null,g.mode,w),w.ref=Xa(g,v,E),w.return=g,g=w)}return a(g);case Ai:e:{for(x=E.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){r(g,v.sibling),v=o(v,E.children||[]),v.return=g,g=v;break e}else{r(g,v);break}else t(g,v);v=v.sibling}v=mp(E,g.mode,w),v.return=g,g=v}return a(g);case Gn:return x=E._init,S(g,v,x(E._payload),w)}if(cl(E))return y(g,v,E,w);if(Wa(E))return b(g,v,E,w);au(g,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,v!==null&&v.tag===6?(r(g,v.sibling),v=o(v,E),v.return=g,g=v):(r(g,v),v=gp(E,g.mode,w),v.return=g,g=v),a(g)):r(g,v)}return S}var aa=l_(!0),s_=l_(!1),Pc=mo(null),kc=null,Mi=null,L0=null;function N0(){L0=Mi=kc=null}function M0(e){var t=Pc.current;Fe(Pc),e._currentValue=t}function xg(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Yi(e,t){kc=e,L0=Mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(zt=!0),e.firstContext=null)}function wr(e){var t=e._currentValue;if(L0!==e)if(e={context:e,memoizedValue:t,next:null},Mi===null){if(kc===null)throw Error(Q(308));Mi=e,kc.dependencies={lanes:0,firstContext:e}}else Mi=Mi.next=e;return t}var Bo=null;function B0(e){Bo===null?Bo=[e]:Bo.push(e)}function u_(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,B0(t)):(r.next=o.next,o.next=r),t.interleaved=r,Dn(e,n)}function Dn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Vn=!1;function j0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function io(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ye&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Dn(e,r)}return o=n.interleaved,o===null?(t.next=t,B0(n)):(t.next=o.next,o.next=t),n.interleaved=t,Dn(e,r)}function Wu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,C0(e,r)}}function Qv(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Fc(e,t,r,n){var o=e.updateQueue;Vn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==a&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(i!==null){var d=o.baseState;a=0,c=u=s=null,l=i;do{var f=l.lane,p=l.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(f=t,p=r,b.tag){case 1:if(y=b.payload,typeof y=="function"){d=y.call(p,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,f=typeof y=="function"?y.call(p,d,f):y,f==null)break e;d=He({},d,f);break e;case 2:Vn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,s=d):c=c.next=p,a|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Qo|=a,e.lanes=a,e.memoizedState=d}}function Zv(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(Q(191,o));o.call(n)}}}var vs={},un=mo(vs),Vl=mo(vs),Yl=mo(vs);function jo(e){if(e===vs)throw Error(Q(174));return e}function H0(e,t){switch(Re(Yl,t),Re(Vl,e),Re(un,vs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ng(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ng(t,e)}Fe(un),Re(un,t)}function la(){Fe(un),Fe(Vl),Fe(Yl)}function d_(e){jo(Yl.current);var t=jo(un.current),r=ng(t,e.type);t!==r&&(Re(Vl,e),Re(un,r))}function U0(e){Vl.current===e&&(Fe(un),Fe(Vl))}var Me=mo(0);function Ic(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var up=[];function z0(){for(var e=0;e<up.length;e++)up[e]._workInProgressVersionPrimary=null;up.length=0}var Gu=Fn.ReactCurrentDispatcher,cp=Fn.ReactCurrentBatchConfig,Jo=0,je=null,nt=null,at=null,Lc=!1,$l=!1,ql=0,d6=0;function vt(){throw Error(Q(321))}function K0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!jr(e[r],t[r]))return!1;return!0}function W0(e,t,r,n,o,i){if(Jo=i,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gu.current=e===null||e.memoizedState===null?g6:m6,e=r(n,o),$l){i=0;do{if($l=!1,ql=0,25<=i)throw Error(Q(301));i+=1,at=nt=null,t.updateQueue=null,Gu.current=y6,e=r(n,o)}while($l)}if(Gu.current=Nc,t=nt!==null&&nt.next!==null,Jo=0,at=nt=je=null,Lc=!1,t)throw Error(Q(300));return e}function G0(){var e=ql!==0;return ql=0,e}function Jr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?je.memoizedState=at=e:at=at.next=e,at}function xr(){if(nt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=at===null?je.memoizedState:at.next;if(t!==null)at=t,nt=e;else{if(e===null)throw Error(Q(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},at===null?je.memoizedState=at=e:at=at.next=e}return at}function Xl(e,t){return typeof t=="function"?t(e):t}function dp(e){var t=xr(),r=t.queue;if(r===null)throw Error(Q(311));r.lastRenderedReducer=e;var n=nt,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Jo&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=d,a=n):s=s.next=d,je.lanes|=c,Qo|=c}u=u.next}while(u!==null&&u!==i);s===null?a=n:s.next=l,jr(n,t.memoizedState)||(zt=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=s,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,je.lanes|=i,Qo|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function fp(e){var t=xr(),r=t.queue;if(r===null)throw Error(Q(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);jr(i,t.memoizedState)||(zt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function f_(){}function p_(e,t){var r=je,n=xr(),o=t(),i=!jr(n.memoizedState,o);if(i&&(n.memoizedState=o,zt=!0),n=n.queue,V0(m_.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||at!==null&&at.memoizedState.tag&1){if(r.flags|=2048,Jl(9,g_.bind(null,r,n,o,t),void 0,null),lt===null)throw Error(Q(349));Jo&30||h_(r,t,o)}return o}function h_(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function g_(e,t,r,n){t.value=r,t.getSnapshot=n,y_(t)&&b_(e)}function m_(e,t,r){return r(function(){y_(t)&&b_(e)})}function y_(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!jr(e,r)}catch{return!0}}function b_(e){var t=Dn(e,1);t!==null&&Mr(t,e,1,-1)}function eE(e){var t=Jr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:e},t.queue=e,e=e.dispatch=h6.bind(null,je,e),[t.memoizedState,e]}function Jl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function v_(){return xr().memoizedState}function Vu(e,t,r,n){var o=Jr();je.flags|=e,o.memoizedState=Jl(1|t,r,void 0,n===void 0?null:n)}function Ad(e,t,r,n){var o=xr();n=n===void 0?null:n;var i=void 0;if(nt!==null){var a=nt.memoizedState;if(i=a.destroy,n!==null&&K0(n,a.deps)){o.memoizedState=Jl(t,r,i,n);return}}je.flags|=e,o.memoizedState=Jl(1|t,r,i,n)}function tE(e,t){return Vu(8390656,8,e,t)}function V0(e,t){return Ad(2048,8,e,t)}function E_(e,t){return Ad(4,2,e,t)}function S_(e,t){return Ad(4,4,e,t)}function w_(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function x_(e,t,r){return r=r!=null?r.concat([e]):null,Ad(4,4,w_.bind(null,t,e),r)}function Y0(){}function $_(e,t){var r=xr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&K0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function C_(e,t){var r=xr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&K0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function __(e,t,r){return Jo&21?(jr(r,t)||(r=DC(),je.lanes|=r,Qo|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,zt=!0),e.memoizedState=r)}function f6(e,t){var r=_e;_e=r!==0&&4>r?r:4,e(!0);var n=cp.transition;cp.transition={};try{e(!1),t()}finally{_e=r,cp.transition=n}}function T_(){return xr().memoizedState}function p6(e,t,r){var n=lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},O_(e))A_(t,r);else if(r=u_(e,t,r,n),r!==null){var o=It();Mr(r,e,n,o),R_(r,t,n)}}function h6(e,t,r){var n=lo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(O_(e))A_(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,jr(l,a)){var s=t.interleaved;s===null?(o.next=o,B0(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=u_(e,t,o,n),r!==null&&(o=It(),Mr(r,e,n,o),R_(r,t,n))}}function O_(e){var t=e.alternate;return e===je||t!==null&&t===je}function A_(e,t){$l=Lc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function R_(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,C0(e,r)}}var Nc={readContext:wr,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useInsertionEffect:vt,useLayoutEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useMutableSource:vt,useSyncExternalStore:vt,useId:vt,unstable_isNewReconciler:!1},g6={readContext:wr,useCallback:function(e,t){return Jr().memoizedState=[e,t===void 0?null:t],e},useContext:wr,useEffect:tE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Vu(4194308,4,w_.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vu(4,2,e,t)},useMemo:function(e,t){var r=Jr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Jr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=p6.bind(null,je,e),[n.memoizedState,e]},useRef:function(e){var t=Jr();return e={current:e},t.memoizedState=e},useState:eE,useDebugValue:Y0,useDeferredValue:function(e){return Jr().memoizedState=e},useTransition:function(){var e=eE(!1),t=e[0];return e=f6.bind(null,e[1]),Jr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=je,o=Jr();if(Ne){if(r===void 0)throw Error(Q(407));r=r()}else{if(r=t(),lt===null)throw Error(Q(349));Jo&30||h_(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,tE(m_.bind(null,n,i,e),[e]),n.flags|=2048,Jl(9,g_.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Jr(),t=lt.identifierPrefix;if(Ne){var r=_n,n=Cn;r=(n&~(1<<32-Nr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ql++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=d6++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},m6={readContext:wr,useCallback:$_,useContext:wr,useEffect:V0,useImperativeHandle:x_,useInsertionEffect:E_,useLayoutEffect:S_,useMemo:C_,useReducer:dp,useRef:v_,useState:function(){return dp(Xl)},useDebugValue:Y0,useDeferredValue:function(e){var t=xr();return __(t,nt.memoizedState,e)},useTransition:function(){var e=dp(Xl)[0],t=xr().memoizedState;return[e,t]},useMutableSource:f_,useSyncExternalStore:p_,useId:T_,unstable_isNewReconciler:!1},y6={readContext:wr,useCallback:$_,useContext:wr,useEffect:V0,useImperativeHandle:x_,useInsertionEffect:E_,useLayoutEffect:S_,useMemo:C_,useReducer:fp,useRef:v_,useState:function(){return fp(Xl)},useDebugValue:Y0,useDeferredValue:function(e){var t=xr();return nt===null?t.memoizedState=e:__(t,nt.memoizedState,e)},useTransition:function(){var e=fp(Xl)[0],t=xr().memoizedState;return[e,t]},useMutableSource:f_,useSyncExternalStore:p_,useId:T_,unstable_isNewReconciler:!1};function Ar(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function $g(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:He({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Rd={isMounted:function(e){return(e=e._reactInternals)?ui(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=It(),o=lo(e),i=Tn(n,o);i.payload=t,r!=null&&(i.callback=r),t=io(e,i,o),t!==null&&(Mr(t,e,o,n),Wu(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=It(),o=lo(e),i=Tn(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=io(e,i,o),t!==null&&(Mr(t,e,o,n),Wu(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=It(),n=lo(e),o=Tn(r,n);o.tag=2,t!=null&&(o.callback=t),t=io(e,o,n),t!==null&&(Mr(t,e,n,r),Wu(t,e,n))}};function rE(e,t,r,n,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,a):t.prototype&&t.prototype.isPureReactComponent?!zl(r,n)||!zl(o,i):!0}function D_(e,t,r){var n=!1,o=co,i=t.contextType;return typeof i=="object"&&i!==null?i=wr(i):(o=Gt(t)?qo:_t.current,n=t.contextTypes,i=(n=n!=null)?oa(e,o):co),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Rd,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function nE(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Rd.enqueueReplaceState(t,t.state,null)}function Cg(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},j0(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=wr(i):(i=Gt(t)?qo:_t.current,o.context=oa(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&($g(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Rd.enqueueReplaceState(o,o.state,null),Fc(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function sa(e,t){try{var r="",n=t;do r+=WI(n),n=n.return;while(n);var o=r}catch(i){o=`
  494. Error generating stack: `+i.message+`
  495. `+i.stack}return{value:e,source:t,stack:o,digest:null}}function pp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function _g(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var b6=typeof WeakMap=="function"?WeakMap:Map;function P_(e,t,r){r=Tn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Bc||(Bc=!0,Lg=n),_g(e,t)},r}function k_(e,t,r){r=Tn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){_g(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){_g(e,t),typeof n!="function"&&(ao===null?ao=new Set([this]):ao.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function oE(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new b6;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=P6.bind(null,e,t,r),t.then(e,e))}function iE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function aE(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Tn(-1,1),t.tag=2,io(r,t,1))),r.lanes|=1),e)}var v6=Fn.ReactCurrentOwner,zt=!1;function Ft(e,t,r,n){t.child=e===null?s_(t,null,r,n):aa(t,e.child,r,n)}function lE(e,t,r,n,o){r=r.render;var i=t.ref;return Yi(t,o),n=W0(e,t,r,n,i,o),r=G0(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pn(e,t,o)):(Ne&&r&&k0(t),t.flags|=1,Ft(e,t,n,o),t.child)}function sE(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!ry(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,F_(e,t,i,n,o)):(e=Ju(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:zl,r(a,n)&&e.ref===t.ref)return Pn(e,t,o)}return t.flags|=1,e=so(i,n),e.ref=t.ref,e.return=t,t.child=e}function F_(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(zl(i,n)&&e.ref===t.ref)if(zt=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(zt=!0);else return t.lanes=e.lanes,Pn(e,t,o)}return Tg(e,t,r,n,o)}function I_(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Re(ji,Qt),Qt|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Re(ji,Qt),Qt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Re(ji,Qt),Qt|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Re(ji,Qt),Qt|=n;return Ft(e,t,o,r),t.child}function L_(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Tg(e,t,r,n,o){var i=Gt(r)?qo:_t.current;return i=oa(t,i),Yi(t,o),r=W0(e,t,r,n,i,o),n=G0(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pn(e,t,o)):(Ne&&n&&k0(t),t.flags|=1,Ft(e,t,r,o),t.child)}function uE(e,t,r,n,o){if(Gt(r)){var i=!0;Ac(t)}else i=!1;if(Yi(t,o),t.stateNode===null)Yu(e,t),D_(t,r,n),Cg(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=wr(u):(u=Gt(r)?qo:_t.current,u=oa(t,u));var c=r.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==n||s!==u)&&nE(t,a,n,u),Vn=!1;var f=t.memoizedState;a.state=f,Fc(t,n,a,o),s=t.memoizedState,l!==n||f!==s||Wt.current||Vn?(typeof c=="function"&&($g(t,r,c,n),s=t.memoizedState),(l=Vn||rE(t,r,l,n,f,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),a.props=n,a.state=s,a.context=u,n=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,c_(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ar(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=wr(s):(s=Gt(r)?qo:_t.current,s=oa(t,s));var p=r.getDerivedStateFromProps;(c=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||f!==s)&&nE(t,a,n,s),Vn=!1,f=t.memoizedState,a.state=f,Fc(t,n,a,o);var y=t.memoizedState;l!==d||f!==y||Wt.current||Vn?(typeof p=="function"&&($g(t,r,p,n),y=t.memoizedState),(u=Vn||rE(t,r,u,n,f,y,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,y,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,y,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=y),a.props=n,a.state=y,a.context=s,n=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Og(e,t,r,n,i,o)}function Og(e,t,r,n,o,i){L_(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&Yv(t,r,!1),Pn(e,t,i);n=t.stateNode,v6.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=aa(t,e.child,null,i),t.child=aa(t,null,l,i)):Ft(e,t,l,i),t.memoizedState=n.state,o&&Yv(t,r,!0),t.child}function N_(e){var t=e.stateNode;t.pendingContext?Vv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vv(e,t.context,!1),H0(e,t.containerInfo)}function cE(e,t,r,n,o){return ia(),I0(o),t.flags|=256,Ft(e,t,r,n),t.child}var Ag={dehydrated:null,treeContext:null,retryLane:0};function Rg(e){return{baseLanes:e,cachePool:null,transitions:null}}function M_(e,t,r){var n=t.pendingProps,o=Me.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Re(Me,o&1),e===null)return wg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=kd(a,n,0,null),e=Ko(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Rg(r),t.memoizedState=Ag,e):q0(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return E6(e,t,a,n,l,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:n.children};return!(a&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=so(o,s),n.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=so(l,i):(i=Ko(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?Rg(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=Ag,n}return i=e.child,e=i.sibling,n=so(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function q0(e,t){return t=kd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lu(e,t,r,n){return n!==null&&I0(n),aa(t,e.child,null,r),e=q0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function E6(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=pp(Error(Q(422))),lu(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=kd({mode:"visible",children:n.children},o,0,null),i=Ko(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&aa(t,e.child,null,a),t.child.memoizedState=Rg(a),t.memoizedState=Ag,i);if(!(t.mode&1))return lu(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(Q(419)),n=pp(i,n,void 0),lu(e,t,a,n)}if(l=(a&e.childLanes)!==0,zt||l){if(n=lt,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Dn(e,o),Mr(n,e,o,-1))}return ty(),n=pp(Error(Q(421))),lu(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=k6.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,er=oo(o.nextSibling),tr=t,Ne=!0,Fr=null,e!==null&&(mr[yr++]=Cn,mr[yr++]=_n,mr[yr++]=Xo,Cn=e.id,_n=e.overflow,Xo=t),t=q0(t,n.children),t.flags|=4096,t)}function dE(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),xg(e.return,t,r)}function hp(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function B_(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Ft(e,t,n.children,r),n=Me.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dE(e,r,t);else if(e.tag===19)dE(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Re(Me,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Ic(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),hp(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ic(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}hp(t,!0,r,null,i);break;case"together":hp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Qo|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,r=so(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=so(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function S6(e,t,r){switch(t.tag){case 3:N_(t),ia();break;case 5:d_(t);break;case 1:Gt(t.type)&&Ac(t);break;case 4:H0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Re(Pc,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Re(Me,Me.current&1),t.flags|=128,null):r&t.child.childLanes?M_(e,t,r):(Re(Me,Me.current&1),e=Pn(e,t,r),e!==null?e.sibling:null);Re(Me,Me.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return B_(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Re(Me,Me.current),n)break;return null;case 22:case 23:return t.lanes=0,I_(e,t,r)}return Pn(e,t,r)}var j_,Dg,H_,U_;j_=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Dg=function(){};H_=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,jo(un.current);var i=null;switch(r){case"input":o=Zh(e,o),n=Zh(e,n),i=[];break;case"select":o=He({},o,{value:void 0}),n=He({},n,{value:void 0}),i=[];break;case"textarea":o=rg(e,o),n=rg(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Tc)}og(r,n);var a;r=null;for(u in o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ll.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var s=n[u];if(l=o!=null?o[u]:void 0,n.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(u,r)),r=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ll.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Pe("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};U_=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ja(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function w6(e,t,r){var n=t.pendingProps;switch(F0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return Gt(t.type)&&Oc(),Et(t),null;case 3:return n=t.stateNode,la(),Fe(Wt),Fe(_t),z0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(iu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fr!==null&&(Bg(Fr),Fr=null))),Dg(e,t),Et(t),null;case 5:U0(t);var o=jo(Yl.current);if(r=t.type,e!==null&&t.stateNode!=null)H_(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Q(166));return Et(t),null}if(e=jo(un.current),iu(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[en]=t,n[Gl]=i,e=(t.mode&1)!==0,r){case"dialog":Pe("cancel",n),Pe("close",n);break;case"iframe":case"object":case"embed":Pe("load",n);break;case"video":case"audio":for(o=0;o<fl.length;o++)Pe(fl[o],n);break;case"source":Pe("error",n);break;case"img":case"image":case"link":Pe("error",n),Pe("load",n);break;case"details":Pe("toggle",n);break;case"input":Ev(n,i),Pe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Pe("invalid",n);break;case"textarea":wv(n,i),Pe("invalid",n)}og(r,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&ou(n.textContent,l,e),o=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&ou(n.textContent,l,e),o=["children",""+l]):Ll.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Pe("scroll",n)}switch(r){case"input":Xs(n),Sv(n,i,!0);break;case"textarea":Xs(n),xv(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Tc)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mC(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[en]=t,e[Gl]=n,j_(e,t,!1,!1),t.stateNode=e;e:{switch(a=ig(r,n),r){case"dialog":Pe("cancel",e),Pe("close",e),o=n;break;case"iframe":case"object":case"embed":Pe("load",e),o=n;break;case"video":case"audio":for(o=0;o<fl.length;o++)Pe(fl[o],e);o=n;break;case"source":Pe("error",e),o=n;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),o=n;break;case"details":Pe("toggle",e),o=n;break;case"input":Ev(e,n),o=Zh(e,n),Pe("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=He({},n,{value:void 0}),Pe("invalid",e);break;case"textarea":wv(e,n),o=rg(e,n),Pe("invalid",e);break;default:o=n}og(r,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?vC(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&yC(e,s)):i==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&Nl(e,s):typeof s=="number"&&Nl(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ll.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Pe("scroll",e):s!=null&&v0(e,i,s,a))}switch(r){case"input":Xs(e),Sv(e,n,!1);break;case"textarea":Xs(e),xv(e);break;case"option":n.value!=null&&e.setAttribute("value",""+uo(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Ki(e,!!n.multiple,i,!1):n.defaultValue!=null&&Ki(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Tc)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Et(t),null;case 6:if(e&&t.stateNode!=null)U_(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Q(166));if(r=jo(Yl.current),jo(un.current),iu(t)){if(n=t.stateNode,r=t.memoizedProps,n[en]=t,(i=n.nodeValue!==r)&&(e=tr,e!==null))switch(e.tag){case 3:ou(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ou(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[en]=t,t.stateNode=n}return Et(t),null;case 13:if(Fe(Me),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&er!==null&&t.mode&1&&!(t.flags&128))a_(),ia(),t.flags|=98560,i=!1;else if(i=iu(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(Q(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Q(317));i[en]=t}else ia(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Et(t),i=!1}else Fr!==null&&(Bg(Fr),Fr=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Me.current&1?ot===0&&(ot=3):ty())),t.updateQueue!==null&&(t.flags|=4),Et(t),null);case 4:return la(),Dg(e,t),e===null&&Kl(t.stateNode.containerInfo),Et(t),null;case 10:return M0(t.type._context),Et(t),null;case 17:return Gt(t.type)&&Oc(),Et(t),null;case 19:if(Fe(Me),i=t.memoizedState,i===null)return Et(t),null;if(n=(t.flags&128)!==0,a=i.rendering,a===null)if(n)Ja(i,!1);else{if(ot!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ic(e),a!==null){for(t.flags|=128,Ja(i,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Re(Me,Me.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ye()>ua&&(t.flags|=128,n=!0,Ja(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ic(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ja(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ne)return Et(t),null}else 2*Ye()-i.renderingStartTime>ua&&r!==1073741824&&(t.flags|=128,n=!0,Ja(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,r=Me.current,Re(Me,n?r&1|2:r&1),t):(Et(t),null);case 22:case 23:return ey(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Qt&1073741824&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function x6(e,t){switch(F0(t),t.tag){case 1:return Gt(t.type)&&Oc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return la(),Fe(Wt),Fe(_t),z0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return U0(t),null;case 13:if(Fe(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(Me),null;case 4:return la(),null;case 10:return M0(t.type._context),null;case 22:case 23:return ey(),null;case 24:return null;default:return null}}var su=!1,xt=!1,$6=typeof WeakSet=="function"?WeakSet:Set,re=null;function Bi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ke(e,t,n)}else r.current=null}function Pg(e,t,r){try{r()}catch(n){Ke(e,t,n)}}var fE=!1;function C6(e,t){if(gg=$c,e=VC(),P0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(l=a+o),d!==i||n!==0&&d.nodeType!==3||(s=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(l=a),f===i&&++c===n&&(s=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(mg={focusedElem:e,selectionRange:r},$c=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,S=y.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:Ar(t.type,b),S);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(w){Ke(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return y=fE,fE=!1,y}function Cl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Pg(t,r,i)}o=o.next}while(o!==n)}}function Dd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function kg(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function z_(e){var t=e.alternate;t!==null&&(e.alternate=null,z_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[Gl],delete t[vg],delete t[l6],delete t[s6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function K_(e){return e.tag===5||e.tag===3||e.tag===4}function pE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fg(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Tc));else if(n!==4&&(e=e.child,e!==null))for(Fg(e,t,r),e=e.sibling;e!==null;)Fg(e,t,r),e=e.sibling}function Ig(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Ig(e,t,r),e=e.sibling;e!==null;)Ig(e,t,r),e=e.sibling}var ct=null,Dr=!1;function Bn(e,t,r){for(r=r.child;r!==null;)W_(e,t,r),r=r.sibling}function W_(e,t,r){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(xd,r)}catch{}switch(r.tag){case 5:xt||Bi(r,t);case 6:var n=ct,o=Dr;ct=null,Bn(e,t,r),ct=n,Dr=o,ct!==null&&(Dr?(e=ct,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ct.removeChild(r.stateNode));break;case 18:ct!==null&&(Dr?(e=ct,r=r.stateNode,e.nodeType===8?lp(e.parentNode,r):e.nodeType===1&&lp(e,r),Hl(e)):lp(ct,r.stateNode));break;case 4:n=ct,o=Dr,ct=r.stateNode.containerInfo,Dr=!0,Bn(e,t,r),ct=n,Dr=o;break;case 0:case 11:case 14:case 15:if(!xt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Pg(r,t,a),o=o.next}while(o!==n)}Bn(e,t,r);break;case 1:if(!xt&&(Bi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Ke(r,t,l)}Bn(e,t,r);break;case 21:Bn(e,t,r);break;case 22:r.mode&1?(xt=(n=xt)||r.memoizedState!==null,Bn(e,t,r),xt=n):Bn(e,t,r);break;default:Bn(e,t,r)}}function hE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new $6),t.forEach(function(n){var o=F6.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Tr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ct=l.stateNode,Dr=!1;break e;case 3:ct=l.stateNode.containerInfo,Dr=!0;break e;case 4:ct=l.stateNode.containerInfo,Dr=!0;break e}l=l.return}if(ct===null)throw Error(Q(160));W_(i,a,o),ct=null,Dr=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){Ke(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)G_(t,e),t=t.sibling}function G_(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tr(t,e),Gr(e),n&4){try{Cl(3,e,e.return),Dd(3,e)}catch(b){Ke(e,e.return,b)}try{Cl(5,e,e.return)}catch(b){Ke(e,e.return,b)}}break;case 1:Tr(t,e),Gr(e),n&512&&r!==null&&Bi(r,r.return);break;case 5:if(Tr(t,e),Gr(e),n&512&&r!==null&&Bi(r,r.return),e.flags&32){var o=e.stateNode;try{Nl(o,"")}catch(b){Ke(e,e.return,b)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&hC(o,i),ig(l,a);var u=ig(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?vC(o,d):c==="dangerouslySetInnerHTML"?yC(o,d):c==="children"?Nl(o,d):v0(o,c,d,u)}switch(l){case"input":eg(o,i);break;case"textarea":gC(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Ki(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?Ki(o,!!i.multiple,i.defaultValue,!0):Ki(o,!!i.multiple,i.multiple?[]:"",!1))}o[Gl]=i}catch(b){Ke(e,e.return,b)}}break;case 6:if(Tr(t,e),Gr(e),n&4){if(e.stateNode===null)throw Error(Q(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(b){Ke(e,e.return,b)}}break;case 3:if(Tr(t,e),Gr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Hl(t.containerInfo)}catch(b){Ke(e,e.return,b)}break;case 4:Tr(t,e),Gr(e);break;case 13:Tr(t,e),Gr(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Q0=Ye())),n&4&&hE(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(xt=(u=xt)||c,Tr(t,e),xt=u):Tr(t,e),Gr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(re=e,c=e.child;c!==null;){for(d=re=c;re!==null;){switch(f=re,p=f.child,f.tag){case 0:case 11:case 14:case 15:Cl(4,f,f.return);break;case 1:Bi(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){Ke(n,r,b)}}break;case 5:Bi(f,f.return);break;case 22:if(f.memoizedState!==null){mE(d);continue}}p!==null?(p.return=f,re=p):mE(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=bC("display",a))}catch(b){Ke(e,e.return,b)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(b){Ke(e,e.return,b)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Tr(t,e),Gr(e),n&4&&hE(e);break;case 21:break;default:Tr(t,e),Gr(e)}}function Gr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(K_(r)){var n=r;break e}r=r.return}throw Error(Q(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Nl(o,""),n.flags&=-33);var i=pE(e);Ig(e,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,l=pE(e);Fg(e,l,a);break;default:throw Error(Q(161))}}catch(s){Ke(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _6(e,t,r){re=e,V_(e)}function V_(e,t,r){for(var n=(e.mode&1)!==0;re!==null;){var o=re,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||su;if(!a){var l=o.alternate,s=l!==null&&l.memoizedState!==null||xt;l=su;var u=xt;if(su=a,(xt=s)&&!u)for(re=o;re!==null;)a=re,s=a.child,a.tag===22&&a.memoizedState!==null?yE(o):s!==null?(s.return=a,re=s):yE(o);for(;i!==null;)re=i,V_(i),i=i.sibling;re=o,su=l,xt=u}gE(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,re=i):gE(e)}}function gE(e){for(;re!==null;){var t=re;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:xt||Dd(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!xt)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Ar(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Zv(t,i,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Zv(t,a,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Hl(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}xt||t.flags&512&&kg(t)}catch(f){Ke(t,t.return,f)}}if(t===e){re=null;break}if(r=t.sibling,r!==null){r.return=t.return,re=r;break}re=t.return}}function mE(e){for(;re!==null;){var t=re;if(t===e){re=null;break}var r=t.sibling;if(r!==null){r.return=t.return,re=r;break}re=t.return}}function yE(e){for(;re!==null;){var t=re;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Dd(4,t)}catch(s){Ke(t,r,s)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(s){Ke(t,o,s)}}var i=t.return;try{kg(t)}catch(s){Ke(t,i,s)}break;case 5:var a=t.return;try{kg(t)}catch(s){Ke(t,a,s)}}}catch(s){Ke(t,t.return,s)}if(t===e){re=null;break}var l=t.sibling;if(l!==null){l.return=t.return,re=l;break}re=t.return}}var T6=Math.ceil,Mc=Fn.ReactCurrentDispatcher,X0=Fn.ReactCurrentOwner,Er=Fn.ReactCurrentBatchConfig,ye=0,lt=null,Je=null,ht=0,Qt=0,ji=mo(0),ot=0,Ql=null,Qo=0,Pd=0,J0=0,_l=null,jt=null,Q0=0,ua=1/0,vn=null,Bc=!1,Lg=null,ao=null,uu=!1,Zn=null,jc=0,Tl=0,Ng=null,qu=-1,Xu=0;function It(){return ye&6?Ye():qu!==-1?qu:qu=Ye()}function lo(e){return e.mode&1?ye&2&&ht!==0?ht&-ht:c6.transition!==null?(Xu===0&&(Xu=DC()),Xu):(e=_e,e!==0||(e=window.event,e=e===void 0?16:MC(e.type)),e):1}function Mr(e,t,r,n){if(50<Tl)throw Tl=0,Ng=null,Error(Q(185));ms(e,r,n),(!(ye&2)||e!==lt)&&(e===lt&&(!(ye&2)&&(Pd|=r),ot===4&&Xn(e,ht)),Vt(e,n),r===1&&ye===0&&!(t.mode&1)&&(ua=Ye()+500,Od&&yo()))}function Vt(e,t){var r=e.callbackNode;c8(e,t);var n=xc(e,e===lt?ht:0);if(n===0)r!==null&&_v(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&_v(r),t===1)e.tag===0?u6(bE.bind(null,e)):n_(bE.bind(null,e)),i6(function(){!(ye&6)&&yo()}),r=null;else{switch(PC(n)){case 1:r=$0;break;case 4:r=AC;break;case 16:r=wc;break;case 536870912:r=RC;break;default:r=wc}r=tT(r,Y_.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Y_(e,t){if(qu=-1,Xu=0,ye&6)throw Error(Q(327));var r=e.callbackNode;if(qi()&&e.callbackNode!==r)return null;var n=xc(e,e===lt?ht:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Hc(e,n);else{t=n;var o=ye;ye|=2;var i=X_();(lt!==e||ht!==t)&&(vn=null,ua=Ye()+500,zo(e,t));do try{R6();break}catch(l){q_(e,l)}while(!0);N0(),Mc.current=i,ye=o,Je!==null?t=0:(lt=null,ht=0,t=ot)}if(t!==0){if(t===2&&(o=cg(e),o!==0&&(n=o,t=Mg(e,o))),t===1)throw r=Ql,zo(e,0),Xn(e,n),Vt(e,Ye()),r;if(t===6)Xn(e,n);else{if(o=e.current.alternate,!(n&30)&&!O6(o)&&(t=Hc(e,n),t===2&&(i=cg(e),i!==0&&(n=i,t=Mg(e,i))),t===1))throw r=Ql,zo(e,0),Xn(e,n),Vt(e,Ye()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(Q(345));case 2:Do(e,jt,vn);break;case 3:if(Xn(e,n),(n&130023424)===n&&(t=Q0+500-Ye(),10<t)){if(xc(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){It(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=bg(Do.bind(null,e,jt,vn),t);break}Do(e,jt,vn);break;case 4:if(Xn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var a=31-Nr(n);i=1<<a,a=t[a],a>o&&(o=a),n&=~i}if(n=o,n=Ye()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*T6(n/1960))-n,10<n){e.timeoutHandle=bg(Do.bind(null,e,jt,vn),n);break}Do(e,jt,vn);break;case 5:Do(e,jt,vn);break;default:throw Error(Q(329))}}}return Vt(e,Ye()),e.callbackNode===r?Y_.bind(null,e):null}function Mg(e,t){var r=_l;return e.current.memoizedState.isDehydrated&&(zo(e,t).flags|=256),e=Hc(e,t),e!==2&&(t=jt,jt=r,t!==null&&Bg(t)),e}function Bg(e){jt===null?jt=e:jt.push.apply(jt,e)}function O6(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!jr(i(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xn(e,t){for(t&=~J0,t&=~Pd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Nr(t),n=1<<r;e[r]=-1,t&=~n}}function bE(e){if(ye&6)throw Error(Q(327));qi();var t=xc(e,0);if(!(t&1))return Vt(e,Ye()),null;var r=Hc(e,t);if(e.tag!==0&&r===2){var n=cg(e);n!==0&&(t=n,r=Mg(e,n))}if(r===1)throw r=Ql,zo(e,0),Xn(e,t),Vt(e,Ye()),r;if(r===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Do(e,jt,vn),Vt(e,Ye()),null}function Z0(e,t){var r=ye;ye|=1;try{return e(t)}finally{ye=r,ye===0&&(ua=Ye()+500,Od&&yo())}}function Zo(e){Zn!==null&&Zn.tag===0&&!(ye&6)&&qi();var t=ye;ye|=1;var r=Er.transition,n=_e;try{if(Er.transition=null,_e=1,e)return e()}finally{_e=n,Er.transition=r,ye=t,!(ye&6)&&yo()}}function ey(){Qt=ji.current,Fe(ji)}function zo(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,o6(r)),Je!==null)for(r=Je.return;r!==null;){var n=r;switch(F0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Oc();break;case 3:la(),Fe(Wt),Fe(_t),z0();break;case 5:U0(n);break;case 4:la();break;case 13:Fe(Me);break;case 19:Fe(Me);break;case 10:M0(n.type._context);break;case 22:case 23:ey()}r=r.return}if(lt=e,Je=e=so(e.current,null),ht=Qt=t,ot=0,Ql=null,J0=Pd=Qo=0,jt=_l=null,Bo!==null){for(t=0;t<Bo.length;t++)if(r=Bo[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=o,n.next=a}r.pending=n}Bo=null}return e}function q_(e,t){do{var r=Je;try{if(N0(),Gu.current=Nc,Lc){for(var n=je.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Lc=!1}if(Jo=0,at=nt=je=null,$l=!1,ql=0,X0.current=null,r===null||r.return===null){ot=1,Ql=t,Je=null;break}e:{var i=e,a=r.return,l=r,s=t;if(t=ht,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=iE(a);if(p!==null){p.flags&=-257,aE(p,a,l,i,t),p.mode&1&&oE(i,u,t),t=p,s=u;var y=t.updateQueue;if(y===null){var b=new Set;b.add(s),t.updateQueue=b}else y.add(s);break e}else{if(!(t&1)){oE(i,u,t),ty();break e}s=Error(Q(426))}}else if(Ne&&l.mode&1){var S=iE(a);if(S!==null){!(S.flags&65536)&&(S.flags|=256),aE(S,a,l,i,t),I0(sa(s,l));break e}}i=s=sa(s,l),ot!==4&&(ot=2),_l===null?_l=[i]:_l.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=P_(i,s,t);Qv(i,g);break e;case 1:l=s;var v=i.type,E=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(ao===null||!ao.has(E)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=k_(i,l,t);Qv(i,w);break e}}i=i.return}while(i!==null)}Q_(r)}catch($){t=$,Je===r&&r!==null&&(Je=r=r.return);continue}break}while(!0)}function X_(){var e=Mc.current;return Mc.current=Nc,e===null?Nc:e}function ty(){(ot===0||ot===3||ot===2)&&(ot=4),lt===null||!(Qo&268435455)&&!(Pd&268435455)||Xn(lt,ht)}function Hc(e,t){var r=ye;ye|=2;var n=X_();(lt!==e||ht!==t)&&(vn=null,zo(e,t));do try{A6();break}catch(o){q_(e,o)}while(!0);if(N0(),ye=r,Mc.current=n,Je!==null)throw Error(Q(261));return lt=null,ht=0,ot}function A6(){for(;Je!==null;)J_(Je)}function R6(){for(;Je!==null&&!t8();)J_(Je)}function J_(e){var t=eT(e.alternate,e,Qt);e.memoizedProps=e.pendingProps,t===null?Q_(e):Je=t,X0.current=null}function Q_(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=x6(r,t),r!==null){r.flags&=32767,Je=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ot=6,Je=null;return}}else if(r=w6(r,t,Qt),r!==null){Je=r;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);ot===0&&(ot=5)}function Do(e,t,r){var n=_e,o=Er.transition;try{Er.transition=null,_e=1,D6(e,t,r,n)}finally{Er.transition=o,_e=n}return null}function D6(e,t,r,n){do qi();while(Zn!==null);if(ye&6)throw Error(Q(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Q(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(d8(e,i),e===lt&&(Je=lt=null,ht=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||uu||(uu=!0,tT(wc,function(){return qi(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Er.transition,Er.transition=null;var a=_e;_e=1;var l=ye;ye|=4,X0.current=null,C6(e,r),G_(r,e),J8(mg),$c=!!gg,mg=gg=null,e.current=r,_6(r),r8(),ye=l,_e=a,Er.transition=i}else e.current=r;if(uu&&(uu=!1,Zn=e,jc=o),i=e.pendingLanes,i===0&&(ao=null),i8(r.stateNode),Vt(e,Ye()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Bc)throw Bc=!1,e=Lg,Lg=null,e;return jc&1&&e.tag!==0&&qi(),i=e.pendingLanes,i&1?e===Ng?Tl++:(Tl=0,Ng=e):Tl=0,yo(),null}function qi(){if(Zn!==null){var e=PC(jc),t=Er.transition,r=_e;try{if(Er.transition=null,_e=16>e?16:e,Zn===null)var n=!1;else{if(e=Zn,Zn=null,jc=0,ye&6)throw Error(Q(331));var o=ye;for(ye|=4,re=e.current;re!==null;){var i=re,a=i.child;if(re.flags&16){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(re=u;re!==null;){var c=re;switch(c.tag){case 0:case 11:case 15:Cl(8,c,i)}var d=c.child;if(d!==null)d.return=c,re=d;else for(;re!==null;){c=re;var f=c.sibling,p=c.return;if(z_(c),c===u){re=null;break}if(f!==null){f.return=p,re=f;break}re=p}}}var y=i.alternate;if(y!==null){var b=y.child;if(b!==null){y.child=null;do{var S=b.sibling;b.sibling=null,b=S}while(b!==null)}}re=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,re=a;else e:for(;re!==null;){if(i=re,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Cl(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,re=g;break e}re=i.return}}var v=e.current;for(re=v;re!==null;){a=re;var E=a.child;if(a.subtreeFlags&2064&&E!==null)E.return=a,re=E;else e:for(a=v;re!==null;){if(l=re,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Dd(9,l)}}catch($){Ke(l,l.return,$)}if(l===a){re=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,re=w;break e}re=l.return}}if(ye=o,yo(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(xd,e)}catch{}n=!0}return n}finally{_e=r,Er.transition=t}}return!1}function vE(e,t,r){t=sa(r,t),t=P_(e,t,1),e=io(e,t,1),t=It(),e!==null&&(ms(e,1,t),Vt(e,t))}function Ke(e,t,r){if(e.tag===3)vE(e,e,r);else for(;t!==null;){if(t.tag===3){vE(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ao===null||!ao.has(n))){e=sa(r,e),e=k_(t,e,1),t=io(t,e,1),e=It(),t!==null&&(ms(t,1,e),Vt(t,e));break}}t=t.return}}function P6(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=It(),e.pingedLanes|=e.suspendedLanes&r,lt===e&&(ht&r)===r&&(ot===4||ot===3&&(ht&130023424)===ht&&500>Ye()-Q0?zo(e,0):J0|=r),Vt(e,t)}function Z_(e,t){t===0&&(e.mode&1?(t=Zs,Zs<<=1,!(Zs&130023424)&&(Zs=4194304)):t=1);var r=It();e=Dn(e,t),e!==null&&(ms(e,t,r),Vt(e,r))}function k6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Z_(e,r)}function F6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Q(314))}n!==null&&n.delete(t),Z_(e,r)}var eT;eT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)zt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return zt=!1,S6(e,t,r);zt=!!(e.flags&131072)}else zt=!1,Ne&&t.flags&1048576&&o_(t,Dc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Yu(e,t),e=t.pendingProps;var o=oa(t,_t.current);Yi(t,r),o=W0(null,t,n,e,o,r);var i=G0();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gt(n)?(i=!0,Ac(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,j0(t),o.updater=Rd,t.stateNode=o,o._reactInternals=t,Cg(t,n,e,r),t=Og(null,t,n,!0,i,r)):(t.tag=0,Ne&&i&&k0(t),Ft(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Yu(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=L6(n),e=Ar(n,e),o){case 0:t=Tg(null,t,n,e,r);break e;case 1:t=uE(null,t,n,e,r);break e;case 11:t=lE(null,t,n,e,r);break e;case 14:t=sE(null,t,n,Ar(n.type,e),r);break e}throw Error(Q(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),Tg(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),uE(e,t,n,o,r);case 3:e:{if(N_(t),e===null)throw Error(Q(387));n=t.pendingProps,i=t.memoizedState,o=i.element,c_(e,t),Fc(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=sa(Error(Q(423)),t),t=cE(e,t,n,r,o);break e}else if(n!==o){o=sa(Error(Q(424)),t),t=cE(e,t,n,r,o);break e}else for(er=oo(t.stateNode.containerInfo.firstChild),tr=t,Ne=!0,Fr=null,r=s_(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ia(),n===o){t=Pn(e,t,r);break e}Ft(e,t,n,r)}t=t.child}return t;case 5:return d_(t),e===null&&wg(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,yg(n,o)?a=null:i!==null&&yg(n,i)&&(t.flags|=32),L_(e,t),Ft(e,t,a,r),t.child;case 6:return e===null&&wg(t),null;case 13:return M_(e,t,r);case 4:return H0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=aa(t,null,n,r):Ft(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),lE(e,t,n,o,r);case 7:return Ft(e,t,t.pendingProps,r),t.child;case 8:return Ft(e,t,t.pendingProps.children,r),t.child;case 12:return Ft(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Re(Pc,n._currentValue),n._currentValue=a,i!==null)if(jr(i.value,a)){if(i.children===o.children&&!Wt.current){t=Pn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=Tn(-1,r&-r),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),xg(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Q(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),xg(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ft(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Yi(t,r),o=wr(o),n=n(o),t.flags|=1,Ft(e,t,n,r),t.child;case 14:return n=t.type,o=Ar(n,t.pendingProps),o=Ar(n.type,o),sE(e,t,n,o,r);case 15:return F_(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),Yu(e,t),t.tag=1,Gt(n)?(e=!0,Ac(t)):e=!1,Yi(t,r),D_(t,n,o),Cg(t,n,o,r),Og(null,t,n,!0,e,r);case 19:return B_(e,t,r);case 22:return I_(e,t,r)}throw Error(Q(156,t.tag))};function tT(e,t){return OC(e,t)}function I6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(e,t,r,n){return new I6(e,t,r,n)}function ry(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L6(e){if(typeof e=="function")return ry(e)?1:0;if(e!=null){if(e=e.$$typeof,e===S0)return 11;if(e===w0)return 14}return 2}function so(e,t){var r=e.alternate;return r===null?(r=br(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ju(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")ry(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ri:return Ko(r.children,o,i,t);case E0:a=8,o|=8;break;case qh:return e=br(12,r,t,o|2),e.elementType=qh,e.lanes=i,e;case Xh:return e=br(13,r,t,o),e.elementType=Xh,e.lanes=i,e;case Jh:return e=br(19,r,t,o),e.elementType=Jh,e.lanes=i,e;case dC:return kd(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uC:a=10;break e;case cC:a=9;break e;case S0:a=11;break e;case w0:a=14;break e;case Gn:a=16,n=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=br(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Ko(e,t,r,n){return e=br(7,e,n,t),e.lanes=r,e}function kd(e,t,r,n){return e=br(22,e,n,t),e.elementType=dC,e.lanes=r,e.stateNode={isHidden:!1},e}function gp(e,t,r){return e=br(6,e,null,t),e.lanes=r,e}function mp(e,t,r){return t=br(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N6(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xf(0),this.expirationTimes=Xf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xf(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ny(e,t,r,n,o,i,a,l,s){return e=new N6(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=br(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},j0(i),e}function M6(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ai,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function rT(e){if(!e)return co;e=e._reactInternals;e:{if(ui(e)!==e||e.tag!==1)throw Error(Q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Q(171))}if(e.tag===1){var r=e.type;if(Gt(r))return r_(e,r,t)}return t}function nT(e,t,r,n,o,i,a,l,s){return e=ny(r,n,!0,e,o,i,a,l,s),e.context=rT(null),r=e.current,n=It(),o=lo(r),i=Tn(n,o),i.callback=t??null,io(r,i,o),e.current.lanes=o,ms(e,o,n),Vt(e,n),e}function Fd(e,t,r,n){var o=t.current,i=It(),a=lo(o);return r=rT(r),t.context===null?t.context=r:t.pendingContext=r,t=Tn(i,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=io(o,t,a),e!==null&&(Mr(e,o,a,i),Wu(e,o,a)),a}function Uc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function EE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function oy(e,t){EE(e,t),(e=e.alternate)&&EE(e,t)}function B6(){return null}var oT=typeof reportError=="function"?reportError:function(e){console.error(e)};function iy(e){this._internalRoot=e}Id.prototype.render=iy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));Fd(e,t,null,null)};Id.prototype.unmount=iy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zo(function(){Fd(null,e,null,null)}),t[Rn]=null}};function Id(e){this._internalRoot=e}Id.prototype.unstable_scheduleHydration=function(e){if(e){var t=IC();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qn.length&&t!==0&&t<qn[r].priority;r++);qn.splice(r,0,e),r===0&&NC(e)}};function ay(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ld(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function SE(){}function j6(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var u=Uc(a);i.call(u)}}var a=nT(t,n,e,0,null,!1,!1,"",SE);return e._reactRootContainer=a,e[Rn]=a.current,Kl(e.nodeType===8?e.parentNode:e),Zo(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var l=n;n=function(){var u=Uc(s);l.call(u)}}var s=ny(e,0,!1,null,null,!1,!1,"",SE);return e._reactRootContainer=s,e[Rn]=s.current,Kl(e.nodeType===8?e.parentNode:e),Zo(function(){Fd(t,s,r,n)}),s}function Nd(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var s=Uc(a);l.call(s)}}Fd(t,a,e,o)}else a=j6(r,t,e,o,n);return Uc(a)}kC=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dl(t.pendingLanes);r!==0&&(C0(t,r|1),Vt(t,Ye()),!(ye&6)&&(ua=Ye()+500,yo()))}break;case 13:Zo(function(){var n=Dn(e,1);if(n!==null){var o=It();Mr(n,e,1,o)}}),oy(e,1)}};_0=function(e){if(e.tag===13){var t=Dn(e,134217728);if(t!==null){var r=It();Mr(t,e,134217728,r)}oy(e,134217728)}};FC=function(e){if(e.tag===13){var t=lo(e),r=Dn(e,t);if(r!==null){var n=It();Mr(r,e,t,n)}oy(e,t)}};IC=function(){return _e};LC=function(e,t){var r=_e;try{return _e=e,t()}finally{_e=r}};lg=function(e,t,r){switch(t){case"input":if(eg(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Td(n);if(!o)throw Error(Q(90));pC(n),eg(n,o)}}}break;case"textarea":gC(e,r);break;case"select":t=r.value,t!=null&&Ki(e,!!r.multiple,t,!1)}};wC=Z0;xC=Zo;var H6={usingClientEntryPoint:!1,Events:[bs,Fi,Td,EC,SC,Z0]},Qa={findFiberByHostInstance:Mo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},U6={bundleType:Qa.bundleType,version:Qa.version,rendererPackageName:Qa.rendererPackageName,rendererConfig:Qa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_C(e),e===null?null:e.stateNode},findFiberByHostInstance:Qa.findFiberByHostInstance||B6,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 cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{xd=cu.inject(U6),sn=cu}catch{}}or.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H6;or.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ay(t))throw Error(Q(200));return M6(e,t,null,r)};or.createRoot=function(e,t){if(!ay(e))throw Error(Q(299));var r=!1,n="",o=oT;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ny(e,1,!1,null,null,r,!1,n,o),e[Rn]=t.current,Kl(e.nodeType===8?e.parentNode:e),new iy(t)};or.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=_C(t),e=e===null?null:e.stateNode,e};or.flushSync=function(e){return Zo(e)};or.hydrate=function(e,t,r){if(!Ld(t))throw Error(Q(200));return Nd(null,e,t,!0,r)};or.hydrateRoot=function(e,t,r){if(!ay(e))throw Error(Q(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=oT;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=nT(t,null,e,1,r??null,o,!1,i,a),e[Rn]=t.current,Kl(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Id(t)};or.render=function(e,t,r){if(!Ld(t))throw Error(Q(200));return Nd(null,e,t,!1,r)};or.unmountComponentAtNode=function(e){if(!Ld(e))throw Error(Q(40));return e._reactRootContainer?(Zo(function(){Nd(null,null,e,!1,function(){e._reactRootContainer=null,e[Rn]=null})}),!0):!1};or.unstable_batchedUpdates=Z0;or.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ld(r))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return Nd(e,t,r,!1,n)};or.version="18.3.1-next-f1338f8080-20240426";function iT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iT)}catch(e){console.error(e)}}iT(),iC.exports=or;var Oa=iC.exports;const aT=Zm(Oa);var lT,wE=Oa;lT=wE.createRoot,wE.hydrateRoot;var zc=new Map;function z6(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var K6=({callback:e,children:t})=>{let r=h.useRef();return h.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}});var W6=async(e,t,r)=>{let n=await V6(t,r);if(z6()){n.render(e);return}let{promise:o,resolve:i}=Promise.withResolvers();return n.render(h.createElement(K6,{callback:i},e)),o},G6=(e,t)=>{let r=zc.get(e);r&&(r.unmount(),zc.delete(e))},V6=async(e,t)=>{let r=zc.get(e);return r||(r=lT(e,t),zc.set(e,r)),r},Hr=(e,t)=>{let r=e.replace(/\s+/g,"-");return t?`control-${t}-${r}`:`control-${r}`},Md=(e,t)=>{let r=e.replace(/\s+/g,"-");return t?`set-${t}-${r}`:`set-${r}`};function mt(){return mt=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},mt.apply(null,arguments)}function Y6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Zl(e,t)}function q6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zl(e,t)}function jg(e){return jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jg(e)}function X6(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function sT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sT=function(){return!!e})()}function J6(e,t,r){if(sT())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Zl(o,r.prototype),o}function Hg(e){var t=typeof Map=="function"?new Map:void 0;return Hg=function(r){if(r===null||!X6(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 J6(r,arguments,jg(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zl(n,r)},Hg(e)}var nn=function(e){q6(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,Y6(n)}return t}(Hg(Error));function yp(e){return Math.round(e*255)}function Q6(e,t,r){return yp(e)+","+yp(t)+","+yp(r)}function Kc(e,t,r,n){if(n===void 0&&(n=Q6),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)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=r-i/2,d=l+c,f=s+c,p=u+c;return n(d,f,p)}var xE={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 Z6(e){if(typeof e!="string")return e;var t=e.toLowerCase();return xE[t]?"#"+xE[t]:e}var eL=/^#[a-fA-F0-9]{6}$/,tL=/^#[a-fA-F0-9]{8}$/,rL=/^#[a-fA-F0-9]{3}$/,nL=/^#[a-fA-F0-9]{4}$/,bp=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,oL=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,iL=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,aL=/^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 ca(e){if(typeof e!="string")throw new nn(3);var t=Z6(e);if(t.match(eL))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(tL)){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(rL))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(nL)){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=bp.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=oL.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=iL.exec(t);if(a){var l=parseInt(""+a[1],10),s=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,c="rgb("+Kc(l,s,u)+")",d=bp.exec(c);if(!d)throw new nn(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=aL.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,b=parseInt(""+f[3],10)/100,S="rgb("+Kc(p,y,b)+")",g=bp.exec(S);if(!g)throw new nn(4,t,S);return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new nn(5)}function lL(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 l,s=o-i,u=a>.5?s/(2-o-i):s/(o+i);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:a,alpha:e.alpha}:{hue:l,saturation:u,lightness:a}}function bo(e){return lL(ca(e))}var sL=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},Ug=sL;function Po(e){var t=e.toString(16);return t.length===1?"0"+t:t}function vp(e){return Po(Math.round(e*255))}function uL(e,t,r){return Ug("#"+vp(e)+vp(t)+vp(r))}function uT(e,t,r){return Kc(e,t,r,uL)}function cL(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return uT(e.hue,e.saturation,e.lightness);throw new nn(1)}function dL(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?uT(e.hue,e.saturation,e.lightness):"rgba("+Kc(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new nn(2)}function zg(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ug("#"+Po(e)+Po(t)+Po(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ug("#"+Po(e.red)+Po(e.green)+Po(e.blue));throw new nn(6)}function ei(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=ca(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?zg(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?zg(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new nn(7)}var fL=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},pL=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},hL=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},gL=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function vo(e){if(typeof e!="object")throw new nn(8);if(pL(e))return ei(e);if(fL(e))return zg(e);if(gL(e))return dL(e);if(hL(e))return cL(e);throw new nn(8)}function cT(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):cT(e,t,n)}}function ar(e){return cT(e,e.length,[])}function mL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{hue:r.hue+parseFloat(e)}))}ar(mL);function Aa(e,t,r){return Math.max(e,Math.min(t,r))}function yL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{lightness:Aa(0,1,r.lightness-parseFloat(e))}))}var bL=ar(yL),$t=bL;function vL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{saturation:Aa(0,1,r.saturation-parseFloat(e))}))}ar(vL);function EL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{lightness:Aa(0,1,r.lightness+parseFloat(e))}))}var SL=ar(EL),Qu=SL;function wL(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=ca(t),o=mt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=ca(r),a=mt({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-a.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,p={red:Math.floor(o.red*d+a.red*f),green:Math.floor(o.green*d+a.green*f),blue:Math.floor(o.blue*d+a.blue*f),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return ei(p)}var xL=ar(wL),dT=xL;function $L(e,t){if(t==="transparent")return t;var r=ca(t),n=typeof r.alpha=="number"?r.alpha:1,o=mt({},r,{alpha:Aa(0,1,(n*100+parseFloat(e)*100)/100)});return ei(o)}var CL=ar($L),_L=CL;function TL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{saturation:Aa(0,1,r.saturation+parseFloat(e))}))}ar(TL);function OL(e,t){return t==="transparent"?t:vo(mt({},bo(t),{hue:parseFloat(e)}))}ar(OL);function AL(e,t){return t==="transparent"?t:vo(mt({},bo(t),{lightness:parseFloat(e)}))}ar(AL);function RL(e,t){return t==="transparent"?t:vo(mt({},bo(t),{saturation:parseFloat(e)}))}ar(RL);function DL(e,t){return t==="transparent"?t:dT(parseFloat(e),"rgb(0, 0, 0)",t)}ar(DL);function PL(e,t){return t==="transparent"?t:dT(parseFloat(e),"rgb(255, 255, 255)",t)}ar(PL);function kL(e,t){if(t==="transparent")return t;var r=ca(t),n=typeof r.alpha=="number"?r.alpha:1,o=mt({},r,{alpha:Aa(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return ei(o)}var FL=ar(kL),kn=FL,oe={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"},xn={app:"#F6F9FC",bar:oe.lightest,content:oe.lightest,preview:oe.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Lr={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}},Kg={light:{fgColor:{default:oe.darkest,muted:oe.dark,accent:oe.secondary,inverse:oe.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:oe.lightest,muted:xn.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:oe.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"}}},IL={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:oe.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Lr.fonts.base,fontCode:Lr.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},LL=IL,NL={base:"light",colorPrimary:oe.primary,colorSecondary:oe.secondary,appBg:xn.app,appContentBg:oe.lightest,appHoverBg:"#DBECFF",appPreviewBg:oe.lightest,appBorderColor:oe.border,appBorderRadius:4,fontBase:Lr.fonts.base,fontCode:Lr.fonts.mono,textColor:oe.darkest,textInverseColor:oe.lightest,textMutedColor:oe.dark,barTextColor:oe.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:oe.lightest,buttonBg:xn.app,buttonBorder:oe.medium,booleanBg:oe.mediumlight,booleanSelectedBg:oe.lightest,inputBg:oe.lightest,inputBorder:oe.border,inputTextColor:oe.darkest,inputBorderRadius:4},Wg=NL;const{logger:ML}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:BL}=__STORYBOOK_MODULE_GLOBAL__;var{window:Ep}=BL,jL=e=>({color:e}),HL=e=>typeof e!="string"?(ML.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,UL=e=>!/(gradient|var|calc)/.test(e),zL=(e,t)=>e==="darken"?ei(`${$t(1,t)}`,.95):e==="lighten"?ei(`${Qu(1,t)}`,.95):t,KL=e=>t=>{if(!HL(t)||!UL(t))return t;try{return zL(e,t)}catch{return t}},ly=KL("lighten"),sy=()=>!Ep||!Ep.matchMedia?"light":Ep.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",$E={light:Wg,dark:LL},Zu=sy(),Wo={...$E,normal:$E[Zu]},fT=(e={base:Zu},t)=>{let r={...Wo[Zu],...Wo[e.base]||{},...e,base:Wo[e.base]?e.base:Zu};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},WL=Tt({"../../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,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function w(x){if(typeof x=="object"&&x!==null){var C=x.$$typeof;switch(C){case r:switch(x=x.type,x){case u:case c:case o:case a:case i:case f:return x;default:switch(x=x&&x.$$typeof,x){case s:case d:case b:case y:case l:return x;default:return C}}case n:return C}}}function $(x){return w(x)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=b,e.Memo=y,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=f,e.isAsyncMode=function(x){return $(x)||w(x)===u},e.isConcurrentMode=$,e.isContextConsumer=function(x){return w(x)===s},e.isContextProvider=function(x){return w(x)===l},e.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},e.isForwardRef=function(x){return w(x)===d},e.isFragment=function(x){return w(x)===o},e.isLazy=function(x){return w(x)===b},e.isMemo=function(x){return w(x)===y},e.isPortal=function(x){return w(x)===n},e.isProfiler=function(x){return w(x)===a},e.isStrictMode=function(x){return w(x)===i},e.isSuspense=function(x){return w(x)===f},e.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===o||x===c||x===a||x===i||x===f||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===y||x.$$typeof===l||x.$$typeof===s||x.$$typeof===d||x.$$typeof===g||x.$$typeof===v||x.$$typeof===E||x.$$typeof===S)},e.typeOf=w}}),GL=Tt({"../../node_modules/react-is/index.js"(e,t){t.exports=WL()}}),pT=Tt({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=GL(),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},l={};l[r.ForwardRef]=i,l[r.Memo]=a;function s(S){return r.isMemo(S)?a:l[S.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function b(S,g,v){if(typeof g!="string"){if(y){var E=p(g);E&&E!==y&&b(S,E,v)}var w=c(g);d&&(w=w.concat(d(g)));for(var $=s(S),x=s(g),C=0;C<w.length;++C){var T=w[C];if(!o[T]&&!(v&&v[T])&&!(x&&x[T])&&!($&&$[T])){var A=f(g,T);try{u(S,T,A)}catch{}}}}return S}t.exports=b}});function VL(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 YL(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 qL=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(YL(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=VL(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}(),wt="-ms-",Wc="-moz-",Se="-webkit-",hT="comm",uy="rule",cy="decl",XL="@import",gT="@keyframes",JL="@layer",QL=Math.abs,Bd=String.fromCharCode,ZL=Object.assign;function eN(e,t){return dt(e,0)^45?(((t<<2^dt(e,0))<<2^dt(e,1))<<2^dt(e,2))<<2^dt(e,3):0}function mT(e){return e.trim()}function tN(e,t){return(e=t.exec(e))?e[0]:e}function we(e,t,r){return e.replace(t,r)}function Gg(e,t){return e.indexOf(t)}function dt(e,t){return e.charCodeAt(t)|0}function es(e,t,r){return e.slice(t,r)}function Qr(e){return e.length}function dy(e){return e.length}function du(e,t){return t.push(e),e}function rN(e,t){return e.map(t).join("")}var jd=1,da=1,yT=0,Yt=0,Xe=0,Ra="";function Hd(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:jd,column:da,length:a,return:""}}function Za(e,t){return ZL(Hd("",null,null,"",null,null,0),e,{length:-e.length},t)}function nN(){return Xe}function oN(){return Xe=Yt>0?dt(Ra,--Yt):0,da--,Xe===10&&(da=1,jd--),Xe}function rr(){return Xe=Yt<yT?dt(Ra,Yt++):0,da++,Xe===10&&(da=1,jd++),Xe}function cn(){return dt(Ra,Yt)}function ec(){return Yt}function Es(e,t){return es(Ra,e,t)}function ts(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 bT(e){return jd=da=1,yT=Qr(Ra=e),Yt=0,[]}function vT(e){return Ra="",e}function tc(e){return mT(Es(Yt-1,Vg(e===91?e+2:e===40?e+1:e)))}function iN(e){for(;(Xe=cn())&&Xe<33;)rr();return ts(e)>2||ts(Xe)>3?"":" "}function aN(e,t){for(;--t&&rr()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return Es(e,ec()+(t<6&&cn()==32&&rr()==32))}function Vg(e){for(;rr();)switch(Xe){case e:return Yt;case 34:case 39:e!==34&&e!==39&&Vg(Xe);break;case 40:e===41&&Vg(e);break;case 92:rr();break}return Yt}function lN(e,t){for(;rr()&&e+Xe!==57&&!(e+Xe===84&&cn()===47););return"/*"+Es(t,Yt-1)+"*"+Bd(e===47?e:rr())}function sN(e){for(;!ts(cn());)rr();return Es(e,Yt)}function uN(e){return vT(rc("",null,null,null,[""],e=bT(e),0,[0],e))}function rc(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,f=0,p=0,y=0,b=1,S=1,g=1,v=0,E="",w=o,$=i,x=n,C=E;S;)switch(y=v,v=rr()){case 40:if(y!=108&&dt(C,d-1)==58){Gg(C+=we(tc(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:C+=tc(v);break;case 9:case 10:case 13:case 32:C+=iN(y);break;case 92:C+=aN(ec()-1,7);continue;case 47:switch(cn()){case 42:case 47:du(cN(lN(rr(),ec()),t,r),s);break;default:C+="/"}break;case 123*b:l[u++]=Qr(C)*g;case 125*b:case 59:case 0:switch(v){case 0:case 125:S=0;case 59+c:g==-1&&(C=we(C,/\f/g,"")),p>0&&Qr(C)-d&&du(p>32?_E(C+";",n,r,d-1):_E(we(C," ","")+";",n,r,d-2),s);break;case 59:C+=";";default:if(du(x=CE(C,t,r,u,c,o,l,E,w=[],$=[],d),i),v===123)if(c===0)rc(C,t,x,x,w,i,d,l,$);else switch(f===99&&dt(C,3)===110?100:f){case 100:case 108:case 109:case 115:rc(e,x,x,n&&du(CE(e,x,x,0,0,o,l,E,o,w=[],d),$),o,$,d,l,n?w:$);break;default:rc(C,x,x,x,[""],$,0,l,$)}}u=c=p=0,b=g=1,E=C="",d=a;break;case 58:d=1+Qr(C),p=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&oN()==125)continue}switch(C+=Bd(v),v*b){case 38:g=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Qr(C)-1)*g,g=1;break;case 64:cn()===45&&(C+=tc(rr())),f=cn(),c=d=Qr(E=C+=sN(ec())),v++;break;case 45:y===45&&Qr(C)==2&&(b=0)}}return i}function CE(e,t,r,n,o,i,a,l,s,u,c){for(var d=o-1,f=o===0?i:[""],p=dy(f),y=0,b=0,S=0;y<n;++y)for(var g=0,v=es(e,d+1,d=QL(b=a[y])),E=e;g<p;++g)(E=mT(b>0?f[g]+" "+v:we(v,/&\f/g,f[g])))&&(s[S++]=E);return Hd(e,t,r,o===0?uy:l,s,u,c)}function cN(e,t,r){return Hd(e,t,r,hT,Bd(nN()),es(e,2,-2),0)}function _E(e,t,r,n){return Hd(e,t,r,cy,es(e,0,n),es(e,n+1,-1),n)}function Xi(e,t){for(var r="",n=dy(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function dN(e,t,r,n){switch(e.type){case JL:if(e.children.length)break;case XL:case cy:return e.return=e.return||e.value;case hT:return"";case gT:return e.return=e.value+"{"+Xi(e.children,n)+"}";case uy:e.value=e.props.join(",")}return Qr(r=Xi(e.children,n))?e.return=e.value+"{"+r+"}":""}function fN(e){var t=dy(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}function pN(e){return function(t){t.root||(t=t.return)&&e(t)}}var TE=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 ET(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var hN=function(e,t,r){for(var n=0,o=0;n=o,o=cn(),n===38&&o===12&&(t[r]=1),!ts(o);)rr();return Es(e,Yt)},gN=function(e,t){var r=-1,n=44;do switch(ts(n)){case 0:n===38&&cn()===12&&(t[r]=1),e[r]+=hN(Yt-1,t,r);break;case 2:e[r]+=tc(n);break;case 4:if(n===44){e[++r]=cn()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Bd(n)}while(n=rr());return e},mN=function(e,t){return vT(gN(bT(e),t))},OE=new WeakMap,yN=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&&!OE.get(r))&&!n){OE.set(e,!0);for(var o=[],i=mN(t,o),a=r.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},bN=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function ST(e,t){switch(eN(e,t)){case 5103:return Se+"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 Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Se+e+Wc+e+wt+e+e;case 6828:case 4268:return Se+e+wt+e+e;case 6165:return Se+e+wt+"flex-"+e+e;case 5187:return Se+e+we(e,/(\w+).+(:[^]+)/,Se+"box-$1$2"+wt+"flex-$1$2")+e;case 5443:return Se+e+wt+"flex-item-"+we(e,/flex-|-self/,"")+e;case 4675:return Se+e+wt+"flex-line-pack"+we(e,/align-content|flex-|-self/,"")+e;case 5548:return Se+e+wt+we(e,"shrink","negative")+e;case 5292:return Se+e+wt+we(e,"basis","preferred-size")+e;case 6060:return Se+"box-"+we(e,"-grow","")+Se+e+wt+we(e,"grow","positive")+e;case 4554:return Se+we(e,/([^-])(transform)/g,"$1"+Se+"$2")+e;case 6187:return we(we(we(e,/(zoom-|grab)/,Se+"$1"),/(image-set)/,Se+"$1"),e,"")+e;case 5495:case 3959:return we(e,/(image-set\([^]*)/,Se+"$1$`$1");case 4968:return we(we(e,/(.+:)(flex-)?(.*)/,Se+"box-pack:$3"+wt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Se+e+e;case 4095:case 3583:case 4068:case 2532:return we(e,/(.+)-inline(.+)/,Se+"$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(Qr(e)-1-t>6)switch(dt(e,t+1)){case 109:if(dt(e,t+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+Wc+(dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gg(e,"stretch")?ST(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dt(e,t+1)!==115)break;case 6444:switch(dt(e,Qr(e)-3-(~Gg(e,"!important")&&10))){case 107:return we(e,":",":"+Se)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(dt(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+wt+"$2box$3")+e}break;case 5936:switch(dt(e,t+11)){case 114:return Se+e+wt+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+wt+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+wt+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+wt+e+e}return e}var vN=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case cy:e.return=ST(e.value,e.length);break;case gT:return Xi([Za(e,{value:we(e.value,"@","@"+Se)})],n);case uy:if(e.length)return rN(e.props,function(o){switch(tN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xi([Za(e,{props:[we(o,/:(read-\w+)/,":"+Wc+"$1")]})],n);case"::placeholder":return Xi([Za(e,{props:[we(o,/:(plac\w+)/,":"+Se+"input-$1")]}),Za(e,{props:[we(o,/:(plac\w+)/,":"+Wc+"$1")]}),Za(e,{props:[we(o,/:(plac\w+)/,wt+"input-$1")]})],n)}return""})}},EN=[vN],wT=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 b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||EN,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),S=1;S<b.length;S++)o[b[S]]=!0;a.push(y)});var l,s=[yN,bN];{var u,c=[dN,pN(function(y){u.insert(y)})],d=fN(s.concat(n,c)),f=function(y){return Xi(uN(y),d)};l=function(y,b,S,g){u=S,f(y?y+"{"+b.styles+"}":b.styles),g&&(p.inserted[b.name]=!0)}}var p={key:t,sheet:new qL({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p};Lt(pT());var SN=!0;function fy(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Ud=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||SN===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},zd=function(e,t,r){Ud(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 wN(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 xN={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},$N=/[A-Z]|^ms/g,CN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xT=function(e){return e.charCodeAt(1)===45},AE=function(e){return e!=null&&typeof e!="boolean"},Sp=ET(function(e){return xT(e)?e:e.replace($N,"-$&").toLowerCase()}),RE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(CN,function(r,n,o){return Zr={name:n,styles:o,next:Zr},n})}return xN[e]!==1&&!xT(e)&&typeof t=="number"&&t!==0?t+"px":t};function rs(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 Zr={name:o.name,styles:o.styles,next:Zr},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Zr={name:a.name,styles:a.styles,next:Zr},a=a.next;var l=i.styles+";";return l}return _N(e,t,r)}case"function":{if(e!==void 0){var s=Zr,u=r(e);return Zr=s,rs(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function _N(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=rs(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?n+=i+"{"+t[l]+"}":AE(l)&&(n+=Sp(i)+":"+RE(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)AE(a[s])&&(n+=Sp(i)+":"+RE(i,a[s])+";");else{var u=rs(e,t,a);switch(i){case"animation":case"animationName":{n+=Sp(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var DE=/label:\s*([^\s;{]+)\s*(;|$)/g,Zr;function Ss(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="";Zr=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=rs(r,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=rs(r,t,e[l]),n){var s=i;o+=s[l]}DE.lastIndex=0;for(var u="",c;(c=DE.exec(o))!==null;)u+="-"+c[1];var d=wN(o)+u;return{name:d,styles:o,next:Zr}}var TN=function(e){return e()},$T=h.useInsertionEffect?h.useInsertionEffect:!1,py=$T||TN,PE=$T||h.useLayoutEffect,CT=h.createContext(typeof HTMLElement<"u"?wT({key:"css"}):null);CT.Provider;var Kd=function(e){return h.forwardRef(function(t,r){var n=h.useContext(CT);return e(t,n,r)})},ti=h.createContext({}),Wd=function(){return h.useContext(ti)},ON=function(e,t){if(typeof t=="function"){var r=t(e);return r}return mt({},e,t)},AN=TE(function(e){return TE(function(t){return ON(e,t)})}),hy=function(e){var t=h.useContext(ti);return e.theme!==t&&(t=AN(t)(e.theme)),h.createElement(ti.Provider,{value:t},e.children)},gy={}.hasOwnProperty,Yg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",RN=function(e,t){var r={};for(var n in t)gy.call(t,n)&&(r[n]=t[n]);return r[Yg]=e,r},DN=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ud(t,r,n),py(function(){return zd(t,r,n)}),null},PN=Kd(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Yg],i=[n],a="";typeof e.className=="string"?a=fy(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Ss(i,void 0,h.useContext(ti));a+=t.key+"-"+l.name;var s={};for(var u in e)gy.call(e,u)&&u!=="css"&&u!==Yg&&(s[u]=e[u]);return s.className=a,r&&(s.ref=r),h.createElement(h.Fragment,null,h.createElement(DN,{cache:t,serialized:l,isStringTag:typeof o=="string"}),h.createElement(o,s))}),kN=PN;Lt(pT());var qg=function(e,t){var r=arguments;if(t==null||!gy.call(t,"css"))return h.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=kN,o[1]=RN(e,t);for(var i=2;i<n;i++)o[i]=r[i];return h.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(qg||(qg={}));Kd(function(e,t){var r=e.styles,n=Ss([r],void 0,h.useContext(ti)),o=h.useRef();return PE(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}),l=!1,s=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",i),a.hydrate([s])),o.current=[a,l],function(){a.flush()}},[t]),PE(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(n.next!==void 0&&zd(t,n.next,!0),a.tags.length){var s=a.tags[a.tags.length-1].nextElementSibling;a.before=s,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Gd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ss(t)}function ut(){var e=Gd.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 FN=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 l in i)i[l]&&l&&(a&&(a+=" "),a+=l)}break}default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function IN(e,t,r){var n=[],o=fy(e,n,r);return n.length<2?r:o+t(n)}var LN=function(e){var t=e.cache,r=e.serializedArr;return py(function(){for(var n=0;n<r.length;n++)zd(t,r[n],!1)}),null};Kd(function(e,t){var r=[],n=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=Ss(s,t.registered);return r.push(c),Ud(t,c,!1),t.key+"-"+c.name},o=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return IN(t.registered,n,FN(s))},i={css:n,cx:o,theme:h.useContext(ti)},a=e.children(i);return h.createElement(h.Fragment,null,h.createElement(LN,{cache:t,serializedArr:r}),a)});var NN=/^((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)-.*))$/,Vd=ET(function(e){return NN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),MN=Vd,BN=function(e){return e!=="theme"},kE=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?MN:BN},FE=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},jN=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ud(t,r,n),py(function(){return zd(t,r,n)}),null},HN=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 l=FE(t,r,n),s=l||kE(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,y=1;y<p;y++)d.push(c[y],f[y])}var b=Kd(function(S,g,v){var E=u&&S.as||o,w="",$=[],x=S;if(S.theme==null){x={};for(var C in S)x[C]=S[C];x.theme=h.useContext(ti)}typeof S.className=="string"?w=fy(g.registered,$,S.className):S.className!=null&&(w=S.className+" ");var T=Ss(d.concat($),g.registered,x);w+=g.key+"-"+T.name,a!==void 0&&(w+=" "+a);var A=u&&l===void 0?kE(E):s,O={};for(var _ in S)u&&_==="as"||A(_)&&(O[_]=S[_]);return O.className=w,v&&(O.ref=v),h.createElement(h.Fragment,null,h.createElement(jN,{cache:g,serialized:T,isStringTag:typeof E=="string"}),h.createElement(E,O))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=d,b.__emotion_forwardProp=l,Object.defineProperty(b,"toString",{value:function(){return"."+a}}),b.withComponent=function(S,g){var v=e(S,mt({},r,g,{shouldForwardProp:FE(b,g,!0)}));return v.apply(void 0,d)},b}},UN=["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"],R=HN.bind(null);UN.forEach(function(e){R[e]=R(e)});var _T=Lt(ai(),1),my={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},TT=(0,_T.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,_T.default)(1)(({color:e,background:t,typography:r})=>{let n=TT({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)":my,".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 zN={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},KN=ut`
  496. from {
  497. transform: rotate(0deg);
  498. }
  499. to {
  500. transform: rotate(360deg);
  501. }
  502. `,OT=ut`
  503. 0%, 100% { opacity: 1; }
  504. 50% { opacity: .4; }
  505. `,WN=ut`
  506. 0% { transform: translateY(1px); }
  507. 25% { transform: translateY(0px); }
  508. 50% { transform: translateY(-3px); }
  509. 100% { transform: translateY(1px); }
  510. `,GN=ut`
  511. 0%, 100% { transform:translate3d(0,0,0); }
  512. 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
  513. 37.5%, 87.5% { transform: translate3d(4px,0,0); }
  514. `,VN=Gd`
  515. animation: ${OT} 1.5s ease-in-out infinite;
  516. color: transparent;
  517. cursor: progress;
  518. `,YN=Gd`
  519. transition: all 150ms ease-out;
  520. transform: translate3d(0, 0, 0);
  521. &:hover {
  522. transform: translate3d(0, -2px, 0);
  523. }
  524. &:active {
  525. transform: translate3d(0, 0, 0);
  526. }
  527. `,qN={rotate360:KN,glow:OT,float:WN,jiggle:GN,inlineGlow:VN,hoverable:YN},XN={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"},JN={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"},QN=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:jL(n)}),{}),ZN=({colors:e,mono:t})=>{let r=QN(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}}},e7={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},t7={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},r7=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:oe.tertiary,ancillary:oe.ancillary,orange:oe.orange,gold:oe.gold,green:oe.green,seafoam:oe.seafoam,purple:oe.purple,ultraviolet:oe.ultraviolet,lightest:oe.lightest,lighter:oe.lighter,light:oe.light,mediumlight:oe.mediumlight,medium:oe.medium,mediumdark:oe.mediumdark,dark:oe.dark,darker:oe.darker,darkest:oe.darkest,border:oe.border,positive:oe.positive,negative:oe.negative,warning:oe.warning,critical:oe.critical,defaultText:e.textColor||oe.darkest,inverseText:e.textInverseColor||oe.lightest,positiveText:oe.positiveText,negativeText:oe.negativeText,warningText:oe.warningText}),Gc=(e=Wo[sy()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:i,appHoverBg:a,appPreviewBg:l,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:f,textInverseColor:p,barTextColor:y,barHoverColor:b,barSelectedColor:S,barBg:g,buttonBg:v,buttonBorder:E,booleanBg:w,booleanSelectedBg:$,inputBg:x,inputBorder:C,inputTextColor:T,inputBorderRadius:A,brandTitle:O,brandUrl:_,brandImage:I,brandTarget:L,gridCellSize:M,...U}=e;return{...U,base:t,...t==="dark"?Kg.dark:Kg.light,color:r7(e),background:{app:o,bar:g,content:i,preview:l,gridCellSize:M||xn.gridCellSize,hoverable:a,positive:xn.positive,negative:xn.negative,warning:xn.warning,critical:xn.critical},typography:{fonts:{base:c,mono:d},weight:Lr.weight,size:Lr.size},animation:qN,easing:zN,input:{background:x,border:C,borderRadius:A,color:T},button:{background:v||x,border:E||C},boolean:{background:w||C,selectedBackground:$||x},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:y,barHoverColor:b||n,barSelectedColor:S||n,barBg:g,brand:{title:O,url:_,image:I||(O?null:void 0),target:L},code:ZN({colors:t==="dark"?t7:e7,mono:d}),addonActionsTheme:{...t==="dark"?XN:JN,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Lr.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:_L(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Lr.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:n7}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var o7=e=>Object.keys(e).length===0,wp=e=>e!=null&&typeof e=="object",i7=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),a7=()=>Object.create(null),AT=(e,t)=>e===t||!wp(e)||!wp(t)?{}:Object.keys(e).reduce((r,n)=>{if(i7(t,n)){let o=AT(e[n],t[n]);return wp(o)&&o7(o)||(r[n]=o),r}return r[n]=void 0,r},a7()),l7=AT,RT=e=>{if(!e)return Gc(Wg);let t=l7(Wg,e);return Object.keys(t).length&&n7.warn(gr`
  528. Your theme is missing properties, you should update your theme!
  529. theme-data missing:
  530. `,t),Gc(e)},Vc="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const s7=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:hy,background:xn,color:oe,convert:Gc,create:fT,createCache:wT,createReset:TT,css:Gd,ensure:RT,getPreferredColorScheme:sy,ignoreSsrWarning:Vc,isPropValid:Vd,get jsx(){return qg},keyframes:ut,lighten:ly,srOnlyStyles:my,styled:R,themes:Wo,tokens:Kg,typography:Lr,useTheme:Wd},Symbol.toStringTag,{value:"Module"}));var DT={exports:{}},Yd={};/**
  531. * @license React
  532. * react-jsx-runtime.production.min.js
  533. *
  534. * Copyright (c) Facebook, Inc. and its affiliates.
  535. *
  536. * This source code is licensed under the MIT license found in the
  537. * LICENSE file in the root directory of this source tree.
  538. */var u7=h,c7=Symbol.for("react.element"),d7=Symbol.for("react.fragment"),f7=Object.prototype.hasOwnProperty,p7=u7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h7={key:!0,ref:!0,__self:!0,__source:!0};function PT(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)f7.call(t,n)&&!h7.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:c7,type:e,key:i,ref:a,props:o,_owner:p7.current}}Yd.Fragment=d7;Yd.jsx=PT;Yd.jsxs=PT;DT.exports=Yd;var pe=DT.exports,g7=R.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}]),kT=R.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});kT.displayName="ActionButton";var m7=({actionItems:e,flexLayout:t=!1,...r})=>m.createElement(g7,{...r,$flexLayout:t},e.map(({title:n,className:o,onClick:i,disabled:a},l)=>m.createElement(kT,{key:l,className:o,onClick:i,disabled:!!a},n)));function y7(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function FT(...e){return t=>e.forEach(r=>y7(r,t))}function ci(...e){return h.useCallback(FT(...e),e)}var IT=h.forwardRef((e,t)=>{let{children:r,...n}=e,o=h.Children.toArray(r),i=o.find(v7);if(i){let a=i.props.children,l=o.map(s=>s===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:s);return pe.jsx(Xg,{...n,ref:t,children:h.isValidElement(a)?h.cloneElement(a,void 0,l):null})}return pe.jsx(Xg,{...n,ref:t,children:r})});IT.displayName="Slot";var Xg=h.forwardRef((e,t)=>{let{children:r,...n}=e;if(h.isValidElement(r)){let o=S7(r);return h.cloneElement(r,{...E7(n,r.props),ref:t?FT(t,o):o})}return h.Children.count(r)>1?h.Children.only(null):null});Xg.displayName="SlotClone";var b7=({children:e})=>pe.jsx(pe.Fragment,{children:e});function v7(e){return h.isValidElement(e)&&e.type===b7}function E7(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 S7(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 w7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ws=w7.reduce((e,t)=>{let r=h.forwardRef((n,o)=>{let{asChild:i,...a}=n,l=i?IT:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),pe.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Jg=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function x7(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}var xs=e=>{let{present:t,children:r}=e,n=$7(t),o=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),i=ci(n.ref,C7(o));return typeof r=="function"||n.isPresent?h.cloneElement(o,{ref:i}):null};xs.displayName="Presence";function $7(e){let[t,r]=h.useState(),n=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=x7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{let u=fu(n.current);i.current=l==="mounted"?u:"none"},[l]),Jg(()=>{let u=n.current,c=o.current;if(c!==e){let d=i.current,f=fu(u);e?s("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Jg(()=>{if(t){let u=d=>{let f=fu(n.current).includes(d.animationName);d.target===t&&f&&Oa.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=fu(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function fu(e){return(e==null?void 0:e.animationName)||"none"}function C7(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 _7(e,t=[]){let r=[];function n(i,a){let l=h.createContext(a),s=r.length;r=[...r,a];function u(d){let{scope:f,children:p,...y}=d,b=(f==null?void 0:f[e][s])||l,S=h.useMemo(()=>y,Object.values(y));return pe.jsx(b.Provider,{value:S,children:p})}function c(d,f){let p=(f==null?void 0:f[e][s])||l,y=h.useContext(p);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}let o=()=>{let i=r.map(a=>h.createContext(a));return function(a){let l=(a==null?void 0:a[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,T7(o,...t)]}function T7(...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:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...a,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Lo(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var O7=h.createContext(void 0);function A7(e){let t=h.useContext(O7);return e||t||"ltr"}function R7(e,[t,r]){return Math.min(r,Math.max(t,e))}function Go(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 D7(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}var yy="ScrollArea",[LT]=_7(yy),[P7,Cr]=LT(yy),NT=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=e,[l,s]=h.useState(null),[u,c]=h.useState(null),[d,f]=h.useState(null),[p,y]=h.useState(null),[b,S]=h.useState(null),[g,v]=h.useState(0),[E,w]=h.useState(0),[$,x]=h.useState(!1),[C,T]=h.useState(!1),A=ci(t,_=>s(_)),O=A7(o);return pe.jsx(P7,{scope:r,type:n,dir:O,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:y,scrollbarXEnabled:$,onScrollbarXEnabledChange:x,scrollbarY:b,onScrollbarYChange:S,scrollbarYEnabled:C,onScrollbarYEnabledChange:T,onCornerWidthChange:v,onCornerHeightChange:w,children:pe.jsx(ws.div,{dir:O,...a,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});NT.displayName=yy;var MT="ScrollAreaViewport",BT=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...a}=e,l=Cr(MT,r),s=h.useRef(null),u=ci(t,s,l.onViewportChange);return pe.jsxs(pe.Fragment,{children:[pe.jsx("style",{dangerouslySetInnerHTML:{__html:`
  539. [data-radix-scroll-area-viewport] {
  540. scrollbar-width: none;
  541. -ms-overflow-style: none;
  542. -webkit-overflow-scrolling: touch;
  543. }
  544. [data-radix-scroll-area-viewport]::-webkit-scrollbar {
  545. display: none;
  546. }
  547. :where([data-radix-scroll-area-viewport]) {
  548. display: flex;
  549. flex-direction: column;
  550. align-items: stretch;
  551. }
  552. :where([data-radix-scroll-area-content]) {
  553. flex-grow: 1;
  554. }
  555. `},nonce:i}),pe.jsx(ws.div,{"data-radix-scroll-area-viewport":"",...a,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:U7({asChild:o,children:n},c=>pe.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});BT.displayName=MT;var fn="ScrollAreaScrollbar",jT=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Cr(fn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,l=e.orientation==="horizontal";return h.useEffect(()=>(l?i(!0):a(!0),()=>{l?i(!1):a(!1)}),[l,i,a]),o.type==="hover"?pe.jsx(k7,{...n,ref:t,forceMount:r}):o.type==="scroll"?pe.jsx(F7,{...n,ref:t,forceMount:r}):o.type==="auto"?pe.jsx(HT,{...n,ref:t,forceMount:r}):o.type==="always"?pe.jsx(by,{...n,ref:t}):null});jT.displayName=fn;var k7=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Cr(fn,e.__scopeScrollArea),[i,a]=h.useState(!1);return h.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=()=>{window.clearTimeout(s),a(!0)},c=()=>{s=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),pe.jsx(xs,{present:r||i,children:pe.jsx(HT,{"data-state":i?"visible":"hidden",...n,ref:t})})}),F7=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Cr(fn,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Xd(()=>s("SCROLL_END"),100),[l,s]=D7("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 h.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),h.useEffect(()=>{let u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let p=u[c];d!==p&&(s("SCROLL"),a()),d=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,i,s,a]),pe.jsx(xs,{present:r||l!=="hidden",children:pe.jsx(by,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Go(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Go(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),HT=h.forwardRef((e,t)=>{let r=Cr(fn,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,a]=h.useState(!1),l=e.orientation==="horizontal",s=Xd(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;a(l?u:c)}},10);return fa(r.viewport,s),fa(r.content,s),pe.jsx(xs,{present:n||i,children:pe.jsx(by,{"data-state":i?"visible":"hidden",...o,ref:t})})}),by=h.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=Cr(fn,e.__scopeScrollArea),i=h.useRef(null),a=h.useRef(0),[l,s]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=GT(l.viewport,l.content),c={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function d(f,p){return j7(f,a.current,l,p)}return r==="horizontal"?pe.jsx(I7,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let f=o.viewport.scrollLeft,p=IE(f,l,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):r==="vertical"?pe.jsx(L7,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let f=o.viewport.scrollTop,p=IE(f,l);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),I7=h.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Cr(fn,e.__scopeScrollArea),[a,l]=h.useState(),s=h.useRef(null),u=ci(t,s,i.onScrollbarXChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),pe.jsx(zT,{"data-orientation":"horizontal",...o,ref:u,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":qd(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(i.viewport){let f=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),YT(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:qc(a.paddingLeft),paddingEnd:qc(a.paddingRight)}})}})}),L7=h.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Cr(fn,e.__scopeScrollArea),[a,l]=h.useState(),s=h.useRef(null),u=ci(t,s,i.onScrollbarYChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),pe.jsx(zT,{"data-orientation":"vertical",...o,ref:u,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":qd(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(i.viewport){let f=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),YT(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:qc(a.paddingTop),paddingEnd:qc(a.paddingBottom)}})}})}),[N7,UT]=LT(fn),zT=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=Cr(fn,r),[y,b]=h.useState(null),S=ci(t,A=>b(A)),g=h.useRef(null),v=h.useRef(""),E=p.viewport,w=n.content-n.viewport,$=Lo(c),x=Lo(s),C=Xd(d,10);function T(A){if(g.current){let O=A.clientX-g.current.left,_=A.clientY-g.current.top;u({x:O,y:_})}}return h.useEffect(()=>{let A=O=>{let _=O.target;y!=null&&y.contains(_)&&$(O,w)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[E,y,w,$]),h.useEffect(x,[n,x]),fa(y,C),fa(p.content,C),pe.jsx(N7,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:Lo(i),onThumbPointerUp:Lo(a),onThumbPositionChange:x,onThumbPointerDown:Lo(l),children:pe.jsx(ws.div,{...f,ref:S,style:{position:"absolute",...f.style},onPointerDown:Go(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),g.current=y.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),T(A))}),onPointerMove:Go(e.onPointerMove,T),onPointerUp:Go(e.onPointerUp,A=>{let O=A.target;O.hasPointerCapture(A.pointerId)&&O.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=""),g.current=null})})})}),Yc="ScrollAreaThumb",KT=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=UT(Yc,e.__scopeScrollArea);return pe.jsx(xs,{present:r||o.hasThumb,children:pe.jsx(M7,{ref:t,...n})})}),M7=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,i=Cr(Yc,r),a=UT(Yc,r),{onThumbPositionChange:l}=a,s=ci(t,d=>a.onThumbChange(d)),u=h.useRef(),c=Xd(()=>{u.current&&(u.current(),u.current=void 0)},100);return h.useEffect(()=>{let d=i.viewport;if(d){let f=()=>{if(c(),!u.current){let p=H7(d,l);u.current=p,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[i.viewport,c,l]),pe.jsx(ws.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Go(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),p=d.clientX-f.left,y=d.clientY-f.top;a.onThumbPointerDown({x:p,y})}),onPointerUp:Go(e.onPointerUp,a.onThumbPointerUp)})});KT.displayName=Yc;var vy="ScrollAreaCorner",WT=h.forwardRef((e,t)=>{let r=Cr(vy,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?pe.jsx(B7,{...e,ref:t}):null});WT.displayName=vy;var B7=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=Cr(vy,r),[i,a]=h.useState(0),[l,s]=h.useState(0),u=!!(i&&l);return fa(o.scrollbarX,()=>{var d;let c=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(c),s(c)}),fa(o.scrollbarY,()=>{var d;let c=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(c),a(c)}),u?pe.jsx(ws.div,{...n,ref:t,style:{width:i,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function qc(e){return e?parseInt(e,10):0}function GT(e,t){let r=e/t;return isNaN(r)?0:r}function qd(e){let t=GT(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function j7(e,t,r,n="ltr"){let o=qd(r),i=o/2,a=t||i,l=o-a,s=r.scrollbar.paddingStart+a,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return VT([s,u],d)(e)}function IE(e,t,r="ltr"){let n=qd(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,l=i-n,s=r==="ltr"?[0,a]:[a*-1,0],u=R7(e,s);return VT([0,a],[0,l])(u)}function VT(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 YT(e,t){return e>0&&e<t}var H7=(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,l=r.top!==i.top;(a||l)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Xd(e,t){let r=Lo(e),n=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(n.current),[]),h.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function fa(e,t){let r=Lo(t);Jg(()=>{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 U7(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=h.Children.only(n);return h.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var z7=NT,K7=BT,W7=jT,G7=KT,V7=WT,Y7=R(z7)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),q7=R(K7)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),LE=R(W7)(({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}})),NE=R(G7)(({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%"}})),Ey=h.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:i=0,className:a,focusable:l=!1},s)=>m.createElement(Y7,{scrollbarsize:o,offset:n,className:a},m.createElement(q7,{ref:s,style:{scrollPadding:i},tabIndex:l?0:void 0,focusable:l},e),t&&m.createElement(LE,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},m.createElement(NE,null)),r&&m.createElement(LE,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},m.createElement(NE,null)),t&&r&&m.createElement(V7,null)));Ey.displayName="ScrollArea";var fr=null;function ME(e,t="assertive",r=7e3){fr?fr.announce(e,t,r):(fr=new X7,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?fr.announce(e,t,r):setTimeout(()=>{fr!=null&&fr.isAttached()&&(fr==null||fr.announce(e,t,r))},100))}function _ce(e){fr&&fr.clear(e)}var X7=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 J7(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}var Q7=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),h.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}))),Z7=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),e9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),t9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.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}))),Qg=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),r9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),BE=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),n9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),qT=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z",fill:e}))),o9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),h.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}))),i9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),h.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}))),a9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.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}),h.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}))),l9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.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}))),s9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),h.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),u9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"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",fill:e}),h.createElement("path",{d:"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",fill:e}))),c9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.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}))),XT=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.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}))),d9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),JT=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),f9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.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}))),p9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.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}))),h9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),g9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),m9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.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}))),jE=new Map,y9="UNIVERSAL_STORE:",dr={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},ko=class ae{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,l=i?n:o;if(this.debug("subscribe",{eventType:a,listener:l}),!l)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(l),()=>{var s;this.debug("unsubscribe",{eventType:a,listener:l}),this.listeners.has(a)&&(this.listeners.get(a).delete(l),((s=this.listeners.get(a))==null?void 0:s.size)===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==ae.Status.READY)throw new TypeError(gr`Cannot send event before store is ready. You can get the current status with store.status,
  556. or await store.readyPromise to wait for the store to be ready before sending events.
  557. ${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,!ae.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(ae.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?ae.ActorType.LEADER:ae.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${y9}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===ae.ActorType.LEADER)this.syncing={state:dr.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((a,l)=>{n=()=>{this.syncing.state===dr.PENDING&&(this.syncing.state=dr.RESOLVED,a())},o=s=>{this.syncing.state===dr.PENDING&&(this.syncing.state=dr.REJECTED,l(s))}});this.syncing={state:dr.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)??ae.preparation.channel,this.environment=(r==null?void 0:r.environment)??ae.preparation.environment,this.channel&&this.environment?(ae.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):ae.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});ae.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??ae.Environment.UNKNOWN})}get status(){var t;if(!this.channel||!this.environment)return ae.Status.UNPREPARED;switch((t=this.syncing)==null?void 0:t.state){case dr.PENDING:case void 0:return ae.Status.SYNCING;case dr.REJECTED:return ae.Status.ERROR;case dr.RESOLVED:default:return ae.Status.READY}}untilReady(){var t;return Promise.all([ae.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(gr`[UniversalStore]
  558. create`,{options:t});let r=jE.get(t.id);if(r)return console.warn(gr`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
  559. You should reuse the existing instance instead of trying to create a new one.`),r;ae.isInternalConstructing=!0;let n=new ae(t);return jE.set(t.id,n),n}static __prepare(t,r){ae.preparation.channel=t,ae.preparation.environment=r,ae.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!==ae.Status.READY)throw new TypeError(gr`Cannot set state before store is ready. You can get the current status with store.status,
  560. or await store.readyPromise to wait for the store to be ready before sending events.
  561. ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:ae.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(ae.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===ae.ActorType.LEADER?this.emitToChannel({type:ae.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:ae.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:ae.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,l,s;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)===dr.PENDING&&r.type!==ae.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===ae.ActorType.LEADER){let u=!0;switch(r.type){case ae.InternalEventType.EXISTING_STATE_REQUEST:u=!1;let c={type:ae.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:c}),this.emitToChannel(c,{actor:this.actor}),this.emitToListeners(c,{actor:this.actor});break;case ae.InternalEventType.LEADER_CREATED:u=!1,this.syncing.state=dr.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(gr`Detected multiple UniversalStore leaders created with the same id "${this.id}".
  562. Only one leader can exists at a time, your stores are now in an invalid state.
  563. Leaders detected:
  564. this: ${JSON.stringify(this.actor,null,2)}
  565. other: ${JSON.stringify(n.actor,null,2)}`);break}u&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===ae.ActorType.FOLLOWER)switch(r.type){case ae.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)!==dr.PENDING)break;(s=(l=this.syncing).resolve)==null||s.call(l);let u={type:ae.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(u,n);break}switch(r.type){case ae.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(gr`[UniversalStore::${this.id}::${this.environment??ae.Environment.UNKNOWN}]
  566. ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){ae.preparation.reject(new Error("reset")),ae.setupPreparationPromise(),ae.isInternalConstructing=!1}};ko.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},ko.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},ko.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"},ko.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},ko.isInternalConstructing=!1,ko.setupPreparationPromise();var Sy=ko,b9=Object.create,QT=Object.defineProperty,v9=Object.getOwnPropertyDescriptor,ZT=Object.getOwnPropertyNames,E9=Object.getPrototypeOf,S9=Object.prototype.hasOwnProperty,ue=(e,t)=>function(){return t||(0,e[ZT(e)[0]])((t={exports:{}}).exports,t),t.exports},w9=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ZT(t))!S9.call(e,o)&&o!==r&&QT(e,o,{get:()=>t[o],enumerable:!(n=v9(t,o))||n.enumerable});return e},wy=(e,t,r)=>(r=e!=null?b9(E9(e)):{},w9(!e||!e.__esModule?QT(r,"default",{value:e,enumerable:!0}):r,e)),x9=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],$9=["detail"];function C9(e){let t=x9.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of $9.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var eO=ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),_9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),T9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),O9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),A9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),R9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),xy=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),D9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),P9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),k9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),F9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),I9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),L9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),N9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),M9=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}}}),B9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=M9();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),j9=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),$y=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=j9();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),H9=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}}),tO=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 l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),rO=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=tO();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),nO=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}}),oO=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=eO();t.exports=r.getPrototypeOf||null}}),U9=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(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},l=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),f,p=function(){if(this instanceof f){var v=c.apply(this,a(d,arguments));return Object(v)===v?v:this}return c.apply(u,a(d,arguments))},y=o(0,c.length-d.length),b=[],S=0;S<y;S++)b[S]="$"+S;if(f=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var g=function(){};g.prototype=c.prototype,f.prototype=new g,g.prototype=null}return f}}}),Jd=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=U9();t.exports=Function.prototype.bind||r}}),Cy=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}}),iO=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}}),z9=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}}),K9=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Jd(),n=iO(),o=Cy(),i=z9();t.exports=i||r.call(o,n)}}),aO=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Jd(),n=xy(),o=Cy(),i=K9();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),W9=ue({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=aO(),n=$y(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?function(s){return l(s==null?s:a(s))}:!1}}),G9=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=nO(),n=oO(),o=W9();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}}),lO=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=Jd();t.exports=o.call(r,n)}}),V9=ue({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=eO(),o=_9(),i=T9(),a=O9(),l=A9(),s=R9(),u=xy(),c=D9(),d=P9(),f=k9(),p=F9(),y=I9(),b=L9(),S=N9(),g=B9(),v=Function,E=function(W){try{return v('"use strict"; return ('+W+").constructor;")()}catch{}},w=$y(),$=H9(),x=function(){throw new u},C=w?function(){try{return arguments.callee,x}catch{try{return w(arguments,"callee").get}catch{return x}}}():x,T=rO()(),A=G9(),O=oO(),_=nO(),I=iO(),L=Cy(),M={},U=typeof Uint8Array>"u"||!A?r:A(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%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%":v,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!A?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":U,"%TypeError%":u,"%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%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":O,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":S,"%Math.sign%":g,"%Reflect.getPrototypeOf%":_};if(A)try{null.error}catch(W){F=A(A(W)),k["%Error.prototype%"]=F}var F,P=function W(j){var G;if(j==="%AsyncFunction%")G=E("async function () {}");else if(j==="%GeneratorFunction%")G=E("function* () {}");else if(j==="%AsyncGeneratorFunction%")G=E("async function* () {}");else if(j==="%AsyncGenerator%"){var J=W("%AsyncGeneratorFunction%");J&&(G=J.prototype)}else if(j==="%AsyncIteratorPrototype%"){var ne=W("%AsyncGenerator%");ne&&A&&(G=A(ne.prototype))}return k[j]=G,G},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"]},D=Jd(),z=lO(),V=D.call(L,Array.prototype.concat),Z=D.call(I,Array.prototype.splice),q=D.call(L,String.prototype.replace),K=D.call(L,String.prototype.slice),X=D.call(L,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,H=function(W){var j=K(W,0,1),G=K(W,-1);if(j==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&j!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var J=[];return q(W,ee,function(ne,de,te,Ce){J[J.length]=te?q(Ce,N,"$1"):de||ne}),J},Y=function(W,j){var G=W,J;if(z(B,G)&&(J=B[G],G="%"+J[0]+"%"),z(k,G)){var ne=k[G];if(ne===M&&(ne=P(G)),typeof ne>"u"&&!j)throw new u("intrinsic "+W+" exists, but is not available. Please file an issue!");return{alias:J,name:G,value:ne}}throw new s("intrinsic "+W+" does not exist!")};t.exports=function(W,j){if(typeof W!="string"||W.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new u('"allowMissing" argument must be a boolean');if(X(/^%?[^%]*%?$/,W)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=H(W),J=G.length>0?G[0]:"",ne=Y("%"+J+"%",j),de=ne.name,te=ne.value,Ce=!1,xe=ne.alias;xe&&(J=xe[0],Z(G,V([0,1],xe)));for(var he=1,ie=!0;he<G.length;he+=1){var Te=G[he],Dt=K(Te,0,1),_r=K(Te,-1);if((Dt==='"'||Dt==="'"||Dt==="`"||_r==='"'||_r==="'"||_r==="`")&&Dt!==_r)throw new s("property names with quotes must have matching quotes");if((Te==="constructor"||!ie)&&(Ce=!0),J+="."+Te,de="%"+J+"%",z(k,de))te=k[de];else if(te!=null){if(!(Te in te)){if(!j)throw new u("base intrinsic for "+W+" exists, but the property is not available.");return}if(w&&he+1>=G.length){var pn=w(te,Te);ie=!!pn,ie&&"get"in pn&&!("originalValue"in pn.get)?te=pn.get:te=te[Te]}else ie=z(te,Te),te=te[Te];ie&&!Ce&&(k[de]=te)}}return te}}}),_y=ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=V9(),n=aO(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),Y9=ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=tO();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),sO=ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=_y(),n=Y9()(),o=lO(),i=$y(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(p){if(!p||typeof p!="object")return!1;var y=i(p,"lastIndex"),b=y&&o(y,"value");if(!b)return!1;try{l(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",a=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var l,s,u,c,d,f;t.exports=a}}),q9=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)}}}),X9=ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=_y(),n=sO(),o=r("RegExp.prototype.exec"),i=xy();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),J9=ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=_y(),n=r("Object.prototype.toString"),o=rO()(),i=X9();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var a,l,s}}),Q9=wy(sO()),Z9=wy(q9()),eM=wy(J9());function tM(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var rM=typeof global=="object"&&global&&global.Object===Object&&global,nM=rM,oM=typeof self=="object"&&self&&self.Object===Object&&self,iM=nM||oM||Function("return this")(),Ty=iM,aM=Ty.Symbol,pa=aM,uO=Object.prototype,lM=uO.hasOwnProperty,sM=uO.toString,el=pa?pa.toStringTag:void 0;function uM(e){var t=lM.call(e,el),r=e[el];try{e[el]=void 0;var n=!0}catch{}var o=sM.call(e);return n&&(t?e[el]=r:delete e[el]),o}var cM=uM,dM=Object.prototype,fM=dM.toString;function pM(e){return fM.call(e)}var hM=pM,gM="[object Null]",mM="[object Undefined]",HE=pa?pa.toStringTag:void 0;function yM(e){return e==null?e===void 0?mM:gM:HE&&HE in Object(e)?cM(e):hM(e)}var cO=yM;function bM(e){return e!=null&&typeof e=="object"}var vM=bM,EM="[object Symbol]";function SM(e){return typeof e=="symbol"||vM(e)&&cO(e)==EM}var Oy=SM;function wM(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 xM=wM,$M=Array.isArray,Ay=$M,UE=pa?pa.prototype:void 0,zE=UE?UE.toString:void 0;function dO(e){if(typeof e=="string")return e;if(Ay(e))return xM(e,dO)+"";if(Oy(e))return zE?zE.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var CM=dO;function _M(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fO=_M,TM="[object AsyncFunction]",OM="[object Function]",AM="[object GeneratorFunction]",RM="[object Proxy]";function DM(e){if(!fO(e))return!1;var t=cO(e);return t==OM||t==AM||t==TM||t==RM}var PM=DM,kM=Ty["__core-js_shared__"],xp=kM,KE=function(){var e=/[^.]+$/.exec(xp&&xp.keys&&xp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function FM(e){return!!KE&&KE in e}var IM=FM,LM=Function.prototype,NM=LM.toString;function MM(e){if(e!=null){try{return NM.call(e)}catch{}try{return e+""}catch{}}return""}var BM=MM,jM=/[\\^$.*+?()[\]{}|]/g,HM=/^\[object .+?Constructor\]$/,UM=Function.prototype,zM=Object.prototype,KM=UM.toString,WM=zM.hasOwnProperty,GM=RegExp("^"+KM.call(WM).replace(jM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VM(e){if(!fO(e)||IM(e))return!1;var t=PM(e)?GM:HM;return t.test(BM(e))}var YM=VM;function qM(e,t){return e==null?void 0:e[t]}var XM=qM;function JM(e,t){var r=XM(e,t);return YM(r)?r:void 0}var pO=JM;function QM(e,t){return e===t||e!==e&&t!==t}var ZM=QM,eB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tB=/^\w*$/;function rB(e,t){if(Ay(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Oy(e)?!0:tB.test(e)||!eB.test(e)||t!=null&&e in Object(t)}var nB=rB,oB=pO(Object,"create"),ns=oB;function iB(){this.__data__=ns?ns(null):{},this.size=0}var aB=iB;function lB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sB=lB,uB="__lodash_hash_undefined__",cB=Object.prototype,dB=cB.hasOwnProperty;function fB(e){var t=this.__data__;if(ns){var r=t[e];return r===uB?void 0:r}return dB.call(t,e)?t[e]:void 0}var pB=fB,hB=Object.prototype,gB=hB.hasOwnProperty;function mB(e){var t=this.__data__;return ns?t[e]!==void 0:gB.call(t,e)}var yB=mB,bB="__lodash_hash_undefined__";function vB(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ns&&t===void 0?bB:t,this}var EB=vB;function Da(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])}}Da.prototype.clear=aB;Da.prototype.delete=sB;Da.prototype.get=pB;Da.prototype.has=yB;Da.prototype.set=EB;var WE=Da;function SB(){this.__data__=[],this.size=0}var wB=SB;function xB(e,t){for(var r=e.length;r--;)if(ZM(e[r][0],t))return r;return-1}var Qd=xB,$B=Array.prototype,CB=$B.splice;function _B(e){var t=this.__data__,r=Qd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():CB.call(t,r,1),--this.size,!0}var TB=_B;function OB(e){var t=this.__data__,r=Qd(t,e);return r<0?void 0:t[r][1]}var AB=OB;function RB(e){return Qd(this.__data__,e)>-1}var DB=RB;function PB(e,t){var r=this.__data__,n=Qd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var kB=PB;function Pa(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])}}Pa.prototype.clear=wB;Pa.prototype.delete=TB;Pa.prototype.get=AB;Pa.prototype.has=DB;Pa.prototype.set=kB;var FB=Pa,IB=pO(Ty,"Map"),LB=IB;function NB(){this.size=0,this.__data__={hash:new WE,map:new(LB||FB),string:new WE}}var MB=NB;function BB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var jB=BB;function HB(e,t){var r=e.__data__;return jB(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Zd=HB;function UB(e){var t=Zd(this,e).delete(e);return this.size-=t?1:0,t}var zB=UB;function KB(e){return Zd(this,e).get(e)}var WB=KB;function GB(e){return Zd(this,e).has(e)}var VB=GB;function YB(e,t){var r=Zd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var qB=YB;function ka(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])}}ka.prototype.clear=MB;ka.prototype.delete=zB;ka.prototype.get=WB;ka.prototype.has=VB;ka.prototype.set=qB;var hO=ka,XB="Expected a function";function Ry(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(XB);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(Ry.Cache||hO),r}Ry.Cache=hO;var JB=Ry,QB=500;function ZB(e){var t=JB(e,function(n){return r.size===QB&&r.clear(),n}),r=t.cache;return t}var ej=ZB,tj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rj=/\\(\\)?/g,nj=ej(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tj,function(r,n,o,i){t.push(o?i.replace(rj,"$1"):n||r)}),t}),oj=nj;function ij(e){return e==null?"":CM(e)}var aj=ij;function lj(e,t){return Ay(e)?e:nB(e,t)?[e]:oj(aj(e))}var sj=lj;function uj(e){if(typeof e=="string"||Oy(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var cj=uj;function dj(e,t){t=sj(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[cj(t[r++])];return r&&r==n?e:void 0}var fj=dj;function pj(e,t,r){var n=e==null?void 0:fj(e,t);return n===void 0?r:n}var hj=pj,Dy=tM,gj=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,mj=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function gO(e){if(!Dy(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=C9(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 yj=function(e){let t,r,n,o;return function(i,a){var l;try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==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 gj.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,Q9.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,Z9.default)(a))return;if((0,eM.default)(a)){if(!e.allowSymbol)return;let c=Symbol.keyFor(a);return c!==void 0?`_gsymbol_${c}`:`_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((l=a==null?void 0:a.constructor)!=null&&l.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let c=t.get(a);if(!c){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((f,p)=>{try{f[p]=a[p]}catch{}return f},{})};return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${c}`}let u=t.get(a);if(!u){let c=Array.isArray(a)?a:gO(a);return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}catch{return}}},bj=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:a,replacement:l})=>{let s=mj(l)?JSON.parse(l):l.split(".");s.length===0?a[i]=r:a[i]=hj(r,s)})),n==="_constructor-name_")return o;if(Dy(o)&&o.__isConvertedError__){let{message:i,...a}=o.errorProperties,l=new Error(i);return Object.assign(l,a),l}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}},mO={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},vj=(e,t={})=>{let r={...mO,...t};return JSON.stringify(gO(e),yj(r),t.space)},Ej=()=>{let e=new Map;return function t(r){Dy(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))})}},Sj=(e,t={})=>{let r={...mO,...t},n=JSON.parse(e,bj(r));return Ej()(n),n};function GE({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function VE(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 Py=class yO extends Error{constructor(t){super(yO.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),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 GE({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/${GE({code:r,category:n})}?ref=error`:typeof t=="string"?i=VE(t):Array.isArray(t)&&(i=`
  567. ${t.map(a=>` - ${VE(a)}`).join(`
  568. `)}`),`${o}${i!=null?`
  569. More info: ${i}
  570. `:""}`}},wj=class extends Py{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}},xj=class extends Py{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}},$j=Tt({"../../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}});Lt($j(),1);var Cj=class extends Py{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}},bO="status-value:",_j=["status-value:pending","status-value:success","status-value:new","status-value:modified","status-value:affected","status-value:warning","status-value:error","status-value:unknown"],Tj=e=>{if(e==="related")return"status-value:affected";let t=`${bO}${e}`;return _j.includes(t)?t:void 0},YE=e=>e==="status-value:affected"?"related":e.slice(bO.length),Oj={id:"storybook/status",leader:!0,initialState:{}},$p={SELECT:"select"};function Aj(e){let t={};for(let r of Object.values(e))for(let n of Object.values(r))t[n.value]=(t[n.value]??0)+1;return t}function Rj({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(i){e.setState(a=>{let l={...a};for(let s of i){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(i){return e.onStateChange((a,l)=>{i(a,l)})},onSelect(i){return e.subscribe($p.SELECT,a=>{i(a.payload)})},selectStatuses:i=>{e.send({type:$p.SELECT,payload:i})},unset(i){if(!i){e.setState({});return}e.setState(a=>{let l={...a};for(let s of i)delete l[s];return l})},typeId:void 0},o=i=>({getAll:n.getAll,set(a){e.setState(l=>{let s={...l};for(let u of a){let{storyId:c}=u;if(u.typeId!==i)switch(r){case"server":throw new Cj({status:u,typeId:i});case"manager":throw new wj({status:u,typeId:i});case"preview":default:throw new xj({status:u,typeId:i})}s[c]={...s[c]??{},[i]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(a){return e.subscribe($p.SELECT,l=>{l.payload.some(s=>s.typeId===i)&&a(l.payload)})},unset(a){e.setState(l=>{var u;let s={...l};for(let c in s)if((u=s[c])!=null&&u[i]&&(!a||a!=null&&a.includes(c))){let{[i]:d,...f}=s[c];s[c]=f}return s})},typeId:i});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:i=>t(e,i)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var qE=Object.prototype.hasOwnProperty;function XE(e,t,r){for(r of e.keys())if(on(r,t))return r}function on(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--&&on(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=XE(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=XE(t,o),!o)||!on(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(qE.call(e,r)&&++n&&!qE.call(t,r)||!(r in t)||!on(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function JE(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 Dj(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}const{once:Pj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ky=Lt(ai(),1),vO=Lt(t$(),1),kj=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,ky.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(kj)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var nc=Symbol("Deeply equal"),Zg=(e,t)=>{if(typeof e!=typeof t)return t;if(tn(e,t))return nc;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=Zg(e[i],o);return a!==nc&&(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 dn(e)&&dn(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Zg(e==null?void 0:e[n],t==null?void 0:t[n]);return o===nc?r:Object.assign(r,{[n]:o})},{}):t},QE=/^[a-zA-Z0-9 _-]*$/,Fj=/^-?[0-9]+(\.[0-9]+)?$/,EO=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,SO=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,em=(e="",t)=>e===null||e===""||!QE.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?QE.test(t)||Fj.test(t)||EO.test(t)||SO.test(t):Array.isArray(t)?t.every(r=>em(e,r)):dn(t)?Object.entries(t).every(([r,n])=>em(r,n)):!1,tm=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?EO.test(e)?`!hex(${e.slice(1)})`:SO.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(tm):dn(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:tm(n)}),{}):e,Ij=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},Lj=/%[0-9A-F]{2}/g,ZE=(e,t)=>{let r=Zg(e,t);if(!r||r===nc)return"";let n=Object.entries(r).reduce((o,[i,a])=>em(i,a)?Object.assign(o,{[i]:a}):(Pj.warn(gr`
  571. Omitted potentially unsafe URL args.
  572. More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
  573. `),o),{});return(0,vO.stringify)(tm(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(Lj,Ij).split(";").map(o=>o.replace("=",":")).join(";")},Nj=(0,ky.default)(1e3)(e=>e!==void 0?(0,vO.parse)(e):{}),wO=e=>Nj(e!=null&&e.search?e.search.slice(1):"");(0,ky.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});const{global:Mj}=__STORYBOOK_MODULE_GLOBAL__;function rm(){return rm=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},rm.apply(this,arguments)}var eS;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(eS||(eS={}));function Sr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nm(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 xO(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 tS;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tS||(tS={}));function om(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 Bj(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?xO(e):e;return{pathname:r?r.startsWith("/")?r:jj(r,t):t,search:Hj(n),hash:Uj(o)}}function jj(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 Cp(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 $O(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function CO(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=xO(e):(o=rm({},e),Sr(!o.pathname||!o.pathname.includes("?"),Cp("?","pathname","search",o)),Sr(!o.pathname||!o.pathname.includes("#"),Cp("#","pathname","hash",o)),Sr(!o.search||!o.search.includes("#"),Cp("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(n||a==null)l=r;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=Bj(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var Fy=e=>e.join("/").replace(/\/\/+/g,"/"),Hj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Uj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function zj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var _O=["post","put","patch","delete"];new Set(_O);var Kj=["get",..._O];new Set(Kj);function im(){return im=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},im.apply(this,arguments)}var Iy=h.createContext(null),TO=h.createContext(null);h.createContext(null);var di=h.createContext(null),OO=h.createContext(null),$s=h.createContext({outlet:null,matches:[],isDataRoute:!1}),Wj=h.createContext(null);function Gj(e,t){let{relative:r}=t===void 0?{}:t;Ly()||Sr(!1);let{basename:n,navigator:o}=h.useContext(di),{hash:i,pathname:a,search:l}=ef(e,{relative:r}),s=a;return n!=="/"&&(s=a==="/"?n:Fy([n,a])),o.createHref({pathname:s,search:l,hash:i})}function Ly(){return h.useContext(OO)!=null}function Cs(){return Ly()||Sr(!1),h.useContext(OO).location}function AO(e){h.useContext(di).static||h.useLayoutEffect(e)}function Vj(){let{isDataRoute:e}=h.useContext($s);return e?tH():Yj()}function Yj(){Ly()||Sr(!1);let e=h.useContext(Iy),{basename:t,navigator:r}=h.useContext(di),{matches:n}=h.useContext($s),{pathname:o}=Cs(),i=JSON.stringify($O(n).map(l=>l.pathnameBase)),a=h.useRef(!1);return AO(()=>{a.current=!0}),h.useCallback(function(l,s){if(s===void 0&&(s={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let u=CO(l,JSON.parse(i),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Fy([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,i,o,e])}h.createContext(null);function ef(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=h.useContext($s),{pathname:o}=Cs(),i=JSON.stringify($O(n).map(a=>a.pathnameBase));return h.useMemo(()=>CO(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function qj(){let e=eH(),t=zj(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 h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:o},r):null,null)}h.createElement(qj,null);var RO=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(RO||{}),os=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}(os||{});function Xj(e){let t=h.useContext(Iy);return t||Sr(!1),t}function Jj(e){let t=h.useContext(TO);return t||Sr(!1),t}function Qj(e){let t=h.useContext($s);return t||Sr(!1),t}function Ny(e){let t=Qj(),r=t.matches[t.matches.length-1];return r.route.id||Sr(!1),r.route.id}function Zj(){return Ny(os.UseRouteId)}function eH(){var e;let t=h.useContext(Wj),r=Jj(os.UseRouteError),n=Ny(os.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function tH(){let{router:e}=Xj(RO.UseNavigateStable),t=Ny(os.UseNavigateStable),r=h.useRef(!1);return AO(()=>{r.current=!0}),h.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,im({fromRouteId:t},o)))},[e,t])}var rH=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(rH||{});new Promise(()=>{});function ri(){return ri=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},ri.apply(this,arguments)}function My(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 oc="get",_p="application/x-www-form-urlencoded";function tf(e){return e!=null&&typeof e.tagName=="string"}function nH(e){return tf(e)&&e.tagName.toLowerCase()==="button"}function oH(e){return tf(e)&&e.tagName.toLowerCase()==="form"}function iH(e){return tf(e)&&e.tagName.toLowerCase()==="input"}function aH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lH(e,t){return e.button===0&&(!t||t==="_self")&&!aH(e)}var pu=null;function sH(){if(pu===null)try{new FormData(document.createElement("form"),0),pu=!1}catch{pu=!0}return pu}var uH=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tp(e){return e!=null&&!uH.has(e)?null:e}function cH(e,t){let r,n,o,i,a;if(oH(e)){let l=e.getAttribute("action");n=l?om(l,t):null,r=e.getAttribute("method")||oc,o=Tp(e.getAttribute("enctype"))||_p,i=new FormData(e)}else if(nH(e)||iH(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(n=s?om(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||oc,o=Tp(e.getAttribute("formenctype"))||Tp(l.getAttribute("enctype"))||_p,i=new FormData(l,e),!sH()){let{name:u,type:c,value:d}=e;if(c==="image"){let f=u?u+".":"";i.append(f+"x","0"),i.append(f+"y","0")}else u&&i.append(u,d)}}else{if(tf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=oc,n=null,o=_p,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}var dH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],fH=["aria-current","caseSensitive","className","end","style","to","children"],pH=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],hH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mH=h.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:i,state:a,target:l,to:s,preventScrollReset:u}=e,c=My(e,dH),{basename:d}=h.useContext(di),f,p=!1;if(typeof s=="string"&&gH.test(s)&&(f=s,hH))try{let g=new URL(window.location.href),v=s.startsWith("//")?new URL(g.protocol+s):new URL(s),E=om(v.pathname,d);v.origin===g.origin&&E!=null?s=E+v.search+v.hash:p=!0}catch{}let y=Gj(s,{relative:n}),b=vH(s,{replace:i,state:a,target:l,preventScrollReset:u,relative:n});function S(g){r&&r(g),g.defaultPrevented||b(g)}return h.createElement("a",ri({},c,{href:f||y,onClick:p||o?r:S,ref:t,target:l}))});h.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:a,to:l,children:s}=e,u=My(e,fH),c=ef(l,{relative:u.relative}),d=Cs(),f=h.useContext(TO),{navigator:p}=h.useContext(di),y=p.encodeLocation?p.encodeLocation(c).pathname:c.pathname,b=d.pathname,S=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;n||(b=b.toLowerCase(),S=S?S.toLowerCase():null,y=y.toLowerCase());let g=b===y||!i&&b.startsWith(y)&&b.charAt(y.length)==="/",v=S!=null&&(S===y||!i&&S.startsWith(y)&&S.charAt(y.length)==="/"),E=g?r:void 0,w;typeof o=="function"?w=o({isActive:g,isPending:v}):w=[o,g?"active":null,v?"pending":null].filter(Boolean).join(" ");let $=typeof a=="function"?a({isActive:g,isPending:v}):a;return h.createElement(mH,ri({},u,{"aria-current":E,className:w,ref:t,style:$,to:l}),typeof s=="function"?s({isActive:g,isPending:v}):s)});h.forwardRef((e,t)=>{let r=SH();return h.createElement(yH,ri({},e,{submit:r,ref:t}))});var yH=h.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:i=oc,action:a,onSubmit:l,submit:s,relative:u,preventScrollReset:c}=e,d=My(e,pH),f=i.toLowerCase()==="get"?"get":"post",p=wH(a,{relative:u});return h.createElement("form",ri({ref:t,method:f,action:p,onSubmit:r?l:y=>{if(l&&l(y),y.defaultPrevented)return;y.preventDefault();let b=y.nativeEvent.submitter,S=(b==null?void 0:b.getAttribute("formmethod"))||i;s(b||y.currentTarget,{method:S,replace:n,state:o,relative:u,preventScrollReset:c})}},d))}),am;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(am||(am={}));var rS;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rS||(rS={}));function bH(e){let t=h.useContext(Iy);return t||Sr(!1),t}function vH(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,l=Vj(),s=Cs(),u=ef(e,{relative:a});return h.useCallback(c=>{if(lH(c,r)){c.preventDefault();let d=n!==void 0?n:nm(s)===nm(u);l(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[s,l,u,n,o,r,e,i,a])}function EH(){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 SH(){let{router:e}=bH(am.UseSubmit),{basename:t}=h.useContext(di),r=Zj();return h.useCallback(function(n,o){o===void 0&&(o={}),EH();let{action:i,method:a,encType:l,formData:s,body:u}=cH(n,t);e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function wH(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=h.useContext(di),o=h.useContext($s);o||Sr(!1);let[i]=o.matches.slice(-1),a=ri({},ef(e||".",{relative:r})),l=Cs();if(e==null&&(a.search=l.search,i.route.index)){let s=new URLSearchParams(a.search);s.delete("index"),a.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Fy([n,a.pathname])),nm(a)}var{document:Oce}=Mj,lm={exports:{}};const xH="2.0.0",DO=256,$H=Number.MAX_SAFE_INTEGER||9007199254740991,CH=16,_H=DO-6,TH=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var _s={MAX_LENGTH:DO,MAX_SAFE_COMPONENT_LENGTH:CH,MAX_SAFE_BUILD_LENGTH:_H,MAX_SAFE_INTEGER:$H,RELEASE_TYPES:TH,SEMVER_SPEC_VERSION:xH,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Op={};const OH=typeof process=="object"&&Op&&Op.NODE_DEBUG&&/\bsemver\b/i.test(Op.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var rf=OH;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=_s,i=rf;t=e.exports={};const a=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,n]],y=S=>{for(const[g,v]of p)S=S.split(`${g}*`).join(`${g}{0,${v}}`).split(`${g}+`).join(`${g}{1,${v}}`);return S},b=(S,g,v)=>{const E=y(g),w=d++;i(S,w,g),c[S]=w,s[w]=g,u[w]=E,a[w]=new RegExp(g,v?"g":void 0),l[w]=new RegExp(E,v?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),b("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${f}+`),b("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),b("FULL",`^${s[c.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),b("LOOSE",`^${s[c.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),b("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),b("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),b("COERCERTL",s[c.COERCE],!0),b("COERCERTLFULL",s[c.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",b("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",b("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(lm,lm.exports);var Ts=lm.exports;const AH=Object.freeze({loose:!0}),RH=Object.freeze({}),DH=e=>e?typeof e!="object"?AH:e:RH;var By=DH;const nS=/^[0-9]+$/,PO=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;const r=nS.test(e),n=nS.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},PH=(e,t)=>PO(t,e);var kO={compareIdentifiers:PO,rcompareIdentifiers:PH};const hu=rf,{MAX_LENGTH:oS,MAX_SAFE_INTEGER:gu}=_s,{safeRe:mu,t:yu}=Ts,kH=By,{compareIdentifiers:Ap}=kO;let FH=class qr{constructor(t,r){if(r=kH(r),t instanceof qr){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>oS)throw new TypeError(`version is longer than ${oS} characters`);hu("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?mu[yu.LOOSE]:mu[yu.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>gu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>gu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>gu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const i=+o;if(i>=0&&i<gu)return i}return o}):this.prerelease=[],this.build=n[5]?n[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(t){if(hu("SemVer.compare",this.version,this.options,t),!(t instanceof qr)){if(typeof t=="string"&&t===this.version)return 0;t=new qr(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof qr||(t=new qr(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof qr||(t=new qr(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],o=t.prerelease[r];if(hu("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Ap(n,o)}while(++r)}compareBuild(t){t instanceof qr||(t=new qr(t,this.options));let r=0;do{const n=this.build[r],o=t.build[r];if(hu("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return Ap(n,o)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){const o=`-${r}`.match(this.options.loose?mu[yu.PRERELEASELOOSE]:mu[yu.PRERELEASE]);if(!o||o[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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 o=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let i=[r,o];n===!1&&(i=[r]),Ap(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Ot=FH;const iS=Ot,IH=(e,t,r=!1)=>{if(e instanceof iS)return e;try{return new iS(e,t)}catch(n){if(!r)return null;throw n}};var fi=IH;const LH=fi,NH=(e,t)=>{const r=LH(e,t);return r?r.version:null};var MH=NH;const BH=fi,jH=(e,t)=>{const r=BH(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var HH=jH;const aS=Ot,UH=(e,t,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new aS(e instanceof aS?e.version:e,r).inc(t,n,o).version}catch{return null}};var zH=UH;const lS=fi,KH=(e,t)=>{const r=lS(e,null,!0),n=lS(t,null,!0),o=r.compare(n);if(o===0)return null;const i=o>0,a=i?r:n,l=i?n:r,s=!!a.prerelease.length;if(!!l.prerelease.length&&!s){if(!l.patch&&!l.minor)return"major";if(l.compareMain(a)===0)return l.minor&&!l.patch?"minor":"patch"}const c=s?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"};var WH=KH;const GH=Ot,VH=(e,t)=>new GH(e,t).major;var YH=VH;const qH=Ot,XH=(e,t)=>new qH(e,t).minor;var JH=XH;const QH=Ot,ZH=(e,t)=>new QH(e,t).patch;var eU=ZH;const tU=fi,rU=(e,t)=>{const r=tU(e,t);return r&&r.prerelease.length?r.prerelease:null};var nU=rU;const sS=Ot,oU=(e,t,r)=>new sS(e,r).compare(new sS(t,r));var Ur=oU;const iU=Ur,aU=(e,t,r)=>iU(t,e,r);var lU=aU;const sU=Ur,uU=(e,t)=>sU(e,t,!0);var cU=uU;const uS=Ot,dU=(e,t,r)=>{const n=new uS(e,r),o=new uS(t,r);return n.compare(o)||n.compareBuild(o)};var jy=dU;const fU=jy,pU=(e,t)=>e.sort((r,n)=>fU(r,n,t));var hU=pU;const gU=jy,mU=(e,t)=>e.sort((r,n)=>gU(n,r,t));var yU=mU;const bU=Ur,vU=(e,t,r)=>bU(e,t,r)>0;var nf=vU;const EU=Ur,SU=(e,t,r)=>EU(e,t,r)<0;var Hy=SU;const wU=Ur,xU=(e,t,r)=>wU(e,t,r)===0;var FO=xU;const $U=Ur,CU=(e,t,r)=>$U(e,t,r)!==0;var IO=CU;const _U=Ur,TU=(e,t,r)=>_U(e,t,r)>=0;var Uy=TU;const OU=Ur,AU=(e,t,r)=>OU(e,t,r)<=0;var zy=AU;const RU=FO,DU=IO,PU=nf,kU=Uy,FU=Hy,IU=zy,LU=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return RU(e,r,n);case"!=":return DU(e,r,n);case">":return PU(e,r,n);case">=":return kU(e,r,n);case"<":return FU(e,r,n);case"<=":return IU(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var LO=LU;const NU=Ot,MU=fi,{safeRe:bu,t:vu}=Ts,BU=(e,t)=>{if(e instanceof NU)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?bu[vu.COERCEFULL]:bu[vu.COERCE]);else{const s=t.includePrerelease?bu[vu.COERCERTLFULL]:bu[vu.COERCERTL];let u;for(;(u=s.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),s.lastIndex=u.index+u[1].length+u[2].length;s.lastIndex=-1}if(r===null)return null;const n=r[2],o=r[3]||"0",i=r[4]||"0",a=t.includePrerelease&&r[5]?`-${r[5]}`:"",l=t.includePrerelease&&r[6]?`+${r[6]}`:"";return MU(`${n}.${o}.${i}${a}${l}`,t)};var jU=BU;const HU=fi,UU=_s,zU=Ot,KU=(e,t,r)=>{if(!UU.RELEASE_TYPES.includes(t))return null;const n=WU(e,r);return n&&GU(n,t)},WU=(e,t)=>{const r=e instanceof zU?e.version:e;return HU(r,t)},GU=(e,t)=>{if(VU(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},VU=e=>e.startsWith("pre");var YU=KU;class qU{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const o=this.map.keys().next().value;this.delete(o)}this.map.set(t,r)}return this}}var XU=qU,Rp,cS;function zr(){if(cS)return Rp;cS=1;const e=/\s+/g;class t{constructor(F,P){if(P=o(P),F instanceof t)return F.loose===!!P.loose&&F.includePrerelease===!!P.includePrerelease?F:new t(F.raw,P);if(F instanceof i)return this.raw=F.value,this.set=[[F]],this.formatted=void 0,this;if(this.options=P,this.loose=!!P.loose,this.includePrerelease=!!P.includePrerelease,this.raw=F.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(D=>!g(D[0])),this.set.length===0)this.set=[B];else if(this.set.length>1){for(const D of this.set)if(D.length===1&&v(D[0])){this.set=[D];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let F=0;F<this.set.length;F++){F>0&&(this.formatted+="||");const P=this.set[F];for(let B=0;B<P.length;B++)B>0&&(this.formatted+=" "),this.formatted+=P[B].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(F){F=F.replace(S,"");const B=((this.options.includePrerelease&&y)|(this.options.loose&&b))+":"+F,D=n.get(B);if(D)return D;const z=this.options.loose,V=z?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];F=F.replace(V,M(this.options.includePrerelease)),a("hyphen replace",F),F=F.replace(s[c.COMPARATORTRIM],d),a("comparator trim",F),F=F.replace(s[c.TILDETRIM],f),a("tilde trim",F),F=F.replace(s[c.CARETTRIM],p),a("caret trim",F);let Z=F.split(" ").map(ee=>w(ee,this.options)).join(" ").split(/\s+/).map(ee=>L(ee,this.options));z&&(Z=Z.filter(ee=>(a("loose invalid filter",ee,this.options),!!ee.match(s[c.COMPARATORLOOSE])))),a("range list",Z);const q=new Map,K=Z.map(ee=>new i(ee,this.options));for(const ee of K){if(g(ee))return[ee];q.set(ee.value,ee)}q.size>1&&q.has("")&&q.delete("");const X=[...q.values()];return n.set(B,X),X}intersects(F,P){if(!(F instanceof t))throw new TypeError("a Range is required");return this.set.some(B=>E(B,P)&&F.set.some(D=>E(D,P)&&B.every(z=>D.every(V=>z.intersects(V,P)))))}test(F){if(!F)return!1;if(typeof F=="string")try{F=new l(F,this.options)}catch{return!1}for(let P=0;P<this.set.length;P++)if(U(this.set[P],F,this.options))return!0;return!1}}Rp=t;const r=XU,n=new r,o=By,i=of(),a=rf,l=Ot,{safeRe:s,src:u,t:c,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=Ts,{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:b}=_s,S=new RegExp(u[c.BUILD],"g"),g=k=>k.value==="<0.0.0-0",v=k=>k.value==="",E=(k,F)=>{let P=!0;const B=k.slice();let D=B.pop();for(;P&&B.length;)P=B.every(z=>D.intersects(z,F)),D=B.pop();return P},w=(k,F)=>(k=k.replace(s[c.BUILD],""),a("comp",k,F),k=T(k,F),a("caret",k),k=x(k,F),a("tildes",k),k=O(k,F),a("xrange",k),k=I(k,F),a("stars",k),k),$=k=>!k||k.toLowerCase()==="x"||k==="*",x=(k,F)=>k.trim().split(/\s+/).map(P=>C(P,F)).join(" "),C=(k,F)=>{const P=F.loose?s[c.TILDELOOSE]:s[c.TILDE];return k.replace(P,(B,D,z,V,Z)=>{a("tilde",k,B,D,z,V,Z);let q;return $(D)?q="":$(z)?q=`>=${D}.0.0 <${+D+1}.0.0-0`:$(V)?q=`>=${D}.${z}.0 <${D}.${+z+1}.0-0`:Z?(a("replaceTilde pr",Z),q=`>=${D}.${z}.${V}-${Z} <${D}.${+z+1}.0-0`):q=`>=${D}.${z}.${V} <${D}.${+z+1}.0-0`,a("tilde return",q),q})},T=(k,F)=>k.trim().split(/\s+/).map(P=>A(P,F)).join(" "),A=(k,F)=>{a("caret",k,F);const P=F.loose?s[c.CARETLOOSE]:s[c.CARET],B=F.includePrerelease?"-0":"";return k.replace(P,(D,z,V,Z,q)=>{a("caret",k,D,z,V,Z,q);let K;return $(z)?K="":$(V)?K=`>=${z}.0.0${B} <${+z+1}.0.0-0`:$(Z)?z==="0"?K=`>=${z}.${V}.0${B} <${z}.${+V+1}.0-0`:K=`>=${z}.${V}.0${B} <${+z+1}.0.0-0`:q?(a("replaceCaret pr",q),z==="0"?V==="0"?K=`>=${z}.${V}.${Z}-${q} <${z}.${V}.${+Z+1}-0`:K=`>=${z}.${V}.${Z}-${q} <${z}.${+V+1}.0-0`:K=`>=${z}.${V}.${Z}-${q} <${+z+1}.0.0-0`):(a("no pr"),z==="0"?V==="0"?K=`>=${z}.${V}.${Z}${B} <${z}.${V}.${+Z+1}-0`:K=`>=${z}.${V}.${Z}${B} <${z}.${+V+1}.0-0`:K=`>=${z}.${V}.${Z} <${+z+1}.0.0-0`),a("caret return",K),K})},O=(k,F)=>(a("replaceXRanges",k,F),k.split(/\s+/).map(P=>_(P,F)).join(" ")),_=(k,F)=>{k=k.trim();const P=F.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return k.replace(P,(B,D,z,V,Z,q)=>{a("xRange",k,B,D,z,V,Z,q);const K=$(z),X=K||$(V),ee=X||$(Z),N=ee;return D==="="&&N&&(D=""),q=F.includePrerelease?"-0":"",K?D===">"||D==="<"?B="<0.0.0-0":B="*":D&&N?(X&&(V=0),Z=0,D===">"?(D=">=",X?(z=+z+1,V=0,Z=0):(V=+V+1,Z=0)):D==="<="&&(D="<",X?z=+z+1:V=+V+1),D==="<"&&(q="-0"),B=`${D+z}.${V}.${Z}${q}`):X?B=`>=${z}.0.0${q} <${+z+1}.0.0-0`:ee&&(B=`>=${z}.${V}.0${q} <${z}.${+V+1}.0-0`),a("xRange return",B),B})},I=(k,F)=>(a("replaceStars",k,F),k.trim().replace(s[c.STAR],"")),L=(k,F)=>(a("replaceGTE0",k,F),k.trim().replace(s[F.includePrerelease?c.GTE0PRE:c.GTE0],"")),M=k=>(F,P,B,D,z,V,Z,q,K,X,ee,N)=>($(B)?P="":$(D)?P=`>=${B}.0.0${k?"-0":""}`:$(z)?P=`>=${B}.${D}.0${k?"-0":""}`:V?P=`>=${P}`:P=`>=${P}${k?"-0":""}`,$(K)?q="":$(X)?q=`<${+K+1}.0.0-0`:$(ee)?q=`<${K}.${+X+1}.0-0`:N?q=`<=${K}.${X}.${ee}-${N}`:k?q=`<${K}.${X}.${+ee+1}-0`:q=`<=${q}`,`${P} ${q}`.trim()),U=(k,F,P)=>{for(let B=0;B<k.length;B++)if(!k[B].test(F))return!1;if(F.prerelease.length&&!P.includePrerelease){for(let B=0;B<k.length;B++)if(a(k[B].semver),k[B].semver!==i.ANY&&k[B].semver.prerelease.length>0){const D=k[B].semver;if(D.major===F.major&&D.minor===F.minor&&D.patch===F.patch)return!0}return!1}return!0};return Rp}var Dp,dS;function of(){if(dS)return Dp;dS=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=r(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),a("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(c){const d=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],f=c.match(d);if(!f)throw new TypeError(`Invalid comparator: ${c}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new l(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(a("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new l(c,this.options)}catch{return!1}return i(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new s(this.value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||i(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||i(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Dp=t;const r=By,{safeRe:n,t:o}=Ts,i=LO,a=rf,l=Ot,s=zr();return Dp}const JU=zr(),QU=(e,t,r)=>{try{t=new JU(t,r)}catch{return!1}return t.test(e)};var af=QU;const ZU=zr(),ez=(e,t)=>new ZU(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var tz=ez;const rz=Ot,nz=zr(),oz=(e,t,r)=>{let n=null,o=null,i=null;try{i=new nz(t,r)}catch{return null}return e.forEach(a=>{i.test(a)&&(!n||o.compare(a)===-1)&&(n=a,o=new rz(n,r))}),n};var iz=oz;const az=Ot,lz=zr(),sz=(e,t,r)=>{let n=null,o=null,i=null;try{i=new lz(t,r)}catch{return null}return e.forEach(a=>{i.test(a)&&(!n||o.compare(a)===1)&&(n=a,o=new az(n,r))}),n};var uz=sz;const Pp=Ot,cz=zr(),fS=nf,dz=(e,t)=>{e=new cz(e,t);let r=new Pp("0.0.0");if(e.test(r)||(r=new Pp("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const o=e.set[n];let i=null;o.forEach(a=>{const l=new Pp(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||fS(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!r||fS(r,i))&&(r=i)}return r&&e.test(r)?r:null};var fz=dz;const pz=zr(),hz=(e,t)=>{try{return new pz(e,t).range||"*"}catch{return null}};var gz=hz;const mz=Ot,NO=of(),{ANY:yz}=NO,bz=zr(),vz=af,pS=nf,hS=Hy,Ez=zy,Sz=Uy,wz=(e,t,r,n)=>{e=new mz(e,n),t=new bz(t,n);let o,i,a,l,s;switch(r){case">":o=pS,i=Ez,a=hS,l=">",s=">=";break;case"<":o=hS,i=Sz,a=pS,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(vz(e,t,n))return!1;for(let u=0;u<t.set.length;++u){const c=t.set[u];let d=null,f=null;if(c.forEach(p=>{p.semver===yz&&(p=new NO(">=0.0.0")),d=d||p,f=f||p,o(p.semver,d.semver,n)?d=p:a(p.semver,f.semver,n)&&(f=p)}),d.operator===l||d.operator===s||(!f.operator||f.operator===l)&&i(e,f.semver))return!1;if(f.operator===s&&a(e,f.semver))return!1}return!0};var Ky=wz;const xz=Ky,$z=(e,t,r)=>xz(e,t,">",r);var Cz=$z;const _z=Ky,Tz=(e,t,r)=>_z(e,t,"<",r);var Oz=Tz;const gS=zr(),Az=(e,t,r)=>(e=new gS(e,r),t=new gS(t,r),e.intersects(t,r));var Rz=Az;const Dz=af,Pz=Ur;var kz=(e,t,r)=>{const n=[];let o=null,i=null;const a=e.sort((c,d)=>Pz(c,d,r));for(const c of a)Dz(c,t,r)?(i=c,o||(o=c)):(i&&n.push([o,i]),i=null,o=null);o&&n.push([o,null]);const l=[];for(const[c,d]of n)c===d?l.push(c):!d&&c===a[0]?l.push("*"):d?c===a[0]?l.push(`<=${d}`):l.push(`${c} - ${d}`):l.push(`>=${c}`);const s=l.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return s.length<u.length?s:t};const mS=zr(),Wy=of(),{ANY:kp}=Wy,Fp=af,Gy=Ur,Fz=(e,t,r={})=>{if(e===t)return!0;e=new mS(e,r),t=new mS(t,r);let n=!1;e:for(const o of e.set){for(const i of t.set){const a=Lz(o,i,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Iz=[new Wy(">=0.0.0-0")],yS=[new Wy(">=0.0.0")],Lz=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===kp){if(t.length===1&&t[0].semver===kp)return!0;r.includePrerelease?e=Iz:e=yS}if(t.length===1&&t[0].semver===kp){if(r.includePrerelease)return!0;t=yS}const n=new Set;let o,i;for(const p of e)p.operator===">"||p.operator===">="?o=bS(o,p,r):p.operator==="<"||p.operator==="<="?i=vS(i,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(o&&i){if(a=Gy(o.semver,i.semver,r),a>0)return null;if(a===0&&(o.operator!==">="||i.operator!=="<="))return null}for(const p of n){if(o&&!Fp(p,String(o),r)||i&&!Fp(p,String(i),r))return null;for(const y of t)if(!Fp(p,String(y),r))return!1;return!0}let l,s,u,c,d=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,f=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const p of t){if(c=c||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",o){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator===">"||p.operator===">="){if(l=bS(o,p,r),l===p&&l!==o)return!1}else if(o.operator===">="&&!p.test(o.semver))return!1}if(i){if(d&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===d.major&&p.semver.minor===d.minor&&p.semver.patch===d.patch&&(d=!1),p.operator==="<"||p.operator==="<="){if(s=vS(i,p,r),s===p&&s!==i)return!1}else if(i.operator==="<="&&!p.test(i.semver))return!1}if(!p.operator&&(i||o)&&a!==0)return!1}return!(o&&u&&!i&&a!==0||i&&c&&!o&&a!==0||f||d)},bS=(e,t,r)=>{if(!e)return t;const n=Gy(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},vS=(e,t,r)=>{if(!e)return t;const n=Gy(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Nz=Fz;const Ip=Ts,ES=_s,Mz=Ot,SS=kO,Bz=fi,jz=MH,Hz=HH,Uz=zH,zz=WH,Kz=YH,Wz=JH,Gz=eU,Vz=nU,Yz=Ur,qz=lU,Xz=cU,Jz=jy,Qz=hU,Zz=yU,eK=nf,tK=Hy,rK=FO,nK=IO,oK=Uy,iK=zy,aK=LO,lK=jU,sK=YU,uK=of(),cK=zr(),dK=af,fK=tz,pK=iz,hK=uz,gK=fz,mK=gz,yK=Ky,bK=Cz,vK=Oz,EK=Rz,SK=kz,wK=Nz;var xK={parse:Bz,valid:jz,clean:Hz,inc:Uz,diff:zz,major:Kz,minor:Wz,patch:Gz,prerelease:Vz,compare:Yz,rcompare:qz,compareLoose:Xz,compareBuild:Jz,sort:Qz,rsort:Zz,gt:eK,lt:tK,eq:rK,neq:nK,gte:oK,lte:iK,cmp:aK,coerce:lK,truncate:sK,Comparator:uK,Range:cK,satisfies:dK,toComparators:fK,maxSatisfying:pK,minSatisfying:hK,minVersion:gK,validRange:mK,outside:yK,gtr:bK,ltr:vK,intersects:EK,simplifyRange:SK,subset:wK,SemVer:Mz,re:Ip.re,src:Ip.src,tokens:Ip.t,SEMVER_SPEC_VERSION:ES.SEMVER_SPEC_VERSION,RELEASE_TYPES:ES.RELEASE_TYPES,compareIdentifiers:SS.compareIdentifiers,rcompareIdentifiers:SS.rcompareIdentifiers};const Xt=Zm(xK);var $K=Tt({"../../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()}}}}),CK=Tt({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=$K(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function i(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function a(l,s){var u,c,d,f,p,y,b=!1;s||(s={}),u=s.debug||!1;try{d=r(),f=document.createRange(),p=document.getSelection(),y=document.createElement("span"),y.textContent=l,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(g){if(g.stopPropagation(),s.format)if(g.preventDefault(),typeof g.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=n[s.format]||n.default;window.clipboardData.setData(v,l)}else g.clipboardData.clearData(),g.clipboardData.setData(s.format,l);s.onCopy&&(g.preventDefault(),s.onCopy(g.clipboardData))}),document.body.appendChild(y),f.selectNodeContents(y),p.addRange(f);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");b=!0}catch(g){u&&console.error("unable to copy using execCommand: ",g),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),b=!0}catch(v){u&&console.error("unable to copy using clipboardData: ",v),u&&console.error("falling back to prompt"),c=i("message"in s?s.message:o),window.prompt(c,l)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(f):p.removeAllRanges()),y&&document.body.removeChild(y),d()}return b}t.exports=a}}),_K=Tt({"../../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var o={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(a,l){for(var s in a)l.hasOwnProperty(s)||Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(a,s));return l},stringify:function(a,l){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a,l||o.replace)},parse:function(a,l){try{return JSON.parse(a,l||o.revive)}catch{return a}},fn:function(a,l){o.storeAPI[a]=l;for(var s in o.apis)o.apis[s][a]=l},get:function(a,l){return a.getItem(l)},set:function(a,l,s){a.setItem(l,s)},remove:function(a,l){a.removeItem(l)},key:function(a,l){return a.key(l)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,l,s){var u=o.inherit(o.storeAPI,function(d,f,p){return arguments.length===0?u.getAll():typeof f=="function"?u.transact(d,f,p):f!==void 0?u.set(d,f,p):typeof d=="string"||typeof d=="number"?u.get(d):typeof d=="function"?u.each(d):d?u.setAll(d,f):u.clear()});u._id=a;try{var c="__store2_test";l.setItem(c,"ok"),u._area=l,l.removeItem(c)}catch{u._area=o.storage("fake")}return u._ns=s||"",o.areas[a]||(o.areas[a]=u._area),o.apis[u._ns+u._id]||(o.apis[u._ns+u._id]=u),u},storeAPI:{area:function(a,l){var s=this[a];return(!s||!s.area)&&(s=o.Store(a,l,this._ns),this[a]||(this[a]=s)),s},namespace:function(a,l,s){if(s=s||this._delim||o.nsdelim,!a)return this._ns?this._ns.substring(0,this._ns.length-s.length):"";var u=a,c=this[u];if((!c||!c.namespace)&&(c=o.Store(this._id,this._area,this._ns+u+s),c._delim=s,this[u]||(this[u]=c),!l))for(var d in o.areas)c.area(d,o.areas[d]);return c},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,l){for(var s=0,u=o.length(this._area);s<u;s++){var c=this._out(o.key(this._area,s));if(c!==void 0&&a.call(this,c,this.get(c),l)===!1)break;u>o.length(this._area)&&(u--,s--)}return l||this},keys:function(a){return this.each(function(l,s,u){u.push(l)},a||[])},get:function(a,l){var s=o.get(this._area,this._in(a)),u;return typeof l=="function"&&(u=l,l=null),s!==null?o.parse(s,u):l??s},getAll:function(a){return this.each(function(l,s,u){u[l]=s},a||{})},transact:function(a,l,s){var u=this.get(a,s),c=l(u);return this.set(a,c===void 0?u:c),this},set:function(a,l,s){var u=this.get(a),c;return u!=null&&s===!1?l:(typeof s=="function"&&(c=s,s=void 0),o.set(this._area,this._in(a),o.stringify(l,c),s)||u)},setAll:function(a,l){var s,u;for(var c in a)u=a[c],this.set(c,u,l)!==u&&(s=!0);return s},add:function(a,l,s){var u=this.get(a);if(u instanceof Array)l=u.concat(l);else if(u!==null){var c=typeof u;if(c===typeof l&&c==="object"){for(var d in l)u[d]=l[d];l=u}else l=u+l}return o.set(this._area,this._in(a),o.stringify(l,s)),l},remove:function(a,l){var s=this.get(a,l);return o.remove(this._area,this._in(a)),s},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 l in o.areas)o.areas.hasOwnProperty(l)&&(this._area=o.areas[l],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 l=0;for(var s in this.items)if(this.has(s)&&a===l++)return s},setItem:function(a,l){this.has(a)||this.length++,this.items[a]=l},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)}});const{DOCS_PREPARED:Ace,SET_STORIES:Rce,SHARED_STATE_CHANGED:Dce,SHARED_STATE_SET:Pce,STORY_CHANGED:kce,STORY_PREPARED:Fce}=__STORYBOOK_MODULE_CORE_EVENTS__;var TK=({api:e,state:t})=>h.createContext({api:e,state:t});const{logger:wS}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Vo=(e,...t)=>{let r={};r=Zt({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(i=>{n.find(a=>a===i||tn(a,i))||n.push(i)}),n;if(Array.isArray(n))return wS.log(["the types mismatch, picking",n]),n});for(let n of t)r=Zt(r,n,(o,i)=>{if(Array.isArray(i)&&Array.isArray(o))return i.forEach(a=>{o.find(l=>l===a||tn(l,a))||o.push(a)}),o;if(Array.isArray(o))return wS.log(["the types mismatch, picking",o]),o});return r},OK=(e,...t)=>{let r={};r=Zt({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=Zt(r,n,(o,i)=>{if(Array.isArray(i))return i});return r},AK=(...e)=>e.reduce((t,r)=>Vo(t,r),{}),sm=AK;const{logger:RK}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:xS}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:Ice}=__STORYBOOK_MODULE_TYPES__,{global:Lp}=__STORYBOOK_MODULE_GLOBAL__,{Channel:DK}=__STORYBOOK_MODULE_CHANNELS__;function PK(){let e={setHandler:()=>{},send:()=>{}};return new DK({transport:e})}var kK=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(PK()),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(xS,this.config):this.ready().then(t=>{t.emit(xS,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&RK.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(e){return Object.keys(e?this.getElements(e):this.loaders)}},Np="__STORYBOOK_ADDONS_MANAGER";function FK(){return Lp[Np]||(Lp[Np]=new kK),Lp[Np]}FK();var MO={};bt(MO,{ensurePanel:()=>um,init:()=>LK});const{logger:IK}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{Addon_TypesEnum:Mp}=__STORYBOOK_MODULE_TYPES__;function um(e,t,r){let n=Object.keys(e??{});return n.indexOf(t)>=0?t:n.length?n[0]:r}var LK=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),clearStatuses:()=>{let o=n.getElements(Mp.experimental_TEST_PROVIDER);Object.values(o).forEach(i=>{var a;try{(a=i.clear)==null||a.call(i)}catch(l){try{IK.warn(`Failed to clear test provider "${i.id}":`,l)}catch{}}})},getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return um(n.getElements(Mp.PANEL),o,o)},setSelectedPanel:o=>{t.setState({selectedPanel:o},{persistence:"session"})},setAddonState(o,i,a){let l=typeof i=="function"?i:()=>i;return t.setState(s=>({...s,addons:{...s.addons,[o]:l(s.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:um(n.getElements(Mp.PANEL),t.getState().selectedPanel),addons:{}}}},BO={};bt(BO,{init:()=>NK});var NK=({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:{}}),jO={};bt(jO,{init:()=>tW});const{logger:$S}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:MK,SET_GLOBALS:BK,UPDATE_GLOBALS:jK}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:HK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var HO={};bt(HO,{defaultStoryMapper:()=>WO,getSourceType:()=>KO,init:()=>eW});const{global:UO}=__STORYBOOK_MODULE_GLOBAL__;var zO=Lt(ai(),1),UK=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),zK=/\s*\/\s*/,KK=({globalParameters:e,kindParameters:t,stories:r})=>XD(r,n=>({...n,parameters:CG(e,t[n.kind],n.parameters)})),WK=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let{docsOnly:o,fileName:i,...a}=n.parameters,l={title:n.kind,id:r,name:n.name,importPath:i};if(o)t[r]={type:"docs",tags:["stories-mdx"],storiesImports:[],...l};else{let{argTypes:s,args:u,initialArgs:c}=n;t[r]={type:"story",subtype:"story",...l,parameters:a,argTypes:s,args:u,initialArgs:c}}return t},{})}),GK=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),{})}),VK=e=>{let t=Dj(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},{})}},YK=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[zi.DEV,zi.TEST,...r.tags]:[zi.DEV]},t),{})}),Xc=(e,{provider:t,docsOptions:r,filters:n,allStatuses:o,statusFilterKey:i})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let a=e;a=a.v===2?GK(a):a,a=a.v===3?VK(a):a,a=a.v===4?YK(a):a,a=a;let l=Object.values(a.entries),s=Object.values(n),u=i?n[i]:void 0,c=l.filter(E=>{let w=o[E.id]??{};return u&&!u({...E,statuses:w})&&!l.filter($=>"parent"in $&&$.parent===E.id).some($=>u({...$,statuses:o[$.id]??{}}))?!1:Object.values(w).some(({value:$})=>$==="status-value:error")||s.every($=>$({...E,statuses:w}))?!0:l.filter($=>"parent"in $&&$.parent===E.id).some($=>s.every(x=>x({...$,statuses:w})))}),{sidebar:d={}}=t.getConfig(),{showRoots:f,collapsedRoots:p=[],renderLabel:y}=d,b=typeof f<"u",S=c.reduce((E,w)=>{if(r.docsMode&&w.type!=="docs")return E;let{title:$}=w,x=$.trim().split(zK),C=(!b||f)&&x.length>1?[x.shift()]:[],T=[...C,...x],A=T.reduce((O,_,I)=>{let L=I>0&&O[I-1],M=ra(L?`${L}-${_}`:_);if(_.trim()==="")throw new Error(gr`Invalid title ${$} ending in slash.`);if(L===M)throw new Error(gr`
  574. Invalid part '${_}', leading to id === parentId ('${M}'), inside title '${$}'
  575. 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
  576. `);return O.push(M),O},[]);return A.forEach((O,_)=>{let I=A[_+1]||w.id;C.length&&_===0?E[O]=Vo(E[O]||{},{type:"root",id:O,name:T[_],tags:[],depth:_,renderLabel:y,startCollapsed:p.includes(O),children:[I]}):(!E[O]||E[O].type==="component")&&_===A.length-1?E[O]=Vo(E[O]||{},{type:"component",id:O,name:T[_],tags:[],parent:A[_-1],depth:_,renderLabel:y,...I&&{children:[I]}}):E[O]=Vo(E[O]||{},{type:"group",id:O,name:T[_],tags:[],parent:A[_-1],depth:_,renderLabel:y,...I&&{children:[I]}})}),E[w.id]={tags:[],...w,depth:A.length,parent:"parent"in w?w.parent:A[A.length-1],renderLabel:y,prepared:!!w.parameters},E},{});function g(E,w){if(E[w.id]||(E[w.id]=w,"children"in w&&w.children&&(w.children.forEach($=>g(E,S[$])),w.tags=w.children.reduce(($,x)=>$===null?E[x].tags:UK($,E[x].tags),null)||[])),w.type==="component"){let $=E[w.children[0]];$&&"importPath"in $&&(w.importPath=$.importPath)}return E}let v=Object.values(S).filter(E=>E.type!=="root"&&!E.parent).reduce((E,w)=>g(E,w),{});return v=Object.values(S).filter(E=>E.type==="root").reduce(g,v),v=Object.values(v).reduce((E,w)=>{if(w.type==="story"&&w.subtype==="test"){let $=E[w.parent],x=E[$.parent];E[x.id]={...x,children:x.children&&x.children.filter(C=>C!==w.id)},E[$.id]={...$,children:($.children||[]).concat(w.id)},E[w.id]={...w,depth:w.depth+1}}else E[w.id]=w;return E},{}),v},CS=(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,qK=(0,zO.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),XK=(0,zO.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:JK,fetch:_S}=UO,KO=(e,t)=>{let{origin:r,pathname:n}=JK,{origin:o,pathname:i}=new URL(e),a=`${r+n}`.replace(/\/[^\/]*$/,""),l=`${o+i}`.replace(/\/[^\/]*$/,"");return a===l?["local",l]:t||e?["external",l]:[null,null]},WO=(e,t)=>({...t,kind:t.kind.replace("|","/")}),TS=(e,t)=>Object.entries(e).reduce((r,[n,o])=>({...r,[n]:{...o,refId:t.id}}),{});async function OS(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 QK=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},ZK=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[i,a])=>({...o,[i]:n(t,a)}),{}):e},eW=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:o=!0}={})=>{let i={findRef:s=>{let u=i.getRefs();return Object.values(u).find(({url:c})=>c.match(s))},changeRefVersion:async(s,u)=>{let{versions:c,title:d}=i.getRefs()[s],f={id:s,url:u,versions:c,title:d,index:{},filteredIndex:{},expanded:!0};await i.setRef(s,{...f,type:"unknown"},!1),await i.checkRef(f)},changeRefState:(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,previewInitialized:u},e.setState({refs:d})},checkRef:async s=>{let{id:u,url:c,version:d,type:f}=s,p=f==="server-checked",y={},b=d?`?version=${d}`:"",S=p?"omit":"include",g=QK(c),v={Accept:"application/json"};g.authorization&&Object.assign(v,{Authorization:`Basic ${g.authorization}`});let[E,w]=await Promise.all(["index.json","stories.json"].map(async x=>OS(_S(`${g.url}/${x}${b}`,{headers:v,credentials:S}))));if(!E.indexError||!w.indexError){let x=await OS(_S(`${g.url}/metadata.json${b}`,{headers:v,credentials:S,cache:"no-cache"}).catch(()=>!1));Object.assign(y,{...E.indexError?w:E,...!x.indexError&&x})}else p||(y.indexError={message:gr`
  577. Error: Loading of ref failed
  578. at fetch (lib/api/src/modules/refs.ts)
  579. URL: ${g.url}
  580. We weren't able to load the above URL,
  581. it's possible a CORS error happened.
  582. Please check your dev-tools network tab.
  583. `});let $=s.versions&&Object.keys(s.versions).length?s.versions:y.versions;await i.setRef(u,{id:u,url:g.url,...y,...$?{versions:$}:{},type:y.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},f=!1)=>{if(r)return;let p,y,b,{filters:S}=e.getState(),{storyMapper:g=WO}=t.getConfig(),v=i.getRefs()[s];(u||c)&&(p=c?WK(ZK(c,v,{storyMapper:g})):u,b=Xc(u,{provider:t,docsOptions:n,filters:S,allStatuses:{}}),y=Xc(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),y&&(y=TS(y,v)),b&&(b=TS(b,v)),await i.updateRef(s,{...v,...d,index:y,filteredIndex:b,internal_index:p})},updateRef:async(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,...u};let f=Object.keys(l).reduce((p,y)=>(p[y]=d[y],p),{});await e.setState({refs:f})}},a=!r&&UO.REFS||{},l=a;return o&&new Promise(async s=>{for(let u of Object.values(a))await i.checkRef({...u,stories:{}});s(void 0)}),{api:i,state:{refs:l}}},Jt=(e,t)=>{let{source:r,refId:n,type:o}=e,[i,a]=KO(r,n),l;(n||i==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(a));let s={source:r,sourceType:i,sourceLocation:a,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case i==="local":case i==="external":return s;default:return HK.warn(`Received a ${o} frame that was not configured as a ref`),null}},tW=({store:e,fullAPI:t,provider:r})=>{var a,l;let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(s){var u;(u=r.channel)==null||u.emit(jK,{globals:s,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},i=({globals:s,storyGlobals:u,userGlobals:c})=>{let{globals:d,userGlobals:f,storyGlobals:p}=e.getState();on(s,d)||e.setState({globals:s}),on(c,f)||e.setState({userGlobals:c}),on(u,p)||e.setState({storyGlobals:u})};return(a=r.channel)==null||a.on(MK,function({globals:s,storyGlobals:u,userGlobals:c}){let{ref:d}=Jt(this,t);d?$S.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i({globals:s,storyGlobals:u,userGlobals:c})}),(l=r.channel)==null||l.on(BK,function({globals:s,globalTypes:u}){var f;let{ref:c}=Jt(this,t),d=(f=e.getState())==null?void 0:f.userGlobals;c?Object.keys(s).length>0&&$S.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:s,userGlobals:s,globalTypes:u}),d&&Object.keys(d).length!==0&&!on(s,d)&&n.updateGlobals(d)}),{api:n,state:o}},Vy={};bt(Vy,{ActiveTabs:()=>GO,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>Jc,DEFAULT_NAV_SIZE:()=>is,DEFAULT_RIGHT_PANEL_WIDTH:()=>Qc,focusableUIElements:()=>Xr,getDefaultLayoutState:()=>VO,init:()=>oW});const{SET_CONFIG:rW}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:nW}=__STORYBOOK_MODULE_GLOBAL__;var{document:Eu}=nW,Bp=e=>typeof e=="function",GO={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},is=300,Jc=300,Qc=400,VO=()=>({ui:{enableShortcuts:!0},layout:{initialActive:GO.CANVAS,showToolbar:!0,navSize:is,bottomPanelHeight:Jc,rightPanelWidth:Qc,recentVisibleSizes:{navSize:is,bottomPanelHeight:Jc,rightPanelWidth:Qc},panelPosition:"bottom",showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:fT()}),Xr={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"},cm=e=>e.layout.navSize>0,dm=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},AS=e=>!cm(e)&&!dm(e),Su=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}),oW=({store:e,provider:t,singleStory:r})=>{var i;let n={toggleFullscreen(a){return e.setState(l=>{let s=AS(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Su(l.layout)}}:{layout:{...l.layout,navSize:l.singleStory?0:l.layout.recentVisibleSizes.navSize,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(l=>{let s=dm(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...l.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Su(l.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(l=>{let s=a||(l.layout.panelPosition==="right"?"bottom":"right");return{layout:{...l.layout,panelPosition:s,bottomPanelHeight:l.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:l.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(l=>{if(l.singleStory)return{layout:l.layout};let s=cm(l),u=typeof a=="boolean"?a:!s;return u===s?{layout:l.layout}:u?{layout:{...l.layout,navSize:l.layout.recentVisibleSizes.navSize}}:{layout:{...l.layout,navSize:0,recentVisibleSizes:Su(l.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(l=>{let s=typeof a<"u"?a:!l.layout.showToolbar;return{layout:{...l.layout,showToolbar:s}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:l,rightPanelWidth:s}){return e.setState(u=>{let c={...u.layout,navSize:a??u.layout.navSize,bottomPanelHeight:l??u.layout.bottomPanelHeight,rightPanelWidth:s??u.layout.rightPanelWidth};return{layout:{...c,recentVisibleSizes:Su(c)}}},{persistence:"session"})},focusOnUIElement(a,l){let{forceFocus:s=!1,select:u=!1,poll:c=!0}=typeof l=="boolean"?{select:l}:l??{};if(!a)return!1;let d=()=>{var p,y;let f=Eu.getElementById(a);return!f||(f.focus(),f!==Eu.activeElement&&s&&f.getAttribute("tabindex")===null&&(f.setAttribute("tabindex","-1"),f.focus()),f!==Eu.activeElement&&f.id!==((p=Eu.activeElement)==null?void 0:p.id))?!1:(u&&((y=f.select)==null||y.call(f)),!0)};return d()?!0:c?new Promise(f=>{let p=Date.now(),y=500,b=setInterval(()=>{let S=Date.now()-p;if(d()){clearInterval(b),f(!0);return}S>=y&&(clearInterval(b),f(!1))},50)}):!1},getInitialOptions(){let{theme:a,selectedPanel:l,layoutCustomisations:s,...u}=t.getConfig(),c=VO();return{...c,layout:{...Ff(c.layout,Ha(u,Object.keys(c.layout))),...r&&{navSize:0}},layoutCustomisations:{...c.layoutCustomisations,...s??{}},ui:Ff(c.ui,Ha(u,Object.keys(c.ui))),selectedPanel:l||c.selectedPanel,theme:a||c.theme}},getIsFullscreen(){return AS(e.getState())},getIsPanelShown(){return dm(e.getState())},getIsNavShown(){return cm(e.getState())},getShowToolbarWithCustomisations(a){let l=e.getState();return Bp(l.layoutCustomisations.showToolbar)?l.layoutCustomisations.showToolbar(l,a)??a:a},getShowPanelWithCustomisations(a){let l=e.getState();return Bp(l.layoutCustomisations.showPanel)?l.layoutCustomisations.showPanel(l,a)??a:a},getNavSizeWithCustomisations(a){let l=e.getState();if(Bp(l.layoutCustomisations.showSidebar)){let s=l.layoutCustomisations.showSidebar(l,a!==0);if(a===0&&s===!0)return l.layout.recentVisibleSizes.navSize;if(a!==0&&s===!1)return 0}return a},setOptions:a=>{let{layout:l,ui:s,selectedPanel:u,theme:c}=e.getState();if(!a)return;let d={...l,...a.layout||{},...Ha(a,Object.keys(l)),...r&&{navSize:0}},f={...s,...a.ui,...Ff(a.ui||{},Ha(a,Object.keys(s)))},p={...c,...a.theme},y={};tn(s,f)||(y.ui=f),tn(l,d)||(y.layout=d),a.selectedPanel&&!tn(u,a.selectedPanel)&&(y.selectedPanel=a.selectedPanel),Object.keys(y).length&&e.setState(y,{persistence:"permanent"}),tn(c,p)||e.setState({theme:p})}},o=Ha(e.getState(),["layout","selectedPanel"]);return(i=t.channel)==null||i.on(rW,()=>{n.setOptions(Vo(n.getInitialOptions(),o))}),{api:n,state:Vo(n.getInitialOptions(),o)}},YO={};bt(YO,{init:()=>iW});var iW=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=JE(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]=JE(r,i=>i.id===t);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),qO={};bt(qO,{init:()=>lW});const{OPEN_IN_EDITOR_REQUEST:aW,OPEN_IN_EDITOR_RESPONSE:jp}=__STORYBOOK_MODULE_CORE_EVENTS__;var lW=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{var s,u;let{file:o,line:i,column:a}=r,l=c=>{var d;c.file===o&&c.line===i&&c.column===a&&((d=e.channel)==null||d.off(jp,l),n(c))};(s=e.channel)==null||s.on(jp,l),(u=e.channel)==null||u.emit(aW,r)})}},state:{notifications:[]},init:async()=>{var n;let{color:r}=await On(async()=>{const{color:o}=await Promise.resolve().then(()=>s7);return{color:o}},void 0,import.meta.url);(n=e.channel)==null||n.on(jp,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:m.createElement(l9,{color:r.negative}),duration:8e3})})}}),XO={};bt(XO,{init:()=>sW});var sW=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),JO={};bt(JO,{init:()=>uW});var uW=({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}})}}}),QO={};bt(QO,{controlOrMetaKey:()=>$i,defaultShortcuts:()=>Ci,init:()=>$W,isMacLike:()=>e2,keys:()=>fm});var cW=Lt(CK(),1);const{FORCE_REMOUNT:dW,PREVIEW_KEYDOWN:fW,STORIES_COLLAPSE_ALL:pW,STORIES_EXPAND_ALL:hW}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ZO}=__STORYBOOK_MODULE_GLOBAL__,{global:gW}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:Hp}=gW,mW=()=>Hp&&Hp.platform?!!Hp.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,yW=()=>mW()?"⌥":"alt",bW=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(),l=o;l&&l.length===1&&l!==a?t.push([a,l]):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},vW=(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]),EW=e=>e==="alt"?yW():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(),SW=e=>e.map(EW).join(" "),wW=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:Up,document:Yn}=ZO;function RS(e){return Yn.activeElement&&(e==null?void 0:e.contains(Yn.activeElement))}var e2=()=>Up&&Up.platform?!!Up.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,$i=()=>e2()?"meta":"control";function fm(e){return Object.keys(e)}var Ci=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[$i(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[$i(),"shift",","],aboutPage:[$i(),","],escape:["escape"],collapseAll:[$i(),"shift","ArrowUp"],expandAll:[$i(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),zp={};function xW(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var $W=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Ci,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return zp},getAddonsShortcutLabels(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{a[l]=s}),a},getAddonsShortcutDefaults(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{a[l]=s}),a},async setShortcuts(a){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof a=="function"?a(s.shortcuts):a}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(a,l){return await n.setShortcuts(s=>({...s,[a]:l})),l},async setAddonShortcut(a,l){return await n.setShortcuts(s=>({...s,[`${a}-${l.actionName}`]:l.defaultShortcut})),zp[`${a}-${l.actionName}`]=l,l},async restoreDefaultShortcut(a){let l=n.getDefaultShortcuts()[a];return n.setShortcut(a,l)},handleKeydownEvent(a){let l=bW(a),s=n.getShortcutKeys(),u=fm(s).find(c=>vW(l,s[c]));u&&n.handleShortcutFeature(u,a)},handleShortcutFeature(a,l){let{ui:{enableShortcuts:s},storyId:u,refId:c,viewMode:d}=e.getState();if(s)switch(l!=null&&l.preventDefault&&l.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(Xr.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Xr.storySearchField,!0)},0);break}case"focusIframe":{let f=Yn.getElementById("storybook-preview-iframe");if(f)try{f.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(Xr.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 f=t.getIsPanelShown(),p=Yn.getElementById(Xr.addonPanel);t.togglePanel(),f&&RS(p)&&t.focusOnUIElement(Xr.showAddonPanel,{poll:!0}).then(y=>{y===!1&&Yn.body.focus()}),f||t.focusOnUIElement(Xr.addonPanel,{forceFocus:!0,poll:!0});break}case"toggleNav":{let f=t.getIsNavShown(),p=Yn.getElementById(Xr.sidebarRegion);t.toggleNav(),f&&RS(p)&&t.focusOnUIElement(Xr.showSidebar,{poll:!0}).then(y=>{y===!1&&Yn.body.focus()}),f||t.focusOnUIElement(Xr.sidebarRegion,{forceFocus:!0,poll:!0});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(pW);break}case"expandAll":{t.emit(hW);break}case"remount":{t.emit(dW,{storyId:u});break}case"openInEditor":{ZO.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(u&&d==="story"){let{previewHref:f}=t.getStoryHrefs(u,{refId:c});window.open(f,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(u){let{managerHref:f}=t.getStoryHrefs(u,{refId:c});(0,cW.default)(f)}break}default:zp[a].action();break}}},{shortcuts:o=Ci}=e.getState(),i={shortcuts:fm(Ci).reduce((a,l)=>({...a,[l]:o[l]||Ci[l]}),Ci)};return{api:n,state:i,init:()=>{var a;Yn.addEventListener("keydown",l=>{xW(l)||n.handleKeydownEvent(l)}),(a=r.channel)==null||a.on(fW,l=>{n.handleKeydownEvent(l.event)})}}},t2={};bt(t2,{init:()=>rG});const{logger:CW}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:_W,CURRENT_STORY_WAS_SET:TW,DOCS_PREPARED:OW,PRELOAD_ENTRIES:AW,RESET_STORY_ARGS:RW,SELECT_STORY:DW,SET_CONFIG:PW,SET_CURRENT_STORY:kW,SET_FILTER:FW,SET_INDEX:IW,SET_STORIES:LW,SIDEBAR_FILTER_CHANGED:NW,STORY_ARGS_UPDATED:MW,STORY_CHANGED:BW,STORY_INDEX_INVALIDATED:jW,STORY_MISSING:HW,STORY_PREPARED:UW,STORY_SPECIFIED:zW,UPDATE_STORY_ARGS:KW}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:r2}=__STORYBOOK_MODULE_GLOBAL__;var n2=(e,t={})=>{let r=Object.entries(t).filter(([,n])=>n!=null).sort(([n],[o])=>n<o?-1:1).map(([n,o])=>`${n}=${o}`);return[e,...r].join("&")},WW=({includedTagFilters:e,excludedTagFilters:t,includedStatusFilters:r,excludedStatusFilters:n})=>((e==null?void 0:e.length)??0)+((t==null?void 0:t.length)??0)+((r==null?void 0:r.length)??0)+((n==null?void 0:n.length)??0),DS=e=>WW(e)>0,o2=(e,t)=>{let r=h.useRef(t?t(e.getState()):e.getState()),n=h.useCallback(i=>e.onStateChange((a,l)=>{if(!t){r.current=a,i();return}let s=t(a),u=t(l);!tn(s,u)&&(r.current=s,i())}),[e,t]),o=h.useCallback(()=>{let i=e.getState(),a=t?t(i):i;return tn(a,r.current)||(r.current=a),r.current},[e,t]);return[h.useSyncExternalStore(n,o),e.setState]},GW=Rj({universalStatusStore:Sy.create({...Oj,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:o2,environment:"manager"}),{fullStatusStore:ic}=GW,i2=(e,t)=>{if(!e)return{included:[],excluded:[]};let r=[],n=[];return e.split(";").forEach(o=>{if(!o)return;let i=o.startsWith("!"),a=t(i?o.slice(1):o);a!=null&&(i?n.push(a):r.push(a))}),{included:r,excluded:n}},VW=e=>i2(e,Tj),YW=(e,t)=>{if(!e.length&&!t.length)return;let r=e.map(o=>YE(o)).sort(),n=t.map(o=>`!${YE(o)}`).sort();return[...r,...n].join(";")},Kp=(e,t)=>r=>{if(!e.length&&!t.length)return!0;let n=(ic.getAll()??{})[r.id],o=n?Object.values(n).map(l=>l.value):[],i=!e.length||e.some(l=>o.includes(l)),a=!t.length||t.every(l=>!o.includes(l));return i&&a},qW=Lt(ai(),1),a2={$docs:"_docs",$play:"_play",$test:"_test"},XW=e=>i2(e,t=>a2[t]??t),JW=(e,t)=>{if(!e.length&&!t.length)return"";let r=Object.fromEntries(Object.entries(a2).map(([i,a])=>[a,i])),n=e.map(i=>r[i]??i).sort(),o=t.map(i=>`!${r[i]??i}`).sort();return[...n,...o].join(";")},QW=(0,qW.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)}}),PS=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(zi.DEV)||r.type==="docs")&&n.filter(o=>t[o]).length===0}},Wp=(e,t)=>{let r=n=>Object.values(n.reduce((o,i)=>(Object.hasOwn(mc,i)?o["built-in"].push(mc[i]):o.user.push(iP(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(l=>l(n,!1))))&&(!i.length||i.every(a=>a.every(l=>l(n,!0))))}},{fetch:ZW}=r2,eG="./index.json",Gp="tags-filter",kS="static-filter",wu="status-filter",Ei=new Set(Object.keys(mc)),tG=["enableShortcuts","theme","showRoots"];function Vp(e){if(!e||typeof e=="string")return e;let t={...e};return tG.forEach(r=>{r in t&&delete t[r]}),t}var FS={tag:{included:"includedTagFilters",excluded:"excludedTagFilters"},status:{included:"includedStatusFilters",excluded:"excludedStatusFilters"}},rG=({fullAPI:e,store:t,navigate:r,provider:n,state:{location:o}={},storyId:i,viewMode:a,docsOptions:l={}})=>{var M,U,k,F,P,B,D,z,V,Z,q,K,X,ee;let s=(N,H)=>{let{customQueryParams:Y}=t.getState();r(n2(N,Y??{}),H)},u=N=>t.setState(N,{persistence:"url",serialize:H=>{let Y=JW(H.includedTagFilters,H.excludedTagFilters),W=YW(H.includedStatusFilters,H.excludedStatusFilters);return{tags:Y??null,statuses:W??null}}}),c=!1,d=async(N,H,Y)=>{let{included:W,excluded:j}=FS[N],G=t.getState(),J=new Set(G[W]),ne=new Set(G[j]);for(let de of H){let[te,Ce]=Y?[ne,J]:[J,ne];Ce.delete(de),te.add(de)}await u({[W]:Array.from(J),[j]:Array.from(ne)})},f=async(N,H)=>{let{included:Y,excluded:W}=FS[N],j=t.getState(),G=new Set(H);await u({[Y]:j[Y].filter(J=>!G.has(J)),[W]:j[W].filter(J=>!G.has(J))})},p=(N,H)=>{var Ce,xe;let Y=t.getState(),W=(Y.includedTagFilters??[]).filter(he=>Ei.has(he)),j=(Y.excludedTagFilters??[]).filter(he=>Ei.has(he)),G=!!((Ce=globalThis==null?void 0:globalThis.FEATURES)!=null&&Ce.changeDetection),J=G?Y.includedStatusFilters??[]:[],ne=G?Y.excludedStatusFilters??[]:[],de={},te=Y.internal_index?Object.values(Y.internal_index.entries):[];for(let he of new Set([...W,...j])){let ie=mc[he];de[he]=te.filter(Te=>ie(Te)).length}if(J.length>0||ne.length>0){let he=Aj(ic.getAll());for(let ie of new Set([...J,...ne]))he[ie]!==void 0&&(de[ie]=he[ie])}(xe=n.channel)==null||xe.emit(NW,{trigger:N,changed:H,activeTagFilters:{included:W,excluded:j},activeStatusFilters:{included:J,excluded:ne},storyCounts:de})},y={storyId:Vs,getData:(N,H)=>{let Y=y.resolveStory(N,H);if((Y==null?void 0:Y.type)==="story"||(Y==null?void 0:Y.type)==="docs")return Y},isPrepared:(N,H)=>{let Y=y.getData(N,H);return Y?Y.type==="story"?Y.prepared:!0:!1},resolveStory:(N,H)=>{var j,G;let{refs:Y,index:W}=t.getState();if(!(H&&!Y[H]))return H?((G=(j=Y==null?void 0:Y[H])==null?void 0:j.index)==null?void 0:G[N])??void 0:W?W[N]:void 0},getCurrentStoryData:()=>{let{storyId:N,refId:H}=t.getState();return y.getData(N,H)},getIndex:()=>{let{internal_index:N}=t.getState();return N},getParameters:(N,H)=>{let{storyId:Y,refId:W}=typeof N=="string"?{storyId:N,refId:void 0}:N,j=y.getData(Y,W);if(["story","docs"].includes(j==null?void 0:j.type)){let{parameters:G}=j;if(G)return H?G[H]:G}return null},getCurrentParameter:N=>{let{storyId:H,refId:Y}=t.getState();return y.getParameters({storyId:H,refId:Y},N)||void 0},jumpToComponent:N=>{let{filteredIndex:H,storyId:Y,refs:W,refId:j}=t.getState();if(!y.getData(Y,j))return;let G=j?W[j].filteredIndex||{}:H;if(!G)return;let J=y.findSiblingStoryId(Y,G,N,!0);J&&y.selectStory(J,void 0,{ref:j})},jumpToStory:N=>{let{filteredIndex:H,storyId:Y,refs:W,refId:j}=t.getState(),G=y.getData(Y,j);if(!G)return;let J=G.refId?W[G.refId].filteredIndex:H;if(!J)return;let ne=y.findSiblingStoryId(Y,J,N,!1);ne&&y.selectStory(ne,void 0,{ref:j})},selectFirstStory:()=>{let N=t.getState();if(DS(N)){let{filteredIndex:W}=N;if(!W)return;let j=Object.keys(W).find(G=>W[G].type==="story");j&&y.selectStory(j);return}let{index:H}=N;if(!H)return;let Y=Object.keys(H).find(W=>H[W].type==="story");if(Y){y.selectStory(Y);return}s("/")},selectStory:(N=void 0,H=void 0,Y={})=>{let{ref:W}=Y,{storyId:j,index:G,filteredIndex:J,refs:ne,settings:de}=t.getState(),te=ie=>(ie==null?void 0:ie.type)==="docs"||(ie==null?void 0:ie.type)==="story"?(t.setState({settings:{...de,lastTrackedStoryId:ie.id}}),s(`/${ie.type}/${ie.refId?`${ie.refId}_${ie.id}`:ie.id}`),!0):!1,Ce=j==null?void 0:j.split("--",2)[0],xe=W?ne[W].index:G,he=W?ne[W].filteredIndex:J;if(!(!xe||!he))if(H)if(!N)te(xe[Vs(Ce,H)]);else{let ie=W?`${W}_${Vs(N,H)}`:Vs(N,H);if(xe[ie])te(xe[ie]);else{let Te=xe[ra(N)];if((Te==null?void 0:Te.type)==="component"){let Dt=Te.children.find(_r=>xe[_r].name===H);te(Dt?xe[Dt]:void 0)}}}else{let ie=N?xe[N]||xe[ra(N)]:xe[Ce];if(!ie)throw new Error(`Unknown id or title: '${N}'`);te(ie)||te(y.findLeafEntry(he,ie.id))}},findLeafEntry(N,H){let Y=N[H];if(!Y)return;if(Y.type==="docs"||Y.type==="story")return Y;let W=Y.children.find(j=>N[j]);return W?y.findLeafEntry(N,W):void 0},findLeafStoryId(N,H){var Y;return(Y=y.findLeafEntry(N,H))==null?void 0:Y.id},findAllLeafStoryIds(N){let{index:H}=t.getState();if(!H)return[];let Y=(W,j=[])=>{var J;let G=H[W];return G&&(G.type==="story"&&j.push(G.id),"children"in G&&((J=G.children)==null||J.forEach(ne=>Y(ne,j)))),j};return Y(N,[])},findSiblingStoryId(N,H,Y,W){if(W){let J=qK(H),ne=J.findIndex(de=>de.includes(N));return ne===J.length-1&&Y>0||ne===0&&Y<0?void 0:J[ne+Y]?J[ne+Y][0]:void 0}let j=XK(H),G=j.indexOf(N);if(!(G===j.length-1&&Y>0)&&!(G===0&&Y<0))return j[G+Y]},updateStoryArgs:(N,H)=>{var j;let{id:Y,refId:W}=N;(j=n.channel)==null||j.emit(KW,{storyId:Y,updatedArgs:H,options:{target:W}})},resetStoryArgs:(N,H)=>{var j;let{id:Y,refId:W}=N;(j=n.channel)==null||j.emit(RW,{storyId:Y,argNames:H,options:{target:W}})},fetchIndex:async()=>{try{let N=await ZW(eG);if(N.status!==200)throw new Error(await N.text());let H=await N.json();if(H.v<3){CW.warn(`Skipping story index with version v${H.v}, awaiting SET_STORIES.`);return}await y.setIndex(H)}catch(N){await t.setState({indexError:N})}},setIndex:async N=>{let{filteredIndex:H,index:Y,filters:W}=t.getState(),j=ic.getAll(),G=Xc(N,{provider:n,docsOptions:l,filters:W,allStatuses:j,statusFilterKey:wu}),J=Xc(N,{provider:n,docsOptions:l,filters:{},allStatuses:j});await t.setState({internal_index:N,filteredIndex:CS(G,H),index:CS(J,Y),indexError:void 0})},updateStory:async(N,H,Y)=>{if(Y){let{id:W,index:j,filteredIndex:G}=Y;j&&j[N]&&(j[N]={...j[N],...H}),G&&G[N]&&(G[N]={...G[N],...H}),await e.updateRef(W,{index:j,filteredIndex:G})}else{let{index:W,filteredIndex:j}=t.getState();W&&W[N]&&(W[N]={...W[N],...H}),j&&j[N]&&(j[N]={...j[N],...H}),(W||j)&&await t.setState({index:W,filteredIndex:j})}},updateDocs:async(N,H,Y)=>{if(Y){let{id:W,index:j,filteredIndex:G}=Y;j[N]={...j[N],...H},G[N]={...G[N],...H},await e.updateRef(W,{index:j,filteredIndex:G})}else{let{index:W,filteredIndex:j}=t.getState();W&&(W[N]={...W[N],...H}),j&&(j[N]={...j[N],...H}),(W||j)&&await t.setState({index:W,filteredIndex:j})}},setPreviewInitialized:async N=>{N?e.updateRef(N.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(N,H)=>{var j;await t.setState({filters:{...t.getState().filters,[N]:H}});let{internal_index:Y}=t.getState();if(!Y)return;await y.setIndex(Y);let W=await e.getRefs();for(let[G,{internal_index:J,...ne}]of Object.entries(W))await e.setRef(G,{...ne,storyIndex:J},!0);(j=n.channel)==null||j.emit(FW,{id:N})},resetTagFilters:async()=>{await u(N=>({includedTagFilters:N.defaultIncludedTagFilters,excludedTagFilters:N.defaultExcludedTagFilters})),await b()},setAllTagFilters:async(N,H)=>{await u({includedTagFilters:N,excludedTagFilters:H}),await b()},addTagFilters:async(N,H)=>{await d("tag",N,H),await b(),N.length===1&&Ei.has(N[0])&&p("interaction",{filterType:"tag",filterId:N[0],action:H?"exclude":"include"})},removeTagFilters:async N=>{await f("tag",N),await b(),N.length===1&&Ei.has(N[0])&&p("interaction",{filterType:"tag",filterId:N[0],action:"remove"})},resetStatusFilters:async()=>{await u({includedStatusFilters:[],excludedStatusFilters:[]}),await S()},setAllStatusFilters:async(N,H)=>{let Y=t.getState(),W=new Set(Y.includedStatusFilters??[]),j=new Set(Y.excludedStatusFilters??[]),G=new Set(N),J=new Set(H);await u({includedStatusFilters:N,excludedStatusFilters:H}),await S();let ne=new Set([...W,...j,...G,...J]);for(let de of ne){let te=W.has(de),Ce=j.has(de),xe=G.has(de),he=J.has(de);if(te===xe&&Ce===he)continue;let ie;xe?ie="include":he?ie="exclude":ie="remove",p("interaction",{filterType:"status",filterId:de,action:ie})}},addStatusFilters:async(N,H)=>{await d("status",N,H),await S(),N.length===1&&p("interaction",{filterType:"status",filterId:N[0],action:H?"exclude":"include"})},removeStatusFilters:async N=>{await f("status",N),await S(),N.length===1&&p("interaction",{filterType:"status",filterId:N[0],action:"remove"})}},b=()=>{let{includedTagFilters:N,excludedTagFilters:H}=t.getState();return y.experimental_setFilter(Gp,Wp(N,H))},S=()=>{let{includedStatusFilters:N,excludedStatusFilters:H}=t.getState();return y.experimental_setFilter(wu,Kp(N??[],H??[]))};(M=n.channel)==null||M.on(zW,function({storyId:N,viewMode:H}){var W,j,G;let{sourceType:Y}=Jt(this,e);if(Y==="local"){let J=t.getState(),ne=J.path==="/"||J.viewMode==="story"||J.viewMode==="docs",de=J.viewMode&&J.storyId,te=J.viewMode!==H||J.storyId!==N,{type:Ce}=((W=J.index)==null?void 0:W[J.storyId])||{},xe=!(Ce==="root"||Ce==="component"||Ce==="group");if(ne){if(DS(J)&&!de){let{filteredIndex:he}=J;if(!(he&&((j=he[N])==null?void 0:j.type)==="story")){let ie=he?Object.keys(he).find(Te=>{let Dt=he[Te];return Dt.type==="story"||Dt.type==="docs"}):void 0;ie&&s(`/${H}/${ie}`);return}}de&&te&&xe?(G=n.channel)==null||G.emit(kW,{storyId:J.storyId,viewMode:J.viewMode}):te&&s(`/${H}/${N}`)}}}),(U=n.channel)==null||U.on(TW,function(){let{ref:N}=Jt(this,e);y.setPreviewInitialized(N)}),(k=n.channel)==null||k.on(BW,function(){let{sourceType:N}=Jt(this,e);if(N==="local"){let H=y.getCurrentParameter("options");H&&e.setOptions(Vp(H))}}),(F=n.channel)==null||F.on(UW,function({id:N,...H}){var j;let{ref:Y,sourceType:W}=Jt(this,e);if(y.updateStory(N,{...H,prepared:!0},Y),!Y&&!t.getState().hasCalledSetOptions){let{options:G}=H.parameters;e.setOptions(Vp(G)),t.setState({hasCalledSetOptions:!0})}if(W==="local"){let{storyId:G,index:J,refId:ne}=t.getState();if(!J)return;let de=Array.from(new Set([y.findSiblingStoryId(G,J,1,!0),y.findSiblingStoryId(G,J,-1,!0)])).filter(Boolean);(j=n.channel)==null||j.emit(AW,{ids:de,options:{target:ne}})}}),(P=n.channel)==null||P.on(OW,function({id:N,...H}){let{ref:Y}=Jt(this,e);y.updateStory(N,{...H,prepared:!0},Y)}),(B=n.channel)==null||B.on(IW,function(N){let{ref:H}=Jt(this,e);if(H)e.setRef(H.id,{...H,storyIndex:N},!0);else{y.setIndex(N);let Y=y.getCurrentParameter("options");e.setOptions(Vp(Y))}}),(D=n.channel)==null||D.on(LW,function(N){let{ref:H}=Jt(this,e),Y=N.v?KK(N):N.stories;if(H)e.setRef(H.id,{...H,setStoriesData:Y},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),(z=n.channel)==null||z.on(DW,function({kind:N,title:H=N,story:Y,name:W=Y,storyId:j,...G}){let{ref:J}=Jt(this,e);J?e.selectStory(j||H,W,{...G,ref:J.id}):e.selectStory(j||H,W,G)}),(V=n.channel)==null||V.on(MW,function({storyId:N,args:H}){let{ref:Y}=Jt(this,e);y.updateStory(N,{args:H},Y)}),(Z=n.channel)==null||Z.on(_W,function(N){let{ref:H}=Jt(this,e);y.setPreviewInitialized(H)}),(q=n.channel)==null||q.on(HW,function(N){let{ref:H}=Jt(this,e);y.setPreviewInitialized(H)}),(K=n.channel)==null||K.on(PW,()=>{var J,ne;let N=((ne=(J=n.getConfig())==null?void 0:J.sidebar)==null?void 0:ne.filters)||{},{includedTagFilters:H,excludedTagFilters:Y,includedStatusFilters:W,excludedStatusFilters:j,tagPresets:G}=t.getState();t.setState({filters:{...t.getState().filters,...N,[kS]:PS(G),[Gp]:Wp(H,Y),[wu]:Kp(W,j)}})}),ic.onAllStatusChange(async()=>{S();let{internal_index:N}=t.getState();if(!N)return;await y.setIndex(N);let H=await e.getRefs();Object.entries(H).forEach(([Y,{internal_index:W,...j}])=>{e.setRef(Y,{...j,storyIndex:W},!0)})});let g=((ee=(X=n.getConfig())==null?void 0:X.sidebar)==null?void 0:ee.filters)||{},v=r2.TAGS_OPTIONS||{},E=QW(v),{tags:w,statuses:$}=wO(o??{search:""}),x=XW(w),C=w!==void 0,T=C?x.included:E.included,A=C?x.excluded:E.excluded,O=VW($),_=O.included,I=O.excluded,L={...g,[kS]:PS(v),[Gp]:Wp(T,A),[wu]:Kp(_,I)};return{api:y,state:{storyId:i,viewMode:a,hasCalledSetOptions:!1,previewInitialized:!1,filters:L,tagPresets:v,defaultIncludedTagFilters:E.included,defaultExcludedTagFilters:E.excluded,includedTagFilters:T,excludedTagFilters:A,includedStatusFilters:_,excludedStatusFilters:I},init:async()=>{var Y,W;if((Y=n.channel)==null||Y.on(jW,()=>y.fetchIndex()),await y.fetchIndex(),c)return;c=!0;let N=T.some(j=>Ei.has(j))||A.some(j=>Ei.has(j)),H=!!((W=globalThis==null?void 0:globalThis.FEATURES)!=null&&W.changeDetection)&&(_.length>0||I.length>0);(N||H)&&p("url")}}},l2={};bt(l2,{init:()=>uG});const{GLOBALS_UPDATED:nG,NAVIGATE_URL:oG,SET_CURRENT_STORY:iG,STORY_ARGS_UPDATED:aG,UPDATE_QUERY_PARAMS:lG}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Si}=__STORYBOOK_MODULE_GLOBAL__;var IS=Lt(t$(),1),xo=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},LS=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),NS=(e,t)=>{let r=LS(e),n=LS(t);return Object.entries({...r,...n}).map(([o,i])=>`${o}:${i}`).join(";")},Yp,sG=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:i,panel:a,nav:l,shortcuts:s,addonPanel:u,tabs:c,path:d,...f}=wO(e),p,y,b;xo(i)===!0?(p=0,y=0,b=0):xo(i)===!1&&(p=is,y=Jc,b=Qc),o||(xo(l)===!0&&(p=is),xo(l)===!1&&(p=0)),xo(a)===!1&&(y=0,b=0);let S={navSize:p,bottomPanelHeight:y,rightPanelWidth:b,panelPosition:["right","bottom"].includes(a)?a:void 0,showTabs:xo(c)},g={enableShortcuts:xo(s)},v=u||void 0,E=n,w=on(Yp,f)?Yp:f;return Yp=w,{viewMode:r,layout:S,ui:g,selectedPanel:v,location:e,path:t,customQueryParams:w,storyId:E}},uG=e=>{var u,c,d,f;let{store:t,navigate:r,provider:n,fullAPI:o}=e,i=(p,y={},b={})=>r(n2(p,y),b),a={getStoryHrefs(p,y={}){let{id:b,refId:S}=o.getCurrentStoryData()??{},g=p===b&&y.refId===S,{customQueryParams:v,location:E,refs:w}=t.getState(),{base:$,inheritArgs:x=g,inheritGlobals:C=!0,queryParams:T={},refId:A,viewMode:O="story"}=y;if(A&&!w[A])throw new Error(`Invalid refId: ${A}`);let _=E.pathname||"/",I=Si.window.location.origin+_,L=Si.STORYBOOK_NETWORK_ADDRESS??I,M=$==="origin"?I:$==="network"?L:_,U=A?w[A].url+"/iframe.html":Si.PREVIEW_URL||`${M.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,k=A?`&refId=${encodeURIComponent(A)}`:"",{args:F="",globals:P="",...B}=T,D=x?NS((v==null?void 0:v.args)??"",F):F,z=C?NS((v==null?void 0:v.globals)??"",P):P,V=(0,IS.stringify)(B,{nesting:!0,nestingSyntax:"js"}),Z=(0,IS.stringify)(QD(B,["id","viewMode"]),{nesting:!0,nestingSyntax:"js"});return D=D&&`&args=${D}`,z=z&&`&globals=${z}`,V=V&&`&${V}`,Z=Z&&`&${Z}`,{managerHref:`${M}?path=/${O}/${A?`${A}_`:""}${p}${D}${z}${V}`,previewHref:`${U}?id=${p}&viewMode=${O}${k}${D}${A?"":z}${Z}`}},getQueryParam(p){let{customQueryParams:y}=t.getState();return y?y[p]:void 0},getUrlState(){let{location:p,path:y,customQueryParams:b,storyId:S,url:g,viewMode:v}=t.getState();return{path:y,hash:(p==null?void 0:p.hash)??"",queryParams:b,storyId:S,url:g,viewMode:v}},setQueryParams(p){var S;let{customQueryParams:y}=t.getState(),b={...y};for(let[g,v]of Object.entries(p))v==null?delete b[g]:b[g]=v;on(y,b)||(t.setState({customQueryParams:b}),(S=n.channel)==null||S.emit(lG,b))},applyQueryParams(p,y){let{path:b,hash:S="",queryParams:g}=a.getUrlState();i(`${b}${S}`,{...g,...p},y),a.setQueryParams(p)},navigateUrl(p,y){r(p,{plain:!0,...y})}},l=()=>{let{path:p,hash:y="",queryParams:b,viewMode:S}=a.getUrlState();if(S!=="story")return;let g=o.getCurrentStoryData();if((g==null?void 0:g.type)!=="story")return;let{args:v,initialArgs:E}=g,w=ZE(E,v);i(`${p}${y}`,{...b,args:w||null},{replace:!0}),a.setQueryParams({args:w||null})};(u=n.channel)==null||u.on(iG,()=>l());let s;return(c=n.channel)==null||c.on(aG,()=>{"requestIdleCallback"in Si.window?(s&&Si.window.cancelIdleCallback(s),s=Si.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),(d=n.channel)==null||d.on(nG,({userGlobals:p,initialGlobals:y})=>{let{path:b,hash:S="",queryParams:g}=a.getUrlState(),v=ZE(y,Vo(y,p));i(`${b}${S}`,{...g,globals:v||null},{replace:!0}),a.setQueryParams({globals:v||null})}),(f=n.channel)==null||f.on(oG,(p,y)=>{a.navigateUrl(p,y)}),{api:a,state:sG(e),init:()=>{t.registerPersistenceHandler("url",(p,y)=>{if(y){let b=y(t.getState());a.applyQueryParams(b,{replace:!0})}})}}},s2={};bt(s2,{init:()=>hG});var cG=Lt(ai(),1);const{global:pm}=__STORYBOOK_MODULE_GLOBAL__;var dG="10.4.1",{VERSIONCHECK:fG}=pm,MS=(0,cG.default)(1)(()=>{try{return{...JSON.parse(fG).data||{}}}catch{return{}}}),pG=e=>e.includes("vue")?"vue":e,hG=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:dG},...MS()},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&&Xt.prerelease(a.version)&&i?o&&Xt.gt(o.version,i.version)?o:i:o},getDocsUrl:({asset:o,subpath:i=o,versioned:a,renderer:l,ref:s="ui"})=>{var S,g;let{versions:u}=e.getState(),c=(S=u.latest)==null?void 0:S.version,d=(g=u.current)==null?void 0:g.version,f=(d==null?void 0:d.startsWith("0.0.0"))&&c||d,p=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)p+=`${Xt.major(f)}.${Xt.minor(f)}/`;else if(a&&f&&c){let v=Xt.diff(c,f);v==="patch"||v===null||(p+=`${Xt.major(f)}.${Xt.minor(f)}/`)}let[y,b]=(i==null?void 0:i.split("#"))||[];if(y&&(p+=o?y:`${y}/`),l&&typeof pm.STORYBOOK_RENDERER<"u"){let v=pm.STORYBOOK_RENDERER;v&&(p+=`?renderer=${pG(v)}`)}return s&&(p+=`${p.includes("?")?"&":"?"}ref=${s}`),b&&(p+=`#${b}`),p},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),i=n.getCurrentVersion();if(o){if(!o.version||!i.version)return!0;let a=Xt.prerelease(i.version)?`${Xt.major(i.version)}.${Xt.minor(i.version)}.${Xt.patch(i.version)}`:i.version,l=Xt.diff(a,o.version);return Xt.gt(o.version,a)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:i,next:a}=MS();await e.setState({versions:{...o,latest:i,next:a}})},state:r,api:n}},u2={};bt(u2,{init:()=>SG});const{REQUEST_WHATS_NEW_DATA:gG,RESULT_WHATS_NEW_DATA:mG,SET_WHATS_NEW_CACHE:yG,TOGGLE_WHATS_NEW_NOTIFICATIONS:bG}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:vG}=__STORYBOOK_MODULE_GLOBAL__;var BS="whats-new",EG=({color:e="currentColor",size:t=14})=>m.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.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})),SG=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let i={isWhatsNewUnread(){var s;return((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){var s;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(BS))},toggleWhatsNewNotifications(){var s,u;((s=n.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),(u=r.channel)==null||u.emit(bG,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function a(){var s;return(s=r.channel)==null||s.emit(gG),new Promise(u=>{var c;return(c=r.channel)==null?void 0:c.once(mG,({data:d})=>u(d))})}function l(s){var u;(u=r.channel)==null||u.emit(yG,s)}return{init:async()=>{var c;if(vG.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await a();o(s);let u=e.getUrlState();!((u==null?void 0:u.path)==="/onboarding"||((c=u.queryParams)==null?void 0:c.onboarding)==="true")&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:BS,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:m.createElement(EG,null),onClear({dismissed:d}){d&&l({lastDismissedPost:s.url})}})},state:n,api:i}},Fo=Lt(_K(),1),wG=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),vj(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?Sj(n):r||n})};wG(Fo.default._);var c2="@storybook/manager/store";function ac(e){return e.get(c2)||{}}function d2(e,t){return e.set(c2,t)}function xG(e,t){let r=ac(e);return d2(e,{...r,...t})}var $G=class{constructor({allowPersistence:e,setState:t,getState:r}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let n of[Fo.default.local,Fo.default.session]){let o=ac(n);if("includedTagFilters"in o||"excludedTagFilters"in o){let{includedTagFilters:i,excludedTagFilters:a,...l}=o;d2(n,l)}}let t=ac(Fo.default.local),r=ac(Fo.default.session);return{...e,...t,...r}}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={},l={};typeof e=="function"?a=u=>(l=e(u),l):(a=e,l=a);let s=await new Promise(u=>{this.upstreamSetState(a,()=>{u(this.getState())})});if(i!=="none"&&this.upstreamPersistence)if(i==="url"){let u=this.persistenceHandlers.get("url");u&&await u(l,o==null?void 0:o.serialize)}else{let u=i==="session"?Fo.default.session:Fo.default.local;await xG(u,l)}return n&&n(s),s}},{ActiveTabs:Lce}=Vy,f2=TK({api:void 0,state:sm({})}),CG=(...e)=>OK({},...e),_G=class extends h.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(b=>{"init"in b&&b.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:i,storyId:a,docsOptions:l,navigate:s}=e,u=new $G({getState:()=>this.state,setState:(b,S)=>(this.setState(b,()=>S(this.state)),this.state)}),c={location:t,path:r,viewMode:o,singleStory:i,storyId:a,refId:n},d={docsOptions:l};this.state=u.getInitialState(sm({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[XO,BO,MO,Vy,YO,JO,QO,t2,HO,jO,l2,s2,u2,qO].map(b=>b.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let p=sm(this.state,...this.modules.map(b=>b.state)),y=Object.assign(this.api,{navigate:s},...this.modules.map(b=>b.api));this.state=p,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||!tn(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return m.createElement(TG,{effect:this.initModules},m.createElement(f2.Provider,{value:t},m.createElement(AG,null,e)))}};_G.displayName="Manager";var TG=({children:e,effect:t})=>(m.useEffect(t,[]),e),OG=e=>e;function AG({filter:e=OG,children:t}){let r=h.useContext(f2),n=h.useRef(t),o=h.useRef(e);if(typeof n.current!="function")return m.createElement(h.Fragment,null,n.current);let i=o.current(r),a=h.useMemo(()=>[...Object.entries(i).reduce((l,s)=>l.concat(s),[])],[r.state]);return h.useMemo(()=>{let l=n.current;return m.createElement(l,{...i})},a)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:Nce}=__STORYBOOK_MODULE_CHANNELS__;var RG={id:"storybook/test-provider",leader:!0,initialState:{}};function DG({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",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[i]:s}))})};return{...r,testProviderId:i,getState:a,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch{l("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:i=>t(e,i)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}DG({universalTestProviderStore:Sy.create({...RG,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:o2});var PG={items:{accessibilityTests:{status:"open"},aiSetup:{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"},renderComponent:{status:"open"},runTests:{status:"open"},publishStorybook:{status:"open"},shareStorybook:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},kG={id:"storybook/checklist",initialState:PG};Sy.create({...kG,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var p2={exports:{}},h2={};/**
  584. * @license React
  585. * use-sync-external-store-shim.production.js
  586. *
  587. * Copyright (c) Meta Platforms, Inc. and affiliates.
  588. *
  589. * This source code is licensed under the MIT license found in the
  590. * LICENSE file in the root directory of this source tree.
  591. */var ha=h;function FG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var IG=typeof Object.is=="function"?Object.is:FG,LG=ha.useState,NG=ha.useEffect,MG=ha.useLayoutEffect,BG=ha.useDebugValue;function jG(e,t){var r=t(),n=LG({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return MG(function(){o.value=r,o.getSnapshot=t,qp(o)&&i({inst:o})},[e,r,t]),NG(function(){return qp(o)&&i({inst:o}),e(function(){qp(o)&&i({inst:o})})},[e]),BG(r),r}function qp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!IG(e,r)}catch{return!0}}function HG(e,t){return t()}var UG=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?HG:jG;h2.useSyncExternalStore=ha.useSyncExternalStore!==void 0?ha.useSyncExternalStore:UG;p2.exports=h2;var zG=p2.exports,Ie=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},Fa=({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"}}),In=({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)"}),Ue=({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"}),pi={margin:"16px 0"},Yy=R.div(Ue),KG=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return m.createElement("a",{href:r,target:n,...t})},g2=R(KG)(({theme:e})=>({...Ue({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"},"& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}})),m2=R.blockquote(({theme:e})=>({...Ue({theme:e}),...pi,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Yo=[],ga=null,WG=h.lazy(async()=>{let{SyntaxHighlighter:e}=await On(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-W7WJGI2T-CFwd4H-A.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3]),import.meta.url);return Yo.length>0&&(Yo.forEach(t=>{e.registerLanguage(...t)}),Yo=[]),ga===null&&(ga=e),{default:t=>m.createElement(e,{...t})}}),GG=h.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([On(()=>import("./syntaxhighlighter-W7WJGI2T-CFwd4H-A.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),On(()=>import("./formatter-EIJCOSYU-CDko68bk.js"),__vite__mapDeps([4,1,2,3]),import.meta.url)]);return Yo.length>0&&(Yo.forEach(r=>{e.registerLanguage(...r)}),Yo=[]),ga===null&&(ga=e),{default:r=>m.createElement(e,{...r,formatter:t})}}),Os=e=>m.createElement(h.Suspense,{fallback:m.createElement("div",null)},e.format!==!1?m.createElement(GG,{...e}):m.createElement(WG,{...e}));Os.registerLanguage=(...e)=>{if(ga!==null){ga.registerLanguage(...e);return}Yo.push(e)};var VG=e=>typeof e=="string",YG=/[\n\r]/g,qG=R.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...In({theme:e})})),XG=R(Os)(({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"}})),qy=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=h.Children.toArray(t);return o.filter(VG).some(i=>i.match(YG))?m.createElement(XG,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):m.createElement(qG,{...r,className:e},o)},y2=R.dl(({theme:e})=>({...Ue({theme:e}),...pi,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}})),b2=R.div(Ue),v2=R.h1(({theme:e})=>({...Ue({theme:e}),...Fa({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Xy=R.h2(({theme:e})=>({...Ue({theme:e}),...Fa({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Jy=R.h3(({theme:e})=>({...Ue({theme:e}),...Fa({theme:e}),fontSize:`${e.typography.size.m1}px`})),E2=R.h4(({theme:e})=>({...Ue({theme:e}),...Fa({theme:e}),fontSize:`${e.typography.size.s3}px`})),S2=R.h5(({theme:e})=>({...Ue({theme:e}),...Fa({theme:e}),fontSize:`${e.typography.size.s2}px`})),w2=R.h6(({theme:e})=>({...Ue({theme:e}),...Fa({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),x2=R.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),$2=R.img({maxWidth:"100%"}),C2=R.li(({theme:e})=>({...Ue({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":In({theme:e})})),JG={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},_2=R.ol(({theme:e})=>({...Ue({theme:e}),...pi,...JG,listStyle:"decimal"})),T2=R.p(({theme:e})=>({...Ue({theme:e}),...pi,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":In({theme:e})})),O2=R.pre(({theme:e})=>({...Ue({theme:e}),...pi,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"}})),A2=R.span(({theme:e})=>({...Ue({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"}}})),R2=R.title(In),D2=R.table(({theme:e})=>({...Ue({theme:e}),...pi,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}})),QG={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},P2=R.ul(({theme:e})=>({...Ue({theme:e}),...pi,...QG,listStyle:"disc"})),k2={h1:e=>m.createElement(v2,{...Ie(e,"h1")}),h2:e=>m.createElement(Xy,{...Ie(e,"h2")}),h3:e=>m.createElement(Jy,{...Ie(e,"h3")}),h4:e=>m.createElement(E2,{...Ie(e,"h4")}),h5:e=>m.createElement(S2,{...Ie(e,"h5")}),h6:e=>m.createElement(w2,{...Ie(e,"h6")}),pre:e=>m.createElement(O2,{...Ie(e,"pre")}),a:e=>m.createElement(g2,{...Ie(e,"a")}),hr:e=>m.createElement(x2,{...Ie(e,"hr")}),dl:e=>m.createElement(y2,{...Ie(e,"dl")}),blockquote:e=>m.createElement(m2,{...Ie(e,"blockquote")}),table:e=>m.createElement(D2,{...Ie(e,"table")}),img:e=>m.createElement($2,{...Ie(e,"img")}),div:e=>m.createElement(b2,{...Ie(e,"div")}),span:e=>m.createElement(A2,{...Ie(e,"span")}),li:e=>m.createElement(C2,{...Ie(e,"li")}),ul:e=>m.createElement(P2,{...Ie(e,"ul")}),ol:e=>m.createElement(_2,{...Ie(e,"ol")}),p:e=>m.createElement(T2,{...Ie(e,"p")}),code:e=>m.createElement(qy,{...Ie(e,"code")}),tt:e=>m.createElement(R2,{...Ie(e,"tt")}),resetwrapper:e=>m.createElement(Yy,{...Ie(e,"resetwrapper")})};R.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 ${kn(.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"?$t(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${kn(.9,e.color.secondary)}`};default:return{}}});const{deprecate:ZG}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var eV=0,tV=e=>e.button===eV&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,rV=(e,t)=>{tV(e)&&(e.preventDefault(),t(e))},nV=R.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}}:{}),oV=R.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:$t(.07,e.color.secondary),"svg path:not([fill])":{fill:$t(.07,e.color.secondary)}},"&:active":{color:$t(.1,e.color.secondary),"svg path:not([fill])":{fill:$t(.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"}}:{}),ma=h.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:l,...s},u)=>(a!==void 0&&ZG("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),m.createElement(oV,{as:l?"a":"button",href:l,...s,ref:u,isButton:!l||a===!0,onClick:r&&e?c=>rV(c,r):r,className:i},m.createElement(nV,{withArrow:n,containsIcon:o},t,n&&m.createElement(XT,null)))));ma.displayName="Link";R.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","& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}},"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}}));const{global:iV}=__STORYBOOK_MODULE_GLOBAL__;var{document:tl,window:hm}=iV;async function aV(e){var t;try{await((t=hm.top)==null?void 0:t.navigator.clipboard.writeText(e))}catch{await hm.navigator.clipboard.writeText(e)}}async function lV(e){let t=tl.createElement("TEXTAREA"),r=tl.activeElement;t.value=e,tl.body.appendChild(t),t.select(),tl.execCommand("copy"),tl.body.removeChild(t),r.focus()}function sV(){var e;return(e=hm.navigator)!=null&&e.clipboard?aV:lV}const{deprecate:gm}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function jS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uV(...e){return t=>{let r=!1,n=e.map(o=>{let i=jS(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():jS(e[o],null)}}}}var cV=Symbol.for("react.lazy"),Zc=MI[" use ".trim().toString()];function dV(e){return typeof e=="object"&&e!==null&&"then"in e}function F2(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===cV&&"_payload"in e&&dV(e._payload)}function fV(e){let t=hV(e),r=h.forwardRef((n,o)=>{let{children:i,...a}=n;F2(i)&&typeof Zc=="function"&&(i=Zc(i._payload));let l=h.Children.toArray(i),s=l.find(mV);if(s){let u=s.props.children,c=l.map(d=>d===s?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return pe.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,c):null})}return pe.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var pV=fV("Slot");function hV(e){let t=h.forwardRef((r,n)=>{let{children:o,...i}=r;if(F2(o)&&typeof Zc=="function"&&(o=Zc(o._payload)),h.isValidElement(o)){let a=bV(o),l=yV(i,o.props);return o.type!==h.Fragment&&(l.ref=n?uV(n,a):a),h.cloneElement(o,l)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gV=Symbol("radix.slottable");function mV(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gV}function yV(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 l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function bV(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 vV=R.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)"})),I2=({note:e,...t})=>m.createElement(vV,{...t},e);const{deprecate:EV}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ve=typeof document<"u"?m.useLayoutEffect:()=>{};function SV(e){let[t,r]=h.useState(e),n=h.useRef(t),o=h.useRef(null),i=h.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?i.current():r(l.value)});ve(()=>{n.current=t,o.current&&i.current()});let a=h.useCallback(l=>{o.current=l(n.current),i.current()},[i]);return[t,a]}var L2={prefix:String(Math.round(Math.random()*1e10)),current:0},N2=m.createContext(L2),wV=m.createContext(!1),Xp=new WeakMap;function xV(e=!1){let t=h.useContext(N2),r=h.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=m.__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=Xp.get(i);a==null?Xp.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Xp.delete(i))}r.current=++t.current}return r.current}function $V(e){let t=h.useContext(N2),r=xV(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function CV(e){let t=m.useId(),[r]=h.useState(hi()),n=r?"react-aria":`react-aria${L2.prefix}`;return e||`${n}-${t}`}var _V=typeof m.useId=="function"?CV:$V;function TV(){return!1}function OV(){return!0}function AV(e){return()=>{}}function hi(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(AV,TV,OV):h.useContext(wV)}var RV=!!(typeof window<"u"&&window.document&&window.document.createElement),Ji=new Map,pl;typeof FinalizationRegistry<"u"&&(pl=new FinalizationRegistry(e=>{Ji.delete(e)}));function yt(e){let[t,r]=h.useState(e),n=h.useRef(null),o=_V(t),i=h.useRef(null);if(pl&&pl.register(i,o),RV){let a=Ji.get(o);a&&!a.includes(n)?a.push(n):Ji.set(o,[n])}return ve(()=>{let a=o;return()=>{pl&&pl.unregister(i),Ji.delete(a)}},[o]),h.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function DV(e,t){if(e===t)return e;let r=Ji.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Ji.get(t);return n?(n.forEach(o=>o.current=e),e):t}function lc(e=[]){let t=yt(),[r,n]=SV(t),o=h.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ve(o,[t,o,...e]),r}function As(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var Ee=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vr=e=>e&&"window"in e&&e.window===e?e:Ee(e).defaultView||window;function pr(e,t){return t&&e?e.contains(t):!1}var st=(e=document)=>e.activeElement;function Ve(e){return e.target}function PV(e,t,r,n){return e.createTreeWalker(t,r,n)}function M2(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=M2(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function kV(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=M2(e))&&(n&&(n+=" "),n+=t);return n}var FV=kV;function se(...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]=As(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=FV(i,a):o==="id"&&i&&a?t.id=DV(i,a):t[o]=a!==void 0?a:i}}return t}function Qy(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let i=HS(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():HS(e[i],null)})}}}function HS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var IV=new Set(["id"]),LV=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),NV=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),MV=new Set(["dir","lang","hidden","inert","translate"]),US=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"]),BV=/^(data-.*)$/;function ze(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(IV.has(s)||r&&LV.has(s)||n&&NV.has(s)||o&&MV.has(s)||i&&(US.has(s)||s.endsWith("Capture")&&US.has(s.slice(0,-7)))||a!=null&&a.has(s)||BV.test(s))&&(l[s]=e[s]);return l}function Ht(e){if(jV())e.focus({preventScroll:!0});else{let t=HV(e);e.focus(),UV(t)}}var xu=null;function jV(){if(xu==null){xu=!1;try{document.createElement("div").focus({get preventScroll(){return xu=!0,!0}})}catch{}}return xu}function HV(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 UV(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function lf(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 Zy(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 Ln(e){let t=null;return()=>(t==null&&(t=e()),t)}var ni=Ln(function(){return Zy(/^Mac/i)}),zV=Ln(function(){return Zy(/^iPhone/i)}),B2=Ln(function(){return Zy(/^iPad/i)||ni()&&navigator.maxTouchPoints>1}),sf=Ln(function(){return zV()||B2()}),KV=Ln(function(){return ni()||sf()}),j2=Ln(function(){return lf(/AppleWebKit/i)&&!H2()}),H2=Ln(function(){return lf(/Chrome/i)}),e1=Ln(function(){return lf(/Android/i)}),WV=Ln(function(){return lf(/Firefox/i)}),GV=h.createContext({isNative:!0,open:qV,useHref:e=>e});function uf(){return h.useContext(GV)}function VV(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 oi(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;WV()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(ni()?i=!0:a=!0);let u=j2()&&ni()&&!B2()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});oi.isOpening=r,Ht(e),e.dispatchEvent(u),oi.isOpening=!1}oi.isOpening=!1;function YV(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 qV(e,t){YV(e,r=>oi(r,t))}function U2(e){let t=uf();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 XV(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&VV(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Jn=new Map,mm=new Set;function zS(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Jn.get(n.target);o||(o=new Set,Jn.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=Jn.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Jn.delete(n.target)),Jn.size===0)){for(let i of mm)i();mm.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?zS():document.addEventListener("DOMContentLoaded",zS));function JV(){for(let[e]of Jn)"isConnected"in e&&!e.isConnected&&Jn.delete(e)}function z2(e){requestAnimationFrame(()=>{JV(),Jn.size===0?e():mm.add(e)})}function cf(){let e=h.useRef(new Map),t=h.useCallback((o,i,a,l)=>{let s=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),r=h.useCallback((o,i,a,l)=>{var s;let u=((s=e.current.get(a))===null||s===void 0?void 0:s.fn)||a;o.removeEventListener(i,u,l),e.current.delete(a)},[]),n=h.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return h.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function df(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=yt(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 Kr(e){let t=h.useRef(null),r=h.useRef(void 0),n=h.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 h.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 Jp,QV=(Jp=m.useInsertionEffect)!==null&&Jp!==void 0?Jp:ve;function ft(e){let t=h.useRef(null);return QV(()=>{t.current=e},[e]),h.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function KS(e,t){let r=h.useRef(!0),n=h.useRef(null);ve(()=>(r.current=!0,()=>{r.current=!1}),[]),ve(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function ZV(){return typeof window.ResizeObserver<"u"}function ed(e){let{ref:t,box:r,onResize:n}=e,o=ft(n);h.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(ZV()){let a=new window.ResizeObserver(l=>{l.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 t1(e,t){ve(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ya(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 K2(e,t){let r=e;for(ya(r,t)&&(r=r.parentElement);r&&!ya(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function eY(e,t){let r=[];for(;e&&e!==document.documentElement;)ya(e,t)&&r.push(e),e=e.parentElement;return r}function _i(e){return ni()?e.metaKey:e.ctrlKey}var tY=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Qp(e){return e instanceof HTMLInputElement&&!tY.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var rY=0,Zp=new Map;function nY(e){let[t,r]=h.useState();return ve(()=>{if(!e)return;let n=Zp.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${rY++}`;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},Zp.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Zp.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function hl(e,t,r,n){let o=ft(r),i=r==null;h.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 W2(e,t){let r=WS(e,t,"left"),n=WS(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),y=a+parseInt(u,10),b=l+parseInt(s,10),S=y+e.clientWidth,g=b+e.clientHeight,v=parseInt(c,10)||0,E=parseInt(f,10)||0,w=parseInt(d,10)||0,$=parseInt(p,10)||0;r<=a+$?a=r-parseInt(u,10)-$:r+o>S-w&&(a+=r+o-S+w),n<=b+v?l=n-parseInt(s,10)-v:n+i>g-E&&(l+=n+i-g+E),e.scrollLeft=a,e.scrollTop=l}function WS(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 GS(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,l=window.getComputedStyle(a).overflow==="hidden";if(l){let s=eY(e);l||s.push(a);for(let u of s)W2(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>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 G2(e){return e.pointerType===""&&e.isTrusted?!0:e1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function oY(e){return!e1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function VS(e){let t=h.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var iY="react-aria-clear-focus",aY="react-aria-focus";function V2(e,t=!0){let[r,n]=h.useState(!0),o=r&&t;return ve(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),q2(e,o,h.useCallback(()=>n(!1),[])),o}function Y2(e,t){let[r,n]=h.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 q2(e,o,h.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function q2(e,t,r){ve(()=>{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||Oa.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var lY=typeof Element<"u"&&"checkVisibility"in Element.prototype;function sY(e){let t=vr(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:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function uY(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 r1(e,t){return lY?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&sY(e)&&uY(e,t)&&(!e.parentElement||r1(e.parentElement,e))}var n1=["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"],cY=n1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";n1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var dY=n1.join(':not([hidden]):not([tabindex="-1"]),');function X2(e){return e.matches(cY)&&r1(e)&&!J2(e)}function fY(e){return e.matches(dY)&&r1(e)&&!J2(e)}function J2(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var eh,pY=typeof document<"u"?(eh=m.useInsertionEffect)!==null&&eh!==void 0?eh:m.useLayoutEffect:()=>{};function ff(e,t,r){let[n,o]=h.useState(e||t),i=h.useRef(n),a=h.useRef(e!==void 0),l=e!==void 0;h.useEffect(()=>{a.current,a.current=l},[l]);let s=l?e:n;pY(()=>{i.current=s});let[,u]=h.useReducer(()=>({}),{}),c=h.useCallback((d,...f)=>{let p=typeof d=="function"?d(i.current):d;Object.is(i.current,p)||(i.current=p,o(p),u(),r==null||r(p,...f))},[r]);return[s,c]}function as(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function o1(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Q2(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Z2(e){let t=h.useRef({isFocused:!1,observer:null});ve(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=ft(n=>{e==null||e(n)});return h.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 l=o1(a);r(l)}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 l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var td=!1;function hY(e){for(;e&&!X2(e);)e=e.parentElement;let t=vr(e),r=t.document.activeElement;if(!r||r===e)return;td=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Ht(r),s()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Ht(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),td=!1,n=!1},u=requestAnimationFrame(s);return s}var Hi="default",ym="",sc=new WeakMap;function gY(e){if(sf()){if(Hi==="default"){let t=Ee(e);ym=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Hi="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";sc.set(e,e.style[t]),e.style[t]="none"}}function YS(e){if(sf()){if(Hi!=="disabled")return;Hi="restoring",setTimeout(()=>{z2(()=>{if(Hi==="restoring"){let t=Ee(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ym||""),ym="",Hi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&sc.has(e)){let t=sc.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),sc.delete(e)}}var ls=m.createContext({register:()=>{}});ls.displayName="PressResponderContext";function mY(e,t){return t.get?t.get.call(e):t.value}function e5(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function yY(e,t){var r=e5(e,t,"get");return mY(e,r)}function bY(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vY(e,t,r){bY(e,t),t.set(e,r)}function EY(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 qS(e,t,r){var n=e5(e,t,"set");return EY(e,n,r),r}function SY(e){let t=h.useContext(ls);if(t){let{register:r,...n}=t;e=se(n,e),r()}return t1(t,e.ref),e}var $u=new WeakMap,Cu=class{continuePropagation(){qS(this,$u,!1)}get shouldStopPropagation(){return yY(this,$u)}constructor(e,t,r,n){vY(this,$u,{writable:!0,value:void 0}),qS(this,$u,!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(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=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=l,this.y=s}},XS=Symbol("linkClicked"),JS="react-aria-pressable-style",QS="data-react-aria-pressable";function Rs(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=SY(e),[y,b]=h.useState(!1),S=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:g,removeAllGlobalListeners:v}=cf(),E=ft((_,I)=>{let L=S.current;if(l||L.didFirePressStart)return!1;let M=!0;if(L.isTriggeringEvent=!0,n){let U=new Cu("pressstart",I,_);n(U),M=U.shouldStopPropagation}return r&&r(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,b(!0),M}),w=ft((_,I,L=!0)=>{let M=S.current;if(!M.didFirePressStart)return!1;M.didFirePressStart=!1,M.isTriggeringEvent=!0;let U=!0;if(o){let k=new Cu("pressend",I,_);o(k),U=k.shouldStopPropagation}if(r&&r(!1),b(!1),t&&L&&!l){let k=new Cu("press",I,_);t(k),U&&(U=k.shouldStopPropagation)}return M.isTriggeringEvent=!1,U}),$=ft((_,I)=>{let L=S.current;if(l)return!1;if(i){L.isTriggeringEvent=!0;let M=new Cu("pressup",I,_);return i(M),L.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),x=ft(_=>{let I=S.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&w($o(I.target,_),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,v(),d||YS(I.target);for(let L of I.disposables)L();I.disposables=[]}}),C=ft(_=>{c&&x(_)}),T=ft(_=>{l||(a==null||a(_))}),A=ft((_,I)=>{if(!l&&a){let L=new MouseEvent("click",_);Q2(L,I),a(o1(L))}}),O=h.useMemo(()=>{let _=S.current,I={onKeyDown(M){if(th(M.nativeEvent,M.currentTarget)&&pr(M.currentTarget,Ve(M.nativeEvent))){var U;ZS(Ve(M.nativeEvent),M.key)&&M.preventDefault();let k=!0;if(!_.isPressed&&!M.repeat){_.target=M.currentTarget,_.isPressed=!0,_.pointerType="keyboard",k=E(M,"keyboard");let F=M.currentTarget,P=B=>{th(B,F)&&!B.repeat&&pr(F,Ve(B))&&_.target&&$($o(_.target,B),"keyboard")};g(Ee(M.currentTarget),"keyup",As(P,L),!0)}k&&M.stopPropagation(),M.metaKey&&ni()&&((U=_.metaKeyEvents)===null||U===void 0||U.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(_.metaKeyEvents=new Map)},onClick(M){if(!(M&&!pr(M.currentTarget,Ve(M.nativeEvent)))&&M&&M.button===0&&!_.isTriggeringEvent&&!oi.isOpening){let U=!0;if(l&&M.preventDefault(),!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||G2(M.nativeEvent))){let k=E(M,"virtual"),F=$(M,"virtual"),P=w(M,"virtual");T(M),U=k&&F&&P}else if(_.isPressed&&_.pointerType!=="keyboard"){let k=_.pointerType||M.nativeEvent.pointerType||"virtual",F=$($o(M.currentTarget,M),k),P=w($o(M.currentTarget,M),k,!0);U=F&&P,_.isOverTarget=!1,T(M),x(M)}_.ignoreEmulatedMouseEvents=!1,U&&M.stopPropagation()}}},L=M=>{var U;if(_.isPressed&&_.target&&th(M,_.target)){var k;ZS(Ve(M),M.key)&&M.preventDefault();let P=Ve(M),B=pr(_.target,Ve(M));w($o(_.target,M),"keyboard",B),B&&A(M,_.target),v(),M.key!=="Enter"&&i1(_.target)&&pr(_.target,P)&&!M[XS]&&(M[XS]=!0,oi(_.target,M,!1)),_.isPressed=!1,(k=_.metaKeyEvents)===null||k===void 0||k.delete(M.key)}else if(M.key==="Meta"&&!((U=_.metaKeyEvents)===null||U===void 0)&&U.size){var F;let P=_.metaKeyEvents;_.metaKeyEvents=void 0;for(let B of P.values())(F=_.target)===null||F===void 0||F.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){I.onPointerDown=k=>{if(k.button!==0||!pr(k.currentTarget,Ve(k.nativeEvent)))return;if(oY(k.nativeEvent)){_.pointerType="virtual";return}_.pointerType=k.pointerType;let F=!0;if(!_.isPressed){_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=k.pointerId,_.target=k.currentTarget,d||gY(_.target),F=E(k,_.pointerType);let P=Ve(k.nativeEvent);"releasePointerCapture"in P&&P.releasePointerCapture(k.pointerId),g(Ee(k.currentTarget),"pointerup",M,!1),g(Ee(k.currentTarget),"pointercancel",U,!1)}F&&k.stopPropagation()},I.onMouseDown=k=>{if(pr(k.currentTarget,Ve(k.nativeEvent))&&k.button===0){if(u){let F=hY(k.target);F&&_.disposables.push(F)}k.stopPropagation()}},I.onPointerUp=k=>{!pr(k.currentTarget,Ve(k.nativeEvent))||_.pointerType==="virtual"||k.button===0&&!_.isPressed&&$(k,_.pointerType||k.pointerType)},I.onPointerEnter=k=>{k.pointerId===_.activePointerId&&_.target&&!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,E($o(_.target,k),_.pointerType))},I.onPointerLeave=k=>{k.pointerId===_.activePointerId&&_.target&&_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,w($o(_.target,k),_.pointerType,!1),C(k))};let M=k=>{if(k.pointerId===_.activePointerId&&_.isPressed&&k.button===0&&_.target){if(pr(_.target,Ve(k))&&_.pointerType!=null){let F=!1,P=setTimeout(()=>{_.isPressed&&_.target instanceof HTMLElement&&(F?x(k):(Ht(_.target),_.target.click()))},80);g(k.currentTarget,"click",()=>F=!0,!0),_.disposables.push(()=>clearTimeout(P))}else x(k);_.isOverTarget=!1}},U=k=>{x(k)};I.onDragStart=k=>{pr(k.currentTarget,Ve(k.nativeEvent))&&x(k)}}return I},[g,l,u,v,d,x,C,w,E,$,T,A]);return h.useEffect(()=>{if(!f)return;let _=Ee(f.current);if(!_||!_.head||_.getElementById(JS))return;let I=_.createElement("style");I.id=JS,I.textContent=`
  592. @layer {
  593. [${QS}] {
  594. touch-action: pan-x pan-y pinch-zoom;
  595. }
  596. }
  597. `.trim(),_.head.prepend(I)},[f]),h.useEffect(()=>{let _=S.current;return()=>{var I;d||YS((I=_.target)!==null&&I!==void 0?I:void 0);for(let L of _.disposables)L();_.disposables=[]}},[d]),{isPressed:s||y,pressProps:se(p,O,{[QS]:!0})}}function i1(e){return e.tagName==="A"&&e.hasAttribute("href")}function th(e,t){let{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof vr(o).HTMLInputElement&&!t5(o,r)||o instanceof vr(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&i1(o))&&r!=="Enter")}function $o(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 wY(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!i1(e)}function ZS(e,t){return e instanceof HTMLInputElement?!t5(e,t):wY(e)}var xY=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function t5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":xY.has(e.type)}var fo=null,ss=new Set,Ol=new Map,ii=!1,bm=!1,$Y={Tab:!0,Escape:!0};function a1(e,t){for(let r of ss)r(e,t)}function CY(e){return!(e.metaKey||!ni()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function rd(e){ii=!0,CY(e)&&(fo="keyboard",a1("keyboard",e))}function Qi(e){fo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ii=!0,a1("pointer",e))}function r5(e){G2(e)&&(ii=!0,fo="virtual")}function n5(e){e.target===window||e.target===document||td||!e.isTrusted||(!ii&&!bm&&(fo="virtual",a1("virtual",e)),ii=!1,bm=!1)}function o5(){td||(ii=!1,bm=!0)}function nd(e){if(typeof window>"u"||typeof document>"u"||Ol.get(vr(e)))return;let t=vr(e),r=Ee(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ii=!0,n.apply(this,arguments)},r.addEventListener("keydown",rd,!0),r.addEventListener("keyup",rd,!0),r.addEventListener("click",r5,!0),t.addEventListener("focus",n5,!0),t.addEventListener("blur",o5,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Qi,!0),r.addEventListener("pointermove",Qi,!0),r.addEventListener("pointerup",Qi,!0)),t.addEventListener("beforeunload",()=>{i5(e)},{once:!0}),Ol.set(t,{focus:n})}var i5=(e,t)=>{let r=vr(e),n=Ee(e);t&&n.removeEventListener("DOMContentLoaded",t),Ol.has(r)&&(r.HTMLElement.prototype.focus=Ol.get(r).focus,n.removeEventListener("keydown",rd,!0),n.removeEventListener("keyup",rd,!0),n.removeEventListener("click",r5,!0),r.removeEventListener("focus",n5,!0),r.removeEventListener("blur",o5,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",Qi,!0),n.removeEventListener("pointermove",Qi,!0),n.removeEventListener("pointerup",Qi,!0)),Ol.delete(r))};function _Y(e){let t=Ee(e),r;return t.readyState!=="loading"?nd(e):(r=()=>{nd(e)},t.addEventListener("DOMContentLoaded",r)),()=>i5(e,r)}typeof document<"u"&&_Y();function us(){return fo!=="pointer"}function cs(){return fo}function TY(){nd();let[e,t]=h.useState(fo);return h.useEffect(()=>{let r=()=>{t(fo)};return ss.add(r),()=>{ss.delete(r)}},[]),hi()?null:e}var OY=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function AY(e,t,r){let n=Ee(r==null?void 0:r.target),o=typeof window<"u"?vr(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?vr(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?vr(r==null?void 0:r.target).HTMLElement:HTMLElement,l=typeof window<"u"?vr(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!OY.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!$Y[r.key])}function RY(e,t,r){nd(),h.useEffect(()=>{let n=(o,i)=>{AY(!!(r!=null&&r.isTextInput),o,i)&&e(us())};return ss.add(n),()=>{ss.delete(n)}},t)}function po(e){let t=Ee(e),r=st(t);if(cs()==="virtual"){let n=r;z2(()=>{st(t)===n&&e.isConnected&&Ht(e)})}else Ht(e)}function l1(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,i=h.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),a=Z2(i),l=h.useCallback(s=>{let u=Ee(s.target),c=u?st(u):st();s.target===s.currentTarget&&c===Ve(s.nativeEvent)&&(r&&r(s),o&&o(!0),a(s))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}function ew(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 a5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ew(e.onKeyDown),onKeyUp:ew(e.onKeyUp)}}}var od=m.createContext(null);function DY(e){let t=h.useContext(od)||{};t1(t,e);let{ref:r,...n}=t;return n}var PY=m.forwardRef(function(e,t){let{children:r,...n}=e,o=Kr(t),i={...n,ref:o};return m.createElement(od.Provider,{value:i},r)});function Ds(e,t){let{focusProps:r}=l1(e),{keyboardProps:n}=a5(e),o=se(r,n),i=DY(t),a=e.isDisabled?{}:i,l=h.useRef(e.autoFocus);h.useEffect(()=>{l.current&&t.current&&po(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:se({...o,tabIndex:s},a)}}var kY=h.forwardRef(({children:e,...t},r)=>{r=Kr(r);let{focusableProps:n}=Ds(t,r),o=m.Children.only(e);h.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(m.version,10)<19?o.ref:o.props.ref;return m.cloneElement(o,{...se(n,o.props),ref:Qy(i,r)})}),FY=m.forwardRef(({children:e,...t},r)=>{r=Kr(r);let{pressProps:n}=Rs({...t,ref:r}),{focusableProps:o}=Ds(t,r),i=m.Children.only(e);h.useEffect(()=>{},[r,t.isDisabled]);let a=parseInt(m.version,10)<19?i.ref:i.props.ref;return m.cloneElement(i,{...se(n,o,i.props),ref:Qy(a,r)})}),IY=m.forwardRef(({children:e,...t},r)=>{let n=h.useRef(!1),o=h.useContext(ls);r=Kr(r||(o==null?void 0:o.ref));let i=se(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return t1(o,r),h.useEffect(()=>{n.current||(n.current=!0)},[]),m.createElement(ls.Provider,{value:i},e)});function LY({children:e}){let t=h.useMemo(()=>({register:()=>{}}),[]);return m.createElement(ls.Provider,{value:t},e)}function s1(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=h.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=cf(),s=h.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,l(),r&&r(d),o&&o(!1))},[r,o,i,l]),u=Z2(s),c=h.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let f=Ee(d.target),p=st(f);if(!i.current.isFocusWithin&&p===Ve(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let y=d.currentTarget;a(f,"focus",b=>{if(i.current.isFocusWithin&&!pr(y,b.target)){let S=new f.defaultView.FocusEvent("blur",{relatedTarget:b.target});Q2(S,y);let g=o1(S);s(g)}},{capture:!0})}},[n,o,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var vm=!1,_u=0;function NY(){vm=!0,setTimeout(()=>{vm=!1},50)}function tw(e){e.pointerType==="touch"&&NY()}function MY(){if(!(typeof document>"u"))return _u===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",tw)),_u++,()=>{_u--,!(_u>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",tw))}}function Ia(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=h.useState(!1),l=h.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;h.useEffect(MY,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=cf(),{hoverProps:c,triggerHoverEnd:d}=h.useMemo(()=>{let f=(b,S)=>{if(l.pointerType=S,o||S==="touch"||l.isHovered||!b.currentTarget.contains(b.target))return;l.isHovered=!0;let g=b.currentTarget;l.target=g,s(Ee(b.target),"pointerover",v=>{l.isHovered&&l.target&&!pr(l.target,v.target)&&p(v,v.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:g,pointerType:S}),r&&r(!0),a(!0)},p=(b,S)=>{let g=l.target;l.pointerType="",l.target=null,!(S==="touch"||!l.isHovered||!g)&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:g,pointerType:S}),r&&r(!1),a(!1))},y={};return typeof PointerEvent<"u"&&(y.onPointerEnter=b=>{vm&&b.pointerType==="mouse"||f(b,b.pointerType)},y.onPointerLeave=b=>{!o&&b.currentTarget.contains(b.target)&&p(b,b.pointerType)}),{hoverProps:y,triggerHoverEnd:p}},[t,r,n,o,l,s,u]);return h.useEffect(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:i}}function l5(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=h.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=ft(s=>{r&&rw(s,t)&&(o&&o(s),i.current.isPointerDown=!0)}),l=ft(s=>{r&&r(s)});h.useEffect(()=>{let s=i.current;if(n)return;let u=t.current,c=Ee(u);if(typeof PointerEvent<"u"){let d=f=>{s.isPointerDown&&rw(f,t)&&l(f),s.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("click",d,!0)}}},[t,n,a,l])}function rw(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 BY=500;function jY(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=BY,accessibilityDescription:a}=e,l=h.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=cf(),{pressProps:c}=Rs({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(r&&r({...f,type:"longpressstart"}),l.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Ee(f.target).activeElement!==f.target&&Ht(f.target),o&&o({...f,type:"longpress"}),l.current=void 0},i),f.pointerType==="touch")){let p=y=>{y.preventDefault()};s(f.target,"contextmenu",p,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){l.current&&clearTimeout(l.current),n&&(f.pointerType==="mouse"||f.pointerType==="touch")&&n({...f,type:"longpressend"})}}),d=nY(o&&!t?a:void 0);return{longPressProps:se(c,d)}}var id=Symbol("default");function Nn({values:e,children:t}){for(let[r,n]of e)t=m.createElement(r.Provider,{value:n},t);return t}function lr(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l}=e;return h.useMemo(()=>{let s,u,c;return typeof t=="function"?s=t({...l,defaultClassName:o}):s=t,typeof r=="function"?u=r({...l,defaultStyle:a||{}}):u=r,typeof n=="function"?c=n({...l,defaultChildren:i}):n==null?c=i:c=n,{className:s??o,style:u||a?{...a,...u}:void 0,children:c??i,"data-rac":""}},[t,r,n,o,i,a,l])}function u1(e,t){let r=h.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||id;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 At(e,t,r){let n=u1(r,e.slot)||{},{ref:o,...i}=n,a=Kr(h.useMemo(()=>Qy(t,o),[t,o])),l=se(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...i.style,...e.style}),[l,a]}function s5(e=!0){let[t,r]=h.useState(e),n=h.useRef(!1),o=h.useCallback(i=>{n.current=!0,r(!!i)},[]);return ve(()=>{n.current||r(!1)},[]),[o,t]}var c1=h.createContext({placement:"bottom"});h.forwardRef(function(e,t){[e,t]=At(e,t,c1);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=lr({...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=ze(e);return m.createElement("div",{...i,...o,style:{...n,...o.style},ref:t,"data-placement":r})});function HY(e,t){let r=ze(e,{labelable:!0}),{hoverProps:n}=Ia({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:se(r,n,{role:"tooltip"})}}function UY(e,t,r){let{isDisabled:n,trigger:o}=e,i=yt(),a=h.useRef(!1),l=h.useRef(!1),s=()=>{(a.current||l.current)&&t.open(l.current)},u=g=>{!a.current&&!l.current&&t.close(g)};h.useEffect(()=>{let g=v=>{r&&r.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[r,t]);let c=()=>{o!=="focus"&&(cs()==="pointer"?a.current=!0:a.current=!1,s())},d=()=>{o!=="focus"&&(l.current=!1,a.current=!1,u())},f=()=>{l.current=!1,a.current=!1,u(!0)},p=()=>{us()&&(l.current=!0,s())},y=()=>{l.current=!1,a.current=!1,u(!0)},{hoverProps:b}=Ia({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:S}=Ds({isDisabled:n,onFocus:p,onBlur:y},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...se(S,b,{onPointerDown:f,onKeyDown:f}),tabIndex:void 0},tooltipProps:{id:i}}}var an={top:"top",bottom:"top",left:"left",right:"left"},ad={top:"bottom",bottom:"top",left:"right",right:"left"},zY={top:"left",left:"top"},Em={top:"height",left:"width"},u5={width:"totalWidth",height:"totalHeight"},Tu={},it=typeof document<"u"?window.visualViewport:null;function nw(e){let t=0,r=0,n=0,o=0,i=0,a=0,l={};var s;let u=((s=it==null?void 0:it.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;n=y.clientWidth,o=y.clientHeight;var c;t=(c=it==null?void 0:it.width)!==null&&c!==void 0?c:n;var d;r=(d=it==null?void 0:it.height)!==null&&d!==void 0?d:o,l.top=y.scrollTop||e.scrollTop,l.left=y.scrollLeft||e.scrollLeft,it&&(i=it.offsetTop,a=it.offsetLeft)}else({width:t,height:r,top:i,left:a}=Zi(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,o=r;if(j2()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var f;i=(f=it==null?void 0:it.pageTop)!==null&&f!==void 0?f:0;var p;a=(p=it==null?void 0:it.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:l,top:i,left:a}}function KY(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function ow(e,t,r,n,o,i,a){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,u=n[Em[e]],c=n.scroll[an[e]]+i,d=u+n.scroll[an[e]]-i,f=t-s+a[e]-n[an[e]],p=t-s+r+a[e]-n[an[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function WY(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 iw(e){if(Tu[e])return Tu[e];let[t,r]=e.split(" "),n=an[t]||"right",o=zY[n];an[r]||(r="center");let i=Em[n],a=Em[o];return Tu[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},Tu[e]}function rh(e,t,r,n,o,i,a,l,s,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:y,crossSize:b}=n,S={};var g;S[p]=(g=e[p])!==null&&g!==void 0?g:0;var v,E,w,$;d==="center"?S[p]+=(((v=e[b])!==null&&v!==void 0?v:0)-((E=r[b])!==null&&E!==void 0?E:0))/2:d!==p&&(S[p]+=((w=e[b])!==null&&w!==void 0?w:0)-(($=r[b])!==null&&$!==void 0?$:0)),S[p]+=i;let x=e[p]-r[b]+s+u,C=e[p]+e[b]-s-u;if(S[p]=as(S[p],x,C),c===f){let T=l?a[y]:t[u5[y]];S[ad[f]]=Math.floor(T-e[f]+o)}else S[f]=Math.floor(e[f]+e[y]+o);return S}function GY(e,t,r,n,o,i,a,l){let s=n?r.height:t[u5.height];var u;let c=e.top!=null?r.top+e.top:r.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-a);var d,f,p,y,b,S;let g=l!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((f=o.top)!==null&&f!==void 0?f:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,c+a-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((b=o.top)!==null&&b!==void 0?b:0)+((S=o.bottom)!==null&&S!==void 0?S:0)+i));return Math.min(t.height-i*2,g)}function aw(e,t,r,n,o,i){let{placement:a,axis:l,size:s}=i;var u,c;if(a===l)return Math.max(0,r[l]-e[l]-((u=e.scroll[l])!==null&&u!==void 0?u:0)+t[l]-((c=n[l])!==null&&c!==void 0?c:0)-n[ad[l]]-o);var d;return Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-r[l]-r[s]-((d=n[l])!==null&&d!==void 0?d:0)-n[ad[l]]-o)}function VY(e,t,r,n,o,i,a,l,s,u,c,d,f,p,y,b){let S=iw(e),{size:g,crossAxis:v,crossSize:E,placement:w,crossPlacement:$}=S,x=rh(t,l,r,S,c,d,u,f,y,b),C=c,T=aw(l,u,t,o,i+c,S);if(a&&n[g]>T){let ee=iw(`${ad[w]} ${$}`),N=rh(t,l,r,ee,c,d,u,f,y,b);aw(l,u,t,o,i+c,ee)>T&&(S=ee,x=N,C=c)}let A="bottom";S.axis==="top"?S.placement==="top"?A="top":S.placement==="bottom"&&(A="bottom"):S.crossAxis==="top"&&(S.crossPlacement==="top"?A="bottom":S.crossPlacement==="bottom"&&(A="top"));let O=ow(v,x[v],r[E],l,s,i,u);x[v]+=O;let _=GY(x,l,u,f,o,i,r.height,A);p&&p<_&&(_=p),r.height=Math.min(r.height,_),x=rh(t,l,r,S,C,d,u,f,y,b),O=ow(v,x[v],r[E],l,s,i,u),x[v]+=O;let I={},L=t[v]-x[v]-o[an[v]],M=L+.5*t[E],U=y/2+b;var k,F,P,B;let D=an[v]==="left"?((k=o.left)!==null&&k!==void 0?k:0)+((F=o.right)!==null&&F!==void 0?F:0):((P=o.top)!==null&&P!==void 0?P:0)+((B=o.bottom)!==null&&B!==void 0?B:0),z=r[E]-D-y/2-b,V=t[v]+y/2-(x[v]+o[an[v]]),Z=t[v]+t[E]-y/2-(x[v]+o[an[v]]),q=as(M,V,Z);I[v]=as(q,U,z),{placement:w,crossPlacement:$}=S,y?L=I[v]:$==="right"?L+=t[E]:$==="center"&&(L+=t[E]/2);let K=w==="left"||w==="top"?r[g]:0,X={x:w==="top"||w==="bottom"?L:K,y:w==="left"||w==="right"?L:K};return{position:x,maxHeight:_,arrowOffsetLeft:I.left,arrowOffsetTop:I.top,placement:w,triggerAnchorPoint:X}}function YY(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,p=n instanceof HTMLElement?qY(n):document.documentElement,y=p===document.documentElement,b=window.getComputedStyle(p).position,S=!!b&&b!=="static",g=y?Zi(r,!1):lw(r,p,!1);if(!y){let{marginTop:I,marginLeft:L}=window.getComputedStyle(r);g.top+=parseInt(I,10)||0,g.left+=parseInt(L,10)||0}let v=Zi(n,!0),E=WY(n);var w,$;v.width+=((w=E.left)!==null&&w!==void 0?w:0)+(($=E.right)!==null&&$!==void 0?$:0);var x,C;v.height+=((x=E.top)!==null&&x!==void 0?x:0)+((C=E.bottom)!==null&&C!==void 0?C:0);let T=KY(o),A=nw(l),O=nw(p),_=l.tagName==="BODY"?Zi(p,!1):lw(p,l,!1);return p.tagName==="HTML"&&l.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),VY(t,g,v,T,E,i,a,A,O,_,s,u,S,c,d,f)}function d1(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 Zi(e,t){let{top:r,left:n,width:o,height:i}=d1(e,t),{scrollTop:a,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:r+a-s,left:n+l-u,width:o,height:i}}function lw(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=d1(e,r);else{o=Zi(e,r);let i=Zi(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 qY(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!sw(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!sw(t);)t=t.parentElement;return t||document.documentElement}function sw(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 c5=new WeakMap;function XY(e){let{triggerRef:t,isOpen:r,onClose:n}=e;h.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 l=n||c5.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var JY=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),QY=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ZY(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 JY.has(r.script)}let t=e.split("-")[0];return QY.has(t)}var eq=Symbol.for("react-aria.i18n.locale");function d5(){let e=typeof window<"u"&&window[eq]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ZY(e)?"rtl":"ltr"}}var Sm=d5(),gl=new Set;function uw(){Sm=d5();for(let e of gl)e(Sm)}function tq(){let e=hi(),[t,r]=h.useState(Sm);return h.useEffect(()=>(gl.size===0&&window.addEventListener("languagechange",uw),gl.add(r),()=>{gl.delete(r),gl.size===0&&window.removeEventListener("languagechange",uw)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var rq=m.createContext(null);function Mn(){let e=tq();return h.useContext(rq)||e}var wm=function(e,t){return wm=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])},wm(e,t)};function pf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wm(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var be=function(){return be=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},be.apply(this,arguments)};function nq(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 nh(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 oh(e,t){var r=t&&t.cache?t.cache:cq,n=t&&t.serializer?t.serializer:sq,o=t&&t.strategy?t.strategy:aq;return o(e,{cache:r,serializer:n})}function oq(e){return e==null||typeof e=="number"||typeof e=="boolean"}function iq(e,t,r,n){var o=oq(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function f5(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 p5(e,t,r,n,o){return r.bind(t,e,n,o)}function aq(e,t){var r=e.length===1?iq:f5;return p5(e,this,r,t.cache.create(),t.serializer)}function lq(e,t){return p5(e,this,f5,t.cache.create(),t.serializer)}var sq=function(){return JSON.stringify(arguments)},uq=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}(),cq={create:function(){return new uq}},ih={variadic:lq},ge;(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"})(ge||(ge={}));var Le;(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"})(Le||(Le={}));var ba;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ba||(ba={}));function cw(e){return e.type===Le.literal}function dq(e){return e.type===Le.argument}function h5(e){return e.type===Le.number}function g5(e){return e.type===Le.date}function m5(e){return e.type===Le.time}function y5(e){return e.type===Le.select}function b5(e){return e.type===Le.plural}function fq(e){return e.type===Le.pound}function v5(e){return e.type===Le.tag}function E5(e){return!!(e&&typeof e=="object"&&e.type===ba.number)}function xm(e){return!!(e&&typeof e=="object"&&e.type===ba.dateTime)}var S5=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,pq=/(?:[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 hq(e){var t={};return e.replace(pq,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 gq=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function mq(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(gq).filter(function(f){return f.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 l=a[0],s=a.slice(1),u=0,c=s;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:s})}return r}function yq(e){return e.replace(/^(.*?)-/,"")}var dw=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,w5=/^(@+)?(\+|#+)?[rs]?$/g,bq=/(\*)(0+)|(#+)(0+)|(0+)/g,x5=/^(0+)$/;function fw(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(w5,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 $5(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 vq(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)),!x5.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function pw(e){var t={},r=$5(e);return r||t}function Eq(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=yq(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=be(be(be({},t),{notation:"scientific"}),o.options.reduce(function(s,u){return be(be({},s),pw(u))},{}));continue;case"engineering":t=be(be(be({},t),{notation:"engineering"}),o.options.reduce(function(s,u){return be(be({},s),pw(u))},{}));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(bq,function(s,u,c,d,f,p){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(x5.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(dw.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(dw,function(s,u,c,d,f,p){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=be(be({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=be(be({},t),fw(i)));continue}if(w5.test(o.stem)){t=be(be({},t),fw(o.stem));continue}var a=$5(o.stem);a&&(t=be(be({},t),a));var l=vq(o.stem);l&&(t=be(be({},t),l))}return t}var Ou={"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 Sq(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),l=i<2?1:3+(i>>1),s="a",u=wq(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;a-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function wq(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=Ou[n||""]||Ou[r||""]||Ou["".concat(r,"-001")]||Ou["001"];return o[0]}var ah,xq=new RegExp("^".concat(S5.source,"*")),$q=new RegExp("".concat(S5.source,"*$"));function me(e,t){return{start:e,end:t}}var Cq=!!String.prototype.startsWith&&"_a".startsWith("a",1),_q=!!String.fromCodePoint,Tq=!!Object.fromEntries,Oq=!!String.prototype.codePointAt,Aq=!!String.prototype.trimStart,Rq=!!String.prototype.trimEnd,Dq=!!Number.isSafeInteger,Pq=Dq?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$m=!0;try{hw=_5("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),$m=((ah=hw.exec("a"))===null||ah===void 0?void 0:ah[0])==="a"}catch{$m=!1}var hw,gw=Cq?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Cm=_q?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},mw=Tq?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},C5=Oq?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}},kq=Aq?function(e){return e.trimStart()}:function(e){return e.replace(xq,"")},Fq=Rq?function(e){return e.trimEnd()}:function(e){return e.replace($q,"")};function _5(e,t){return new RegExp(e,t)}var _m;$m?(lh=_5("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),_m=function(e,t){var r;lh.lastIndex=t;var n=lh.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):_m=function(e,t){for(var r=[];;){var n=C5(e,t);if(n===void 0||T5(n)||Mq(n))break;r.push(n),t+=n>=65536?2:1}return Cm.apply(void 0,r)};var lh,Iq=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 l=this.clonePosition();this.bump(),o.push({type:Le.pound,location:me(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ge.UNMATCHED_CLOSING_TAG,me(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Tm(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:Le.literal,value:"<".concat(o,"/>"),location:me(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,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tm(this.char()))return this.error(ge.INVALID_TAG,me(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(ge.UNMATCHED_CLOSING_TAG,me(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Le.tag,value:o,children:a,location:me(n,this.clonePosition())},err:null}:this.error(ge.INVALID_TAG,me(l,this.clonePosition())))}else return this.error(ge.UNCLOSED_TAG,me(n,this.clonePosition()))}else return this.error(ge.INVALID_TAG,me(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Nq(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 l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=me(n,this.clonePosition());return{val:{type:Le.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Lq(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 Cm.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(),Cm(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ge.EXPECT_ARGUMENT_CLOSING_BRACE,me(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ge.EMPTY_ARGUMENT,me(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ge.MALFORMED_ARGUMENT,me(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ge.EXPECT_ARGUMENT_CLOSING_BRACE,me(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Le.argument,value:o,location:me(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ge.EXPECT_ARGUMENT_CLOSING_BRACE,me(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(ge.MALFORMED_ARGUMENT,me(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=_m(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=me(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(ge.EXPECT_ARGUMENT_TYPE,me(a,s));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=Fq(d.val);if(f.length===0)return this.error(ge.EXPECT_ARGUMENT_STYLE,me(this.clonePosition(),this.clonePosition()));var p=me(c,this.clonePosition());u={style:f,styleLocation:p}}var y=this.tryParseArgumentClose(o);if(y.err)return y;var b=me(o,this.clonePosition());if(u&&gw(u==null?void 0:u.style,"::",0)){var S=kq(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(S,u.styleLocation);return d.err?d:{val:{type:Le.number,value:n,location:b,style:d.val},err:null}}else{if(S.length===0)return this.error(ge.EXPECT_DATE_TIME_SKELETON,b);var g=S;this.locale&&(g=Sq(S,this.locale));var f={type:ba.dateTime,pattern:g,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?hq(g):{}},v=l==="date"?Le.date:Le.time;return{val:{type:v,value:n,location:b,style:f},err:null}}}return{val:{type:l==="number"?Le.number:l==="date"?Le.date:Le.time,value:n,location:b,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ge.EXPECT_SELECT_ARGUMENT_OPTIONS,me(E,be({},E)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),$=0;if(l!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(ge.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ge.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ge.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),w=this.parseIdentifierIfPossible(),$=d.val}var x=this.tryParsePluralOrSelectOptions(t,l,r,w);if(x.err)return x;var y=this.tryParseArgumentClose(o);if(y.err)return y;var C=me(o,this.clonePosition());return l==="select"?{val:{type:Le.select,value:n,options:mw(x.val),location:C},err:null}:{val:{type:Le.plural,value:n,options:mw(x.val),offset:$,pluralType:l==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(ge.INVALID_ARGUMENT_TYPE,me(a,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ge.EXPECT_ARGUMENT_CLOSING_BRACE,me(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(ge.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,me(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=mq(t)}catch{return this.error(ge.INVALID_NUMBER_SKELETON,r)}return{val:{type:ba.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Eq(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,l=[],s=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(ge.EXPECT_PLURAL_ARGUMENT_SELECTOR,ge.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=me(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(s.has(u))return this.error(r==="select"?ge.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ge.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ge.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ge.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,me(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var b=this.tryParseArgumentClose(p);if(b.err)return b;l.push([u,{value:y.val,location:me(p,this.clonePosition())}]),s.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return l.length===0?this.error(r==="select"?ge.EXPECT_SELECT_ARGUMENT_SELECTOR:ge.EXPECT_PLURAL_ARGUMENT_SELECTOR,me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(ge.MISSING_OTHER_CLAUSE,me(this.clonePosition(),this.clonePosition())):{val:l,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 l=this.char();if(l>=48&&l<=57)i=!0,a=a*10+(l-48),this.bump();else break}var s=me(o,this.clonePosition());return i?(a*=n,Pq(a)?{val:a,err:null}:this.error(r,s)):this.error(t,s)},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=C5(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(gw(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()&&T5(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 Tm(e){return e>=97&&e<=122||e>=65&&e<=90}function Lq(e){return Tm(e)||e===47}function Nq(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 T5(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Mq(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 Om(e){e.forEach(function(t){if(delete t.location,y5(t)||b5(t))for(var r in t.options)delete t.options[r].location,Om(t.options[r].value);else h5(t)&&E5(t.style)||(g5(t)||m5(t))&&xm(t.style)?delete t.style.location:v5(t)&&Om(t.children)})}function Bq(e,t){t===void 0&&(t={}),t=be({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Iq(e,t).parse();if(r.err){var n=SyntaxError(ge[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Om(r.val),r.val}var va;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(va||(va={}));var hf=function(e){pf(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),yw=function(e){pf(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('", "'),'"'),va.INVALID_VALUE,i)||this}return t}(hf),jq=function(e){pf(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),va.INVALID_VALUE,o)||this}return t}(hf),Hq=function(e){pf(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,'"'),va.MISSING_VALUE,n)||this}return t}(hf),kt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(kt||(kt={}));function Uq(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==kt.literal||r.type!==kt.literal?t.push(r):n.value+=r.value,t},[])}function zq(e){return typeof e=="function"}function uc(e,t,r,n,o,i,a){if(e.length===1&&cw(e[0]))return[{type:kt.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(cw(c)){l.push({type:kt.literal,value:c.value});continue}if(fq(c)){typeof i=="number"&&l.push({type:kt.literal,value:r.getNumberFormat(t).format(i)});continue}var d=c.value;if(!(o&&d in o))throw new Hq(d,a);var f=o[d];if(dq(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),l.push({type:typeof f=="string"?kt.literal:kt.object,value:f});continue}if(g5(c)){var p=typeof c.style=="string"?n.date[c.style]:xm(c.style)?c.style.parsedOptions:void 0;l.push({type:kt.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(m5(c)){var p=typeof c.style=="string"?n.time[c.style]:xm(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:kt.literal,value:r.getDateTimeFormat(t,p).format(f)});continue}if(h5(c)){var p=typeof c.style=="string"?n.number[c.style]:E5(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),l.push({type:kt.literal,value:r.getNumberFormat(t,p).format(f)});continue}if(v5(c)){var y=c.children,b=c.value,S=o[b];if(!zq(S))throw new jq(b,"function",a);var g=uc(y,t,r,n,o,i),v=S(g.map(function($){return $.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function($){return{type:typeof $=="string"?kt.literal:kt.object,value:$}}))}if(y5(c)){var E=c.options[f]||c.options.other;if(!E)throw new yw(c.value,f,Object.keys(c.options),a);l.push.apply(l,uc(E.value,t,r,n,o));continue}if(b5(c)){var E=c.options["=".concat(f)];if(!E){if(!Intl.PluralRules)throw new hf(`Intl.PluralRules is not available in this environment.
  598. Try polyfilling it using "@formatjs/intl-pluralrules"
  599. `,va.MISSING_INTL_API,a);var w=r.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));E=c.options[w]||c.options.other}if(!E)throw new yw(c.value,f,Object.keys(c.options),a);l.push.apply(l,uc(E.value,t,r,n,o,f-(c.offset||0)));continue}}return Uq(l)}function Kq(e,t){return t?be(be(be({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=be(be({},e[n]),t[n]||{}),r},{})):e}function Wq(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Kq(e[n],t[n]),r},be({},e)):e}function sh(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Gq(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:oh(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,nh([void 0],r,!1)))},{cache:sh(e.number),strategy:ih.variadic}),getDateTimeFormat:oh(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,nh([void 0],r,!1)))},{cache:sh(e.dateTime),strategy:ih.variadic}),getPluralRules:oh(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,nh([void 0],r,!1)))},{cache:sh(e.pluralRules),strategy:ih.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(s){var u=i.formatToParts(s);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==kt.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(s){return uc(i.ast,i.locales,i.formatters,i.formats,s,void 0,i.message)},this.resolvedOptions=function(){var s;return{locale:((s=i.resolvedLocale)===null||s===void 0?void 0:s.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 l=nq(a,["formatters"]);this.ast=e.__parse(t,be(be({},l),{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=Wq(e.formats,n),this.formatters=o&&o.formatters||Gq(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=Bq,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 Vq=Symbol.for("react-aria.i18n.locale"),Yq=Symbol.for("react-aria.i18n.strings"),wi,O5=class A5{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=qq(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[Vq];if(wi===void 0){let o=window[Yq];if(!o)return null;wi={};for(let i in o)wi[i]=new A5({[r]:o[i]},r)}let n=wi==null?void 0:wi[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 qq(e,t,r="en-US"){if(t[e])return t[e];let n=Xq(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Xq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var bw=new Map,vw=new Map,Jq=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=bw.get(o);i||(i=new Intl.PluralRules(this.locale,{type:r}),bw.set(o,i));let a=i.select(e);return n=t[a]||t.other,typeof n=="function"?n():n}number(e){let t=vw.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),vw.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}},Ew=new WeakMap;function Qq(e){let t=Ew.get(e);return t||(t=new O5(e),Ew.set(e,t)),t}function Zq(e,t){return O5.getGlobalDictionaryForPackage(t)||Qq(e)}function eX(e,t){let{locale:r}=Mn(),n=Zq(e,t);return h.useMemo(()=>new Jq(r,n),[r,n])}var uh=new Map,Am=!1;try{Am=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var ld=!1;try{ld=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var R5={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},tX=class{format(e){let t="";if(!Am&&this.options.signDisplay!=null?t=nX(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!ld){var r;let{unit:n,unitDisplay:o="short",locale:i}=this.resolvedOptions();if(!n)return t;let a=(r=R5[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!Am&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!ld&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=rX(e,t),this.options=t}};function rX(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!ld){var n;let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=R5[a])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(uh.has(o))return uh.get(o);let i=new Intl.NumberFormat(e,t);return uh.set(o,i),i}function nX(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 oX(e={}){let{locale:t}=Mn();return h.useMemo(()=>new tX(t,e),[t,e])}var ch=new Map;function iX(e){let{locale:t}=Mn(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ch.has(r))return ch.get(r);let n=new Intl.Collator(t,e);return ch.set(r,n),n}var Ge=typeof document<"u"?window.visualViewport:null;function f1(e){let{direction:t}=Mn(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:y=!0,onClose:b,maxHeight:S,arrowBoundaryOffset:g=0}=e,[v,E]=h.useState(null),w=[p,l,o.current,n.current,i==null?void 0:i.current,a.current,s,u,c,d,f,y,t,S,g,r],$=h.useRef(Ge==null?void 0:Ge.scale);h.useEffect(()=>{y&&($.current=Ge==null?void 0:Ge.scale)},[y]);let x=h.useCallback(()=>{if(p===!1||!y||!o.current||!n.current||!c||(Ge==null?void 0:Ge.scale)!==$.current)return;let I=null;if(a.current&&a.current.contains(document.activeElement)){var L;let D=(L=document.activeElement)===null||L===void 0?void 0:L.getBoundingClientRect(),z=a.current.getBoundingClientRect();var M;if(I={type:"top",offset:((M=D==null?void 0:D.top)!==null&&M!==void 0?M:0)-z.top},I.offset>z.height/2){I.type="bottom";var U;I.offset=((U=D==null?void 0:D.bottom)!==null&&U!==void 0?U:0)-z.bottom}}let k=o.current;if(!S&&o.current){var F;k.style.top="0px",k.style.bottom="";var P;k.style.maxHeight=((P=(F=window.visualViewport)===null||F===void 0?void 0:F.height)!==null&&P!==void 0?P:window.innerHeight)+"px"}let B=YY({placement:lX(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:a.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:S,arrowSize:r??(i!=null&&i.current?d1(i.current,!0).width:0),arrowBoundaryOffset:g});if(B.position){if(k.style.top="",k.style.bottom="",k.style.left="",k.style.right="",Object.keys(B.position).forEach(D=>k.style[D]=B.position[D]+"px"),k.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",I&&document.activeElement&&a.current){let D=document.activeElement.getBoundingClientRect(),z=a.current.getBoundingClientRect(),V=D[I.type]-z[I.type];a.current.scrollTop+=V-I.offset}E(B)}},w);ve(x,w),aX(x),ed({ref:o,onResize:x}),ed({ref:n,onResize:x});let C=h.useRef(!1);ve(()=>{let I,L=()=>{C.current=!0,clearTimeout(I),I=setTimeout(()=>{C.current=!1},500),x()},M=()=>{C.current&&L()};return Ge==null||Ge.addEventListener("resize",L),Ge==null||Ge.addEventListener("scroll",M),()=>{Ge==null||Ge.removeEventListener("resize",L),Ge==null||Ge.removeEventListener("scroll",M)}},[x]);let T=h.useCallback(()=>{C.current||(b==null||b())},[b,C]);XY({triggerRef:n,isOpen:y,onClose:b&&T});var A,O,_;return{overlayProps:{style:{position:v?"absolute":"fixed",top:v?void 0:0,left:v?void 0:0,zIndex:1e5,...v==null?void 0:v.position,maxHeight:(A=v==null?void 0:v.maxHeight)!==null&&A!==void 0?A:"100vh"}},placement:(O=v==null?void 0:v.placement)!==null&&O!==void 0?O:null,triggerAnchorPoint:(_=v==null?void 0:v.triggerAnchorPoint)!==null&&_!==void 0?_:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v==null?void 0:v.arrowOffsetLeft,top:v==null?void 0:v.arrowOffsetTop}},updatePosition:x}}function aX(e){ve(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function lX(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var Sw=m.createContext(null),Rm="react-aria-focus-scope-restore",Ae=null;function p1(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=h.useRef(null),a=h.useRef(null),l=h.useRef([]),{parentNode:s}=h.useContext(Sw)||{},u=h.useMemo(()=>new Pm({scopeRef:l}),[l]);ve(()=>{let f=s||qe.root;if(qe.getTreeNode(f.scopeRef)&&Ae&&!sd(Ae,f.scopeRef)){let p=qe.getTreeNode(Ae);p&&(f=p)}f.addChild(u),qe.addNode(u)},[u,s]),ve(()=>{let f=qe.getTreeNode(l);f&&(f.contain=!!r)},[r]),ve(()=>{var f;let p=(f=i.current)===null||f===void 0?void 0:f.nextSibling,y=[],b=S=>S.stopPropagation();for(;p&&p!==a.current;)y.push(p),p.addEventListener(Rm,b),p=p.nextSibling;return l.current=y,()=>{for(let S of y)S.removeEventListener(Rm,b)}},[t]),pX(l,n,r),cX(l,r),hX(l,n,r),fX(l,o),h.useEffect(()=>{let f=st(Ee(l.current?l.current[0]:void 0)),p=null;if($r(f,l.current)){for(let y of qe.traverse())y.scopeRef&&$r(f,y.scopeRef.current)&&(p=y);p===qe.getTreeNode(l)&&(Ae=p.scopeRef)}},[l]),ve(()=>()=>{var f,p,y;let b=(y=(p=qe.getTreeNode(l))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&y!==void 0?y:null;(l===Ae||sd(l,Ae))&&(!b||qe.getTreeNode(b))&&(Ae=b),qe.removeTreeNode(l)},[l]);let c=h.useMemo(()=>sX(l),[]),d=h.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return m.createElement(Sw.Provider,{value:d},m.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,m.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function sX(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||st(Ee((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[0].previousElementSibling,c=Ho(r),d=Kt(c,{tabbable:o,accept:a},r);d.currentNode=$r(s,r)?s:u;let f=d.nextNode();return!f&&i&&(d.currentNode=u,f=d.nextNode()),f&&Ut(f,!0),f},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||st(Ee((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[r.length-1].nextElementSibling,c=Ho(r),d=Kt(c,{tabbable:o,accept:a},r);d.currentNode=$r(s,r)?s:u;let f=d.previousNode();return!f&&i&&(d.currentNode=u,f=d.previousNode()),f&&Ut(f,!0),f},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Ho(r),a=Kt(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&Ut(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Ho(r),a=Kt(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&Ut(l,!0),l}}}function Ho(e){return e[0].parentElement}function ml(e){let t=qe.getTreeNode(Ae);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function uX(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Ee(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 cX(e,t){let r=h.useRef(void 0),n=h.useRef(void 0);ve(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let i=Ee(o?o[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!ml(e)||u.isComposing)return;let c=st(i),d=e.current;if(!d||!$r(c,d))return;let f=Ho(d),p=Kt(f,{tabbable:!0},d);if(!c)return;p.currentNode=c;let y=u.shiftKey?p.previousNode():p.nextNode();y||(p.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,y=u.shiftKey?p.previousNode():p.nextNode()),u.preventDefault(),y&&Ut(y,!0)},l=u=>{(!Ae||sd(Ae,e))&&$r(Ve(u),e.current)?(Ae=e,r.current=Ve(u)):ml(e)&&!eo(Ve(u),e)?r.current?r.current.focus():Ae&&Ae.current&&Dm(Ae.current):ml(e)&&(r.current=Ve(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=cs(),d=(c==="virtual"||c===null)&&e1()&&H2(),f=st(i);if(!d&&f&&ml(e)&&!eo(f,e)){Ae=e;let y=Ve(u);if(y&&y.isConnected){var p;r.current=y,(p=r.current)===null||p===void 0||p.focus()}else Ae.current&&Dm(Ae.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),o==null||o.forEach(u=>u.addEventListener("focusin",l,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",l,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),ve(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function D5(e){return eo(e)}function $r(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function eo(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of qe.traverse(qe.getTreeNode(t)))if(r&&$r(e,r.current))return!0;return!1}function dX(e){return eo(e,Ae)}function sd(e,t){var r;let n=(r=qe.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Ut(e,t=!1){if(e!=null&&!t)try{po(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function P5(e,t=!0){let r=e[0].previousElementSibling,n=Ho(e),o=Kt(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=Ho(e),o=Kt(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function Dm(e,t=!0){Ut(P5(e,t))}function fX(e,t){let r=m.useRef(t);h.useEffect(()=>{if(r.current){Ae=e;let n=Ee(e.current?e.current[0]:void 0);!$r(st(n),Ae.current)&&e.current&&Dm(e.current)}r.current=!1},[e])}function pX(e,t,r){ve(()=>{if(t||r)return;let n=e.current,o=Ee(n?n[0]:void 0),i=a=>{let l=Ve(a);$r(l,e.current)?Ae=e:D5(l)||(Ae=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 ww(e){let t=qe.getTreeNode(Ae);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function hX(e,t,r){let n=h.useRef(typeof document<"u"?st(Ee(e.current?e.current[0]:void 0)):null);ve(()=>{let o=e.current,i=Ee(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!Ae||sd(Ae,e))&&$r(st(i),e.current)&&(Ae=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,r]),ve(()=>{let o=Ee(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!ml(e)||a.isComposing)return;let l=o.activeElement;if(!eo(l,e)||!ww(e))return;let s=qe.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=Kt(o.body,{tabbable:!0});c.currentNode=l;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!eo(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(eo(d,e));a.preventDefault(),a.stopPropagation(),d?Ut(d,!0):D5(u)?Ut(u,!0):l.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),ve(()=>{let o=Ee(e.current?e.current[0]:void 0);if(!t)return;let i=qe.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let l=qe.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=st(o);if(t&&s&&(u&&eo(u,e)||u===o.body&&ww(e))){let c=qe.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){xw(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&qe.getTreeNode(d.scopeRef)){let f=P5(d.scopeRef.current,!0);xw(f);return}d=d.parent}}})}}}},[e,t])}function xw(e){e.dispatchEvent(new CustomEvent(Rm,{bubbles:!0,cancelable:!0}))&&Ut(e)}function Kt(e,t,r){let n=t!=null&&t.tabbable?fY:X2,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=Ee(o),a=PV(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(l)||t!=null&&t.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!uX(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||$r(l,r))&&(!(t!=null&&t.accept)||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function gX(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=o||st(Ee(n)),u=Kt(n,{tabbable:i,accept:l});n.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&a&&(u.currentNode=n,c=u.nextNode()),c&&Ut(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=o||st(Ee(n)),u=Kt(n,{tabbable:i,accept:l});if(n.contains(s))u.currentNode=s;else{let d=dh(u);return d&&Ut(d,!0),d??null}let c=u.previousNode();if(!c&&a){u.currentNode=n;let d=dh(u);if(!d)return null;c=d}return c&&Ut(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=Kt(n,{tabbable:o,accept:i}).nextNode();return a&&Ut(a,!0),a},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=Kt(n,{tabbable:o,accept:i}),l=dh(a);return l&&Ut(l,!0),l??null}}}function dh(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var mX=class k5{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 Pm({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&&$r(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 k5;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 Pm({scopeRef:null}),this.fastMap.set(null,this.root)}},Pm=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}},qe=new mX;function gf(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||us()}),[i,a]=h.useState(!1),[l,s]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(p=>{o.current.isFocused=p,a(p),u()},[u]);RY(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:r});let{focusProps:d}=l1({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=s1({isDisabled:!n,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:l,focusProps:n?f:d}}function yX(e,t){let[r,n]=h.useState(!1);return ve(()=>{if(e!=null&&e.current){let o=()=>{if(e.current){let a=Kt(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 F5(e){let t=vX(Ee(e));t!==e&&(t&&bX(t,e),e&&I5(e,t))}function bX(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function I5(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function vX(e){let t=st(e),r=t==null?void 0:t.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var Vr=[];function h1(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:l}=e;h.useEffect(()=>{if(o&&!Vr.includes(t))return Vr.push(t),()=>{let y=Vr.indexOf(t);y>=0&&Vr.splice(y,1)}},[o,t]);let s=()=>{Vr[Vr.length-1]===t&&r&&r()},u=y=>{(!l||l(y.target))&&Vr[Vr.length-1]===t&&(y.stopPropagation(),y.preventDefault())},c=y=>{(!l||l(y.target))&&(Vr[Vr.length-1]===t&&(y.stopPropagation(),y.preventDefault()),s())},d=y=>{y.key==="Escape"&&!a&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),s())};l5({ref:t,onInteractOutside:i&&o?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:f}=s1({isDisabled:!n,onBlurWithin:y=>{!y.relatedTarget||dX(y.relatedTarget)||(!l||l(y.relatedTarget))&&(r==null||r())}}),p=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}function EX(e,t,r){let{isOpen:n}=t;h.useEffect(()=>{r&&r.current&&c5.set(r.current,t.close)});let o,i=yt();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}var Al=typeof document<"u"&&window.visualViewport,Au=0,fh;function L5(e={}){let{isDisabled:t}=e;ve(()=>{if(!t)return Au++,Au===1&&(sf()?fh=wX():fh=SX()),()=>{Au--,Au===0&&fh()}},[t])}function SX(){let e=window.innerWidth-document.documentElement.clientWidth;return As(e>0&&("scrollbarGutter"in document.documentElement.style?ph(document.documentElement,"scrollbarGutter","stable"):ph(document.documentElement,"paddingRight",`${e}px`)),ph(document.documentElement,"overflow","hidden"))}function wX(){let e,t=!1,r=s=>{let u=s.target;e=ya(u)?u:K2(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
  600. @layer {
  601. * {
  602. overscroll-behavior: contain;
  603. }
  604. }`.trim(),document.head.prepend(n);let o=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},i=s=>{let u=s.target,c=s.relatedTarget;if(c&&Qp(c))c.focus({preventScroll:!0}),$w(c,Qp(u));else if(!c){var d;let f=(d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");f==null||f.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&Qp(document.activeElement);a.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&$w(this,u)};let l=As(hh(document,"touchstart",r,{passive:!1,capture:!0}),hh(document,"touchmove",o,{passive:!1,capture:!0}),hh(document,"blur",i,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=a}}function ph(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function hh(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function $w(e,t){t||!Al?Cw(e):Al.addEventListener("resize",()=>Cw(e),{once:!0})}function Cw(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=K2(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;Al&&(a=Math.min(a,Al.offsetTop+Al.height));let l=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+l)),behavior:"smooth"})}}r=n.parentElement}}var xX=h.createContext({});function N5(){var e;return(e=h.useContext(xX))!==null&&e!==void 0?e:{}}var km=m.createContext(null);function $X(e){let{children:t}=e,r=h.useContext(km),[n,o]=h.useState(0),i=h.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return m.createElement(km.Provider,{value:i},t)}function CX(){let e=h.useContext(km);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function _X(e){let{modalProviderProps:t}=CX();return m.createElement("div",{"data-overlay-container":!0,...e,...t})}function TX(e){return m.createElement($X,null,m.createElement(_X,e))}function OX(e){let t=hi(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=N5();if(!e.portalContainer&&o&&(r=o()),m.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=m.createElement(TX,n);return aT.createPortal(i,r)}var M5={};M5={dismiss:"تجاهل"};var B5={};B5={dismiss:"Отхвърляне"};var j5={};j5={dismiss:"Odstranit"};var H5={};H5={dismiss:"Luk"};var U5={};U5={dismiss:"Schließen"};var z5={};z5={dismiss:"Απόρριψη"};var K5={};K5={dismiss:"Dismiss"};var W5={};W5={dismiss:"Descartar"};var G5={};G5={dismiss:"Lõpeta"};var V5={};V5={dismiss:"Hylkää"};var Y5={};Y5={dismiss:"Rejeter"};var q5={};q5={dismiss:"התעלם"};var X5={};X5={dismiss:"Odbaci"};var J5={};J5={dismiss:"Elutasítás"};var Q5={};Q5={dismiss:"Ignora"};var Z5={};Z5={dismiss:"閉じる"};var eA={};eA={dismiss:"무시"};var tA={};tA={dismiss:"Atmesti"};var rA={};rA={dismiss:"Nerādīt"};var nA={};nA={dismiss:"Lukk"};var oA={};oA={dismiss:"Negeren"};var iA={};iA={dismiss:"Zignoruj"};var aA={};aA={dismiss:"Descartar"};var lA={};lA={dismiss:"Dispensar"};var sA={};sA={dismiss:"Revocare"};var uA={};uA={dismiss:"Пропустить"};var cA={};cA={dismiss:"Zrušiť"};var dA={};dA={dismiss:"Opusti"};var fA={};fA={dismiss:"Odbaci"};var pA={};pA={dismiss:"Avvisa"};var hA={};hA={dismiss:"Kapat"};var gA={};gA={dismiss:"Скасувати"};var mA={};mA={dismiss:"取消"};var yA={};yA={dismiss:"關閉"};var bA={};bA={"ar-AE":M5,"bg-BG":B5,"cs-CZ":j5,"da-DK":H5,"de-DE":U5,"el-GR":z5,"en-US":K5,"es-ES":W5,"et-EE":G5,"fi-FI":V5,"fr-FR":Y5,"he-IL":q5,"hr-HR":X5,"hu-HU":J5,"it-IT":Q5,"ja-JP":Z5,"ko-KR":eA,"lt-LT":tA,"lv-LV":rA,"nb-NO":nA,"nl-NL":oA,"pl-PL":iA,"pt-BR":aA,"pt-PT":lA,"ro-RO":sA,"ru-RU":uA,"sk-SK":cA,"sl-SI":dA,"sr-SP":fA,"sv-SE":pA,"tr-TR":hA,"uk-UA":gA,"zh-CN":mA,"zh-TW":yA};var _w={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 AX(e={}){let{style:t,isFocusable:r}=e,[n,o]=h.useState(!1),{focusWithinProps:i}=s1({isDisabled:!r,onFocusWithinChange:l=>o(l)}),a=h.useMemo(()=>n?t:t?{..._w,...t}:_w,[n]);return{visuallyHiddenProps:{...i,style:a}}}function RX(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:a}=AX(e);return m.createElement(r,se(i,a),t)}function DX(e){return e&&e.__esModule?e.default:e}function Tw(e){let{onDismiss:t,...r}=e,n=eX(DX(bA),"@react-aria/overlays"),o=df(r,n.format("dismiss")),i=()=>{t&&t()};return m.createElement(RX,null,m.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var PX=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rl=new WeakMap,Bt=[];function mf(e,t){let r=vr(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)&&PX,l=new Set(e),s=new Set,u=b=>a&&b instanceof r.HTMLElement?b.inert:b.getAttribute("aria-hidden")==="true",c=(b,S)=>{a&&b instanceof r.HTMLElement?b.inert=S:S?b.setAttribute("aria-hidden","true"):(b.removeAttribute("aria-hidden"),b instanceof r.HTMLElement&&(b.inert=!1))},d=b=>{for(let E of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(E);let S=E=>{if(s.has(E)||l.has(E)||E.parentElement&&s.has(E.parentElement)&&E.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let w of l)if(E.contains(w))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},g=document.createTreeWalker(b,NodeFilter.SHOW_ELEMENT,{acceptNode:S}),v=S(b);if(v===NodeFilter.FILTER_ACCEPT&&f(b),v!==NodeFilter.FILTER_REJECT){let E=g.nextNode();for(;E!=null;)f(E),E=g.nextNode()}},f=b=>{var S;let g=(S=rl.get(b))!==null&&S!==void 0?S:0;u(b)&&g===0||(g===0&&c(b,!0),s.add(b),rl.set(b,g+1))};Bt.length&&Bt[Bt.length-1].disconnect(),d(i);let p=new MutationObserver(b=>{for(let S of b)if(S.type==="childList"&&![...l,...s].some(g=>g.contains(S.target)))for(let g of S.addedNodes)(g instanceof HTMLElement||g instanceof SVGElement)&&(g.dataset.liveAnnouncer==="true"||g.dataset.reactAriaTopLayer==="true")?l.add(g):g instanceof Element&&d(g)});p.observe(i,{childList:!0,subtree:!0});let y={visibleNodes:l,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return Bt.push(y),()=>{p.disconnect();for(let b of s){let S=rl.get(b);S!=null&&(S===1?(c(b,!1),rl.delete(b)):rl.set(b,S-1))}y===Bt[Bt.length-1]?(Bt.pop(),Bt.length&&Bt[Bt.length-1].observe()):Bt.splice(Bt.indexOf(y),1)}}function kX(e){let t=Bt[Bt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function FX(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:d}=h1({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},o??n),{overlayProps:f,arrowProps:p,placement:y,triggerAnchorPoint:b}=f1({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return L5({isDisabled:i||!t.isOpen}),h.useEffect(()=>{if(t.isOpen&&n.current){var S,g;return i?kX((S=o==null?void 0:o.current)!==null&&S!==void 0?S:n.current):mf([(g=o==null?void 0:o.current)!==null&&g!==void 0?g:n.current],{shouldUseInert:!0})}},[i,t.isOpen,n,o]),{popoverProps:se(c,f),arrowProps:p,underlayProps:d,placement:y,triggerAnchorPoint:b}}var vA=m.createContext(null);function ud(e){let t=hi(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=h.useState(!1),a=h.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:l}=N5();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=m.createElement(p1,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=m.createElement(vA.Provider,{value:a},m.createElement(LY,null,s)),aT.createPortal(s,r)}function EA(){let e=h.useContext(vA),t=e==null?void 0:e.setContain;ve(()=>{t==null||t(!0)},[t])}function IX(e,t,r){let{overlayProps:n,underlayProps:o}=h1({...e,isOpen:t.isOpen,onClose:t.close},r);return L5({isDisabled:!t.isOpen}),EA(),h.useEffect(()=>{if(t.isOpen&&r.current)return mf([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:se(n),underlayProps:o}}function Ps(e){let[t,r]=ff(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=h.useCallback(()=>{r(!0)},[r]),o=h.useCallback(()=>{r(!1)},[r]),i=h.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}var LX=1500,Ow=500,Co={},NX=0,nl=!1,yn=null,_o=null;function SA(e={}){let{delay:t=LX,closeDelay:r=Ow}=e,{isOpen:n,open:o,close:i}=Ps(e),a=h.useMemo(()=>`${++NX}`,[]),l=h.useRef(null),s=h.useRef(i),u=()=>{Co[a]=f},c=()=>{for(let y in Co)y!==a&&(Co[y](!0),delete Co[y])},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),nl=!0,o(),yn&&(clearTimeout(yn),yn=null),_o&&(clearTimeout(_o),_o=null)},f=y=>{y||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current()},r)),yn&&(clearTimeout(yn),yn=null),nl&&(_o&&clearTimeout(_o),_o=setTimeout(()=>{delete Co[a],_o=null,nl=!1},Math.max(Ow,r)))},p=()=>{c(),u(),!n&&!yn&&!nl?yn=setTimeout(()=>{yn=null,nl=!0,d()},t):n||d()};return h.useEffect(()=>{s.current=i},[i]),h.useEffect(()=>()=>{l.current&&clearTimeout(l.current),Co[a]&&delete Co[a]},[a]),{isOpen:n,open:y=>{!y&&t>0&&!l.current?p():d()},close:f}}var g1=h.createContext(null),wA=h.createContext(null);function MX(e){let t=SA(e),r=h.useRef(null),{triggerProps:n,tooltipProps:o}=UY(e,t,r);return m.createElement(Nn,{values:[[g1,t],[wA,{...o,triggerRef:r}]]},m.createElement(PY,{...n,ref:r},e.children))}var BX=h.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=At(t,r,wA);let n=h.useContext(g1),o=SA(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,a=Y2(r,i.isOpen)||t.isExiting||!1;return!i.isOpen&&!a?null:m.createElement(OX,{portalContainer:e},m.createElement(jX,{...t,tooltipRef:r,isExiting:a}))});function jX(e){let t=h.useContext(g1),r=h.useRef(null),{overlayProps:n,arrowProps:o,placement:i,triggerAnchorPoint:a}=f1({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)}),l=V2(e.tooltipRef,!!i)||e.isEntering||!1,s=lr({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:l,isExiting:e.isExiting,state:t}});e=se(e,n);let{tooltipProps:u}=HY(e,t),c=ze(e,{global:!0});return m.createElement("div",{...se(c,s,u),ref:e.tooltipRef,style:{...n.style,"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0,...s.style},"data-placement":i??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},m.createElement(c1.Provider,{value:{...o,placement:i,ref:r}},s.children))}var HX=Lt(ai(),1),m1=(0,HX.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("-"," "));R.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var UX=h.forwardRef((e,t)=>m.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));UX.displayName="Trigger";var xA=({triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:o,defaultVisible:i,startOpen:a,delayShow:l=400,delayHide:s=200,visible:u,onVisibleChange:c,...d})=>{let f=m1(t),p=m.Children.only(o);a!==void 0&&EV("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[y,b]=h.useState(i??a??!1),S=h.useCallback(g=>{b(g),c==null||c(g)},[c]);return m.createElement(MX,{delay:l,closeDelay:s,isOpen:u??y,onOpenChange:S,trigger:e?"focus":void 0,...d},m.createElement(kY,null,m.cloneElement(p,{"aria-describedby":null})),m.createElement(BX,{"data-testid":"tooltip",placement:f,offset:r,onOpenChange:S,style:{outline:"none"},...d},n))},$A=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=h.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&&`[${SW(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?m.createElement(xA,{placement:"top",tooltip:m.createElement(I2,{note:o}),visible:t?!1:void 0},e):m.createElement(m.Fragment,null,e)};$A.displayName="InteractiveTooltipWrapper";function zX(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?m.createElement("span",{id:t,hidden:!0},e):null}}var ke=h.forwardRef(({as:e="button",asChild:t=!1,animation:r="none",size:n="small",variant:o="outline",padding:i="medium",disabled:a=!1,readOnly:l=!1,active:s,onClick:u,ariaLabel:c,ariaDescription:d=void 0,tooltip:f=void 0,shortcut:p=void 0,disableAllTooltips:y=!1,...b},S)=>{let g=t?pV:e,v;!l&&(c===void 0||c==="")&&(v="ariaLabel",gm(`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: ${b.children}.`)),s!==void 0&&(v="active",gm("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:E,AriaDescription:w}=zX(d),$=h.useMemo(()=>p?wW(p):void 0,[p]),[x,C]=h.useState(!1),T=A=>{u&&u(A),r!=="none"&&C(!0)};return h.useEffect(()=>{let A=setTimeout(()=>{x&&C(!1)},1e3);return()=>clearTimeout(A)},[x]),m.createElement(m.Fragment,null,m.createElement($A,{disableAllTooltips:y,shortcut:p,tooltip:f||(c!==!1?c:void 0)},m.createElement(KX,{"data-deprecated":v,as:g,ref:S,variant:o,size:n,padding:i,$disabled:a||l,"aria-disabled":a||l?"true":void 0,readOnly:l,active:s,animating:x,animation:r,onClick:a||l?void 0:T,"aria-label":!l&&c!==!1?c:void 0,"aria-keyshortcuts":l?void 0:$,...l?{}:E,...b})),m.createElement(w,null))});ke.displayName="Button";var KX=R("button",{shouldForwardProp:e=>Vd(e)})(({theme:e,variant:t,size:r,$disabled:n,readOnly:o,active:i,animating:a,animation:l="none",padding:s})=>({border:0,cursor:o?"inherit":n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="none"?0:s==="small"&&r==="small"?"0 7px":s==="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:$t(.18,e.color.secondary):t==="outline"?e.button.background:t==="ghost"&&i?kn(.93,e.barSelectedColor):"transparent",color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&i?e.base==="light"?$t(.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 u=e.color.secondary;return t==="solid"&&(u=e.base==="light"?Qu(.1,e.color.secondary):$t(.3,e.color.secondary)),t==="outline"&&(u=e.button.background),t==="ghost"?kn(.86,e.color.secondary):e.base==="light"?$t(.02,u):Qu(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?$t(.02,u):Qu(.03,u)})()},"&:focus-visible":{outline:`2px solid ${ei(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&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),CA=h.forwardRef((e,t)=>(gm("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),m.createElement(ke,{ref:t,...e,"data-deprecated":"IconButton"})));CA.displayName="IconButton";var ks=h.forwardRef(({pressed:e,...t},r)=>m.createElement(WX,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));ks.displayName="ToggleButton";var WX=R(ke)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?$t(.1,e.color.secondary):$t(.2,e.color.secondary)}:{},...t==="outline"?{background:kn(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:kn(.93,e.barSelectedColor),color:e.base==="light"?$t(.1,e.color.secondary):e.color.secondary}:{}}:{}})),_A=R.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"?$t(.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)) :not(input) + input":{position:"absolute",opacity:0},'&[role="option"]':{cursor:"pointer",borderRadius:t.input.borderRadius,outlineOffset:-2,padding:"0 9px",gap:8,"&:hover":{background:kn(.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"}}}),GX=R(_A)(({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}})),VX=R(ke)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),YX=R(ks)({"&:focus-visible":{outlineOffset:-2}}),TA=h.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return m.createElement(VX,{...n,variant:r,padding:e,size:t,ref:o})}),qX=h.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return m.createElement(YX,{...n,variant:r,padding:e,size:t,ref:o})}),OA=R(TA)(({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}})),XX=e=>m.createElement(OA,{as:"a",...e}),JX=R.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}})),QX=R.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),cc=Object.assign(R.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:_A,HoverItem:GX,Button:TA,Toggle:qX,Action:OA,Link:XX,Text:JX,Icon:QX}),Aw=R.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,...l}){let s=eJ({collapsed:r,disabled:n,initialCollapsed:o,storageKey:i}),u=a||s;return m.createElement(m.Fragment,null,typeof t=="function"?t(u):t,m.createElement(Aw,{...l,id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed},typeof e=="function"?e(u):e))},{Content:Aw});var ZX=(e,t)=>{let[r,n]=h.useState(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return h.useEffect(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,n]},eJ=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[o,i]=ZX(n&&`useCollapsible:${n}`,!!r);h.useEffect(()=>{e!==void 0&&i(e)},[e,i]);let a=h.useCallback(s=>{s==null||s.stopPropagation(),t||i(u=>!u)},[t,i]),l=yt();return{contentId:l,isCollapsed:o,isDisabled:!!t,setCollapsed:i,toggleCollapsed:a,toggleProps:{disabled:t,onClick:a,"aria-controls":l,"aria-expanded":!o}}},tJ=ut({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),rJ=ut({"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)"}}),nJ=ut({to:{backgroundPositionX:"36%"}}),Rw=R.div(({theme:e})=>({borderRadius:e.appBorderRadius,backgroundColor:e.background.content,position:"relative"})),Dw=R.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:`${nJ} 10s infinite linear, ${tJ} 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:`${rJ} 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(h.forwardRef(function({outlineAnimation:e="none",outlineColor:t,outlineAttrs:r={},...n},o){return m.createElement(Dw,{animation:e,color:t,ref:o,...r},m.createElement(Rw,{...n}))}),{Content:Rw,Outline:Dw});const{deprecate:gh}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var oJ=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],AA=e=>({_s:e,status:oJ[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),Fm=e=>e?6:5,iJ=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Fm(t)}},aJ=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],lJ=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),Pw=(e,t,r,n,o)=>{clearTimeout(n.current);let i=AA(e);t(i),r.current=i,o&&o({current:i})},sJ=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:i,mountOnEnter:a,unmountOnExit:l,onStateChange:s}={})=>{let[u,c]=h.useState(()=>AA(i?2:Fm(a))),d=h.useRef(u),f=h.useRef(),[p,y]=aJ(o),b=h.useCallback(()=>{let g=iJ(d.current._s,l);g&&Pw(g,c,d,f,s)},[s,l]),S=h.useCallback(g=>{let v=w=>{switch(Pw(w,c,d,f,s),w){case 1:p>=0&&(f.current=setTimeout(b,p));break;case 4:y>=0&&(f.current=setTimeout(b,y));break;case 0:case 3:f.current=lJ(v,w);break}},E=d.current.isEnter;typeof g!="boolean"&&(g=!E),g?!E&&v(e?r?0:1:2):E&&v(t?n?3:4:Fm(l))},[b,s,e,t,r,n,p,y,l]);return[u,S,b]};function uJ(e){let t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[r,n]=h.useState(t(e));function o(){n(t(e))}return h.useEffect(()=>{let i=window.matchMedia(e);return o(),i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[e]),r}var RA={};bt(RA,{Actions:()=>$J,Close:()=>yf,CloseButton:()=>vJ,Col:()=>MA,Container:()=>LA,Content:()=>EJ,Description:()=>xJ,Dialog:()=>bJ,Error:()=>CJ,ErrorWrapper:()=>BA,Header:()=>SJ,Overlay:()=>IA,Row:()=>NA,Title:()=>wJ});const{deprecate:DA}=__STORYBOOK_MODULE_CLIENT_LOGGER__;h.createContext(null);h.createContext(null);h.createContext(null);h.createContext(null);h.createContext(null);var PA=h.createContext({}),cJ=h.forwardRef(function(e,t){[e,t]=At(e,t,PA);let{children:r,level:n=3,className:o,...i}=e,a=`h${n}`;return m.createElement(a,{...i,ref:t,className:o??"react-aria-Heading"},r)}),kA=h.createContext({}),dJ=h.forwardRef(function(e,t){[e,t]=At(e,t,kA);let{elementType:r="span",...n}=e;return m.createElement(r,{className:"react-aria-Text",...n,ref:t})}),FA=ut({from:{opacity:0},to:{opacity:1}}),fJ=ut({from:{opacity:1},to:{opacity:0}}),pJ=ut({from:{maxHeight:0},to:{}}),hJ=ut({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),gJ=ut({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),mJ=ut({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),yJ=ut({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),IA=R.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"?`${fJ} ${t}ms`:`${FA} ${t}ms`,animationFillMode:"forwards"}})),LA=R.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"?`${gJ} ${i}ms`:`${hJ} ${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"?`${yJ} ${i}ms`:`${mJ} ${i}ms`,animationFillMode:"forwards !important"}}),yf=({asChild:e,children:t,onClick:r,...n})=>{let{close:o}=h.useContext(jA);if(e&&m.isValidElement(t)){let i=a=>{var l,s;r==null||r(a),(s=(l=t.props).onClick)==null||s.call(l,a),o==null||o()};return m.cloneElement(t,{...n,onClick:i})}return m.createElement(ke,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:o},m.createElement(qT,null))},bJ={Close:()=>(DA("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),m.createElement(yf,{"data-deprecated":"Modal.Dialog.Close"}))},vJ=({ariaLabel:e,...t})=>(DA("Modal.CloseButton is deprecated, please use Modal.Close instead."),m.createElement(yf,{asChild:!0},m.createElement(ke,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},m.createElement(qT,null)))),EJ=R.div({display:"flex",flexDirection:"column",margin:16,gap:16}),NA=R.div({display:"flex",justifyContent:"space-between",gap:16}),MA=R.div({display:"flex",flexDirection:"column",gap:4}),SJ=({hasClose:e=!0,onClose:t,...r})=>m.createElement(NA,null,m.createElement(MA,{...r}),e&&m.createElement(yf,{onClick:t})),wJ=R(e=>m.createElement(cJ,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),xJ=R(dJ)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),$J=R.div({display:"flex",flexDirection:"row-reverse",gap:8}),BA=R.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${pJ} 300ms, ${FA} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),CJ=({children:e,...t})=>m.createElement(BA,{...t},m.createElement("div",null,e)),jA=h.createContext({});function _J({container:e,portalSelector:t,children:r,width:n,height:o,ariaLabel:i,dismissOnClickOutside:a=!0,dismissOnEscape:l=!0,className:s,open:u,onEscapeKeyDown:c,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:y=200,variant:b="dialog",...S}){let g;(i===void 0||i==="")&&(g="ariaLabel",gh("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(g="onEscapeKeyDown",gh("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(g="onInteractOutside",gh("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=h.useRef(null),E=uJ("(prefers-reduced-motion: reduce)"),[{status:w,isMounted:$},x]=sJ({timeout:E?0:y,mountOnEnter:!0,unmountOnExit:!0}),C=Ps({isOpen:u||$,defaultOpen:p,onOpenChange:L=>{x(L),f==null||f(L)}}),T=()=>{C.close()},{modalProps:A,underlayProps:O}=IX({isDismissable:a,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?L=>{let M=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:L});return d(M),!M.defaultPrevented}:void 0},C,v);if(h.useEffect(()=>{let L=u??p??!1;L&&!$?x(!0):!L&&$&&x(!1)},[u,p,$,x]),h.useEffect(()=>{$&&(u||p)&&(f==null||f(!0))},[$]),h.useEffect(()=>{if($&&(u||p)&&v.current)return mf([v.current],{shouldUseInert:!0})},[$,u,p,v]),!$||w==="exited"||w==="unmounted")return null;let _=se(A,{onKeyDown:L=>{var M;L.key!=="Escape"?(M=A.onKeyDown)==null||M.call(A,L):l&&(c==null||c(L.nativeEvent),L.nativeEvent.defaultPrevented||T())}}),I=e??(t?document.querySelector(t):void 0);return m.createElement(ud,{disableFocusManagement:!0,portalContainer:I||void 0},m.createElement(p1,{restoreFocus:!0,contain:!0,autoFocus:!0},m.createElement(IA,{$status:w,$transitionDuration:y,...O}),m.createElement("div",{role:"dialog","aria-label":i,ref:v,..._},m.createElement(jA.Provider,{value:{close:T}},m.createElement("div",{tabIndex:-1},m.createElement(LA,{"data-deprecated":g,$variant:b,$status:w,$transitionDuration:y,className:s,width:n,height:o,...S},r))))))}Object.assign(_J,RA);R.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Vc}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Vc}`]:{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{}}});R.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));R.div();R.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function TJ(e,t){var r=h.useRef(null),n=h.useRef(null);n.current=t;var o=h.useRef(null);h.useEffect(function(){i()});var i=h.useCallback(function(){var a=o.current,l=n.current,s=a||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return h.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),h.useCallback(function(a){o.current=a,i()},[i])}function kw(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 HA(e){e===void 0&&(e={});var t=e.onResize,r=h.useRef(void 0);r.current=t;var n=e.round||Math.round,o=h.useRef(),i=h.useState({width:void 0,height:void 0}),a=i[0],l=i[1],s=h.useRef(!1);h.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=h.useRef({width:void 0,height:void 0}),c=TJ(h.useCallback(function(d){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var p=f[0],y=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",b=kw(p,y,"inlineSize"),S=kw(p,y,"blockSize"),g=b?n(b):void 0,v=S?n(S):void 0;if(u.current.width!==g||u.current.height!==v){var E={width:g,height:v};u.current.width=g,u.current.height=v,r.current?r.current(E):s.current||l(E)}})}),o.current.instance.observe(d,{box:e.box}),function(){o.current&&o.current.instance.unobserve(d)}},[e.box,n]),e.ref);return h.useMemo(function(){return{ref:c,width:a.width,height:a.height}},[c,a.width,a.height])}var OJ=R.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function AJ({centered:e,scale:t,children:r}){let n=h.useRef(null),[o,i]=h.useState(0),a=h.useCallback(({height:l})=>{l&&i(l/t)},[t]);return h.useEffect(()=>{n.current&&i(n.current.getBoundingClientRect().height)},[t]),HA({ref:n,onResize:a}),m.createElement(OJ,{centered:e,scale:t,elementHeight:o},m.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var UA={Element:AJ};const{global:RJ}=__STORYBOOK_MODULE_GLOBAL__;var{document:DJ}=RJ,PJ=R.strong(({theme:e})=>({color:e.color.orange})),kJ=R.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Fw=R.em(({theme:e})=>({color:e.textMutedColor})),FJ=/(Error): (.*)\n/,IJ=/at (?:(.*) )?\(?(.+)\)?/,LJ=/([^@]+)?(?:\/<)?@(.+)?/,NJ=/([^@]+)?@(.+)?/,zA=({error:e})=>{if(!e)return m.createElement(h.Fragment,null,"This error has no stack or message");if(!e.stack)return m.createElement(h.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
  605. ${t}`);let r=t.match(FJ);if(!r)return m.createElement(h.Fragment,null,t);let[,n,o]=r,i=t.split(/\n/).slice(1),[,...a]=i.map(l=>{let s=l.match(IJ)||l.match(LJ)||l.match(NJ);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(DJ.location.origin,"")}:null}).filter(Boolean);return m.createElement(h.Fragment,null,m.createElement("span",null,n),": ",m.createElement(PJ,null,o),m.createElement("br",null),a.map((l,s)=>l!=null&&l.name?m.createElement(h.Fragment,{key:s}," ","at ",m.createElement(kJ,null,l.name)," (",m.createElement(Fw,null,l.location),")",m.createElement("br",null)):m.createElement(h.Fragment,{key:s}," ","at ",m.createElement(Fw,null,l==null?void 0:l.location),m.createElement("br",null))))},MJ=R.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"?oe.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:oe.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}})),BJ=e=>m.createElement(MJ,{...e,type:"checkbox"}),jJ=R.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),HJ=R.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),UJ=({label:e,children:t,...r})=>m.createElement(jJ,{...r},e?m.createElement(HJ,null,m.createElement("span",null,e)):null,t),y1=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},KA=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},WA=({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{}}},zJ={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},b1=({theme:e})=>({...zJ,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}}),KJ=R.div({position:"relative",width:"100%"}),WJ=R.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}=b1(e);return{fontSize:t,lineHeight:r,padding:n}}),GJ=Object.assign(R(h.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:o,...i},a){let l=yt();return m.createElement(KJ,null,m.createElement("input",{...i,value:n,ref:a,"aria-describedby":o?l:void 0}),o&&m.createElement(WJ,{"aria-hidden":!0},m.createElement("span",null,n),m.createElement("span",{id:l},o)))}))(b1,y1,KA,WA,{minHeight:32,width:"100%"}),{displayName:"Input"}),VJ=R.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"?oe.dark:e.color.mediumdark,borderColor:e.base==="dark"?oe.dark:e.color.mediumdark},"&:checked":{backgroundColor:oe.secondary,borderColor:oe.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),YJ=e=>m.createElement(VJ,{...e,type:"radio"}),qJ=R.select(y1,({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"?ly(e.background.app):e.background.app,filter:`
  606. drop-shadow(0 5px 5px rgba(0,0,0,0.05))
  607. drop-shadow(0 0 3px rgba(0,0,0,0.1))
  608. `,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}}})),XJ=({children:e,...t})=>m.createElement(qJ,{...t},!oP()&&m.createElement("button",null,m.createElement("selectedcontent",null),m.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"},m.createElement("path",{d:"m6 9 6 6 6-6"}))),m.createElement("optgroup",null,e)),JJ=h.useLayoutEffect,QJ=function(e){var t=m.useRef(e);return JJ(function(){t.current=e}),t},Iw=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},ZJ=function(e,t){var r=m.useRef();return m.useCallback(function(n){e.current=n,r.current&&Iw(r.current,null),r.current=t,t&&Iw(t,n)},[t])},Lw={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},eQ=function(e){Object.keys(Lw).forEach(function(t){e.style.setProperty(t,Lw[t],"important")})},Nw=eQ,Pt=null,Mw=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function tQ(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Pt||(Pt=document.createElement("textarea"),Pt.setAttribute("tabindex","-1"),Pt.setAttribute("aria-hidden","true"),Nw(Pt)),Pt.parentNode===null&&document.body.appendChild(Pt);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,l=a.boxSizing;Object.keys(a).forEach(function(f){var p=f;Pt.style[p]=a[p]}),Nw(Pt),Pt.value=t;var s=Mw(Pt,e);Pt.value=t,s=Mw(Pt,e),Pt.value="x";var u=Pt.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+i),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+i),s=Math.min(d,s),[s,u]}var Bw=function(){},rQ=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},nQ=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],oQ=!!document.documentElement.currentStyle,iQ=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=rQ(nQ,t),n=r.boxSizing;if(n==="")return null;oQ&&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}},aQ=iQ;function v1(e,t,r){var n=QJ(r);h.useLayoutEffect(function(){var o=function(i){return n.current(i)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var lQ=function(e,t){v1(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},sQ=function(e){v1(window,"resize",e)},uQ=function(e){v1(document.fonts,"loadingdone",e)},cQ=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],dQ=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=i===void 0?Bw:i,l=e.onHeightChange,s=l===void 0?Bw:l,u=J7(e,cQ),c=u.value!==void 0,d=h.useRef(null),f=ZJ(d,t),p=h.useRef(0),y=h.useRef(),b=function(){var g=d.current,v=r&&y.current?y.current:aQ(g);if(v){y.current=v;var E=tQ(v,g.value||g.placeholder||"x",o,n),w=E[0],$=E[1];p.current!==w&&(p.current=w,g.style.setProperty("height",w+"px","important"),s(w,{rowHeight:$}))}},S=function(g){c||b(),a(g)};return h.useLayoutEffect(b),lQ(d,function(){if(!c){var g=d.current.value;requestAnimationFrame(function(){var v=d.current;v&&g!==v.value&&b()})}}),sQ(b),uQ(b),h.createElement("textarea",mt({},u,{onChange:S,ref:f}))},fQ=h.forwardRef(dQ),pQ=Object.assign(R(h.forwardRef(function({size:e,valid:t,align:r,...n},o){return m.createElement(fQ,{...n,ref:o})}))(b1,y1,KA,WA,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),gi=Object.assign(R.form({boxSizing:"border-box",width:"100%"}),{Field:UJ,Input:GJ,Select:XJ,Textarea:pQ,Button:ke,Checkbox:BJ,Radio:YJ}),hQ=R.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:`
  609. drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
  610. drop-shadow(0 1px 3px rgba(0,0,0,0.1))
  611. `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?ly(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`]}),gQ=R(ke)({position:"absolute",top:4,right:4}),Fs=h.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:i=8,...a},l)=>m.createElement(hQ,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:i,ref:l,...a},e,o&&m.createElement(gQ,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},m.createElement(a9,null))));Fs.displayName="Popover";var GA=({id:e,title:t,description:r,icon:n,aside:o,children:i,isSelected:a,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>m.createElement(cc.Item,{...f,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":a,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},i??m.createElement(m.Fragment,null,n&&m.createElement(cc.Icon,null,n),m.createElement(cc.Text,null,m.createElement("p",null,t),r&&m.createElement("small",null,r)),o));GA.displayName="SelectOption";var Ru=5,VA=Symbol.for("undefined");function mQ(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function Im(e){return{...e,type:"option",value:dc(e.value)}}function mh(e){return"type"in e&&e.type==="reset"?e:Im(e)}function ol(e){if(e!==VA)return e}function dc(e){return e===void 0?VA:e}var yQ=R("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function jw(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var bQ=R.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function Hw(e,t){return t===void 0?[]:mQ(t)?e.filter(r=>r.value===t).map(Im):e.filter(r=>t.some(n=>r.value===n)).map(Im)}var vQ=R(ke)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:kn(.93,r.barSelectedColor),color:r.base==="light"?$t(.1,r.color.secondary):r.color.secondary}:{}),EQ=R.div({position:"fixed",inset:0,zIndex:1e3}),SQ=({children:e,handleClose:t,triggerRef:r})=>{let n=m.useRef(null);l5({ref:n,onInteractOutside:t}),h.useEffect(()=>{if(n.current)return mf([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=f1({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:i,underlayProps:a}=h1({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=Wd();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},m.createElement(ud,{disableFocusManagement:!0,...i},m.createElement(EQ,{...a}),m.createElement(Fs,{hasChrome:!0,ref:n,padding:0,...o},e))},YA=h.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:i=!1,onReset:a,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:y=!0,...b},S)=>{var q;let[g,v]=h.useState(b.defaultOpen||!1),[E,w]=h.useState(!1),$=Kr(S),x=h.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${x}-listbox`,T=h.useRef(null),A=Ps({isOpen:g&&!r,onOpenChange:v}),O=h.useCallback(()=>{v(!1),w(!0)},[]);h.useEffect(()=>{var K;!A.isOpen&&E&&((K=$.current)==null||K.focus(),w(!1))},[A.isOpen,E,$]);let[_,I]=h.useState(Hw(n,o)),L=h.useCallback(K=>{K.type==="reset"?(d==null||d([]),a==null||a(),I([])):I(i?X=>{let ee=[];return X!=null&&X.some(N=>N.value===K.value)?(c==null||c(ol(K.value)),ee=(X==null?void 0:X.filter(N=>N.value!==K.value))??[]):(u==null||u(ol(K.value)),ee=[...X??[],K]),d==null||d(ee.map(N=>ol(N.value))),ee}:X=>X.every(ee=>ee.value!==K.value)?(u==null||u(ol(K.value)),d==null||d([ol(K.value)]),[K]):X)},[i,d,u,c,a]),M=h.useMemo(()=>a?{type:"reset",value:void 0,title:s??"Reset selection",icon:m.createElement(m9,null),description:void 0,children:void 0}:void 0,[a,s]),U=h.useMemo(()=>M?[M,...n]:n,[n,M]);h.useEffect(()=>{o&&I(Hw(n,o))},[o,n]);let[k,F]=h.useState(void 0),P=h.useCallback((K,X=!0)=>{F(mh(K)),!i&&X&&L(mh(K))},[i,L]),B=h.useCallback((K=1)=>{if(!g||!k){P(U[K===1?0:Math.min(K,U.length-1)]);return}let X=U.findIndex(H=>k.type==="reset"?"type"in H&&H.type==="reset":dc(H.value)===k.value),ee=X+K,N;ee>=U.length&&X===U.length-1?N=U[0]:N=U[Math.min(U.length-1,ee)],P(N)},[g,k,P,U]),D=h.useCallback((K=1)=>{if(!g||!k){P(U[Math.max(0,U.length-K)]);return}let X=U.findIndex(H=>k.type==="reset"?"type"in H&&H.type==="reset":dc(H.value)===k.value),ee=X-K,N;ee<0&&X===0?N=U[U.length-1]:N=U[Math.max(0,ee)],P(N)},[g,k,P,U]),z=h.useCallback(K=>{let X=W=>{K.preventDefault(),P(U[W]),v(!0)},ee=U.findIndex(W=>_.some(j=>j.value===dc(W.value))),N=ee!==-1,H=M&&!N?1:0,Y=U.length-1;K.key==="Enter"||K.key===" "?X(N?Math.min(ee,Y):H):K.key==="ArrowDown"?X(N?Math.min(ee+1,Y):H):K.key==="ArrowUp"?X(N?Math.max(ee-1,H):Y):K.key==="Home"?X(H):K.key==="End"?X(Y):K.key==="PageDown"?X(Math.min((N?ee:H)+Ru,Y)):K.key==="PageUp"&&X(Math.max(0,(N?ee:Y)-Ru))},[U,M,P,_]),V=h.useCallback(K=>{K.key!=="Tab"?K.preventDefault():O(),K.key==="Escape"?O():K.key==="ArrowDown"?B():K.key==="ArrowUp"?D():K.key==="Home"?P(U[0]):K.key==="End"?P(U[U.length-1]):K.key==="PageDown"?B(Ru):K.key==="PageUp"&&D(Ru)},[O,B,D,U,P]);h.useEffect(()=>{var K;if(g&&k){let X=document.getElementById(jw(x,k));X&&(X.scrollIntoView({block:"nearest"}),X.focus())}else g&&((K=T.current)==null||K.focus())},[g,k,x]);let Z=h.useMemo(()=>_.length===1?`${p} ${_[0].title}`:_.length?`${p}, ${_.length} values selected`:p,[p,_]);return m.createElement(m.Fragment,null,m.createElement(vQ,{...b,variant:"ghost",ariaLabel:Z,tooltip:f??p,disableAllTooltips:g,id:x,ref:$,padding:l,$isOpen:g,$hasSelection:!!_.length,"aria-disabled":r,disabled:r,onClick:()=>{g?O():v(!0)},tabIndex:g?-1:0,onKeyDown:z,role:"button","aria-controls":g?C:void 0,"aria-expanded":g,"aria-haspopup":"listbox"},!i&&m.createElement(m.Fragment,null,t,y&&((q=_[0])==null?void 0:q.title)||e),i&&m.createElement(m.Fragment,null,t,e,!!_.length&&m.createElement(bQ,{"aria-label":`${_.length} ${_.length>1?"items":"item"} selected`},_==null?void 0:_.length))),A.isOpen&&m.createElement(SQ,{handleClose:O,triggerRef:$},m.createElement(yQ,{"aria-label":p,role:"listbox",id:C,ref:T,"aria-multiselectable":i,onKeyDown:V,tabIndex:g?0:-1},U.map(K=>({option:mh(K),externalOption:K})).map(({externalOption:K,option:X})=>{let ee=(_==null?void 0:_.some(H=>H.value===X.value))&&X!==M,N=X===M;return m.createElement(GA,{key:X.value===void 0?"sb-reset":String(X.value),title:X.title,description:X.description,aside:X.aside,icon:!N&&i?m.createElement(gi.Checkbox,{checked:ee,hidden:!0,role:"presentation"}):X.icon,id:jw(x,X),isActive:g&&(k==null?void 0:k.value)===X.value,isSelected:ee,onClick:()=>{L(X),i||O()},onFocus:()=>P(K,!1),shouldLookDisabled:N&&_.length===0&&i,onKeyDown:H=>{H.key==="Enter"||H.key===" "?(H.preventDefault(),L(X),i||O()):H.key==="Tab"&&(i||L(X),O())}},X.children)}))))});YA.displayName="Select";const{deprecate:wQ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mi=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}},qA=class extends mi{filter(e,t,r){let[n,o]=ZA(e,t,this.firstChildKey,r),i=this.clone();return i.firstChildKey=n,i.lastChildKey=o,i}},XA=class extends mi{};XA.type="header";var xQ=class extends mi{};xQ.type="loader";var JA=class extends qA{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};JA.type="item";var QA=class extends qA{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}};QA.type="section";var $Q=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]=ZA(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 ZA(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,a=e.getItem(r);for(;a!=null;){let u=a.filter(e,t,n);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var l,s;return[(l=o==null?void 0:o.key)!==null&&l!==void 0?l:null,(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null]}var eR=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}},yh=class Lm extends eR{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Lm?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,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof Lm&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var p;c.nextKey=(p=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&p!==void 0?p:null,c.hasChildNodes=!!this.firstChild;var y;c.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 b;if(c.lastChildKey=(b=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,g;let v=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((g=c.colSpan)!==null&&g!==void 0?g:1);if(u.node!=null&&v!==u.node.colIndex){let E=u.getMutableNode();E.colIndex=v}}}}setProps(t,r,n,o,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=o,a.render=i,a.value=l,a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.colSpan=c.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,l=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),l&&t.ownerDocument.markDirty(l),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}},CQ=class extends eR{get isConnected(){return this.isMounted}createElement(e){return new yh(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 yh&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof yh&&(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 tR(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=h.useMemo(()=>new WeakMap,i);return h.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=a.get(c);if(!d){d=t(c);var l,s;let f=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=h.cloneElement(d,o?{key:f,id:f,value:c}:{key:f}),a.set(c,d)}u.push(d)}return u}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 cd=h.createContext(!1);function _Q(e){if(h.useContext(cd))return m.createElement(m.Fragment,null,e.children);let t=m.createElement(cd.Provider,{value:!0},e.children);return m.createElement("template",{"data-react-aria-hidden":!0},t)}function E1(e){let t=(r,n)=>h.useContext(cd)?null:e(r,n);return t.displayName=e.displayName||e.name,h.forwardRef(t)}function TQ(){return h.useContext(cd)}var rR=h.createContext(!1),ds=h.createContext(null);function nR(e){if(h.useContext(ds))return e.content;let{collection:t,document:r}=DQ(e.createCollection);return m.createElement(m.Fragment,null,m.createElement(_Q,null,m.createElement(ds.Provider,{value:r},e.content)),m.createElement(OQ,{render:e.children,collection:t}))}function OQ({collection:e,render:t}){return t(e)}function AQ(e,t,r){let n=hi(),o=h.useRef(n);o.current=n;let i=h.useCallback(()=>o.current?r():t(),[t,r]);return zG.useSyncExternalStore(e,i)}var RQ=typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore:AQ;function DQ(e){let[t]=h.useState(()=>new CQ((e==null?void 0:e())||new $Q)),r=h.useCallback(a=>t.subscribe(a),[t]),n=h.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=h.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=RQ(r,n,o);return ve(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}var Nm=h.createContext(null);function PQ(e){var t;return t=class extends mi{},t.type=e,t}function oR(e,t,r,n,o,i){typeof e=="string"&&(e=PQ(e));let a=h.useCallback(s=>{s==null||s.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=h.useContext(Nm);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?m.createElement(Nm.Provider,{value:s},o):null}return m.createElement(e.type,{ref:a},o)}function bf(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=h.forwardRef((o,i)=>{let a=h.useContext(od);if(!h.useContext(rR)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return oR(e,o,i,"children"in o?o.children:null,null,l=>m.createElement(od.Provider,{value:a},m.createElement(r,{node:l})))});return n.displayName=t.name,n}function S1(e,t,r=iR){let n=({node:i})=>t(i.props,i.props.ref,i),o=h.forwardRef((i,a)=>{let l=r(i);var s;return(s=oR(e,i,a,null,l,u=>m.createElement(n,{node:u})))!==null&&s!==void 0?s:m.createElement(m.Fragment,null)});return o.displayName=t.name,o}function iR(e){return tR({...e,addIdAndValue:!0})}var Uw=h.createContext(null);function aR(e){let t=h.useContext(Uw),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),o=iR({...e,idScope:n,dependencies:r});return h.useContext(ds)&&(o=m.createElement(kQ,null,o)),t=h.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),m.createElement(Uw.Provider,{value:t},o)}function kQ({children:e}){let t=h.useContext(ds),r=h.useMemo(()=>m.createElement(ds.Provider,{value:null},m.createElement(rR.Provider,{value:!0},e)),[e]);return hi()?m.createElement(Nm.Provider,{value:t},r):Oa.createPortal(r,t)}var lR=h.createContext({});E1(function(e,t){[e,t]=At(e,t,lR);let{elementType:r="label",...n}=e;return m.createElement(r,{className:"react-aria-Label",...n,ref:t})});function FQ(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=yt(t);let a=yt(),l={};r&&(n=n?`${a} ${n}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=df({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function IQ(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=ze(e,{labelable:!0}),{labelProps:s,fieldProps:u}=FQ({...e,labelElementType:"span"});t=as(t,r,n);let c=(t-r)/(n-r),d=oX(a);if(!i&&!o){let f=a.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:se(l,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:s}}var sR=h.createContext(null);h.forwardRef(function(e,t){[e,t]=At(e,t,sR);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:i=!1}=e;r=as(r,n,o);let[a,l]=s5(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=IQ({...e,label:l}),c=i?void 0:(r-n)/(o-n)*100,d=lr({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:i}}),f=ze(e,{global:!0});return m.createElement("div",{...se(f,d,s),ref:t,slot:e.slot||void 0},m.createElement(lR.Provider,{value:{...u,ref:a,elementType:"span"}},d.children))});function LQ(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:y,type:b="button"}=e,S;r==="button"?S={type:b,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}:S={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?b:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?y:void 0};let{pressProps:g,isPressed:v}=Rs({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:E}=Ds(e,t);c&&(E.tabIndex=n?-1:E.tabIndex);let w=se(E,g,ze(e,{labelable:!0}));return{isPressed:v,buttonProps:se(S,w,{"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 uR=h.createContext({});E1(function(e,t){[e,t]=At(e,t,uR),e=NQ(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:i}=LQ(e,t),{focusProps:a,isFocused:l,isFocusVisible:s}=gf(e),{hoverProps:u,isHovered:c}=Ia({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||i)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=lr({...e,values:d,defaultClassName:"react-aria-Button"}),p=yt(o.id),y=yt(),b=o["aria-labelledby"];n&&(b?b=`${b} ${y}`:o["aria-label"]&&(b=`${p} ${y}`));let S=h.useRef(n);h.useEffect(()=>{let v={"aria-labelledby":b||p};(!S.current&&l&&n||S.current&&l&&!n)&&ME(v,"assertive"),S.current=n},[n,l,b,p]);let g=ze(e,{global:!0});return delete g.onClick,m.createElement("button",{...se(g,f,o,a,u),type:o.type==="submit"&&n?"button":o.type,id:p,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},m.createElement(sR.Provider,{value:{id:y}},f.children))});function NQ(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 w1=h.createContext(null),zw=h.createContext(null),MQ=h.forwardRef(function(e,t){[e,t]=At(e,t,w1);let r=h.useContext(Ef),n=Ps(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,i=Y2(t,o.isOpen)||e.isExiting||!1,a=TQ(),{direction:l}=Mn();if(a){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),m.createElement(m.Fragment,null,s)}return o&&!o.isOpen&&!i?null:m.createElement(BQ,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i,dir:l})});function BQ({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=h.useRef(null),a=h.useRef(null),l=h.useContext(zw),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:y}=FX({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:s?l:a},e),b=o.popoverRef,S=V2(b,!!p)||o.isEntering||!1,g=lr({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:p,isEntering:S,isExiting:t}}),v=!o.isNonModal||o.trigger==="SubmenuTrigger",[E,w]=h.useState(!1);ve(()=>{b.current&&w(v&&!b.current.querySelector("[role=dialog]"))},[b,v]),h.useEffect(()=>{E&&o.trigger!=="SubmenuTrigger"&&b.current&&!b.current.contains(document.activeElement)&&po(b.current)},[E,b,o.trigger]);let $=h.useMemo(()=>{let A=g.children;if(n)for(let O of n)A=m.createElement(O.Provider,{value:null},A);return A},[g.children,n]),x={...c.style,"--trigger-anchor-point":y?`${y.x}px ${y.y}px`:void 0,...g.style},C=m.createElement("div",{...se(ze(o,{global:!0}),c),...g,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:b,slot:o.slot||void 0,style:x,dir:o.dir,"data-trigger":o.trigger,"data-placement":p,"data-entering":S||void 0,"data-exiting":t||void 0},!o.isNonModal&&m.createElement(Tw,{onDismiss:e.close}),m.createElement(c1.Provider,{value:{...f,placement:p,ref:i}},$),m.createElement(Tw,{onDismiss:e.close}));if(!s)return m.createElement(ud,{...o,shouldContainFocus:E,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&m.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),m.createElement("div",{ref:a,style:{display:"contents"}},m.createElement(zw.Provider,{value:a},C)));var T;return m.createElement(ud,{...o,shouldContainFocus:E,isExiting:t,portalContainer:(T=r??(l==null?void 0:l.current))!==null&&T!==void 0?T:void 0},C)}var cR=h.createContext(null);S1("section",(e,t,r)=>{let{name:n,render:o}=h.useContext(cR);return o(e,t,r,"react-aria-Section")});var dR={CollectionRoot({collection:e,renderDropIndicator:t}){return Kw(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Kw(e,t,r)}};function Kw(e,t,r){return tR({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:m.createElement(m.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,jQ(e,n,r))}})}function jQ(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 l=[];if(a==null){let s=t;for(;s&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});h.isValidElement(u)&&l.push(h.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var Is=h.createContext(dR);function fR(e){return h.useMemo(()=>e!=null?new Set([e]):null,[e])}var Ww=h.createContext(null),HQ=h.createContext(null),pR=h.createContext({});bf(XA,function(e,t){return[e,t]=At(e,t,pR),m.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var hR=h.createContext({});h.forwardRef(function(e,t){return[e,t]=At(e,t,hR),m.createElement("kbd",{dir:"ltr",...e,ref:t})});function UQ(e){let t=ze(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var gR=h.createContext({}),mR=class extends mi{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}};mR.type="separator";bf(mR,function(e,t){[e,t]=At(e,t,gR);let{elementType:r,orientation:n,style:o,className:i,slot:a,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=UQ({...l,elementType:r,orientation:n}),c=ze(e,{global:!0});return m.createElement(s,{...se(c,u),style:o,className:i??"react-aria-Separator",ref:t,slot:a||void 0})});var yR=new WeakMap;function Mm(e){return KV()?e.altKey:e.ctrlKey}function fc(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 bR=new WeakMap;function zQ(e){let t=yt();return bR.set(e,t),t}function KQ(e){return bR.get(e)}var WQ=1e3;function GQ(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=h.useRef({search:"",timeout:void 0}).current,i=a=>{let l=VQ(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},WQ)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function VQ(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function vR(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:y=n,linkBehavior:b="action"}=e,{direction:S}=Mn(),g=uf(),v=F=>{var P;if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!(!((P=n.current)===null||P===void 0)&&P.contains(F.target)))return;let B=(j,G)=>{if(j!=null){if(t.isLink(j)&&b==="selection"&&u&&!Mm(F)){Oa.flushSync(()=>{t.setFocusedKey(j,G)});let J=fc(n,j),ne=t.getItemProps(j);J&&g.open(J,F,ne.href,ne.routerOptions);return}if(t.setFocusedKey(j,G),t.isLink(j)&&b==="override")return;F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):u&&!Mm(F)&&t.replaceSelection(j)}};switch(F.key){case"ArrowDown":if(r.getKeyBelow){var D,z,V;let j=t.focusedKey!=null?(D=r.getKeyBelow)===null||D===void 0?void 0:D.call(r,t.focusedKey):(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r);j==null&&i&&(j=(V=r.getFirstKey)===null||V===void 0?void 0:V.call(r,t.focusedKey)),j!=null&&(F.preventDefault(),B(j))}break;case"ArrowUp":if(r.getKeyAbove){var Z,q,K;let j=t.focusedKey!=null?(Z=r.getKeyAbove)===null||Z===void 0?void 0:Z.call(r,t.focusedKey):(q=r.getLastKey)===null||q===void 0?void 0:q.call(r);j==null&&i&&(j=(K=r.getLastKey)===null||K===void 0?void 0:K.call(r,t.focusedKey)),j!=null&&(F.preventDefault(),B(j))}break;case"ArrowLeft":if(r.getKeyLeftOf){var X,ee,N;let j=t.focusedKey!=null?(X=r.getKeyLeftOf)===null||X===void 0?void 0:X.call(r,t.focusedKey):null;j==null&&i&&(j=S==="rtl"?(ee=r.getFirstKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey):(N=r.getLastKey)===null||N===void 0?void 0:N.call(r,t.focusedKey)),j!=null&&(F.preventDefault(),B(j,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var H,Y,W;let j=t.focusedKey!=null?(H=r.getKeyRightOf)===null||H===void 0?void 0:H.call(r,t.focusedKey):null;j==null&&i&&(j=S==="rtl"?(Y=r.getLastKey)===null||Y===void 0?void 0:Y.call(r,t.focusedKey):(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,t.focusedKey)),j!=null&&(F.preventDefault(),B(j,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let j=r.getFirstKey(t.focusedKey,_i(F));t.setFocusedKey(j),j!=null&&(_i(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):u&&t.replaceSelection(j))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&F.shiftKey)return;F.preventDefault();let j=r.getLastKey(t.focusedKey,_i(F));t.setFocusedKey(j),j!=null&&(_i(F)&&F.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(j):u&&t.replaceSelection(j))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let j=r.getKeyPageBelow(t.focusedKey);j!=null&&(F.preventDefault(),B(j))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let j=r.getKeyPageAbove(t.focusedKey);j!=null&&(F.preventDefault(),B(j))}break;case"a":_i(F)&&t.selectionMode==="multiple"&&l!==!0&&(F.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(F.stopPropagation(),F.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(F.shiftKey)n.current.focus();else{let j=Kt(n.current,{tabbable:!0}),G,J;do J=j.lastChild(),J&&(G=J);while(J);G&&!G.contains(document.activeElement)&&Ht(G)}break}}},E=h.useRef({top:0,left:0});hl(y,"scroll",p?void 0:()=>{var F,P,B,D;E.current={top:(B=(F=y.current)===null||F===void 0?void 0:F.scrollTop)!==null&&B!==void 0?B:0,left:(D=(P=y.current)===null||P===void 0?void 0:P.scrollLeft)!==null&&D!==void 0?D:0}});let w=F=>{if(t.isFocused){F.currentTarget.contains(F.target)||t.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(t.setFocused(!0),t.focusedKey==null){var P,B;let V=q=>{q!=null&&(t.setFocusedKey(q),u&&!t.isSelected(q)&&t.replaceSelection(q))},Z=F.relatedTarget;var D,z;Z&&F.currentTarget.compareDocumentPosition(Z)&Node.DOCUMENT_POSITION_FOLLOWING?V((D=t.lastSelectedKey)!==null&&D!==void 0?D:(P=r.getLastKey)===null||P===void 0?void 0:P.call(r)):V((z=t.firstSelectedKey)!==null&&z!==void 0?z:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!p&&y.current&&(y.current.scrollTop=E.current.top,y.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&y.current){let V=fc(n,t.focusedKey);V instanceof HTMLElement&&(!V.contains(document.activeElement)&&!d&&Ht(V),cs()==="keyboard"&&GS(V,{containingElement:n.current}))}}},$=F=>{F.currentTarget.contains(F.relatedTarget)||t.setFocused(!1)},x=h.useRef(!1);hl(n,aY,d?F=>{let{detail:P}=F;F.stopPropagation(),t.setFocused(!0),(P==null?void 0:P.focusStrategy)==="first"&&(x.current=!0)}:void 0);let C=ft(()=>{var F,P;let B=(P=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&P!==void 0?P:null;if(B==null){let D=st();F5(n.current),I5(D,null),t.collection.size>0&&(x.current=!1)}else t.setFocusedKey(B),x.current=!1});KS(()=>{x.current&&C()},[t.collection,C]);let T=ft(()=>{t.collection.size>0&&(x.current=!1)});KS(()=>{T()},[t.focusedKey,T]),hl(n,iY,d?F=>{var P;F.stopPropagation(),t.setFocused(!1),!((P=F.detail)===null||P===void 0)&&P.clearFocusKey&&t.setFocusedKey(null)}:void 0);let A=h.useRef(o),O=h.useRef(!1);h.useEffect(()=>{if(A.current){var F,P;let z=null;var B;o==="first"&&(z=(B=(F=r.getFirstKey)===null||F===void 0?void 0:F.call(r))!==null&&B!==void 0?B:null);var D;o==="last"&&(z=(D=(P=r.getLastKey)===null||P===void 0?void 0:P.call(r))!==null&&D!==void 0?D:null);let V=t.selectedKeys;if(V.size){for(let Z of V)if(t.canSelectItem(Z)){z=Z;break}}t.setFocused(!0),t.setFocusedKey(z),z==null&&!d&&n.current&&po(n.current),t.collection.size>0&&(A.current=!1,O.current=!0)}});let _=h.useRef(t.focusedKey),I=h.useRef(null);h.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||O.current)&&y.current&&n.current){let F=cs(),P=fc(n,t.focusedKey);if(!(P instanceof HTMLElement))return;(F==="keyboard"||O.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{y.current&&(W2(y.current,P),F!=="virtual"&&GS(P,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&po(n.current),_.current=t.focusedKey,O.current=!1}),h.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),hl(n,"react-aria-focus-scope-restore",F=>{F.preventDefault(),t.setFocused(!0)});let L={onKeyDown:v,onFocus:w,onBlur:$,onMouseDown(F){y.current===F.target&&F.preventDefault()}},{typeSelectProps:M}=GQ({keyboardDelegate:r,selectionManager:t});c||(L=se(M,L));let U;d||(U=t.focusedKey==null?0:-1);let k=zQ(t.collection);return{collectionProps:se(L,{tabIndex:U,"data-collection":k})}}function ER(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=uf();t=yt(t);let p=D=>{if(D.pointerType==="keyboard"&&Mm(D))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let z=r.getItemProps(n);f.open(o.current,D,z.href,z.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):D&&D.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||D&&(_i(D)||D.pointerType==="touch"||D.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};h.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?F5(o.current):l?l():document.activeElement!==o.current&&o.current&&po(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let y={};!a&&!s?y={tabIndex:n===r.focusedKey?0:-1,onFocus(D){D.target===o.current&&r.setFocusedKey(n)}}:s&&(y.onMouseDown=D=>{D.preventDefault()});let b=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",g=r.isLink(n)&&d!=="selection"&&d!=="none",v=!s&&r.canSelectItem(n)&&!b&&!S,E=(u||g)&&!s,w=E&&(r.selectionBehavior==="replace"?!v:!v||r.isEmpty),$=E&&v&&r.selectionBehavior==="replace",x=w||$,C=h.useRef(null),T=x&&v,A=h.useRef(!1),O=h.useRef(!1),_=r.getItemProps(n),I=D=>{if(u){var z;u(),(z=o.current)===null||z===void 0||z.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}g&&o.current&&f.open(o.current,D,_.href,_.routerOptions)},L={ref:o};if(i?(L.onPressStart=D=>{C.current=D.pointerType,A.current=T,D.pointerType==="keyboard"&&(!x||Vw())&&p(D)},c?(L.onPressUp=w?void 0:D=>{D.pointerType==="mouse"&&v&&p(D)},L.onPress=w?I:D=>{D.pointerType!=="keyboard"&&D.pointerType!=="mouse"&&v&&p(D)}):L.onPress=D=>{if(w||$&&D.pointerType!=="mouse"){if(D.pointerType==="keyboard"&&!Gw())return;I(D)}else D.pointerType!=="keyboard"&&v&&p(D)}):(L.onPressStart=D=>{C.current=D.pointerType,A.current=T,O.current=w,v&&(D.pointerType==="mouse"&&!w||D.pointerType==="keyboard"&&(!E||Vw()))&&p(D)},L.onPress=D=>{(D.pointerType==="touch"||D.pointerType==="pen"||D.pointerType==="virtual"||D.pointerType==="keyboard"&&x&&Gw()||D.pointerType==="mouse"&&O.current)&&(x?I(D):v&&p(D))}),y["data-collection"]=KQ(r.collection),y["data-key"]=n,L.preventFocusOnPress=a,a&&(L=se(L,{onPressStart(D){D.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(D){D.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),_)for(let D of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])_[D]&&(L[D]=As(L[D],_[D]));let{pressProps:M,isPressed:U}=Rs(L),k=$?D=>{C.current==="mouse"&&(D.stopPropagation(),D.preventDefault(),I(D))}:void 0,{longPressProps:F}=jY({isDisabled:!T,onLongPress(D){D.pointerType==="touch"&&(p(D),r.setSelectionBehavior("toggle"))}}),P=D=>{C.current==="touch"&&A.current&&D.preventDefault()},B=d!=="none"&&r.isLink(n)?D=>{oi.isOpening||D.preventDefault()}:void 0;return{itemProps:se(y,v||w||a&&!s?M:{},T?F:{},{onDoubleClick:k,onDragStartCapture:P,onClick:B,id:t},a?{onMouseDown:D=>D.preventDefault()}:void 0),isPressed:U,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:v,hasAction:x}}function Gw(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Vw(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var Yw=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?fc(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}},YQ=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&&!ya(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&&!ya(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 Yw(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 Yw(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function qQ(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,l=iX({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=h.useMemo(()=>i||new YQ({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:a}),[i,a,r,n,o,l,s]),{collectionProps:c}=vR({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function XQ(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=ze(e,{labelable:!0}),{listProps:s}=qQ({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return yR.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:se(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function SR(e){return null}SR.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,i=e.title||e.children,a=e.textValue||(typeof i=="string"?i:"")||e["aria-label"]||"";!a&&(t!=null&&t.suppressTextValueWarning),yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:JQ(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];m.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function JQ(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&m.Children.count(e.children)>0)}var QQ=SR,ZQ=class{build(e,t){return this.context=t,qw(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(m.isValidElement(t)&&t.type===m.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=[];m.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 l of a)o++,yield l}}}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(m.isValidElement(e.element)&&e.element.type===m.Fragment){let b=[];m.Children.forEach(e.element.props.children,g=>{b.push(g)});var o;let S=(o=e.index)!==null&&o!==void 0?o:0;for(let g of b)yield*this.getFullNode({element:g,index:S++},t,r,n);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let b=this.cache.get(e.value);if(b&&(!b.shouldInvalidate||!b.shouldInvalidate(this.context))){b.index=e.index,b.parentKey=n?n.key:null,yield b;return}i=t.renderer(e.value)}if(m.isValidElement(i)){let b=i.type;if(typeof b!="function"&&typeof b.getCollectionNode!="function"){let E=i.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=b.getCollectionNode(i.props,this.context);var a;let g=(a=e.index)!==null&&a!==void 0?a:0,v=S.next();for(;!v.done&&v.value;){let E=v.value;e.index=g;var l;let w=(l=E.key)!==null&&l!==void 0?l:null;w==null&&(w=E.element?null:this.getKey(i,e,t,r));let $=[...this.getFullNode({...E,key:w,index:g,wrapper:eZ(e.wrapper,E.wrapper)},this.getChildState(t,E),r?`${r}${i.key}`:i.key,n)];for(let x of $){var s,u;x.value=(u=(s=E.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,x.value&&this.cache.set(x.value,x);var c;if(e.type&&x.type!==e.type)throw new Error(`Unsupported type <${bh(x.type)}> in <${bh((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${bh(e.type)}> is supported.`);g++,yield x}v=S.next($)}return}if(e.key==null||e.type==null)return;let d=this;var f,p;let y={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(p=e.textValue)!==null&&p!==void 0?p:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:qw(function*(){if(!e.hasChildNodes||!e.childNodes)return;let b=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${y.key}${S.key}`);let g=d.getFullNode({...S,index:b},d.getChildState(t,S),y.key,y);for(let v of g)b++,yield v}})};yield y}constructor(){this.cache=new WeakMap}};function qw(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 eZ(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function bh(e){return e[0].toUpperCase()+e.slice(1)}function wR(e,t,r){let n=h.useMemo(()=>new ZQ,[]),{children:o,items:i,collection:a}=e;return h.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function xR(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function tZ(e){return rZ(e)}function rZ(e,t){for(let r of e)return r}function vh(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Xw(e,t),t],o=[...Xw(e,r),r],i=n.slice(0,o.length).findIndex((a,l)=>a!==o[l]);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 Xw(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 Jw=new WeakMap;function nZ(e){let t=Jw.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(xR(i,e)):i.type==="item"&&r++};return n(e),Jw.set(e,r),r}function oZ(e,t,r){let{id:n,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:y,onHoverChange:b,onHoverEnd:S,onKeyDown:g,onKeyUp:v,onFocus:E,onFocusChange:w,onBlur:$,selectionManager:x=t.selectionManager}=e,C=!!l,T=C&&e["aria-expanded"]==="true";var A;let O=(A=e.isDisabled)!==null&&A!==void 0?A:x.isDisabled(o);var _;let I=(_=e.isSelected)!==null&&_!==void 0?_:x.isSelected(o),L=yR.get(t),M=t.collection.getItem(o),U=e.onClose||L.onClose,k=uf(),F=()=>{var te;if(!C&&(!(M==null||(te=M.props)===null||te===void 0)&&te.onAction?M.props.onAction():e.onAction&&e.onAction(o),L.onAction)){let Ce=L.onAction;Ce(o)}},P="menuitem";C||(x.selectionMode==="single"?P="menuitemradio":x.selectionMode==="multiple"&&(P="menuitemcheckbox"));let B=lc(),D=lc(),z=lc(),V={id:n,"aria-disabled":O||void 0,role:P,"aria-label":e["aria-label"],"aria-labelledby":B,"aria-describedby":[D,z].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};x.selectionMode!=="none"&&!C&&(V["aria-checked"]=I),a&&(V["aria-posinset"]=M==null?void 0:M.index,V["aria-setsize"]=nZ(t.collection));let Z=h.useRef(!1),q=te=>{d==null||d(te),Z.current=te},K=h.useRef(null),X=te=>{te.pointerType!=="keyboard"&&(K.current={pointerType:te.pointerType}),te.pointerType==="mouse"&&(Z.current||te.target.click()),u==null||u(te)},ee=te=>{var Ce,xe;p==null||p(te),F(),XV(te,k,M.props.href,M==null?void 0:M.props.routerOptions);let he=((Ce=K.current)===null||Ce===void 0?void 0:Ce.pointerType)==="keyboard"?((xe=K.current)===null||xe===void 0?void 0:xe.key)==="Enter"||x.selectionMode==="none"||x.isLink(o):x.selectionMode!=="multiple"||x.isLink(o);he=i??he,U&&!C&&he&&U(),K.current=null},{itemProps:N,isFocused:H}=ER({id:n,selectionManager:x,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:L.shouldUseVirtualFocus}),{pressProps:Y,isPressed:W}=Rs({onPressStart:s,onPress:c,onPressUp:X,onPressChange:q,onPressEnd:f,isDisabled:O}),{hoverProps:j}=Ia({isDisabled:O,onHoverStart(te){!us()&&!(T&&l)&&(x.setFocused(!0),x.setFocusedKey(o)),y==null||y(te)},onHoverChange:b,onHoverEnd:S}),{keyboardProps:G}=a5({onKeyDown:te=>{if(te.repeat){te.continuePropagation();return}switch(te.key){case" ":K.current={pointerType:"keyboard",key:" "},te.target.click();break;case"Enter":K.current={pointerType:"keyboard",key:"Enter"},te.target.tagName!=="A"&&te.target.click();break;default:C||te.continuePropagation(),g==null||g(te);break}},onKeyUp:v}),{focusProps:J}=l1({onBlur:$,onFocus:E,onFocusChange:w}),ne=ze(M==null?void 0:M.props);delete ne.id;let de=U2(M==null?void 0:M.props);return{menuItemProps:{...V,...se(ne,de,C?{onFocus:N.onFocus,"data-collection":N["data-collection"],"data-key":N["data-key"]}:N,Y,j,G,J,L.shouldUseVirtualFocus||C?{onMouseDown:te=>te.preventDefault()}:void 0,O?void 0:{onClick:ee}),tabIndex:N.tabIndex!=null&&T&&!L.shouldUseVirtualFocus?-1:N.tabIndex},labelProps:{id:B},descriptionProps:{id:D},keyboardShortcutProps:{id:z},isFocused:H,isFocusVisible:H&&x.isFocused&&us()&&!T,isSelected:I,isPressed:W,isDisabled:O}}function iZ(e){let{heading:t,"aria-label":r}=e,n=yt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Du=2,aZ=50,lZ=1e3,Qw=Math.PI/12;function sZ(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,i=h.useRef(void 0),a=h.useRef(void 0),l=h.useRef(0),s=h.useRef(void 0),u=h.useRef(void 0),c=h.useRef(void 0),d=h.useRef(2),[f,p]=h.useState(!1);ed({ref:r,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0)}});let y=()=>{p(!1),d.current=Du,i.current=void 0},b=TY(),S=ft(g=>{f&&g.preventDefault()});h.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),h.useEffect(()=>{let g=r.current,v=t.current;if(o||!g||!n||b!=="pointer"||!v){y();return}a.current=g.getBoundingClientRect();let E=w=>{if(w.pointerType==="touch"||w.pointerType==="pen")return;let $=Date.now();if($-l.current<aZ)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:x,clientY:C}=w;if(!i.current){i.current={x,y:C};return}if(!a.current)return;if(c.current||(c.current=x>a.current.right?"left":"right"),x<v.getBoundingClientRect().left||x>v.getBoundingClientRect().right||C<v.getBoundingClientRect().top||C>v.getBoundingClientRect().bottom){y();return}let T=i.current.x,A=i.current.y,O=c.current==="right"?a.current.left-T:T-a.current.right,_=Math.atan2(A-a.current.top,O)+Qw,I=Math.atan2(A-a.current.bottom,O)-Qw,L=Math.atan2(A-C,c.current==="left"?-(x-T):x-T),M=L<_&&L>I;d.current=M?Math.min(d.current+1,Du):Math.max(d.current-1,0),d.current>=Du?p(!0):p(!1),l.current=$,i.current={x,y:C},M&&(s.current=setTimeout(()=>{y(),u.current=setTimeout(()=>{let U=document.elementFromPoint(x,C);U&&v.contains(U)&&U.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},lZ))};return window.addEventListener("pointermove",E),window.addEventListener("pointerdown",S,!0),()=>{window.removeEventListener("pointermove",E),window.removeEventListener("pointerdown",S,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Du}},[o,n,t,b,p,S,r])}function uZ(e,t,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=yt(),c=yt(),{direction:d}=Mn(),f=h.useRef(void 0),p=h.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),y=ft(T=>{p(),t.open(T)}),b=ft(()=>{p(),t.close()});ve(()=>()=>{p()},[p]);let S=T=>{if(T.currentTarget.contains(document.activeElement))switch(T.key){case"ArrowLeft":d==="ltr"&&T.currentTarget.contains(T.target)&&(T.preventDefault(),T.stopPropagation(),b(),!s&&r.current&&Ht(r.current));break;case"ArrowRight":d==="rtl"&&T.currentTarget.contains(T.target)&&(T.preventDefault(),T.stopPropagation(),b(),!s&&r.current&&Ht(r.current));break;case"Escape":var A;!((A=o.current)===null||A===void 0)&&A.contains(T.target)&&(T.stopPropagation(),b(),!s&&r.current&&Ht(r.current));break}};var g;let v={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:(g=t.focusStrategy)!==null&&g!==void 0?g:void 0,onKeyDown:S}},E=T=>{switch(T.key){case"ArrowRight":a||(d==="ltr"?(T.preventDefault(),t.isOpen||y("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&Ht(o.current)):t.isOpen?b():T.continuePropagation());break;case"ArrowLeft":a||(d==="rtl"?(T.preventDefault(),t.isOpen||y("first"),i==="menu"&&(o!=null&&o.current)&&document.activeElement===(r==null?void 0:r.current)&&Ht(o.current)):t.isOpen?b():T.continuePropagation());break;default:T.continuePropagation();break}},w=T=>{!a&&(T.pointerType==="virtual"||T.pointerType==="keyboard")&&y("first")},$=T=>{!a&&(T.pointerType==="touch"||T.pointerType==="mouse")&&y()},x=T=>{a||(T&&!t.isOpen?f.current||(f.current=setTimeout(()=>{y()},l)):T||p())};hl(n,"focusin",T=>{var A;t.isOpen&&!((A=n.current)===null||A===void 0)&&A.contains(T.target)&&T.target!==r.current&&b()});let C=T=>T!==r.current;return sZ({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:w,onPress:$,onHoverChange:x,onKeyDown:E,isOpen:t.isOpen},submenuProps:v,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function $R(e){let t=Ps(e),[r,n]=h.useState(null),[o,i]=h.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(l,s)=>{i(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{i(u=>u[s]===l?u.slice(0,s):u)}}}function cZ(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:a}=t,[l]=h.useState(n==null?void 0:n.length),s=h.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=h.useState(null),d=h.useCallback(y=>{c(y??null),o(r,l)},[o,l,r]),f=h.useCallback(()=>{c(null),i(r,l)},[i,l,r]),p=h.useCallback(y=>{c(y??null),s?f():d(y)},[f,d,s]);return h.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:p}),[s,d,f,a,u,p,l])}var dZ=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 l of a.childNodes)r(l)};for(let a of e)r(a);let n=null,o=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}},En=class CR extends Set{constructor(t,r,n){super(t),t instanceof CR?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function fZ(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function x1(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=h.useRef(!1),[,l]=h.useState(!1),s=h.useRef(null),u=h.useRef(null),[,c]=h.useState(null),d=h.useMemo(()=>Zw(e.selectedKeys),[e.selectedKeys]),f=h.useMemo(()=>Zw(e.defaultSelectedKeys,new En),[e.defaultSelectedKeys]),[p,y]=ff(d,f,e.onSelectionChange),b=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,g]=h.useState(o);o==="replace"&&S==="toggle"&&typeof p=="object"&&p.size===0&&g("replace");let v=h.useRef(o);return h.useEffect(()=>{o!==v.current&&(g(o),v.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:g,get isFocused(){return a.current},setFocused(E){a.current=E,l(E)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(E,w="first"){s.current=E,u.current=w,c(E)},selectedKeys:p,setSelectedKeys(E){(n||!fZ(E,p))&&y(E)},disabledKeys:b,disabledBehavior:i}}function Zw(e,t){return e?e==="all"?"all":new En(e):t}var $1=class _R{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&&vh(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&&vh(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 En([r],r,r);else{let a=this.state.selectedKeys;var o;let l=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new En(a,l,r);var i;for(let s of this.getKeyRange(l,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?vh(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 En(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 En([r],r,r):new En;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new En;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=tZ(xR(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 En)}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 _R(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 pZ(e){let{onExpandedChange:t}=e,[r,n]=ff(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=x1(e),i=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=wR(e,h.useCallback(l=>new dZ(l,{expandedKeys:r}),[r]),null);return h.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:l=>{n(hZ(r,l))},setExpandedKeys:n,selectionManager:new $1(a,o)}}function hZ(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var TR=h.createContext(null),vf=h.createContext(null),dd=h.createContext(null),fd=h.createContext(null),OR=h.createContext(null),AR=class extends mi{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}};AR.type="submenutrigger";S1(AR,(e,t,r)=>{let{CollectionBranch:n}=h.useContext(Is),o=h.useContext(vf),i=h.useContext(dd),a=cZ({triggerKey:r.key},i),l=h.useRef(null),s=Kr(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=h.useContext(OR),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=uZ({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return m.createElement(Nn,{values:[[pd,{...d,onAction:void 0,ref:s}],[TR,{ref:l,...f}],[Ef,a],[w1,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...p}]]},m.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);h.forwardRef(function(e,t){return[e,t]=At(e,t,TR),m.createElement(nR,{content:m.createElement(aR,e)},r=>m.createElement(gZ,{props:e,collection:r,menuRef:t}))});function gZ({props:e,collection:t,menuRef:r}){[e,r]=At(e,r,Ww);let{filter:n,...o}=e,i=h.useMemo(()=>n?t.filter(n):t,[t,n]),a=pZ({...e,collection:i,children:void 0}),l=h.useContext(dd),{isVirtualized:s,CollectionRoot:u}=h.useContext(Is),{menuProps:c}=XQ({...e,isVirtualized:s,onClose:e.onClose||(l==null?void 0:l.close)},a,r),d=lr({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),f=null;a.collection.size===0&&e.renderEmptyState&&(f=m.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let p=ze(e,{global:!0});return m.createElement(p1,null,m.createElement("div",{...se(p,d,c),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},m.createElement(Nn,{values:[[vf,a],[gR,{elementType:"div"}],[cR,{name:"MenuSection",render:RR}],[OR,{parentMenuRef:r,shouldUseVirtualFocus:o==null?void 0:o.shouldUseVirtualFocus}],[pd,null],[Ww,null],[HQ,null],[fd,a.selectionManager],[dd,l??$R({})]]},m.createElement(u,{collection:a.collection,persistedKeys:fR(a.selectionManager.focusedKey),scrollRef:r})),f))}var mZ=class extends $1{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 RR(e,t,r,n="react-aria-MenuSection"){var o,i;let a=h.useContext(vf),{CollectionBranch:l}=h.useContext(Is),[s,u]=s5();var c;let{headingProps:d,groupProps:f}=iZ({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),p=lr({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=h.useContext(fd),b=x1(e),S=e.selectionMode!=null?new mZ(y,b):y,g=ze(e,{global:!0});return delete g.id,m.createElement("section",{...se(g,p,f),ref:t},m.createElement(Nn,{values:[[pR,{...d,ref:s}],[fd,S]]},m.createElement(l,{collection:a.collection,parent:r})))}S1(QA,RR);var pd=h.createContext(null);bf(JA,function(e,t,r){var n;[e,t]=At(e,t,pd);let o=(n=u1(pd))===null||n===void 0?void 0:n.id,i=h.useContext(vf),a=Kr(t),l=h.useContext(fd),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=oZ({...e,id:o,key:r.key,selectionManager:l},i,a),{hoverProps:p,isHovered:y}=Ia({isDisabled:f.isDisabled}),b=lr({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:y,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div",g=ze(e,{global:!0});return delete g.id,delete g.onClick,m.createElement(S,{...se(g,b,s,p),ref:a,"data-disabled":f.isDisabled||void 0,"data-hovered":y||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},m.createElement(Nn,{values:[[kA,{slots:{[id]:u,label:u,description:c}}],[hR,d]]},b.children))});function yZ(e,t){let{role:r="dialog"}=e,n=lc();n=e["aria-label"]?void 0:n;let o=h.useRef(!1);return h.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){po(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),po(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),EA(),{dialogProps:{...ze(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var DR=h.createContext(null),Ef=h.createContext(null);function bZ(e){let t=$R(e),r=h.useRef(null),{triggerProps:n,overlayProps:o}=EX({},t,r),[i,a]=h.useState(null),l=h.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return ed({ref:r,onResize:l}),n.id=yt(),o["aria-labelledby"]=n.id,m.createElement(Nn,{values:[[Ef,t],[dd,t],[DR,o],[w1,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},m.createElement(IY,{...n,ref:r,isPressed:t.isOpen},e.children))}h.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=At(e,t,DR);let{dialogProps:n,titleProps:o}=yZ({...e,"aria-labelledby":r},t),i=h.useContext(Ef);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let a=lr({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),l=ze(e,{global:!0});return m.createElement("section",{...se(l,a,n),ref:t,slot:e.slot||void 0},m.createElement(Nn,{values:[[PA,{slots:{[id]:{},title:{...o,level:2}}}],[uR,{slots:{[id]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},a.children))});var C1=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:i=8,padding:a,popover:l,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||wQ("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let p=m1(t),[y,b]=h.useState(u??!1),S=h.useCallback(v=>{b(v),d==null||d(v)},[d]),g=h.useCallback(()=>S(!1),[S]);return m.createElement(bZ,{defaultOpen:u,isOpen:c??y,onOpenChange:S,...f},m.createElement(FY,null,h.cloneElement(s,{"aria-haspopup":"dialog"})),m.createElement(MQ,{"aria-label":e,placement:p,offset:i,style:{outline:"none"}},m.createElement(Fs,{hasChrome:r,hideLabel:o,onHide:n?g:void 0,padding:a},typeof l=="function"?l({onHide:g}):l)))},PR=h.forwardRef((e,t)=>m.createElement(Fs,{ref:t,...e}));PR.displayName="Tooltip";h.lazy(()=>On(()=>import("./WithTooltip-65CFNBJE-0H9QN3fm.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltip})));h.lazy(()=>On(()=>import("./WithTooltip-65CFNBJE-0H9QN3fm.js"),__vite__mapDeps([5,1,2,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:Mce}=__STORYBOOK_MODULE_CLIENT_LOGGER__;R.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));R.span();R.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));R.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));R.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:vZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var EZ=Lt(ai(),1);const{deprecate:SZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var wZ=R(({active:e,loading:t,disabled:r,...n})=>m.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}:{}),xZ=R.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),$Z=R.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),CZ=R.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),_Z=R.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),TZ=R.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"}),OZ=(0,EZ.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}}})),kR=h.forwardRef((e,t)=>{let{loading:r=!1,title:n=m.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:a=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:p=void 0,...y}=e,b={active:a,disabled:l},S=OZ(e),g=d||f;return SZ("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),m.createElement(TZ,{"data-deprecated":"ListItem",ref:t,...y,...b,...S},m.createElement(m.Fragment,null,g&&m.createElement(_Z,{...b},g),n||o?m.createElement($Z,{isIndented:s&&!g},n&&m.createElement(wZ,{...b,loading:r},n),o&&m.createElement(CZ,{...b},o)):null,i&&m.createElement(xZ,{...b},i)))});kR.displayName="ListItem";var FR=kR,AZ=R.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}:{}),RZ=R.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),DZ=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:i,href:a}=r,l=h.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:o,title:i,href:a}),[t,e,n,o,i,a]);return m.createElement(FR,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},IR=({links:e,LinkWrapper:t,...r})=>{vZ("`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 m.createElement(AZ,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(i=>i.length).map((i,a)=>m.createElement(RZ,{key:i.map(l=>l.id).join(`~${a}~`)},i.map(l=>"content"in l?m.createElement(h.Fragment,{key:l.id},l.content):m.createElement(DZ,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:Sf}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:PZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var kZ=R.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})),FZ=R.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),La=h.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>m.createElement(kZ,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?m.createElement(FZ,{innerStyle:r},t):t));La.displayName="Bar";var Bm=R.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}:{});Bm.displayName="Side";var IZ=R.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),LZ=R(La)({paddingInline:0}),_1=({children:e,backgroundColor:t,className:r="",...n})=>{PZ('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,i]=h.Children.toArray(e);return m.createElement(LZ,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},m.createElement(IZ,{bgColor:t},m.createElement(Bm,{scrollable:n.scrollable,left:!0},o),i?m.createElement(Bm,{right:!0},i):null))};_1.displayName="FlexBar";const{deprecate:NZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var MZ=e=>typeof e.props.href=="string",BZ=e=>typeof e.props.href!="string";function jZ({children:e,...t},r){let n={props:t,ref:r};if(MZ(n))return m.createElement("a",{ref:n.ref,...n.props},e);if(BZ(n))return m.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var LR=h.forwardRef(jZ);LR.displayName="ButtonOrLink";var HZ=R(LR,{shouldForwardProp:Vd})({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}}),Ls=h.forwardRef((e,t)=>(NZ("The `TabButton` component is deprecated. Use `TabList` instead."),m.createElement(HZ,{"data-deprecated":"TabButton",ref:t,...e})));Ls.displayName="TabButton";var UZ=R.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),zZ=R.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),KZ=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),WZ=R.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),GZ=R.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Ns=({title:e,description:t,footer:r})=>m.createElement(UZ,null,m.createElement(zZ,null,m.createElement(KZ,null,e),t&&m.createElement(GZ,null,t)),r&&m.createElement(WZ,null,r));const{deprecate:VZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var NR=R.div(({active:e})=>e?{display:"block"}:{display:"none"}),YZ=e=>(VZ("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),h.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})=>m.createElement(NR,{active:a,role:"tabpanel"},i)}}));const{deprecate:qZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var XZ=R.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"})),JZ=R(Ls)(({active:e,theme:t,preActive:r})=>`
  612. color: ${r||e?t.barSelectedColor:t.barTextColor};
  613. .addon-collapsible-icon {
  614. color: ${r||e?t.barSelectedColor:t.barTextColor};
  615. }
  616. &:hover {
  617. color: ${t.barHoverColor};
  618. .addon-collapsible-icon {
  619. color: ${t.barHoverColor};
  620. }
  621. }
  622. `);function QZ(e){qZ("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=h.useRef(),r=h.useRef(),n=h.useRef(new Map),{width:o=1}=HA({ref:t}),[i,a]=h.useState(e),[l,s]=h.useState([]),u=h.useRef(e),c=h.useCallback(({menuName:f,actions:p})=>{let y=l.some(({active:g})=>g),[b,S]=h.useState(!1);return m.createElement(m.Fragment,null,m.createElement(C1,{ariaLabel:"Additional tabs",visible:b,onVisibleChange:S,placement:"bottom",popover:m.createElement(IR,{links:l.map(({title:g,id:v,color:E,active:w})=>({id:v,title:g,color:E,active:w,onClick:$=>{$.preventDefault(),p.onSelect(v)}}))})},m.createElement(JZ,{id:"addons-menu-button",ref:r,active:y,preActive:b,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},f,m.createElement(XZ,{className:"addon-collapsible-icon",isActive:y||b}))),l.map(({title:g,id:v,color:E},w)=>{let $=`index-${w}`;return m.createElement(Ls,{id:`tabbutton-${ra(v)??$}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:x=>{n.current.set(v,x)},className:"tabbutton",type:"button",key:v,textColor:E,role:"tab"},g)}))},[l]),d=h.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:p}=t.current.getBoundingClientRect(),{width:y}=r.current.getBoundingClientRect(),b=l.length?f+p-y:f+p,S=[],g=0,v=e.filter(E=>{let{id:w}=E,$=n.current.get(w),{width:x=0}=($==null?void 0:$.getBoundingClientRect())||{},C=f+g+x>b;return(!C||!$)&&S.push(E),g+=x,C});(S.length!==i.length||u.current!==e)&&(a(S),s(v),u.current=e)},[l.length,e,i]);return h.useLayoutEffect(d,[d,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:i,invisibleList:l,AddonTab:c}}var ZZ="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",eee=R.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"}),tee=R.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),T1=h.forwardRef((e,t)=>(Sf("The `TabBar` component is deprecated. Use `TabsView` instead."),m.createElement(tee,{"data-deprecated":"TabBar",...e,ref:t})));T1.displayName="TabBar";var ree=R.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${ZZ}`]:{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"}}:{}),MR=h.forwardRef(({active:e,render:t,children:r},n)=>(Sf("The `TabWrapper` component is deprecated. Use `TabsView` instead."),m.createElement(NR,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));MR.displayName="TabWrapper";var nee=class extends h.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?m.createElement(Ns,{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}},O1=h.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:i=null,backgroundColor:a,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:c})=>{Sf("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=h.useMemo(()=>YZ(e).map((g,v)=>({...g,active:t?g.id===t:v===0})),[e,t]),{visibleList:f,tabBarRef:p,tabRefs:y,AddonTab:b}=QZ(d),S=u??m.createElement(Ns,{title:"Nothing found"});return!c&&d.length===0?S:m.createElement(eee,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:l},m.createElement(_1,{scrollable:!1,border:!0,backgroundColor:a},m.createElement(T1,{style:{whiteSpace:"normal"},ref:p,role:"tablist"},f.map(({title:g,id:v,active:E,color:w},$)=>{let x=`index-${$}`;return m.createElement(Ls,{id:`tabbutton-${ra(v)??x}`,ref:C=>{y.current.set(v,C)},className:`tabbutton ${E?"tabbutton-active":""}`,type:"button",key:v,active:E,textColor:w,onClick:C=>{C.preventDefault(),r.onSelect(v)},role:"tab","aria-selected":E},typeof g=="function"?m.createElement("title",null):g)}),m.createElement(b,{menuName:s,actions:r})),i),m.createElement(ree,{id:"panel-tab-content",bordered:o,absolute:n},d.length?d.map(({id:g,active:v,render:E})=>m.createElement(nee,{key:g,active:v},m.createElement(E,{active:v},null))):S))});O1.displayName="Tabs";var BR=class extends h.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},Sf("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 m.createElement(O1,{bordered:e,absolute:t,selected:i,backgroundColor:n,menuName:o,actions:this.handlers},r)}};BR.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var jR=R.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});jR.displayName="Separator";R.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));function oee(e,t){let{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e,[i,a]=h.useState(!1);ve(()=>{var y;a(!!(t.current&&!((y=t.current.parentElement)===null||y===void 0)&&y.closest('[role="toolbar"]')))});let{direction:l}=Mn(),s=l==="rtl"&&o==="horizontal",u=gX(t),c=y=>{if(y.currentTarget.contains(y.target)){if(o==="horizontal"&&y.key==="ArrowRight"||o==="vertical"&&y.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&y.key==="ArrowLeft"||o==="vertical"&&y.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(y.key==="Tab"){y.stopPropagation(),d.current=document.activeElement,y.shiftKey?u.focusFirst():u.focusLast();return}else return;y.stopPropagation(),y.preventDefault()}},d=h.useRef(null),f=y=>{!y.currentTarget.contains(y.relatedTarget)&&!d.current&&(d.current=y.target)},p=y=>{var b;if(d.current&&!y.currentTarget.contains(y.relatedTarget)&&!((b=t.current)===null||b===void 0)&&b.contains(y.target)){var S;(S=d.current)===null||S===void 0||S.focus(),d.current=null}};return{toolbarProps:{...ze(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:c,onFocusCapture:i?void 0:p,onBlurCapture:i?void 0:f}}}var HR=({"aria-label":e,"aria-labelledby":t,...r})=>{let n=h.useRef(null),{toolbarProps:o}=oee({"aria-label":e,"aria-labelledby":t,orientation:"horizontal"},n);return m.createElement(La,{ref:n,...o,...r})},UR=new WeakMap;function hd(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${UR.get(e)}-${r}-${t}`):""}function zR(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:i}=e,{selectionManager:a,selectedKey:l}=t,s=n===l,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=ER({selectionManager:a,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:i,linkBehavior:"selection"}),f=hd(t,n,"tab"),p=hd(t,n,"tabpanel"),{tabIndex:y}=c,b=t.collection.getItem(n),S=ze(b==null?void 0:b.props,{labelable:!0});delete S.id;let g=U2(b==null?void 0:b.props),{focusableProps:v}=Ds({isDisabled:u},r);return{tabProps:se(S,v,g,c,{id:f,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?p:void 0,tabIndex:u?void 0:y,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function KR(e,t,r){let n=yX(r)?void 0:0;var o;let i=hd(t,(o=e.id)!==null&&o!==void 0?o:t==null?void 0:t.selectedKey,"tabpanel"),a=df({...e,id:i,"aria-labelledby":hd(t,t==null?void 0:t.selectedKey,"tab")});return{tabPanelProps:se(a,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var iee=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 WR(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:l}=t,{direction:s}=Mn(),u=h.useMemo(()=>new iee(i,s,n,l),[i,l,n,s]),{collectionProps:c}=vR({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=yt();UR.set(t,d);let f=df({...e,id:d});return{tabListProps:{...se(c,f),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var aee=R.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}}),lee=R.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),see=R.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),uee=R.div({display:"flex",flexShrink:0}),ex=28,tx=R.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"})),rx=R(ke)({flexShrink:0,paddingInline:0,width:16}),cee=({item:e,state:t})=>{let{rendered:r}=e,n=m.useRef(null),o=t,{tabProps:i,isDisabled:a,isPressed:l,isSelected:s}=zR(e,o,n);return m.createElement(aee,{...i,isDisabled:a,isPressed:l,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n},r)},GR=({state:e,...t})=>{let r=h.useRef(null),n=h.useRef(null),o=h.useRef(null),{tabListProps:i}=WR({orientation:"horizontal"},e,o),[a,l]=h.useState(!1),[s,u]=h.useState(!1),[c,d]=h.useState(!1),f=h.useCallback(()=>{let g=n.current,v=r.current;if(!g||!v)return;let{scrollLeft:E,scrollWidth:w,clientWidth:$}=g,x=v.clientWidth-(a?ex*2:0),C=w>x;l(C),C?(u(E>0),d(E<w-$)):(u(!1),d(!1))},[a]),p=h.useCallback(()=>{f()},[f]);h.useEffect(()=>{let g=n.current;if(!g||typeof window>"u")return;g.addEventListener("scroll",p,{passive:!0});let v=null;typeof ResizeObserver<"u"&&(v=new ResizeObserver(p),v.observe(g));let E=setTimeout(p,0);return()=>{clearTimeout(E),g.removeEventListener("scroll",p),v&&v.disconnect()}},[p]);let y=h.useCallback(g=>{let v=n.current,E=r.current;if(!v||!E||typeof window>"u")return;let w=E.clientWidth-ex*2,$=g==="backward"?-w:w;typeof v.scrollBy=="function"?v.scrollBy({left:$,behavior:"smooth"}):v.scrollLeft+=$},[]),b=h.useCallback(()=>y("backward"),[y]),S=h.useCallback(()=>y("forward"),[y]);return m.createElement(lee,{...t,ref:r,"data-show-scroll-buttons":a},a&&m.createElement(tx,{$showEndBorder:s},m.createElement(rx,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!s,onClick:b,tabIndex:-1},m.createElement(f9,null))),m.createElement(see,{ref:n},m.createElement(uee,{ref:o,...i},[...e.collection].map(g=>m.createElement(cee,{key:g.key,item:g,state:e})))),a&&m.createElement(tx,{$showStartBorder:c},m.createElement(rx,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!c,onClick:S,tabIndex:-1},m.createElement(p9,null))))},dee=R.div({overflowY:"hidden",height:"100%"}),VR=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=h.useRef(null),o=r,{tabPanelProps:i}=KR(o.selectedItem??{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(a=>!!a).map(a=>{let l=o.selectedKey===a.key;return m.createElement(dee,{key:a.key,ref:l?n:void 0,...l?i:{},id:l?`${i.id}`.replace(/null$/,`${a.key}`):void 0,hidden:l?void 0:!0},e?m.createElement(Ey,{vertical:!0},a.props.children):a.props.children)})},nx=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 l of a.childNodes)t(l)};for(let a of e)t(a);let r=null,n=0,o=0;for(let[a,l]of this.keyMap)r?(r.nextKey=a,l.prevKey=r.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&o++,r=l,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 fee(e){let{filter:t,layoutDelegate:r}=e,n=x1(e),o=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=h.useCallback(u=>t?new nx(t(u)):new nx(u),[t]),a=h.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=wR(e,i,a),s=h.useMemo(()=>new $1(l,n,{layoutDelegate:r}),[l,n,r]);return pee(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function pee(e,t){let r=h.useRef(null);h.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(g=>{let v=r.current.getItem(g);return(v==null?void 0:v.type)==="item"?v:null}).filter(g=>g!==null),f=[...e.getKeys()].map(g=>{let v=e.getItem(g);return(v==null?void 0:v.type)==="item"?v:null}).filter(g=>g!==null);var n,o;let p=((n=d==null?void 0:d.length)!==null&&n!==void 0?n:0)-((o=f==null?void 0:f.length)!==null&&o!==void 0?o:0);var i,a,l;let y=Math.min(p>1?Math.max(((i=c==null?void 0:c.index)!==null&&i!==void 0?i:0)-p+1,0):(a=c==null?void 0:c.index)!==null&&a!==void 0?a:0,((l=f==null?void 0:f.length)!==null&&l!==void 0?l:0)-1),b=null,S=!1;for(;y>=0;){if(!t.isDisabled(f[y].key)){b=f[y];break}if(y<f.length-1&&!S)y++;else{S=!0;var s,u;y>((s=c==null?void 0:c.index)!==null&&s!==void 0?s:0)&&(y=(u=c==null?void 0:c.index)!==null&&u!==void 0?u:0),y--}}t.setFocusedKey(b?b.key:null)}r.current=e},[e,t])}function hee(e){var t;let[r,n]=ff(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=h.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:a,selectionManager:l}=fee({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),s=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function YR(e){var t,r;let n=hee({...e,onSelectionChange:e.onSelectionChange?s=>{var u;s!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:ox(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:i,selectedKey:a}=n,l=h.useRef(a);return h.useEffect(()=>{let s=a;e.selectedKey==null&&(o.isEmpty||s==null||!i.getItem(s))&&(s=ox(i,n.disabledKeys),s!=null&&o.setSelectedKeys([s])),(s!=null&&o.focusedKey==null||!o.isFocused&&s!==l.current)&&o.setFocusedKey(s),l.current=s}),{...n,isDisabled:e.isDisabled||!1}}function ox(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}var qR=({defaultSelected:e,onSelectionChange:t,selected:r,tabs:n})=>YR({children:n.map(({children:o,id:i,"aria-label":a,title:l})=>m.createElement(QQ,{key:i,"aria-label":a,title:typeof l=="function"?m.createElement(l,null):l},typeof o=="function"?m.createElement(o,null):o)),disabledKeys:n.filter(({isDisabled:o})=>o).map(({id:o})=>o),defaultSelectedKey:e,onSelectionChange:o=>t==null?void 0:t(`${o}`),selectedKey:r}),gee=R.div({display:"flex",flexDirection:"column",height:"100%"}),mee=R(VR)(()=>({flex:1})),yee=R(GR)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),XR=({backgroundColor:e,barInnerStyle:t,defaultSelected:r,emptyState:n,onSelectionChange:o,panelProps:i={},selected:a,showToolsWhenEmpty:l,tabs:s,tools:u,...c})=>{let d=qR({defaultSelected:r,onSelectionChange:o,selected:a,tabs:s}),f=n??m.createElement(Ns,{title:"Nothing found"}),p=s.length>0;return!l&&!p?f:m.createElement(gee,{...c},m.createElement(La,{scrollable:!1,border:!0,backgroundColor:e,innerStyle:{display:"flex",justifyContent:"space-between",paddingInlineStart:0,paddingInlineEnd:10,"> *:not(:last-child)":{order:2},"> *":{flexShrink:0},...t,gap:0}},u,p?m.createElement(yee,{state:d,$simulatedGap:(t==null?void 0:t.gap)??6}):m.createElement("div",null)),p?m.createElement(mee,{state:d,...i}):f)},wf=h.createContext(null),Ea=h.createContext(null),bee=h.forwardRef(function(e,t){[e,t]=At(e,t,wf);let{children:r,orientation:n="horizontal"}=e;return r=h.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),m.createElement(nR,{content:r},o=>m.createElement(vee,{props:e,collection:o,tabsRef:t}))});function vee({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=YR({...e,collection:r,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:l}=gf({within:!0}),s=h.useMemo(()=>({orientation:n,isFocusWithin:a,isFocusVisible:l}),[n,a,l]),u=lr({...e,defaultClassName:"react-aria-Tabs",values:s}),c=ze(e,{global:!0});return m.createElement("div",{...se(c,u,i),ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":o.isDisabled||void 0},m.createElement(Nn,{values:[[wf,e],[Ea,o]]},u.children))}var Eee=h.forwardRef(function(e,t){return h.useContext(Ea)?m.createElement(See,{props:e,forwardedRef:t}):m.createElement(aR,e)});function See({props:e,forwardedRef:t}){let r=h.useContext(Ea),{CollectionRoot:n}=h.useContext(Is),{orientation:o="horizontal",keyboardActivation:i="automatic"}=u1(wf),a=Kr(t),{tabListProps:l}=WR({...e,orientation:o,keyboardActivation:i},r,a),s=lr({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}}),u=ze(e,{global:!0});return delete u.id,m.createElement("div",{...se(u,s,l),ref:a,"data-orientation":o||void 0},m.createElement(n,{collection:r.collection,persistedKeys:fR(r.selectionManager.focusedKey)}))}var JR=class extends mi{};JR.type="item";var wee=bf(JR,(e,t,r)=>{let n=h.useContext(Ea),o=Kr(t),{tabProps:i,isSelected:a,isDisabled:l,isPressed:s}=zR({key:r.key,...e},n,o),{focusProps:u,isFocused:c,isFocusVisible:d}=gf(),{hoverProps:f,isHovered:p}=Ia({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),y=lr({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:l,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:p}}),b=r.props.href?"a":"div",S=ze(e,{global:!0});return delete S.id,delete S.onClick,m.createElement(b,{...se(S,y,i,u,f),ref:o,"data-selected":a||void 0,"data-disabled":l||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":s||void 0,"data-hovered":p||void 0},y.children)}),xee=E1(function(e,t){let r=h.useContext(Ea),n=Kr(t),{id:o,...i}=e,{tabPanelProps:a}=KR(e,r,n),{focusProps:l,isFocused:s,isFocusVisible:u}=gf(),c=r.selectedKey===e.id,d=lr({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:VS(!c),state:r}});if(!c&&!e.shouldForceMount)return null;let f=ze(i,{global:!0});delete f.id;let p=c?se(f,a,l,d):d;return m.createElement("div",{...p,ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:VS(!c||e.inert),"data-inert":c?void 0:"true"},m.createElement(Nn,{values:[[wf,null],[Ea,null]]},m.createElement(Is.Provider,{value:dR},d.children)))});R.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});R.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});R(Eee)({display:"flex",flexShrink:0});R.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"}));R(ke)({flexShrink:0,paddingInline:0,width:16});R(xee)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});R(bee)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));R(wee)(({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 $ee=ut`
  623. from {
  624. transform: rotate(0deg);
  625. }
  626. to {
  627. transform: rotate(360deg);
  628. }
  629. `,Cee=R.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:`${$ee} 0.7s linear infinite`,mixBlendMode:"difference"})),ix=R.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),_ee=R.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:kn(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),Tee=R.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),ax=R.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),Oee=R(t9)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),Aee=ut`
  630. from { content: "..." }
  631. 33% { content: "." }
  632. 66% { content: ".." }
  633. to { content: "..." }
  634. `,Ree=R.span({"&::after":{content:"'...'",animation:`${Aee} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),QR=({progress:e,error:t,size:r,...n})=>{if(t)return m.createElement(ix,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},m.createElement(Oee,null),m.createElement(ax,null,t.message));if(e){let{value:o,modules:i}=e,{message:a}=e;return i&&(a+=` ${i.complete} / ${i.total} modules`),m.createElement(ix,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":a,role:"progressbar",...n},m.createElement(_ee,null,m.createElement(Tee,{style:{width:`${o*100}%`}})),m.createElement(ax,null,a,o<1&&m.createElement(Ree,{key:a})))}return m.createElement(Cee,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},Dee=ut({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});R.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));R.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:`${Dee} 1s linear infinite`,circle:{opacity:.25}});const{deprecate:Bce}=__STORYBOOK_MODULE_CLIENT_LOGGER__;R.pre`
  635. line-height: 18px;
  636. padding: 11px 1rem;
  637. white-space: pre-wrap;
  638. background: rgba(0, 0, 0, 0.05);
  639. color: ${oe.darkest};
  640. border-radius: 3px;
  641. margin: 1rem 0;
  642. width: 100%;
  643. display: block;
  644. overflow: hidden;
  645. font-family: ${Lr.fonts.mono};
  646. font-size: ${Lr.size.s2-1}px;
  647. `;var ZR=k2;Object.keys(k2).forEach(e=>{h.forwardRef((t,r)=>h.createElement(e,{...t,ref:r}))});const Pee=Object.freeze(Object.defineProperty({__proto__:null,A:g2,ActionBar:m7,ActionList:cc,Bar:La,Blockquote:m2,Button:ke,Code:qy,DL:y2,Div:b2,EmptyTabContent:Ns,ErrorFormatter:zA,FlexBar:_1,Form:gi,H1:v2,H2:Xy,H3:Jy,H4:E2,H5:S2,H6:w2,HR:x2,IconButton:CA,Img:$2,LI:C2,Link:ma,ListItem:FR,Loader:QR,OL:_2,P:T2,Popover:Fs,PopoverProvider:C1,Pre:O2,ResetWrapper:Yy,ScrollArea:Ey,Select:YA,Separator:jR,Span:A2,SyntaxHighlighter:Os,TT:R2,TabBar:T1,TabButton:Ls,TabList:GR,TabPanel:VR,TabWrapper:MR,Table:D2,Tabs:O1,TabsState:BR,TabsView:XR,ToggleButton:ks,Toolbar:HR,Tooltip:PR,TooltipLinkList:IR,TooltipNote:I2,TooltipProvider:xA,UL:P2,Zoom:UA,codeCommon:In,components:ZR,convertToReactAriaPlacement:m1,createCopyToClipboardFunction:sV,nameSpaceClassNames:Ie,useTabsState:qR,withReset:Ue},Symbol.toStringTag,{value:"Module"}));function qt(){return qt=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},qt.apply(null,arguments)}function kee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},fs(e,t)}function Fee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t)}function jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jm(e)}function Iee(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function e3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e3=function(){return!!e})()}function Lee(e,t,r){if(e3())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&fs(o,r.prototype),o}function Hm(e){var t=typeof Map=="function"?new Map:void 0;return Hm=function(r){if(r===null||!Iee(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 Lee(r,arguments,jm(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),fs(n,r)},Hm(e)}var ln=function(e){Fee(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,kee(n)}return t}(Hm(Error));function Eh(e){return Math.round(e*255)}function Nee(e,t,r){return Eh(e)+","+Eh(t)+","+Eh(r)}function gd(e,t,r,n){if(n===void 0&&(n=Nee),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)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=r-i/2,d=l+c,f=s+c,p=u+c;return n(d,f,p)}var lx={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 Mee(e){if(typeof e!="string")return e;var t=e.toLowerCase();return lx[t]?"#"+lx[t]:e}var Bee=/^#[a-fA-F0-9]{6}$/,jee=/^#[a-fA-F0-9]{8}$/,Hee=/^#[a-fA-F0-9]{3}$/,Uee=/^#[a-fA-F0-9]{4}$/,Sh=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,zee=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Kee=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Wee=/^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 Sa(e){if(typeof e!="string")throw new ln(3);var t=Mee(e);if(t.match(Bee))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(jee)){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(Hee))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(Uee)){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=Sh.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=zee.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=Kee.exec(t);if(a){var l=parseInt(""+a[1],10),s=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,c="rgb("+gd(l,s,u)+")",d=Sh.exec(c);if(!d)throw new ln(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=Wee.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,b=parseInt(""+f[3],10)/100,S="rgb("+gd(p,y,b)+")",g=Sh.exec(S);if(!g)throw new ln(4,t,S);return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new ln(5)}function Gee(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 l,s=o-i,u=a>.5?s/(2-o-i):s/(o+i);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:a,alpha:e.alpha}:{hue:l,saturation:u,lightness:a}}function Eo(e){return Gee(Sa(e))}var Vee=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},Um=Vee;function Io(e){var t=e.toString(16);return t.length===1?"0"+t:t}function wh(e){return Io(Math.round(e*255))}function Yee(e,t,r){return Um("#"+wh(e)+wh(t)+wh(r))}function t3(e,t,r){return gd(e,t,r,Yee)}function qee(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return t3(e.hue,e.saturation,e.lightness);throw new ln(1)}function Xee(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?t3(e.hue,e.saturation,e.lightness):"rgba("+gd(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ln(2)}function zm(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Um("#"+Io(e)+Io(t)+Io(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Um("#"+Io(e.red)+Io(e.green)+Io(e.blue));throw new ln(6)}function wa(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Sa(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?zm(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?zm(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ln(7)}var Jee=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Qee=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Zee=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},ete=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function So(e){if(typeof e!="object")throw new ln(8);if(Qee(e))return wa(e);if(Jee(e))return zm(e);if(ete(e))return Xee(e);if(Zee(e))return qee(e);throw new ln(8)}function r3(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):r3(e,t,n)}}function sr(e){return r3(e,e.length,[])}function tte(e,t){if(t==="transparent")return t;var r=Eo(t);return So(qt({},r,{hue:r.hue+parseFloat(e)}))}sr(tte);function Na(e,t,r){return Math.max(e,Math.min(t,r))}function rte(e,t){if(t==="transparent")return t;var r=Eo(t);return So(qt({},r,{lightness:Na(0,1,r.lightness-parseFloat(e))}))}var nte=sr(rte),Rl=nte;function ote(e,t){if(t==="transparent")return t;var r=Eo(t);return So(qt({},r,{saturation:Na(0,1,r.saturation-parseFloat(e))}))}sr(ote);function ite(e,t){if(t==="transparent")return t;var r=Eo(t);return So(qt({},r,{lightness:Na(0,1,r.lightness+parseFloat(e))}))}var ate=sr(ite),Km=ate;function lte(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Sa(t),o=qt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=Sa(r),a=qt({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-a.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,p={red:Math.floor(o.red*d+a.red*f),green:Math.floor(o.green*d+a.green*f),blue:Math.floor(o.blue*d+a.blue*f),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return wa(p)}var ste=sr(lte),n3=ste;function ute(e,t){if(t==="transparent")return t;var r=Sa(t),n=typeof r.alpha=="number"?r.alpha:1,o=qt({},r,{alpha:Na(0,1,(n*100+parseFloat(e)*100)/100)});return wa(o)}var cte=sr(ute),xh=cte;function dte(e,t){if(t==="transparent")return t;var r=Eo(t);return So(qt({},r,{saturation:Na(0,1,r.saturation+parseFloat(e))}))}sr(dte);function fte(e,t){return t==="transparent"?t:So(qt({},Eo(t),{hue:parseFloat(e)}))}sr(fte);function pte(e,t){return t==="transparent"?t:So(qt({},Eo(t),{lightness:parseFloat(e)}))}sr(pte);function hte(e,t){return t==="transparent"?t:So(qt({},Eo(t),{saturation:parseFloat(e)}))}sr(hte);function gte(e,t){return t==="transparent"?t:n3(parseFloat(e),"rgb(0, 0, 0)",t)}sr(gte);function mte(e,t){return t==="transparent"?t:n3(parseFloat(e),"rgb(255, 255, 255)",t)}sr(mte);function yte(e,t){if(t==="transparent")return t;var r=Sa(t),n=typeof r.alpha=="number"?r.alpha:1,o=qt({},r,{alpha:Na(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return wa(o)}var bte=sr(yte),Qe=bte,vte=R.div(Ue,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Qe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),o3=e=>m.createElement(vte,{...e,className:"docblock-emptyblock sb-unstyled"}),Ete=R(Os)(({theme:e})=>({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"}})),Ste=R.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Pu=R.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Vc}`]:{margin:0}})),wte=()=>m.createElement(Ste,null,m.createElement(Pu,null),m.createElement(Pu,{style:{width:"80%"}}),m.createElement(Pu,{style:{width:"30%"}}),m.createElement(Pu,{style:{width:"80%"}})),xf=({isLoading:e,error:t,language:r,code:n,dark:o,format:i=!0,copyable:a=!0,...l})=>{let{typography:s}=Wd();if(e)return m.createElement(wte,null);if(t)return m.createElement(o3,null,t);let u=m.createElement(Ete,{bordered:!0,copyable:a,format:i,language:r??"jsx",className:"docblock-source sb-unstyled",...l},n);if(typeof o>"u")return u;let c=o?Wo.dark:Wo.light;return m.createElement(hy,{theme:Gc({...c,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)};const Wm={},i3=m.createContext(Wm);function A1(e){const t=m.useContext(i3);return m.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function xte(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(Wm):e.components||Wm:t=A1(e.components),m.createElement(i3.Provider,{value:t},e.children)}const $te=Object.freeze(Object.defineProperty({__proto__:null,MDXProvider:xte,useMDXComponents:A1},Symbol.toStringTag,{value:"Module"})),{once:Cte}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function _te(e){return e==null||typeof e!="object"&&typeof e!="function"}function Tte(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ote(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ate(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Rte="[object RegExp]",Dte="[object String]",Pte="[object Number]",kte="[object Boolean]",Fte="[object Arguments]",Ite="[object Symbol]",Lte="[object Date]",Nte="[object Map]",Mte="[object Set]",Bte="[object Array]",jte="[object ArrayBuffer]",Hte="[object Object]",Ute="[object DataView]",zte="[object Uint8Array]",Kte="[object Uint8ClampedArray]",Wte="[object Uint16Array]",Gte="[object Uint32Array]",Vte="[object Int8Array]",Yte="[object Int16Array]",qte="[object Int32Array]",Xte="[object Float32Array]",Jte="[object Float64Array]";function Ui(e,t,r,n=new Map,o=void 0){let i=o==null?void 0:o(e,t,r,n);if(i!==void 0)return i;if(_te(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let a=new Array(e.length);n.set(e,a);for(let l=0;l<e.length;l++)a[l]=Ui(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){let a=new Map;n.set(e,a);for(let[l,s]of e)a.set(l,Ui(s,l,r,n,o));return a}if(e instanceof Set){let a=new Set;n.set(e,a);for(let l of e)a.add(Ui(l,void 0,r,n,o));return a}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Tte(e)){let a=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,a);for(let l=0;l<e.length;l++)a[l]=Ui(e[l],l,r,n,o);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,a),jn(a,e,r,n,o),a}if(typeof File<"u"&&e instanceof File){let a=new File([e],e.name,{type:e.type});return n.set(e,a),jn(a,e,r,n,o),a}if(typeof Blob<"u"&&e instanceof Blob){let a=new Blob([e],{type:e.type});return n.set(e,a),jn(a,e,r,n,o),a}if(e instanceof Error){let a=new e.constructor;return n.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,jn(a,e,r,n,o),a}if(e instanceof Boolean){let a=new Boolean(e.valueOf());return n.set(e,a),jn(a,e,r,n,o),a}if(e instanceof Number){let a=new Number(e.valueOf());return n.set(e,a),jn(a,e,r,n,o),a}if(e instanceof String){let a=new String(e.valueOf());return n.set(e,a),jn(a,e,r,n,o),a}if(typeof e=="object"&&Qte(e)){let a=Object.create(Object.getPrototypeOf(e));return n.set(e,a),jn(a,e,r,n,o),a}return e}function jn(e,t,r=e,n,o){let i=[...Object.keys(t),...Ote(t)];for(let a=0;a<i.length;a++){let l=i[a],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=Ui(t[l],l,r,n,o))}}function Qte(e){switch(Ate(e)){case Fte:case Bte:case jte:case Ute:case kte:case Lte:case Xte:case Jte:case Vte:case Yte:case qte:case Nte:case Pte:case Hte:case Rte:case Mte:case Dte:case Ite:case zte:case Kte:case Wte:case Gte:return!0;default:return!1}}function Zte(e){return Ui(e,void 0,e,new Map,void 0)}function ere(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];t(a,i)&&(r[i]=a)}return r}function No(){return No=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},No.apply(this,arguments)}var tre=["children","options"],sx=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),ux={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},rre=["style","script","pre"],nre=["src","href","data","formAction","srcDoc","action"],ore=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,ire=/\n{2,}$/,cx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,are=/^ *> ?/gm,lre=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,sre=/^ {2,}\n/,ure=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,dx=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,fx=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,cre=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,dre=/^(?:\n *)*\n/,fre=/\r\n?/g,pre=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,hre=/^\[\^([^\]]+)]/,gre=/\f/g,mre=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,yre=/^\s*?\[(x|\s)\]/,px=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,hx=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gx=/^([^\n]+)\n *(=|-)\2{2,} *\n/,$h=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,bre=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,mx=/^<!--[\s\S]*?(?:-->)/,vre=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ch=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Ere=/^\{.*\}$/,Sre=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wre=/^<([^ >]+[:@\/][^ >]+)>/,xre=/-([a-z])?/gi,yx=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,$re=/^[^\n]+(?: \n|\n{2,})/,Cre=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,_re=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Tre=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Ore=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Are=/\t/g,Rre=/(^ *\||\| *$)/g,Dre=/^ *:-+: *$/,Pre=/^ *:-+ *$/,kre=/^ *-+: *$/,$f=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Cf="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Fre=RegExp(`^([*_])\\1${$f(1)}${Cf}\\1\\1(?!\\1)`),Ire=RegExp(`^([*_])${$f(0)}${Cf}\\1(?!\\1)`),Lre=RegExp(`^(==)${$f(0)}${Cf}\\1`),Nre=RegExp(`^(~~)${$f(0)}${Cf}\\1`),Mre=/^(:[a-zA-Z0-9-_]+:)/,Bre=/^\\([^0-9A-Za-z\s])/,jre=/\\([^0-9A-Za-z\s])/g,Hre=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Ure=/^\n+/,zre=/^([ \t]*)/,Kre=/(?:^|\n)( *)$/,R1="(?:\\d+\\.)",D1="(?:[*+-])";function a3(e){return"( *)("+(e===1?R1:D1)+") +"}var l3=a3(1),s3=a3(2);function u3(e){return RegExp("^"+(e===1?l3:s3))}var Wre=u3(1),Gre=u3(2);function c3(e){return RegExp("^"+(e===1?l3:s3)+"[^\\n]*(?:\\n(?!\\1"+(e===1?R1:D1)+" )[^\\n]*)*(\\n|$)","gm")}var Vre=c3(1),Yre=c3(2);function d3(e){let t=e===1?R1:D1;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var f3=d3(1),p3=d3(2);function bx(e,t){let r=t===1,n=r?f3:p3,o=r?Vre:Yre,i=r?Wre:Gre;return{t:a=>i.test(a),o:xa(function(a,l){let s=Kre.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(a=s[1]+a):null}),i:1,u(a,l,s){let u=r?+a[2]:void 0,c=a[0].replace(ire,`
  648. `).match(o),d=!1;return{items:c.map(function(f,p){let y=i.exec(f)[0].length,b=RegExp("^ {1,"+y+"}","gm"),S=f.replace(b,"").replace(i,""),g=p===c.length-1,v=S.indexOf(`
  649. `)!==-1||g&&d;d=v;let E=s.inline,w=s.list,$;s.list=!0,v?(s.inline=!1,$=Dl(S)+`
  650. `):(s.inline=!0,$=Dl(S));let x=l($,s);return s.inline=E,s.list=w,x}),ordered:r,start:u}},l:(a,l,s)=>e(a.ordered?"ol":"ul",{key:s.key,start:a.type==="20"?a.start:void 0},a.items.map(function(u,c){return e("li",{key:c},l(u,s))}))}}var qre=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Xre=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function vx(e){return typeof e=="string"}function Dl(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function pc(e,t){return e.startsWith(t)}function Jre(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(pc(e,r[n]))return!0;return!1}return r(e,t)}function il(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Qre(e){return kre.test(e)?"right":Dre.test(e)?"center":Pre.test(e)?"left":null}function Ex(e,t,r,n){let o=r.inTable;r.inTable=!0;let i=[[]],a="";function l(){if(!a)return;let s=i[i.length-1];s.push.apply(s,t(a,r)),a=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,c)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==c.length-1&&i.push([]):a+=s}),l(),r.inTable=o,i}function Zre(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(Rre,"").split("|").map(Qre):[],o=e[3]?function(a,l,s){return a.trim().split(`
  651. `).map(function(u){return Ex(u,l,s,!0)})}(e[3],t,r):[],i=Ex(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:i,type:"25"}:{children:i,type:"21"}}function Sx(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function xa(e){return e.inline=1,e}function To(e){return xa(function(t,r){return r.inline?e.exec(t):null})}function Hn(e){return xa(function(t,r){return r.inline||r.simple?e.exec(t):null})}function bn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function ku(e){return xa(function(t){return e.exec(t)})}var ene=/(javascript|vbscript|data(?!:image)):/i;function tne(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(ene.test(t))return null}catch{return null}return e}function Yr(e){return e&&e.replace(jre,"$1")}function hc(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function rne(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function nne(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var _h=(e,t,r)=>({children:hc(t,e[2],r)});function Th(){return{}}function Oh(){return null}function one(...e){return e.filter(Boolean).join(" ")}function Ah(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function ine(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?No({},ux,t.namedCodesToUnicode):ux;let r=t.slugify||il,n=t.sanitizer||tne,o=t.createElement||h.createElement,i=[cx,dx,fx,t.enforceAtxHeadings?hx:px,gx,yx,f3,p3],a=[...i,$re,$h,mx,Ch];function l(g,v){for(let E=0;E<g.length;E++)if(g[E].test(v))return!0;return!1}function s(g,v,...E){let w=Ah(t.overrides,g+".props",{});return o(function($,x){let C=Ah(x,$);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:Ah(x,$+".component",$):$}(g,t.overrides),No({},v,w,{className:one(v==null?void 0:v.className,w.className)||void 0}),...E)}function u(g){g=g.replace(mre,"");let v=!1;t.forceInline?v=!0:t.forceBlock||(v=Ore.test(g)===!1);let E=b(y(v?g:Dl(g).replace(Ure,"")+`
  652. `,{inline:v}));for(;vx(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;let w=t.wrapper||(v?"span":"div"),$;if(E.length>1||t.forceWrapper)$=E;else{if(E.length===1)return $=E[0],typeof $=="string"?s("span",{key:"outer"},$):$;$=null}return o(w,{key:"outer"},$)}function c(g,v){if(!v||!v.trim())return null;let E=v.match(ore);return E?E.reduce(function(w,$){let x=$.indexOf("=");if(x!==-1){let C=function(_){return _.indexOf("-")!==-1&&_.match(vre)===null&&(_=_.replace(xre,function(I,L){return L.toUpperCase()})),_}($.slice(0,x)).trim(),T=function(_){let I=_[0];return(I==='"'||I==="'")&&_.length>=2&&_[_.length-1]===I?_.slice(1,-1):_}($.slice(x+1).trim()),A=sx[C]||C;if(A==="ref")return w;let O=w[A]=function(_,I,L,M){return I==="style"?function(U){let k=[],F="",P=!1,B=!1,D="";if(!U)return k;for(let V=0;V<U.length;V++){let Z=U[V];if(Z!=='"'&&Z!=="'"||P||(B?Z===D&&(B=!1,D=""):(B=!0,D=Z)),Z==="("&&F.endsWith("url")?P=!0:Z===")"&&P&&(P=!1),Z!==";"||B||P)F+=Z;else{let q=F.trim();if(q){let K=q.indexOf(":");if(K>0){let X=q.slice(0,K).trim(),ee=q.slice(K+1).trim();k.push([X,ee])}}F=""}}let z=F.trim();if(z){let V=z.indexOf(":");if(V>0){let Z=z.slice(0,V).trim(),q=z.slice(V+1).trim();k.push([Z,q])}}return k}(L).reduce(function(U,[k,F]){return U[k.replace(/(-[a-z])/g,P=>P[1].toUpperCase())]=M(F,_,k),U},{}):nre.indexOf(I)!==-1?M(Yr(L),_,I):(L.match(Ere)&&(L=Yr(L.slice(1,L.length-1))),L==="true"||L!=="false"&&L)}(g,C,T,n);typeof O=="string"&&($h.test(O)||Ch.test(O))&&(w[A]=u(O.trim()))}else $!=="style"&&(w[sx[$]||$]=!0);return w},{}):null}let d=[],f={},p={0:{t:[">"],o:bn(cx),i:1,u(g,v,E){let[,w,$]=g[0].replace(are,"").match(lre);return{alert:w,children:v($,E)}},l(g,v,E){let w={key:E.key};return g.alert&&(w.className="markdown-alert-"+r(g.alert.toLowerCase(),il),g.children.unshift({attrs:{},children:[{type:"27",text:g.alert}],noInnerParse:!0,type:"11",tag:"header"})),s("blockquote",w,v(g.children,E))}},1:{t:[" "],o:ku(sre),i:1,u:Th,l:(g,v,E)=>s("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:bn(ure),i:1,u:Th,l:(g,v,E)=>s("hr",{key:E.key})},3:{t:[" "],o:bn(fx),i:0,u:g=>({lang:void 0,text:Yr(Dl(g[0].replace(/^ {4}/gm,"")))}),l:(g,v,E)=>s("pre",{key:E.key},s("code",No({},g.attrs,{className:g.lang?"lang-"+g.lang:""}),g.text))},4:{t:["```","~~~"],o:bn(dx),i:0,u:g=>({attrs:c("code",g[3]||""),lang:g[2]||void 0,text:g[4],type:"3"})},5:{t:["`"],o:Hn(cre),i:3,u:g=>({text:Yr(g[2])}),l:(g,v,E)=>s("code",{key:E.key},g.text)},6:{t:["[^"],o:bn(pre),i:0,u:g=>(d.push({footnote:g[2],identifier:g[1]}),{}),l:Oh},7:{t:["[^"],o:To(hre),i:1,u:g=>({target:"#"+r(g[1],il),text:g[1]}),l:(g,v,E)=>s("a",{key:E.key,href:n(g.target,"a","href")},s("sup",{key:E.key},g.text))},8:{t:["[ ]","[x]"],o:To(yre),i:1,u:g=>({completed:g[1].toLowerCase()==="x"}),l:(g,v,E)=>s("input",{checked:g.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:bn(t.enforceAtxHeadings?hx:px),i:1,u:(g,v,E)=>({children:hc(v,g[2],E),id:r(g[2],il),level:g[1].length}),l:(g,v,E)=>s("h"+g.level,{id:g.id,key:E.key},v(g.children,E))},10:{t:g=>{let v=g.indexOf(`
  653. `);return v>0&&v<g.length-1&&(g[v+1]==="="||g[v+1]==="-")},o:bn(gx),i:1,u:(g,v,E)=>({children:hc(v,g[1],E),level:g[2]==="="?1:2,type:"9"})},11:{t:["<"],o:ku($h),i:1,u(g,v,E){let[,w]=g[3].match(zre),$=RegExp("^"+w,"gm"),x=g[3].replace($,""),C=l(a,x)?nne:hc,T=g[1].toLowerCase(),A=rre.indexOf(T)!==-1,O=(A?T:g[1]).trim(),_={attrs:c(O,g[2]),noInnerParse:A,tag:O};if(E.inAnchor=E.inAnchor||T==="a",A)_.text=g[3];else{let I=E.inHTML;E.inHTML=!0,_.children=C(v,x,E),E.inHTML=I}return E.inAnchor=!1,_},l:(g,v,E)=>s(g.tag,No({key:E.key},g.attrs),g.text||(g.children?v(g.children,E):""))},13:{t:["<"],o:ku(Ch),i:1,u(g){let v=g[1].trim();return{attrs:c(v,g[2]||""),tag:v}},l:(g,v,E)=>s(g.tag,No({},g.attrs,{key:E.key}))},12:{t:["<!--"],o:ku(mx),i:1,u:()=>({}),l:Oh},14:{t:["!["],o:Hn(Xre),i:1,u:g=>({alt:Yr(g[1]),target:Yr(g[2]),title:Yr(g[3])}),l:(g,v,E)=>s("img",{key:E.key,alt:g.alt||void 0,title:g.title||void 0,src:n(g.target,"img","src")})},15:{t:["["],o:To(qre),i:3,u:(g,v,E)=>({children:rne(v,g[1],E),target:Yr(g[2]),title:Yr(g[3])}),l:(g,v,E)=>s("a",{key:E.key,href:n(g.target,"a","href"),title:g.title},v(g.children,E))},16:{t:["<"],o:To(wre),i:0,u(g){let v=g[1],E=!1;return v.indexOf("@")!==-1&&v.indexOf("//")===-1&&(E=!0,v=v.replace("mailto:","")),{children:[{text:v,type:"27"}],target:E?"mailto:"+v:v,type:"15"}}},17:{t:(g,v)=>!v.inAnchor&&!t.disableAutoLink&&(pc(g,"http://")||pc(g,"https://")),o:To(Sre),i:0,u:g=>({children:[{text:g[1],type:"27"}],target:g[1],title:void 0,type:"15"})},20:bx(s,1),33:bx(s,2),19:{t:[`
  654. `],o:bn(dre),i:3,u:Th,l:()=>`
  655. `},21:{o:xa(function(g,v){if(v.inline||v.simple||v.inHTML&&g.indexOf(`
  656. `)===-1&&v.prevCapture.indexOf(`
  657. `)===-1)return null;let E="",w=0;for(;;){let x=g.indexOf(`
  658. `,w),C=g.slice(w,x===-1?void 0:x+1);if(l(i,C)||(E+=C,x===-1||!C.trim()))break;w=x+1}let $=Dl(E);return $===""?null:[E,,$]}),i:3,u:_h,l:(g,v,E)=>s("p",{key:E.key},v(g.children,E))},22:{t:["["],o:To(Cre),i:0,u:g=>(f[g[1]]={target:g[2],title:g[4]},{}),l:Oh},23:{t:["!["],o:Hn(_re),i:0,u:g=>({alt:g[1]?Yr(g[1]):void 0,ref:g[2]}),l:(g,v,E)=>f[g.ref]?s("img",{key:E.key,alt:g.alt,src:n(f[g.ref].target,"img","src"),title:f[g.ref].title}):null},24:{t:g=>g[0]==="["&&g.indexOf("](")===-1,o:To(Tre),i:0,u:(g,v,E)=>({children:v(g[1],E),fallbackChildren:g[0],ref:g[2]}),l:(g,v,E)=>f[g.ref]?s("a",{key:E.key,href:n(f[g.ref].target,"a","href"),title:f[g.ref].title},v(g.children,E)):s("span",{key:E.key},g.fallbackChildren)},25:{t:["|"],o:bn(yx),i:1,u:Zre,l(g,v,E){let w=g;return s("table",{key:E.key},s("thead",null,s("tr",null,w.header.map(function($,x){return s("th",{key:x,style:Sx(w,x)},v($,E))}))),s("tbody",null,w.cells.map(function($,x){return s("tr",{key:x},$.map(function(C,T){return s("td",{key:T,style:Sx(w,T)},v(C,E))}))})))}},27:{o:xa(function(g,v){let E;return pc(g,":")&&(E=Mre.exec(g)),E||Hre.exec(g)}),i:4,u(g){let v=g[0];return{text:v.indexOf("&")===-1?v:v.replace(bre,(E,w)=>t.namedCodesToUnicode[w]||E)}},l:g=>g.text},28:{t:["**","__"],o:Hn(Fre),i:2,u:(g,v,E)=>({children:v(g[2],E)}),l:(g,v,E)=>s("strong",{key:E.key},v(g.children,E))},29:{t:g=>{let v=g[0];return(v==="*"||v==="_")&&g[1]!==v},o:Hn(Ire),i:3,u:(g,v,E)=>({children:v(g[2],E)}),l:(g,v,E)=>s("em",{key:E.key},v(g.children,E))},30:{t:["\\"],o:Hn(Bre),i:1,u:g=>({text:g[1],type:"27"})},31:{t:["=="],o:Hn(Lre),i:3,u:_h,l:(g,v,E)=>s("mark",{key:E.key},v(g.children,E))},32:{t:["~~"],o:Hn(Nre),i:3,u:_h,l:(g,v,E)=>s("del",{key:E.key},v(g.children,E))}};t.disableParsingRawHTML===!0&&(delete p[11],delete p[13]);let y=function(g){var v=Object.keys(g);function E(w,$){var x=[];if($.prevCapture=$.prevCapture||"",w.trim())for(;w;)for(var C=0;C<v.length;){var T=v[C],A=g[T];if(!A.t||Jre(w,$,A.t)){var O=A.o(w,$);if(O&&O[0]){w=w.substring(O[0].length);var _=A.u(O,E,$);$.prevCapture+=O[0],_.type||(_.type=T),x.push(_);break}C++}else C++}return $.prevCapture="",x}return v.sort(function(w,$){return g[w].i-g[$].i||(w<$?-1:1)}),function(w,$){return E(function(x){return x.replace(fre,`
  659. `).replace(gre,"").replace(Are," ")}(w),$)}}(p),b=function(g,v){return function E(w,$={}){if(Array.isArray(w)){let x=$.key,C=[],T=!1;for(let A=0;A<w.length;A++){$.key=A;let O=E(w[A],$),_=vx(O);_&&T?C[C.length-1]+=O:O!==null&&C.push(O),T=_}return $.key=x,C}return function(x,C,T){let A=g[x.type].l;return v?v(()=>A(x,C,T),x,C,T):A(x,C,T)}(w,E,$)}}(p,t.renderRule),S=u(e);return d.length?s("div",null,S,s("footer",{key:"footer"},d.map(function(g){return s("div",{id:r(g.identifier,il),key:g.identifier},g.identifier,b(y(g.footnote,{inline:!0})))}))):S}var h3=e=>{let{children:t,options:r}=e,n=function(o,i){if(o==null)return{};var a,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)i.indexOf(a=u[l])>=0||(s[a]=o[a]);return s}(e,tre);return h.cloneElement(ine(t??"",r),n)},ane=e=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},"@media (forced-colors: active)":{background:"ButtonFace",outline:"1px solid ButtonText"},"&:focus-within":{outline:`1px solid ${e.color.secondary}`,outlineOffset:1,"@media (forced-colors: active)":{outline:"1px solid Highlight",outlineOffset:1}},input:{...my,appearance:"none",left:0,top:0,background:"transparent",cursor:"pointer",borderRadius:"3em"},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:Qe(.5,e.color.defaultText),background:"transparent","&:active":{boxShadow:`${xh(.05,e.appBorderColor)} 0 0 0 2px inset`,color:xh(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8},"@media (forced-colors: active)":{color:"ButtonText",boxShadow:"none"}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${xh(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{forcedColorAdjust:"none",background:"Highlight",color:"HighlightText",boxShadow:"none",outline:"1px solid ButtonText"}}}),lne=R.label(({theme:e})=>ane(e)),sne=e=>e==="true",une=({name:e,storyId:t,value:r,onChange:n,onBlur:o,onFocus:i,argType:a})=>{var d;let l=h.useCallback(()=>n(!1),[n]),s=!!((d=a==null?void 0:a.table)!=null&&d.readonly);if(r===void 0)return m.createElement(ke,{ariaLabel:!1,variant:"outline",size:"medium",id:Md(e,t),onClick:l,disabled:s},"Set boolean");let u=Hr(e,t),c=typeof r=="string"?sne(r):r;return m.createElement(lne,{"aria-disabled":s,htmlFor:u,"aria-label":e},m.createElement("input",{id:u,type:"checkbox",onChange:f=>n(f.target.checked),checked:c,role:"switch",disabled:s,name:e,onBlur:o,onFocus:i}),m.createElement("span",{"aria-hidden":"true"},"False"),m.createElement("span",{"aria-hidden":"true"},"True"))},cne=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},dne=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},fne=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},pne=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},wx=R(gi.Input)(({theme:e})=>({"&[readonly]":{background:e.base==="light"?e.color.lighter:"transparent"},"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}})),hne=R.fieldset({flex:1,display:"flex",border:0,marginInline:0,padding:0,gap:10,"div:first-of-type":{flex:4},"div:last-of-type":{flex:3}}),gne=({name:e,storyId:t,value:r,onChange:n,onFocus:o,onBlur:i,argType:a})=>{var b;let[l,s]=h.useState(!0),u=h.useRef(),c=h.useRef(),d=!!((b=a==null?void 0:a.table)!=null&&b.readonly);h.useEffect(()=>{l!==!1&&(u&&u.current&&(u.current.value=r?fne(r):""),c&&c.current&&(c.current.value=r?pne(r):""))},[r]);let f=S=>{if(!S.target.value)return n();let g=cne(S.target.value),v=new Date(r??"");v.setFullYear(g.getFullYear(),g.getMonth(),g.getDate());let E=v.getTime();E&&n(E),s(!!E)},p=S=>{if(!S.target.value)return n();let g=dne(S.target.value),v=new Date(r??"");v.setHours(g.getHours()),v.setMinutes(g.getMinutes());let E=v.getTime();E&&n(E),s(!!E)},y=Hr(e,t);return m.createElement(hne,null,m.createElement("legend",{className:"sb-sr-only"},e),m.createElement("label",{htmlFor:`${y}-date`,className:"sb-sr-only"},"Date"),m.createElement(wx,{type:"date",max:"9999-12-31",ref:u,id:`${y}-date`,name:`${y}-date`,readOnly:d,onChange:f,onFocus:o,onBlur:i}),m.createElement("label",{htmlFor:`${y}-time`,className:"sb-sr-only"},"Time"),m.createElement(wx,{type:"time",id:`${y}-time`,name:`${y}-time`,ref:c,onChange:p,readOnly:d,onFocus:o,onBlur:i}),l?null:m.createElement("div",null,"invalid"))},mne=R.label({display:"flex"}),yne=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},bne=R(gi.Input)(({theme:e})=>({background:e.base==="light"?e.color.lighter:"transparent"})),vne=({name:e,storyId:t,value:r,onChange:n,min:o,max:i,step:a,onBlur:l,onFocus:s,argType:u})=>{var w;let[c,d]=h.useState(typeof r=="number"?r:""),[f,p]=h.useState(!1),[y,b]=h.useState(null),S=!!((w=u==null?void 0:u.table)!=null&&w.readonly),g=h.useCallback($=>{d($.target.value);let x=parseFloat($.target.value);if(Number.isNaN(x))b(new Error(`'${$.target.value}' is not a number`));else{let C=x;typeof o=="number"&&C<o&&(C=o),typeof i=="number"&&C>i&&(C=i),n(C),b(null),C!==x&&d(String(C))}},[n,b,o,i]),v=h.useCallback(()=>{d("0"),n(0),p(!0)},[p]),E=h.useRef(null);return h.useEffect(()=>{f&&E.current&&E.current.select()},[f]),h.useEffect(()=>{let $=typeof r=="number"?r:"";c!==$&&d($)},[r]),r===void 0?m.createElement(ke,{ariaLabel:!1,variant:"outline",size:"medium",id:Md(e,t),onClick:v,disabled:S},"Set number"):m.createElement(mne,null,m.createElement(bne,{ref:E,id:Hr(e,t),type:"number",onChange:g,size:"flex",placeholder:"Edit number...",value:c,valid:y?"error":void 0,autoFocus:f,readOnly:S,name:e,min:o,max:i,step:a,onFocus:s,onBlur:l}))};const{logger:Ene}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var g3=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},Gm=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],m3=(e,t)=>e&&t&&e.map(r=>t[r]),Sne=R.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({$isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),wne=R.span(({$readOnly:e})=>({opacity:e?.5:1})),xne=R.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),xx=({name:e,storyId:t,options:r,value:n,onChange:o,isInline:i,argType:a})=>{var p;if(!r)return Ene.warn(`Checkbox with no options: ${e}`),m.createElement(m.Fragment,null,"-");let l=Gm(n||[],r),[s,u]=h.useState(l),c=!!((p=a==null?void 0:a.table)!=null&&p.readonly),d=y=>{let b=y.target.value,S=[...s];S.includes(b)?S.splice(S.indexOf(b),1):S.push(b),o(m3(S,r)),u(S)};h.useEffect(()=>{u(Gm(n||[],r))},[n]);let f=Hr(e,t);return m.createElement(Sne,{$isInline:i},m.createElement("legend",{className:"sb-sr-only"},e),Object.keys(r).map((y,b)=>{let S=`${f}-${b}`;return m.createElement(xne,{key:S,htmlFor:S,$readOnly:c},m.createElement("input",{type:"checkbox",disabled:c,id:S,name:S,value:y,onChange:d,checked:s==null?void 0:s.includes(y)}),m.createElement(wne,{$readOnly:c},y))}))};const{logger:$ne}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Cne=R.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),_ne=R.span(({$readOnly:e})=>({opacity:e?.5:1})),Tne=R.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),$x=({name:e,storyId:t,options:r,value:n,onChange:o,isInline:i,argType:a})=>{var c;if(!r)return $ne.warn(`Radio with no options: ${e}`),m.createElement(m.Fragment,null,"-");let l=g3(n,r),s=Hr(e,t),u=!!((c=a==null?void 0:a.table)!=null&&c.readonly);return m.createElement(Cne,{isInline:i},m.createElement("legend",{className:"sb-sr-only"},e),Object.keys(r).map((d,f)=>{let p=`${s}-${f}`;return m.createElement(Tne,{key:p,htmlFor:p,$readOnly:u},m.createElement("input",{type:"radio",id:p,name:s,disabled:u,value:d,onChange:y=>o(r[y.currentTarget.value]),checked:d===l}),m.createElement(_ne,{$readOnly:u},d))}))};const{logger:One}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Ane={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},y3=R.select(Ane,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:"transparent",color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),b3=R.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Rh="Choose option...",Rne=({name:e,storyId:t,value:r,options:n,onChange:o,argType:i})=>{var c;let a=d=>{o(n[d.currentTarget.value])},l=g3(r,n)||Rh,s=Hr(e,t),u=!!((c=i==null?void 0:i.table)!=null&&c.readonly);return m.createElement(b3,null,m.createElement(JT,null),m.createElement("label",{htmlFor:s,className:"sb-sr-only"},e),m.createElement(y3,{disabled:u,id:s,value:l,onChange:a},m.createElement("option",{disabled:l===Rh,key:"no-selection"},Rh),Object.keys(n).map(d=>m.createElement("option",{key:d,value:d},d))))},Dne=({name:e,storyId:t,value:r,options:n,onChange:o,argType:i})=>{var c;let a=d=>{let f=Array.from(d.currentTarget.options).filter(p=>p.selected).map(p=>p.value);o(m3(f,n))},l=Gm(r,n),s=Hr(e,t),u=!!((c=i==null?void 0:i.table)!=null&&c.readonly);return m.createElement(b3,null,m.createElement("label",{htmlFor:s,className:"sb-sr-only"},e),m.createElement(y3,{disabled:u,id:s,multiple:!0,value:l,onChange:a},Object.keys(n).map(d=>m.createElement("option",{key:d,value:d},d))))},Cx=e=>{let{name:t,options:r}=e;return r?e.isMulti?m.createElement(Dne,{...e}):m.createElement(Rne,{...e}):(One.warn(`Select with no options: ${t}`),m.createElement(m.Fragment,null,"-"))},Pne=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,kne={check:xx,"inline-check":xx,radio:$x,"inline-radio":$x,select:Cx,"multi-select":Cx},xi=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?Pne(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},i=kne[t];if(i)return m.createElement(i,{...o});throw new Error(`Unknown options type: ${t}`)},Fne=R.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),Ine=R.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),Lne=R.div({display:"inline"});function v3({children:e,name:t,collapsed:r,keyPath:n,deep:o,...i}){let a=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${a}-trigger`,region:`${a}-region`},s=n.length>0?"li":"div";return m.createElement(Fne,{as:s},m.createElement(Ine,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...i},t," :"),m.createElement(Lne,{role:"group",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var Nne="Error",Mne="Object",Bne="Array",jne="String",Hne="Number",Une="Boolean",zne="Date",Kne="Null",Wne="Undefined",Gne="Function",Vne="Symbol",E3="ADD_DELTA_TYPE",S3="REMOVE_DELTA_TYPE",w3="UPDATE_DELTA_TYPE",P1="value";function Uo(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function x3(e,t){let r=Uo(e),n=Uo(t);return(r==="Function"||n==="Function")&&n!==r}var k1=class extends h.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(i=>i===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:i,inputRefValue:a}=this.state,l={};if(!t){if(!i.value)return;l.key=i.value}l.newValue=r(!1,n,o,l.key,a.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:i,deep:a}=this.props,l=r&&h.cloneElement(r,{onClick:this.onSubmit}),s=n&&h.cloneElement(n,{onClick:e}),u=o(P1,i,a),c=h.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let f=o("key",i,a);d=h.cloneElement(f,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return m.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};k1.defaultProps={onlyValue:!1,addButtonElement:m.createElement("button",null,"+"),cancelButtonElement:m.createElement("button",null,"c")};var $3=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,i=n.length;o(n[i-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:i}=this.state,a=n[e];(t||Promise.resolve.bind(Promise))(e,o,i,a).then(()=>{let l={keyPath:o,deep:i,key:e,oldValue:a,type:S3};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r=[],nextDeep:n}=this.state,{beforeAddAction:o,logger:i}=this.props,a=t.length;(o||Promise.resolve.bind(Promise))(a,r,n,e).then(()=>{t[a]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],t),s({type:E3,keyPath:r,deep:n,key:a,newValue:e})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:i,keyPath:a,nextDeep:l}=this.state,s=i[e];(o||Promise.resolve.bind(Promise))(e,a,l,s,t).then(()=>{i[e]=t,this.setState({data:i});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],i),c({type:w3,keyPath:a,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:i,dataType:a,minusMenuElement:l}=this.props,s=i(e,t,r,n,a),u=l&&h.cloneElement(l,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-collapsed-value"},"[...] ",t.length," ",t.length===1?"item":"items"),!s&&u)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:i}=this.state,{isCollapsed:a,handleRemove:l,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:S,beforeRemoveAction:g,beforeAddAction:v,beforeUpdateAction:E,logger:w,onSubmitValueParser:$}=this.props,x=u(e,t,r,n,c),C=S&&h.cloneElement(S,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new item to the '${String(e)}' array`}),T=b&&h.cloneElement(b,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-not-collapsed-delimiter"},"["),!o&&C,m.createElement("ul",{className:"rejt-not-collapsed-list"},t.map((A,O)=>m.createElement(_f,{key:O,name:O.toString(),data:A,keyPath:r,deep:i,isCollapsed:a,handleRemove:this.handleRemoveItem(O),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:S,beforeRemoveAction:g,beforeAddAction:v,beforeUpdateAction:E,logger:w,onSubmitValueParser:$}))),!x&&o&&m.createElement("div",{className:"rejt-add-form"},m.createElement(k1,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,keyPath:r,deep:n,onSubmitValueParser:$})),m.createElement("span",{className:"rejt-not-collapsed-delimiter"},"]"),!x&&T)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return m.createElement(v3,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};$3.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var C3=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:i}=this.state,{readOnly:a,dataType:l}=this.props,s=a(r,n,o,i,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:i,name:a,deep:l}=this.state;if(!i)return;let s=n(!0,o,l,a,i.value),u={value:s,key:a};(e||Promise.resolve.bind(Promise))(u).then(()=>{x3(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:i,originalValue:a,readOnly:l,dataType:s,textareaElementGenerator:u,minusMenuElement:c,keyPath:d=[]}=this.props,f=null,p=null,y=l(e,a,n,o,s);if(r&&!y){let b=u(P1,d,o,e,a,s),S=h.cloneElement(b,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});f=m.createElement("span",{className:"rejt-edit-form"},S),p=null}else{f=m.createElement("span",{className:"rejt-value",onClick:y?void 0:this.handleEditMode},t);let b=d.at(-1),S=c&&h.cloneElement(c,{onClick:i,className:"rejt-minus-menu","aria-label":`remove the function '${String(e)}'${String(b)?` from '${String(b)}'`:""}`});p=y?null:S}return m.createElement("li",{className:"rejt-value-node"},m.createElement("span",{className:"rejt-name"},e," : "),f,p)}};C3.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};var _f=class extends h.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:i,handleUpdateValue:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:y,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:g,beforeUpdateAction:v,logger:E,onSubmitValueParser:w}=this.props,$=()=>!0,x=Uo(e);switch(x){case Nne:return m.createElement(Vm,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:$,dataType:x,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:y,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:g,beforeUpdateAction:v,logger:E,onSubmitValueParser:w});case Mne:return m.createElement(Vm,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:x,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:y,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:g,beforeUpdateAction:v,logger:E,onSubmitValueParser:w});case Bne:return m.createElement($3,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:x,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:f,textareaElementGenerator:p,minusMenuElement:y,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:g,beforeUpdateAction:v,logger:E,onSubmitValueParser:w});case jne:return m.createElement(Un,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:x,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:w});case Hne:return m.createElement(Un,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:x,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:w});case Une:return m.createElement(Un,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:x,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:w});case zne:return m.createElement(Un,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:$,dataType:x,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:w});case Kne:return m.createElement(Un,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:x,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:w});case Wne:return m.createElement(Un,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:x,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:w});case Gne:return m.createElement(C3,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:x,cancelButtonElement:d,textareaElementGenerator:p,minusMenuElement:y,logger:E,onSubmitValueParser:w});case Vne:return m.createElement(Un,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:$,dataType:x,cancelButtonElement:d,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:w});default:return null}}};_f.defaultProps={keyPath:[],deep:0};var Vm=class extends h.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,i=n.length;o(n[i-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:i,logger:a}=this.props;(i||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:E3,keyPath:n,deep:o,key:e,newValue:t})}).catch(a.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:i}=this.state,a=n[e];(t||Promise.resolve.bind(Promise))(e,o,i,a).then(()=>{let l={keyPath:o,deep:i,key:e,oldValue:a,type:S3};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:i,keyPath:a=[],nextDeep:l}=this.state,s=i[e];(o||Promise.resolve.bind(Promise))(e,a,l,s,t).then(()=>{i[e]=t,this.setState({data:i});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],i),c({type:w3,keyPath:a,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:i,dataType:a,minusMenuElement:l}=this.props,s=Object.getOwnPropertyNames(n),u=i(e,n,t,r,a),c=l&&h.cloneElement(l,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`});return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-collapsed-value"},"{...}"," ",s.length," ",s.length===1?"key":"keys"),!u&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:i}=this.state,{isCollapsed:a,handleRemove:l,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:S,beforeRemoveAction:g,beforeAddAction:v,beforeUpdateAction:E,logger:w,onSubmitValueParser:$}=this.props,x=Object.getOwnPropertyNames(t),C=u(e,t,r,n,c),T=S&&h.cloneElement(S,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new property to the object '${String(e)}'`}),A=b&&h.cloneElement(b,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`}),O=x.map(_=>m.createElement(_f,{key:_,name:_,data:t[_],keyPath:r,deep:o,isCollapsed:a,handleRemove:this.handleRemoveValue(_),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:S,beforeRemoveAction:g,beforeAddAction:v,beforeUpdateAction:E,logger:w,onSubmitValueParser:$}));return m.createElement(m.Fragment,null,m.createElement("span",{className:"rejt-not-collapsed-delimiter"},"{"),!C&&T,m.createElement("ul",{className:"rejt-not-collapsed-list"},O),!C&&i&&m.createElement("div",{className:"rejt-add-form"},m.createElement(k1,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,keyPath:r,deep:n,onSubmitValueParser:$})),m.createElement("span",{className:"rejt-not-collapsed-delimiter"},"}"),!C&&A)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return m.createElement(v3,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};Vm.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var Un=class extends h.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:i}=this.state,{readOnly:a,dataType:l}=this.props,s=a(r,n,o,i,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:i,name:a,deep:l}=this.state;if(!i)return;let s=n(!0,o,l,a,i.value),u={value:s,key:a};(e||Promise.resolve.bind(Promise))(u).then(()=>{x3(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:i,originalValue:a,readOnly:l,dataType:s,inputElementGenerator:u,minusMenuElement:c,keyPath:d}=this.props,f=l(e,a,n,o,s),p=r&&!f,y=u(P1,d,o,e,a,s),b=h.cloneElement(y,{ref:this.refInput,defaultValue:JSON.stringify(a),onKeyDown:this.onKeydown}),S=n.at(-2),g=c&&h.cloneElement(c,{onClick:i,className:"rejt-minus-menu","aria-label":`remove the property '${String(e)}' with value '${String(a)}'${String(S)?` from '${String(S)}'`:""}`});return m.createElement("li",{className:"rejt-value-node"},m.createElement("span",{className:"rejt-name"},e," : "),p?m.createElement("span",{className:"rejt-edit-form"},b):m.createElement("span",{className:"rejt-value",onClick:f?void 0:this.handleEditMode},String(t)),!f&&!p&&g)}};Un.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};function Yne(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var _3=class extends h.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){var r,n;this.setState({data:t}),(n=(r=this.props).onFullyUpdate)==null||n.call(r,t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,addButtonElement:i,cancelButtonElement:a,inputElement:l,textareaElement:s,minusMenuElement:u,plusMenuElement:c,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:p,logger:y,onSubmitValueParser:b,fallback:S=null}=this.props,g=Uo(e),v=o;Uo(o)==="Boolean"&&(v=()=>o);let E=l;l&&Uo(l)!=="Function"&&(E=()=>l);let w=s;return s&&Uo(s)!=="Function"&&(w=()=>s),g==="Object"||g==="Array"?m.createElement("div",{className:"rejt-tree"},m.createElement(_f,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:v,addButtonElement:i,cancelButtonElement:a,inputElementGenerator:E,textareaElementGenerator:w,minusMenuElement:u,plusMenuElement:c,handleRemove:this.removeRoot,beforeRemoveAction:d,beforeAddAction:f,beforeUpdateAction:p,logger:y??{},onSubmitValueParser:b??($=>$)})):S}};_3.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>Yne(o),inputElement:()=>m.createElement("input",null),textareaElement:()=>m.createElement("textarea",null),fallback:null};var{window:qne}=globalThis,Xne=R.div(({theme:e})=>({position:"relative",display:"flex",isolation:"isolate",gap:8,".rejt-tree":{flex:1,marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{color:e.color.secondary,lineHeight:"22px"},".rejt-not-collapsed-list":{listStyle:"none",margin:"0 0 0 1rem",padding:0},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base==="light"?e.color.lighter:"hsl(0 0 100 / 0.02)",borderColor:e.appBorderColor},".rejt-collapsed-value":{color:e.color.defaultText}})),_x=R.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),Tx=R.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),Ox=R.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),Jne=R(ks)({alignSelf:"flex-start",order:2,marginRight:-10}),Qne=R(gi.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Zne={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},eoe=e=>{e.currentTarget.dispatchEvent(new qne.KeyboardEvent("keydown",Zne))},toe=e=>{e.currentTarget.select()},Ax=({name:e,storyId:t,value:r,onChange:n,argType:o})=>{var w;Wd();let i=h.useMemo(()=>r&&Zte(r),[r]),a=i!=null,[l,s]=h.useState(!a),[u,c]=h.useState(null),d=!!((w=o==null?void 0:o.table)!=null&&w.readonly),f=h.useCallback($=>{try{$&&n(JSON.parse($)),c(null)}catch(x){c(x)}},[n]),[p,y]=h.useState(!1),b=h.useCallback(()=>{n({}),y(!0)},[n,y]),S=h.useRef(null);h.useEffect(()=>{p&&S.current&&S.current.select()},[p]);let g=h.useMemo(()=>JSON.stringify(i??"",null,2),[i]);if(!a)return m.createElement(ke,{ariaLabel:!1,disabled:d,id:Md(e,t),onClick:b},"Set object");let v=m.createElement(Qne,{ref:S,id:Hr(e,t),minRows:3,name:e,key:g,defaultValue:g,onBlur:$=>f($.target.value),placeholder:"Edit JSON string...",autoFocus:p,valid:u?"error":void 0,readOnly:d}),E=Array.isArray(r)||typeof r=="object"&&(r==null?void 0:r.constructor)===Object;return m.createElement(Xne,null,E&&m.createElement(Jne,{disabled:d,pressed:l,ariaLabel:`Edit ${e} as JSON`,onClick:$=>{$.preventDefault(),s(x=>!x)},variant:"ghost",padding:"small",size:"small"},m.createElement(n9,null)),l?v:m.createElement(_3,{readOnly:d||!E,isCollapsed:E?void 0:()=>!0,data:i,rootName:e,onFullyUpdate:n,cancelButtonElement:m.createElement(_x,{type:"button"},"Cancel"),addButtonElement:m.createElement(_x,{type:"submit",primary:!0},"Save"),plusMenuElement:m.createElement(Tx,{type:"button"},m.createElement(o9,null)),minusMenuElement:m.createElement(Tx,{type:"button"},m.createElement(i9,null)),inputElement:($,x,C,T)=>T?m.createElement(Ox,{onFocus:toe,onBlur:eoe}):m.createElement(Ox,null),fallback:v}))},roe=R.input(({theme:e,min:t,max:r,value:n,disabled:o})=>{let i={background:e.base==="light"?`linear-gradient(to right,
  660. ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
  661. ${Rl(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
  662. ${Rl(.02,e.input.background)} 100%)`:`linear-gradient(to right,
  663. ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
  664. ${Km(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
  665. ${Km(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},a={borderColor:wa(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${wa(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Rl(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":{...i,color:"transparent"},"&::-moz-range-thumb":{...l,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...l,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...l,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":a,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),T3=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),noe=R(T3)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),ooe=R.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function ioe(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var aoe=({name:e,storyId:t,value:r,onChange:n,min:o=0,max:i=100,step:a=1,onBlur:l,onFocus:s,argType:u})=>{var b;let c=S=>{n(yne(S.target.value))},d=r!==void 0,f=h.useMemo(()=>ioe(a),[a]),p=!!((b=u==null?void 0:u.table)!=null&&b.readonly),y=Hr(e,t);return m.createElement(ooe,{readOnly:p},m.createElement("label",{htmlFor:y,className:"sb-sr-only"},e),m.createElement(T3,null,o),m.createElement(roe,{id:y,type:"range",disabled:p,onChange:c,name:e,min:o,max:i,step:a,onFocus:s,onBlur:l,value:r??o}),m.createElement(noe,{numberOFDecimalsPlaces:f,max:i},d?r.toFixed(f):"--"," / ",i))},loe=R.label({display:"flex"}),soe=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),uoe=({name:e,storyId:t,value:r,onChange:n,onFocus:o,onBlur:i,maxLength:a,argType:l})=>{var y;let s=b=>{n(b.target.value)},u=!!((y=l==null?void 0:l.table)!=null&&y.readonly),[c,d]=h.useState(!1),f=h.useCallback(()=>{n(""),d(!0)},[d]);if(r===void 0)return m.createElement(ke,{ariaLabel:!1,variant:"outline",size:"medium",disabled:u,id:Md(e,t),onClick:f},"Set string");let p=typeof r=="string";return m.createElement(loe,null,m.createElement(gi.Textarea,{id:Hr(e,t),maxLength:a,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:c,valid:p?void 0:"error",name:e,value:p?r:"",onFocus:o,onBlur:i}),a&&m.createElement(soe,{isMaxed:(r==null?void 0:r.length)===a},(r==null?void 0:r.length)??0," / ",a))},coe=R(gi.Input)({padding:10});function doe(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var foe=({onChange:e,name:t,storyId:r,accept:n="image/*",value:o,argType:i})=>{var c;let a=h.useRef(null),l=(c=i==null?void 0:i.control)==null?void 0:c.readOnly;function s(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(p=>URL.createObjectURL(p));e(f),doe(o||[])}h.useEffect(()=>{o==null&&a.current&&(a.current.value="")},[o,t]);let u=Hr(t,r);return m.createElement(m.Fragment,null,m.createElement("label",{htmlFor:u,className:"sb-sr-only"},t),m.createElement(coe,{ref:a,id:u,type:"file",name:t,multiple:!0,disabled:l,onChange:s,accept:n,size:"flex"}))},poe=h.lazy(()=>On(()=>import("./Color-23OOGO2C-_eEjzUwN.js"),__vite__mapDeps([6,1,2,3]),import.meta.url)),hoe=e=>m.createElement(h.Suspense,{fallback:m.createElement("div",null)},m.createElement(poe,{...e})),goe={array:Ax,object:Ax,boolean:une,color:hoe,date:gne,number:vne,check:xi,"inline-check":xi,radio:xi,"inline-radio":xi,select:xi,"multi-select":xi,range:aoe,text:uoe,file:foe},Rx=()=>m.createElement(m.Fragment,null,"-"),moe=({row:e,arg:t,updateArgs:r,isHovered:n,storyId:o})=>{var S;let{key:i,control:a}=e,[l,s]=h.useState(!1),[u,c]=h.useState({value:t});h.useEffect(()=>{l||c({value:t})},[l,t]);let d=h.useCallback(g=>(c({value:g}),r({[i]:g}),g),[r,i]),f=h.useCallback(()=>s(!1),[]),p=h.useCallback(()=>s(!0),[]);if(!a||a.disable){let g=(a==null?void 0:a.disable)!==!0&&((S=e==null?void 0:e.type)==null?void 0:S.name)!=="function";return n&&g?m.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(Rx,null)}let y={name:i,storyId:o,argType:e,value:u.value,onChange:d,onBlur:f,onFocus:p},b=goe[a.type]||Rx;return m.createElement(b,{...y,...a,controlType:a.type})},yoe=R.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:In({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),boe=({tags:e})=>{var i,a;let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:m.createElement(m.Fragment,null,m.createElement(yoe,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",(i=e.deprecated)==null?void 0:i.toString())),r&&t.map(l=>m.createElement("tr",{key:l.name},m.createElement("td",null,m.createElement("code",null,l.name)),m.createElement("td",null,l.description))),o&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,(a=e.returns)==null?void 0:a.description)))))};function voe(e){return[...new Set(e)]}var md=8,Dx=R.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),Eoe=R.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),Soe=R.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),woe=R.span(In,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),xoe=R.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),$oe=R.button(In,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),Coe=R.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),_oe=R(d9)({marginLeft:4}),Toe=R(JT)({marginLeft:4}),Ooe=()=>m.createElement("span",null,"-"),F1=({text:e,simple:t})=>m.createElement(woe,{simple:t},e),Aoe=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return voe(t)},Px=e=>e.slice(0,md).map(t=>m.createElement(F1,{key:t,text:t===""?'""':t})),Roe=e=>e.slice(md).map(t=>m.createElement(F1,{key:t,text:t===""?'""':t})),Doe=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,i]=h.useState(!1),[a,l]=h.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(F1,{text:s});let u=Aoe(s),c=u.length;return c>md?m.createElement(Dx,{isExpanded:a},Px(u),m.createElement(Eoe,{open:a,onToggle:d=>l(d.currentTarget.open)},m.createElement(Soe,null,Roe(u)),m.createElement(xoe,{role:"button"},a?"Show less...":`Show ${c-md} more...`))):m.createElement(Dx,null,Px(u))}return m.createElement(C1,{ariaLabel:"Arg value details",placement:"bottom",visible:o,onVisibleChange:u=>{i(u)},hasCloseButton:!0,popover:m.createElement(Coe,null,m.createElement(Os,{language:"jsx",format:!1},n))},m.createElement($oe,{className:"sbdocs-expandable"},m.createElement("span",null,s),o?m.createElement(_oe,null):m.createElement(Toe,null)))},Dh=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(Ooe,null):m.createElement(Doe,{value:e,initialExpandedArgs:t}),Poe=R.span({fontWeight:"bold"}),koe=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Foe=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...In({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Ioe=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Qe(.1,e.color.defaultText):Qe(.2,e.color.defaultText),marginTop:t?4:0})),Loe=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Qe(.1,e.color.defaultText):Qe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Noe=R.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),Moe=e=>e&&{summary:typeof e=="string"?e:e.name},Fu=e=>{var b;let[t,r]=h.useState(!1),{row:n,updateArgs:o,compact:i,expandable:a,initialExpandedArgs:l}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||Moe(n.type),f=c.defaultValue||n.defaultValue,p=(b=n.type)==null?void 0:b.required,y=u!=null&&u!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(Noe,{expandable:a??!1},m.createElement(Poe,null,s),p?m.createElement(koe,{title:"Required"},"*"):null),i?null:m.createElement("td",null,y&&m.createElement(Foe,null,m.createElement(h3,null,u)),c.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(Loe,{hasDescription:y},m.createElement(Dh,{value:d,initialExpandedArgs:l})),m.createElement(boe,{tags:c.jsDocTags})):m.createElement(Ioe,{hasDescription:y},m.createElement(Dh,{value:d,initialExpandedArgs:l}))),i?null:m.createElement("td",null,m.createElement(Dh,{value:f,initialExpandedArgs:l})),o?m.createElement("td",null,m.createElement(moe,{...e,isHovered:t})):null)},Boe=R.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),joe=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Hoe=({inAddonPanel:e})=>{let[t,r]=h.useState(!0);return h.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(Boe,{inAddonPanel:e},m.createElement(Ns,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:m.createElement(joe,null,e&&m.createElement(m.Fragment,null,m.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(Qg,null)," Read docs")),!e&&m.createElement(ma,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(Qg,null)," Learn how to set that up"))}))},Uoe=R(c9)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Qe(.25,e.color.defaultText):Qe(.3,e.color.defaultText),border:"none",display:"inline-block"})),zoe=R(XT)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Qe(.25,e.color.defaultText):Qe(.3,e.color.defaultText),border:"none",display:"inline-block"})),Koe=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Woe=R.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Qe(.4,e.color.defaultText):Qe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Goe=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Voe=R.td({position:"relative"}),Yoe=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Km(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),kx=R.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),Ph=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[i,a]=h.useState(n),l=e==="subsection"?Goe:Woe,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${i?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return m.createElement(m.Fragment,null,m.createElement(Yoe,{title:c},m.createElement(l,{colSpan:1},m.createElement(kx,{onClick:d=>a(!i),tabIndex:0},c),m.createElement(Koe,null,i?m.createElement(Uoe,null):m.createElement(zoe,null),t)),m.createElement(Voe,{colSpan:o-1},m.createElement(kx,{onClick:d=>a(!i),tabIndex:-1,style:{outline:"none"}},c),i?null:u)),i?r:null)},qoe=R.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Iu=R.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),St=R.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),Ze=R.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Xoe=()=>m.createElement(qoe,null,m.createElement(Iu,null,m.createElement(St,{position:"first"},m.createElement(Ze,{width:"60%"})),m.createElement(St,{position:"second"},m.createElement(Ze,{width:"30%"})),m.createElement(St,{position:"third"},m.createElement(Ze,{width:"60%"})),m.createElement(St,{position:"last"},m.createElement(Ze,{width:"60%"}))),m.createElement(Iu,null,m.createElement(St,{position:"first"},m.createElement(Ze,{width:"60%"})),m.createElement(St,{position:"second"},m.createElement(Ze,{width:"80%"}),m.createElement(Ze,{width:"30%"})),m.createElement(St,{position:"third"},m.createElement(Ze,{width:"60%"})),m.createElement(St,{position:"last"},m.createElement(Ze,{width:"60%"}))),m.createElement(Iu,null,m.createElement(St,{position:"first"},m.createElement(Ze,{width:"60%"})),m.createElement(St,{position:"second"},m.createElement(Ze,{width:"80%"}),m.createElement(Ze,{width:"30%"})),m.createElement(St,{position:"third"},m.createElement(Ze,{width:"60%"})),m.createElement(St,{position:"last"},m.createElement(Ze,{width:"60%"}))),m.createElement(Iu,null,m.createElement(St,{position:"first"},m.createElement(Ze,{width:"60%"})),m.createElement(St,{position:"second"},m.createElement(Ze,{width:"80%"}),m.createElement(Ze,{width:"30%"})),m.createElement(St,{position:"third"},m.createElement(Ze,{width:"60%"})),m.createElement(St,{position:"last"},m.createElement(Ze,{width:"60%"})))),Joe=R.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}},"@media (forced-colors: active)":{tbody:{filter:"none","> tr > *":{borderColor:"CanvasText"}}}}})),Qoe=R.div({position:"relative"}),Zoe=R.div({position:"absolute",right:22,top:10}),eie=R(ke)({margin:"-4px -12px -4px 0"}),tie={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},rie=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,a])=>{let{category:l,subcategory:s}=(a==null?void 0:a.table)||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:i,...a});else{let c=u.subsections[s]||[];c.push({key:i,...a}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:i,...a}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:i,...a})});let n=tie[t],o=i=>n?Object.keys(i).reduce((a,l)=>({...a,[l]:i[l].sort(n)}),{}):i;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,a)=>({...i,[a]:{ungrouped:n?r.sections[a].ungrouped.sort(n):r.sections[a].ungrouped,subsections:o(r.sections[a].subsections)}}),{})}},nie=(e,t,r)=>{try{return SF(e,t,r)}catch(n){return Cte.warn(n.message),!1}},yd=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:i,initialExpandedArgs:a,sort:l="none",isLoading:s,storyId:u}=e;if("error"in e){let{error:w}=e;return m.createElement(o3,null,w," ",m.createElement(ma,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},m.createElement(Qg,null)," Read the docs"))}if(s)return m.createElement(Xoe,null);let{rows:c,args:d,globals:f}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},p=rie(ere(c||{},w=>{var $;return!(($=w==null?void 0:w.table)!=null&&$.disable)&&nie(w,d||{},f||{})}),l),y=p.ungrouped.length===0,b=Object.entries(p.sections).length===0,S=Object.entries(p.ungroupedSubsections).length===0;if(y&&b&&S)return m.createElement(Hoe,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let v=Object.keys(p.sections).length>0,E={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a,storyId:u};return m.createElement(Yy,null,m.createElement(Qoe,null,t&&!s&&r&&m.createElement(Zoe,null,m.createElement(eie,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},m.createElement(h9,null))),m.createElement(Joe,{compact:n,inAddonPanel:o,inTabPanel:i,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement("span",null,"Control")):null)),m.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map(w=>m.createElement(Fu,{key:w.key,row:w,arg:d&&d[w.key],...E})),Object.entries(p.ungroupedSubsections).map(([w,$])=>m.createElement(Ph,{key:w,label:w,level:"subsection",colSpan:g},$.map(x=>m.createElement(Fu,{key:x.key,row:x,arg:d&&d[x.key],expandable:v,...E})))),Object.entries(p.sections).map(([w,$])=>m.createElement(Ph,{key:w,label:w,level:"section",colSpan:g},$.ungrouped.map(x=>m.createElement(Fu,{key:x.key,row:x,arg:d&&d[x.key],...E})),Object.entries($.subsections).map(([x,C])=>m.createElement(Ph,{key:x,label:x,level:"subsection",colSpan:g},C.map(T=>m.createElement(Fu,{key:T.key,row:T,arg:d&&d[T.key],expandable:v,...E}))))))))))},et=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,I1=600,oie=R.h1(({theme:e})=>({...Ue({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${I1}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),iie=R.h2(({theme:e})=>({...Ue({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${I1}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Qe(.25,e.color.defaultText)})),aie=R.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={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"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Qe(.1,e.color.defaultText):Qe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[et("a")]:{...t,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"}},[et("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[et("div")]:t,[et("dl")]:{...t,margin:"16px 0",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}},[et("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[et("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[et("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[et("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[et("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[et("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[et("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[et("img")]:{maxWidth:"100%"},[et("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[et("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[et("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[et("pre")]:{...t,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"}},[et("span")]:{...t,"&.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"}}},[et("table")]:{...t,margin:"16px 0",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}},[et("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),lie=R.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${I1}px)`]:{}})),sie=({children:e,toc:t})=>m.createElement(lie,{className:"sbdocs sbdocs-wrapper"},t,m.createElement(aie,{className:"sbdocs sbdocs-content"},e));const{logger:uie}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var O3=typeof document<"u"?m.useLayoutEffect:()=>{},A3={prefix:String(Math.round(Math.random()*1e10)),current:0},R3=m.createContext(A3),cie=m.createContext(!1),kh=new WeakMap;function die(e=!1){let t=h.useContext(R3),r=h.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=m.__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=kh.get(i);a==null?kh.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,kh.delete(i))}r.current=++t.current}return r.current}function fie(e){let t=h.useContext(R3),r=die(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function pie(e){let t=m.useId(),[r]=h.useState(bie()),n=r?"react-aria":`react-aria${A3.prefix}`;return e||`${n}-${t}`}var hie=typeof m.useId=="function"?pie:fie;function gie(){return!1}function mie(){return!0}function yie(e){return()=>{}}function bie(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(yie,gie,mie):h.useContext(cie)}var vie=!!(typeof window<"u"&&window.document&&window.document.createElement),gc=new Map,yl;typeof FinalizationRegistry<"u"&&(yl=new FinalizationRegistry(e=>{gc.delete(e)}));function Eie(e){let[t,r]=h.useState(e),n=h.useRef(null),o=hie(t),i=h.useRef(null);if(yl&&yl.register(i,o),vie){let a=gc.get(o);a&&!a.includes(n)?a.push(n):gc.set(o,[n])}return O3(()=>{let a=o;return()=>{yl&&yl.unregister(i),gc.delete(a)}},[o]),h.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function Sie(e){if(wie())e.focus({preventScroll:!0});else{let t=xie(e);e.focus(),$ie(t)}}var Lu=null;function wie(){if(Lu==null){Lu=!1;try{document.createElement("div").focus({get preventScroll(){return Lu=!0,!0}})}catch{}}return Lu}function xie(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 $ie(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function L1(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 D3(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 Ms(e){let t=null;return()=>(t==null&&(t=e()),t)}var Ym=Ms(function(){return D3(/^Mac/i)}),Cie=Ms(function(){return D3(/^iPad/i)||Ym()&&navigator.maxTouchPoints>1}),_ie=Ms(function(){return L1(/AppleWebKit/i)&&!Tie()}),Tie=Ms(function(){return L1(/Chrome/i)}),Oie=Ms(function(){return L1(/Firefox/i)});h.createContext({isNative:!0,open:Rie,useHref:e=>e});function bd(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;Oie()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(Ym()?i=!0:a=!0);let u=_ie()&&Ym()&&!Cie()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});bd.isOpening=r,Sie(e),e.dispatchEvent(u),bd.isOpening=!1}bd.isOpening=!1;function Aie(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 Rie(e,t){Aie(e,r=>bd(r,t))}var al=new Map,Fx=new Set;function Ix(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=al.get(n.target);o||(o=new Set,al.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=al.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),al.delete(n.target)),al.size===0)){for(let i of Fx)i();Fx.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Ix():document.addEventListener("DOMContentLoaded",Ix));var Fh;Fh=m.useInsertionEffect;var Ih;typeof document<"u"&&((Ih=m.useInsertionEffect)!==null&&Ih!==void 0||m.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=h.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var ur=globalThis?globalThis.__DOCS_CONTEXT__:h.createContext(null);const{InvalidBlockOfPropError:Die}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function Pie(e,t){let r=kie([e],t);return r&&r[0]}function kie(e,t){let[r,n]=h.useState({});return h.useEffect(()=>{Promise.all(e.map(async o=>{let i=await t.loadStory(o);n(a=>a[o]===i?a:{...a,[o]:i})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var Fie=Symbol("mdxWrappedBlock"),Lx=m.createContext(null),Rt=(e,t)=>{let r=n=>{let o=m.useContext(Lx),i=A1()[e];if(o!=null&&o.has(e)||i===r)return m.createElement(t,{...n});if(i){let a=new Set(o??[]);return a.add(e),m.createElement(Lx.Provider,{value:a},m.createElement(i,{...n}))}return m.createElement(t,{...n})};return r.displayName=e,r[Fie]=!0,r},P3=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Die;return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},Iie=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,i=o.story||{};if(o.disable)return null;if(e.inline??i.inline??!1){let l=e.height??i.height,s=e.autoplay??i.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let a=e.height??i.height??i.iframeHeight??"100px";return{story:t,inline:!1,height:a,primary:!!e.__primary}},Lie=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=h.useContext(ur),r=P3(e,t),n=Pie(r,t);if(!n)return m.createElement(I3,null);let o=Iie(e,n,t);return o?m.createElement(zie,{...o}):null},Nie=Rt("Story",Lie),Tf=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),k3=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),i=new URLSearchParams(o||"");return Object.entries(t).forEach(([a,l])=>{i.set(a,l)}),i.set("id",e),`${n}?${i.toString()}`},{window:Mie}=globalThis,Bie=class extends h.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=Mie.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...i}=this.props;return m.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...i})}},F3=h.createContext({scale:1}),qm=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,jie=e=>{let t=h.useRef(),[r,n]=h.useState(!0),[o,i]=h.useState(),{story:a,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return h.useEffect(()=>{if(!(a&&t.current))return()=>{};let d=t.current,f=c(a,d,{showMain:()=>{},showError:({title:p,description:y})=>i(new Error(`${p} - ${y}`)),showException:p=>i(p)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,a]),o?m.createElement("pre",null,m.createElement(zA,{error:o})):m.createElement(m.Fragment,null,l?m.createElement("style",null,`#${qm(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&m.createElement(I3,null),m.createElement("div",{ref:t,id:`${qm(e)}-inner`,"data-name":a.name}))},Hie=({story:e,height:t="500px"})=>m.createElement("div",{style:{width:"100%",height:t}},m.createElement(F3.Consumer,null,({scale:r})=>m.createElement(Bie,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:k3(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Uie=R.strong(({theme:e})=>({color:e.color.orange})),zie=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?m.createElement(Uie,null,"This story mounts inside of play. Set"," ",m.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):m.createElement("div",{id:qm(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?m.createElement(jie,{...e}):m.createElement(Hie,{...e}))},I3=()=>m.createElement(QR,null),Kie=R(HR)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Lh=R.div({display:"flex",alignItems:"center",gap:4}),Nx=R.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Wie=({isLoading:e,storyId:t,zoom:r,resetZoom:n,onReloadStory:o,...i})=>m.createElement(Kie,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...i},m.createElement(Lh,{key:"left"},e?[1,2,3].map(a=>m.createElement(Nx,{key:a})):m.createElement(m.Fragment,null,o&&m.createElement(ke,{padding:"small",variant:"ghost",key:"reload",onClick:o,ariaLabel:"Reload story"},m.createElement(g9,null)),m.createElement(ke,{padding:"small",variant:"ghost",key:"zoomin",onClick:a=>{a.preventDefault(),r(.8)},ariaLabel:"Zoom in"},m.createElement(Q7,null)),m.createElement(ke,{padding:"small",variant:"ghost",key:"zoomout",onClick:a=>{a.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},m.createElement(Z7,null)),m.createElement(ke,{padding:"small",variant:"ghost",key:"zoomreset",onClick:a=>{a.preventDefault(),n()},ariaLabel:"Reset zoom"},m.createElement(e9,null)))),e?m.createElement(Lh,{key:"right"},m.createElement(Nx,null)):t&&m.createElement(Lh,{key:"right"},m.createElement(ke,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},m.createElement("a",{href:k3(t),target:"_blank",rel:"noopener noreferrer"},m.createElement(u9,null))))),Gie=R.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Vie=R(La)({marginTop:-40,marginBottom:40}),Yie=R(xf)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rl(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Rl(.05,e.background.content)}})),qie=R.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Tf(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function Xie(e){if(h.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var Jie=R(Wie)({position:"absolute",top:0,left:0,right:0,height:40}),Qie=2e3,L3=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:i=!1,isExpanded:a=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,onReloadStory:d,...f})=>{let[p,y]=h.useState(a),[b,S]=h.useState(null),[g,v]=h.useState(1),E=h.useMemo(()=>l?[...l]:[],[l]),w=Eie(),$=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),x=h.useContext(ur),C=h.useCallback(async I=>{let{createCopyToClipboardFunction:L}=await On(async()=>{const{createCopyToClipboardFunction:M}=await Promise.resolve().then(()=>Pee);return{createCopyToClipboardFunction:M}},void 0,import.meta.url);await L()(I)},[]),T=h.useCallback(async()=>{try{await C((o==null?void 0:o.code)??""),S("Copied!")}catch(I){uie.error(I),S("Copy error!")}globalThis.window.setTimeout(()=>S(null),Qie)},[C,o==null?void 0:o.code]),A=Xie(n),O=!!(o&&o.error),_=!!(o&&!o.error);return m.createElement(m.Fragment,null,m.createElement(qie,{withSource:o,withToolbar:i,...f,className:$.join(" ")},i&&m.createElement(Jie,{isLoading:e,border:!0,zoom:I=>v(g*I),resetZoom:()=>v(1),storyId:!e&&A?P3(A,x):void 0,onReloadStory:d}),m.createElement(F3.Provider,{value:{scale:g}},m.createElement(Gie,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},m.createElement(UA.Element,{centered:u==="centered",scale:c?g:1},Array.isArray(n)?n.map((I,L)=>m.createElement("div",{key:L},I)):m.createElement("div",null,n)))),_&&p&&m.createElement("div",{id:w},m.createElement(Yie,{...o,dark:!0,copyable:!1}))),(o||E.length>0)&&m.createElement(Vie,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},O&&m.createElement(ke,{ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},m.createElement(BE,null)," No code available"),_&&m.createElement(m.Fragment,null,m.createElement(ks,{ariaLabel:!1,pressed:p,"aria-expanded":p,"aria-controls":w,onClick:()=>y(!p),variant:"ghost",className:`docblock-code-toggle${p?" docblock-code-toggle--expanded":""}`},m.createElement(BE,null)," ",p?"Hide code":"Show code"),m.createElement(ke,{ariaLabel:!1,variant:"ghost",onClick:T},m.createElement(r9,null)," ",b??"Copy code")),E.map(({title:I,className:L,onClick:M,disabled:U},k)=>m.createElement(ke,{key:k,className:L,onClick:M,disabled:!!U,variant:"ghost"},I))))};R(L3)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Zie=R(XR)({height:"fit-content"}),N3=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return m.createElement(yd,{...r[0][1],...t});let n=r.map(([o,i],a)=>({id:`prop_table_div_${o}`,title:o,children:()=>{let l=a===0?t:{sort:t.sort};return m.createElement(yd,{inTabPanel:!0,key:`prop_table_${o}`,...i,...l})}}));return m.createElement(Zie,{tabs:n})};R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Qe(.4,e.color.defaultText):Qe(.6,e.color.defaultText)}));R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});R.div(Ue,({theme:e})=>({...Tf(e),margin:"25px 0 40px",padding:"30px 20px"}));R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));R.div(({theme:e})=>({color:Qe(.3,e.color.defaultText)}));R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});R.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:Qe(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));R.div({display:"flex",flexDirection:"row"});R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));R.div(({theme:e})=>({...Tf(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});R.div({flex:1,display:"flex",flexDirection:"row"});R.div({display:"flex",alignItems:"flex-start"});R.div({flex:"0 0 30%"});R.div({flex:1});R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:Qe(.3,e.color.defaultText)}));R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));R.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));R.div(({theme:e})=>({...Tf(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});R.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:eae}=__STORYBOOK_MODULE_CORE_EVENTS__;function tae(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",i,a=!0,l=0;function s(O,_){let I=_.appendChild(c(O));if(O.children.length){let L=d(O.isCollapsed);O.children.forEach(M=>{s(M,L)}),I.appendChild(L)}}function u(O,_){let I=d(!1);if(_.forEach(L=>{s(L,I)}),i=O||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),_.length===0?i:i.appendChild(I)}function c(O){let _=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",O.textContent),e.includeHtml&&O.childNodes.length?t.call(O.childNodes,L=>{I.appendChild(L.cloneNode(!0))}):I.textContent=O.textContent,I.setAttribute("href",`${e.basePath}#${O.id}`),I.setAttribute("class",`${e.linkClass+o}node-name--${O.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(I),_}function d(O){let _=e.orderedList?"ol":"ul",I=document.createElement(_),L=e.listClass+o+e.extraListClasses;return O&&(L=L+o+e.collapsibleClass,L=L+o+e.isCollapsedClass),I.setAttribute("class",L),I}function f(){let O=C(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=i.offsetTop),O>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function p(O){let _=0;return O!==null&&(_=O.offsetTop,e.hasInnerContainers&&(_+=p(O.offsetParent))),_}function y(O,_){return O&&O.className!==_&&(O.className=_),O}function b(O,_){var k,F;e.positionFixedSelector&&f();let I=O,L=(k=_==null?void 0:_.target)!=null&&k.getAttribute?(F=_==null?void 0:_.target)==null?void 0:F.getAttribute("href"):null,M=L&&L.charAt(0)==="#"?w(L.replace("#","")):!1,U=a||M;if(_&&l<5&&l++,U&&i&&I.length>0){let P=T(I),B=i.querySelector(`.${e.activeLinkClass}`),D=P.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),z=window.location.hash.replace("#",""),V=D,Z=$();L&&M?V=L.replace("#",""):z&&z!==D&&Z&&(w(D)||l<=2)&&(V=z);let q=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${V}"]`);if(B===q)return;let K=i.querySelectorAll(`.${e.linkClass}`);t.call(K,H=>{y(H,H.className.replace(o+e.activeLinkClass,""))});let X=i.querySelectorAll(`.${e.listItemClass}`);t.call(X,H=>{y(H,H.className.replace(o+e.activeListItemClass,""))}),q&&q.className.indexOf(e.activeLinkClass)===-1&&(q.className+=o+e.activeLinkClass);let ee=q==null?void 0:q.parentNode;ee&&ee.className.indexOf(e.activeListItemClass)===-1&&(ee.className+=o+e.activeListItemClass);let N=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(N,H=>{H.className.indexOf(e.isCollapsedClass)===-1&&(H.className+=o+e.isCollapsedClass)}),q!=null&&q.nextSibling&&q.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&y(q.nextSibling,q.nextSibling.className.replace(o+e.isCollapsedClass,"")),S(q==null?void 0:q.parentNode.parentNode)}}function S(O){return O&&O.className.indexOf(e.collapsibleClass)!==-1&&O.className.indexOf(e.isCollapsedClass)!==-1?(y(O,O.className.replace(o+e.isCollapsedClass,"")),S(O.parentNode.parentNode)):O}function g(O){let _=O.target||O.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(a=!1)}function v(){a=!0}function E(){return a}function w(O){let _=x();return(document==null?void 0:document.getElementById(O)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function $(){let O=x(),_=O.scrollHeight>O.clientHeight,I=C()+O.clientHeight>O.offsetHeight-e.bottomModeThreshold;return _&&I}function x(){let O;return e.scrollContainer&&document.querySelector(e.scrollContainer)?O=document.querySelector(e.scrollContainer):O=document.documentElement||n,O}function C(){var O;return((O=x())==null?void 0:O.scrollTop)||0}function T(O,_=C()){let I;return r.call(O,(L,M)=>{if(p(L)>_+e.headingsOffset+10){let U=M===0?M:M-1;return I=O[U],!0}if(M===O.length-1)return I=O[O.length-1],!0}),I}function A(O){let _=C(),I=T(O,_),L=$();if((!I||_<5)&&!L)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!L){let M=`#${I.id}`;window.location.hash!==M&&window.history.pushState(null,null,M)}}return{enableTocAnimation:v,disableTocAnimation:g,render:u,updateToc:b,getCurrentlyHighlighting:E,getTopHeader:T,getScrollTop:C,updateUrlHashForHeader:A}}var rae={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function nae(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function i(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function a(u,c){let d=i(u),f=d.headingLevel,p=c,y=r(p),b=y?y.headingLevel:0,S=f-b;for(;S>0&&(y=r(p),!(y&&f===y.headingLevel));)y&&y.children!==void 0&&(p=y.children),S--;return f>=e.collapseDepth&&(d.isCollapsed=!0),p.push(d),p}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=i(d);return f&&a(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function oae(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?a(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!i(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||iae(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function i(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(a(s.href)===n||a(s.href)+"#"===n)}function a(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function iae(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),i=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,a=typeof n.duration=="function"?n.duration(i):n.duration,l,s;requestAnimationFrame(function(f){l=f,u(f)});function u(f){s=f-l,window.scrollTo(0,n.easing(s,r,i,a)),s<a?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+i),typeof n.callback=="function"&&n.callback()}function d(f,p,y,b){return f/=b/2,f<1?y/2*f*f+p:(f--,-y/2*(f*(f-2)-1)+p)}}function aae(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var le={},Or,Nh,Oo,Pr,Pl;function M3(e){let t=!1;le=uae(rae,e||{}),le.scrollSmooth&&(le.duration=le.scrollSmoothDuration,le.offset=le.scrollSmoothOffset,oae(le)),Or=tae(le),Nh=nae(le),N1();let r=dae(le);if(r===null)return;let n=B3(le);if(n===null||(Oo=Nh.selectHeadings(r,le.headingSelector),Oo===null))return;let o=Nh.nestHeadingsArray(Oo).nest;if(!le.skipRendering)Or.render(n,o);else return this;let i=!1,a=le.scrollHandlerTimeout||le.throttleTimeout;Pr=((s,u)=>cae(s,u,le.scrollHandlerType))(s=>{var c,d,f;Or.updateToc(Oo,s),!le.disableTocScrollSync&&!i&&aae(le),le.enableUrlHashUpdateOnScroll&&t&&Or.getCurrentlyHighlighting()&&Or.updateUrlHashForHeader(Oo);let u=((d=(c=s==null?void 0:s.target)==null?void 0:c.scrollingElement)==null?void 0:d.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Or.updateToc(Oo),(f=le.scrollEndCallback)==null||f.call(le,s))},a),t||(Pr(),t=!0),window.onhashchange=window.onscrollend=s=>{Pr(s)},le.scrollContainer&&document.querySelector(le.scrollContainer)?(document.querySelector(le.scrollContainer).addEventListener("scroll",Pr,!1),document.querySelector(le.scrollContainer).addEventListener("resize",Pr,!1)):(document.addEventListener("scroll",Pr,!1),document.addEventListener("resize",Pr,!1));let l=null;Pl=Xm(s=>{i=!0,le.scrollSmooth&&Or.disableTocAnimation(s),Or.updateToc(Oo,s),l&&clearTimeout(l),l=setTimeout(()=>{Or.enableTocAnimation()},le.scrollSmoothDuration),setTimeout(()=>{i=!1},le.scrollSmoothDuration+100)},le.throttleTimeout),le.scrollContainer&&document.querySelector(le.scrollContainer)?document.querySelector(le.scrollContainer).addEventListener("click",Pl,!1):document.addEventListener("click",Pl,!1)}function N1(){let e=B3(le);e!==null&&(le.skipRendering||e&&(e.innerHTML=""),le.scrollContainer&&document.querySelector(le.scrollContainer)?(document.querySelector(le.scrollContainer).removeEventListener("scroll",Pr,!1),document.querySelector(le.scrollContainer).removeEventListener("resize",Pr,!1),Or&&document.querySelector(le.scrollContainer).removeEventListener("click",Pl,!1)):(document.removeEventListener("scroll",Pr,!1),document.removeEventListener("resize",Pr,!1),Or&&document.removeEventListener("click",Pl,!1)))}function lae(e){N1(),M3(e||le)}var sae=Object.prototype.hasOwnProperty;function uae(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)sae.call(n,o)&&(t[o]=n[o])}return t}function Xm(e,t,r){t||(t=250);let n,o;return function(...i){let a=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(a,i)},t)):(n=l,e.apply(a,i))}}function Mx(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function cae(e,t,r="auto"){switch(r){case"debounce":return Mx(e,t);case"throttle":return Xm(e,t);default:return t<334?Mx(e,t):Xm(e,t)}}function dae(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function B3(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var fae={destroy:N1,init:M3,refresh:lae},Bx=fae,pae=R.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),hae=R.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),gae=R.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),mae=({headingId:e,title:t})=>typeof t=="string"||!t?m.createElement(gae,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):m.createElement("div",{id:e},t),yae=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:i,channel:a,className:l})=>{h.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&a.emit(eae,`#${f}`)}},...i},c=setTimeout(()=>Bx.init(u),100);return()=>{clearTimeout(c),Bx.destroy()}},[a,t,o,n,r,i]);let s="table-of-contents";return m.createElement(pae,{className:l},t?null:m.createElement(hae,{"aria-labelledby":s},m.createElement(mae,{headingId:s,title:e}),m.createElement("div",{className:"toc-wrapper"})))},bae=e=>`anchor--${e}`,vae=({storyId:e,children:t})=>m.createElement("div",{id:bae(e),className:"sb-anchor"},t);const{InvalidBlockOfPropError:Eae}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:jx}=__STORYBOOK_MODULE_PREVIEW_API__;var yi=(e,t)=>h.useContext(ur).resolveOf(e,t),Sae=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),j3=e=>{if(e)return typeof e=="string"?e.includes("-")?Sae(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function wae(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function H3(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function xae(e){if(e.type==="component"){let{component:i,projectAnnotations:{parameters:a}}=e;return{argTypes:H3(i,a),parameters:a,component:i}}if(e.type==="meta"){let{preparedMeta:{argTypes:i,parameters:a,component:l,subcomponents:s}}=e;return{argTypes:i,parameters:a,component:l,subcomponents:s}}let{story:{argTypes:t,parameters:r,component:n,subcomponents:o}}=e;return{argTypes:t,parameters:r,component:n,subcomponents:o}}var $ae=e=>{var b;let{of:t}=e;if("of"in e&&t===void 0)throw new Eae;let r=yi(t||"meta"),{argTypes:n,parameters:o,component:i,subcomponents:a}=xae(r),l=((b=o==null?void 0:o.docs)==null?void 0:b.argTypes)||{},s=e.include??l.include,u=e.exclude??l.exclude,c=e.sort??l.sort,d=jx(n,s,u);if(!(a&&Object.keys(a||{}).length>0))return m.createElement(yd,{rows:d,sort:c});let f=j3(i)||"Main",p=Object.fromEntries(Object.entries(a||{}).map(([S,g])=>[S,{rows:jx(H3(g,o),s,u),sort:c}])),y={[f]:{rows:d,sort:c},...p};return m.createElement(N3,{tabs:y,sort:c})};Rt("ArgTypes",$ae);const{FORCE_REMOUNT:Cae}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:_ae}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:Tae}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Oae=Object.create,U3=Object.defineProperty,Aae=Object.getOwnPropertyDescriptor,z3=Object.getOwnPropertyNames,Rae=Object.getPrototypeOf,Dae=Object.prototype.hasOwnProperty,ce=(e,t)=>function(){return t||(0,e[z3(e)[0]])((t={exports:{}}).exports,t),t.exports},Pae=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of z3(t))!Dae.call(e,o)&&o!==r&&U3(e,o,{get:()=>t[o],enumerable:!(n=Aae(t,o))||n.enumerable});return e},M1=(e,t,r)=>(r=e!=null?Oae(Rae(e)):{},Pae(!e||!e.__esModule?U3(r,"default",{value:e,enumerable:!0}):r,e)),kae=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],Fae=["detail"];function Iae(e){let t=kae.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of Fae.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var K3=ce({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),Lae=ce({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),Nae=ce({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Mae=ce({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Bae=ce({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),jae=ce({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),B1=ce({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Hae=ce({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),Uae=ce({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),zae=ce({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),Kae=ce({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Wae=ce({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Gae=ce({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Vae=ce({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Yae=ce({"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}}}),qae=ce({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=Yae();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),Xae=ce({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),j1=ce({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=Xae();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),Jae=ce({"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=ce({"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 l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),G3=ce({"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()}}}),V3=ce({"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}}),Y3=ce({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=K3();t.exports=r.getPrototypeOf||null}}),Qae=ce({"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(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},l=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),f,p=function(){if(this instanceof f){var v=c.apply(this,a(d,arguments));return Object(v)===v?v:this}return c.apply(u,a(d,arguments))},y=o(0,c.length-d.length),b=[],S=0;S<y;S++)b[S]="$"+S;if(f=Function("binder","return function ("+s(b,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var g=function(){};g.prototype=c.prototype,f.prototype=new g,g.prototype=null}return f}}}),Of=ce({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=Qae();t.exports=Function.prototype.bind||r}}),H1=ce({"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}}),q3=ce({"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}}),Zae=ce({"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}}),ele=ce({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Of(),n=q3(),o=H1(),i=Zae();t.exports=i||r.call(o,n)}}),X3=ce({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Of(),n=B1(),o=H1(),i=ele();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),tle=ce({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=X3(),n=j1(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?function(s){return l(s==null?s:a(s))}:!1}}),rle=ce({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=V3(),n=Y3(),o=tle();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}}),J3=ce({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Of();t.exports=o.call(r,n)}}),nle=ce({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=K3(),o=Lae(),i=Nae(),a=Mae(),l=Bae(),s=jae(),u=B1(),c=Hae(),d=Uae(),f=zae(),p=Kae(),y=Wae(),b=Gae(),S=Vae(),g=qae(),v=Function,E=function(W){try{return v('"use strict"; return ('+W+").constructor;")()}catch{}},w=j1(),$=Jae(),x=function(){throw new u},C=w?function(){try{return arguments.callee,x}catch{try{return w(arguments,"callee").get}catch{return x}}}():x,T=G3()(),A=rle(),O=Y3(),_=V3(),I=q3(),L=H1(),M={},U=typeof Uint8Array>"u"||!A?r:A(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%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%":v,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!A?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":U,"%TypeError%":u,"%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%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":O,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":S,"%Math.sign%":g,"%Reflect.getPrototypeOf%":_};if(A)try{null.error}catch(W){F=A(A(W)),k["%Error.prototype%"]=F}var F,P=function W(j){var G;if(j==="%AsyncFunction%")G=E("async function () {}");else if(j==="%GeneratorFunction%")G=E("function* () {}");else if(j==="%AsyncGeneratorFunction%")G=E("async function* () {}");else if(j==="%AsyncGenerator%"){var J=W("%AsyncGeneratorFunction%");J&&(G=J.prototype)}else if(j==="%AsyncIteratorPrototype%"){var ne=W("%AsyncGenerator%");ne&&A&&(G=A(ne.prototype))}return k[j]=G,G},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"]},D=Of(),z=J3(),V=D.call(L,Array.prototype.concat),Z=D.call(I,Array.prototype.splice),q=D.call(L,String.prototype.replace),K=D.call(L,String.prototype.slice),X=D.call(L,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,H=function(W){var j=K(W,0,1),G=K(W,-1);if(j==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&j!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var J=[];return q(W,ee,function(ne,de,te,Ce){J[J.length]=te?q(Ce,N,"$1"):de||ne}),J},Y=function(W,j){var G=W,J;if(z(B,G)&&(J=B[G],G="%"+J[0]+"%"),z(k,G)){var ne=k[G];if(ne===M&&(ne=P(G)),typeof ne>"u"&&!j)throw new u("intrinsic "+W+" exists, but is not available. Please file an issue!");return{alias:J,name:G,value:ne}}throw new s("intrinsic "+W+" does not exist!")};t.exports=function(W,j){if(typeof W!="string"||W.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new u('"allowMissing" argument must be a boolean');if(X(/^%?[^%]*%?$/,W)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=H(W),J=G.length>0?G[0]:"",ne=Y("%"+J+"%",j),de=ne.name,te=ne.value,Ce=!1,xe=ne.alias;xe&&(J=xe[0],Z(G,V([0,1],xe)));for(var he=1,ie=!0;he<G.length;he+=1){var Te=G[he],Dt=K(Te,0,1),_r=K(Te,-1);if((Dt==='"'||Dt==="'"||Dt==="`"||_r==='"'||_r==="'"||_r==="`")&&Dt!==_r)throw new s("property names with quotes must have matching quotes");if((Te==="constructor"||!ie)&&(Ce=!0),J+="."+Te,de="%"+J+"%",z(k,de))te=k[de];else if(te!=null){if(!(Te in te)){if(!j)throw new u("base intrinsic for "+W+" exists, but the property is not available.");return}if(w&&he+1>=G.length){var pn=w(te,Te);ie=!!pn,ie&&"get"in pn&&!("originalValue"in pn.get)?te=pn.get:te=te[Te]}else ie=z(te,Te),te=te[Te];ie&&!Ce&&(k[de]=te)}}return te}}}),U1=ce({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=nle(),n=X3(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),ole=ce({"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}}}),Q3=ce({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=U1(),n=ole()(),o=J3(),i=j1(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(p){if(!p||typeof p!="object")return!1;var y=i(p,"lastIndex"),b=y&&o(y,"value");if(!b)return!1;try{l(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",a=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var l,s,u,c,d,f;t.exports=a}}),ile=ce({"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)}}}),ale=ce({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=U1(),n=Q3(),o=r("RegExp.prototype.exec"),i=B1();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),lle=ce({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=U1(),n=r("Object.prototype.toString"),o=G3()(),i=ale();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var a,l,s}}),sle=M1(Q3()),ule=M1(ile()),cle=M1(lle());function dle(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var fle=typeof global=="object"&&global&&global.Object===Object&&global,ple=fle,hle=typeof self=="object"&&self&&self.Object===Object&&self,gle=ple||hle||Function("return this")(),z1=gle,mle=z1.Symbol,$a=mle,Z3=Object.prototype,yle=Z3.hasOwnProperty,ble=Z3.toString,ll=$a?$a.toStringTag:void 0;function vle(e){var t=yle.call(e,ll),r=e[ll];try{e[ll]=void 0;var n=!0}catch{}var o=ble.call(e);return n&&(t?e[ll]=r:delete e[ll]),o}var Ele=vle,Sle=Object.prototype,wle=Sle.toString;function xle(e){return wle.call(e)}var $le=xle,Cle="[object Null]",_le="[object Undefined]",Hx=$a?$a.toStringTag:void 0;function Tle(e){return e==null?e===void 0?_le:Cle:Hx&&Hx in Object(e)?Ele(e):$le(e)}var Ole=Tle,Ux=$a?$a.prototype:void 0;Ux&&Ux.toString;function Ale(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var eD=Ale,Rle="[object AsyncFunction]",Dle="[object Function]",Ple="[object GeneratorFunction]",kle="[object Proxy]";function Fle(e){if(!eD(e))return!1;var t=Ole(e);return t==Dle||t==Ple||t==Rle||t==kle}var Ile=Fle,Lle=z1["__core-js_shared__"],Mh=Lle,zx=function(){var e=/[^.]+$/.exec(Mh&&Mh.keys&&Mh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Nle(e){return!!zx&&zx in e}var Mle=Nle,Ble=Function.prototype,jle=Ble.toString;function Hle(e){if(e!=null){try{return jle.call(e)}catch{}try{return e+""}catch{}}return""}var Ule=Hle,zle=/[\\^$.*+?()[\]{}|]/g,Kle=/^\[object .+?Constructor\]$/,Wle=Function.prototype,Gle=Object.prototype,Vle=Wle.toString,Yle=Gle.hasOwnProperty,qle=RegExp("^"+Vle.call(Yle).replace(zle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xle(e){if(!eD(e)||Mle(e))return!1;var t=Ile(e)?qle:Kle;return t.test(Ule(e))}var Jle=Xle;function Qle(e,t){return e==null?void 0:e[t]}var Zle=Qle;function ese(e,t){var r=Zle(e,t);return Jle(r)?r:void 0}var tD=ese;function tse(e,t){return e===t||e!==e&&t!==t}var rse=tse,nse=tD(Object,"create"),ps=nse;function ose(){this.__data__=ps?ps(null):{},this.size=0}var ise=ose;function ase(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var lse=ase,sse="__lodash_hash_undefined__",use=Object.prototype,cse=use.hasOwnProperty;function dse(e){var t=this.__data__;if(ps){var r=t[e];return r===sse?void 0:r}return cse.call(t,e)?t[e]:void 0}var fse=dse,pse=Object.prototype,hse=pse.hasOwnProperty;function gse(e){var t=this.__data__;return ps?t[e]!==void 0:hse.call(t,e)}var mse=gse,yse="__lodash_hash_undefined__";function bse(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ps&&t===void 0?yse:t,this}var vse=bse;function Ma(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])}}Ma.prototype.clear=ise;Ma.prototype.delete=lse;Ma.prototype.get=fse;Ma.prototype.has=mse;Ma.prototype.set=vse;var Kx=Ma;function Ese(){this.__data__=[],this.size=0}var Sse=Ese;function wse(e,t){for(var r=e.length;r--;)if(rse(e[r][0],t))return r;return-1}var Af=wse,xse=Array.prototype,$se=xse.splice;function Cse(e){var t=this.__data__,r=Af(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$se.call(t,r,1),--this.size,!0}var _se=Cse;function Tse(e){var t=this.__data__,r=Af(t,e);return r<0?void 0:t[r][1]}var Ose=Tse;function Ase(e){return Af(this.__data__,e)>-1}var Rse=Ase;function Dse(e,t){var r=this.__data__,n=Af(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Pse=Dse;function Ba(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])}}Ba.prototype.clear=Sse;Ba.prototype.delete=_se;Ba.prototype.get=Ose;Ba.prototype.has=Rse;Ba.prototype.set=Pse;var kse=Ba,Fse=tD(z1,"Map"),Ise=Fse;function Lse(){this.size=0,this.__data__={hash:new Kx,map:new(Ise||kse),string:new Kx}}var Nse=Lse;function Mse(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Bse=Mse;function jse(e,t){var r=e.__data__;return Bse(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Rf=jse;function Hse(e){var t=Rf(this,e).delete(e);return this.size-=t?1:0,t}var Use=Hse;function zse(e){return Rf(this,e).get(e)}var Kse=zse;function Wse(e){return Rf(this,e).has(e)}var Gse=Wse;function Vse(e,t){var r=Rf(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Yse=Vse;function ja(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])}}ja.prototype.clear=Nse;ja.prototype.delete=Use;ja.prototype.get=Kse;ja.prototype.has=Gse;ja.prototype.set=Yse;var rD=ja,qse="Expected a function";function K1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qse);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(K1.Cache||rD),r}K1.Cache=rD;var Xse=K1,Jse=500;function Qse(e){var t=Xse(e,function(n){return r.size===Jse&&r.clear(),n}),r=t.cache;return t}var Zse=Qse,eue=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tue=/\\(\\)?/g;Zse(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(eue,function(r,n,o,i){t.push(o?i.replace(tue,"$1"):n||r)}),t});var rue=dle,nue=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function nD(e){if(!rue(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Iae(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 oue=function(e){let t,r,n,o;return function(i,a){var l;try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==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 nue.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,sle.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,ule.default)(a))return;if((0,cle.default)(a)){if(!e.allowSymbol)return;let c=Symbol.keyFor(a);return c!==void 0?`_gsymbol_${c}`:`_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((l=a==null?void 0:a.constructor)!=null&&l.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let c=t.get(a);if(!c){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((f,p)=>{try{f[p]=a[p]}catch{}return f},{})};return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${c}`}let u=t.get(a);if(!u){let c=Array.isArray(a)?a:nD(a);return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}catch{return}}},iue={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},aue=(e,t={})=>{let r={...iue,...t};return JSON.stringify(nD(e),oue(r),t.space)};function oD(e){return aue(e,{maxDepth:50})}var W1=h.createContext({sources:{}}),iD="--unknown--",lue=({children:e,channel:t})=>{let[r,n]=h.useState({});return h.useEffect(()=>{let o=(i,a=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof i=="string"?{id:i,source:a,format:l}:i,f=u?oD(u):iD;n(p=>({...p,[s]:{...p[s],[f]:{code:c||"",format:d}}}))};return t.on(eb,o),()=>t.off(eb,o)},[]),m.createElement(W1.Provider,{value:{sources:r}},e)};function sue(e,t,r){let[n,o]=h.useState("Transforming..."),i=t?t==null?void 0:t(e,r):e;return h.useEffect(()=>{async function a(){let l=await i;l!==n&&o(l)}a()}),typeof i=="object"&&typeof i.then=="function"?n:i}var uue={sources:{}},cue=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[oD(t)])||(o==null?void 0:o[iD])||{code:""}},due=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var d;let o=t.parameters??{},{__isArgsStory:i}=o,a=((d=o.docs)==null?void 0:d.source)||{},l=r||a.type||Pf.AUTO,s=l===Pf.DYNAMIC||l===Pf.AUTO&&e&&i?e:a.originalSource||"",u=n??a.transform,c=u?sue(s,u,t):s;return a.code!==void 0?a.code:c},G1=(e,t,r)=>{var p,y;let{of:n}=e,o=h.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),i=o?t.getStoryContext(o):{},a=e.__forceInitialArgs?i.initialArgs:i.unmappedArgs,l=o?cue(o.id,a,r):null,s=due({snippet:l?l.code:"",storyContext:{...i,args:a},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Tae;let u=((y=(p=o==null?void 0:o.parameters)==null?void 0:p.docs)==null?void 0:y.source)||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return e.code===void 0&&!o?{error:"Oh no! The source is not available."}:e.code!==void 0?{code:e.code,format:c,language:d,dark:f}:(c=(l==null?void 0:l.format)??!0,{code:s,format:c,language:d,dark:f})},fue=e=>{let t=h.useContext(W1),r=h.useContext(ur),n=G1(e,r,t);return m.createElement(xf,{...n})},pue=e=>{let t=h.useContext(ur),r=G1(e,t,uue);return m.createElement(xf,{...r})},hue=e=>e.code!==void 0?m.createElement(pue,{...e}):m.createElement(fue,{...e});Rt("Source",hue);var gue=e=>{var y,b,S,g,v,E,w,$,x,C,T,A,O,_;let t=h.useContext(ur),r=h.useContext(W1),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new _ae;let{story:i}=yi(n||"story",["story"]),a=G1({...o,...n&&{of:n}},t,r),l=e.layout??i.parameters.layout??((b=(y=i.parameters.docs)==null?void 0:y.canvas)==null?void 0:b.layout)??"padded",s=e.withToolbar??((g=(S=i.parameters.docs)==null?void 0:S.canvas)==null?void 0:g.withToolbar)??!1,u=e.additionalActions??((E=(v=i.parameters.docs)==null?void 0:v.canvas)==null?void 0:E.additionalActions),c=e.sourceState??(($=(w=i.parameters.docs)==null?void 0:w.canvas)==null?void 0:$.sourceState)??"hidden",d=e.className??((C=(x=i.parameters.docs)==null?void 0:x.canvas)==null?void 0:C.className),f=((T=e.story)==null?void 0:T.inline)??((_=(O=(A=i.parameters)==null?void 0:A.docs)==null?void 0:O.story)==null?void 0:_.inline)??!1,p=h.useCallback(()=>{t.channel.emit(Cae,{storyId:i.id})},[t.channel,i.id]);return m.createElement(L3,{withSource:c==="none"?void 0:a,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f,onReloadStory:f?p:void 0},m.createElement(Nie,{of:n||i.moduleExport,meta:e.meta,...e.story}))},mue=Rt("Canvas",gue);const{filterArgTypes:Wx}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:yue,STORY_ARGS_UPDATED:Gx,UPDATE_STORY_ARGS:bue}=__STORYBOOK_MODULE_CORE_EVENTS__;var vue=(e,t)=>{let r=Eue(e,t);if(!r)throw new Error("No result when story was defined");return r},Eue=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,i]=h.useState(r.args);h.useEffect(()=>{let s=u=>{u.storyId===n&&i(u.args)};return t.channel.on(Gx,s),()=>t.channel.off(Gx,s)},[n,t.channel]);let a=h.useCallback(s=>t.channel.emit(bue,{storyId:n,updatedArgs:s}),[n,t.channel]),l=h.useCallback(s=>t.channel.emit(yue,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,a,l]};const{GLOBALS_UPDATED:Vx}=__STORYBOOK_MODULE_CORE_EVENTS__;var Sue=(e,t)=>{let r=t.getStoryContext(e),[n,o]=h.useState(r.globals);return h.useEffect(()=>{let i=a=>{o(a.globals)};return t.channel.on(Vx,i),()=>t.channel.off(Vx,i)},[t.channel]),[n]};const{Tag:wue}=__STORYBOOK_MODULE_PREVIEW_API__;var aD=()=>h.useContext(ur).componentStories().find(e=>e.tags.includes(wue.AUTODOCS));function xue(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var $ue=e=>{var $;let{of:t}=e,r=h.useContext(ur),n=aD(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let{parameters:i,argTypes:a,component:l,subcomponents:s}=o,u=(($=i.docs)==null?void 0:$.controls)||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[p,y,b]=vue(o,r),[S]=Sue(o,r),g=Wx(a,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(g).length>0||Object.keys(p).length>0?m.createElement(yd,{storyId:o.id,rows:g,sort:f,args:p,globals:S,updateArgs:y,resetArgs:b}):null;let v=j3(l)||"Story",E=Object.fromEntries(Object.entries(s||{}).map(([x,C])=>[x,{rows:Wx(xue(C,i),c,d),sort:f}])),w={[v]:{rows:g,sort:f},...E};return m.createElement(N3,{tabs:w,sort:f,args:p,globals:S,updateArgs:y,resetArgs:b,storyId:o.id})},Cue=Rt("Controls",$ue);const{InvalidBlockOfPropError:_ue}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:Tue}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:lD}=globalThis,sD=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return m.createElement(qy,null,t);let n=e&&e.split("-");return m.createElement(xf,{language:n&&n[1]||"text",format:!1,code:t,...r})};function V1(e,t){e.channel.emit(Tue,t)}var Jm=ZR.a,Oue=({hash:e,children:t})=>{let r=h.useContext(ur);return m.createElement(Jm,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);lD.getElementById(o)&&V1(r,e)}},t)},uD=e=>{let{href:t,target:r,children:n,...o}=e,i=h.useContext(ur);return!t||r==="_blank"||/^https?:\/\//.test(t)?m.createElement(Jm,{...e}):t.startsWith("#")?m.createElement(Oue,{hash:t},n):m.createElement(Jm,{href:t,onClick:a=>{a.button===0&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&(a.preventDefault(),V1(i,a.currentTarget.getAttribute("href")||""))},target:r,...o},n)},cD=["h1","h2","h3","h4","h5","h6"],Aue=cD.reduce((e,t)=>({...e,[t]:R(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),Rue=R.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Due=({as:e,id:t,children:r,...n})=>{let o=h.useContext(ur),i=Aue[e],a=`#${t}`;return m.createElement(i,{id:t,...n},m.createElement(Rue,{"aria-hidden":"true",href:a,tabIndex:-1,target:"_self",onClick:l=>{lD.getElementById(t)&&V1(o,a)}},m.createElement(s9,null)),r)},Y1=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return m.createElement(Due,{as:t,id:r,...o},n);let i=t,{as:a,...l}=e;return m.createElement(i,{...Ie(l,t)})},dD=cD.reduce((e,t)=>({...e,[t]:r=>m.createElement(Y1,{as:t,...r})}),{}),Pue=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(YD`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
  666. This is often caused by not wrapping the child in a template string.
  667. This is invalid:
  668. <Markdown>
  669. # Some heading
  670. A paragraph
  671. </Markdown>
  672. Instead do:
  673. <Markdown>
  674. {\`
  675. # Some heading
  676. A paragraph
  677. \`}
  678. </Markdown>
  679. `);return m.createElement(h3,{...e,options:{forceBlock:!0,overrides:{code:sD,a:uD,...dD,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},kue=Rt("Markdown",Pue),Fue=e=>{var t,r,n,o,i,a,l,s;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:u,component:c}=e.preparedMeta;return((o=(n=u.docs)==null?void 0:n.description)==null?void 0:o.component)||((a=(i=u.docs)==null?void 0:i.extractComponentDescription)==null?void 0:a.call(i,c,{component:c,parameters:u}))||null}case"component":{let{component:u,projectAnnotations:{parameters:c}}=e;return((s=(l=c==null?void 0:c.docs)==null?void 0:l.extractComponentDescription)==null?void 0:s.call(l,u,{component:u,parameters:c}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},Iue=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new _ue;let r=yi(t||"meta"),n=Fue(r);return n?m.createElement(kue,null,n):null},Qm=Rt("Description",Iue),Lue=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Nue=Object.hasOwnProperty,fD=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=Mue(e,t===!0),o=n;for(;Nue.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function Mue(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Lue,"").replace(/ /g,"-"))}var Bue=()=>new fD,q1=h.createContext(null),{document:jue,window:Hue}=globalThis,Uue=({context:e,theme:t,children:r})=>{var i,a,l,s,u;let n=h.useMemo(()=>Bue(),[]),o;try{o=(a=(i=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:i.docs)==null?void 0:a.toc}catch{o=(u=(s=(l=e==null?void 0:e.projectAnnotations)==null?void 0:l.parameters)==null?void 0:s.docs)==null?void 0:u.toc}return h.useEffect(()=>{let c;try{if(c=new URL(Hue.parent.location.toString()),c.hash){let d=jue.getElementById(decodeURIComponent(c.hash.substring(1)));d&&setTimeout(()=>{wae(d)},200)}}catch{}}),m.createElement(q1.Provider,{value:n},m.createElement(ur.Provider,{value:e},m.createElement(lue,{channel:e.channel},m.createElement(hy,{theme:RT(t)},m.createElement(sie,{toc:o?m.createElement(yae,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...o}):null},r)))))},pD=new fD,zue=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return m.createElement(Xy,null,e);let n=(m.useContext(q1)??pD).slug(e.toLowerCase());return m.createElement(Y1,{as:"h2",id:n,...r},e)},Kue=Rt("Heading",zue),Wue=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return m.createElement(Jy,null,e);let r=(m.useContext(q1)??pD).slug(e.toLowerCase());return m.createElement(Y1,{as:"h3",id:r},e)},Gue=Rt("Subheading",Wue),Vue=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{var l,s;let{story:i}=yi(e||"story",["story"]),a=((s=(l=i.parameters.docs)==null?void 0:l.canvas)==null?void 0:s.withToolbar)??r;return m.createElement(vae,{storyId:o?`primary--${i.id}`:i.id},t&&m.createElement(m.Fragment,null,m.createElement(Gue,null,i.name),m.createElement(Qm,{of:e})),m.createElement(mue,{of:e,withToolbar:a,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},hD=Rt("DocsStory",Vue),Yue=()=>{let e=aD();return e?m.createElement(hD,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},que=Rt("Primary",Yue);const{Tag:Yx}=__STORYBOOK_MODULE_PREVIEW_API__;var Xue=R(Kue)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),Jue=({title:e="Stories",includePrimary:t=!0})=>{var l;let{componentStories:r,projectAnnotations:n,getStoryContext:o}=h.useContext(ur),i=r(),{stories:{filter:a}={filter:void 0}}=((l=n.parameters)==null?void 0:l.docs)||{};return a&&(i=i.filter(s=>a(s,o(s)))),i.some(s=>{var u;return(u=s.tags)==null?void 0:u.includes(Yx.AUTODOCS)})&&(i=i.filter(s=>{var u;return((u=s.tags)==null?void 0:u.includes(Yx.AUTODOCS))&&!s.usesMount})),t||(i=i.slice(1)),!i||i.length===0?null:m.createElement(m.Fragment,null,typeof e=="string"?m.createElement(Xue,null,e):e,i.map(s=>s&&m.createElement(hD,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))},Que=Rt("Stories",Jue);const{deprecate:Zue}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{InvalidBlockOfPropError:ece}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var tce="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",rce=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new ece;let n;try{n=yi(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:i}=(n==null?void 0:n.parameters)||{};o&&Zue(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${tce}`);let a=r||(i==null?void 0:i.subtitle)||o;return a?m.createElement(iie,{className:"sbdocs-subtitle sb-unstyled"},a):null},nce=Rt("Subtitle",rce);const{InvalidBlockOfPropError:oce}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var ice=/\s*\/\s*/,ace=e=>{let t=e.trim().split(ice);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},lce=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new oce;let n;try{n=yi(r||"meta",["meta"]).preparedMeta}catch(i){if(t&&i instanceof Error&&!i.message.includes("did you forget to use <Meta of={} />?"))throw i}let o=t||ace((n==null?void 0:n.title)||"");return o?m.createElement(oie,{className:"sbdocs-title sb-unstyled"},o):null},sce=Rt("Title",lce),uce=()=>{let e=yi("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return m.createElement(m.Fragment,null,m.createElement(sce,null),m.createElement(nce,null),m.createElement(Qm,{of:"meta"}),r?m.createElement(Qm,{of:"story"}):null,m.createElement(que,null),m.createElement(Cue,null),r?null:m.createElement(Que,null))};function cce({context:e,docsParameter:t}){let r=t.container||Uue,n=t.page||uce;return m.createElement(r,{context:e,theme:t.theme},m.createElement(n,null))}const{composeConfigs:jce}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:Hce}=__STORYBOOK_MODULE_CHANNELS__,{Preview:Uce,composeConfigs:zce}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:Kce}=__STORYBOOK_MODULE_PREVIEW_API__;var dce=e=>m.createElement("div",{...e,className:"sb-unstyled"});Rt("Unstyled",dce);var fce=({children:e})=>m.createElement("div",{style:{fontFamily:"sans-serif"}},e);Rt("Wrapper",fce);var gD={code:sD,a:uD,...dD},pce=class extends h.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:m.createElement(m.Fragment,null,t)}},hce=class{constructor(){this.render=async(e,t,r)=>{let n={...gD,...t==null?void 0:t.components},o=cce;return new Promise((i,a)=>{On(async()=>{const{MDXProvider:l}=await Promise.resolve().then(()=>$te);return{MDXProvider:l}},void 0,import.meta.url).then(({MDXProvider:l})=>W6(m.createElement(pce,{showException:a,key:Math.random()},m.createElement(l,{components:n},m.createElement(o,{context:e,docsParameter:t}))),r)).then(()=>i())})},this.unmount=e=>{G6(e)}}};const Wce=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:hce,defaultComponents:gD},Symbol.toStringTag,{value:"Module"}));export{ME as $,m7 as A,ke as B,Wce as D,gi as F,BE as M,C1 as P,m as R,Ey as S,mt as _,_ce as a,aT as b,J7 as c,gr as d,h as e,ai as f,Hr as g,ly as l,Oa as r,R as s};