@narmi/design_system 4.48.1 → 4.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.map +1 -1
- package/dist/tokens/css/rgbColors.css +1 -1
- package/dist/tokens/css/rgbColors.scss +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.scss +1 -1
- package/dist/tokens/js/colors.esm.js +1 -1
- package/dist/tokens/js/colors.js +1 -1
- package/dist/tokens/js/manifest.esm.js +1 -1
- package/dist/tokens/js/manifest.js +1 -1
- package/dist/tokens/js/reactNativeWeb.js +1 -1
- package/dist/types/Chip/index.d.ts +3 -1
- package/dist/types/Chip/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
73
|
*/var P9;function xv(){return P9||(P9=1,process.env.NODE_ENV!=="production"&&function(){var n=60103,t=60106,e=60107,r=60108,i=60114,o=60109,s=60110,a=60112,l=60113,u=60120,d=60115,f=60116,h=60121,p=60122,m=60117,v=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var I=Symbol.for;n=I("react.element"),t=I("react.portal"),e=I("react.fragment"),r=I("react.strict_mode"),i=I("react.profiler"),o=I("react.provider"),s=I("react.context"),a=I("react.forward_ref"),l=I("react.suspense"),u=I("react.suspense_list"),d=I("react.memo"),f=I("react.lazy"),h=I("react.block"),p=I("react.server.block"),m=I("react.fundamental"),I("react.scope"),I("react.opaque.id"),v=I("react.debug_trace_mode"),I("react.offscreen"),b=I("react.legacy_hidden")}var g=!1;function M(te){return!!(typeof te=="string"||typeof te=="function"||te===e||te===i||te===v||te===r||te===l||te===u||te===b||g||typeof te=="object"&&te!==null&&(te.$$typeof===f||te.$$typeof===d||te.$$typeof===o||te.$$typeof===s||te.$$typeof===a||te.$$typeof===m||te.$$typeof===h||te[0]===p))}function y(te){if(typeof te=="object"&&te!==null){var Y=te.$$typeof;switch(Y){case n:var fe=te.type;switch(fe){case e:case i:case r:case l:case u:return fe;default:var re=fe&&fe.$$typeof;switch(re){case s:case a:case f:case d:case o:return re;default:return Y}}case t:return Y}}}var x=s,w=o,z=n,A=a,C=e,B=f,E=d,L=t,F=i,$=r,X=l,_=!1,H=!1;function W(te){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(te){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(te){return y(te)===s}function O(te){return y(te)===o}function k(te){return typeof te=="object"&&te!==null&&te.$$typeof===n}function V(te){return y(te)===a}function U(te){return y(te)===e}function G(te){return y(te)===f}function R(te){return y(te)===d}function ee(te){return y(te)===t}function Q(te){return y(te)===i}function D(te){return y(te)===r}function oe(te){return y(te)===l}ze.ContextConsumer=x,ze.ContextProvider=w,ze.Element=z,ze.ForwardRef=A,ze.Fragment=C,ze.Lazy=B,ze.Memo=E,ze.Portal=L,ze.Profiler=F,ze.StrictMode=$,ze.Suspense=X,ze.isAsyncMode=W,ze.isConcurrentMode=N,ze.isContextConsumer=T,ze.isContextProvider=O,ze.isElement=k,ze.isForwardRef=V,ze.isFragment=U,ze.isLazy=G,ze.isMemo=R,ze.isPortal=ee,ze.isProfiler=Q,ze.isStrictMode=D,ze.isSuspense=oe,ze.isValidElementType=M,ze.typeOf=y}()),ze}var k9;function Iv(){return k9||(k9=1,process.env.NODE_ENV==="production"?yn.exports=Mv():yn.exports=xv()),yn.exports}var V4,z9;function Ev(){if(z9)return V4;z9=1;var n=mn(),t=It(),e=v9(),r=n.boolean,i=n.number,o=n.spaceSeparated,s=n.commaSeparated,a=n.commaOrSpaceSeparated;return V4=t({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:e,properties:{about:a,accentHeight:i,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:i,amplitude:i,arabicForm:null,ascent:i,attributeName:null,attributeType:null,azimuth:i,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:i,by:null,calcMode:null,capHeight:i,className:o,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:i,diffuseConstant:i,direction:null,display:null,dur:null,divisor:i,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:i,enableBackground:null,end:null,event:null,exponent:i,externalResourcesRequired:null,fill:null,fillOpacity:i,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:s,g2:s,glyphName:s,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:i,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:i,horizOriginX:i,horizOriginY:i,id:null,ideographic:i,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:i,k:i,k1:i,k2:i,k3:i,k4:i,kernelMatrix:a,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:i,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:i,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:i,overlineThickness:i,paintOrder:null,panose1:null,path:null,pathLength:i,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:o,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:i,pointsAtY:i,pointsAtZ:i,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:a,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:a,rev:a,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:a,requiredFeatures:a,requiredFonts:a,requiredFormats:a,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:i,specularExponent:i,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:i,strikethroughThickness:i,string:null,stroke:null,strokeDashArray:a,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:i,strokeOpacity:i,strokeWidth:null,style:null,surfaceScale:i,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:a,tabIndex:i,tableValues:null,target:null,targetX:i,targetY:i,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:a,to:null,transform:null,u1:null,u2:null,underlinePosition:i,underlineThickness:i,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:i,values:null,vAlphabetic:i,vMathematical:i,vectorEffect:null,vHanging:i,vIdeographic:i,version:null,vertAdvY:i,vertOriginX:i,vertOriginY:i,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:i,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),V4}var q4,$9;function wv(){if($9)return q4;$9=1;var n=t9(),t=d9(),e=p9(),r=b9(),i=x9(),o=Ev();return q4=n([e,t,r,i,o]),q4}var j4,T9;function Sv(){if(T9)return j4;T9=1;var n=r9(),t=l9(),e=o9(),r="data";j4=a;var i=/^data[-\w.:]+$/i,o=/-[a-z]/g,s=/[A-Z]/g;function a(h,p){var m=n(p),v=p,b=e;return m in h.normal?h.property[h.normal[m]]:(m.length>4&&m.slice(0,4)===r&&i.test(p)&&(p.charAt(4)==="-"?v=l(p):p=u(p),b=t),new b(v,p))}function l(h){var p=h.slice(5).replace(o,f);return r+p.charAt(0).toUpperCase()+p.slice(1)}function u(h){var p=h.slice(4);return o.test(p)?h:(p=p.replace(s,d),p.charAt(0)!=="-"&&(p="-"+p),r+p)}function d(h){return"-"+h.toLowerCase()}function f(h){return h.charAt(1).toUpperCase()}return j4}const Cv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var bn={},D9;function Pv(){if(D9)return bn;D9=1,bn.parse=r,bn.stringify=i;var n="",t=" ",e=/[ \t\n\r\f]+/g;function r(o){var s=String(o||n).trim();return s===n?[]:s.split(e)}function i(o){return o.join(t).trim()}return bn}var Mn={},O9;function kv(){if(O9)return Mn;O9=1,Mn.parse=r,Mn.stringify=i;var n=",",t=" ",e="";function r(o){for(var s=[],a=String(o||e),l=a.indexOf(n),u=0,d=!1,f;!d;)l===-1&&(l=a.length,d=!0),f=a.slice(u,l).trim(),(f||!d)&&s.push(f),u=l+1,l=a.indexOf(n,u);return s}function i(o,s){var a=s||{},l=a.padLeft===!1?e:t,u=a.padRight?t:e;return o[o.length-1]===e&&(o=o.concat(e)),o.join(u+n+l).trim()}return Mn}var U4,_9;function zv(){if(_9)return U4;_9=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,e=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
74
74
|
`,u="/",d="*",f="",h="comment",p="declaration";U4=function(v,b){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];b=b||{};var I=1,g=1;function M(F){var $=F.match(t);$&&(I+=$.length);var X=F.lastIndexOf(l);g=~X?F.length-X:g+F.length}function y(){var F={line:I,column:g};return function($){return $.position=new x(F),A(),$}}function x(F){this.start=F,this.end={line:I,column:g},this.source=b.source}x.prototype.content=v;function w(F){var $=new Error(b.source+":"+I+":"+g+": "+F);if($.reason=F,$.filename=b.source,$.line=I,$.column=g,$.source=v,!b.silent)throw $}function z(F){var $=F.exec(v);if($){var X=$[0];return M(X),v=v.slice(X.length),$}}function A(){z(e)}function C(F){var $;for(F=F||[];$=B();)$!==!1&&F.push($);return F}function B(){var F=y();if(!(u!=v.charAt(0)||d!=v.charAt(1))){for(var $=2;f!=v.charAt($)&&(d!=v.charAt($)||u!=v.charAt($+1));)++$;if($+=2,f===v.charAt($-1))return w("End of comment missing");var X=v.slice(2,$-2);return g+=2,M(X),v=v.slice($),g+=2,F({type:h,comment:X})}}function E(){var F=y(),$=z(r);if($){if(B(),!z(i))return w("property missing ':'");var X=z(o),_=F({type:p,property:m($[0].replace(n,f)),value:X?m(X[0].replace(n,f)):f});return z(s),_}}function L(){var F=[];C(F);for(var $;$=E();)$!==!1&&(F.push($),C(F));return F}return A(),L()};function m(v){return v?v.replace(a,f):f}return U4}var W4,N9;function $v(){if(N9)return W4;N9=1;var n=zv();function t(e,r){var i=null;if(!e||typeof e!="string")return i;for(var o,s=n(e),a=typeof r=="function",l,u,d=0,f=s.length;d<f;d++)o=s[d],l=o.property,u=o.value,a?r(l,u,o):u&&(i||(i={}),i[l]=u);return i}return W4=t,W4}var A9;function Tv(){if(A9)return gn;A9=1;const n=c,t=Iv(),e=wv(),r=Sv(),i=Cv,o=Pv(),s=kv(),a=$v();gn.hastToReact=f,gn.hastChildrenToReact=d;const l={}.hasOwnProperty,u=new Set(["table","thead","tbody","tfoot","tr"]);function d(g,M){const y=[];let x=-1,w;for(;++x<M.children.length;)w=M.children[x],w.type==="element"?y.push(f(g,w,x,M)):w.type==="text"?(M.type!=="element"||!u.has(M.tagName)||w.value!==`
|
|
75
|
-
`)&&y.push(w.value):w.type==="raw"&&!g.options.skipHtml&&y.push(w.value);return y}function f(g,M,y,x){const w=g.options,z=g.schema,A=M.tagName,C={};let B=z,E;if(z.space==="html"&&A==="svg"&&(B=e,g.schema=B),M.properties)for(E in M.properties)l.call(M.properties,E)&&m(C,E,M.properties[E],g);(A==="ol"||A==="ul")&&g.listDepth++;const L=d(g,M);(A==="ol"||A==="ul")&&g.listDepth--,g.schema=z;const F=M.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},$=w.components&&l.call(w.components,A)?w.components[A]:A,X=typeof $=="string"||$===n.Fragment;if(!t.isValidElementType($))throw new TypeError(`Component for name \`${A}\` not defined or is not renderable`);if(C.key=[A,F.start.line,F.start.column,y].join("-"),A==="a"&&w.linkTarget&&(C.target=typeof w.linkTarget=="function"?w.linkTarget(C.href,M.children,C.title):w.linkTarget),A==="a"&&w.transformLinkUri&&(C.href=w.transformLinkUri(C.href,M.children,C.title)),!X&&A==="code"&&x.type==="element"&&x.tagName!=="pre"&&(C.inline=!0),!X&&(A==="h1"||A==="h2"||A==="h3"||A==="h4"||A==="h5"||A==="h6")&&(C.level=parseInt(A.charAt(1),10)),A==="img"&&w.transformImageUri&&(C.src=w.transformImageUri(C.src,C.alt,C.title)),!X&&A==="li"&&x.type==="element"){const _=h(M);C.checked=_&&_.properties?!!_.properties.checked:null,C.index=p(x,M),C.ordered=x.tagName==="ol"}return!X&&(A==="ol"||A==="ul")&&(C.ordered=A==="ol",C.depth=g.listDepth),(A==="td"||A==="th")&&(C.align&&(C.style||(C.style={}),C.style.textAlign=C.align,delete C.align),X||(C.isHeader=A==="th")),!X&&A==="tr"&&x.type==="element"&&(C.isHeader=x.tagName==="thead"),w.sourcePos&&(C["data-sourcepos"]=I(F)),!X&&w.rawSourcePos&&(C.sourcePosition=M.position),!X&&w.includeElementIndex&&(C.index=p(x,M),C.siblingCount=p(x)),X||(C.node=M),L.length>0?n.createElement($,C,L):n.createElement($,C)}function h(g){let M=-1;for(;++M<g.children.length;){const y=g.children[M];if(y.type==="element"&&y.tagName==="input")return y}return null}function p(g,M){let y=-1,x=0;for(;++y<g.children.length&&g.children[y]!==M;)g.children[y].type==="element"&&x++;return x}function m(g,M,y,x){const w=r(x.schema,M);let z=y;z==null||z!==z||(z&&typeof z=="object"&&"length"in z&&(z=(w.commaSeparated?s:o).stringify(z)),w.property==="style"&&typeof z=="string"&&(z=v(z)),w.space&&w.property?g[l.call(i,w.property)?i[w.property]:w.property]=z:w.attribute&&(g[w.attribute]=z))}function v(g){const M={};try{a(g,y)}catch{}return M;function y(x,w){const z=x.slice(0,4)==="-ms-"?`ms-${x.slice(4)}`:x;M[z.replace(/-([a-z])/g,b)]=w}}function b(g,M){return M.toUpperCase()}function I(g){return[g.start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(M=>String(M)).join("")}return gn}var Y4,F9;function Dv(){if(F9)return Y4;F9=1;const n=c,t=ys(),e=Yp(),r=Kh(),i=hv(),o=W0(),s=gv(),a=yv(),l=bv(),u=Tv().hastChildrenToReact;Y4=p;const d={}.hasOwnProperty,f="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function p(m){for(const M in h)if(d.call(h,M)&&d.call(m,M)){const y=h[M];console.warn(`[react-markdown] Warning: please ${y.to?`use \`${y.to}\` instead of`:"remove"} \`${M}\` (see <${f}#${y.id}> for more info)`),delete h[M]}const v=e().use(r).use(m.remarkPlugins||m.plugins||[]).use(i,{allowDangerousHtml:!0}).use(m.rehypePlugins||[]).use(a,m);let b;typeof m.children=="string"?b=t(m.children):(m.children!==void 0&&m.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${m.children}\`)`),b=t());const I=v.runSync(v.parse(b),b);if(I.type!=="root")throw new TypeError("Expected a `root` node");let g=n.createElement(n.Fragment,{},u({options:m,schema:s,listDepth:0},I));return m.className&&(g=n.createElement("div",{className:m.className},g)),g}return p.defaultProps={transformLinkUri:l},p.propTypes={children:o.string,className:o.string,allowElement:o.func,allowedElements:o.arrayOf(o.string),disallowedElements:o.arrayOf(o.string),unwrapDisallowed:o.bool,remarkPlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),rehypePlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),sourcePos:o.bool,rawSourcePos:o.bool,skipHtml:o.bool,includeElementIndex:o.bool,transformLinkUri:o.oneOfType([o.func,o.bool]),linkTarget:o.oneOfType([o.func,o.string]),transformImageUri:o.func,components:o.object},p.uriTransformer=l,Y4}var Ov=Dv();const _v=O0(Ov);function R4(){return R4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},R4.apply(null,arguments)}const Nv=({label:n,markdownLabel:t,onChange:e=()=>{},id:r,name:i,defaultChecked:o,checked:s,disabled:a=!1,indeterminate:l=!1,value:u,hasError:d,error:f,kind:h="normal",testId:p,...m})=>{const v=c.useRef(null),b=s!==void 0,[I,g]=c.useState(b?s:o||!1),[M,y]=c.useState(!1),x=h==="card",w=({href:B,children:E})=>c.createElement("a",{href:B,target:"_blank",rel:"noreferrer"},E);c.useEffect(()=>{b&&g(s),v.current&&(v.current.indeterminate=l)},[s,l]);const z=B=>{b||g(E=>!E),e(B)},A=()=>{y(!0)},C=()=>{y(!1)};return c.createElement("div",{className:`nds-checkbox-container nds-checkbox-container--${h}`},c.createElement("label",{className:ae([`nds-checkbox nds-checkbox--${h}`,"fontWeight--default",{"nds-checkbox--checked":I||l,"nds-checkbox--disabled":a,"nds-checkbox--focused":M,"padding--y--xl padding--x rounded--all border--all":x}])},c.createElement("span",{className:ae([{"narmi-icon-check":!l,"narmi-icon-minus":l,error:d||!!f}])}),c.createElement("div",{className:"nds-checkbox-label"},t&&c.createElement(_v,{components:{a:function({href:B,children:E}){return w({href:B,children:E})}}},t),!t&&c.createElement(c.Fragment,null,n)),c.createElement("input",R4({ref:v,onFocus:A,onBlur:C,onChange:z,checked:I,defaultChecked:o,disabled:a,name:i,id:r&&r.toString(),value:u,"data-testid":p},m,{type:"checkbox"}))),c.createElement(D1,{marginTop:"xs",error:f}))},L9=({value:n,kind:t="theme"})=>c.createElement("div",{role:"status",className:ae(["nds-count",`nds-count--${t}`])},n),Av=({label:n,kind:t="primary",count:e,onDismiss:r,onClick:i,startIcon:o,endIcon:s})=>{const a=typeof i=="function",l=!a&&typeof r=="function",u=t==="primary"||t==="secondary"?"theme":t;return c.createElement(bt,{elementType:a?"button":"div",onClick:a?i:void 0,type:a?"button":void 0,className:ae(["nds-chip","fontSize--s",`nds-chip--${t}`,`fontColor--${t}`,{"button--reset":a,"nds-chip--button":a}])},c.createElement(de,{alignItems:"center",gapSize:"xs"},o&&c.createElement(de.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${o}`])})),c.createElement(de.Item,{shrink:!0},c.createElement("div",{className:"nds-chip-label whiteSpace--truncate"},n)),e&&c.createElement(de.Item,{shrink:!0},c.createElement(L9,{kind:u,value:e})),s&&c.createElement(de.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${s}`])})),l&&c.createElement(de.Item,{shrink:!0},c.createElement("button",{onClick:r,"aria-label":"Remove chip",className:ae(["nds-chip-dismiss","nds-chip-icon","button--reset",`fontColor--${t}`])},c.createElement("span",{className:"narmi-icon-x"})))))};function G4(){return G4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},G4.apply(null,arguments)}const Fv=({kind:n="plain",paddingSize:t="l",onClick:e=()=>{},isSelected:r=!1,children:i,testId:o,radiusSize:s="s",error:a,disabled:l=!1})=>{const u=["interactive","toggle","button"].some(h=>n===h),d=u&&n!=="button",f=()=>{const h={};return u&&(h.role="button",h.tabIndex="0",a||(h.onClick=e,h.onKeyUp=p=>{const{key:m}=p;(m==="Enter"||m===" ")&&e(p)})),d&&(h["aria-pressed"]=r),h};return c.createElement(c.Fragment,null,c.createElement("div",G4({"data-testid":o||"ndsContentCard",className:ae(["nds-contentCard",`nds-contentCard--${n}`,`padding--all--${t}`,`rounded--all--${s} bgColor--white`,{"button--reset":u,"nds-contentCard--error":u&&a,"nds-contentCard--disabled":l}])},f()),i),a&&c.createElement(D1,{error:a,marginTop:"s"}))},Fe=typeof document<"u"?c.useLayoutEffect:()=>{};var X4;const Lv=(X4=c.useInsertionEffect)!==null&&X4!==void 0?X4:Fe;function Ge(n){const t=c.useRef(null);return Lv(()=>{t.current=n},[n]),c.useCallback((...e)=>{const r=t.current;return r?.(...e)},[])}function Kv(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Ge(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():e(s.value)});Fe(()=>{r.current&&i()});let o=Ge(s=>{r.current=s(t),i()});return[t,o]}const xn={prefix:String(Math.round(Math.random()*1e10)),current:0},K9=c.createContext(xn),Bv=c.createContext(!1);let Hv=!!(typeof window<"u"&&window.document&&window.document.createElement),J4=new WeakMap;function Vv(n=!1){let t=c.useContext(K9),e=c.useRef(null);if(e.current===null&&!n){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let s=J4.get(o);s==null?J4.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,J4.delete(o))}e.current=++t.current}return e.current}function qv(n){let t=c.useContext(K9);t===xn&&!Hv&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let e=Vv(!!n),r=t===xn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return n||`${r}-${e}`}function jv(n){let t=c.useId(),[e]=c.useState(In()),r=e||process.env.NODE_ENV==="test"?"react-aria":`react-aria${xn.prefix}`;return n||`${r}-${t}`}const Uv=typeof c.useId=="function"?jv:qv;function Wv(){return!1}function Yv(){return!0}function Rv(n){return()=>{}}function In(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Rv,Wv,Yv):c.useContext(Bv)}let Gv=!!(typeof window<"u"&&window.document&&window.document.createElement),Et=new Map,l6;typeof FinalizationRegistry<"u"&&(l6=new FinalizationRegistry(n=>{Et.delete(n)}));function I1(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Uv(t),o=c.useRef(null);if(l6&&l6.register(o,i),Gv){const s=Et.get(i);s&&!s.includes(r)?s.push(r):Et.set(i,[r])}return Fe(()=>{let s=i;return()=>{l6&&l6.unregister(o),Et.delete(s)}},[i]),c.useEffect(()=>{let s=r.current;return s&&e(s),()=>{s&&(r.current=null)}}),i}function Xv(n,t){if(n===t)return n;let e=Et.get(n);if(e)return e.forEach(i=>i.current=t),t;let r=Et.get(t);return r?(r.forEach(i=>i.current=n),n):t}function Q4(n=[]){let t=I1(),[e,r]=Kv(t),i=c.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Fe(i,[t,i,...n]),e}function Z4(...n){return(...t)=>{for(let e of n)typeof e=="function"&&e(...t)}}const Pe=n=>{var t;return(t=n?.ownerDocument)!==null&&t!==void 0?t:document},d1=n=>n&&"window"in n&&n.window===n?n:Pe(n).defaultView||window;function Jv(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function Qv(n){return Jv(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let Zv=!1;function En(){return Zv}function Ne(n,t){if(!En())return t&&n?n.contains(t):!1;if(!n||!t)return!1;let e=t;for(;e!==null;){if(e===n)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:Qv(e)?e=e.host:e=e.parentNode}return!1}const Xe=(n=document)=>{var t;if(!En())return n.activeElement;let e=n.activeElement;for(;e&&"shadowRoot"in e&&(!((t=e.shadowRoot)===null||t===void 0)&&t.activeElement);)e=e.shadowRoot.activeElement;return e};function xe(n){return En()&&n.target.shadowRoot&&n.composedPath?n.composedPath()[0]:n.target}class em{get currentNode(){return this._currentNode}set currentNode(t){if(!Ne(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const e=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});e.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=s.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});e.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=e}get doc(){return this._doc}firstChild(){let t=this.currentNode,e=this.nextNode();return Ne(t,e)?(e&&(this.currentNode=e),e):(this.currentNode=t,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var e;let i;if(typeof this.filter=="function"?i=this.filter(t):!((e=this.filter)===null||e===void 0)&&e.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const e=t.previousNode();if(e){if(e.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return e&&(this.currentNode=e),e;let s=this.lastChild();return s&&(this.currentNode=s),s}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,e,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=e,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=e,this._walkerStack.unshift(t.createTreeWalker(e,r,this._acceptNode));const o=e.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function tm(n,t,e,r){return En()?new em(n,t,e,r):n.createTreeWalker(t,e,r)}function B9(n){var t,e,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(t=0;t<i;t++)n[t]&&(e=B9(n[t]))&&(r&&(r+=" "),r+=e)}else for(e in n)n[e]&&(r&&(r+=" "),r+=e);return r}function nm(){for(var n,t,e=0,r="",i=arguments.length;e<i;e++)(n=arguments[e])&&(t=B9(n))&&(r&&(r+=" "),r+=t);return r}function De(...n){let t={...n[0]};for(let e=1;e<n.length;e++){let r=n[e];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Z4(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=nm(o,s):i==="id"&&o&&s?t.id=Xv(o,s):t[i]=s!==void 0?s:o}}return t}function H9(...n){return n.length===1&&n[0]?n[0]:t=>{let e=!1;const r=n.map(i=>{const o=V9(i,t);return e||(e=typeof o=="function"),o});if(e)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():V9(n[o],null)})}}}function V9(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}const rm=new Set(["id"]),im=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),om=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),sm=new Set(["dir","lang","hidden","inert","translate"]),q9=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"]),am=/^(data-.*)$/;function et(n,t={}){let{labelable:e,isLink:r,global:i,events:o=i,propNames:s}=t,a={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(rm.has(l)||e&&im.has(l)||r&&om.has(l)||i&&sm.has(l)||o&&q9.has(l)||l.endsWith("Capture")&&q9.has(l.slice(0,-7))||s?.has(l)||am.test(l))&&(a[l]=n[l]);return a}function f1(n){if(lm())n.focus({preventScroll:!0});else{let t=cm(n);n.focus(),um(t)}}let wn=null;function lm(){if(wn==null){wn=!1;try{document.createElement("div").focus({get preventScroll(){return wn=!0,!0}})}catch{}}return wn}function cm(n){let t=n.parentNode,e=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&e.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&e.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),e}function um(n){for(let{element:t,scrollTop:e,scrollLeft:r}of n)t.scrollTop=e,t.scrollLeft=r}function Sn(n){var t;if(typeof window>"u"||window.navigator==null)return!1;let e=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(e)&&e.some(r=>n.test(r.brand))||n.test(window.navigator.userAgent)}function e5(n){var t;return typeof window<"u"&&window.navigator!=null?n.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function F1(n){if(process.env.NODE_ENV==="test")return n;let t=null;return()=>(t==null&&(t=n()),t)}const tt=F1(function(){return e5(/^Mac/i)}),dm=F1(function(){return e5(/^iPhone/i)}),j9=F1(function(){return e5(/^iPad/i)||tt()&&navigator.maxTouchPoints>1}),t5=F1(function(){return dm()||j9()}),fm=F1(function(){return tt()||t5()}),pm=F1(function(){return Sn(/AppleWebKit/i)&&!U9()}),U9=F1(function(){return Sn(/Chrome/i)}),n5=F1(function(){return Sn(/Android/i)}),hm=F1(function(){return Sn(/Firefox/i)}),vm=c.createContext({isNative:!0,open:ym,useHref:n=>n});function Cn(){return c.useContext(vm)}function mm(n,t){let e=n.getAttribute("target");return(!e||e==="_self")&&n.origin===location.origin&&!n.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function nt(n,t,e=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;hm()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&n.target==="_blank"&&(tt()?o=!0:s=!0);let u=pm()&&tt()&&!j9()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});nt.isOpening=e,f1(n),n.dispatchEvent(u),nt.isOpening=!1}nt.isOpening=!1;function gm(n,t){if(n instanceof HTMLAnchorElement)t(n);else if(n.hasAttribute("data-href")){let e=document.createElement("a");e.href=n.getAttribute("data-href"),n.hasAttribute("data-target")&&(e.target=n.getAttribute("data-target")),n.hasAttribute("data-rel")&&(e.rel=n.getAttribute("data-rel")),n.hasAttribute("data-download")&&(e.download=n.getAttribute("data-download")),n.hasAttribute("data-ping")&&(e.ping=n.getAttribute("data-ping")),n.hasAttribute("data-referrer-policy")&&(e.referrerPolicy=n.getAttribute("data-referrer-policy")),n.appendChild(e),t(e),n.removeChild(e)}}function ym(n,t){gm(n,e=>nt(e,t))}function bm(n){let t=Cn();var e;const r=t.useHref((e=n?.href)!==null&&e!==void 0?e:"");return{href:n?.href?r:void 0,target:n?.target,rel:n?.rel,download:n?.download,ping:n?.ping,referrerPolicy:n?.referrerPolicy}}function Mm(n,t,e,r){!t.isNative&&n.currentTarget instanceof HTMLAnchorElement&&n.currentTarget.href&&!n.isDefaultPrevented()&&mm(n.currentTarget,n)&&e&&(n.preventDefault(),t.open(n.currentTarget,n,e,r))}let U1=new Map,r5=new Set;function W9(){if(typeof window>"u")return;function n(r){return"propertyName"in r}let t=r=>{if(!n(r)||!r.target)return;let i=U1.get(r.target);i||(i=new Set,U1.set(r.target,i),r.target.addEventListener("transitioncancel",e,{once:!0})),i.add(r.propertyName)},e=r=>{if(!n(r)||!r.target)return;let i=U1.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",e),U1.delete(r.target)),U1.size===0)){for(let o of r5)o();r5.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?W9():document.addEventListener("DOMContentLoaded",W9));function xm(){for(const[n]of U1)"isConnected"in n&&!n.isConnected&&U1.delete(n)}function Y9(n){requestAnimationFrame(()=>{xm(),U1.size===0?n():r5.add(n)})}function rt(){let n=c.useRef(new Map),t=c.useCallback((i,o,s,a)=>{let l=a?.once?(...u)=>{n.current.delete(s),s(...u)}:s;n.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),e=c.useCallback((i,o,s,a)=>{var l;let u=((l=n.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,u,a),n.current.delete(s)},[]),r=c.useCallback(()=>{n.current.forEach((i,o)=>{e(i.eventTarget,i.type,o,i.options)})},[e]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:e,removeAllGlobalListeners:r}}function Im(n,t){let{id:e,"aria-label":r,"aria-labelledby":i}=n;return e=I1(e),i&&r?i=[...new Set([e,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:e,"aria-label":r,"aria-labelledby":i}}function Pn(n){const t=c.useRef(null),e=c.useRef(void 0),r=c.useCallback(i=>{if(typeof n=="function"){const o=n,s=o(i);return()=>{typeof s=="function"?s():o(null)}}else if(n)return n.current=i,()=>{n.current=null}},[n]);return c.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,e.current&&(e.current(),e.current=void 0),i!=null&&(e.current=r(i))}}),[r])}function R9(n,t){const e=c.useRef(!0),r=c.useRef(null);Fe(()=>(e.current=!0,()=>{e.current=!1}),[]),Fe(()=>{e.current?e.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&n(),r.current=t},t)}function Em(){return typeof window.ResizeObserver<"u"}function wm(n){const{ref:t,box:e,onResize:r}=n;c.useEffect(()=>{let i=t?.current;if(i)if(Em()){const o=new window.ResizeObserver(s=>{s.length&&r()});return o.observe(i,{box:e}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,e])}function i5(n,t){Fe(()=>{if(n&&n.ref&&t)return n.ref.current=t.current,()=>{n.ref&&(n.ref.current=null)}})}function o5(n,t){if(!n)return!1;let e=window.getComputedStyle(n),r=/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY);return r&&t&&(r=n.scrollHeight!==n.clientHeight||n.scrollWidth!==n.clientWidth),r}function Sm(n,t){const e=[];for(;n&&n!==document.documentElement;)o5(n,t)&&e.push(n),n=n.parentElement;return e}let Cm=0;const s5=new Map;function Pm(n){let[t,e]=c.useState();return Fe(()=>{if(!n)return;let r=s5.get(n);if(r)e(r.element.id);else{let i=`react-aria-description-${Cm++}`;e(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=n,document.body.appendChild(o),r={refCount:0,element:o},s5.set(n,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),s5.delete(n))}},[n]),{"aria-describedby":n?t:void 0}}function kn(n,t,e,r){let i=Ge(e),o=e==null;c.useEffect(()=>{if(o||!n.current)return;let s=n.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[n,t,r,o,i])}function G9(n,t){let e=X9(n,t,"left"),r=X9(n,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=n.scrollLeft,a=n.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:p}=getComputedStyle(n),m=s+parseInt(u,10),v=a+parseInt(l,10),b=m+n.clientWidth,I=v+n.clientHeight,g=parseInt(d,10)||0,M=parseInt(h,10)||0,y=parseInt(f,10)||0,x=parseInt(p,10)||0;e<=s+x?s=e-parseInt(u,10)-x:e+i>b-y&&(s+=e+i-b+y),r<=v+g?a=r-parseInt(l,10)-g:r+o>I-M&&(a+=r+o-I+M),n.scrollLeft=s,n.scrollTop=a}function X9(n,t,e){const r=e==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==n);){if(t.offsetParent.contains(n)){i-=n[r];break}t=t.offsetParent}return i}function J9(n,t){if(n&&document.contains(n)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=Sm(n);for(let u of l)G9(u,n)}else{var e;let{left:l,top:u}=n.getBoundingClientRect();n==null||(e=n.scrollIntoView)===null||e===void 0||e.call(n,{block:"nearest"});let{left:d,top:f}=n.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(u-f)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"nearest"})}}}}function a5(n){return n.mozInputSource===0&&n.isTrusted?!0:n5()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function km(n){return!n5()&&n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"}function zm(n,t,e){let r=Ge(()=>{e&&e(t)});c.useEffect(()=>{var i;let o=n==null||(i=n.current)===null||i===void 0?void 0:i.form;return o?.addEventListener("reset",r),()=>{o?.removeEventListener("reset",r)}},[n,r])}const $m="react-aria-clear-focus",Tm="react-aria-focus";function wt(n){return tt()?n.metaKey:n.ctrlKey}const Dm=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Om(n){const t=d1(n);if(!(n instanceof t.HTMLElement)&&!(n instanceof t.SVGElement))return!1;let{display:e,visibility:r}=n.style,i=e!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=n.ownerDocument.defaultView;let{display:s,visibility:a}=o(n);i=s!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function _m(n,t){return!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&(n.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?n.hasAttribute("open"):!0)}function l5(n,t){return Dm?n.checkVisibility():n.nodeName!=="#comment"&&Om(n)&&_m(n,t)&&(!n.parentElement||l5(n.parentElement,n))}const c5=["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"],Nm=c5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";c5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Am=c5.join(':not([hidden]):not([tabindex="-1"]),');function Q9(n){return n.matches(Nm)&&l5(n)&&!Z9(n)}function Fm(n){return n.matches(Am)&&l5(n)&&!Z9(n)}function Z9(n){let t=n;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function zn(n,t,e){let[r,i]=c.useState(n||t),o=c.useRef(n!==void 0),s=n!==void 0;c.useEffect(()=>{let u=o.current;u!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?n:r,l=c.useCallback((u,...d)=>{let f=(h,...p)=>{e&&(Object.is(a,h)||e(h,...p)),s||(a=h)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((p,...m)=>{let v=u(s?a:p,...m);return f(v,...d),s?p:v})):(s||i(u),f(u,...d))},[s,a,e]);return[a,l]}function u5(n,t=-1/0,e=1/0){return Math.min(Math.max(n,t),e)}function $n(n,t){let e=n,r=0,i=t.toString(),o=i.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);e=Math.round(e*s)/s}return e}function c6(n,t,e,r){t=Number(t),e=Number(e);let i=(n-(isNaN(t)?0:t))%r,o=$n(Math.abs(i)*2>=r?n+Math.sign(i)*(r-Math.abs(i)):n-i,r);return isNaN(t)?!isNaN(e)&&o>e&&(o=Math.floor($n(e/r,r))*r):o<t?o=t:!isNaN(e)&&o>e&&(o=t+Math.floor($n((e-t)/r,r))*r),o=$n(o,r),o}const e8=Symbol("default");function Tn({values:n,children:t}){for(let[e,r]of n)t=c.createElement(e.Provider,{value:r},t);return t}function Dn(n){let{className:t,style:e,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:a}=n;return c.useMemo(()=>{let l,u,d;return typeof t=="function"?l=t({...a,defaultClassName:i}):l=t,typeof e=="function"?u=e({...a,defaultStyle:s||{}}):u=e,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:l??i,style:u||s?{...s,...u}:void 0,children:d??o,"data-rac":""}},[t,e,r,i,o,s,a])}function t8(n,t){let e=c.useContext(n);if(t===null)return null;if(e&&typeof e=="object"&&"slots"in e&&e.slots){let r=t||e8;if(!e.slots[r]){let i=new Intl.ListFormat().format(Object.keys(e.slots).map(s=>`"${s}"`)),o=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return e.slots[r]}return e}function d5(n,t,e){let r=t8(e,n.slot)||{},{ref:i,...o}=r,s=Pn(c.useMemo(()=>H9(t,i),[t,i])),a=De(o,n);return"style"in o&&o.style&&"style"in n&&n.style&&(typeof o.style=="function"||typeof n.style=="function"?a.style=l=>{let u=typeof o.style=="function"?o.style(l):o.style,d={...l.defaultStyle,...u},f=typeof n.style=="function"?n.style({...l,defaultStyle:d}):n.style;return{...d,...f}}:a.style={...o.style,...n.style}),[a,s]}function Lm(n=!0){let[t,e]=c.useState(n),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,e(!!o)},[]);return Fe(()=>{r.current||e(!1)},[]),[i,t]}class f5{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new f5(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,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=t,this.key=e}}class p5{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let e=this.keyMap;return{*[Symbol.iterator](){let r=e.get(t),i=r?.firstChildKey!=null?e.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?e.get(i.nextKey):void 0}}}getKeyBefore(t){let e=this.keyMap.get(t);if(!e)return null;if(e.prevKey!=null){for(e=this.keyMap.get(e.prevKey);e&&e.type!=="item"&&e.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e?.key)!==null&&r!==void 0?r:null}return e.parentKey}getKeyAfter(t){let e=this.keyMap.get(t);if(!e)return null;if(e.type!=="item"&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.keyMap.get(e.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var e;return(e=t?.key)!==null&&e!==void 0?e:null}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,e=new t;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let e=this.keyMap.get(t);e!=null&&e.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,e,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=e,this.frozen=!r}UNSTABLE_filter(t){let e=new p5,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),s=null;for(let a of this.getChildren(i.key))if(n8(a,t,this,e)){let l=a.clone();s==null&&(o.firstChildKey=l.key),e.firstKey==null&&(e.firstKey=o.key),s&&s.parentKey===l.parentKey?(s.nextKey=l.key,l.prevKey=s.key):l.prevKey=null,l.nextKey=null,e.addNode(l),s=l}s&&(s.type!=="header"?(o.lastChildKey=s.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,e.addNode(o)):(e.firstKey===o.key&&(e.firstKey=null),e.removeNode(s.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,r?.type==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,e.addNode(o))}else{let o=i.clone();n8(o,t,this,e)&&(e.firstKey==null&&(e.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,e.addNode(o),r=o)}if(r?.type==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=e.getItem(r.prevKey),i.nextKey=null),e.removeNode(r.key),r=i}return e.lastKey=r?.key||null,e}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function n8(n,t,e,r){if(n.type==="subdialogtrigger"||n.type==="submenutrigger"){let i=[...e.getChildren(n.key)][0];if(i&&t(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return n.type==="header"?!0:t(n.textValue)}class r8{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,e){if(e==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=e,t.previousSibling=e.previousSibling,t.index=e.index-1,this.firstChild===e?this.firstChild=t:e.previousSibling&&(e.previousSibling.nextSibling=t),e.previousSibling=t,t.parentNode=e.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class St extends r8{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof St?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,e,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof St?this.parentNode.node.key:null;var s;o.prevKey=(s=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null;var a;o.nextKey=(a=i?.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var l;o.firstChildKey=(l=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let p=i.getMutableNode();p.colIndex=h}}}setProps(t,e,r,i){let o=this.getMutableNode(),{value:s,textValue:a,id:l,...u}=t;if(u.ref=e,o.props=u,o.rendered=r,o.render=i,o.value=s,o.textValue=a||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",l!=null&&l!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=l}u.colSpan!=null&&(o.colSpan=u.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(e){let r=e==="none";if(t.isHidden!==r){var i,o;(((i=t.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===t||((o=t.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,a=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,e){super(e),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new f5(t,`react-aria-${++e.nodeId}`)}}class Km extends r8{get isConnected(){return this.isMounted}createElement(t){return new St(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let e=this.getMutableCollection();if(!e.getItem(t.node.key))for(let r of t)this.addNode(r);e.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof St&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof St&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,e,r,i;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(i=(e=this.lastVisibleChild)===null||e===void 0?void 0:e.node.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 t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){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=t,this.nextCollection=t}}function i8(n){let{children:t,items:e,idScope:r,addIdAndValue:i,dependencies:o=[]}=n,s=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(e&&typeof t=="function"){let u=[];for(let d of e){let f=s.get(d);if(!f){f=t(d);var a,l;let h=(l=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&l!==void 0?l:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=c.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),s.set(d,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,e,s,r,i])}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const h5=c.createContext(!1);function Bm(n){if(c.useContext(h5))return c.createElement(c.Fragment,null,n.children);let e=c.createElement(h5.Provider,{value:!0},n.children);return c.createElement("template",{"data-react-aria-hidden":!0},e)}function Hm(n){let t=(e,r)=>c.useContext(h5)?null:n(e,r);return t.displayName=n.displayName||n.name,c.forwardRef(t)}function v5(n){let t=n;return t.nativeEvent=n,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function o8(n,t){Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})}function s8(n){let t=c.useRef({isFocused:!1,observer:null});Fe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let e=Ge(r=>{n?.(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{if(t.current.isFocused=!1,i.disabled){let a=v5(s);e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let On=!1;function a8(n){for(;n&&!Q9(n);)n=n.parentElement;let t=d1(n),e=t.document.activeElement;if(!e||e===n)return;On=!0;let r=!1,i=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),!n&&!r&&(r=!0,f1(e),l()))},s=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),r||(r=!0,f1(e),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),On=!1,r=!1},u=requestAnimationFrame(l);return l}let Ct="default",m5="",_n=new WeakMap;function g5(n){if(t5()){if(Ct==="default"){const t=Pe(n);m5=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ct="disabled"}else if(n instanceof HTMLElement||n instanceof SVGElement){let t="userSelect"in n.style?"userSelect":"webkitUserSelect";_n.set(n,n.style[t]),n.style[t]="none"}}function Nn(n){if(t5()){if(Ct!=="disabled")return;Ct="restoring",setTimeout(()=>{Y9(()=>{if(Ct==="restoring"){const t=Pe(n);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=m5||""),m5="",Ct="default"}})},300)}else if((n instanceof HTMLElement||n instanceof SVGElement)&&n&&_n.has(n)){let t=_n.get(n),e="userSelect"in n.style?"userSelect":"webkitUserSelect";n.style[e]==="none"&&(n.style[e]=t),n.getAttribute("style")===""&&n.removeAttribute("style"),_n.delete(n)}}const An=c.createContext({register:()=>{}});An.displayName="PressResponderContext";function Vm(n,t){return t.get?t.get.call(n):t.value}function l8(n,t,e){if(!t.has(n))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(n)}function qm(n,t){var e=l8(n,t,"get");return Vm(n,e)}function jm(n,t){if(t.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Um(n,t,e){jm(n,t),t.set(n,e)}function Wm(n,t,e){if(t.set)t.set.call(n,e);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=e}}function c8(n,t,e){var r=l8(n,t,"set");return Wm(n,r,e),e}function Ym(n){let t=c.useContext(An);if(t){let{register:e,...r}=t;n=De(r,n),e()}return i5(t,n.ref),n}var Fn=new WeakMap;class Ln{continuePropagation(){c8(this,Fn,!1)}get shouldStopPropagation(){return qm(this,Fn)}constructor(t,e,r,i){Um(this,Fn,{writable:!0,value:void 0}),c8(this,Fn,!0);var o;let s=(o=i?.target)!==null&&o!==void 0?o:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(l=d-a.left,u=f-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=e,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=u}}const u8=Symbol("linkClicked"),d8="react-aria-pressable-style",f8="data-react-aria-pressable";function Kn(n){let{onPress:t,onPressChange:e,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...p}=Ym(n),[m,v]=c.useState(!1),b=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:I,removeAllGlobalListeners:g}=rt(),M=Ge((E,L)=>{let F=b.current;if(a||F.didFirePressStart)return!1;let $=!0;if(F.isTriggeringEvent=!0,r){let X=new Ln("pressstart",L,E);r(X),$=X.shouldStopPropagation}return e&&e(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,v(!0),$}),y=Ge((E,L,F=!0)=>{let $=b.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let X=!0;if(i){let _=new Ln("pressend",L,E);i(_),X=_.shouldStopPropagation}if(e&&e(!1),v(!1),t&&F&&!a){let _=new Ln("press",L,E);t(_),X&&(X=_.shouldStopPropagation)}return $.isTriggeringEvent=!1,X}),x=Ge((E,L)=>{let F=b.current;if(a)return!1;if(o){F.isTriggeringEvent=!0;let $=new Ln("pressup",L,E);return o($),F.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Ge(E=>{let L=b.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&y(it(L.target,E),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,g(),f||Nn(L.target);for(let F of L.disposables)F();L.disposables=[]}}),z=Ge(E=>{d&&w(E)}),A=Ge(E=>{s?.(E)}),C=Ge((E,L)=>{if(s){let F=new MouseEvent("click",E);o8(F,L),s(v5(F))}}),B=c.useMemo(()=>{let E=b.current,L={onKeyDown($){if(b5($.nativeEvent,$.currentTarget)&&Ne($.currentTarget,xe($.nativeEvent))){var X;v8(xe($.nativeEvent),$.key)&&$.preventDefault();let _=!0;if(!E.isPressed&&!$.repeat){E.target=$.currentTarget,E.isPressed=!0,E.pointerType="keyboard",_=M($,"keyboard");let H=$.currentTarget,W=N=>{b5(N,H)&&!N.repeat&&Ne(H,xe(N))&&E.target&&x(it(E.target,N),"keyboard")};I(Pe($.currentTarget),"keyup",Z4(W,F),!0)}_&&$.stopPropagation(),$.metaKey&&tt()&&((X=E.metaKeyEvents)===null||X===void 0||X.set($.key,$.nativeEvent))}else $.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick($){if(!($&&!Ne($.currentTarget,xe($.nativeEvent)))&&$&&$.button===0&&!E.isTriggeringEvent&&!nt.isOpening){let X=!0;if(a&&$.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||a5($.nativeEvent))){let _=M($,"virtual"),H=x($,"virtual"),W=y($,"virtual");A($),X=_&&H&&W}else if(E.isPressed&&E.pointerType!=="keyboard"){let _=E.pointerType||$.nativeEvent.pointerType||"virtual",H=x(it($.currentTarget,$),_),W=y(it($.currentTarget,$),_,!0);X=H&&W,E.isOverTarget=!1,A($),w($)}E.ignoreEmulatedMouseEvents=!1,X&&$.stopPropagation()}}},F=$=>{var X;if(E.isPressed&&E.target&&b5($,E.target)){var _;v8(xe($),$.key)&&$.preventDefault();let W=xe($),N=Ne(E.target,xe($));y(it(E.target,$),"keyboard",N),N&&C($,E.target),g(),$.key!=="Enter"&&y5(E.target)&&Ne(E.target,W)&&!$[u8]&&($[u8]=!0,nt(E.target,$,!1)),E.isPressed=!1,(_=E.metaKeyEvents)===null||_===void 0||_.delete($.key)}else if($.key==="Meta"&&(!((X=E.metaKeyEvents)===null||X===void 0)&&X.size)){var H;let W=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let N of W.values())(H=E.target)===null||H===void 0||H.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){L.onPointerDown=_=>{if(_.button!==0||!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(km(_.nativeEvent)){E.pointerType="virtual";return}E.pointerType=_.pointerType;let H=!0;if(!E.isPressed){E.isPressed=!0,E.isOverTarget=!0,E.activePointerId=_.pointerId,E.target=_.currentTarget,f||g5(E.target),H=M(_,E.pointerType);let W=xe(_.nativeEvent);"releasePointerCapture"in W&&W.releasePointerCapture(_.pointerId),I(Pe(_.currentTarget),"pointerup",$,!1),I(Pe(_.currentTarget),"pointercancel",X,!1)}H&&_.stopPropagation()},L.onMouseDown=_=>{if(Ne(_.currentTarget,xe(_.nativeEvent))&&_.button===0){if(u){let H=a8(_.target);H&&E.disposables.push(H)}_.stopPropagation()}},L.onPointerUp=_=>{!Ne(_.currentTarget,xe(_.nativeEvent))||E.pointerType==="virtual"||_.button===0&&!E.isPressed&&x(_,E.pointerType||_.pointerType)},L.onPointerEnter=_=>{_.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,M(it(E.target,_),E.pointerType))},L.onPointerLeave=_=>{_.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,y(it(E.target,_),E.pointerType,!1),z(_))};let $=_=>{if(_.pointerId===E.activePointerId&&E.isPressed&&_.button===0&&E.target){if(Ne(E.target,xe(_))&&E.pointerType!=null){let H=!1,W=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(H?w(_):(f1(E.target),E.target.click()))},80);I(_.currentTarget,"click",()=>H=!0,!0),E.disposables.push(()=>clearTimeout(W))}else w(_);E.isOverTarget=!1}},X=_=>{w(_)};L.onDragStart=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=_=>{if(_.button!==0||!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(E.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(E.isPressed=!0,E.isOverTarget=!0,E.target=_.currentTarget,E.pointerType=a5(_.nativeEvent)?"virtual":"mouse",C1.flushSync(()=>M(_,E.pointerType))&&_.stopPropagation(),u){let W=a8(_.target);W&&E.disposables.push(W)}I(Pe(_.currentTarget),"mouseup",$,!1)},L.onMouseEnter=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let H=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,H=M(_,E.pointerType)),H&&_.stopPropagation()},L.onMouseLeave=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let H=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,H=y(_,E.pointerType,!1),z(_)),H&&_.stopPropagation()},L.onMouseUp=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&!E.ignoreEmulatedMouseEvents&&_.button===0&&!E.isPressed&&x(_,E.pointerType||"mouse")};let $=_=>{if(_.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&E.target.contains(_.target)&&E.pointerType!=null||w(_),E.isOverTarget=!1}};L.onTouchStart=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let H=Rm(_.nativeEvent);if(!H)return;E.activePointerId=H.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,E.target=_.currentTarget,E.pointerType="touch",f||g5(E.target),M(W1(E.target,_),E.pointerType)&&_.stopPropagation(),I(d1(_.currentTarget),"scroll",X,!0)},L.onTouchMove=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(!E.isPressed){_.stopPropagation();return}let H=p8(_.nativeEvent,E.activePointerId),W=!0;H&&h8(H,_.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,W=M(W1(E.target,_),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,W=y(W1(E.target,_),E.pointerType,!1),z(W1(E.target,_))),W&&_.stopPropagation()},L.onTouchEnd=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(!E.isPressed){_.stopPropagation();return}let H=p8(_.nativeEvent,E.activePointerId),W=!0;H&&h8(H,_.currentTarget)&&E.pointerType!=null?(x(W1(E.target,_),E.pointerType),W=y(W1(E.target,_),E.pointerType),C(_.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(W=y(W1(E.target,_),E.pointerType,!1)),W&&_.stopPropagation(),E.isPressed=!1,E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!f&&Nn(E.target),g()},L.onTouchCancel=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&(_.stopPropagation(),E.isPressed&&w(W1(E.target,_)))};let X=_=>{E.isPressed&&Ne(xe(_),E.target)&&w({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&w(_)}}return L},[I,a,u,g,f,w,z,y,M,x,A,C]);return c.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const E=Pe(h.current);if(!E||!E.head||E.getElementById(d8))return;const L=E.createElement("style");L.id=d8,L.textContent=`
|
|
75
|
+
`)&&y.push(w.value):w.type==="raw"&&!g.options.skipHtml&&y.push(w.value);return y}function f(g,M,y,x){const w=g.options,z=g.schema,A=M.tagName,C={};let B=z,E;if(z.space==="html"&&A==="svg"&&(B=e,g.schema=B),M.properties)for(E in M.properties)l.call(M.properties,E)&&m(C,E,M.properties[E],g);(A==="ol"||A==="ul")&&g.listDepth++;const L=d(g,M);(A==="ol"||A==="ul")&&g.listDepth--,g.schema=z;const F=M.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},$=w.components&&l.call(w.components,A)?w.components[A]:A,X=typeof $=="string"||$===n.Fragment;if(!t.isValidElementType($))throw new TypeError(`Component for name \`${A}\` not defined or is not renderable`);if(C.key=[A,F.start.line,F.start.column,y].join("-"),A==="a"&&w.linkTarget&&(C.target=typeof w.linkTarget=="function"?w.linkTarget(C.href,M.children,C.title):w.linkTarget),A==="a"&&w.transformLinkUri&&(C.href=w.transformLinkUri(C.href,M.children,C.title)),!X&&A==="code"&&x.type==="element"&&x.tagName!=="pre"&&(C.inline=!0),!X&&(A==="h1"||A==="h2"||A==="h3"||A==="h4"||A==="h5"||A==="h6")&&(C.level=parseInt(A.charAt(1),10)),A==="img"&&w.transformImageUri&&(C.src=w.transformImageUri(C.src,C.alt,C.title)),!X&&A==="li"&&x.type==="element"){const _=h(M);C.checked=_&&_.properties?!!_.properties.checked:null,C.index=p(x,M),C.ordered=x.tagName==="ol"}return!X&&(A==="ol"||A==="ul")&&(C.ordered=A==="ol",C.depth=g.listDepth),(A==="td"||A==="th")&&(C.align&&(C.style||(C.style={}),C.style.textAlign=C.align,delete C.align),X||(C.isHeader=A==="th")),!X&&A==="tr"&&x.type==="element"&&(C.isHeader=x.tagName==="thead"),w.sourcePos&&(C["data-sourcepos"]=I(F)),!X&&w.rawSourcePos&&(C.sourcePosition=M.position),!X&&w.includeElementIndex&&(C.index=p(x,M),C.siblingCount=p(x)),X||(C.node=M),L.length>0?n.createElement($,C,L):n.createElement($,C)}function h(g){let M=-1;for(;++M<g.children.length;){const y=g.children[M];if(y.type==="element"&&y.tagName==="input")return y}return null}function p(g,M){let y=-1,x=0;for(;++y<g.children.length&&g.children[y]!==M;)g.children[y].type==="element"&&x++;return x}function m(g,M,y,x){const w=r(x.schema,M);let z=y;z==null||z!==z||(z&&typeof z=="object"&&"length"in z&&(z=(w.commaSeparated?s:o).stringify(z)),w.property==="style"&&typeof z=="string"&&(z=v(z)),w.space&&w.property?g[l.call(i,w.property)?i[w.property]:w.property]=z:w.attribute&&(g[w.attribute]=z))}function v(g){const M={};try{a(g,y)}catch{}return M;function y(x,w){const z=x.slice(0,4)==="-ms-"?`ms-${x.slice(4)}`:x;M[z.replace(/-([a-z])/g,b)]=w}}function b(g,M){return M.toUpperCase()}function I(g){return[g.start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(M=>String(M)).join("")}return gn}var Y4,F9;function Dv(){if(F9)return Y4;F9=1;const n=c,t=ys(),e=Yp(),r=Kh(),i=hv(),o=W0(),s=gv(),a=yv(),l=bv(),u=Tv().hastChildrenToReact;Y4=p;const d={}.hasOwnProperty,f="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function p(m){for(const M in h)if(d.call(h,M)&&d.call(m,M)){const y=h[M];console.warn(`[react-markdown] Warning: please ${y.to?`use \`${y.to}\` instead of`:"remove"} \`${M}\` (see <${f}#${y.id}> for more info)`),delete h[M]}const v=e().use(r).use(m.remarkPlugins||m.plugins||[]).use(i,{allowDangerousHtml:!0}).use(m.rehypePlugins||[]).use(a,m);let b;typeof m.children=="string"?b=t(m.children):(m.children!==void 0&&m.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${m.children}\`)`),b=t());const I=v.runSync(v.parse(b),b);if(I.type!=="root")throw new TypeError("Expected a `root` node");let g=n.createElement(n.Fragment,{},u({options:m,schema:s,listDepth:0},I));return m.className&&(g=n.createElement("div",{className:m.className},g)),g}return p.defaultProps={transformLinkUri:l},p.propTypes={children:o.string,className:o.string,allowElement:o.func,allowedElements:o.arrayOf(o.string),disallowedElements:o.arrayOf(o.string),unwrapDisallowed:o.bool,remarkPlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),rehypePlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),sourcePos:o.bool,rawSourcePos:o.bool,skipHtml:o.bool,includeElementIndex:o.bool,transformLinkUri:o.oneOfType([o.func,o.bool]),linkTarget:o.oneOfType([o.func,o.string]),transformImageUri:o.func,components:o.object},p.uriTransformer=l,Y4}var Ov=Dv();const _v=O0(Ov);function R4(){return R4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},R4.apply(null,arguments)}const Nv=({label:n,markdownLabel:t,onChange:e=()=>{},id:r,name:i,defaultChecked:o,checked:s,disabled:a=!1,indeterminate:l=!1,value:u,hasError:d,error:f,kind:h="normal",testId:p,...m})=>{const v=c.useRef(null),b=s!==void 0,[I,g]=c.useState(b?s:o||!1),[M,y]=c.useState(!1),x=h==="card",w=({href:B,children:E})=>c.createElement("a",{href:B,target:"_blank",rel:"noreferrer"},E);c.useEffect(()=>{b&&g(s),v.current&&(v.current.indeterminate=l)},[s,l]);const z=B=>{b||g(E=>!E),e(B)},A=()=>{y(!0)},C=()=>{y(!1)};return c.createElement("div",{className:`nds-checkbox-container nds-checkbox-container--${h}`},c.createElement("label",{className:ae([`nds-checkbox nds-checkbox--${h}`,"fontWeight--default",{"nds-checkbox--checked":I||l,"nds-checkbox--disabled":a,"nds-checkbox--focused":M,"padding--y--xl padding--x rounded--all border--all":x}])},c.createElement("span",{className:ae([{"narmi-icon-check":!l,"narmi-icon-minus":l,error:d||!!f}])}),c.createElement("div",{className:"nds-checkbox-label"},t&&c.createElement(_v,{components:{a:function({href:B,children:E}){return w({href:B,children:E})}}},t),!t&&c.createElement(c.Fragment,null,n)),c.createElement("input",R4({ref:v,onFocus:A,onBlur:C,onChange:z,checked:I,defaultChecked:o,disabled:a,name:i,id:r&&r.toString(),value:u,"data-testid":p},m,{type:"checkbox"}))),c.createElement(D1,{marginTop:"xs",error:f}))},L9=({value:n,kind:t="theme"})=>c.createElement("div",{role:"status",className:ae(["nds-count",`nds-count--${t}`])},n),Av=({label:n,kind:t="primary",count:e,onDismiss:r,onClick:i,startIcon:o,endIcon:s,hasBorder:a=!1})=>{const l=typeof i=="function",u=!l&&typeof r=="function",d=t==="primary"||t==="secondary"?"theme":t;return c.createElement(bt,{elementType:l?"button":"div",onClick:l?i:void 0,type:l?"button":void 0,className:ae(["nds-chip","fontSize--s",`nds-chip--${t}`,`fontColor--${t}`,{"button--reset":l,"nds-chip--button":l,"nds-chip--hasBorder":a}])},c.createElement(de,{alignItems:"center",gapSize:"xs"},o&&c.createElement(de.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${o}`])})),c.createElement(de.Item,{shrink:!0},c.createElement("div",{className:"nds-chip-label whiteSpace--truncate"},n)),e&&c.createElement(de.Item,{shrink:!0},c.createElement(L9,{kind:d,value:e})),s&&c.createElement(de.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${s}`])})),u&&c.createElement(de.Item,{shrink:!0},c.createElement("button",{onClick:r,"aria-label":"Remove chip",className:ae(["nds-chip-dismiss","nds-chip-icon","button--reset",`fontColor--${t}`])},c.createElement("span",{className:"narmi-icon-x"})))))};function G4(){return G4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},G4.apply(null,arguments)}const Fv=({kind:n="plain",paddingSize:t="l",onClick:e=()=>{},isSelected:r=!1,children:i,testId:o,radiusSize:s="s",error:a,disabled:l=!1})=>{const u=["interactive","toggle","button"].some(h=>n===h),d=u&&n!=="button",f=()=>{const h={};return u&&(h.role="button",h.tabIndex="0",a||(h.onClick=e,h.onKeyUp=p=>{const{key:m}=p;(m==="Enter"||m===" ")&&e(p)})),d&&(h["aria-pressed"]=r),h};return c.createElement(c.Fragment,null,c.createElement("div",G4({"data-testid":o||"ndsContentCard",className:ae(["nds-contentCard",`nds-contentCard--${n}`,`padding--all--${t}`,`rounded--all--${s} bgColor--white`,{"button--reset":u,"nds-contentCard--error":u&&a,"nds-contentCard--disabled":l}])},f()),i),a&&c.createElement(D1,{error:a,marginTop:"s"}))},Fe=typeof document<"u"?c.useLayoutEffect:()=>{};var X4;const Lv=(X4=c.useInsertionEffect)!==null&&X4!==void 0?X4:Fe;function Ge(n){const t=c.useRef(null);return Lv(()=>{t.current=n},[n]),c.useCallback((...e)=>{const r=t.current;return r?.(...e)},[])}function Kv(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Ge(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():e(s.value)});Fe(()=>{r.current&&i()});let o=Ge(s=>{r.current=s(t),i()});return[t,o]}const xn={prefix:String(Math.round(Math.random()*1e10)),current:0},K9=c.createContext(xn),Bv=c.createContext(!1);let Hv=!!(typeof window<"u"&&window.document&&window.document.createElement),J4=new WeakMap;function Vv(n=!1){let t=c.useContext(K9),e=c.useRef(null);if(e.current===null&&!n){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let s=J4.get(o);s==null?J4.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,J4.delete(o))}e.current=++t.current}return e.current}function qv(n){let t=c.useContext(K9);t===xn&&!Hv&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let e=Vv(!!n),r=t===xn&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return n||`${r}-${e}`}function jv(n){let t=c.useId(),[e]=c.useState(In()),r=e||process.env.NODE_ENV==="test"?"react-aria":`react-aria${xn.prefix}`;return n||`${r}-${t}`}const Uv=typeof c.useId=="function"?jv:qv;function Wv(){return!1}function Yv(){return!0}function Rv(n){return()=>{}}function In(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Rv,Wv,Yv):c.useContext(Bv)}let Gv=!!(typeof window<"u"&&window.document&&window.document.createElement),Et=new Map,l6;typeof FinalizationRegistry<"u"&&(l6=new FinalizationRegistry(n=>{Et.delete(n)}));function I1(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Uv(t),o=c.useRef(null);if(l6&&l6.register(o,i),Gv){const s=Et.get(i);s&&!s.includes(r)?s.push(r):Et.set(i,[r])}return Fe(()=>{let s=i;return()=>{l6&&l6.unregister(o),Et.delete(s)}},[i]),c.useEffect(()=>{let s=r.current;return s&&e(s),()=>{s&&(r.current=null)}}),i}function Xv(n,t){if(n===t)return n;let e=Et.get(n);if(e)return e.forEach(i=>i.current=t),t;let r=Et.get(t);return r?(r.forEach(i=>i.current=n),n):t}function Q4(n=[]){let t=I1(),[e,r]=Kv(t),i=c.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Fe(i,[t,i,...n]),e}function Z4(...n){return(...t)=>{for(let e of n)typeof e=="function"&&e(...t)}}const Pe=n=>{var t;return(t=n?.ownerDocument)!==null&&t!==void 0?t:document},d1=n=>n&&"window"in n&&n.window===n?n:Pe(n).defaultView||window;function Jv(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function Qv(n){return Jv(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let Zv=!1;function En(){return Zv}function Ne(n,t){if(!En())return t&&n?n.contains(t):!1;if(!n||!t)return!1;let e=t;for(;e!==null;){if(e===n)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:Qv(e)?e=e.host:e=e.parentNode}return!1}const Xe=(n=document)=>{var t;if(!En())return n.activeElement;let e=n.activeElement;for(;e&&"shadowRoot"in e&&(!((t=e.shadowRoot)===null||t===void 0)&&t.activeElement);)e=e.shadowRoot.activeElement;return e};function xe(n){return En()&&n.target.shadowRoot&&n.composedPath?n.composedPath()[0]:n.target}class em{get currentNode(){return this._currentNode}set currentNode(t){if(!Ne(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const e=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});e.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=s.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});e.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=e}get doc(){return this._doc}firstChild(){let t=this.currentNode,e=this.nextNode();return Ne(t,e)?(e&&(this.currentNode=e),e):(this.currentNode=t,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var e;let i;if(typeof this.filter=="function"?i=this.filter(t):!((e=this.filter)===null||e===void 0)&&e.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const e=t.previousNode();if(e){if(e.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return e&&(this.currentNode=e),e;let s=this.lastChild();return s&&(this.currentNode=s),s}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,e,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=e,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=e,this._walkerStack.unshift(t.createTreeWalker(e,r,this._acceptNode));const o=e.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function tm(n,t,e,r){return En()?new em(n,t,e,r):n.createTreeWalker(t,e,r)}function B9(n){var t,e,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(t=0;t<i;t++)n[t]&&(e=B9(n[t]))&&(r&&(r+=" "),r+=e)}else for(e in n)n[e]&&(r&&(r+=" "),r+=e);return r}function nm(){for(var n,t,e=0,r="",i=arguments.length;e<i;e++)(n=arguments[e])&&(t=B9(n))&&(r&&(r+=" "),r+=t);return r}function De(...n){let t={...n[0]};for(let e=1;e<n.length;e++){let r=n[e];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Z4(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=nm(o,s):i==="id"&&o&&s?t.id=Xv(o,s):t[i]=s!==void 0?s:o}}return t}function H9(...n){return n.length===1&&n[0]?n[0]:t=>{let e=!1;const r=n.map(i=>{const o=V9(i,t);return e||(e=typeof o=="function"),o});if(e)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():V9(n[o],null)})}}}function V9(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}const rm=new Set(["id"]),im=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),om=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),sm=new Set(["dir","lang","hidden","inert","translate"]),q9=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"]),am=/^(data-.*)$/;function et(n,t={}){let{labelable:e,isLink:r,global:i,events:o=i,propNames:s}=t,a={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(rm.has(l)||e&&im.has(l)||r&&om.has(l)||i&&sm.has(l)||o&&q9.has(l)||l.endsWith("Capture")&&q9.has(l.slice(0,-7))||s?.has(l)||am.test(l))&&(a[l]=n[l]);return a}function f1(n){if(lm())n.focus({preventScroll:!0});else{let t=cm(n);n.focus(),um(t)}}let wn=null;function lm(){if(wn==null){wn=!1;try{document.createElement("div").focus({get preventScroll(){return wn=!0,!0}})}catch{}}return wn}function cm(n){let t=n.parentNode,e=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&e.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&e.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),e}function um(n){for(let{element:t,scrollTop:e,scrollLeft:r}of n)t.scrollTop=e,t.scrollLeft=r}function Sn(n){var t;if(typeof window>"u"||window.navigator==null)return!1;let e=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(e)&&e.some(r=>n.test(r.brand))||n.test(window.navigator.userAgent)}function e5(n){var t;return typeof window<"u"&&window.navigator!=null?n.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function F1(n){if(process.env.NODE_ENV==="test")return n;let t=null;return()=>(t==null&&(t=n()),t)}const tt=F1(function(){return e5(/^Mac/i)}),dm=F1(function(){return e5(/^iPhone/i)}),j9=F1(function(){return e5(/^iPad/i)||tt()&&navigator.maxTouchPoints>1}),t5=F1(function(){return dm()||j9()}),fm=F1(function(){return tt()||t5()}),pm=F1(function(){return Sn(/AppleWebKit/i)&&!U9()}),U9=F1(function(){return Sn(/Chrome/i)}),n5=F1(function(){return Sn(/Android/i)}),hm=F1(function(){return Sn(/Firefox/i)}),vm=c.createContext({isNative:!0,open:ym,useHref:n=>n});function Cn(){return c.useContext(vm)}function mm(n,t){let e=n.getAttribute("target");return(!e||e==="_self")&&n.origin===location.origin&&!n.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function nt(n,t,e=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;hm()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&n.target==="_blank"&&(tt()?o=!0:s=!0);let u=pm()&&tt()&&!j9()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});nt.isOpening=e,f1(n),n.dispatchEvent(u),nt.isOpening=!1}nt.isOpening=!1;function gm(n,t){if(n instanceof HTMLAnchorElement)t(n);else if(n.hasAttribute("data-href")){let e=document.createElement("a");e.href=n.getAttribute("data-href"),n.hasAttribute("data-target")&&(e.target=n.getAttribute("data-target")),n.hasAttribute("data-rel")&&(e.rel=n.getAttribute("data-rel")),n.hasAttribute("data-download")&&(e.download=n.getAttribute("data-download")),n.hasAttribute("data-ping")&&(e.ping=n.getAttribute("data-ping")),n.hasAttribute("data-referrer-policy")&&(e.referrerPolicy=n.getAttribute("data-referrer-policy")),n.appendChild(e),t(e),n.removeChild(e)}}function ym(n,t){gm(n,e=>nt(e,t))}function bm(n){let t=Cn();var e;const r=t.useHref((e=n?.href)!==null&&e!==void 0?e:"");return{href:n?.href?r:void 0,target:n?.target,rel:n?.rel,download:n?.download,ping:n?.ping,referrerPolicy:n?.referrerPolicy}}function Mm(n,t,e,r){!t.isNative&&n.currentTarget instanceof HTMLAnchorElement&&n.currentTarget.href&&!n.isDefaultPrevented()&&mm(n.currentTarget,n)&&e&&(n.preventDefault(),t.open(n.currentTarget,n,e,r))}let U1=new Map,r5=new Set;function W9(){if(typeof window>"u")return;function n(r){return"propertyName"in r}let t=r=>{if(!n(r)||!r.target)return;let i=U1.get(r.target);i||(i=new Set,U1.set(r.target,i),r.target.addEventListener("transitioncancel",e,{once:!0})),i.add(r.propertyName)},e=r=>{if(!n(r)||!r.target)return;let i=U1.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",e),U1.delete(r.target)),U1.size===0)){for(let o of r5)o();r5.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?W9():document.addEventListener("DOMContentLoaded",W9));function xm(){for(const[n]of U1)"isConnected"in n&&!n.isConnected&&U1.delete(n)}function Y9(n){requestAnimationFrame(()=>{xm(),U1.size===0?n():r5.add(n)})}function rt(){let n=c.useRef(new Map),t=c.useCallback((i,o,s,a)=>{let l=a?.once?(...u)=>{n.current.delete(s),s(...u)}:s;n.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),e=c.useCallback((i,o,s,a)=>{var l;let u=((l=n.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,u,a),n.current.delete(s)},[]),r=c.useCallback(()=>{n.current.forEach((i,o)=>{e(i.eventTarget,i.type,o,i.options)})},[e]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:e,removeAllGlobalListeners:r}}function Im(n,t){let{id:e,"aria-label":r,"aria-labelledby":i}=n;return e=I1(e),i&&r?i=[...new Set([e,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:e,"aria-label":r,"aria-labelledby":i}}function Pn(n){const t=c.useRef(null),e=c.useRef(void 0),r=c.useCallback(i=>{if(typeof n=="function"){const o=n,s=o(i);return()=>{typeof s=="function"?s():o(null)}}else if(n)return n.current=i,()=>{n.current=null}},[n]);return c.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,e.current&&(e.current(),e.current=void 0),i!=null&&(e.current=r(i))}}),[r])}function R9(n,t){const e=c.useRef(!0),r=c.useRef(null);Fe(()=>(e.current=!0,()=>{e.current=!1}),[]),Fe(()=>{e.current?e.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&n(),r.current=t},t)}function Em(){return typeof window.ResizeObserver<"u"}function wm(n){const{ref:t,box:e,onResize:r}=n;c.useEffect(()=>{let i=t?.current;if(i)if(Em()){const o=new window.ResizeObserver(s=>{s.length&&r()});return o.observe(i,{box:e}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,e])}function i5(n,t){Fe(()=>{if(n&&n.ref&&t)return n.ref.current=t.current,()=>{n.ref&&(n.ref.current=null)}})}function o5(n,t){if(!n)return!1;let e=window.getComputedStyle(n),r=/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY);return r&&t&&(r=n.scrollHeight!==n.clientHeight||n.scrollWidth!==n.clientWidth),r}function Sm(n,t){const e=[];for(;n&&n!==document.documentElement;)o5(n,t)&&e.push(n),n=n.parentElement;return e}let Cm=0;const s5=new Map;function Pm(n){let[t,e]=c.useState();return Fe(()=>{if(!n)return;let r=s5.get(n);if(r)e(r.element.id);else{let i=`react-aria-description-${Cm++}`;e(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=n,document.body.appendChild(o),r={refCount:0,element:o},s5.set(n,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),s5.delete(n))}},[n]),{"aria-describedby":n?t:void 0}}function kn(n,t,e,r){let i=Ge(e),o=e==null;c.useEffect(()=>{if(o||!n.current)return;let s=n.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[n,t,r,o,i])}function G9(n,t){let e=X9(n,t,"left"),r=X9(n,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=n.scrollLeft,a=n.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:p}=getComputedStyle(n),m=s+parseInt(u,10),v=a+parseInt(l,10),b=m+n.clientWidth,I=v+n.clientHeight,g=parseInt(d,10)||0,M=parseInt(h,10)||0,y=parseInt(f,10)||0,x=parseInt(p,10)||0;e<=s+x?s=e-parseInt(u,10)-x:e+i>b-y&&(s+=e+i-b+y),r<=v+g?a=r-parseInt(l,10)-g:r+o>I-M&&(a+=r+o-I+M),n.scrollLeft=s,n.scrollTop=a}function X9(n,t,e){const r=e==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==n);){if(t.offsetParent.contains(n)){i-=n[r];break}t=t.offsetParent}return i}function J9(n,t){if(n&&document.contains(n)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=Sm(n);for(let u of l)G9(u,n)}else{var e;let{left:l,top:u}=n.getBoundingClientRect();n==null||(e=n.scrollIntoView)===null||e===void 0||e.call(n,{block:"nearest"});let{left:d,top:f}=n.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(u-f)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"nearest"})}}}}function a5(n){return n.mozInputSource===0&&n.isTrusted?!0:n5()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function km(n){return!n5()&&n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"}function zm(n,t,e){let r=Ge(()=>{e&&e(t)});c.useEffect(()=>{var i;let o=n==null||(i=n.current)===null||i===void 0?void 0:i.form;return o?.addEventListener("reset",r),()=>{o?.removeEventListener("reset",r)}},[n,r])}const $m="react-aria-clear-focus",Tm="react-aria-focus";function wt(n){return tt()?n.metaKey:n.ctrlKey}const Dm=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Om(n){const t=d1(n);if(!(n instanceof t.HTMLElement)&&!(n instanceof t.SVGElement))return!1;let{display:e,visibility:r}=n.style,i=e!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=n.ownerDocument.defaultView;let{display:s,visibility:a}=o(n);i=s!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function _m(n,t){return!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&(n.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?n.hasAttribute("open"):!0)}function l5(n,t){return Dm?n.checkVisibility():n.nodeName!=="#comment"&&Om(n)&&_m(n,t)&&(!n.parentElement||l5(n.parentElement,n))}const c5=["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"],Nm=c5.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";c5.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Am=c5.join(':not([hidden]):not([tabindex="-1"]),');function Q9(n){return n.matches(Nm)&&l5(n)&&!Z9(n)}function Fm(n){return n.matches(Am)&&l5(n)&&!Z9(n)}function Z9(n){let t=n;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function zn(n,t,e){let[r,i]=c.useState(n||t),o=c.useRef(n!==void 0),s=n!==void 0;c.useEffect(()=>{let u=o.current;u!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?n:r,l=c.useCallback((u,...d)=>{let f=(h,...p)=>{e&&(Object.is(a,h)||e(h,...p)),s||(a=h)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((p,...m)=>{let v=u(s?a:p,...m);return f(v,...d),s?p:v})):(s||i(u),f(u,...d))},[s,a,e]);return[a,l]}function u5(n,t=-1/0,e=1/0){return Math.min(Math.max(n,t),e)}function $n(n,t){let e=n,r=0,i=t.toString(),o=i.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);e=Math.round(e*s)/s}return e}function c6(n,t,e,r){t=Number(t),e=Number(e);let i=(n-(isNaN(t)?0:t))%r,o=$n(Math.abs(i)*2>=r?n+Math.sign(i)*(r-Math.abs(i)):n-i,r);return isNaN(t)?!isNaN(e)&&o>e&&(o=Math.floor($n(e/r,r))*r):o<t?o=t:!isNaN(e)&&o>e&&(o=t+Math.floor($n((e-t)/r,r))*r),o=$n(o,r),o}const e8=Symbol("default");function Tn({values:n,children:t}){for(let[e,r]of n)t=c.createElement(e.Provider,{value:r},t);return t}function Dn(n){let{className:t,style:e,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:a}=n;return c.useMemo(()=>{let l,u,d;return typeof t=="function"?l=t({...a,defaultClassName:i}):l=t,typeof e=="function"?u=e({...a,defaultStyle:s||{}}):u=e,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:l??i,style:u||s?{...s,...u}:void 0,children:d??o,"data-rac":""}},[t,e,r,i,o,s,a])}function t8(n,t){let e=c.useContext(n);if(t===null)return null;if(e&&typeof e=="object"&&"slots"in e&&e.slots){let r=t||e8;if(!e.slots[r]){let i=new Intl.ListFormat().format(Object.keys(e.slots).map(s=>`"${s}"`)),o=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return e.slots[r]}return e}function d5(n,t,e){let r=t8(e,n.slot)||{},{ref:i,...o}=r,s=Pn(c.useMemo(()=>H9(t,i),[t,i])),a=De(o,n);return"style"in o&&o.style&&"style"in n&&n.style&&(typeof o.style=="function"||typeof n.style=="function"?a.style=l=>{let u=typeof o.style=="function"?o.style(l):o.style,d={...l.defaultStyle,...u},f=typeof n.style=="function"?n.style({...l,defaultStyle:d}):n.style;return{...d,...f}}:a.style={...o.style,...n.style}),[a,s]}function Lm(n=!0){let[t,e]=c.useState(n),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,e(!!o)},[]);return Fe(()=>{r.current||e(!1)},[]),[i,t]}class f5{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new f5(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,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=t,this.key=e}}class p5{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let e=this.keyMap;return{*[Symbol.iterator](){let r=e.get(t),i=r?.firstChildKey!=null?e.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?e.get(i.nextKey):void 0}}}getKeyBefore(t){let e=this.keyMap.get(t);if(!e)return null;if(e.prevKey!=null){for(e=this.keyMap.get(e.prevKey);e&&e.type!=="item"&&e.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e?.key)!==null&&r!==void 0?r:null}return e.parentKey}getKeyAfter(t){let e=this.keyMap.get(t);if(!e)return null;if(e.type!=="item"&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.keyMap.get(e.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var e;return(e=t?.key)!==null&&e!==void 0?e:null}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,e=new t;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let e=this.keyMap.get(t);e!=null&&e.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,e,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=e,this.frozen=!r}UNSTABLE_filter(t){let e=new p5,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),s=null;for(let a of this.getChildren(i.key))if(n8(a,t,this,e)){let l=a.clone();s==null&&(o.firstChildKey=l.key),e.firstKey==null&&(e.firstKey=o.key),s&&s.parentKey===l.parentKey?(s.nextKey=l.key,l.prevKey=s.key):l.prevKey=null,l.nextKey=null,e.addNode(l),s=l}s&&(s.type!=="header"?(o.lastChildKey=s.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,e.addNode(o)):(e.firstKey===o.key&&(e.firstKey=null),e.removeNode(s.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,r?.type==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,e.addNode(o))}else{let o=i.clone();n8(o,t,this,e)&&(e.firstKey==null&&(e.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,e.addNode(o),r=o)}if(r?.type==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=e.getItem(r.prevKey),i.nextKey=null),e.removeNode(r.key),r=i}return e.lastKey=r?.key||null,e}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function n8(n,t,e,r){if(n.type==="subdialogtrigger"||n.type==="submenutrigger"){let i=[...e.getChildren(n.key)][0];if(i&&t(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return n.type==="header"?!0:t(n.textValue)}class r8{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,e){if(e==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=e,t.previousSibling=e.previousSibling,t.index=e.index-1,this.firstChild===e?this.firstChild=t:e.previousSibling&&(e.previousSibling.nextSibling=t),e.previousSibling=t,t.parentNode=e.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class St extends r8{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof St?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,e,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof St?this.parentNode.node.key:null;var s;o.prevKey=(s=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null;var a;o.nextKey=(a=i?.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var l;o.firstChildKey=(l=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let p=i.getMutableNode();p.colIndex=h}}}setProps(t,e,r,i){let o=this.getMutableNode(),{value:s,textValue:a,id:l,...u}=t;if(u.ref=e,o.props=u,o.rendered=r,o.render=i,o.value=s,o.textValue=a||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",l!=null&&l!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=l}u.colSpan!=null&&(o.colSpan=u.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(e){let r=e==="none";if(t.isHidden!==r){var i,o;(((i=t.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===t||((o=t.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,a=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,e){super(e),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new f5(t,`react-aria-${++e.nodeId}`)}}class Km extends r8{get isConnected(){return this.isMounted}createElement(t){return new St(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let e=this.getMutableCollection();if(!e.getItem(t.node.key))for(let r of t)this.addNode(r);e.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof St&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof St&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,e,r,i;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(i=(e=this.lastVisibleChild)===null||e===void 0?void 0:e.node.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 t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){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=t,this.nextCollection=t}}function i8(n){let{children:t,items:e,idScope:r,addIdAndValue:i,dependencies:o=[]}=n,s=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(e&&typeof t=="function"){let u=[];for(let d of e){let f=s.get(d);if(!f){f=t(d);var a,l;let h=(l=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&l!==void 0?l:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=c.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),s.set(d,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,e,s,r,i])}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const h5=c.createContext(!1);function Bm(n){if(c.useContext(h5))return c.createElement(c.Fragment,null,n.children);let e=c.createElement(h5.Provider,{value:!0},n.children);return c.createElement("template",{"data-react-aria-hidden":!0},e)}function Hm(n){let t=(e,r)=>c.useContext(h5)?null:n(e,r);return t.displayName=n.displayName||n.name,c.forwardRef(t)}function v5(n){let t=n;return t.nativeEvent=n,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function o8(n,t){Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})}function s8(n){let t=c.useRef({isFocused:!1,observer:null});Fe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let e=Ge(r=>{n?.(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{if(t.current.isFocused=!1,i.disabled){let a=v5(s);e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let On=!1;function a8(n){for(;n&&!Q9(n);)n=n.parentElement;let t=d1(n),e=t.document.activeElement;if(!e||e===n)return;On=!0;let r=!1,i=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),!n&&!r&&(r=!0,f1(e),l()))},s=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),r||(r=!0,f1(e),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),On=!1,r=!1},u=requestAnimationFrame(l);return l}let Ct="default",m5="",_n=new WeakMap;function g5(n){if(t5()){if(Ct==="default"){const t=Pe(n);m5=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ct="disabled"}else if(n instanceof HTMLElement||n instanceof SVGElement){let t="userSelect"in n.style?"userSelect":"webkitUserSelect";_n.set(n,n.style[t]),n.style[t]="none"}}function Nn(n){if(t5()){if(Ct!=="disabled")return;Ct="restoring",setTimeout(()=>{Y9(()=>{if(Ct==="restoring"){const t=Pe(n);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=m5||""),m5="",Ct="default"}})},300)}else if((n instanceof HTMLElement||n instanceof SVGElement)&&n&&_n.has(n)){let t=_n.get(n),e="userSelect"in n.style?"userSelect":"webkitUserSelect";n.style[e]==="none"&&(n.style[e]=t),n.getAttribute("style")===""&&n.removeAttribute("style"),_n.delete(n)}}const An=c.createContext({register:()=>{}});An.displayName="PressResponderContext";function Vm(n,t){return t.get?t.get.call(n):t.value}function l8(n,t,e){if(!t.has(n))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(n)}function qm(n,t){var e=l8(n,t,"get");return Vm(n,e)}function jm(n,t){if(t.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Um(n,t,e){jm(n,t),t.set(n,e)}function Wm(n,t,e){if(t.set)t.set.call(n,e);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=e}}function c8(n,t,e){var r=l8(n,t,"set");return Wm(n,r,e),e}function Ym(n){let t=c.useContext(An);if(t){let{register:e,...r}=t;n=De(r,n),e()}return i5(t,n.ref),n}var Fn=new WeakMap;class Ln{continuePropagation(){c8(this,Fn,!1)}get shouldStopPropagation(){return qm(this,Fn)}constructor(t,e,r,i){Um(this,Fn,{writable:!0,value:void 0}),c8(this,Fn,!0);var o;let s=(o=i?.target)!==null&&o!==void 0?o:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(l=d-a.left,u=f-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=e,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=u}}const u8=Symbol("linkClicked"),d8="react-aria-pressable-style",f8="data-react-aria-pressable";function Kn(n){let{onPress:t,onPressChange:e,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...p}=Ym(n),[m,v]=c.useState(!1),b=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:I,removeAllGlobalListeners:g}=rt(),M=Ge((E,L)=>{let F=b.current;if(a||F.didFirePressStart)return!1;let $=!0;if(F.isTriggeringEvent=!0,r){let X=new Ln("pressstart",L,E);r(X),$=X.shouldStopPropagation}return e&&e(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,v(!0),$}),y=Ge((E,L,F=!0)=>{let $=b.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let X=!0;if(i){let _=new Ln("pressend",L,E);i(_),X=_.shouldStopPropagation}if(e&&e(!1),v(!1),t&&F&&!a){let _=new Ln("press",L,E);t(_),X&&(X=_.shouldStopPropagation)}return $.isTriggeringEvent=!1,X}),x=Ge((E,L)=>{let F=b.current;if(a)return!1;if(o){F.isTriggeringEvent=!0;let $=new Ln("pressup",L,E);return o($),F.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Ge(E=>{let L=b.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&y(it(L.target,E),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,g(),f||Nn(L.target);for(let F of L.disposables)F();L.disposables=[]}}),z=Ge(E=>{d&&w(E)}),A=Ge(E=>{s?.(E)}),C=Ge((E,L)=>{if(s){let F=new MouseEvent("click",E);o8(F,L),s(v5(F))}}),B=c.useMemo(()=>{let E=b.current,L={onKeyDown($){if(b5($.nativeEvent,$.currentTarget)&&Ne($.currentTarget,xe($.nativeEvent))){var X;v8(xe($.nativeEvent),$.key)&&$.preventDefault();let _=!0;if(!E.isPressed&&!$.repeat){E.target=$.currentTarget,E.isPressed=!0,E.pointerType="keyboard",_=M($,"keyboard");let H=$.currentTarget,W=N=>{b5(N,H)&&!N.repeat&&Ne(H,xe(N))&&E.target&&x(it(E.target,N),"keyboard")};I(Pe($.currentTarget),"keyup",Z4(W,F),!0)}_&&$.stopPropagation(),$.metaKey&&tt()&&((X=E.metaKeyEvents)===null||X===void 0||X.set($.key,$.nativeEvent))}else $.key==="Meta"&&(E.metaKeyEvents=new Map)},onClick($){if(!($&&!Ne($.currentTarget,xe($.nativeEvent)))&&$&&$.button===0&&!E.isTriggeringEvent&&!nt.isOpening){let X=!0;if(a&&$.preventDefault(),!E.ignoreEmulatedMouseEvents&&!E.isPressed&&(E.pointerType==="virtual"||a5($.nativeEvent))){let _=M($,"virtual"),H=x($,"virtual"),W=y($,"virtual");A($),X=_&&H&&W}else if(E.isPressed&&E.pointerType!=="keyboard"){let _=E.pointerType||$.nativeEvent.pointerType||"virtual",H=x(it($.currentTarget,$),_),W=y(it($.currentTarget,$),_,!0);X=H&&W,E.isOverTarget=!1,A($),w($)}E.ignoreEmulatedMouseEvents=!1,X&&$.stopPropagation()}}},F=$=>{var X;if(E.isPressed&&E.target&&b5($,E.target)){var _;v8(xe($),$.key)&&$.preventDefault();let W=xe($),N=Ne(E.target,xe($));y(it(E.target,$),"keyboard",N),N&&C($,E.target),g(),$.key!=="Enter"&&y5(E.target)&&Ne(E.target,W)&&!$[u8]&&($[u8]=!0,nt(E.target,$,!1)),E.isPressed=!1,(_=E.metaKeyEvents)===null||_===void 0||_.delete($.key)}else if($.key==="Meta"&&(!((X=E.metaKeyEvents)===null||X===void 0)&&X.size)){var H;let W=E.metaKeyEvents;E.metaKeyEvents=void 0;for(let N of W.values())(H=E.target)===null||H===void 0||H.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){L.onPointerDown=_=>{if(_.button!==0||!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(km(_.nativeEvent)){E.pointerType="virtual";return}E.pointerType=_.pointerType;let H=!0;if(!E.isPressed){E.isPressed=!0,E.isOverTarget=!0,E.activePointerId=_.pointerId,E.target=_.currentTarget,f||g5(E.target),H=M(_,E.pointerType);let W=xe(_.nativeEvent);"releasePointerCapture"in W&&W.releasePointerCapture(_.pointerId),I(Pe(_.currentTarget),"pointerup",$,!1),I(Pe(_.currentTarget),"pointercancel",X,!1)}H&&_.stopPropagation()},L.onMouseDown=_=>{if(Ne(_.currentTarget,xe(_.nativeEvent))&&_.button===0){if(u){let H=a8(_.target);H&&E.disposables.push(H)}_.stopPropagation()}},L.onPointerUp=_=>{!Ne(_.currentTarget,xe(_.nativeEvent))||E.pointerType==="virtual"||_.button===0&&!E.isPressed&&x(_,E.pointerType||_.pointerType)},L.onPointerEnter=_=>{_.pointerId===E.activePointerId&&E.target&&!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,M(it(E.target,_),E.pointerType))},L.onPointerLeave=_=>{_.pointerId===E.activePointerId&&E.target&&E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,y(it(E.target,_),E.pointerType,!1),z(_))};let $=_=>{if(_.pointerId===E.activePointerId&&E.isPressed&&_.button===0&&E.target){if(Ne(E.target,xe(_))&&E.pointerType!=null){let H=!1,W=setTimeout(()=>{E.isPressed&&E.target instanceof HTMLElement&&(H?w(_):(f1(E.target),E.target.click()))},80);I(_.currentTarget,"click",()=>H=!0,!0),E.disposables.push(()=>clearTimeout(W))}else w(_);E.isOverTarget=!1}},X=_=>{w(_)};L.onDragStart=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=_=>{if(_.button!==0||!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(E.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(E.isPressed=!0,E.isOverTarget=!0,E.target=_.currentTarget,E.pointerType=a5(_.nativeEvent)?"virtual":"mouse",C1.flushSync(()=>M(_,E.pointerType))&&_.stopPropagation(),u){let W=a8(_.target);W&&E.disposables.push(W)}I(Pe(_.currentTarget),"mouseup",$,!1)},L.onMouseEnter=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let H=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!0,H=M(_,E.pointerType)),H&&_.stopPropagation()},L.onMouseLeave=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let H=!0;E.isPressed&&!E.ignoreEmulatedMouseEvents&&E.pointerType!=null&&(E.isOverTarget=!1,H=y(_,E.pointerType,!1),z(_)),H&&_.stopPropagation()},L.onMouseUp=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&!E.ignoreEmulatedMouseEvents&&_.button===0&&!E.isPressed&&x(_,E.pointerType||"mouse")};let $=_=>{if(_.button===0){if(E.ignoreEmulatedMouseEvents){E.ignoreEmulatedMouseEvents=!1;return}E.target&&E.target.contains(_.target)&&E.pointerType!=null||w(_),E.isOverTarget=!1}};L.onTouchStart=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;let H=Rm(_.nativeEvent);if(!H)return;E.activePointerId=H.identifier,E.ignoreEmulatedMouseEvents=!0,E.isOverTarget=!0,E.isPressed=!0,E.target=_.currentTarget,E.pointerType="touch",f||g5(E.target),M(W1(E.target,_),E.pointerType)&&_.stopPropagation(),I(d1(_.currentTarget),"scroll",X,!0)},L.onTouchMove=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(!E.isPressed){_.stopPropagation();return}let H=p8(_.nativeEvent,E.activePointerId),W=!0;H&&h8(H,_.currentTarget)?!E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!0,W=M(W1(E.target,_),E.pointerType)):E.isOverTarget&&E.pointerType!=null&&(E.isOverTarget=!1,W=y(W1(E.target,_),E.pointerType,!1),z(W1(E.target,_))),W&&_.stopPropagation()},L.onTouchEnd=_=>{if(!Ne(_.currentTarget,xe(_.nativeEvent)))return;if(!E.isPressed){_.stopPropagation();return}let H=p8(_.nativeEvent,E.activePointerId),W=!0;H&&h8(H,_.currentTarget)&&E.pointerType!=null?(x(W1(E.target,_),E.pointerType),W=y(W1(E.target,_),E.pointerType),C(_.nativeEvent,E.target)):E.isOverTarget&&E.pointerType!=null&&(W=y(W1(E.target,_),E.pointerType,!1)),W&&_.stopPropagation(),E.isPressed=!1,E.activePointerId=null,E.isOverTarget=!1,E.ignoreEmulatedMouseEvents=!0,E.target&&!f&&Nn(E.target),g()},L.onTouchCancel=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&(_.stopPropagation(),E.isPressed&&w(W1(E.target,_)))};let X=_=>{E.isPressed&&Ne(xe(_),E.target)&&w({currentTarget:E.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=_=>{Ne(_.currentTarget,xe(_.nativeEvent))&&w(_)}}return L},[I,a,u,g,f,w,z,y,M,x,A,C]);return c.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const E=Pe(h.current);if(!E||!E.head||E.getElementById(d8))return;const L=E.createElement("style");L.id=d8,L.textContent=`
|
|
76
76
|
@layer {
|
|
77
77
|
[${f8}] {
|
|
78
78
|
touch-action: pan-x pan-y pinch-zoom;
|