@pipedream/connect-react 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect-react.es.js +3468 -3405
- package/dist/connect-react.umd.js +19 -14
- package/package.json +1 -1
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
(function(ee,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react/jsx-runtime"),require("react"),require("@tanstack/react-query"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@tanstack/react-query","@emotion/react","react-dom"],x):(ee=typeof globalThis<"u"?globalThis:ee||self,x(ee["connect-react"]={},ee["react/jsx-runtime"],ee.React,ee.reactQuery,ee["@emotion/react"],ee.ReactDOM))})(this,function(ee,x,C,rt,ne,Va){"use strict";function Na(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ye=Na(C);function _m(){}function Um(){}function Da(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const La=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ma=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,za={};function ci(e,t){return(za.jsx?Ma:La).test(e)}const Ha=/[ \t\n\f\r]/g;function Xa(e){return typeof e=="object"?e.type==="text"?di(e.value):!1:di(e)}function di(e){return e.replace(Ha,"")===""}class Xt{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Xt.prototype.normal={},Xt.prototype.property={},Xt.prototype.space=void 0;function pi(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new Xt(n,i,t)}function Un(e){return e.toLowerCase()}class Ze{constructor(t,n){this.attribute=n,this.property=t}}Ze.prototype.attribute="",Ze.prototype.booleanish=!1,Ze.prototype.boolean=!1,Ze.prototype.commaOrSpaceSeparated=!1,Ze.prototype.commaSeparated=!1,Ze.prototype.defined=!1,Ze.prototype.mustUseProperty=!1,Ze.prototype.number=!1,Ze.prototype.overloadedBoolean=!1,Ze.prototype.property="",Ze.prototype.spaceSeparated=!1,Ze.prototype.space=void 0;let Wa=0;const fe=St(),Ne=St(),qn=St(),W=St(),Se=St(),Gt=St(),Ye=St();function St(){return 2**++Wa}const Qn=Object.freeze(Object.defineProperty({__proto__:null,boolean:fe,booleanish:Ne,commaOrSpaceSeparated:Ye,commaSeparated:Gt,number:W,overloadedBoolean:qn,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),$n=Object.keys(Qn);class Kn extends Ze{constructor(t,n,i,r){let o=-1;if(super(t,n),fi(this,"space",r),typeof i=="number")for(;++o<$n.length;){const l=$n[o];fi(this,$n[o],(i&Qn[l])===Qn[l])}}}Kn.prototype.defined=!0;function fi(e,t,n){n&&(e[t]=n)}function Ot(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const o=new Kn(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[Un(i)]=i,n[Un(o.attribute)]=i}return new Xt(t,n,e.space)}const gi=Ot({properties:{ariaActiveDescendant:null,ariaAtomic:Ne,ariaAutoComplete:null,ariaBusy:Ne,ariaChecked:Ne,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Ne,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Ne,ariaFlowTo:Se,ariaGrabbed:Ne,ariaHasPopup:null,ariaHidden:Ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:W,ariaLive:null,ariaModal:Ne,ariaMultiLine:Ne,ariaMultiSelectable:Ne,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:Ne,ariaReadOnly:Ne,ariaRelevant:null,ariaRequired:Ne,ariaRoleDescription:Se,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:Ne,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hi(e,t){return t in e?e[t]:t}function mi(e,t){return hi(e,t.toLowerCase())}const Ra=Ot({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gt,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:fe,allowPaymentRequest:fe,allowUserMedia:fe,alt:null,as:null,async:fe,autoCapitalize:null,autoComplete:Se,autoFocus:fe,autoPlay:fe,blocking:Se,capture:null,charSet:null,checked:fe,cite:null,className:Se,cols:W,colSpan:null,content:null,contentEditable:Ne,controls:fe,controlsList:Se,coords:W|Gt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fe,defer:fe,dir:null,dirName:null,disabled:fe,download:qn,draggable:Ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fe,formTarget:null,headers:Se,height:W,hidden:qn,high:W,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:fe,inputMode:null,integrity:null,is:null,isMap:fe,itemId:null,itemProp:Se,itemRef:Se,itemScope:fe,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fe,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:fe,muted:fe,name:null,nonce:null,noModule:fe,noValidate:fe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:fe,optimum:W,pattern:null,ping:Se,placeholder:null,playsInline:fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fe,referrerPolicy:null,rel:Se,required:fe,reversed:fe,rows:W,rowSpan:W,sandbox:Se,scope:null,scoped:fe,seamless:fe,selected:fe,shadowRootClonable:fe,shadowRootDelegatesFocus:fe,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:Ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:fe,useMap:null,value:Ne,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fe,declare:fe,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:fe,noHref:fe,noShade:fe,noWrap:fe,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:Ne,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fe,disableRemotePlayback:fe,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:mi}),Za=Ot({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",transformOrigin:"transform-origin",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"},properties:{about:Ye,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Se,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:Gt,g2:Gt,glyphName:Gt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,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:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ye,rev:Ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ye,requiredFeatures:Ye,requiredFonts:Ye,requiredFormats:Ye,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ye,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hi}),bi=Ot({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),yi=Ot({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mi}),vi=Ot({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ja={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"},Ja=/[A-Z]/g,Ii=/-[a-z]/g,Ya=/^data[-\w.:]+$/i;function _a(e,t){const n=Un(t);let i=t,r=Ze;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ya.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Ii,qa);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Ii.test(o)){let l=o.replace(Ja,Ua);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}r=Kn}return new r(i,t)}function Ua(e){return"-"+e.toLowerCase()}function qa(e){return e.charAt(1).toUpperCase()}const Qa=pi([gi,Ra,bi,yi,vi],"html"),er=pi([gi,Za,bi,yi,vi],"svg");function $a(e){return e.join(" ").trim()}var bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={},xi=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ka=/\n/g,es=/^\s*/,ts=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ns=/^:\s*/,rs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,is=/^[;\s]*/,os=/^\s+|\s+$/g,ls=`
|
|
2
|
-
`,Ci="/",Ai="*",wt="",as="comment",ss="declaration";function us(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(v){var y=v.match(Ka);y&&(n+=y.length);var A=v.lastIndexOf(ls);i=~A?v.length-A:i+v.length}function o(){var v={line:n,column:i};return function(y){return y.position=new l(v),u(),y}}function l(v){this.start=v,this.end={line:n,column:i},this.source=t.source}l.prototype.content=e;function a(v){var y=new Error(t.source+":"+n+":"+i+": "+v);if(y.reason=v,y.filename=t.source,y.line=n,y.column=i,y.source=e,!t.silent)throw y}function s(v){var y=v.exec(e);if(y){var A=y[0];return r(A),e=e.slice(A.length),y}}function u(){s(es)}function c(v){var y;for(v=v||[];y=d();)y!==!1&&v.push(y);return v}function d(){var v=o();if(!(Ci!=e.charAt(0)||Ai!=e.charAt(1))){for(var y=2;wt!=e.charAt(y)&&(Ai!=e.charAt(y)||Ci!=e.charAt(y+1));)++y;if(y+=2,wt===e.charAt(y-1))return a("End of comment missing");var A=e.slice(2,y-2);return i+=2,r(A),e=e.slice(y),i+=2,v({type:as,comment:A})}}function f(){var v=o(),y=s(ts);if(y){if(d(),!s(ns))return a("property missing ':'");var A=s(rs),m=v({type:ss,property:Si(y[0].replace(xi,wt)),value:A?Si(A[0].replace(xi,wt)):wt});return s(is),m}}function p(){var v=[];c(v);for(var y;y=f();)y!==!1&&(v.push(y),c(v));return v}return u(),p()}function Si(e){return e?e.replace(os,wt):wt}var cs=us,ds=bt&&bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=fs;const ps=ds(cs);function fs(e,t){let n=null;if(!e||typeof e!="string")return n;const i=(0,ps.default)(e),r=typeof t=="function";return i.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;r?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln.camelCase=void 0;var gs=/^--[a-zA-Z0-9_-]+$/,hs=/-([a-z])/g,ms=/^[^-]+$/,bs=/^-(webkit|moz|ms|o|khtml)-/,ys=/^-(ms)-/,vs=function(e){return!e||ms.test(e)||gs.test(e)},Is=function(e,t){return t.toUpperCase()},wi=function(e,t){return"".concat(t,"-")},xs=function(e,t){return t===void 0&&(t={}),vs(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(ys,wi):e=e.replace(bs,wi),e.replace(hs,Is))};ln.camelCase=xs;var Cs=bt&&bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},As=Cs(nr),Ss=ln;function rr(e,t){var n={};return!e||typeof e!="string"||(0,As.default)(e,function(i,r){i&&r&&(n[(0,Ss.camelCase)(i,t)]=r)}),n}rr.default=rr;var ws=rr;const Es=tr(ws),Ei=ki("end"),ir=ki("start");function ki(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function ks(e){const t=ir(e),n=Ei(e);if(t&&n)return{start:t,end:n}}function Wt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pi(e.position):"start"in e||"end"in e?Pi(e):"line"in e||"column"in e?or(e):""}function or(e){return Bi(e&&e.line)+":"+Bi(e&&e.column)}function Pi(e){return or(e&&e.start)+"-"+or(e&&e.end)}function Bi(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?r=t:!o.cause&&t&&(l=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const s=i.indexOf(":");s===-1?o.ruleId=i:(o.source=i.slice(0,s),o.ruleId=i.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=Wt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}He.prototype.file="",He.prototype.name="",He.prototype.reason="",He.prototype.message="",He.prototype.stack="",He.prototype.column=void 0,He.prototype.line=void 0,He.prototype.ancestors=void 0,He.prototype.cause=void 0,He.prototype.fatal=void 0,He.prototype.place=void 0,He.prototype.ruleId=void 0,He.prototype.source=void 0;const lr={}.hasOwnProperty,Ps=new Map,Bs=/[A-Z]/g,Fs=new Set(["table","tbody","thead","tfoot","tr"]),Ts=new Set(["td","th"]),Fi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gs(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Hs(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=zs(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?er:Qa,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ti(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function Ti(e,t,n){if(t.type==="element")return Os(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Vs(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ds(e,t,n);if(t.type==="mdxjsEsm")return Ns(e,t);if(t.type==="root")return Ls(e,t,n);if(t.type==="text")return Ms(e,t)}function Os(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=er,e.schema=r),e.ancestors.push(t);const o=Oi(e,t.tagName,!1),l=Xs(e,t);let a=sr(e,t);return Fs.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Xa(s):!0})),Gi(e,l,o,t),ar(l,a),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function Vs(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Rt(e,t.position)}function Ns(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Rt(e,t.position)}function Ds(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=er,e.schema=r),e.ancestors.push(t);const o=t.name===null?e.Fragment:Oi(e,t.name,!0),l=Ws(e,t),a=sr(e,t);return Gi(e,l,o,t),ar(l,a),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function Ls(e,t,n){const i={};return ar(i,sr(e,t)),e.create(t,e.Fragment,i,n)}function Ms(e,t){return t.value}function Gi(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function ar(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function zs(e,t,n){return i;function i(r,o,l,a){const u=Array.isArray(l.children)?n:t;return a?u(o,l,a):u(o,l)}}function Hs(e,t){return n;function n(i,r,o,l){const a=Array.isArray(o.children),s=ir(i);return t(r,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Xs(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&lr.call(t.properties,r)){const o=Rs(e,r,t.properties[r]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Ts.has(t.tagName)?i=a:n[l]=a}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Ws(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Rt(e,t.position);else{const r=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const a=i.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Rt(e,t.position);else o=i.value===null?!0:i.value;n[r]=o}return n}function sr(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Ps;for(;++i<t.children.length;){const o=t.children[i];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=r.get(s)||0;l=s+"-"+u,r.set(s,u+1)}}const a=Ti(e,o,l);a!==void 0&&n.push(a)}return n}function Rs(e,t,n){const i=_a(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Da(n):$a(n)),i.property==="style"){let r=typeof n=="object"?n:Zs(e,String(n));return e.stylePropertyNameCase==="css"&&(r=js(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?ja[i.property]||i.property:i.attribute,n]}}function Zs(e,t){try{return Es(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new He("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Fi+"#cannot-parse-style-attribute",r}}function Oi(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let o=-1,l;for(;++o<r.length;){const a=ci(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}i=l}else i=ci(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return lr.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Rt(e)}function Rt(e,t){const n=new He("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Fi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function js(e){const t={};let n;for(n in e)lr.call(e,n)&&(t[Js(n)]=e[n]);return t}function Js(e){let t=e.replace(Bs,Ys);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ys(e){return"-"+e.toLowerCase()}const ur={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_s={};function Us(e,t){const n=_s,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Vi(e,i,r)}function Vi(e,t,n){if(qs(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ni(e.children,t,n)}return Array.isArray(e)?Ni(e,t,n):""}function Ni(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Vi(e[r],t,n);return i.join("")}function qs(e){return!!(e&&typeof e=="object")}const an={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
3
|
-
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Qs={}.hasOwnProperty;function Di(e){return Qs.call(an,e)?an[e]:!1}function it(e,t,n,i){const r=e.length;let o=0,l;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)l=Array.from(i),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<i.length;)l=i.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function qe(e,t){return e.length>0?(it(e,e.length,0,t),e):t}const Li={}.hasOwnProperty;function $s(e){const t={};let n=-1;for(;++n<e.length;)Ks(t,e[n]);return t}function Ks(e,t){let n;for(n in t){const r=(Li.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Li.call(r,l)||(r[l]=[]);const a=o[l];eu(r[l],Array.isArray(a)?a:a?[a]:[])}}}function eu(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);it(e,0,0,i)}function Mi(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Vt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ot=yt(/[A-Za-z]/),_e=yt(/[\dA-Za-z]/),tu=yt(/[#-'*+\--9=?A-Z^-~]/);function cr(e){return e!==null&&(e<32||e===127)}const dr=yt(/\d/),nu=yt(/[\dA-Fa-f]/),ru=yt(/[!-/:-@[-`{-~]/);function ae(e){return e!==null&&e<-2}function je(e){return e!==null&&(e<0||e===32)}function ve(e){return e===-2||e===-1||e===32}const iu=yt(new RegExp("\\p{P}|\\p{S}","u")),ou=yt(/\s/);function yt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Nt(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&_e(e.charCodeAt(n+1))&&_e(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),r=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(i,n),encodeURIComponent(l)),i=n+r+1,l=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function we(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return ve(s)?(e.enter(n),a(s)):t(s)}function a(s){return ve(s)&&o++<r?(e.consume(s),a):(e.exit(n),t(s))}}const lu={tokenize:au};function au(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),we(e,t,"linePrefix")}function r(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return ae(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const su={tokenize:uu},zi={tokenize:cu};function uu(e){const t=this,n=[];let i=0,r,o,l;return a;function a(w){if(i<n.length){const k=n[i];return t.containerState=k[1],e.attempt(k[0].continuation,s,u)(w)}return u(w)}function s(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&B();const k=t.events.length;let T=k,I;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){I=t.events[T][1].end;break}m(i);let H=k;for(;H<t.events.length;)t.events[H][1].end={...I},H++;return it(t.events,T+1,0,t.events.slice(k)),t.events.length=H,u(w)}return a(w)}function u(w){if(i===n.length){if(!r)return f(w);if(r.currentConstruct&&r.currentConstruct.concrete)return v(w);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zi,c,d)(w)}function c(w){return r&&B(),m(i),f(w)}function d(w){return t.parser.lazy[t.now().line]=i!==n.length,l=t.now().offset,v(w)}function f(w){return t.containerState={},e.attempt(zi,p,v)(w)}function p(w){return i++,n.push([t.currentConstruct,t.containerState]),f(w)}function v(w){if(w===null){r&&B(),m(0),e.consume(w);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),y(w)}function y(w){if(w===null){A(e.exit("chunkFlow"),!0),m(0),e.consume(w);return}return ae(w)?(e.consume(w),A(e.exit("chunkFlow")),i=0,t.interrupt=void 0,a):(e.consume(w),y)}function A(w,k){const T=t.sliceStream(w);if(k&&T.push(null),w.previous=o,o&&(o.next=w),o=w,r.defineSkip(w.start),r.write(T),t.parser.lazy[w.start.line]){let I=r.events.length;for(;I--;)if(r.events[I][1].start.offset<l&&(!r.events[I][1].end||r.events[I][1].end.offset>l))return;const H=t.events.length;let G=H,V,E;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(V){E=t.events[G][1].end;break}V=!0}for(m(i),I=H;I<t.events.length;)t.events[I][1].end={...E},I++;it(t.events,G+1,0,t.events.slice(H)),t.events.length=I}}function m(w){let k=n.length;for(;k-- >w;){const T=n[k];t.containerState=T[1],T[0].exit.call(t,e)}n.length=w}function B(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function cu(e,t,n){return we(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Hi(e){if(e===null||je(e)||ou(e))return 1;if(iu(e))return 2}function pr(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const fr={name:"attention",resolveAll:du,tokenize:pu};function du(e,t){let n=-1,i,r,o,l,a,s,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};Xi(d,-s),Xi(f,s),l={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[i][1].end={...l.start},e[n][1].start={...a.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=qe(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=qe(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=qe(u,pr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=qe(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=qe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,it(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function pu(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Hi(i);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),c=Hi(s),d=!c||c===2&&r||n.includes(s),f=!r||r===2&&c||n.includes(i);return u._open=!!(o===42?d:d&&(r||!f)),u._close=!!(o===42?f:f&&(c||!d)),t(s)}}function Xi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fu={name:"autolink",tokenize:gu};function gu(e,t,n){let i=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return ot(p)?(e.consume(p),l):p===64?n(p):u(p)}function l(p){return p===43||p===45||p===46||_e(p)?(i=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),i=0,s):(p===43||p===45||p===46||_e(p))&&i++<32?(e.consume(p),a):(i=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||cr(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),c):tu(p)?(e.consume(p),u):n(p)}function c(p){return _e(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),i=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||_e(p))&&i++<63){const v=p===45?f:d;return e.consume(p),v}return n(p)}}const sn={partial:!0,tokenize:hu};function hu(e,t,n){return i;function i(o){return ve(o)?we(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||ae(o)?t(o):n(o)}}const Wi={continuation:{tokenize:bu},exit:yu,name:"blockQuote",tokenize:mu};function mu(e,t,n){const i=this;return r;function r(l){if(l===62){const a=i.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return ve(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function bu(e,t,n){const i=this;return r;function r(l){return ve(l)?we(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Wi,t,n)(l)}}function yu(e){e.exit("blockQuote")}const Ri={name:"characterEscape",tokenize:vu};function vu(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return ru(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Zi={name:"characterReference",tokenize:Iu};function Iu(e,t,n){const i=this;let r=0,o,l;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=_e,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=nu,c):(e.enter("characterReferenceValue"),o=7,l=dr,c(d))}function c(d){if(d===59&&r){const f=e.exit("characterReferenceValue");return l===_e&&!Di(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(d)&&r++<o?(e.consume(d),c):n(d)}}const ji={partial:!0,tokenize:Cu},Ji={concrete:!0,name:"codeFenced",tokenize:xu};function xu(e,t,n){const i=this,r={partial:!0,tokenize:T};let o=0,l=0,a;return s;function s(I){return u(I)}function u(I){const H=i.events[i.events.length-1];return o=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,a=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(I)}function c(I){return I===a?(l++,e.consume(I),c):l<3?n(I):(e.exit("codeFencedFenceSequence"),ve(I)?we(e,d,"whitespace")(I):d(I))}function d(I){return I===null||ae(I)?(e.exit("codeFencedFence"),i.interrupt?t(I):e.check(ji,y,k)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(I))}function f(I){return I===null||ae(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(I)):ve(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),we(e,p,"whitespace")(I)):I===96&&I===a?n(I):(e.consume(I),f)}function p(I){return I===null||ae(I)?d(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(I))}function v(I){return I===null||ae(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(I)):I===96&&I===a?n(I):(e.consume(I),v)}function y(I){return e.attempt(r,k,A)(I)}function A(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),m}function m(I){return o>0&&ve(I)?we(e,B,"linePrefix",o+1)(I):B(I)}function B(I){return I===null||ae(I)?e.check(ji,y,k)(I):(e.enter("codeFlowValue"),w(I))}function w(I){return I===null||ae(I)?(e.exit("codeFlowValue"),B(I)):(e.consume(I),w)}function k(I){return e.exit("codeFenced"),t(I)}function T(I,H,G){let V=0;return E;function E(j){return I.enter("lineEnding"),I.consume(j),I.exit("lineEnding"),L}function L(j){return I.enter("codeFencedFence"),ve(j)?we(I,D,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):D(j)}function D(j){return j===a?(I.enter("codeFencedFenceSequence"),R(j)):G(j)}function R(j){return j===a?(V++,I.consume(j),R):V>=l?(I.exit("codeFencedFenceSequence"),ve(j)?we(I,_,"whitespace")(j):_(j)):G(j)}function _(j){return j===null||ae(j)?(I.exit("codeFencedFence"),H(j)):G(j)}}}function Cu(e,t,n){const i=this;return r;function r(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}const gr={name:"codeIndented",tokenize:Su},Au={partial:!0,tokenize:wu};function Su(e,t,n){const i=this;return r;function r(u){return e.enter("codeIndented"),we(e,o,"linePrefix",5)(u)}function o(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?s(u):ae(u)?e.attempt(Au,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||ae(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function wu(e,t,n){const i=this;return r;function r(l){return i.parser.lazy[i.now().line]?n(l):ae(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r):we(e,o,"linePrefix",5)(l)}function o(l){const a=i.events[i.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):ae(l)?r(l):n(l)}}const Eu={name:"codeText",previous:Pu,resolve:ku,tokenize:Bu};function ku(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function Pu(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Bu(e,t,n){let i=0,r,o;return l;function l(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),i++,a):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(o=e.enter("codeTextSequence"),r=0,c(d)):ae(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||ae(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class Fu{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Zt(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zt(this.left,n.reverse())}}}function Zt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Yi(e){const t={};let n=-1,i,r,o,l,a,s,u;const c=new Fu(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,Tu(c,n)),n=t[n],u=!0);else if(i[1]._container){for(o=n,r=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),l[1].type="lineEnding",r=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;r&&(i[1].end={...c.get(r)[1].start},a=c.slice(r,n),a.unshift(i),c.splice(r,n-r+1,a))}}return it(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Tu(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const o=[];let l=n._tokenizer;l||(l=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let c,d,f=-1,p=n,v=0,y=0;const A=[y];for(;p;){for(;e.get(++r)[1]!==p;);o.push(r),p._tokenizer||(c=i.sliceStream(p),p.next||c.push(null),d&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(y=f+1,A.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):A.pop(),f=A.length;f--;){const m=a.slice(A[f],A[f+1]),B=o.pop();s.push([B,B+m.length-1]),e.splice(B,2,m)}for(s.reverse(),f=-1;++f<s.length;)u[v+s[f][0]]=v+s[f][1],v+=s[f][1]-s[f][0]-1;return u}const Gu={resolve:Vu,tokenize:Nu},Ou={partial:!0,tokenize:Du};function Vu(e){return Yi(e),e}function Nu(e,t){let n;return i;function i(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(a)}function r(a){return a===null?o(a):ae(a)?e.check(Ou,l,o)(a):(e.consume(a),r)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function Du(e,t,n){const i=this;return r;function r(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),we(e,o,"linePrefix")}function o(l){if(l===null||ae(l))return n(l);const a=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(i.parser.constructs.flow,n,t)(l)}}function _i(e,t,n,i,r,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(m){return m===60?(e.enter(i),e.enter(r),e.enter(o),e.consume(m),e.exit(o),f):m===null||m===32||m===41||cr(m)?n(m):(e.enter(i),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(m))}function f(m){return m===62?(e.enter(o),e.consume(m),e.exit(o),e.exit(r),e.exit(i),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(a),f(m)):m===null||m===60||ae(m)?n(m):(e.consume(m),m===92?v:p)}function v(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function y(m){return!c&&(m===null||m===41||je(m))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(i),t(m)):c<u&&m===40?(e.consume(m),c++,y):m===41?(e.consume(m),c--,y):m===null||m===32||m===40||cr(m)?n(m):(e.consume(m),m===92?A:y)}function A(m){return m===40||m===41||m===92?(e.consume(m),y):y(m)}}function Ui(e,t,n,i,r,o){const l=this;let a=0,s;return u;function u(p){return e.enter(i),e.enter(r),e.consume(p),e.exit(r),e.enter(o),c}function c(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(r),e.consume(p),e.exit(r),e.exit(i),t):ae(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ae(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!ve(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function qi(e,t,n,i,r,o){let l;return a;function a(f){return f===34||f===39||f===40?(e.enter(i),e.enter(r),e.consume(f),e.exit(r),l=f===40?41:f,s):n(f)}function s(f){return f===l?(e.enter(r),e.consume(f),e.exit(r),e.exit(i),t):(e.enter(o),u(f))}function u(f){return f===l?(e.exit(o),s(l)):f===null?n(f):ae(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),we(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===l||f===null||ae(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===l||f===92?(e.consume(f),c):c(f)}}function jt(e,t){let n;return i;function i(r){return ae(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):ve(r)?we(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const Lu={name:"definition",tokenize:zu},Mu={partial:!0,tokenize:Hu};function zu(e,t,n){const i=this;let r;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Ui.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return r=Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return je(p)?jt(e,u)(p):u(p)}function u(p){return _i(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Mu,d,d)(p)}function d(p){return ve(p)?we(e,f,"whitespace")(p):f(p)}function f(p){return p===null||ae(p)?(e.exit("definition"),i.parser.defined.push(r),t(p)):n(p)}}function Hu(e,t,n){return i;function i(a){return je(a)?jt(e,r)(a):n(a)}function r(a){return qi(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ve(a)?we(e,l,"whitespace")(a):l(a)}function l(a){return a===null||ae(a)?t(a):n(a)}}const Xu={name:"hardBreakEscape",tokenize:Wu};function Wu(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return ae(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ru={name:"headingAtx",resolve:Zu,tokenize:ju};function Zu(e,t){let n=e.length-2,i=3,r,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},it(e,i,n-i+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function ju(e,t,n){let i=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&i++<6?(e.consume(c),l):c===null||je(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||ae(c)?(e.exit("atxHeading"),t(c)):ve(c)?we(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||je(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Ju=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Qi=["pre","script","style","textarea"],Yu={concrete:!0,name:"htmlFlow",resolveTo:qu,tokenize:Qu},_u={partial:!0,tokenize:Ku},Uu={partial:!0,tokenize:$u};function qu(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Qu(e,t,n){const i=this;let r,o,l,a,s;return u;function u(b){return c(b)}function c(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),d}function d(b){return b===33?(e.consume(b),f):b===47?(e.consume(b),o=!0,y):b===63?(e.consume(b),r=3,i.interrupt?t:g):ot(b)?(e.consume(b),l=String.fromCharCode(b),A):n(b)}function f(b){return b===45?(e.consume(b),r=2,p):b===91?(e.consume(b),r=5,a=0,v):ot(b)?(e.consume(b),r=4,i.interrupt?t:g):n(b)}function p(b){return b===45?(e.consume(b),i.interrupt?t:g):n(b)}function v(b){const he="CDATA[";return b===he.charCodeAt(a++)?(e.consume(b),a===he.length?i.interrupt?t:D:v):n(b)}function y(b){return ot(b)?(e.consume(b),l=String.fromCharCode(b),A):n(b)}function A(b){if(b===null||b===47||b===62||je(b)){const he=b===47,te=l.toLowerCase();return!he&&!o&&Qi.includes(te)?(r=1,i.interrupt?t(b):D(b)):Ju.includes(l.toLowerCase())?(r=6,he?(e.consume(b),m):i.interrupt?t(b):D(b)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(b):o?B(b):w(b))}return b===45||_e(b)?(e.consume(b),l+=String.fromCharCode(b),A):n(b)}function m(b){return b===62?(e.consume(b),i.interrupt?t:D):n(b)}function B(b){return ve(b)?(e.consume(b),B):E(b)}function w(b){return b===47?(e.consume(b),E):b===58||b===95||ot(b)?(e.consume(b),k):ve(b)?(e.consume(b),w):E(b)}function k(b){return b===45||b===46||b===58||b===95||_e(b)?(e.consume(b),k):T(b)}function T(b){return b===61?(e.consume(b),I):ve(b)?(e.consume(b),T):w(b)}function I(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),s=b,H):ve(b)?(e.consume(b),I):G(b)}function H(b){return b===s?(e.consume(b),s=null,V):b===null||ae(b)?n(b):(e.consume(b),H)}function G(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||je(b)?T(b):(e.consume(b),G)}function V(b){return b===47||b===62||ve(b)?w(b):n(b)}function E(b){return b===62?(e.consume(b),L):n(b)}function L(b){return b===null||ae(b)?D(b):ve(b)?(e.consume(b),L):n(b)}function D(b){return b===45&&r===2?(e.consume(b),Z):b===60&&r===1?(e.consume(b),ue):b===62&&r===4?(e.consume(b),se):b===63&&r===3?(e.consume(b),g):b===93&&r===5?(e.consume(b),N):ae(b)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(_u,q,R)(b)):b===null||ae(b)?(e.exit("htmlFlowData"),R(b)):(e.consume(b),D)}function R(b){return e.check(Uu,_,q)(b)}function _(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),j}function j(b){return b===null||ae(b)?R(b):(e.enter("htmlFlowData"),D(b))}function Z(b){return b===45?(e.consume(b),g):D(b)}function ue(b){return b===47?(e.consume(b),l="",pe):D(b)}function pe(b){if(b===62){const he=l.toLowerCase();return Qi.includes(he)?(e.consume(b),se):D(b)}return ot(b)&&l.length<8?(e.consume(b),l+=String.fromCharCode(b),pe):D(b)}function N(b){return b===93?(e.consume(b),g):D(b)}function g(b){return b===62?(e.consume(b),se):b===45&&r===2?(e.consume(b),g):D(b)}function se(b){return b===null||ae(b)?(e.exit("htmlFlowData"),q(b)):(e.consume(b),se)}function q(b){return e.exit("htmlFlow"),t(b)}}function $u(e,t,n){const i=this;return r;function r(l){return ae(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}function Ku(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(sn,t,n)}}const ec={name:"htmlText",tokenize:tc};function tc(e,t,n){const i=this;let r,o,l;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),s}function s(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),T):g===63?(e.consume(g),w):ot(g)?(e.consume(g),G):n(g)}function u(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,v):ot(g)?(e.consume(g),B):n(g)}function c(g){return g===45?(e.consume(g),p):n(g)}function d(g){return g===null?n(g):g===45?(e.consume(g),f):ae(g)?(l=d,ue(g)):(e.consume(g),d)}function f(g){return g===45?(e.consume(g),p):d(g)}function p(g){return g===62?Z(g):g===45?f(g):d(g)}function v(g){const se="CDATA[";return g===se.charCodeAt(o++)?(e.consume(g),o===se.length?y:v):n(g)}function y(g){return g===null?n(g):g===93?(e.consume(g),A):ae(g)?(l=y,ue(g)):(e.consume(g),y)}function A(g){return g===93?(e.consume(g),m):y(g)}function m(g){return g===62?Z(g):g===93?(e.consume(g),m):y(g)}function B(g){return g===null||g===62?Z(g):ae(g)?(l=B,ue(g)):(e.consume(g),B)}function w(g){return g===null?n(g):g===63?(e.consume(g),k):ae(g)?(l=w,ue(g)):(e.consume(g),w)}function k(g){return g===62?Z(g):w(g)}function T(g){return ot(g)?(e.consume(g),I):n(g)}function I(g){return g===45||_e(g)?(e.consume(g),I):H(g)}function H(g){return ae(g)?(l=H,ue(g)):ve(g)?(e.consume(g),H):Z(g)}function G(g){return g===45||_e(g)?(e.consume(g),G):g===47||g===62||je(g)?V(g):n(g)}function V(g){return g===47?(e.consume(g),Z):g===58||g===95||ot(g)?(e.consume(g),E):ae(g)?(l=V,ue(g)):ve(g)?(e.consume(g),V):Z(g)}function E(g){return g===45||g===46||g===58||g===95||_e(g)?(e.consume(g),E):L(g)}function L(g){return g===61?(e.consume(g),D):ae(g)?(l=L,ue(g)):ve(g)?(e.consume(g),L):V(g)}function D(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),r=g,R):ae(g)?(l=D,ue(g)):ve(g)?(e.consume(g),D):(e.consume(g),_)}function R(g){return g===r?(e.consume(g),r=void 0,j):g===null?n(g):ae(g)?(l=R,ue(g)):(e.consume(g),R)}function _(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||je(g)?V(g):(e.consume(g),_)}function j(g){return g===47||g===62||je(g)?V(g):n(g)}function Z(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function ue(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),pe}function pe(g){return ve(g)?we(e,N,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):N(g)}function N(g){return e.enter("htmlTextData"),l(g)}}const hr={name:"labelEnd",resolveAll:oc,resolveTo:lc,tokenize:ac},nc={tokenize:sc},rc={tokenize:uc},ic={tokenize:cc};function oc(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&it(e,0,e.length,n),e}function lc(e,t){let n=e.length,i=0,r,o,l,a;for(;n--;)if(r=e[n][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=qe(a,e.slice(o+1,o+i+3)),a=qe(a,[["enter",c,t]]),a=qe(a,pr(t.parser.constructs.insideSpan.null,e.slice(o+i+4,l-3),t)),a=qe(a,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),a=qe(a,e.slice(l+1)),a=qe(a,[["exit",s,t]]),it(e,o,e.length,a),e}function ac(e,t,n){const i=this;let r=i.events.length,o,l;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){o=i.events[r][1];break}return a;function a(f){return o?o._inactive?d(f):(l=i.parser.defined.includes(Vt(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):n(f)}function s(f){return f===40?e.attempt(nc,c,l?c:d)(f):f===91?e.attempt(rc,c,l?u:d)(f):l?c(f):d(f)}function u(f){return e.attempt(ic,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function sc(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return je(d)?jt(e,o)(d):o(d)}function o(d){return d===41?c(d):_i(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return je(d)?jt(e,s)(d):c(d)}function a(d){return n(d)}function s(d){return d===34||d===39||d===40?qi(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return je(d)?jt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function uc(e,t,n){const i=this;return r;function r(a){return Ui.call(i,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return i.parser.defined.includes(Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function cc(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const dc={name:"labelStartImage",resolveAll:hr.resolveAll,tokenize:pc};function pc(e,t,n){const i=this;return r;function r(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):t(a)}}const fc={name:"labelStartLink",resolveAll:hr.resolveAll,tokenize:gc};function gc(e,t,n){const i=this;return r;function r(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const mr={name:"lineEnding",tokenize:hc};function hc(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),we(e,t,"linePrefix")}}const un={name:"thematicBreak",tokenize:mc};function mc(e,t,n){let i=0,r;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return r=u,a(u)}function a(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):i>=3&&(u===null||ae(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===r?(e.consume(u),i++,s):(e.exit("thematicBreakSequence"),ve(u)?we(e,a,"whitespace")(u):a(u))}}const Je={continuation:{tokenize:Ic},exit:Cc,name:"list",tokenize:vc},bc={partial:!0,tokenize:Ac},yc={partial:!0,tokenize:xc};function vc(e,t,n){const i=this,r=i.events[i.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,l=0;return a;function a(p){const v=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:dr(p)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(un,n,u)(p):u(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return dr(p)&&++l<10?(e.consume(p),s):(!i.interrupt||l<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(sn,i.interrupt?n:c,e.attempt(bc,f,d))}function c(p){return i.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return ve(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Ic(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(sn,r,o);function r(a){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,we(e,t,"listItemIndent",i.containerState.size+1)(a)}function o(a){return i.containerState.furtherBlankLines||!ve(a)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,l(a)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(yc,t,l)(a))}function l(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,we(e,e.attempt(Je,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function xc(e,t,n){const i=this;return we(e,r,"listItemIndent",i.containerState.size+1);function r(o){const l=i.events[i.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===i.containerState.size?t(o):n(o)}}function Cc(e){e.exit(this.containerState.type)}function Ac(e,t,n){const i=this;return we(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const l=i.events[i.events.length-1];return!ve(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const $i={name:"setextUnderline",resolveTo:Sc,tokenize:wc};function Sc(e,t){let n=e.length,i,r,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=l,e.push(["exit",l,t]),e}function wc(e,t,n){const i=this;let r;return o;function o(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===r?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ve(u)?we(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||ae(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Ec={tokenize:kc};function kc(e){const t=this,n=e.attempt(sn,i,e.attempt(this.parser.constructs.flowInitial,r,we(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Gu,r)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Pc={resolveAll:eo()},Bc=Ki("string"),Fc=Ki("text");function Ki(e){return{resolveAll:eo(e==="text"?Tc:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],o=n.attempt(r,l,a);return l;function l(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=r[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function eo(e){return t;function t(n,i){let r=-1,o;for(;++r<=n.length;)o===void 0?n[r]&&n[r][1].type==="data"&&(o=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==o+2&&(n[o][1].end=n[r-1][1].end,n.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(n,i):n}}function Tc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let o=r.length,l=-1,a=0,s;for(;o--;){const u=r[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:i.start._bufferIndex+l,_index:i.start._index+o,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Gc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Lu},disable:{null:[]},document:{42:Je,43:Je,45:Je,48:Je,49:Je,50:Je,51:Je,52:Je,53:Je,54:Je,55:Je,56:Je,57:Je,62:Wi},flow:{35:Ru,42:un,45:[$i,un],60:Yu,61:$i,95:un,96:Ji,126:Ji},flowInitial:{[-2]:gr,[-1]:gr,32:gr},insideSpan:{null:[fr,Pc]},string:{38:Zi,92:Ri},text:{[-5]:mr,[-4]:mr,[-3]:mr,33:dc,38:Zi,42:fr,60:[fu,ec],91:fc,92:[Xu,Ri],93:hr,95:fr,96:Eu}},Symbol.toStringTag,{value:"Module"}));function Oc(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},o=[];let l=[],a=[];const s={attempt:H(T),check:H(I),consume:B,enter:w,exit:k,interrupt:H(I,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:v,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function d(L){return l=qe(l,L),A(),l[l.length-1]!==null?[]:(G(t,0),u.events=pr(o,u.events,u),u.events)}function f(L,D){return Nc(p(L),D)}function p(L){return Vc(l,L)}function v(){const{_bufferIndex:L,_index:D,line:R,column:_,offset:j}=i;return{_bufferIndex:L,_index:D,line:R,column:_,offset:j}}function y(L){r[L.line]=L.column,E()}function A(){let L;for(;i._index<l.length;){const D=l[i._index];if(typeof D=="string")for(L=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===L&&i._bufferIndex<D.length;)m(D.charCodeAt(i._bufferIndex));else m(D)}}function m(L){c=c(L)}function B(L){ae(L)?(i.line++,i.column=1,i.offset+=L===-3?2:1,E()):L!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===l[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=L}function w(L,D){const R=D||{};return R.type=L,R.start=v(),u.events.push(["enter",R,u]),a.push(R),R}function k(L){const D=a.pop();return D.end=v(),u.events.push(["exit",D,u]),D}function T(L,D){G(L,D.from)}function I(L,D){D.restore()}function H(L,D){return R;function R(_,j,Z){let ue,pe,N,g;return Array.isArray(_)?q(_):"tokenize"in _?q([_]):se(_);function se(Q){return Ae;function Ae(me){const Ve=me!==null&&Q[me],ce=me!==null&&Q.null,Ee=[...Array.isArray(Ve)?Ve:Ve?[Ve]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return q(Ee)(me)}}function q(Q){return ue=Q,pe=0,Q.length===0?Z:b(Q[pe])}function b(Q){return Ae;function Ae(me){return g=V(),N=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?te():Q.tokenize.call(D?Object.assign(Object.create(u),D):u,s,he,te)(me)}}function he(Q){return L(N,g),j}function te(Q){return g.restore(),++pe<ue.length?b(ue[pe]):Z}}}function G(L,D){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&it(u.events,D,u.events.length-D,L.resolve(u.events.slice(D),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function V(){const L=v(),D=u.previous,R=u.currentConstruct,_=u.events.length,j=Array.from(a);return{from:_,restore:Z};function Z(){i=L,u.previous=D,u.currentConstruct=R,u.events.length=_,a=j,E()}}function E(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function Vc(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let l;if(n===r)l=[e[n].slice(i,o)];else{if(l=e.slice(n,r),i>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(i):l.shift()}o>0&&l.push(e[r].slice(0,o))}return l}function Nc(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
1
|
+
(function(K,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react/jsx-runtime"),require("react"),require("@tanstack/react-query"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@tanstack/react-query","@emotion/react","react-dom"],I):(K=typeof globalThis<"u"?globalThis:K||self,I(K["connect-react"]={},K["react/jsx-runtime"],K.React,K.reactQuery,K["@emotion/react"],K.ReactDOM))})(this,function(K,I,C,nt,te,Na){"use strict";function Da(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const me=Da(C);function qm(){}function Qm(){}function La(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ma=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,za=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ha={};function ci(e,t){return(Ha.jsx?za:Ma).test(e)}const Xa=/[ \t\n\f\r]/g;function Wa(e){return typeof e=="object"?e.type==="text"?di(e.value):!1:di(e)}function di(e){return e.replace(Xa,"")===""}class Xt{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Xt.prototype.normal={},Xt.prototype.property={},Xt.prototype.space=void 0;function pi(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new Xt(n,i,t)}function Un(e){return e.toLowerCase()}class Re{constructor(t,n){this.attribute=n,this.property=t}}Re.prototype.attribute="",Re.prototype.booleanish=!1,Re.prototype.boolean=!1,Re.prototype.commaOrSpaceSeparated=!1,Re.prototype.commaSeparated=!1,Re.prototype.defined=!1,Re.prototype.mustUseProperty=!1,Re.prototype.number=!1,Re.prototype.overloadedBoolean=!1,Re.prototype.property="",Re.prototype.spaceSeparated=!1,Re.prototype.space=void 0;let Ra=0;const de=St(),Ve=St(),qn=St(),W=St(),Ae=St(),Gt=St(),Je=St();function St(){return 2**++Ra}const Qn=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:Ve,commaOrSpaceSeparated:Je,commaSeparated:Gt,number:W,overloadedBoolean:qn,spaceSeparated:Ae},Symbol.toStringTag,{value:"Module"})),$n=Object.keys(Qn);class Kn extends Re{constructor(t,n,i,r){let o=-1;if(super(t,n),fi(this,"space",r),typeof i=="number")for(;++o<$n.length;){const l=$n[o];fi(this,$n[o],(i&Qn[l])===Qn[l])}}}Kn.prototype.defined=!0;function fi(e,t,n){n&&(e[t]=n)}function Ot(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const o=new Kn(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[Un(i)]=i,n[Un(o.attribute)]=i}return new Xt(t,n,e.space)}const gi=Ot({properties:{ariaActiveDescendant:null,ariaAtomic:Ve,ariaAutoComplete:null,ariaBusy:Ve,ariaChecked:Ve,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Ae,ariaCurrent:null,ariaDescribedBy:Ae,ariaDetails:null,ariaDisabled:Ve,ariaDropEffect:Ae,ariaErrorMessage:null,ariaExpanded:Ve,ariaFlowTo:Ae,ariaGrabbed:Ve,ariaHasPopup:null,ariaHidden:Ve,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ae,ariaLevel:W,ariaLive:null,ariaModal:Ve,ariaMultiLine:Ve,ariaMultiSelectable:Ve,ariaOrientation:null,ariaOwns:Ae,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:Ve,ariaReadOnly:Ve,ariaRelevant:null,ariaRequired:Ve,ariaRoleDescription:Ae,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:Ve,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hi(e,t){return t in e?e[t]:t}function mi(e,t){return hi(e,t.toLowerCase())}const Za=Ot({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gt,acceptCharset:Ae,accessKey:Ae,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Ae,autoFocus:de,autoPlay:de,blocking:Ae,capture:null,charSet:null,checked:de,cite:null,className:Ae,cols:W,colSpan:null,content:null,contentEditable:Ve,controls:de,controlsList:Ae,coords:W|Gt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:qn,draggable:Ve,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Ae,height:W,hidden:qn,high:W,href:null,hrefLang:null,htmlFor:Ae,httpEquiv:Ae,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Ae,itemRef:Ae,itemScope:de,itemType:Ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:de,optimum:W,pattern:null,ping:Ae,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Ae,required:de,reversed:de,rows:W,rowSpan:W,sandbox:Ae,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:Ve,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:Ve,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ae,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:Ve,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:mi}),ja=Ot({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",transformOrigin:"transform-origin",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"},properties:{about:Je,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Ae,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:Gt,g2:Gt,glyphName:Gt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Je,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,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:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Je,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Je,rev:Je,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Je,requiredFeatures:Je,requiredFonts:Je,requiredFormats:Je,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Je,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Je,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Je,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hi}),bi=Ot({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),yi=Ot({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mi}),vi=Ot({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ja={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"},Ya=/[A-Z]/g,Ii=/-[a-z]/g,_a=/^data[-\w.:]+$/i;function Ua(e,t){const n=Un(t);let i=t,r=Re;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_a.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Ii,Qa);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Ii.test(o)){let l=o.replace(Ya,qa);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}r=Kn}return new r(i,t)}function qa(e){return"-"+e.toLowerCase()}function Qa(e){return e.charAt(1).toUpperCase()}const $a=pi([gi,Za,bi,yi,vi],"html"),er=pi([gi,ja,bi,yi,vi],"svg");function Ka(e){return e.join(" ").trim()}var mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={},xi=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,es=/\n/g,ts=/^\s*/,ns=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,rs=/^:\s*/,is=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,os=/^[;\s]*/,ls=/^\s+|\s+$/g,as=`
|
|
2
|
+
`,Ci="/",Ai="*",wt="",ss="comment",us="declaration";function cs(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(v){var y=v.match(es);y&&(n+=y.length);var A=v.lastIndexOf(as);i=~A?v.length-A:i+v.length}function o(){var v={line:n,column:i};return function(y){return y.position=new l(v),u(),y}}function l(v){this.start=v,this.end={line:n,column:i},this.source=t.source}l.prototype.content=e;function a(v){var y=new Error(t.source+":"+n+":"+i+": "+v);if(y.reason=v,y.filename=t.source,y.line=n,y.column=i,y.source=e,!t.silent)throw y}function s(v){var y=v.exec(e);if(y){var A=y[0];return r(A),e=e.slice(A.length),y}}function u(){s(ts)}function c(v){var y;for(v=v||[];y=d();)y!==!1&&v.push(y);return v}function d(){var v=o();if(!(Ci!=e.charAt(0)||Ai!=e.charAt(1))){for(var y=2;wt!=e.charAt(y)&&(Ai!=e.charAt(y)||Ci!=e.charAt(y+1));)++y;if(y+=2,wt===e.charAt(y-1))return a("End of comment missing");var A=e.slice(2,y-2);return i+=2,r(A),e=e.slice(y),i+=2,v({type:ss,comment:A})}}function f(){var v=o(),y=s(ns);if(y){if(d(),!s(rs))return a("property missing ':'");var A=s(is),m=v({type:us,property:Si(y[0].replace(xi,wt)),value:A?Si(A[0].replace(xi,wt)):wt});return s(os),m}}function p(){var v=[];c(v);for(var y;y=f();)y!==!1&&(v.push(y),c(v));return v}return u(),p()}function Si(e){return e?e.replace(ls,wt):wt}var ds=cs,ps=mt&&mt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=gs;const fs=ps(ds);function gs(e,t){let n=null;if(!e||typeof e!="string")return n;const i=(0,fs.default)(e),r=typeof t=="function";return i.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;r?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln.camelCase=void 0;var hs=/^--[a-zA-Z0-9_-]+$/,ms=/-([a-z])/g,bs=/^[^-]+$/,ys=/^-(webkit|moz|ms|o|khtml)-/,vs=/^-(ms)-/,Is=function(e){return!e||bs.test(e)||hs.test(e)},xs=function(e,t){return t.toUpperCase()},wi=function(e,t){return"".concat(t,"-")},Cs=function(e,t){return t===void 0&&(t={}),Is(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(vs,wi):e=e.replace(ys,wi),e.replace(ms,xs))};ln.camelCase=Cs;var As=mt&&mt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Ss=As(nr),ws=ln;function rr(e,t){var n={};return!e||typeof e!="string"||(0,Ss.default)(e,function(i,r){i&&r&&(n[(0,ws.camelCase)(i,t)]=r)}),n}rr.default=rr;var Es=rr;const ks=tr(Es),Ei=ki("end"),ir=ki("start");function ki(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Ps(e){const t=ir(e),n=Ei(e);if(t&&n)return{start:t,end:n}}function Wt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pi(e.position):"start"in e||"end"in e?Pi(e):"line"in e||"column"in e?or(e):""}function or(e){return Bi(e&&e.line)+":"+Bi(e&&e.column)}function Pi(e){return or(e&&e.start)+"-"+or(e&&e.end)}function Bi(e){return e&&typeof e=="number"?e:1}class ze extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?r=t:!o.cause&&t&&(l=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const s=i.indexOf(":");s===-1?o.ruleId=i:(o.source=i.slice(0,s),o.ruleId=i.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=Wt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ze.prototype.file="",ze.prototype.name="",ze.prototype.reason="",ze.prototype.message="",ze.prototype.stack="",ze.prototype.column=void 0,ze.prototype.line=void 0,ze.prototype.ancestors=void 0,ze.prototype.cause=void 0,ze.prototype.fatal=void 0,ze.prototype.place=void 0,ze.prototype.ruleId=void 0,ze.prototype.source=void 0;const lr={}.hasOwnProperty,Bs=new Map,Fs=/[A-Z]/g,Ts=new Set(["table","tbody","thead","tfoot","tr"]),Gs=new Set(["td","th"]),Fi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Os(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Xs(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Hs(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?er:$a,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ti(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function Ti(e,t,n){if(t.type==="element")return Vs(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ns(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ls(e,t,n);if(t.type==="mdxjsEsm")return Ds(e,t);if(t.type==="root")return Ms(e,t,n);if(t.type==="text")return zs(e,t)}function Vs(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=er,e.schema=r),e.ancestors.push(t);const o=Oi(e,t.tagName,!1),l=Ws(e,t);let a=sr(e,t);return Ts.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Wa(s):!0})),Gi(e,l,o,t),ar(l,a),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function Ns(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Rt(e,t.position)}function Ds(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Rt(e,t.position)}function Ls(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=er,e.schema=r),e.ancestors.push(t);const o=t.name===null?e.Fragment:Oi(e,t.name,!0),l=Rs(e,t),a=sr(e,t);return Gi(e,l,o,t),ar(l,a),e.ancestors.pop(),e.schema=i,e.create(t,o,l,n)}function Ms(e,t,n){const i={};return ar(i,sr(e,t)),e.create(t,e.Fragment,i,n)}function zs(e,t){return t.value}function Gi(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function ar(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Hs(e,t,n){return i;function i(r,o,l,a){const u=Array.isArray(l.children)?n:t;return a?u(o,l,a):u(o,l)}}function Xs(e,t){return n;function n(i,r,o,l){const a=Array.isArray(o.children),s=ir(i);return t(r,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Ws(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&lr.call(t.properties,r)){const o=Zs(e,r,t.properties[r]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Gs.has(t.tagName)?i=a:n[l]=a}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Rs(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Rt(e,t.position);else{const r=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const a=i.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Rt(e,t.position);else o=i.value===null?!0:i.value;n[r]=o}return n}function sr(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Bs;for(;++i<t.children.length;){const o=t.children[i];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=r.get(s)||0;l=s+"-"+u,r.set(s,u+1)}}const a=Ti(e,o,l);a!==void 0&&n.push(a)}return n}function Zs(e,t,n){const i=Ua(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?La(n):Ka(n)),i.property==="style"){let r=typeof n=="object"?n:js(e,String(n));return e.stylePropertyNameCase==="css"&&(r=Js(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?Ja[i.property]||i.property:i.attribute,n]}}function js(e,t){try{return ks(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new ze("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Fi+"#cannot-parse-style-attribute",r}}function Oi(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let o=-1,l;for(;++o<r.length;){const a=ci(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}i=l}else i=ci(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return lr.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Rt(e)}function Rt(e,t){const n=new ze("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Fi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Js(e){const t={};let n;for(n in e)lr.call(e,n)&&(t[Ys(n)]=e[n]);return t}function Ys(e){let t=e.replace(Fs,_s);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function _s(e){return"-"+e.toLowerCase()}const ur={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Us={};function qs(e,t){const n=Us,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Vi(e,i,r)}function Vi(e,t,n){if(Qs(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ni(e.children,t,n)}return Array.isArray(e)?Ni(e,t,n):""}function Ni(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Vi(e[r],t,n);return i.join("")}function Qs(e){return!!(e&&typeof e=="object")}const an={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
3
|
+
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},$s={}.hasOwnProperty;function Di(e){return $s.call(an,e)?an[e]:!1}function rt(e,t,n,i){const r=e.length;let o=0,l;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)l=Array.from(i),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<i.length;)l=i.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function Ue(e,t){return e.length>0?(rt(e,e.length,0,t),e):t}const Li={}.hasOwnProperty;function Ks(e){const t={};let n=-1;for(;++n<e.length;)eu(t,e[n]);return t}function eu(e,t){let n;for(n in t){const r=(Li.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Li.call(r,l)||(r[l]=[]);const a=o[l];tu(r[l],Array.isArray(a)?a:a?[a]:[])}}}function tu(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);rt(e,0,0,i)}function Mi(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Vt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const it=bt(/[A-Za-z]/),Ye=bt(/[\dA-Za-z]/),nu=bt(/[#-'*+\--9=?A-Z^-~]/);function cr(e){return e!==null&&(e<32||e===127)}const dr=bt(/\d/),ru=bt(/[\dA-Fa-f]/),iu=bt(/[!-/:-@[-`{-~]/);function oe(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function be(e){return e===-2||e===-1||e===32}const ou=bt(new RegExp("\\p{P}|\\p{S}","u")),lu=bt(/\s/);function bt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Nt(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Ye(e.charCodeAt(n+1))&&Ye(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),r=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(i,n),encodeURIComponent(l)),i=n+r+1,l=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function Se(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return be(s)?(e.enter(n),a(s)):t(s)}function a(s){return be(s)&&o++<r?(e.consume(s),a):(e.exit(n),t(s))}}const au={tokenize:su};function su(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Se(e,t,"linePrefix")}function r(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return oe(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const uu={tokenize:cu},zi={tokenize:du};function cu(e){const t=this,n=[];let i=0,r,o,l;return a;function a(E){if(i<n.length){const P=n[i];return t.containerState=P[1],e.attempt(P[0].continuation,s,u)(E)}return u(E)}function s(E){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&F();const P=t.events.length;let T=P,x;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){x=t.events[T][1].end;break}m(i);let H=P;for(;H<t.events.length;)t.events[H][1].end={...x},H++;return rt(t.events,T+1,0,t.events.slice(P)),t.events.length=H,u(E)}return a(E)}function u(E){if(i===n.length){if(!r)return f(E);if(r.currentConstruct&&r.currentConstruct.concrete)return v(E);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zi,c,d)(E)}function c(E){return r&&F(),m(i),f(E)}function d(E){return t.parser.lazy[t.now().line]=i!==n.length,l=t.now().offset,v(E)}function f(E){return t.containerState={},e.attempt(zi,p,v)(E)}function p(E){return i++,n.push([t.currentConstruct,t.containerState]),f(E)}function v(E){if(E===null){r&&F(),m(0),e.consume(E);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),y(E)}function y(E){if(E===null){A(e.exit("chunkFlow"),!0),m(0),e.consume(E);return}return oe(E)?(e.consume(E),A(e.exit("chunkFlow")),i=0,t.interrupt=void 0,a):(e.consume(E),y)}function A(E,P){const T=t.sliceStream(E);if(P&&T.push(null),E.previous=o,o&&(o.next=E),o=E,r.defineSkip(E.start),r.write(T),t.parser.lazy[E.start.line]){let x=r.events.length;for(;x--;)if(r.events[x][1].start.offset<l&&(!r.events[x][1].end||r.events[x][1].end.offset>l))return;const H=t.events.length;let G=H,O,k;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(O){k=t.events[G][1].end;break}O=!0}for(m(i),x=H;x<t.events.length;)t.events[x][1].end={...k},x++;rt(t.events,G+1,0,t.events.slice(H)),t.events.length=x}}function m(E){let P=n.length;for(;P-- >E;){const T=n[P];t.containerState=T[1],T[0].exit.call(t,e)}n.length=E}function F(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function du(e,t,n){return Se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Hi(e){if(e===null||Ze(e)||lu(e))return 1;if(ou(e))return 2}function pr(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const fr={name:"attention",resolveAll:pu,tokenize:fu};function pu(e,t){let n=-1,i,r,o,l,a,s,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};Xi(d,-s),Xi(f,s),l={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[i][1].end={...l.start},e[n][1].start={...a.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=Ue(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=Ue(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=Ue(u,pr(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=Ue(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Ue(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,rt(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function fu(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Hi(i);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),c=Hi(s),d=!c||c===2&&r||n.includes(s),f=!r||r===2&&c||n.includes(i);return u._open=!!(o===42?d:d&&(r||!f)),u._close=!!(o===42?f:f&&(c||!d)),t(s)}}function Xi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const gu={name:"autolink",tokenize:hu};function hu(e,t,n){let i=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return it(p)?(e.consume(p),l):p===64?n(p):u(p)}function l(p){return p===43||p===45||p===46||Ye(p)?(i=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),i=0,s):(p===43||p===45||p===46||Ye(p))&&i++<32?(e.consume(p),a):(i=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||cr(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),c):nu(p)?(e.consume(p),u):n(p)}function c(p){return Ye(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),i=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Ye(p))&&i++<63){const v=p===45?f:d;return e.consume(p),v}return n(p)}}const sn={partial:!0,tokenize:mu};function mu(e,t,n){return i;function i(o){return be(o)?Se(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||oe(o)?t(o):n(o)}}const Wi={continuation:{tokenize:yu},exit:vu,name:"blockQuote",tokenize:bu};function bu(e,t,n){const i=this;return r;function r(l){if(l===62){const a=i.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return be(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function yu(e,t,n){const i=this;return r;function r(l){return be(l)?Se(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Wi,t,n)(l)}}function vu(e){e.exit("blockQuote")}const Ri={name:"characterEscape",tokenize:Iu};function Iu(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return iu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Zi={name:"characterReference",tokenize:xu};function xu(e,t,n){const i=this;let r=0,o,l;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=Ye,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=ru,c):(e.enter("characterReferenceValue"),o=7,l=dr,c(d))}function c(d){if(d===59&&r){const f=e.exit("characterReferenceValue");return l===Ye&&!Di(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(d)&&r++<o?(e.consume(d),c):n(d)}}const ji={partial:!0,tokenize:Au},Ji={concrete:!0,name:"codeFenced",tokenize:Cu};function Cu(e,t,n){const i=this,r={partial:!0,tokenize:T};let o=0,l=0,a;return s;function s(x){return u(x)}function u(x){const H=i.events[i.events.length-1];return o=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,a=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===a?(l++,e.consume(x),c):l<3?n(x):(e.exit("codeFencedFenceSequence"),be(x)?Se(e,d,"whitespace")(x):d(x))}function d(x){return x===null||oe(x)?(e.exit("codeFencedFence"),i.interrupt?t(x):e.check(ji,y,P)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===null||oe(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(x)):be(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,p,"whitespace")(x)):x===96&&x===a?n(x):(e.consume(x),f)}function p(x){return x===null||oe(x)?d(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(x))}function v(x){return x===null||oe(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(x)):x===96&&x===a?n(x):(e.consume(x),v)}function y(x){return e.attempt(r,P,A)(x)}function A(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m}function m(x){return o>0&&be(x)?Se(e,F,"linePrefix",o+1)(x):F(x)}function F(x){return x===null||oe(x)?e.check(ji,y,P)(x):(e.enter("codeFlowValue"),E(x))}function E(x){return x===null||oe(x)?(e.exit("codeFlowValue"),F(x)):(e.consume(x),E)}function P(x){return e.exit("codeFenced"),t(x)}function T(x,H,G){let O=0;return k;function k(Y){return x.enter("lineEnding"),x.consume(Y),x.exit("lineEnding"),L}function L(Y){return x.enter("codeFencedFence"),be(Y)?Se(x,D,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):D(Y)}function D(Y){return Y===a?(x.enter("codeFencedFenceSequence"),R(Y)):G(Y)}function R(Y){return Y===a?(O++,x.consume(Y),R):O>=l?(x.exit("codeFencedFenceSequence"),be(Y)?Se(x,U,"whitespace")(Y):U(Y)):G(Y)}function U(Y){return Y===null||oe(Y)?(x.exit("codeFencedFence"),H(Y)):G(Y)}}}function Au(e,t,n){const i=this;return r;function r(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}const gr={name:"codeIndented",tokenize:wu},Su={partial:!0,tokenize:Eu};function wu(e,t,n){const i=this;return r;function r(u){return e.enter("codeIndented"),Se(e,o,"linePrefix",5)(u)}function o(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?s(u):oe(u)?e.attempt(Su,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||oe(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Eu(e,t,n){const i=this;return r;function r(l){return i.parser.lazy[i.now().line]?n(l):oe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r):Se(e,o,"linePrefix",5)(l)}function o(l){const a=i.events[i.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):oe(l)?r(l):n(l)}}const ku={name:"codeText",previous:Bu,resolve:Pu,tokenize:Fu};function Pu(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function Bu(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Fu(e,t,n){let i=0,r,o;return l;function l(d){return e.enter("codeText"),e.enter("codeTextSequence"),a(d)}function a(d){return d===96?(e.consume(d),i++,a):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(o=e.enter("codeTextSequence"),r=0,c(d)):oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||oe(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class Tu{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Zt(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zt(this.left,n.reverse())}}}function Zt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Yi(e){const t={};let n=-1,i,r,o,l,a,s,u;const c=new Tu(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,Gu(c,n)),n=t[n],u=!0);else if(i[1]._container){for(o=n,r=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),l[1].type="lineEnding",r=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;r&&(i[1].end={...c.get(r)[1].start},a=c.slice(r,n),a.unshift(i),c.splice(r,n-r+1,a))}}return rt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Gu(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const o=[];let l=n._tokenizer;l||(l=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let c,d,f=-1,p=n,v=0,y=0;const A=[y];for(;p;){for(;e.get(++r)[1]!==p;);o.push(r),p._tokenizer||(c=i.sliceStream(p),p.next||c.push(null),d&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(y=f+1,A.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):A.pop(),f=A.length;f--;){const m=a.slice(A[f],A[f+1]),F=o.pop();s.push([F,F+m.length-1]),e.splice(F,2,m)}for(s.reverse(),f=-1;++f<s.length;)u[v+s[f][0]]=v+s[f][1],v+=s[f][1]-s[f][0]-1;return u}const Ou={resolve:Nu,tokenize:Du},Vu={partial:!0,tokenize:Lu};function Nu(e){return Yi(e),e}function Du(e,t){let n;return i;function i(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(a)}function r(a){return a===null?o(a):oe(a)?e.check(Vu,l,o)(a):(e.consume(a),r)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function Lu(e,t,n){const i=this;return r;function r(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Se(e,o,"linePrefix")}function o(l){if(l===null||oe(l))return n(l);const a=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(i.parser.constructs.flow,n,t)(l)}}function _i(e,t,n,i,r,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(m){return m===60?(e.enter(i),e.enter(r),e.enter(o),e.consume(m),e.exit(o),f):m===null||m===32||m===41||cr(m)?n(m):(e.enter(i),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(m))}function f(m){return m===62?(e.enter(o),e.consume(m),e.exit(o),e.exit(r),e.exit(i),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(a),f(m)):m===null||m===60||oe(m)?n(m):(e.consume(m),m===92?v:p)}function v(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function y(m){return!c&&(m===null||m===41||Ze(m))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(i),t(m)):c<u&&m===40?(e.consume(m),c++,y):m===41?(e.consume(m),c--,y):m===null||m===32||m===40||cr(m)?n(m):(e.consume(m),m===92?A:y)}function A(m){return m===40||m===41||m===92?(e.consume(m),y):y(m)}}function Ui(e,t,n,i,r,o){const l=this;let a=0,s;return u;function u(p){return e.enter(i),e.enter(r),e.consume(p),e.exit(r),e.enter(o),c}function c(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(r),e.consume(p),e.exit(r),e.exit(i),t):oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||oe(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!be(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function qi(e,t,n,i,r,o){let l;return a;function a(f){return f===34||f===39||f===40?(e.enter(i),e.enter(r),e.consume(f),e.exit(r),l=f===40?41:f,s):n(f)}function s(f){return f===l?(e.enter(r),e.consume(f),e.exit(r),e.exit(i),t):(e.enter(o),u(f))}function u(f){return f===l?(e.exit(o),s(l)):f===null?n(f):oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Se(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===l||f===null||oe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===l||f===92?(e.consume(f),c):c(f)}}function jt(e,t){let n;return i;function i(r){return oe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):be(r)?Se(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const Mu={name:"definition",tokenize:Hu},zu={partial:!0,tokenize:Xu};function Hu(e,t,n){const i=this;let r;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Ui.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return r=Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return Ze(p)?jt(e,u)(p):u(p)}function u(p){return _i(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(zu,d,d)(p)}function d(p){return be(p)?Se(e,f,"whitespace")(p):f(p)}function f(p){return p===null||oe(p)?(e.exit("definition"),i.parser.defined.push(r),t(p)):n(p)}}function Xu(e,t,n){return i;function i(a){return Ze(a)?jt(e,r)(a):n(a)}function r(a){return qi(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return be(a)?Se(e,l,"whitespace")(a):l(a)}function l(a){return a===null||oe(a)?t(a):n(a)}}const Wu={name:"hardBreakEscape",tokenize:Ru};function Ru(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return oe(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Zu={name:"headingAtx",resolve:ju,tokenize:Ju};function ju(e,t){let n=e.length-2,i=3,r,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},rt(e,i,n-i+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function Ju(e,t,n){let i=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&i++<6?(e.consume(c),l):c===null||Ze(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||oe(c)?(e.exit("atxHeading"),t(c)):be(c)?Se(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Ze(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Yu=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Qi=["pre","script","style","textarea"],_u={concrete:!0,name:"htmlFlow",resolveTo:Qu,tokenize:$u},Uu={partial:!0,tokenize:ec},qu={partial:!0,tokenize:Ku};function Qu(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $u(e,t,n){const i=this;let r,o,l,a,s;return u;function u(b){return c(b)}function c(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),d}function d(b){return b===33?(e.consume(b),f):b===47?(e.consume(b),o=!0,y):b===63?(e.consume(b),r=3,i.interrupt?t:g):it(b)?(e.consume(b),l=String.fromCharCode(b),A):n(b)}function f(b){return b===45?(e.consume(b),r=2,p):b===91?(e.consume(b),r=5,a=0,v):it(b)?(e.consume(b),r=4,i.interrupt?t:g):n(b)}function p(b){return b===45?(e.consume(b),i.interrupt?t:g):n(b)}function v(b){const ge="CDATA[";return b===ge.charCodeAt(a++)?(e.consume(b),a===ge.length?i.interrupt?t:D:v):n(b)}function y(b){return it(b)?(e.consume(b),l=String.fromCharCode(b),A):n(b)}function A(b){if(b===null||b===47||b===62||Ze(b)){const ge=b===47,ee=l.toLowerCase();return!ge&&!o&&Qi.includes(ee)?(r=1,i.interrupt?t(b):D(b)):Yu.includes(l.toLowerCase())?(r=6,ge?(e.consume(b),m):i.interrupt?t(b):D(b)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(b):o?F(b):E(b))}return b===45||Ye(b)?(e.consume(b),l+=String.fromCharCode(b),A):n(b)}function m(b){return b===62?(e.consume(b),i.interrupt?t:D):n(b)}function F(b){return be(b)?(e.consume(b),F):k(b)}function E(b){return b===47?(e.consume(b),k):b===58||b===95||it(b)?(e.consume(b),P):be(b)?(e.consume(b),E):k(b)}function P(b){return b===45||b===46||b===58||b===95||Ye(b)?(e.consume(b),P):T(b)}function T(b){return b===61?(e.consume(b),x):be(b)?(e.consume(b),T):E(b)}function x(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),s=b,H):be(b)?(e.consume(b),x):G(b)}function H(b){return b===s?(e.consume(b),s=null,O):b===null||oe(b)?n(b):(e.consume(b),H)}function G(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||Ze(b)?T(b):(e.consume(b),G)}function O(b){return b===47||b===62||be(b)?E(b):n(b)}function k(b){return b===62?(e.consume(b),L):n(b)}function L(b){return b===null||oe(b)?D(b):be(b)?(e.consume(b),L):n(b)}function D(b){return b===45&&r===2?(e.consume(b),j):b===60&&r===1?(e.consume(b),ae):b===62&&r===4?(e.consume(b),le):b===63&&r===3?(e.consume(b),g):b===93&&r===5?(e.consume(b),V):oe(b)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(Uu,Q,R)(b)):b===null||oe(b)?(e.exit("htmlFlowData"),R(b)):(e.consume(b),D)}function R(b){return e.check(qu,U,Q)(b)}function U(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Y}function Y(b){return b===null||oe(b)?R(b):(e.enter("htmlFlowData"),D(b))}function j(b){return b===45?(e.consume(b),g):D(b)}function ae(b){return b===47?(e.consume(b),l="",se):D(b)}function se(b){if(b===62){const ge=l.toLowerCase();return Qi.includes(ge)?(e.consume(b),le):D(b)}return it(b)&&l.length<8?(e.consume(b),l+=String.fromCharCode(b),se):D(b)}function V(b){return b===93?(e.consume(b),g):D(b)}function g(b){return b===62?(e.consume(b),le):b===45&&r===2?(e.consume(b),g):D(b)}function le(b){return b===null||oe(b)?(e.exit("htmlFlowData"),Q(b)):(e.consume(b),le)}function Q(b){return e.exit("htmlFlow"),t(b)}}function Ku(e,t,n){const i=this;return r;function r(l){return oe(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return i.parser.lazy[i.now().line]?n(l):t(l)}}function ec(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(sn,t,n)}}const tc={name:"htmlText",tokenize:nc};function nc(e,t,n){const i=this;let r,o,l;return a;function a(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),s}function s(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),T):g===63?(e.consume(g),E):it(g)?(e.consume(g),G):n(g)}function u(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,v):it(g)?(e.consume(g),F):n(g)}function c(g){return g===45?(e.consume(g),p):n(g)}function d(g){return g===null?n(g):g===45?(e.consume(g),f):oe(g)?(l=d,ae(g)):(e.consume(g),d)}function f(g){return g===45?(e.consume(g),p):d(g)}function p(g){return g===62?j(g):g===45?f(g):d(g)}function v(g){const le="CDATA[";return g===le.charCodeAt(o++)?(e.consume(g),o===le.length?y:v):n(g)}function y(g){return g===null?n(g):g===93?(e.consume(g),A):oe(g)?(l=y,ae(g)):(e.consume(g),y)}function A(g){return g===93?(e.consume(g),m):y(g)}function m(g){return g===62?j(g):g===93?(e.consume(g),m):y(g)}function F(g){return g===null||g===62?j(g):oe(g)?(l=F,ae(g)):(e.consume(g),F)}function E(g){return g===null?n(g):g===63?(e.consume(g),P):oe(g)?(l=E,ae(g)):(e.consume(g),E)}function P(g){return g===62?j(g):E(g)}function T(g){return it(g)?(e.consume(g),x):n(g)}function x(g){return g===45||Ye(g)?(e.consume(g),x):H(g)}function H(g){return oe(g)?(l=H,ae(g)):be(g)?(e.consume(g),H):j(g)}function G(g){return g===45||Ye(g)?(e.consume(g),G):g===47||g===62||Ze(g)?O(g):n(g)}function O(g){return g===47?(e.consume(g),j):g===58||g===95||it(g)?(e.consume(g),k):oe(g)?(l=O,ae(g)):be(g)?(e.consume(g),O):j(g)}function k(g){return g===45||g===46||g===58||g===95||Ye(g)?(e.consume(g),k):L(g)}function L(g){return g===61?(e.consume(g),D):oe(g)?(l=L,ae(g)):be(g)?(e.consume(g),L):O(g)}function D(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),r=g,R):oe(g)?(l=D,ae(g)):be(g)?(e.consume(g),D):(e.consume(g),U)}function R(g){return g===r?(e.consume(g),r=void 0,Y):g===null?n(g):oe(g)?(l=R,ae(g)):(e.consume(g),R)}function U(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||Ze(g)?O(g):(e.consume(g),U)}function Y(g){return g===47||g===62||Ze(g)?O(g):n(g)}function j(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function ae(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),se}function se(g){return be(g)?Se(e,V,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):V(g)}function V(g){return e.enter("htmlTextData"),l(g)}}const hr={name:"labelEnd",resolveAll:lc,resolveTo:ac,tokenize:sc},rc={tokenize:uc},ic={tokenize:cc},oc={tokenize:dc};function lc(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&rt(e,0,e.length,n),e}function ac(e,t){let n=e.length,i=0,r,o,l,a;for(;n--;)if(r=e[n][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=Ue(a,e.slice(o+1,o+i+3)),a=Ue(a,[["enter",c,t]]),a=Ue(a,pr(t.parser.constructs.insideSpan.null,e.slice(o+i+4,l-3),t)),a=Ue(a,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),a=Ue(a,e.slice(l+1)),a=Ue(a,[["exit",s,t]]),rt(e,o,e.length,a),e}function sc(e,t,n){const i=this;let r=i.events.length,o,l;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){o=i.events[r][1];break}return a;function a(f){return o?o._inactive?d(f):(l=i.parser.defined.includes(Vt(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):n(f)}function s(f){return f===40?e.attempt(rc,c,l?c:d)(f):f===91?e.attempt(ic,c,l?u:d)(f):l?c(f):d(f)}function u(f){return e.attempt(oc,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function uc(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Ze(d)?jt(e,o)(d):o(d)}function o(d){return d===41?c(d):_i(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return Ze(d)?jt(e,s)(d):c(d)}function a(d){return n(d)}function s(d){return d===34||d===39||d===40?qi(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Ze(d)?jt(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function cc(e,t,n){const i=this;return r;function r(a){return Ui.call(i,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return i.parser.defined.includes(Vt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function dc(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const pc={name:"labelStartImage",resolveAll:hr.resolveAll,tokenize:fc};function fc(e,t,n){const i=this;return r;function r(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):t(a)}}const gc={name:"labelStartLink",resolveAll:hr.resolveAll,tokenize:hc};function hc(e,t,n){const i=this;return r;function r(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const mr={name:"lineEnding",tokenize:mc};function mc(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const un={name:"thematicBreak",tokenize:bc};function bc(e,t,n){let i=0,r;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return r=u,a(u)}function a(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):i>=3&&(u===null||oe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===r?(e.consume(u),i++,s):(e.exit("thematicBreakSequence"),be(u)?Se(e,a,"whitespace")(u):a(u))}}const je={continuation:{tokenize:xc},exit:Ac,name:"list",tokenize:Ic},yc={partial:!0,tokenize:Sc},vc={partial:!0,tokenize:Cc};function Ic(e,t,n){const i=this,r=i.events[i.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,l=0;return a;function a(p){const v=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:dr(p)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(un,n,u)(p):u(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return dr(p)&&++l<10?(e.consume(p),s):(!i.interrupt||l<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(sn,i.interrupt?n:c,e.attempt(yc,f,d))}function c(p){return i.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return be(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function xc(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(sn,r,o);function r(a){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Se(e,t,"listItemIndent",i.containerState.size+1)(a)}function o(a){return i.containerState.furtherBlankLines||!be(a)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,l(a)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(vc,t,l)(a))}function l(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,Se(e,e.attempt(je,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Cc(e,t,n){const i=this;return Se(e,r,"listItemIndent",i.containerState.size+1);function r(o){const l=i.events[i.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===i.containerState.size?t(o):n(o)}}function Ac(e){e.exit(this.containerState.type)}function Sc(e,t,n){const i=this;return Se(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const l=i.events[i.events.length-1];return!be(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const $i={name:"setextUnderline",resolveTo:wc,tokenize:Ec};function wc(e,t){let n=e.length,i,r,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=l,e.push(["exit",l,t]),e}function Ec(e,t,n){const i=this;let r;return o;function o(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===r?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),be(u)?Se(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||oe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const kc={tokenize:Pc};function Pc(e){const t=this,n=e.attempt(sn,i,e.attempt(this.parser.constructs.flowInitial,r,Se(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ou,r)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Bc={resolveAll:eo()},Fc=Ki("string"),Tc=Ki("text");function Ki(e){return{resolveAll:eo(e==="text"?Gc:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],o=n.attempt(r,l,a);return l;function l(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=r[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(i,i.previous))return!0}return!1}}}function eo(e){return t;function t(n,i){let r=-1,o;for(;++r<=n.length;)o===void 0?n[r]&&n[r][1].type==="data"&&(o=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==o+2&&(n[o][1].end=n[r-1][1].end,n.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(n,i):n}}function Gc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let o=r.length,l=-1,a=0,s;for(;o--;){const u=r[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:i.start._bufferIndex+l,_index:i.start._index+o,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Oc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Mu},disable:{null:[]},document:{42:je,43:je,45:je,48:je,49:je,50:je,51:je,52:je,53:je,54:je,55:je,56:je,57:je,62:Wi},flow:{35:Zu,42:un,45:[$i,un],60:_u,61:$i,95:un,96:Ji,126:Ji},flowInitial:{[-2]:gr,[-1]:gr,32:gr},insideSpan:{null:[fr,Bc]},string:{38:Zi,92:Ri},text:{[-5]:mr,[-4]:mr,[-3]:mr,33:pc,38:Zi,42:fr,60:[gu,tc],91:gc,92:[Wu,Ri],93:hr,95:fr,96:ku}},Symbol.toStringTag,{value:"Module"}));function Vc(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},o=[];let l=[],a=[];const s={attempt:H(T),check:H(x),consume:F,enter:E,exit:P,interrupt:H(x,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:v,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function d(L){return l=Ue(l,L),A(),l[l.length-1]!==null?[]:(G(t,0),u.events=pr(o,u.events,u),u.events)}function f(L,D){return Dc(p(L),D)}function p(L){return Nc(l,L)}function v(){const{_bufferIndex:L,_index:D,line:R,column:U,offset:Y}=i;return{_bufferIndex:L,_index:D,line:R,column:U,offset:Y}}function y(L){r[L.line]=L.column,k()}function A(){let L;for(;i._index<l.length;){const D=l[i._index];if(typeof D=="string")for(L=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===L&&i._bufferIndex<D.length;)m(D.charCodeAt(i._bufferIndex));else m(D)}}function m(L){c=c(L)}function F(L){oe(L)?(i.line++,i.column=1,i.offset+=L===-3?2:1,k()):L!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===l[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=L}function E(L,D){const R=D||{};return R.type=L,R.start=v(),u.events.push(["enter",R,u]),a.push(R),R}function P(L){const D=a.pop();return D.end=v(),u.events.push(["exit",D,u]),D}function T(L,D){G(L,D.from)}function x(L,D){D.restore()}function H(L,D){return R;function R(U,Y,j){let ae,se,V,g;return Array.isArray(U)?Q(U):"tokenize"in U?Q([U]):le(U);function le(re){return ve;function ve(ue){const Pe=ue!==null&&re[ue],ce=ue!==null&&re.null,we=[...Array.isArray(Pe)?Pe:Pe?[Pe]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return Q(we)(ue)}}function Q(re){return ae=re,se=0,re.length===0?j:b(re[se])}function b(re){return ve;function ve(ue){return g=O(),V=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?ee():re.tokenize.call(D?Object.assign(Object.create(u),D):u,s,ge,ee)(ue)}}function ge(re){return L(V,g),Y}function ee(re){return g.restore(),++se<ae.length?b(ae[se]):j}}}function G(L,D){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&rt(u.events,D,u.events.length-D,L.resolve(u.events.slice(D),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function O(){const L=v(),D=u.previous,R=u.currentConstruct,U=u.events.length,Y=Array.from(a);return{from:U,restore:j};function j(){i=L,u.previous=D,u.currentConstruct=R,u.events.length=U,a=Y,k()}}function k(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function Nc(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let l;if(n===r)l=[e[n].slice(i,o)];else{if(l=e.slice(n,r),i>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(i):l.shift()}o>0&&l.push(e[r].slice(0,o))}return l}function Dc(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
4
4
|
`;break}case-3:{l=`\r
|
|
5
|
-
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&r)continue;l=" ";break}default:l=String.fromCharCode(o)}r=o===-2,i.push(l)}return i.join("")}function Dc(e){const i={constructs:$s([Gc,...(e||{}).extensions||[]]),content:r(lu),defined:[],document:r(su),flow:r(Ec),lazy:{},string:r(Bc),text:r(Fc)};return i;function r(o){return l;function l(a){return Oc(i,o,a)}}}function Lc(e){for(;!Yi(e););return e}const to=/[\0\t\n\r]/g;function Mc(){let e=1,t="",n=!0,i;return r;function r(o,l,a){const s=[];let u,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(to.lastIndex=d,u=to.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){t=o.slice(d);break}if(p===10&&d===f&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),d<f&&(s.push(o.slice(d,f)),e+=f-d),p){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:i=!0,e=1}d=f+1}return a&&(i&&s.push(-5),t&&s.push(t),s.push(null)),s}}const zc={}.hasOwnProperty;function Hc(e){return zc.call(an,e)?an[e]:!1}const Xc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Wc(e){return e.replace(Xc,Rc)}function Rc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Mi(n.slice(o?2:1),o?16:10)}return Hc(n)||e}const no={}.hasOwnProperty;function Zc(e,t,n){return typeof t!="string"&&(n=t,t=void 0),jc(n)(Lc(Dc(n).document().write(Mc()(e,t,!0))))}function jc(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(le),autolinkProtocol:V,autolinkEmail:V,atxHeading:o(De),blockQuote:o(ce),characterEscape:V,characterReference:V,codeFenced:o(Ee),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ee,l),codeText:o(be,l),codeTextData:V,data:V,codeFlowValue:V,definition:o(Te),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Pe),hardBreakEscape:o(de),hardBreakTrailing:o(de),htmlFlow:o(Re,l),htmlFlowData:V,htmlText:o(Re,l),htmlTextData:V,image:o(z),label:l,link:o(le),listItem:o(O),listItemValue:f,listOrdered:o(F,d),listUnordered:o(F),paragraph:o($),reference:b,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(De),strong:o(K),thematicBreak:o(Ie)},exit:{atxHeading:s(),atxHeadingSequence:T,autolink:s(),autolinkEmail:Ve,autolinkProtocol:me,blockQuote:s(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:Q,characterReference:Ae,codeFenced:s(A),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:E,codeIndented:s(m),codeText:s(j),codeTextData:E,data:E,definition:s(),definitionDestinationString:k,definitionLabelString:B,definitionTitleString:w,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(R),htmlFlowData:E,htmlText:s(_),htmlTextData:E,image:s(ue),label:N,labelText:pe,lineEnding:L,link:s(Z),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:he,resourceDestinationString:g,resourceTitleString:se,resource:q,setextHeading:s(G),setextHeadingLineSequence:H,setextHeadingText:I,strong:s(),thematicBreak:s()}};ro(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(P){let X={type:"root",children:[]};const J={stack:[X],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:c,data:n},Y=[];let re=-1;for(;++re<P.length;)if(P[re][1].type==="listOrdered"||P[re][1].type==="listUnordered")if(P[re][0]==="enter")Y.push(re);else{const xe=Y.pop();re=r(P,xe,re)}for(re=-1;++re<P.length;){const xe=t[P[re][0]];no.call(xe,P[re][1].type)&&xe[P[re][1].type].call(Object.assign({sliceSerialize:P[re][2].sliceSerialize},J),P[re][1])}if(J.tokenStack.length>0){const xe=J.tokenStack[J.tokenStack.length-1];(xe[1]||io).call(J,void 0,xe[0])}for(X.position={start:vt(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:vt(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re<t.transforms.length;)X=t.transforms[re](X)||X;return X}function r(P,X,J){let Y=X-1,re=-1,xe=!1,ct,et,It,dt;for(;++Y<=J;){const Xe=P[Y];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?re++:re--,dt=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(ct&&!dt&&!re&&!It&&(It=Y),dt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dt=void 0}if(!re&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||re===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(ct){let gt=Y;for(et=void 0;gt--;){const tt=P[gt];if(tt[1].type==="lineEnding"||tt[1].type==="lineEndingBlank"){if(tt[0]==="exit")continue;et&&(P[et][1].type="lineEndingBlank",xe=!0),tt[1].type="lineEnding",et=gt}else if(!(tt[1].type==="linePrefix"||tt[1].type==="blockQuotePrefix"||tt[1].type==="blockQuotePrefixWhitespace"||tt[1].type==="blockQuoteMarker"||tt[1].type==="listItemIndent"))break}It&&(!et||It<et)&&(ct._spread=!0),ct.end=Object.assign({},et?P[et][1].start:Xe[1].end),P.splice(et||Y,0,["exit",ct,Xe[2]]),Y++,J++}if(Xe[1].type==="listItemPrefix"){const gt={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};ct=gt,P.splice(Y,0,["enter",gt,Xe[2]]),Y++,J++,It=void 0,dt=!0}}}return P[X][1]._spread=xe,J}function o(P,X){return J;function J(Y){a.call(this,P(Y),Y),X&&X.call(this,Y)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(P,X,J){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([X,J||void 0]),P.position={start:vt(X.start),end:void 0}}function s(P){return X;function X(J){P&&P.call(this,J),u.call(this,J)}}function u(P,X){const J=this.stack.pop(),Y=this.tokenStack.pop();if(Y)Y[0].type!==P.type&&(X?X.call(this,P,Y[0]):(Y[1]||io).call(this,P,Y[0]));else throw new Error("Cannot close `"+P.type+"` ("+Wt({start:P.start,end:P.end})+"): it’s not open");J.position.end=vt(P.end)}function c(){return Us(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(P){if(this.data.expectingFirstListItemValue){const X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function p(){const P=this.resume(),X=this.stack[this.stack.length-1];X.lang=P}function v(){const P=this.resume(),X=this.stack[this.stack.length-1];X.meta=P}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P.replace(/(\r?\n|\r)$/g,"")}function B(P){const X=this.resume(),J=this.stack[this.stack.length-1];J.label=X,J.identifier=Vt(this.sliceSerialize(P)).toLowerCase()}function w(){const P=this.resume(),X=this.stack[this.stack.length-1];X.title=P}function k(){const P=this.resume(),X=this.stack[this.stack.length-1];X.url=P}function T(P){const X=this.stack[this.stack.length-1];if(!X.depth){const J=this.sliceSerialize(P).length;X.depth=J}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function H(P){const X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function V(P){const J=this.stack[this.stack.length-1].children;let Y=J[J.length-1];(!Y||Y.type!=="text")&&(Y=Ce(),Y.position={start:vt(P.start),end:void 0},J.push(Y)),this.stack.push(Y)}function E(P){const X=this.stack.pop();X.value+=this.sliceSerialize(P),X.position.end=vt(P.end)}function L(P){const X=this.stack[this.stack.length-1];if(this.data.atHardBreak){const J=X.children[X.children.length-1];J.position.end=vt(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(X.type)&&(V.call(this,P),E.call(this,P))}function D(){this.data.atHardBreak=!0}function R(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function _(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function j(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function Z(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=X,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function ue(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=X,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function pe(P){const X=this.sliceSerialize(P),J=this.stack[this.stack.length-2];J.label=Wc(X),J.identifier=Vt(X).toLowerCase()}function N(){const P=this.stack[this.stack.length-1],X=this.resume(),J=this.stack[this.stack.length-1];if(this.data.inReference=!0,J.type==="link"){const Y=P.children;J.children=Y}else J.alt=X}function g(){const P=this.resume(),X=this.stack[this.stack.length-1];X.url=P}function se(){const P=this.resume(),X=this.stack[this.stack.length-1];X.title=P}function q(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function he(P){const X=this.resume(),J=this.stack[this.stack.length-1];J.label=X,J.identifier=Vt(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function te(P){this.data.characterReferenceType=P.type}function Q(P){const X=this.sliceSerialize(P),J=this.data.characterReferenceType;let Y;J?(Y=Mi(X,J==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Y=Di(X);const re=this.stack[this.stack.length-1];re.value+=Y}function Ae(P){const X=this.stack.pop();X.position.end=vt(P.end)}function me(P){E.call(this,P);const X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(P)}function Ve(P){E.call(this,P);const X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(P)}function ce(){return{type:"blockquote",children:[]}}function Ee(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function Te(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pe(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function de(){return{type:"break"}}function Re(){return{type:"html",value:""}}function z(){return{type:"image",title:null,url:"",alt:null}}function le(){return{type:"link",title:null,url:"",children:[]}}function F(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function O(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function $(){return{type:"paragraph",children:[]}}function K(){return{type:"strong",children:[]}}function Ce(){return{type:"text",value:""}}function Ie(){return{type:"thematicBreak"}}}function vt(e){return{line:e.line,column:e.column,offset:e.offset}}function ro(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?ro(e,i):Jc(e,i)}}function Jc(e,t){let n;for(n in t)if(no.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function io(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Wt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Wt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Wt({start:t.start,end:t.end})+") is still open")}function Yc(e){const t=this;t.parser=n;function n(i){return Zc(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function _c(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Uc(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
6
|
-
`}]}function
|
|
7
|
-
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function
|
|
5
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&r)continue;l=" ";break}default:l=String.fromCharCode(o)}r=o===-2,i.push(l)}return i.join("")}function Lc(e){const i={constructs:Ks([Oc,...(e||{}).extensions||[]]),content:r(au),defined:[],document:r(uu),flow:r(kc),lazy:{},string:r(Fc),text:r(Tc)};return i;function r(o){return l;function l(a){return Vc(i,o,a)}}}function Mc(e){for(;!Yi(e););return e}const to=/[\0\t\n\r]/g;function zc(){let e=1,t="",n=!0,i;return r;function r(o,l,a){const s=[];let u,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(to.lastIndex=d,u=to.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){t=o.slice(d);break}if(p===10&&d===f&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),d<f&&(s.push(o.slice(d,f)),e+=f-d),p){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:i=!0,e=1}d=f+1}return a&&(i&&s.push(-5),t&&s.push(t),s.push(null)),s}}const Hc={}.hasOwnProperty;function Xc(e){return Hc.call(an,e)?an[e]:!1}const Wc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rc(e){return e.replace(Wc,Zc)}function Zc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Mi(n.slice(o?2:1),o?16:10)}return Xc(n)||e}const no={}.hasOwnProperty;function jc(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Jc(n)(Mc(Lc(n).document().write(zc()(e,t,!0))))}function Jc(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(vt),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(Ne),blockQuote:o(ce),characterEscape:O,characterReference:O,codeFenced:o(we),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(we,l),codeText:o(Ie,l),codeTextData:O,data:O,codeFlowValue:O,definition:o(Oe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(ye),hardBreakEscape:o(Ee),hardBreakTrailing:o(Ee),htmlFlow:o(We,l),htmlFlowData:O,htmlText:o(We,l),htmlTextData:O,image:o(xe),label:l,link:o(vt),listItem:o(N),listItemValue:f,listOrdered:o(S,d),listUnordered:o(S),paragraph:o(Z),reference:b,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Ne),strong:o(z),thematicBreak:o(Ce)},exit:{atxHeading:s(),atxHeadingSequence:T,autolink:s(),autolinkEmail:Pe,autolinkProtocol:ue,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:re,characterReference:ve,codeFenced:s(A),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:k,codeIndented:s(m),codeText:s(Y),codeTextData:k,data:k,definition:s(),definitionDestinationString:P,definitionLabelString:F,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(R),htmlFlowData:k,htmlText:s(U),htmlTextData:k,image:s(ae),label:V,labelText:se,lineEnding:L,link:s(j),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ge,resourceDestinationString:g,resourceTitleString:le,resource:Q,setextHeading:s(G),setextHeadingLineSequence:H,setextHeadingText:x,strong:s(),thematicBreak:s()}};ro(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(B){let X={type:"root",children:[]};const J={stack:[X],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:c,data:n},_=[];let $=-1;for(;++$<B.length;)if(B[$][1].type==="listOrdered"||B[$][1].type==="listUnordered")if(B[$][0]==="enter")_.push($);else{const fe=_.pop();$=r(B,fe,$)}for($=-1;++$<B.length;){const fe=t[B[$][0]];no.call(fe,B[$][1].type)&&fe[B[$][1].type].call(Object.assign({sliceSerialize:B[$][2].sliceSerialize},J),B[$][1])}if(J.tokenStack.length>0){const fe=J.tokenStack[J.tokenStack.length-1];(fe[1]||io).call(J,void 0,fe[0])}for(X.position={start:yt(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:yt(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$<t.transforms.length;)X=t.transforms[$](X)||X;return X}function r(B,X,J){let _=X-1,$=-1,fe=!1,ut,Ke,It,ct;for(;++_<=J;){const He=B[_];switch(He[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{He[0]==="enter"?$++:$--,ct=void 0;break}case"lineEndingBlank":{He[0]==="enter"&&(ut&&!ct&&!$&&!It&&(It=_),ct=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ct=void 0}if(!$&&He[0]==="enter"&&He[1].type==="listItemPrefix"||$===-1&&He[0]==="exit"&&(He[1].type==="listUnordered"||He[1].type==="listOrdered")){if(ut){let ft=_;for(Ke=void 0;ft--;){const et=B[ft];if(et[1].type==="lineEnding"||et[1].type==="lineEndingBlank"){if(et[0]==="exit")continue;Ke&&(B[Ke][1].type="lineEndingBlank",fe=!0),et[1].type="lineEnding",Ke=ft}else if(!(et[1].type==="linePrefix"||et[1].type==="blockQuotePrefix"||et[1].type==="blockQuotePrefixWhitespace"||et[1].type==="blockQuoteMarker"||et[1].type==="listItemIndent"))break}It&&(!Ke||It<Ke)&&(ut._spread=!0),ut.end=Object.assign({},Ke?B[Ke][1].start:He[1].end),B.splice(Ke||_,0,["exit",ut,He[2]]),_++,J++}if(He[1].type==="listItemPrefix"){const ft={type:"listItem",_spread:!1,start:Object.assign({},He[1].start),end:void 0};ut=ft,B.splice(_,0,["enter",ft,He[2]]),_++,J++,It=void 0,ct=!0}}}return B[X][1]._spread=fe,J}function o(B,X){return J;function J(_){a.call(this,B(_),_),X&&X.call(this,_)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(B,X,J){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([X,J||void 0]),B.position={start:yt(X.start),end:void 0}}function s(B){return X;function X(J){B&&B.call(this,J),u.call(this,J)}}function u(B,X){const J=this.stack.pop(),_=this.tokenStack.pop();if(_)_[0].type!==B.type&&(X?X.call(this,B,_[0]):(_[1]||io).call(this,B,_[0]));else throw new Error("Cannot close `"+B.type+"` ("+Wt({start:B.start,end:B.end})+"): it’s not open");J.position.end=yt(B.end)}function c(){return qs(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(B){if(this.data.expectingFirstListItemValue){const X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function p(){const B=this.resume(),X=this.stack[this.stack.length-1];X.lang=B}function v(){const B=this.resume(),X=this.stack[this.stack.length-1];X.meta=B}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const B=this.resume(),X=this.stack[this.stack.length-1];X.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const B=this.resume(),X=this.stack[this.stack.length-1];X.value=B.replace(/(\r?\n|\r)$/g,"")}function F(B){const X=this.resume(),J=this.stack[this.stack.length-1];J.label=X,J.identifier=Vt(this.sliceSerialize(B)).toLowerCase()}function E(){const B=this.resume(),X=this.stack[this.stack.length-1];X.title=B}function P(){const B=this.resume(),X=this.stack[this.stack.length-1];X.url=B}function T(B){const X=this.stack[this.stack.length-1];if(!X.depth){const J=this.sliceSerialize(B).length;X.depth=J}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function H(B){const X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function O(B){const J=this.stack[this.stack.length-1].children;let _=J[J.length-1];(!_||_.type!=="text")&&(_=he(),_.position={start:yt(B.start),end:void 0},J.push(_)),this.stack.push(_)}function k(B){const X=this.stack.pop();X.value+=this.sliceSerialize(B),X.position.end=yt(B.end)}function L(B){const X=this.stack[this.stack.length-1];if(this.data.atHardBreak){const J=X.children[X.children.length-1];J.position.end=yt(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(X.type)&&(O.call(this,B),k.call(this,B))}function D(){this.data.atHardBreak=!0}function R(){const B=this.resume(),X=this.stack[this.stack.length-1];X.value=B}function U(){const B=this.resume(),X=this.stack[this.stack.length-1];X.value=B}function Y(){const B=this.resume(),X=this.stack[this.stack.length-1];X.value=B}function j(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=X,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function ae(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=X,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function se(B){const X=this.sliceSerialize(B),J=this.stack[this.stack.length-2];J.label=Rc(X),J.identifier=Vt(X).toLowerCase()}function V(){const B=this.stack[this.stack.length-1],X=this.resume(),J=this.stack[this.stack.length-1];if(this.data.inReference=!0,J.type==="link"){const _=B.children;J.children=_}else J.alt=X}function g(){const B=this.resume(),X=this.stack[this.stack.length-1];X.url=B}function le(){const B=this.resume(),X=this.stack[this.stack.length-1];X.title=B}function Q(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function ge(B){const X=this.resume(),J=this.stack[this.stack.length-1];J.label=X,J.identifier=Vt(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function ee(B){this.data.characterReferenceType=B.type}function re(B){const X=this.sliceSerialize(B),J=this.data.characterReferenceType;let _;J?(_=Mi(X,J==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_=Di(X);const $=this.stack[this.stack.length-1];$.value+=_}function ve(B){const X=this.stack.pop();X.position.end=yt(B.end)}function ue(B){k.call(this,B);const X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(B)}function Pe(B){k.call(this,B);const X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(B)}function ce(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function Ie(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ye(){return{type:"emphasis",children:[]}}function Ne(){return{type:"heading",depth:0,children:[]}}function Ee(){return{type:"break"}}function We(){return{type:"html",value:""}}function xe(){return{type:"image",title:null,url:"",alt:null}}function vt(){return{type:"link",title:null,url:"",children:[]}}function S(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function N(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function Z(){return{type:"paragraph",children:[]}}function z(){return{type:"strong",children:[]}}function he(){return{type:"text",value:""}}function Ce(){return{type:"thematicBreak"}}}function yt(e){return{line:e.line,column:e.column,offset:e.offset}}function ro(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?ro(e,i):Yc(e,i)}}function Yc(e,t){let n;for(n in t)if(no.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function io(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Wt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Wt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Wt({start:t.start,end:t.end})+") is still open")}function _c(e){const t=this;t.parser=n;function n(i){return jc(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Uc(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function qc(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
6
|
+
`}]}function Qc(e,t){const n=t.value?t.value+`
|
|
7
|
+
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function $c(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kc(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ed(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=Nt(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let l,a=e.footnoteCounts.get(i);a===void 0?(a=0,e.footnoteOrder.push(i),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(i,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function td(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nd(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function oo(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const l=r[r.length-1];return l&&l.type==="text"?l.value+=i:r.push({type:"text",value:i}),r}function rd(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return oo(e,t);const r={src:Nt(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function id(e,t){const n={src:Nt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function od(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function ld(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return oo(e,t);const r={href:Nt(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ad(e,t){const n={href:Nt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function sd(e,t,n){const i=e.all(t),r=n?ud(n):lo(t),o={},l=[];if(typeof t.checked=="boolean"){const c=i[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const c=i[a];(r||a!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
|
|
8
8
|
`}),c.type==="element"&&c.tagName==="p"&&!r?l.push(...c.children):l.push(c)}const s=i[i.length-1];s&&(r||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
9
|
-
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)}function
|
|
9
|
+
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)}function ud(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=lo(n[i])}return t}function lo(e){const t=e.spread;return t??e.children.length>1}function cd(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const l=i[r];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function dd(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pd(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function fd(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gd(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],l),r.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=ir(t.children[1]),s=Ei(t.children[t.children.length-1]);a&&s&&(l.position={start:a,end:s}),r.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function hd(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const d=t.children[s],f={},p=l?l[s]:void 0;p&&(f.align=p);let v={type:"element",tagName:o,properties:f,children:[]};d&&(v.children=e.all(d),e.patch(d,v),v=e.applyData(d,v)),u.push(v)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function md(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ao=9,so=32;function bd(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const o=[];for(;i;)o.push(uo(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return o.push(uo(t.slice(r),r>0,!1)),o.join("")}function uo(e,t,n){let i=0,r=e.length;if(t){let o=e.codePointAt(i);for(;o===ao||o===so;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(r-1);for(;o===ao||o===so;)r--,o=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function yd(e,t){const n={type:"text",value:bd(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function vd(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Id={blockquote:Uc,break:qc,code:Qc,delete:$c,emphasis:Kc,footnoteReference:ed,heading:td,html:nd,imageReference:rd,image:id,inlineCode:od,linkReference:ld,link:ad,listItem:sd,list:cd,paragraph:dd,root:pd,strong:fd,table:gd,tableCell:md,tableRow:hd,text:yd,thematicBreak:vd,toml:cn,yaml:cn,definition:cn,footnoteDefinition:cn};function cn(){}const co=-1,dn=0,Jt=1,pn=2,br=3,yr=4,vr=5,Ir=6,po=7,fo=8,go=typeof self=="object"?self:globalThis,xd=(e,t)=>{const n=(r,o)=>(e.set(o,r),r),i=r=>{if(e.has(r))return e.get(r);const[o,l]=t[r];switch(o){case dn:case co:return n(l,r);case Jt:{const a=n([],r);for(const s of l)a.push(i(s));return a}case pn:{const a=n({},r);for(const[s,u]of l)a[i(s)]=i(u);return a}case br:return n(new Date(l),r);case yr:{const{source:a,flags:s}=l;return n(new RegExp(a,s),r)}case vr:{const a=n(new Map,r);for(const[s,u]of l)a.set(i(s),i(u));return a}case Ir:{const a=n(new Set,r);for(const s of l)a.add(i(s));return a}case po:{const{name:a,message:s}=l;return n(new go[a](s),r)}case fo:return n(BigInt(l),r);case"BigInt":return n(Object(BigInt(l)),r);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(new go[o](l),r)};return i},ho=e=>xd(new Map,e)(0),Dt="",{toString:Cd}={},{keys:Ad}=Object,Yt=e=>{const t=typeof e;if(t!=="object"||!e)return[dn,t];const n=Cd.call(e).slice(8,-1);switch(n){case"Array":return[Jt,Dt];case"Object":return[pn,Dt];case"Date":return[br,Dt];case"RegExp":return[yr,Dt];case"Map":return[vr,Dt];case"Set":return[Ir,Dt];case"DataView":return[Jt,n]}return n.includes("Array")?[Jt,n]:n.includes("Error")?[po,n]:[pn,n]},fn=([e,t])=>e===dn&&(t==="function"||t==="symbol"),Sd=(e,t,n,i)=>{const r=(l,a)=>{const s=i.push(l)-1;return n.set(a,s),s},o=l=>{if(n.has(l))return n.get(l);let[a,s]=Yt(l);switch(a){case dn:{let c=l;switch(s){case"bigint":a=fo,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return r([co],l)}return r([a,c],l)}case Jt:{if(s){let f=l;return s==="DataView"?f=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(f=new Uint8Array(l)),r([s,[...f]],l)}const c=[],d=r([a,c],l);for(const f of l)c.push(o(f));return d}case pn:{if(s)switch(s){case"BigInt":return r([s,l.toString()],l);case"Boolean":case"Number":case"String":return r([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],d=r([a,c],l);for(const f of Ad(l))(e||!fn(Yt(l[f])))&&c.push([o(f),o(l[f])]);return d}case br:return r([a,l.toISOString()],l);case yr:{const{source:c,flags:d}=l;return r([a,{source:c,flags:d}],l)}case vr:{const c=[],d=r([a,c],l);for(const[f,p]of l)(e||!(fn(Yt(f))||fn(Yt(p))))&&c.push([o(f),o(p)]);return d}case Ir:{const c=[],d=r([a,c],l);for(const f of l)(e||!fn(Yt(f)))&&c.push(o(f));return d}}const{message:u}=l;return r([a,{name:s,message:u}],l)};return o},mo=(e,{json:t,lossy:n}={})=>{const i=[];return Sd(!(t||n),!!t,new Map,i)(e),i},gn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ho(mo(e,t)):structuredClone(e):(e,t)=>ho(mo(e,t));function wd(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ed(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kd(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||wd,i=e.options.footnoteBackLabel||Ed,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),f=Nt(d.toLowerCase());let p=0;const v=[],y=e.footnoteCounts.get(d);for(;y!==void 0&&++p<=y;){v.length>0&&v.push({type:"text",value:" "});let F=typeof n=="string"?n:n(s,p);typeof F=="string"&&(F={type:"text",value:F}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(s,p),className:["data-footnote-backref"]},children:Array.isArray(F)?F:[F]})}const A=c[c.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const F=A.children[A.children.length-1];F&&F.type==="text"?F.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...v)}else c.push(...v);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,m),a.push(m)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...gn(l),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
10
10
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
11
|
-
`}]}}const bo=function(e){if(e==null)return
|
|
11
|
+
`}]}}const bo=function(e){if(e==null)return Td;if(typeof e=="function")return hn(e);if(typeof e=="object")return Array.isArray(e)?Pd(e):Bd(e);if(typeof e=="string")return Fd(e);throw new Error("Expected function, string, or object as test")};function Pd(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bo(e[n]);return hn(i);function i(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function Bd(e){const t=e;return hn(n);function n(i){const r=i;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function Fd(e){return hn(t);function t(n){return n&&n.type===e}}function hn(e){return t;function t(n,i,r){return!!(Gd(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function Td(){return!0}function Gd(e){return e!==null&&typeof e=="object"&&"type"in e}function ab(e){return e}const yo=[],Od=!0,vo=!1,Vd="skip";function Nd(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const o=bo(r),l=i?-1:1;a(e,void 0,[])();function a(s,u,c){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=yo,v,y,A;if((!t||o(s,u,c[c.length-1]||void 0))&&(p=Dd(n(s,c)),p[0]===vo))return p;if("children"in s&&s.children){const m=s;if(m.children&&p[0]!==Vd)for(y=(i?m.children.length:-1)+l,A=c.concat(m);y>-1&&y<m.children.length;){const F=m.children[y];if(v=a(F,y,A)(),v[0]===vo)return v;y=typeof v[1]=="number"?v[1]:y+l}}return p}}}function Dd(e){return Array.isArray(e)?e:typeof e=="number"?[Od,e]:e==null?yo:[e]}function Io(e,t,n,i){let r,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,r=n):(o=t,l=n,r=i),Nd(e,o,a,r);function a(s,u){const c=u[u.length-1],d=c?c.children.indexOf(s):void 0;return l(s,d,c)}}const xr={}.hasOwnProperty,Ld={};function Md(e,t){const n=t||Ld,i=new Map,r=new Map,o=new Map,l={...Id,...n.handlers},a={all:u,applyData:Hd,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:n,patch:zd,wrap:Wd};return Io(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:r,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),a;function s(c,d){const f=c.type,p=a.handlers[f];if(xr.call(a.handlers,f)&&p)return p(a,c,d);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in c){const{children:y,...A}=c,m=gn(A);return m.children=a.all(c),m}return gn(c)}return(a.options.unknownHandler||Xd)(a,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let p=-1;for(;++p<f.length;){const v=a.one(f[p],c);if(v){if(p&&f[p-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=xo(v.value)),!Array.isArray(v)&&v.type==="element")){const y=v.children[0];y&&y.type==="text"&&(y.value=xo(y.value))}Array.isArray(v)?d.push(...v):d.push(v)}}}return d}}function zd(e,t){e.position&&(t.position=Ps(e))}function Hd(e,t){let n=t;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const l="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,gn(o)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function Xd(e,t){const n=t.data||{},i="value"in t&&!(xr.call(n,"hProperties")||xr.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Wd(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
12
12
|
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
13
13
|
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
14
|
-
`}),n}function xo(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Co(e,t){const n=
|
|
15
|
-
`},r),o}function Wd(e,t){return e&&"run"in e?async function(n,i){const r=Co(n,{file:i,...t});await e.run(r,i)}:function(n,i){return Co(n,{file:i,...e||t})}}function Ao(e){if(e)throw e}var mn=Object.prototype.hasOwnProperty,So=Object.prototype.toString,wo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,ko=function(t){return typeof Array.isArray=="function"?Array.isArray(t):So.call(t)==="[object Array]"},Po=function(t){if(!t||So.call(t)!=="[object Object]")return!1;var n=mn.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&mn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||mn.call(t,r)},Bo=function(t,n){wo&&n.name==="__proto__"?wo(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Fo=function(t,n){if(n==="__proto__")if(mn.call(t,n)){if(Eo)return Eo(t,n).value}else return;return t[n]},Rd=function e(){var t,n,i,r,o,l,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)i=Fo(a,n),r=Fo(t,n),a!==r&&(c&&r&&(Po(r)||(o=ko(r)))?(o?(o=!1,l=i&&ko(i)?i:[]):l=i&&Po(i)?i:{},Bo(a,{name:n,newValue:e(c,l,r)})):typeof r<"u"&&Bo(a,{name:n,newValue:r}));return a};const Cr=tr(Rd);function Ar(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Zd(){const e=[],t={run:n,use:i};return t;function n(...r){let o=-1;const l=r.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...r);function a(s,...u){const c=e[++o];let d=-1;if(s){l(s);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?jd(c,a)(...u):l(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function jd(e,t){let n;return i;function i(...l){const a=e.length>l.length;let s;a&&l.push(r);try{s=e.apply(this,l)}catch(u){const c=u;if(a&&n)throw c;return r(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(l,...a){n||(n=!0,t(l,...a))}function o(l){r(null,l)}}const lt={basename:Jd,dirname:Yd,extname:_d,join:Ud,sep:"/"};function Jd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_t(e);let n=0,i=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else l<0&&(o=!0,l=r+1),a>-1&&(e.codePointAt(r)===t.codePointAt(a--)?a<0&&(i=r):(a=-1,i=l));return n===i?i=l:i<0&&(i=e.length),e.slice(n,i)}function Yd(e){if(_t(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function _d(e){_t(e);let t=e.length,n=-1,i=0,r=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){i=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||n<0||o===0||o===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function Ud(...e){let t=-1,n;for(;++t<e.length;)_t(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":qd(n)}function qd(e){_t(e);const t=e.codePointAt(0)===47;let n=Qd(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Qd(e,t){let n="",i=0,r=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(r===l-1||o===1))if(r!==l-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",i=0):(n=n.slice(0,s),i=n.length-1-n.lastIndexOf("/")),r=l,o=0;continue}}else if(n.length>0){n="",i=0,r=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,l):n=e.slice(r+1,l),i=l-r-1;r=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function _t(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $d={cwd:Kd};function Kd(){return"/"}function Sr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ep(e){if(typeof e=="string")e=new URL(e);else if(!Sr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return tp(e)}function tp(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const wr=["history","path","basename","stem","extname","dirname"];class To{constructor(t){let n;t?Sr(t)?n={path:t}:typeof t=="string"||np(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":$d.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<wr.length;){const o=wr[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let r;for(r in n)wr.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?lt.basename(this.path):void 0}set basename(t){kr(t,"basename"),Er(t,"basename"),this.path=lt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lt.dirname(this.path):void 0}set dirname(t){Go(this.basename,"dirname"),this.path=lt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lt.extname(this.path):void 0}set extname(t){if(Er(t,"extname"),Go(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Sr(t)&&(t=ep(t)),kr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lt.basename(this.path,this.extname):void 0}set stem(t){kr(t,"stem"),Er(t,"stem"),this.path=lt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new He(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Er(e,t){if(e&&e.includes(lt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lt.sep+"`")}function kr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Go(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function np(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rp=function(e){const i=this.constructor.prototype,r=i[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,i),o},ip={}.hasOwnProperty;class Pr extends rp{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Zd()}copy(){const t=new Pr;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Cr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Tr("data",this.frozen),this.namespace[t]=n,this):ip.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Tr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=bn(t),i=this.parser||this.Parser;return Br("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Br("process",this.parser||this.Parser),Fr("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(o,l){const a=bn(t),s=i.parse(a);i.run(s,a,function(c,d,f){if(c||!d||!f)return u(c);const p=d,v=i.stringify(p,f);ap(v)?f.value=v:f.result=v,u(c,f)});function u(c,d){c||!d?l(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,i;return this.freeze(),Br("processSync",this.parser||this.Parser),Fr("processSync",this.compiler||this.Compiler),this.process(t,r),Vo("processSync","process",n),i;function r(o,l){n=!0,Ao(o),i=l}}run(t,n,i){Oo(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(l,a){const s=bn(n);r.run(t,s,u);function u(c,d,f){const p=d||t;c?a(c):l?l(p):i(void 0,p,f)}}}runSync(t,n){let i=!1,r;return this.run(t,n,o),Vo("runSync","run",i),r;function o(l,a){Ao(l),r=a,i=!0}}stringify(t,n){this.freeze();const i=bn(n),r=this.compiler||this.Compiler;return Fr("stringify",r),Oo(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(Tr("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;s(c,d)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(r.settings=Cr(!0,r.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,f=-1;for(;++d<i.length;)if(i[d][0]===u){f=d;break}if(f===-1)i.push([u,...c]);else if(c.length>0){let[p,...v]=c;const y=i[f][1];Ar(y)&&Ar(p)&&(p=Cr(!0,y,p)),i[f]=[u,p,...v]}}}}const op=new Pr().freeze();function Br(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Oo(e){if(!Ar(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Vo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bn(e){return lp(e)?e:new To(e)}function lp(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ap(e){return typeof e=="string"||sp(e)}function sp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const up="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",No=[],Do={allowDangerousHtml:!0},cp=/^(https?|ircs?|mailto|xmpp)$/i,dp=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Lo(e){const t=pp(e),n=fp(e);return gp(t.runSync(t.parse(n),n),e)}function pp(e){const t=e.rehypePlugins||No,n=e.remarkPlugins||No,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Do}:Do;return op().use(Yc).use(n).use(Wd,i).use(t)}function fp(e){const t=e.children||"",n=new To;return typeof t=="string"&&(n.value=t),n}function gp(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||hp;for(const c of dp)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+up+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Io(e,u),Gs(e,{Fragment:x.Fragment,components:r,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function u(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return l?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in ur)if(Object.hasOwn(ur,p)&&Object.hasOwn(c.properties,p)){const v=c.properties[p],y=ur[p];(y===null||y.includes(c.tagName))&&(c.properties[p]=s(String(v||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&i&&typeof d=="number"&&(p=!i(c,d,f)),p&&f&&typeof d=="number")return a&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function hp(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||cp.test(e.slice(0,t))?e:""}function yn({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},n={...t,background:"#fff3cd"},i={...t,background:"#d1ecf1"},r={...t,background:"#f8d7da"},o={...t,background:"#fffff2"};let l={};switch(e.alertType){case"info":l=i;break;case"neutral":l=o;break;case"warning":l=n;break;case"error":l=r;break;default:l=t}return x.jsx("div",{className:`pd-alert-${e.alertType}`,style:l,children:x.jsx(Lo,{components:{a:({...a})=>x.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var vn={exports:{}};vn.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",r=1,o=2,l=9007199254740991,a="[object Arguments]",s="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",v="[object GeneratorFunction]",y="[object Map]",A="[object Number]",m="[object Null]",B="[object Object]",w="[object Promise]",k="[object Proxy]",T="[object RegExp]",I="[object Set]",H="[object String]",G="[object Symbol]",V="[object Undefined]",E="[object WeakMap]",L="[object ArrayBuffer]",D="[object DataView]",R="[object Float32Array]",_="[object Float64Array]",j="[object Int8Array]",Z="[object Int16Array]",ue="[object Int32Array]",pe="[object Uint8Array]",N="[object Uint8ClampedArray]",g="[object Uint16Array]",se="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,b=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,te={};te[R]=te[_]=te[j]=te[Z]=te[ue]=te[pe]=te[N]=te[g]=te[se]=!0,te[a]=te[s]=te[L]=te[c]=te[D]=te[d]=te[f]=te[p]=te[y]=te[A]=te[B]=te[T]=te[I]=te[H]=te[E]=!1;var Q=typeof bt=="object"&&bt&&bt.Object===Object&&bt,Ae=typeof self=="object"&&self&&self.Object===Object&&self,me=Q||Ae||Function("return this")(),Ve=t&&!t.nodeType&&t,ce=Ve&&!0&&e&&!e.nodeType&&e,Ee=ce&&ce.exports===Ve,be=Ee&&Q.process,Te=function(){try{return be&&be.binding&&be.binding("util")}catch{}}(),Pe=Te&&Te.isTypedArray;function De(h,S){for(var M=-1,U=h==null?0:h.length,ke=0,ge=[];++M<U;){var Ge=h[M];S(Ge,M,h)&&(ge[ke++]=Ge)}return ge}function de(h,S){for(var M=-1,U=S.length,ke=h.length;++M<U;)h[ke+M]=S[M];return h}function Re(h,S){for(var M=-1,U=h==null?0:h.length;++M<U;)if(S(h[M],M,h))return!0;return!1}function z(h,S){for(var M=-1,U=Array(h);++M<h;)U[M]=S(M);return U}function le(h){return function(S){return h(S)}}function F(h,S){return h.has(S)}function O(h,S){return h==null?void 0:h[S]}function $(h){var S=-1,M=Array(h.size);return h.forEach(function(U,ke){M[++S]=[ke,U]}),M}function K(h,S){return function(M){return h(S(M))}}function Ce(h){var S=-1,M=Array(h.size);return h.forEach(function(U){M[++S]=U}),M}var Ie=Array.prototype,P=Function.prototype,X=Object.prototype,J=me["__core-js_shared__"],Y=P.toString,re=X.hasOwnProperty,xe=function(){var h=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ct=X.toString,et=RegExp("^"+Y.call(re).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=Ee?me.Buffer:void 0,dt=me.Symbol,Xe=me.Uint8Array,gt=X.propertyIsEnumerable,tt=Ie.splice,kt=dt?dt.toStringTag:void 0,Ca=Object.getOwnPropertySymbols,$h=It?It.isBuffer:void 0,Kh=K(Object.keys,Object),ii=Ht(me,"DataView"),tn=Ht(me,"Map"),oi=Ht(me,"Promise"),li=Ht(me,"Set"),ai=Ht(me,"WeakMap"),nn=Ht(Object,"create"),em=Ft(ii),tm=Ft(tn),nm=Ft(oi),rm=Ft(li),im=Ft(ai),Aa=dt?dt.prototype:void 0,si=Aa?Aa.valueOf:void 0;function Pt(h){var S=-1,M=h==null?0:h.length;for(this.clear();++S<M;){var U=h[S];this.set(U[0],U[1])}}function om(){this.__data__=nn?nn(null):{},this.size=0}function lm(h){var S=this.has(h)&&delete this.__data__[h];return this.size-=S?1:0,S}function am(h){var S=this.__data__;if(nn){var M=S[h];return M===i?void 0:M}return re.call(S,h)?S[h]:void 0}function sm(h){var S=this.__data__;return nn?S[h]!==void 0:re.call(S,h)}function um(h,S){var M=this.__data__;return this.size+=this.has(h)?0:1,M[h]=nn&&S===void 0?i:S,this}Pt.prototype.clear=om,Pt.prototype.delete=lm,Pt.prototype.get=am,Pt.prototype.has=sm,Pt.prototype.set=um;function ht(h){var S=-1,M=h==null?0:h.length;for(this.clear();++S<M;){var U=h[S];this.set(U[0],U[1])}}function cm(){this.__data__=[],this.size=0}function dm(h){var S=this.__data__,M=Zn(S,h);if(M<0)return!1;var U=S.length-1;return M==U?S.pop():tt.call(S,M,1),--this.size,!0}function pm(h){var S=this.__data__,M=Zn(S,h);return M<0?void 0:S[M][1]}function fm(h){return Zn(this.__data__,h)>-1}function gm(h,S){var M=this.__data__,U=Zn(M,h);return U<0?(++this.size,M.push([h,S])):M[U][1]=S,this}ht.prototype.clear=cm,ht.prototype.delete=dm,ht.prototype.get=pm,ht.prototype.has=fm,ht.prototype.set=gm;function Bt(h){var S=-1,M=h==null?0:h.length;for(this.clear();++S<M;){var U=h[S];this.set(U[0],U[1])}}function hm(){this.size=0,this.__data__={hash:new Pt,map:new(tn||ht),string:new Pt}}function mm(h){var S=jn(this,h).delete(h);return this.size-=S?1:0,S}function bm(h){return jn(this,h).get(h)}function ym(h){return jn(this,h).has(h)}function vm(h,S){var M=jn(this,h),U=M.size;return M.set(h,S),this.size+=M.size==U?0:1,this}Bt.prototype.clear=hm,Bt.prototype.delete=mm,Bt.prototype.get=bm,Bt.prototype.has=ym,Bt.prototype.set=vm;function Rn(h){var S=-1,M=h==null?0:h.length;for(this.__data__=new Bt;++S<M;)this.add(h[S])}function Im(h){return this.__data__.set(h,i),this}function xm(h){return this.__data__.has(h)}Rn.prototype.add=Rn.prototype.push=Im,Rn.prototype.has=xm;function xt(h){var S=this.__data__=new ht(h);this.size=S.size}function Cm(){this.__data__=new ht,this.size=0}function Am(h){var S=this.__data__,M=S.delete(h);return this.size=S.size,M}function Sm(h){return this.__data__.get(h)}function wm(h){return this.__data__.has(h)}function Em(h,S){var M=this.__data__;if(M instanceof ht){var U=M.__data__;if(!tn||U.length<n-1)return U.push([h,S]),this.size=++M.size,this;M=this.__data__=new Bt(U)}return M.set(h,S),this.size=M.size,this}xt.prototype.clear=Cm,xt.prototype.delete=Am,xt.prototype.get=Sm,xt.prototype.has=wm,xt.prototype.set=Em;function km(h,S){var M=Jn(h),U=!M&&Wm(h),ke=!M&&!U&&ui(h),ge=!M&&!U&&!ke&&Ga(h),Ge=M||U||ke||ge,Me=Ge?z(h.length,String):[],ze=Me.length;for(var Be in h)re.call(h,Be)&&!(Ge&&(Be=="length"||ke&&(Be=="offset"||Be=="parent")||ge&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||Lm(Be,ze)))&&Me.push(Be);return Me}function Zn(h,S){for(var M=h.length;M--;)if(Pa(h[M][0],S))return M;return-1}function Pm(h,S,M){var U=S(h);return Jn(h)?U:de(U,M(h))}function rn(h){return h==null?h===void 0?V:m:kt&&kt in Object(h)?Nm(h):Xm(h)}function Sa(h){return on(h)&&rn(h)==a}function wa(h,S,M,U,ke){return h===S?!0:h==null||S==null||!on(h)&&!on(S)?h!==h&&S!==S:Bm(h,S,M,U,wa,ke)}function Bm(h,S,M,U,ke,ge){var Ge=Jn(h),Me=Jn(S),ze=Ge?s:Ct(h),Be=Me?s:Ct(S);ze=ze==a?B:ze,Be=Be==a?B:Be;var Ue=ze==B,nt=Be==B,We=ze==Be;if(We&&ui(h)){if(!ui(S))return!1;Ge=!0,Ue=!1}if(We&&!Ue)return ge||(ge=new xt),Ge||Ga(h)?Ea(h,S,M,U,ke,ge):Om(h,S,ze,M,U,ke,ge);if(!(M&r)){var Qe=Ue&&re.call(h,"__wrapped__"),$e=nt&&re.call(S,"__wrapped__");if(Qe||$e){var At=Qe?h.value():h,mt=$e?S.value():S;return ge||(ge=new xt),ke(At,mt,M,U,ge)}}return We?(ge||(ge=new xt),Vm(h,S,M,U,ke,ge)):!1}function Fm(h){if(!Ta(h)||zm(h))return!1;var S=Ba(h)?et:b;return S.test(Ft(h))}function Tm(h){return on(h)&&Fa(h.length)&&!!te[rn(h)]}function Gm(h){if(!Hm(h))return Kh(h);var S=[];for(var M in Object(h))re.call(h,M)&&M!="constructor"&&S.push(M);return S}function Ea(h,S,M,U,ke,ge){var Ge=M&r,Me=h.length,ze=S.length;if(Me!=ze&&!(Ge&&ze>Me))return!1;var Be=ge.get(h);if(Be&&ge.get(S))return Be==S;var Ue=-1,nt=!0,We=M&o?new Rn:void 0;for(ge.set(h,S),ge.set(S,h);++Ue<Me;){var Qe=h[Ue],$e=S[Ue];if(U)var At=Ge?U($e,Qe,Ue,S,h,ge):U(Qe,$e,Ue,h,S,ge);if(At!==void 0){if(At)continue;nt=!1;break}if(We){if(!Re(S,function(mt,Tt){if(!F(We,Tt)&&(Qe===mt||ke(Qe,mt,M,U,ge)))return We.push(Tt)})){nt=!1;break}}else if(!(Qe===$e||ke(Qe,$e,M,U,ge))){nt=!1;break}}return ge.delete(h),ge.delete(S),nt}function Om(h,S,M,U,ke,ge,Ge){switch(M){case D:if(h.byteLength!=S.byteLength||h.byteOffset!=S.byteOffset)return!1;h=h.buffer,S=S.buffer;case L:return!(h.byteLength!=S.byteLength||!ge(new Xe(h),new Xe(S)));case c:case d:case A:return Pa(+h,+S);case f:return h.name==S.name&&h.message==S.message;case T:case H:return h==S+"";case y:var Me=$;case I:var ze=U&r;if(Me||(Me=Ce),h.size!=S.size&&!ze)return!1;var Be=Ge.get(h);if(Be)return Be==S;U|=o,Ge.set(h,S);var Ue=Ea(Me(h),Me(S),U,ke,ge,Ge);return Ge.delete(h),Ue;case G:if(si)return si.call(h)==si.call(S)}return!1}function Vm(h,S,M,U,ke,ge){var Ge=M&r,Me=ka(h),ze=Me.length,Be=ka(S),Ue=Be.length;if(ze!=Ue&&!Ge)return!1;for(var nt=ze;nt--;){var We=Me[nt];if(!(Ge?We in S:re.call(S,We)))return!1}var Qe=ge.get(h);if(Qe&&ge.get(S))return Qe==S;var $e=!0;ge.set(h,S),ge.set(S,h);for(var At=Ge;++nt<ze;){We=Me[nt];var mt=h[We],Tt=S[We];if(U)var Oa=Ge?U(Tt,mt,We,S,h,ge):U(mt,Tt,We,h,S,ge);if(!(Oa===void 0?mt===Tt||ke(mt,Tt,M,U,ge):Oa)){$e=!1;break}At||(At=We=="constructor")}if($e&&!At){var Yn=h.constructor,_n=S.constructor;Yn!=_n&&"constructor"in h&&"constructor"in S&&!(typeof Yn=="function"&&Yn instanceof Yn&&typeof _n=="function"&&_n instanceof _n)&&($e=!1)}return ge.delete(h),ge.delete(S),$e}function ka(h){return Pm(h,jm,Dm)}function jn(h,S){var M=h.__data__;return Mm(S)?M[typeof S=="string"?"string":"hash"]:M.map}function Ht(h,S){var M=O(h,S);return Fm(M)?M:void 0}function Nm(h){var S=re.call(h,kt),M=h[kt];try{h[kt]=void 0;var U=!0}catch{}var ke=ct.call(h);return U&&(S?h[kt]=M:delete h[kt]),ke}var Dm=Ca?function(h){return h==null?[]:(h=Object(h),De(Ca(h),function(S){return gt.call(h,S)}))}:Jm,Ct=rn;(ii&&Ct(new ii(new ArrayBuffer(1)))!=D||tn&&Ct(new tn)!=y||oi&&Ct(oi.resolve())!=w||li&&Ct(new li)!=I||ai&&Ct(new ai)!=E)&&(Ct=function(h){var S=rn(h),M=S==B?h.constructor:void 0,U=M?Ft(M):"";if(U)switch(U){case em:return D;case tm:return y;case nm:return w;case rm:return I;case im:return E}return S});function Lm(h,S){return S=S??l,!!S&&(typeof h=="number"||he.test(h))&&h>-1&&h%1==0&&h<S}function Mm(h){var S=typeof h;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?h!=="__proto__":h===null}function zm(h){return!!xe&&xe in h}function Hm(h){var S=h&&h.constructor,M=typeof S=="function"&&S.prototype||X;return h===M}function Xm(h){return ct.call(h)}function Ft(h){if(h!=null){try{return Y.call(h)}catch{}try{return h+""}catch{}}return""}function Pa(h,S){return h===S||h!==h&&S!==S}var Wm=Sa(function(){return arguments}())?Sa:function(h){return on(h)&&re.call(h,"callee")&&!gt.call(h,"callee")},Jn=Array.isArray;function Rm(h){return h!=null&&Fa(h.length)&&!Ba(h)}var ui=$h||Ym;function Zm(h,S){return wa(h,S)}function Ba(h){if(!Ta(h))return!1;var S=rn(h);return S==p||S==v||S==u||S==k}function Fa(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=l}function Ta(h){var S=typeof h;return h!=null&&(S=="object"||S=="function")}function on(h){return h!=null&&typeof h=="object"}var Ga=Pe?le(Pe):Tm;function jm(h){return Rm(h)?km(h):Gm(h)}function Jm(){return[]}function Ym(){return!1}e.exports=Zm}(vn,vn.exports);var mp=vn.exports;const Mo=tr(mp),zo=C.createContext(void 0),at=()=>{const e=C.useContext(zo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},bp=({children:e,client:t})=>{const[n]=C.useState(()=>new rt.QueryClient({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}}));return x.jsx(rt.QueryClientProvider,{client:n,children:x.jsx(zo.Provider,{value:t,children:e})})};function Ho(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function yp(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const i of t)if(typeof i=="object"&&i&&"emitValue"in i){const r=i.emitValue;typeof r=="object"&&r&&"__lv"in r?n.push(r.__lv.value):n.push(r)}else return[];return n}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function vp(e){const t=yp(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function Ip(e){const t=Ho(e.value);if(t==null||typeof t>"u")return["required"]}function xp(e){const{prop:t,value:n}=e,i=Ho(n);if(!t.default&&(i==null||typeof i>"u"))return["required"];const r=typeof i=="number"?i:parseInt(String(i));if(Number.isNaN(r))return["not a number"];const o=[];return typeof t.min=="number"&&r<t.min&&o.push("number too small"),typeof t.max=="number"&&r>t.max&&o.push("number too big"),o}function Cp(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function Ap(e){const t=e.authType==="oauth",n=JSON.parse(e.customFieldsJson||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const i=(e.extracted_custom_fields_names||[]).map(r=>({name:r}));n.push(...i)}return n.map(i=>({...i,optional:i.optional||t}))}function Sp(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!t.authType)return;if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const i=n;if("authProvisionId"in i&&!i.authProvisionId){const r=[];if(t.authType==="oauth"&&!i.oauth_access_token&&r.push("missing oauth token"),t.authType==="oauth"||t.authType==="keys"){const o=Ap(t),l=i;for(const a of o)!a.optional&&!l[a.name]&&r.push(`missing custom field: ${a.name}`)}return r}}const wp=(e,t)=>{if(e!==void 0&&e!=="")return t!==void 0&&t!==""?{resolvedId:e,warningType:"both"}:{resolvedId:e};if(t!==void 0&&t!=="")return{resolvedId:t,warningType:"deprecated"};throw new Error("Either externalUserId or userId must be provided")};function st(e,t){return e.type===t}function Gr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"value"in e&&(typeof e.value=="string"||typeof e.value=="number")}function Le(e){if(e==null)return{label:"",value:""};if(typeof e!="object")return{label:String(e),value:e};if("__lv"in e)return Le(e.__lv);if("lv"in e)return Le(e.lv);if("value"in e){const{label:t,value:n}=e;return{label:String(t||n),value:n}}return{label:String(e),value:e}}function Or(e){return!e||typeof e!="object"||!("__lv"in e)?!1:e.__lv!=null}function Xo(e){return!Array.isArray(e)||e.length===0?!1:e.every(t=>Or(t))}function Ep(e){return Or(e)||Xo(e)}const Ut=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer","dir"],Vr=C.createContext(void 0),qt=()=>{const e=C.useContext(Vr);if(!e)throw new Error("Must be used inside provider");return e},Wo=({children:e,props:t})=>{const n=at(),i=C.useId(),{component:r,configuredProps:o,propNames:l,externalUserId:a,userId:s,sdkResponse:u,enableDebugging:c,oauthAppConfig:d}=t,{resolvedId:f,warningType:p}=C.useMemo(()=>wp(a,s),[a,s]);C.useEffect(()=>{process.env.NODE_ENV!=="production"&&(p==="both"?console.warn("[connect-react] Both externalUserId and userId provided. Using externalUserId. Please remove userId to avoid this warning."):p==="deprecated"&&console.warn("[connect-react] userId is deprecated. Please use externalUserId instead."))},[p]);const v=r.key,[y,A]=C.useState(0),[m,B]=C.useState({}),[w,k]=C.useState(!1),[T,I]=C.useState({}),[H,G]=C.useState([]),[V,E]=C.useState({});C.useEffect(()=>{E({})},[r.key]);const L=F=>V[F.name];let D=o||{};const[R,_]=C.useState(D),j=t.onUpdateConfiguredProps||_;t.onUpdateConfiguredProps||(D=R);const[Z,ue]=C.useState(),pe=C.useRef();Z&&(pe.current=Z);const[N,g]=C.useState(),se={externalUserId:f,id:v,configuredProps:D,dynamicPropsId:Z==null?void 0:Z.id},q={externalUserId:f,id:v,dynamicPropsId:Z==null?void 0:Z.id,reloadTriggerProps:Object.fromEntries(Object.entries(D).filter(([F])=>{const O=((Z==null?void 0:Z.configurableProps)||t.component.configurableProps||[]).find($=>$.name===F);return O&&"reloadProps"in O&&O.reloadProps}))},{isFetching:b}=rt.useQuery({queryKey:["dynamicProps",q],queryFn:async()=>{var F;try{const O=await n.components.reloadProps(se),{dynamicProps:$,observations:K,errors:Ce}=O,Ie=$;return K&&K.filter(P=>P.k==="error").length>0?z(K):z(Ce),g(void 0),$&&Ie&&((F=t.onUpdateDynamicProps)==null||F.call(t,$),ue(Ie)),[]}finally{g(void 0)}},enabled:N!=null,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,staleTime:1/0}),[he,te]=C.useState([]);C.useEffect(()=>{de()},[D]);const Q=C.useMemo(()=>{const F=pe.current||Z;let O=(F==null?void 0:F.configurableProps)||t.component.configurableProps||[];if(l!=null&&l.length){const $=[];for(const K of O)l.findIndex(Ce=>K.name===Ce)>=0&&$.push(K);O=$}return N!=null&&b&&(O=Array.isArray(O)?O.slice(0,N+1):O),O},[Z==null?void 0:Z.configurableProps,t.component.configurableProps,l,N,b]),Ae=(F,O)=>{const $=[];if(F.optional||F.hidden||F.disabled||Ut.includes(F.type))return[];if(st(F,"app")){const K=m[F.name];if(K){const Ce="app"in K.extra?K.extra.app:void 0;$.push(...Sp({value:O,app:Ce})??[])}else $.push("field not registered")}else st(F,"boolean")?$.push(...Ip({value:O})??[]):st(F,"integer")?$.push(...xp({prop:F,value:O})??[]):st(F,"string")?$.push(...Cp({prop:F,value:O})??[]):st(F,"string[]")&&$.push(...vp({prop:F,value:O})??[]);return $},me=F=>{let O;for(let $=0;$<Q.length;$++){const K=Q[$];if(K.hidden||K.optional&&!L(K))continue;if(F[K.name]===void 0&&O==null&&(K.type==="app"||K.remoteOptions)){O=$;break}}A(O)},Ve=F=>{j(F),me(F),ce(F)},ce=F=>{const O={};for(let $=0;$<Q.length;$++){const K=Q[$],Ce=F[K.name],Ie=Ae(K,Ce);Ie.length&&(O[K.name]=Ie)}I(O)},Ee=(F,O)=>F.type!=="integer"||typeof O=="number"||Ep(O)?O:void 0;C.useEffect(()=>{me(D)},[r.key,Q,V]),C.useEffect(()=>{me(D)},[D,Q,V]),C.useEffect(()=>{ce(D)},[D,N,y]),C.useEffect(()=>{z(u)},[u]),C.useEffect(()=>{var O,$;const F={};for(const K of Q){if(K.hidden||Ut.includes(K.type))continue;if(K.optional&&!L(K)){const Ie=D[K.name],P=pe.current||Z,J=(((O=P==null?void 0:P.configurableProps)==null?void 0:O.some(Y=>Y.name===K.name))??!1)&&!(($=t.component.configurableProps)!=null&&$.some(Y=>Y.name===K.name));if(Ie!==void 0){F[K.name]=Ie;continue}if(J)continue;continue}const Ce=D[K.name];if(Ce===void 0)"default"in K&&K.default!=null&&(F[K.name]=K.default);else{const Ie=Ee(K,Ce);Ie===void 0?delete F[K.name]:F[K.name]=Ie}}Mo(F,D)||Ve(F)},[Q,V]);const[be,Te]=C.useState(f);C.useEffect(()=>{be!==f&&(Ve({}),Te(f))},[f]);const Pe=(F,O)=>{const $=Q[F],K={...D};O===void 0?delete K[$.name]:K[$.name]=O,j(K),$.reloadProps&&g(F);const Ce=Ae($,O),Ie={...T};Ce.length?Ie[$.name]=Ce:delete Ie[$.name],I(Ie)},De=(F,O)=>{const $={...V};O?$[F.name]=!0:delete $[F.name];const K=Q.findIndex(Ce=>Ce.name===F.name);O?(o==null?void 0:o[F.name])!==void 0?Pe(K,o[F.name]):"default"in F&&F.default!=null&&Pe(K,F.default):Pe(K,void 0),E($)};C.useEffect(()=>{const F=[];for(const O of Q){if(!O.optional||L(O))continue;const $=D[O.name],K=o==null?void 0:o[O.name];$===void 0&&K===void 0||F.push(O)}F.length&&F.forEach(O=>De(O,!0))},[r.key,Q,D,V,o]);const de=()=>{const F=[];for(const O of Q){if(!O||O.optional||O.hidden||Ut.includes(O.type))continue;const $=D[O.name];Ae(O,$).length&&F.push(O.name)}F&&he&&Mo(F,he)||te(F)},Re=F=>{B(O=>(O[F.prop.name]=F,O)),de()},z=F=>{if(!F)return;let O=[...H];const $=(J,Y)=>{try{const re=JSON.parse(J),xe={name:re.name,message:re.message};xe.name&&xe.message&&Y.push(xe)}catch{}},K=(J,Y)=>{const re={name:J.name,message:J.message};re.name&&re.message&&Y.push(re)},Ce=(J,Y)=>{if(!(!("err"in J)||!J.err)&&J.err.name&&J.err.message){const re={name:J.err.name,message:J.err.message};Y.push(re)}},Ie=(J,Y)=>{if(Array.isArray(J)&&J.length>0)for(let re=0;re<J.length;re++)J[re].k==="error"&&Ce(J[re],Y)},P=(J,Y)=>{Y.push({name:J.error,message:JSON.stringify(J.details)})},X=(J,Y)=>{var re;try{const xe=(re=JSON.parse(J.message))==null?void 0:re.data;xe&&"os"in xe?Ie(xe.os,Y):xe&&"observations"in xe?Ie(xe.observations,Y):xe&&"error"in xe&&"details"in xe&&P(xe,Y)}catch{}};if(Array.isArray(F)&&F.length>0)for(let J=0;J<F.length;J++){const Y=F[J];typeof Y=="string"?$(Y,O):typeof Y=="object"&&"name"in Y&&"message"in Y&&"stack"in Y?K(Y,O):typeof Y=="object"&&Y.k==="error"&&Ce(Y,O)}else typeof F=="object"&&F&&"observations"in F?Ie(F.observations,O):typeof F=="object"&&F&&"os"in F?Ie(F.os,O):typeof F=="object"&&"message"in F?X(F,O):O=[];G(O)},le={id:i,isValid:!Object.keys(T).length,props:t,externalUserId:f,userId:f,component:r,configurableProps:Q,configuredProps:D,dynamicProps:Z,dynamicPropsQueryIsFetching:b,errors:T,fields:m,optionalPropIsEnabled:L,optionalPropSetEnabled:De,propsNeedConfiguring:he,queryDisabledIdx:y,registerField:Re,setConfiguredProp:Pe,setSubmitting:k,submitting:w,sdkErrors:H,enableDebugging:c,oauthAppConfig:d};return x.jsx(Vr.Provider,{value:le,children:e})};function Et(e){"@babel/helpers - typeof";return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(e)}function kp(e,t){if(Et(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(Et(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ro(e){var t=kp(e,"string");return Et(t)=="symbol"?t:t+""}function Qt(e,t,n){return(t=Ro(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(i){Qt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pp(e){if(Array.isArray(e))return e}function Bp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,o,l,a=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);s=!0);}catch(c){u=!0,r=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw r}}return a}}function Nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function jo(e,t){if(e){if(typeof e=="string")return Nr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}}function Fp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lt(e){return zp(e)||Hp(e)||jo(e)||Xp()}function Wp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Rp=Math.min,Zp=Math.max,xn=Math.round,Cn=Math.floor,An=e=>({x:e,y:e});function jp(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function Sn(){return typeof window<"u"}function Uo(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qo(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return Sn()?e instanceof Node||e instanceof ft(e).Node:!1}function Jp(e){return Sn()?e instanceof Element||e instanceof ft(e).Element:!1}function Lr(e){return Sn()?e instanceof HTMLElement||e instanceof ft(e).HTMLElement:!1}function $o(e){return!Sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}const Yp=new Set(["inline","contents"]);function Ko(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Mr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!Yp.has(r)}function _p(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Up=new Set(["html","body","#document"]);function qp(e){return Up.has(Uo(e))}function Mr(e){return ft(e).getComputedStyle(e)}function Qp(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$o(e)&&e.host||qo(e);return $o(t)?t.host:t}function el(e){const t=Qp(e);return qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lr(t)&&Ko(t)?t:el(t)}function wn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=el(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),l=ft(r);if(o){const a=zr(l);return t.concat(l,l.visualViewport||[],Ko(r)?r:[],a&&n?wn(a):[])}return t.concat(r,wn(r,[],n))}function zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $p(e){const t=Mr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Lr(e),o=r?e.offsetWidth:n,l=r?e.offsetHeight:i,a=xn(n)!==o||xn(i)!==l;return a&&(n=o,i=l),{width:n,height:i,$:a}}function Hr(e){return Jp(e)?e:e.contextElement}function tl(e){const t=Hr(e);if(!Lr(t))return An(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=$p(t);let l=(o?xn(n.width):n.width)/i,a=(o?xn(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const Kp=An(0);function ef(e){const t=ft(e);return!_p()||!t.visualViewport?Kp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tf(e,t,n){return!1}function nl(e,t,n,i){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=Hr(e);let l=An(1);t&&(l=tl(e));const a=tf()?ef(o):An(0);let s=(r.left+a.x)/l.x,u=(r.top+a.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(o){const f=ft(o),p=i;let v=f,y=zr(v);for(;y&&i&&p!==v;){const A=tl(y),m=y.getBoundingClientRect(),B=Mr(y),w=m.left+(y.clientLeft+parseFloat(B.paddingLeft))*A.x,k=m.top+(y.clientTop+parseFloat(B.paddingTop))*A.y;s*=A.x,u*=A.y,c*=A.x,d*=A.y,s+=w,u+=k,v=ft(y),y=zr(v)}}return jp({width:c,height:d,x:s,y:u})}function rl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nf(e,t){let n=null,i;const r=qo(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(a||t(),!f||!p)return;const v=Cn(d),y=Cn(r.clientWidth-(c+f)),A=Cn(r.clientHeight-(d+p)),m=Cn(c),w={rootMargin:-v+"px "+-y+"px "+-A+"px "+-m+"px",threshold:Zp(0,Rp(1,s))||1};let k=!0;function T(I){const H=I[0].intersectionRatio;if(H!==s){if(!k)return l();H?l(!1,H):i=setTimeout(()=>{l(!1,1e-7)},1e3)}H===1&&!rl(u,e.getBoundingClientRect())&&l(),k=!1}try{n=new IntersectionObserver(T,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(T,w)}n.observe(e)}return l(!0),o}function rf(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=i,u=Hr(e),c=r||o?[...u?wn(u):[],...wn(t)]:[];c.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const d=u&&a?nf(u,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(m=>{let[B]=m;B&&B.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let v,y=s?nl(e):null;s&&A();function A(){const m=nl(e);y&&!rl(y,m)&&n(),y=m,v=requestAnimationFrame(A)}return n(),()=>{var m;c.forEach(B=>{r&&B.removeEventListener("scroll",n),o&&B.removeEventListener("resize",n)}),d==null||d(),(m=p)==null||m.disconnect(),p=null,s&&cancelAnimationFrame(v)}}var Xr=C.useLayoutEffect,of=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],En=function(){};function lf(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function af(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=[].concat(i);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&o.push("".concat(lf(e,l)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var kn=function(t){return mf(t)?t.filter(Boolean):Et(t)==="object"&&t!==null?[t]:[]},il=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=ut(t,of);return ie({},n)},Fe=function(t,n,i){var r=t.cx,o=t.getStyles,l=t.getClassNames,a=t.className;return{css:o(n,t),className:r(i??{},l(n,t),a)}};function Pn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function sf(e){return Pn(e)?window.innerHeight:e.clientHeight}function ol(e){return Pn(e)?window.pageYOffset:e.scrollTop}function Bn(e,t){if(Pn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function uf(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function cf(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function Fn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:En,r=ol(e),o=t-r,l=10,a=0;function s(){a+=l;var u=cf(a,r,o,n);Bn(e,u),a<n?window.requestAnimationFrame(s):i(e)}s()}function ll(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?Bn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&Bn(e,Math.max(t.offsetTop-r,0))}function df(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function al(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function pf(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var sl=!1,ff={get passive(){return sl=!0}},Tn=typeof window<"u"?window:{};Tn.addEventListener&&Tn.removeEventListener&&(Tn.addEventListener("p",En,ff),Tn.removeEventListener("p",En,!1));var gf=sl;function hf(e){return e!=null}function mf(e){return Array.isArray(e)}function $t(e,t,n){return e?t:n}function lb(e){return e}function ab(e){return e}var bf=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=Object.entries(t).filter(function(l){var a=pt(l,1),s=a[0];return!i.includes(s)});return o.reduce(function(l,a){var s=pt(a,2),u=s[0],c=s[1];return l[u]=c,l},{})},yf=["children","innerProps"],vf=["children","innerProps"];function If(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,l=e.isFixedPosition,a=e.controlHeight,s=uf(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,v=f.height,y=f.top,A=n.offsetParent.getBoundingClientRect(),m=A.top,B=l?window.innerHeight:sf(s),w=ol(s),k=parseInt(getComputedStyle(n).marginBottom,10),T=parseInt(getComputedStyle(n).marginTop,10),I=m-T,H=B-y,G=I+w,V=d-w-y,E=p-B+w+k,L=w+y-T,D=160;switch(r){case"auto":case"bottom":if(H>=v)return{placement:"bottom",maxHeight:t};if(V>=v&&!l)return o&&Fn(s,E,D),{placement:"bottom",maxHeight:t};if(!l&&V>=i||l&&H>=i){o&&Fn(s,E,D);var R=l?H-k:V-k;return{placement:"bottom",maxHeight:R}}if(r==="auto"||l){var _=t,j=l?I:G;return j>=i&&(_=Math.min(j-k-a,t)),{placement:"top",maxHeight:_}}if(r==="bottom")return o&&Bn(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(I>=v)return{placement:"top",maxHeight:t};if(G>=v&&!l)return o&&Fn(s,L,D),{placement:"top",maxHeight:t};if(!l&&G>=i||l&&I>=i){var Z=t;return(!l&&G>=i||l&&I>=i)&&(Z=l?I-T:G-T),o&&Fn(s,L,D),{placement:"top",maxHeight:Z}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function xf(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ul=function(t){return t==="auto"?"bottom":t},Cf=function(t,n){var i,r=t.placement,o=t.theme,l=o.borderRadius,a=o.spacing,s=o.colors;return ie((i={label:"menu"},Qt(i,xf(r),"100%"),Qt(i,"position","absolute"),Qt(i,"width","100%"),Qt(i,"zIndex",1),i),n?{}:{backgroundColor:s.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},cl=C.createContext(null),Af=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,l=t.menuPosition,a=t.menuShouldScrollIntoView,s=t.theme,u=C.useContext(cl)||{},c=u.setPortalPlacement,d=C.useRef(null),f=C.useState(r),p=pt(f,2),v=p[0],y=p[1],A=C.useState(null),m=pt(A,2),B=m[0],w=m[1],k=s.spacing.controlHeight;return Xr(function(){var T=d.current;if(T){var I=l==="fixed",H=a&&!I,G=If({maxHeight:r,menuEl:T,minHeight:i,placement:o,shouldScroll:H,isFixedPosition:I,controlHeight:k});y(G.maxHeight),w(G.placement),c==null||c(G.placement)}},[r,o,l,a,i,c,k]),n({ref:d,placerProps:ie(ie({},t),{},{placement:B||ul(o),maxHeight:v})})},Sf=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return ne.jsx("div",oe({},Fe(t,"menu",{menu:!0}),{ref:i},r),n)},wf=Sf,Ef=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return ie({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},kf=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return ne.jsx("div",oe({},Fe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},dl=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return ie({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Pf=dl,Bf=dl,Ff=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=ut(t,yf);return ne.jsx("div",oe({},Fe(ie(ie({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},Tf=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=ut(t,vf);return ne.jsx("div",oe({},Fe(ie(ie({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},Gf=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},Of=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,l=t.menuPlacement,a=t.menuPosition,s=C.useRef(null),u=C.useRef(null),c=C.useState(ul(l)),d=pt(c,2),f=d[0],p=d[1],v=C.useMemo(function(){return{setPortalPlacement:p}},[]),y=C.useState(null),A=pt(y,2),m=A[0],B=A[1],w=C.useCallback(function(){if(r){var H=df(r),G=a==="fixed"?0:window.pageYOffset,V=H[f]+G;(V!==(m==null?void 0:m.offset)||H.left!==(m==null?void 0:m.rect.left)||H.width!==(m==null?void 0:m.rect.width))&&B({offset:V,rect:H})}},[r,a,f,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);Xr(function(){w()},[w]);var k=C.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&s.current&&(u.current=rf(r,s.current,w,{elementResize:"ResizeObserver"in window}))},[r,w]);Xr(function(){k()},[k]);var T=C.useCallback(function(H){s.current=H,k()},[k]);if(!n&&a!=="fixed"||!m)return null;var I=ne.jsx("div",oe({ref:T},Fe(ie(ie({},t),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),i);return ne.jsx(cl.Provider,{value:v},n?Va.createPortal(I,n):I)},Vf=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Nf=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return ne.jsx("div",oe({},Fe(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},Df=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,l=t.selectProps.controlShouldRenderValue;return ie({alignItems:"center",display:r&&o&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Lf=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return ne.jsx("div",oe({},Fe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},Mf=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},zf=function(t){var n=t.children,i=t.innerProps;return ne.jsx("div",oe({},Fe(t,"indicatorsContainer",{indicators:!0}),i),n)},pl,Hf=["size"],Xf=["innerProps","isRtl","size"];function Wf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Rf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duIC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GhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:Wf},fl=function(t){var n=t.size,i=ut(t,Hf);return ne.jsx("svg",oe({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Rf},i))},Wr=function(t){return ne.jsx(fl,oe({size:20},t),ne.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gl=function(t){return ne.jsx(fl,oe({size:20},t),ne.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},hl=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return ie({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?l.neutral60:l.neutral20,padding:o*2,":hover":{color:i?l.neutral80:l.neutral40}})},Zf=hl,jf=function(t){var n=t.children,i=t.innerProps;return ne.jsx("div",oe({},Fe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||ne.jsx(gl,null))},Jf=hl,Yf=function(t){var n=t.children,i=t.innerProps;return ne.jsx("div",oe({},Fe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||ne.jsx(Wr,null))},_f=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return ie({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?l.neutral10:l.neutral20,marginBottom:o*2,marginTop:o*2})},Uf=function(t){var n=t.innerProps;return ne.jsx("span",oe({},n,Fe(t,"indicatorSeparator",{"indicator-separator":!0})))},qf=ne.keyframes(pl||(pl=Wp([`
|
|
14
|
+
`}),n}function xo(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Co(e,t){const n=Md(e,t),i=n.one(e,void 0),r=kd(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
|
|
15
|
+
`},r),o}function Rd(e,t){return e&&"run"in e?async function(n,i){const r=Co(n,{file:i,...t});await e.run(r,i)}:function(n,i){return Co(n,{file:i,...e||t})}}function Ao(e){if(e)throw e}var mn=Object.prototype.hasOwnProperty,So=Object.prototype.toString,wo=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,ko=function(t){return typeof Array.isArray=="function"?Array.isArray(t):So.call(t)==="[object Array]"},Po=function(t){if(!t||So.call(t)!=="[object Object]")return!1;var n=mn.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&mn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||mn.call(t,r)},Bo=function(t,n){wo&&n.name==="__proto__"?wo(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Fo=function(t,n){if(n==="__proto__")if(mn.call(t,n)){if(Eo)return Eo(t,n).value}else return;return t[n]},Zd=function e(){var t,n,i,r,o,l,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)i=Fo(a,n),r=Fo(t,n),a!==r&&(c&&r&&(Po(r)||(o=ko(r)))?(o?(o=!1,l=i&&ko(i)?i:[]):l=i&&Po(i)?i:{},Bo(a,{name:n,newValue:e(c,l,r)})):typeof r<"u"&&Bo(a,{name:n,newValue:r}));return a};const Cr=tr(Zd);function Ar(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function jd(){const e=[],t={run:n,use:i};return t;function n(...r){let o=-1;const l=r.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...r);function a(s,...u){const c=e[++o];let d=-1;if(s){l(s);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?Jd(c,a)(...u):l(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function Jd(e,t){let n;return i;function i(...l){const a=e.length>l.length;let s;a&&l.push(r);try{s=e.apply(this,l)}catch(u){const c=u;if(a&&n)throw c;return r(c)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(l,...a){n||(n=!0,t(l,...a))}function o(l){r(null,l)}}const ot={basename:Yd,dirname:_d,extname:Ud,join:qd,sep:"/"};function Yd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_t(e);let n=0,i=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else l<0&&(o=!0,l=r+1),a>-1&&(e.codePointAt(r)===t.codePointAt(a--)?a<0&&(i=r):(a=-1,i=l));return n===i?i=l:i<0&&(i=e.length),e.slice(n,i)}function _d(e){if(_t(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ud(e){_t(e);let t=e.length,n=-1,i=0,r=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){i=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||n<0||o===0||o===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function qd(...e){let t=-1,n;for(;++t<e.length;)_t(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Qd(n)}function Qd(e){_t(e);const t=e.codePointAt(0)===47;let n=$d(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function $d(e,t){let n="",i=0,r=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(r===l-1||o===1))if(r!==l-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",i=0):(n=n.slice(0,s),i=n.length-1-n.lastIndexOf("/")),r=l,o=0;continue}}else if(n.length>0){n="",i=0,r=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,l):n=e.slice(r+1,l),i=l-r-1;r=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function _t(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Kd={cwd:ep};function ep(){return"/"}function Sr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tp(e){if(typeof e=="string")e=new URL(e);else if(!Sr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return np(e)}function np(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const wr=["history","path","basename","stem","extname","dirname"];class To{constructor(t){let n;t?Sr(t)?n={path:t}:typeof t=="string"||rp(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Kd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<wr.length;){const o=wr[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let r;for(r in n)wr.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?ot.basename(this.path):void 0}set basename(t){kr(t,"basename"),Er(t,"basename"),this.path=ot.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ot.dirname(this.path):void 0}set dirname(t){Go(this.basename,"dirname"),this.path=ot.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ot.extname(this.path):void 0}set extname(t){if(Er(t,"extname"),Go(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ot.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Sr(t)&&(t=tp(t)),kr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ot.basename(this.path,this.extname):void 0}set stem(t){kr(t,"stem"),Er(t,"stem"),this.path=ot.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new ze(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Er(e,t){if(e&&e.includes(ot.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ot.sep+"`")}function kr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Go(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function rp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ip=function(e){const i=this.constructor.prototype,r=i[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,i),o},op={}.hasOwnProperty;class Pr extends ip{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=jd()}copy(){const t=new Pr;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Cr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Tr("data",this.frozen),this.namespace[t]=n,this):op.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Tr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=bn(t),i=this.parser||this.Parser;return Br("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Br("process",this.parser||this.Parser),Fr("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(o,l){const a=bn(t),s=i.parse(a);i.run(s,a,function(c,d,f){if(c||!d||!f)return u(c);const p=d,v=i.stringify(p,f);sp(v)?f.value=v:f.result=v,u(c,f)});function u(c,d){c||!d?l(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,i;return this.freeze(),Br("processSync",this.parser||this.Parser),Fr("processSync",this.compiler||this.Compiler),this.process(t,r),Vo("processSync","process",n),i;function r(o,l){n=!0,Ao(o),i=l}}run(t,n,i){Oo(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(l,a){const s=bn(n);r.run(t,s,u);function u(c,d,f){const p=d||t;c?a(c):l?l(p):i(void 0,p,f)}}}runSync(t,n){let i=!1,r;return this.run(t,n,o),Vo("runSync","run",i),r;function o(l,a){Ao(l),r=a,i=!0}}stringify(t,n){this.freeze();const i=bn(n),r=this.compiler||this.Compiler;return Fr("stringify",r),Oo(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(Tr("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;s(c,d)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(r.settings=Cr(!0,r.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,f=-1;for(;++d<i.length;)if(i[d][0]===u){f=d;break}if(f===-1)i.push([u,...c]);else if(c.length>0){let[p,...v]=c;const y=i[f][1];Ar(y)&&Ar(p)&&(p=Cr(!0,y,p)),i[f]=[u,p,...v]}}}}const lp=new Pr().freeze();function Br(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Fr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Oo(e){if(!Ar(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Vo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function bn(e){return ap(e)?e:new To(e)}function ap(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function sp(e){return typeof e=="string"||up(e)}function up(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cp="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",No=[],Do={allowDangerousHtml:!0},dp=/^(https?|ircs?|mailto|xmpp)$/i,pp=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Lo(e){const t=fp(e),n=gp(e);return hp(t.runSync(t.parse(n),n),e)}function fp(e){const t=e.rehypePlugins||No,n=e.remarkPlugins||No,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Do}:Do;return lp().use(_c).use(n).use(Rd,i).use(t)}function gp(e){const t=e.children||"",n=new To;return typeof t=="string"&&(n.value=t),n}function hp(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||mp;for(const c of pp)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+cp+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Io(e,u),Os(e,{Fragment:I.Fragment,components:r,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function u(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return l?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in ur)if(Object.hasOwn(ur,p)&&Object.hasOwn(c.properties,p)){const v=c.properties[p],y=ur[p];(y===null||y.includes(c.tagName))&&(c.properties[p]=s(String(v||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&i&&typeof d=="number"&&(p=!i(c,d,f)),p&&f&&typeof d=="number")return a&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function mp(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||dp.test(e.slice(0,t))?e:""}function yn({prop:e}){const t={width:"100%",background:"#e2e3e5",borderRadius:"5px",paddingTop:"2px",paddingLeft:"10px",paddingRight:"10px",paddingBottom:"2px"},n={...t,background:"#fff3cd"},i={...t,background:"#d1ecf1"},r={...t,background:"#f8d7da"},o={...t,background:"#fffff2"};let l={};switch(e.alertType){case"info":l=i;break;case"neutral":l=o;break;case"warning":l=n;break;case"error":l=r;break;default:l=t}return I.jsx("div",{className:`pd-alert-${e.alertType}`,style:l,children:I.jsx(Lo,{components:{a:({...a})=>I.jsx("a",{...a,target:"_blank",rel:"noopener noreferrer"})},children:e.content})})}var vn={exports:{}};vn.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",r=1,o=2,l=9007199254740991,a="[object Arguments]",s="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",v="[object GeneratorFunction]",y="[object Map]",A="[object Number]",m="[object Null]",F="[object Object]",E="[object Promise]",P="[object Proxy]",T="[object RegExp]",x="[object Set]",H="[object String]",G="[object Symbol]",O="[object Undefined]",k="[object WeakMap]",L="[object ArrayBuffer]",D="[object DataView]",R="[object Float32Array]",U="[object Float64Array]",Y="[object Int8Array]",j="[object Int16Array]",ae="[object Int32Array]",se="[object Uint8Array]",V="[object Uint8ClampedArray]",g="[object Uint16Array]",le="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,b=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,ee={};ee[R]=ee[U]=ee[Y]=ee[j]=ee[ae]=ee[se]=ee[V]=ee[g]=ee[le]=!0,ee[a]=ee[s]=ee[L]=ee[c]=ee[D]=ee[d]=ee[f]=ee[p]=ee[y]=ee[A]=ee[F]=ee[T]=ee[x]=ee[H]=ee[k]=!1;var re=typeof mt=="object"&&mt&&mt.Object===Object&&mt,ve=typeof self=="object"&&self&&self.Object===Object&&self,ue=re||ve||Function("return this")(),Pe=t&&!t.nodeType&&t,ce=Pe&&!0&&e&&!e.nodeType&&e,we=ce&&ce.exports===Pe,Ie=we&&re.process,Oe=function(){try{return Ie&&Ie.binding&&Ie.binding("util")}catch{}}(),ye=Oe&&Oe.isTypedArray;function Ne(h,w){for(var M=-1,q=h==null?0:h.length,ke=0,pe=[];++M<q;){var Te=h[M];w(Te,M,h)&&(pe[ke++]=Te)}return pe}function Ee(h,w){for(var M=-1,q=w.length,ke=h.length;++M<q;)h[ke+M]=w[M];return h}function We(h,w){for(var M=-1,q=h==null?0:h.length;++M<q;)if(w(h[M],M,h))return!0;return!1}function xe(h,w){for(var M=-1,q=Array(h);++M<h;)q[M]=w(M);return q}function vt(h){return function(w){return h(w)}}function S(h,w){return h.has(w)}function N(h,w){return h==null?void 0:h[w]}function Z(h){var w=-1,M=Array(h.size);return h.forEach(function(q,ke){M[++w]=[ke,q]}),M}function z(h,w){return function(M){return h(w(M))}}function he(h){var w=-1,M=Array(h.size);return h.forEach(function(q){M[++w]=q}),M}var Ce=Array.prototype,B=Function.prototype,X=Object.prototype,J=ue["__core-js_shared__"],_=B.toString,$=X.hasOwnProperty,fe=function(){var h=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ut=X.toString,Ke=RegExp("^"+_.call($).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=we?ue.Buffer:void 0,ct=ue.Symbol,He=ue.Uint8Array,ft=X.propertyIsEnumerable,et=Ce.splice,kt=ct?ct.toStringTag:void 0,Aa=Object.getOwnPropertySymbols,em=It?It.isBuffer:void 0,tm=z(Object.keys,Object),ii=Ht(ue,"DataView"),tn=Ht(ue,"Map"),oi=Ht(ue,"Promise"),li=Ht(ue,"Set"),ai=Ht(ue,"WeakMap"),nn=Ht(Object,"create"),nm=Ft(ii),rm=Ft(tn),im=Ft(oi),om=Ft(li),lm=Ft(ai),Sa=ct?ct.prototype:void 0,si=Sa?Sa.valueOf:void 0;function Pt(h){var w=-1,M=h==null?0:h.length;for(this.clear();++w<M;){var q=h[w];this.set(q[0],q[1])}}function am(){this.__data__=nn?nn(null):{},this.size=0}function sm(h){var w=this.has(h)&&delete this.__data__[h];return this.size-=w?1:0,w}function um(h){var w=this.__data__;if(nn){var M=w[h];return M===i?void 0:M}return $.call(w,h)?w[h]:void 0}function cm(h){var w=this.__data__;return nn?w[h]!==void 0:$.call(w,h)}function dm(h,w){var M=this.__data__;return this.size+=this.has(h)?0:1,M[h]=nn&&w===void 0?i:w,this}Pt.prototype.clear=am,Pt.prototype.delete=sm,Pt.prototype.get=um,Pt.prototype.has=cm,Pt.prototype.set=dm;function gt(h){var w=-1,M=h==null?0:h.length;for(this.clear();++w<M;){var q=h[w];this.set(q[0],q[1])}}function pm(){this.__data__=[],this.size=0}function fm(h){var w=this.__data__,M=Zn(w,h);if(M<0)return!1;var q=w.length-1;return M==q?w.pop():et.call(w,M,1),--this.size,!0}function gm(h){var w=this.__data__,M=Zn(w,h);return M<0?void 0:w[M][1]}function hm(h){return Zn(this.__data__,h)>-1}function mm(h,w){var M=this.__data__,q=Zn(M,h);return q<0?(++this.size,M.push([h,w])):M[q][1]=w,this}gt.prototype.clear=pm,gt.prototype.delete=fm,gt.prototype.get=gm,gt.prototype.has=hm,gt.prototype.set=mm;function Bt(h){var w=-1,M=h==null?0:h.length;for(this.clear();++w<M;){var q=h[w];this.set(q[0],q[1])}}function bm(){this.size=0,this.__data__={hash:new Pt,map:new(tn||gt),string:new Pt}}function ym(h){var w=jn(this,h).delete(h);return this.size-=w?1:0,w}function vm(h){return jn(this,h).get(h)}function Im(h){return jn(this,h).has(h)}function xm(h,w){var M=jn(this,h),q=M.size;return M.set(h,w),this.size+=M.size==q?0:1,this}Bt.prototype.clear=bm,Bt.prototype.delete=ym,Bt.prototype.get=vm,Bt.prototype.has=Im,Bt.prototype.set=xm;function Rn(h){var w=-1,M=h==null?0:h.length;for(this.__data__=new Bt;++w<M;)this.add(h[w])}function Cm(h){return this.__data__.set(h,i),this}function Am(h){return this.__data__.has(h)}Rn.prototype.add=Rn.prototype.push=Cm,Rn.prototype.has=Am;function xt(h){var w=this.__data__=new gt(h);this.size=w.size}function Sm(){this.__data__=new gt,this.size=0}function wm(h){var w=this.__data__,M=w.delete(h);return this.size=w.size,M}function Em(h){return this.__data__.get(h)}function km(h){return this.__data__.has(h)}function Pm(h,w){var M=this.__data__;if(M instanceof gt){var q=M.__data__;if(!tn||q.length<n-1)return q.push([h,w]),this.size=++M.size,this;M=this.__data__=new Bt(q)}return M.set(h,w),this.size=M.size,this}xt.prototype.clear=Sm,xt.prototype.delete=wm,xt.prototype.get=Em,xt.prototype.has=km,xt.prototype.set=Pm;function Bm(h,w){var M=Jn(h),q=!M&&Zm(h),ke=!M&&!q&&ui(h),pe=!M&&!q&&!ke&&Oa(h),Te=M||q||ke||pe,Le=Te?xe(h.length,String):[],Me=Le.length;for(var Be in h)$.call(h,Be)&&!(Te&&(Be=="length"||ke&&(Be=="offset"||Be=="parent")||pe&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||zm(Be,Me)))&&Le.push(Be);return Le}function Zn(h,w){for(var M=h.length;M--;)if(Ba(h[M][0],w))return M;return-1}function Fm(h,w,M){var q=w(h);return Jn(h)?q:Ee(q,M(h))}function rn(h){return h==null?h===void 0?O:m:kt&&kt in Object(h)?Lm(h):Rm(h)}function wa(h){return on(h)&&rn(h)==a}function Ea(h,w,M,q,ke){return h===w?!0:h==null||w==null||!on(h)&&!on(w)?h!==h&&w!==w:Tm(h,w,M,q,Ea,ke)}function Tm(h,w,M,q,ke,pe){var Te=Jn(h),Le=Jn(w),Me=Te?s:Ct(h),Be=Le?s:Ct(w);Me=Me==a?F:Me,Be=Be==a?F:Be;var _e=Me==F,tt=Be==F,Xe=Me==Be;if(Xe&&ui(h)){if(!ui(w))return!1;Te=!0,_e=!1}if(Xe&&!_e)return pe||(pe=new xt),Te||Oa(h)?ka(h,w,M,q,ke,pe):Nm(h,w,Me,M,q,ke,pe);if(!(M&r)){var qe=_e&&$.call(h,"__wrapped__"),Qe=tt&&$.call(w,"__wrapped__");if(qe||Qe){var At=qe?h.value():h,ht=Qe?w.value():w;return pe||(pe=new xt),ke(At,ht,M,q,pe)}}return Xe?(pe||(pe=new xt),Dm(h,w,M,q,ke,pe)):!1}function Gm(h){if(!Ga(h)||Xm(h))return!1;var w=Fa(h)?Ke:b;return w.test(Ft(h))}function Om(h){return on(h)&&Ta(h.length)&&!!ee[rn(h)]}function Vm(h){if(!Wm(h))return tm(h);var w=[];for(var M in Object(h))$.call(h,M)&&M!="constructor"&&w.push(M);return w}function ka(h,w,M,q,ke,pe){var Te=M&r,Le=h.length,Me=w.length;if(Le!=Me&&!(Te&&Me>Le))return!1;var Be=pe.get(h);if(Be&&pe.get(w))return Be==w;var _e=-1,tt=!0,Xe=M&o?new Rn:void 0;for(pe.set(h,w),pe.set(w,h);++_e<Le;){var qe=h[_e],Qe=w[_e];if(q)var At=Te?q(Qe,qe,_e,w,h,pe):q(qe,Qe,_e,h,w,pe);if(At!==void 0){if(At)continue;tt=!1;break}if(Xe){if(!We(w,function(ht,Tt){if(!S(Xe,Tt)&&(qe===ht||ke(qe,ht,M,q,pe)))return Xe.push(Tt)})){tt=!1;break}}else if(!(qe===Qe||ke(qe,Qe,M,q,pe))){tt=!1;break}}return pe.delete(h),pe.delete(w),tt}function Nm(h,w,M,q,ke,pe,Te){switch(M){case D:if(h.byteLength!=w.byteLength||h.byteOffset!=w.byteOffset)return!1;h=h.buffer,w=w.buffer;case L:return!(h.byteLength!=w.byteLength||!pe(new He(h),new He(w)));case c:case d:case A:return Ba(+h,+w);case f:return h.name==w.name&&h.message==w.message;case T:case H:return h==w+"";case y:var Le=Z;case x:var Me=q&r;if(Le||(Le=he),h.size!=w.size&&!Me)return!1;var Be=Te.get(h);if(Be)return Be==w;q|=o,Te.set(h,w);var _e=ka(Le(h),Le(w),q,ke,pe,Te);return Te.delete(h),_e;case G:if(si)return si.call(h)==si.call(w)}return!1}function Dm(h,w,M,q,ke,pe){var Te=M&r,Le=Pa(h),Me=Le.length,Be=Pa(w),_e=Be.length;if(Me!=_e&&!Te)return!1;for(var tt=Me;tt--;){var Xe=Le[tt];if(!(Te?Xe in w:$.call(w,Xe)))return!1}var qe=pe.get(h);if(qe&&pe.get(w))return qe==w;var Qe=!0;pe.set(h,w),pe.set(w,h);for(var At=Te;++tt<Me;){Xe=Le[tt];var ht=h[Xe],Tt=w[Xe];if(q)var Va=Te?q(Tt,ht,Xe,w,h,pe):q(ht,Tt,Xe,h,w,pe);if(!(Va===void 0?ht===Tt||ke(ht,Tt,M,q,pe):Va)){Qe=!1;break}At||(At=Xe=="constructor")}if(Qe&&!At){var Yn=h.constructor,_n=w.constructor;Yn!=_n&&"constructor"in h&&"constructor"in w&&!(typeof Yn=="function"&&Yn instanceof Yn&&typeof _n=="function"&&_n instanceof _n)&&(Qe=!1)}return pe.delete(h),pe.delete(w),Qe}function Pa(h){return Fm(h,Ym,Mm)}function jn(h,w){var M=h.__data__;return Hm(w)?M[typeof w=="string"?"string":"hash"]:M.map}function Ht(h,w){var M=N(h,w);return Gm(M)?M:void 0}function Lm(h){var w=$.call(h,kt),M=h[kt];try{h[kt]=void 0;var q=!0}catch{}var ke=ut.call(h);return q&&(w?h[kt]=M:delete h[kt]),ke}var Mm=Aa?function(h){return h==null?[]:(h=Object(h),Ne(Aa(h),function(w){return ft.call(h,w)}))}:_m,Ct=rn;(ii&&Ct(new ii(new ArrayBuffer(1)))!=D||tn&&Ct(new tn)!=y||oi&&Ct(oi.resolve())!=E||li&&Ct(new li)!=x||ai&&Ct(new ai)!=k)&&(Ct=function(h){var w=rn(h),M=w==F?h.constructor:void 0,q=M?Ft(M):"";if(q)switch(q){case nm:return D;case rm:return y;case im:return E;case om:return x;case lm:return k}return w});function zm(h,w){return w=w??l,!!w&&(typeof h=="number"||ge.test(h))&&h>-1&&h%1==0&&h<w}function Hm(h){var w=typeof h;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?h!=="__proto__":h===null}function Xm(h){return!!fe&&fe in h}function Wm(h){var w=h&&h.constructor,M=typeof w=="function"&&w.prototype||X;return h===M}function Rm(h){return ut.call(h)}function Ft(h){if(h!=null){try{return _.call(h)}catch{}try{return h+""}catch{}}return""}function Ba(h,w){return h===w||h!==h&&w!==w}var Zm=wa(function(){return arguments}())?wa:function(h){return on(h)&&$.call(h,"callee")&&!ft.call(h,"callee")},Jn=Array.isArray;function jm(h){return h!=null&&Ta(h.length)&&!Fa(h)}var ui=em||Um;function Jm(h,w){return Ea(h,w)}function Fa(h){if(!Ga(h))return!1;var w=rn(h);return w==p||w==v||w==u||w==P}function Ta(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=l}function Ga(h){var w=typeof h;return h!=null&&(w=="object"||w=="function")}function on(h){return h!=null&&typeof h=="object"}var Oa=ye?vt(ye):Om;function Ym(h){return jm(h)?Bm(h):Vm(h)}function _m(){return[]}function Um(){return!1}e.exports=Jm}(vn,vn.exports);var bp=vn.exports;const Mo=tr(bp),zo=C.createContext(void 0),lt=()=>{const e=C.useContext(zo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},yp=({children:e,client:t})=>{const[n]=C.useState(()=>new nt.QueryClient({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}}));return I.jsx(nt.QueryClientProvider,{client:n,children:I.jsx(zo.Provider,{value:t,children:e})})};function Ho(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function vp(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const i of t)if(typeof i=="object"&&i&&"emitValue"in i){const r=i.emitValue;typeof r=="object"&&r&&"__lv"in r?n.push(r.__lv.value):n.push(r)}else return[];return n}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function Ip(e){const t=vp(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function xp(e){const t=Ho(e.value);if(t==null||typeof t>"u")return["required"]}function Cp(e){const{prop:t,value:n}=e,i=Ho(n);if(!t.default&&(i==null||typeof i>"u"))return["required"];const r=typeof i=="number"?i:parseInt(String(i));if(Number.isNaN(r))return["not a number"];const o=[];return typeof t.min=="number"&&r<t.min&&o.push("number too small"),typeof t.max=="number"&&r>t.max&&o.push("number too big"),o}function Ap(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function Sp(e){const t=e.authType==="oauth",n=JSON.parse(e.customFieldsJson||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const i=(e.extracted_custom_fields_names||[]).map(r=>({name:r}));n.push(...i)}return n.map(i=>({...i,optional:i.optional||t}))}function wp(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!t.authType)return;if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const i=n;if("authProvisionId"in i&&!i.authProvisionId){const r=[];if(t.authType==="oauth"&&!i.oauth_access_token&&r.push("missing oauth token"),t.authType==="oauth"||t.authType==="keys"){const o=Sp(t),l=i;for(const a of o)!a.optional&&!l[a.name]&&r.push(`missing custom field: ${a.name}`)}return r}}const Ep=(e,t)=>{if(e!==void 0&&e!=="")return t!==void 0&&t!==""?{resolvedId:e,warningType:"both"}:{resolvedId:e};if(t!==void 0&&t!=="")return{resolvedId:t,warningType:"deprecated"};throw new Error("Either externalUserId or userId must be provided")};function at(e,t){return e.type===t}function Gr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"value"in e&&(typeof e.value=="string"||typeof e.value=="number")}function De(e){if(e==null)return{label:"",value:""};if(typeof e!="object")return{label:String(e),value:e};if("__lv"in e)return De(e.__lv);if("lv"in e)return De(e.lv);if("value"in e){const{label:t,value:n}=e;return{label:String(t||n),value:n}}return{label:String(e),value:e}}function Or(e){return!e||typeof e!="object"||!("__lv"in e)?!1:e.__lv!=null}function Xo(e){return!Array.isArray(e)||e.length===0?!1:e.every(t=>Or(t))}function kp(e){return Or(e)||Xo(e)}const Ut=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer","dir"],Vr=C.createContext(void 0),qt=()=>{const e=C.useContext(Vr);if(!e)throw new Error("Must be used inside provider");return e},Wo=({children:e,props:t})=>{const n=lt(),i=C.useId(),{component:r,configuredProps:o,propNames:l,externalUserId:a,userId:s,sdkResponse:u,enableDebugging:c,oauthAppConfig:d}=t,{resolvedId:f,warningType:p}=C.useMemo(()=>Ep(a,s),[a,s]);C.useEffect(()=>{process.env.NODE_ENV!=="production"&&(p==="both"?console.warn("[connect-react] Both externalUserId and userId provided. Using externalUserId. Please remove userId to avoid this warning."):p==="deprecated"&&console.warn("[connect-react] userId is deprecated. Please use externalUserId instead."))},[p]);const v=r.key,[y,A]=C.useState(0),[m,F]=C.useState({}),[E,P]=C.useState(!1),[T,x]=C.useState({}),[H,G]=C.useState([]),[O,k]=C.useState({});C.useEffect(()=>{k({})},[r.key]);const L=S=>O[S.name];let D=o||{};const[R,U]=C.useState(D),Y=t.onUpdateConfiguredProps||U;t.onUpdateConfiguredProps||(D=R);const[j,ae]=C.useState(),se=C.useRef();j&&(se.current=j);const[V,g]=C.useState(),le={externalUserId:f,id:v,configuredProps:D,dynamicPropsId:j==null?void 0:j.id},Q={externalUserId:f,id:v,dynamicPropsId:j==null?void 0:j.id,reloadTriggerProps:Object.fromEntries(Object.entries(D).filter(([S])=>{const N=((j==null?void 0:j.configurableProps)||t.component.configurableProps||[]).find(Z=>Z.name===S);return N&&"reloadProps"in N&&N.reloadProps}))},{isFetching:b}=nt.useQuery({queryKey:["dynamicProps",Q],queryFn:async()=>{var S;try{const N=await n.components.reloadProps(le),{dynamicProps:Z,observations:z,errors:he}=N,Ce=Z;return z&&z.filter(B=>B.k==="error").length>0?xe(z):xe(he),g(void 0),Z&&Ce&&((S=t.onUpdateDynamicProps)==null||S.call(t,Z),ae(Ce)),[]}finally{g(void 0)}},enabled:V!=null,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,staleTime:1/0}),[ge,ee]=C.useState([]);C.useEffect(()=>{Ee()},[D]);const re=C.useMemo(()=>{const S=se.current||j;let N=(S==null?void 0:S.configurableProps)||t.component.configurableProps||[];if(l!=null&&l.length){const Z=[];for(const z of N)l.findIndex(he=>z.name===he)>=0&&Z.push(z);N=Z}return V!=null&&b&&(N=Array.isArray(N)?N.slice(0,V+1):N),N},[j==null?void 0:j.configurableProps,t.component.configurableProps,l,V,b]),ve=(S,N)=>{const Z=[];if(S.optional||S.hidden||S.disabled||Ut.includes(S.type))return[];if(at(S,"app")){const z=m[S.name];if(z){const he="app"in z.extra?z.extra.app:void 0;Z.push(...wp({value:N,app:he})??[])}else Z.push("field not registered")}else at(S,"boolean")?Z.push(...xp({value:N})??[]):at(S,"integer")?Z.push(...Cp({prop:S,value:N})??[]):at(S,"string")?Z.push(...Ap({prop:S,value:N})??[]):at(S,"string[]")&&Z.push(...Ip({prop:S,value:N})??[]);return Z},ue=S=>{let N;for(let Z=0;Z<re.length;Z++){const z=re[Z];if(z.hidden||z.optional&&!L(z))continue;if(S[z.name]===void 0&&N==null&&(z.type==="app"||z.remoteOptions)){N=Z;break}}A(N)},Pe=S=>{Y(S),ue(S),ce(S)},ce=S=>{const N={};for(let Z=0;Z<re.length;Z++){const z=re[Z],he=S[z.name],Ce=ve(z,he);Ce.length&&(N[z.name]=Ce)}x(N)},we=(S,N)=>S.type!=="integer"||typeof N=="number"||kp(N)?N:void 0;C.useEffect(()=>{ue(D)},[r.key,re,O]),C.useEffect(()=>{ue(D)},[D,re,O]),C.useEffect(()=>{ce(D)},[D,V,y]),C.useEffect(()=>{xe(u)},[u]),C.useEffect(()=>{var N,Z;const S={};for(const z of re){if(z.hidden||Ut.includes(z.type))continue;if(z.optional&&!L(z)){const Ce=D[z.name],B=se.current||j,J=(((N=B==null?void 0:B.configurableProps)==null?void 0:N.some(_=>_.name===z.name))??!1)&&!((Z=t.component.configurableProps)!=null&&Z.some(_=>_.name===z.name));if(Ce!==void 0){S[z.name]=Ce;continue}if(J)continue;continue}const he=D[z.name];if(he===void 0)"default"in z&&z.default!=null&&(S[z.name]=z.default);else{const Ce=we(z,he);Ce===void 0?delete S[z.name]:S[z.name]=Ce}}Mo(S,D)||Pe(S)},[re,O]);const[Ie,Oe]=C.useState(f);C.useEffect(()=>{Ie!==f&&(Pe({}),Oe(f))},[f]);const ye=(S,N)=>{const Z=re[S],z={...D};N===void 0?delete z[Z.name]:z[Z.name]=N,Y(z),Z.reloadProps&&g(S);const he=ve(Z,N),Ce={...T};he.length?Ce[Z.name]=he:delete Ce[Z.name],x(Ce)},Ne=(S,N)=>{const Z={...O};N?Z[S.name]=!0:delete Z[S.name];const z=re.findIndex(he=>he.name===S.name);N?(o==null?void 0:o[S.name])!==void 0?ye(z,o[S.name]):"default"in S&&S.default!=null&&ye(z,S.default):ye(z,void 0),k(Z)};C.useEffect(()=>{const S=[];for(const N of re){if(!N.optional||L(N))continue;const Z=D[N.name],z=o==null?void 0:o[N.name];Z===void 0&&z===void 0||S.push(N)}S.length&&S.forEach(N=>Ne(N,!0))},[r.key,re,D,O,o]);const Ee=()=>{const S=[];for(const N of re){if(!N||N.optional||N.hidden||Ut.includes(N.type))continue;const Z=D[N.name];ve(N,Z).length&&S.push(N.name)}S&&ge&&Mo(S,ge)||ee(S)},We=S=>{F(N=>(N[S.prop.name]=S,N)),Ee()},xe=S=>{if(!S)return;let N=[...H];const Z=(J,_)=>{try{const $=JSON.parse(J),fe={name:$.name,message:$.message};fe.name&&fe.message&&_.push(fe)}catch{}},z=(J,_)=>{const $={name:J.name,message:J.message};$.name&&$.message&&_.push($)},he=(J,_)=>{if(!(!("err"in J)||!J.err)&&J.err.name&&J.err.message){const $={name:J.err.name,message:J.err.message};_.push($)}},Ce=(J,_)=>{if(Array.isArray(J)&&J.length>0)for(let $=0;$<J.length;$++)J[$].k==="error"&&he(J[$],_)},B=(J,_)=>{_.push({name:J.error,message:JSON.stringify(J.details)})},X=(J,_)=>{var $;try{const fe=($=JSON.parse(J.message))==null?void 0:$.data;fe&&"os"in fe?Ce(fe.os,_):fe&&"observations"in fe?Ce(fe.observations,_):fe&&"error"in fe&&"details"in fe&&B(fe,_)}catch{}};if(Array.isArray(S)&&S.length>0)for(let J=0;J<S.length;J++){const _=S[J];typeof _=="string"?Z(_,N):typeof _=="object"&&"name"in _&&"message"in _&&"stack"in _?z(_,N):typeof _=="object"&&_.k==="error"&&he(_,N)}else typeof S=="object"&&S&&"observations"in S?Ce(S.observations,N):typeof S=="object"&&S&&"os"in S?Ce(S.os,N):typeof S=="object"&&"message"in S?X(S,N):N=[];G(N)},vt={id:i,isValid:!Object.keys(T).length,props:t,externalUserId:f,userId:f,component:r,configurableProps:re,configuredProps:D,dynamicProps:j,dynamicPropsQueryIsFetching:b,errors:T,fields:m,optionalPropIsEnabled:L,optionalPropSetEnabled:Ne,propsNeedConfiguring:ge,queryDisabledIdx:y,registerField:We,setConfiguredProp:ye,setSubmitting:P,submitting:E,sdkErrors:H,enableDebugging:c,oauthAppConfig:d};return I.jsx(Vr.Provider,{value:vt,children:e})};function Et(e){"@babel/helpers - typeof";return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(e)}function Pp(e,t){if(Et(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(Et(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ro(e){var t=Pp(e,"string");return Et(t)=="symbol"?t:t+""}function Qt(e,t,n){return(t=Ro(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(i){Qt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Bp(e){if(Array.isArray(e))return e}function Fp(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,o,l,a=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);s=!0);}catch(c){u=!0,r=c}finally{try{if(!s&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw r}}return a}}function Nr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function jo(e,t){if(e){if(typeof e=="string")return Nr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}}function Tp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dt(e,t){return Bp(e)||Fp(e,t)||jo(e,t)||Tp()}function Gp(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function st(e,t){if(e==null)return{};var n,i,r=Gp(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Op=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Jo(e){var t=e.defaultInputValue,n=t===void 0?"":t,i=e.defaultMenuIsOpen,r=i===void 0?!1:i,o=e.defaultValue,l=o===void 0?null:o,a=e.inputValue,s=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,v=st(e,Op),y=C.useState(a!==void 0?a:n),A=dt(y,2),m=A[0],F=A[1],E=C.useState(s!==void 0?s:r),P=dt(E,2),T=P[0],x=P[1],H=C.useState(p!==void 0?p:l),G=dt(H,2),O=G[0],k=G[1],L=C.useCallback(function(se,V){typeof u=="function"&&u(se,V),k(se)},[u]),D=C.useCallback(function(se,V){var g;typeof c=="function"&&(g=c(se,V)),F(g!==void 0?g:se)},[c]),R=C.useCallback(function(){typeof f=="function"&&f(),x(!0)},[f]),U=C.useCallback(function(){typeof d=="function"&&d(),x(!1)},[d]),Y=a!==void 0?a:m,j=s!==void 0?s:T,ae=p!==void 0?p:O;return ne(ne({},v),{},{inputValue:Y,menuIsOpen:j,onChange:L,onInputChange:D,onMenuClose:U,onMenuOpen:R,value:ae})}function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ie.apply(null,arguments)}function Vp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ro(i.key),i)}}function Np(e,t,n){return t&&Yo(e.prototype,t),n&&Yo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e,t){return Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dr(e,t)}function Dp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dr(e,t)}function In(e){return In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},In(e)}function _o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_o=function(){return!!e})()}function Lp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mp(e,t){if(t&&(Et(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lp(e)}function zp(e){var t=_o();return function(){var n,i=In(e);if(t){var r=In(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Mp(this,n)}}function Hp(e){if(Array.isArray(e))return Nr(e)}function Xp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wp(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lt(e){return Hp(e)||Xp(e)||jo(e)||Wp()}function Rp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Zp=Math.min,jp=Math.max,xn=Math.round,Cn=Math.floor,An=e=>({x:e,y:e});function Jp(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function Sn(){return typeof window<"u"}function Uo(e){return Qo(e)?(e.nodeName||"").toLowerCase():"#document"}function pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qo(e){var t;return(t=(Qo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qo(e){return Sn()?e instanceof Node||e instanceof pt(e).Node:!1}function Yp(e){return Sn()?e instanceof Element||e instanceof pt(e).Element:!1}function Lr(e){return Sn()?e instanceof HTMLElement||e instanceof pt(e).HTMLElement:!1}function $o(e){return!Sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pt(e).ShadowRoot}const _p=new Set(["inline","contents"]);function Ko(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Mr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!_p.has(r)}function Up(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qp=new Set(["html","body","#document"]);function Qp(e){return qp.has(Uo(e))}function Mr(e){return pt(e).getComputedStyle(e)}function $p(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$o(e)&&e.host||qo(e);return $o(t)?t.host:t}function el(e){const t=$p(e);return Qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Lr(t)&&Ko(t)?t:el(t)}function wn(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=el(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),l=pt(r);if(o){const a=zr(l);return t.concat(l,l.visualViewport||[],Ko(r)?r:[],a&&n?wn(a):[])}return t.concat(r,wn(r,[],n))}function zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kp(e){const t=Mr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Lr(e),o=r?e.offsetWidth:n,l=r?e.offsetHeight:i,a=xn(n)!==o||xn(i)!==l;return a&&(n=o,i=l),{width:n,height:i,$:a}}function Hr(e){return Yp(e)?e:e.contextElement}function tl(e){const t=Hr(e);if(!Lr(t))return An(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=Kp(t);let l=(o?xn(n.width):n.width)/i,a=(o?xn(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const ef=An(0);function tf(e){const t=pt(e);return!Up()||!t.visualViewport?ef:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nf(e,t,n){return!1}function nl(e,t,n,i){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=Hr(e);let l=An(1);t&&(l=tl(e));const a=nf()?tf(o):An(0);let s=(r.left+a.x)/l.x,u=(r.top+a.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(o){const f=pt(o),p=i;let v=f,y=zr(v);for(;y&&i&&p!==v;){const A=tl(y),m=y.getBoundingClientRect(),F=Mr(y),E=m.left+(y.clientLeft+parseFloat(F.paddingLeft))*A.x,P=m.top+(y.clientTop+parseFloat(F.paddingTop))*A.y;s*=A.x,u*=A.y,c*=A.x,d*=A.y,s+=E,u+=P,v=pt(y),y=zr(v)}}return Jp({width:c,height:d,x:s,y:u})}function rl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rf(e,t){let n=null,i;const r=qo(e);function o(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(a||t(),!f||!p)return;const v=Cn(d),y=Cn(r.clientWidth-(c+f)),A=Cn(r.clientHeight-(d+p)),m=Cn(c),E={rootMargin:-v+"px "+-y+"px "+-A+"px "+-m+"px",threshold:jp(0,Zp(1,s))||1};let P=!0;function T(x){const H=x[0].intersectionRatio;if(H!==s){if(!P)return l();H?l(!1,H):i=setTimeout(()=>{l(!1,1e-7)},1e3)}H===1&&!rl(u,e.getBoundingClientRect())&&l(),P=!1}try{n=new IntersectionObserver(T,{...E,root:r.ownerDocument})}catch{n=new IntersectionObserver(T,E)}n.observe(e)}return l(!0),o}function of(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=i,u=Hr(e),c=r||o?[...u?wn(u):[],...wn(t)]:[];c.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const d=u&&a?rf(u,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(m=>{let[F]=m;F&&F.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let v,y=s?nl(e):null;s&&A();function A(){const m=nl(e);y&&!rl(y,m)&&n(),y=m,v=requestAnimationFrame(A)}return n(),()=>{var m;c.forEach(F=>{r&&F.removeEventListener("scroll",n),o&&F.removeEventListener("resize",n)}),d==null||d(),(m=p)==null||m.disconnect(),p=null,s&&cancelAnimationFrame(v)}}var Xr=C.useLayoutEffect,lf=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],En=function(){};function af(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function sf(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=[].concat(i);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&o.push("".concat(af(e,l)));return o.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var kn=function(t){return bf(t)?t.filter(Boolean):Et(t)==="object"&&t!==null?[t]:[]},il=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=st(t,lf);return ne({},n)},Fe=function(t,n,i){var r=t.cx,o=t.getStyles,l=t.getClassNames,a=t.className;return{css:o(n,t),className:r(i??{},l(n,t),a)}};function Pn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function uf(e){return Pn(e)?window.innerHeight:e.clientHeight}function ol(e){return Pn(e)?window.pageYOffset:e.scrollTop}function Bn(e,t){if(Pn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function cf(e){var t=getComputedStyle(e),n=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function df(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function Fn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:En,r=ol(e),o=t-r,l=10,a=0;function s(){a+=l;var u=df(a,r,o,n);Bn(e,u),a<n?window.requestAnimationFrame(s):i(e)}s()}function ll(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>n.bottom?Bn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<n.top&&Bn(e,Math.max(t.offsetTop-r,0))}function pf(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function al(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function ff(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var sl=!1,gf={get passive(){return sl=!0}},Tn=typeof window<"u"?window:{};Tn.addEventListener&&Tn.removeEventListener&&(Tn.addEventListener("p",En,gf),Tn.removeEventListener("p",En,!1));var hf=sl;function mf(e){return e!=null}function bf(e){return Array.isArray(e)}function $t(e,t,n){return e?t:n}function sb(e){return e}function ub(e){return e}var yf=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=Object.entries(t).filter(function(l){var a=dt(l,1),s=a[0];return!i.includes(s)});return o.reduce(function(l,a){var s=dt(a,2),u=s[0],c=s[1];return l[u]=c,l},{})},vf=["children","innerProps"],If=["children","innerProps"];function xf(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,l=e.isFixedPosition,a=e.controlHeight,s=cf(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=s.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,v=f.height,y=f.top,A=n.offsetParent.getBoundingClientRect(),m=A.top,F=l?window.innerHeight:uf(s),E=ol(s),P=parseInt(getComputedStyle(n).marginBottom,10),T=parseInt(getComputedStyle(n).marginTop,10),x=m-T,H=F-y,G=x+E,O=d-E-y,k=p-F+E+P,L=E+y-T,D=160;switch(r){case"auto":case"bottom":if(H>=v)return{placement:"bottom",maxHeight:t};if(O>=v&&!l)return o&&Fn(s,k,D),{placement:"bottom",maxHeight:t};if(!l&&O>=i||l&&H>=i){o&&Fn(s,k,D);var R=l?H-P:O-P;return{placement:"bottom",maxHeight:R}}if(r==="auto"||l){var U=t,Y=l?x:G;return Y>=i&&(U=Math.min(Y-P-a,t)),{placement:"top",maxHeight:U}}if(r==="bottom")return o&&Bn(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(x>=v)return{placement:"top",maxHeight:t};if(G>=v&&!l)return o&&Fn(s,L,D),{placement:"top",maxHeight:t};if(!l&&G>=i||l&&x>=i){var j=t;return(!l&&G>=i||l&&x>=i)&&(j=l?x-T:G-T),o&&Fn(s,L,D),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function Cf(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ul=function(t){return t==="auto"?"bottom":t},Af=function(t,n){var i,r=t.placement,o=t.theme,l=o.borderRadius,a=o.spacing,s=o.colors;return ne((i={label:"menu"},Qt(i,Cf(r),"100%"),Qt(i,"position","absolute"),Qt(i,"width","100%"),Qt(i,"zIndex",1),i),n?{}:{backgroundColor:s.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},cl=C.createContext(null),Sf=function(t){var n=t.children,i=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,l=t.menuPosition,a=t.menuShouldScrollIntoView,s=t.theme,u=C.useContext(cl)||{},c=u.setPortalPlacement,d=C.useRef(null),f=C.useState(r),p=dt(f,2),v=p[0],y=p[1],A=C.useState(null),m=dt(A,2),F=m[0],E=m[1],P=s.spacing.controlHeight;return Xr(function(){var T=d.current;if(T){var x=l==="fixed",H=a&&!x,G=xf({maxHeight:r,menuEl:T,minHeight:i,placement:o,shouldScroll:H,isFixedPosition:x,controlHeight:P});y(G.maxHeight),E(G.placement),c==null||c(G.placement)}},[r,o,l,a,i,c,P]),n({ref:d,placerProps:ne(ne({},t),{},{placement:F||ul(o),maxHeight:v})})},wf=function(t){var n=t.children,i=t.innerRef,r=t.innerProps;return te.jsx("div",ie({},Fe(t,"menu",{menu:!0}),{ref:i},r),n)},Ef=wf,kf=function(t,n){var i=t.maxHeight,r=t.theme.spacing.baseUnit;return ne({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},Pf=function(t){var n=t.children,i=t.innerProps,r=t.innerRef,o=t.isMulti;return te.jsx("div",ie({},Fe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),n)},dl=function(t,n){var i=t.theme,r=i.spacing.baseUnit,o=i.colors;return ne({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Bf=dl,Ff=dl,Tf=function(t){var n=t.children,i=n===void 0?"No options":n,r=t.innerProps,o=st(t,vf);return te.jsx("div",ie({},Fe(ne(ne({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},Gf=function(t){var n=t.children,i=n===void 0?"Loading...":n,r=t.innerProps,o=st(t,If);return te.jsx("div",ie({},Fe(ne(ne({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},Of=function(t){var n=t.rect,i=t.offset,r=t.position;return{left:n.left,position:r,top:i,width:n.width,zIndex:1}},Vf=function(t){var n=t.appendTo,i=t.children,r=t.controlElement,o=t.innerProps,l=t.menuPlacement,a=t.menuPosition,s=C.useRef(null),u=C.useRef(null),c=C.useState(ul(l)),d=dt(c,2),f=d[0],p=d[1],v=C.useMemo(function(){return{setPortalPlacement:p}},[]),y=C.useState(null),A=dt(y,2),m=A[0],F=A[1],E=C.useCallback(function(){if(r){var H=pf(r),G=a==="fixed"?0:window.pageYOffset,O=H[f]+G;(O!==(m==null?void 0:m.offset)||H.left!==(m==null?void 0:m.rect.left)||H.width!==(m==null?void 0:m.rect.width))&&F({offset:O,rect:H})}},[r,a,f,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);Xr(function(){E()},[E]);var P=C.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&s.current&&(u.current=of(r,s.current,E,{elementResize:"ResizeObserver"in window}))},[r,E]);Xr(function(){P()},[P]);var T=C.useCallback(function(H){s.current=H,P()},[P]);if(!n&&a!=="fixed"||!m)return null;var x=te.jsx("div",ie({ref:T},Fe(ne(ne({},t),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),o),i);return te.jsx(cl.Provider,{value:v},n?Na.createPortal(x,n):x)},Nf=function(t){var n=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Df=function(t){var n=t.children,i=t.innerProps,r=t.isDisabled,o=t.isRtl;return te.jsx("div",ie({},Fe(t,"container",{"--is-disabled":r,"--is-rtl":o}),i),n)},Lf=function(t,n){var i=t.theme.spacing,r=t.isMulti,o=t.hasValue,l=t.selectProps.controlShouldRenderValue;return ne({alignItems:"center",display:r&&o&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},Mf=function(t){var n=t.children,i=t.innerProps,r=t.isMulti,o=t.hasValue;return te.jsx("div",ie({},Fe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),n)},zf=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Hf=function(t){var n=t.children,i=t.innerProps;return te.jsx("div",ie({},Fe(t,"indicatorsContainer",{indicators:!0}),i),n)},pl,Xf=["size"],Wf=["innerProps","isRtl","size"];function Rf(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Zf=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcI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wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:Rf},fl=function(t){var n=t.size,i=st(t,Xf);return te.jsx("svg",ie({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Zf},i))},Wr=function(t){return te.jsx(fl,ie({size:20},t),te.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gl=function(t){return te.jsx(fl,ie({size:20},t),te.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},hl=function(t,n){var i=t.isFocused,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return ne({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:i?l.neutral60:l.neutral20,padding:o*2,":hover":{color:i?l.neutral80:l.neutral40}})},jf=hl,Jf=function(t){var n=t.children,i=t.innerProps;return te.jsx("div",ie({},Fe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),n||te.jsx(gl,null))},Yf=hl,_f=function(t){var n=t.children,i=t.innerProps;return te.jsx("div",ie({},Fe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),n||te.jsx(Wr,null))},Uf=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,l=r.colors;return ne({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:i?l.neutral10:l.neutral20,marginBottom:o*2,marginTop:o*2})},qf=function(t){var n=t.innerProps;return te.jsx("span",ie({},n,Fe(t,"indicatorSeparator",{"indicator-separator":!0})))},Qf=te.keyframes(pl||(pl=Rp([`
|
|
18
18
|
0%, 80%, 100% { opacity: 0; }
|
|
19
19
|
40% { opacity: 1; }
|
|
20
|
-
`]))),Qf=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,l=o.colors,a=o.spacing.baseUnit;return ie({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?l.neutral60:l.neutral20,padding:a*2})},Rr=function(t){var n=t.delay,i=t.offset;return ne.jsx("span",{css:ne.css({animation:"".concat(qf," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAg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oXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},$f=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,l=ut(t,Xf);return ne.jsx("div",oe({},Fe(ie(ie({},l),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ne.jsx(Rr,{delay:0,offset:i}),ne.jsx(Rr,{delay:160,offset:!0}),ne.jsx(Rr,{delay:320,offset:!i}))},Kf=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,l=o.colors,a=o.borderRadius,s=o.spacing;return ie({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?l.neutral5:l.neutral0,borderColor:i?l.neutral10:r?l.primary:l.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:r?l.primary:l.neutral30}})},eg=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,l=t.innerProps,a=t.menuIsOpen;return ne.jsx("div",oe({ref:o},Fe(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":a}),l,{"aria-disabled":i||void 0}),n)},tg=eg,ng=["data"],rg=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},ig=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,l=t.Heading,a=t.headingProps,s=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return ne.jsx("div",oe({},Fe(t,"group",{group:!0}),s),ne.jsx(l,oe({},a,{selectProps:d,theme:c,getStyles:r,getClassNames:o,cx:i}),u),ne.jsx("div",null,n))},og=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return ie({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},lg=function(t){var n=il(t);n.data;var i=ut(n,ng);return ne.jsx("div",oe({},Fe(t,"groupHeading",{"group-heading":!0}),i))},ag=ig,sg=["innerRef","isDisabled","isHidden","inputClassName"],ug=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,l=o.spacing,a=o.colors;return ie(ie({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},cg),n?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:a.neutral80})},ml={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},cg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ie({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ml)},dg=function(t){return ie({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ml)},pg=function(t){var n=t.cx,i=t.value,r=il(t),o=r.innerRef,l=r.isDisabled,a=r.isHidden,s=r.inputClassName,u=ut(r,sg);return ne.jsx("div",oe({},Fe(t,"input",{"input-container":!0}),{"data-value":i||""}),ne.jsx("input",oe({className:n({input:!0},s),ref:o,style:dg(a),disabled:l},u)))},fg=pg,gg=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors;return ie({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:l.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},hg=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,l=t.cropWithEllipsis;return ie({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},mg=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors,a=t.isFocused;return ie({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?l.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},bl=function(t){var n=t.children,i=t.innerProps;return ne.jsx("div",i,n)},bg=bl,yg=bl;function vg(e){var t=e.children,n=e.innerProps;return ne.jsx("div",oe({role:"button"},n),t||ne.jsx(Wr,{size:14}))}var Ig=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,l=t.isDisabled,a=t.removeProps,s=t.selectProps,u=i.Container,c=i.Label,d=i.Remove;return ne.jsx(u,{data:r,innerProps:ie(ie({},Fe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),o),selectProps:s},ne.jsx(c,{data:r,innerProps:ie({},Fe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),ne.jsx(d,{data:r,innerProps:ie(ie({},Fe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:s}))},xg=Ig,Cg=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.theme,a=l.spacing,s=l.colors;return ie({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},Ag=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.innerRef,a=t.innerProps;return ne.jsx("div",oe({},Fe(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:l,"aria-disabled":i},a),n)},Sg=Ag,wg=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return ie({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},Eg=function(t){var n=t.children,i=t.innerProps;return ne.jsx("div",oe({},Fe(t,"placeholder",{placeholder:!0}),i),n)},kg=Eg,Pg=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,l=r.colors;return ie({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?l.neutral40:l.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Bg=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return ne.jsx("div",oe({},Fe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},Fg=Bg,Mt={ClearIndicator:Yf,Control:tg,DropdownIndicator:jf,DownChevron:gl,CrossIcon:Wr,Group:ag,GroupHeading:lg,IndicatorsContainer:zf,IndicatorSeparator:Uf,Input:fg,LoadingIndicator:$f,Menu:wf,MenuList:kf,MenuPortal:Of,LoadingMessage:Tf,NoOptionsMessage:Ff,MultiValue:xg,MultiValueContainer:bg,MultiValueLabel:yg,MultiValueRemove:vg,Option:Sg,Placeholder:kg,SelectContainer:Nf,SingleValue:Fg,ValueContainer:Lf},Tg=function(t){return ie(ie({},Mt),t.components)},yl=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Gg(e,t){return!!(e===t||yl(e)&&yl(t))}function Og(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Gg(e[n],t[n]))return!1;return!0}function Vg(e,t){t===void 0&&(t=Og);var n=null;function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var l=e.apply(this,r);return n={lastResult:l,lastArgs:r,lastThis:this},l}return i.clear=function(){n=null},i}function Ng(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var Dg=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Ng},Lg=function(t){return ne.jsx("span",oe({css:Dg},t))},vl=Lg,Mg={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,o=t.context,l=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,i=t.label,r=i===void 0?"":i,o=t.labels,l=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return l?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,l=o===void 0?"":o,a=t.selectValue,s=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(y,A){return y&&y.length?"".concat(y.indexOf(A)+1," of ").concat(y.length):""};if(n==="value"&&a)return"value ".concat(l," focused, ").concat(d(a,i),".");if(n==="menu"&&c){var f=s?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(l).concat(p,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},zg=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,l=t.isFocused,a=t.selectValue,s=t.selectProps,u=t.id,c=t.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,v=s.isMulti,y=s.isOptionDisabled,A=s.isSearchable,m=s.menuIsOpen,B=s.options,w=s.screenReaderStatus,k=s.tabSelectsValue,T=s.isLoading,I=s["aria-label"],H=s["aria-live"],G=C.useMemo(function(){return ie(ie({},Mg),d||{})},[d]),V=C.useMemo(function(){var j="";if(n&&G.onChange){var Z=n.option,ue=n.options,pe=n.removedValue,N=n.removedValues,g=n.value,se=function(me){return Array.isArray(me)?null:me},q=pe||Z||se(g),b=q?f(q):"",he=ue||N||void 0,te=he?he.map(f):[],Q=ie({isDisabled:q&&y(q,a),label:b,labels:te},n);j=G.onChange(Q)}return j},[n,G,y,a,f]),E=C.useMemo(function(){var j="",Z=i||r,ue=!!(i&&a&&a.includes(i));if(Z&&G.onFocus){var pe={focused:Z,label:f(Z),isDisabled:y(Z,a),isSelected:ue,options:o,context:Z===i?"menu":"value",selectValue:a,isAppleDevice:c};j=G.onFocus(pe)}return j},[i,r,f,y,G,o,a,c]),L=C.useMemo(function(){var j="";if(m&&B.length&&!T&&G.onFilter){var Z=w({count:o.length});j=G.onFilter({inputValue:p,resultsMessage:Z})}return j},[o,p,m,G,B,w,T]),D=(n==null?void 0:n.action)==="initial-input-focus",R=C.useMemo(function(){var j="";if(G.guidance){var Z=r?"value":m?"menu":"input";j=G.guidance({"aria-label":I,context:Z,isDisabled:i&&y(i,a),isMulti:v,isSearchable:A,tabSelectsValue:k,isInitialFocus:D})}return j},[I,i,r,v,y,A,m,G,a,k,D]),_=ne.jsx(C.Fragment,null,ne.jsx("span",{id:"aria-selection"},V),ne.jsx("span",{id:"aria-focused"},E),ne.jsx("span",{id:"aria-results"},L),ne.jsx("span",{id:"aria-guidance"},R));return ne.jsx(C.Fragment,null,ne.jsx(vl,{id:u},D&&_),ne.jsx(vl,{"aria-live":H,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!D&&_))},Hg=zg,Zr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Xg=new RegExp("["+Zr.map(function(e){return e.letters}).join("")+"]","g"),Il={},jr=0;jr<Zr.length;jr++)for(var Jr=Zr[jr],Yr=0;Yr<Jr.letters.length;Yr++)Il[Jr.letters[Yr]]=Jr.base;var xl=function(t){return t.replace(Xg,function(n){return Il[n]})},Wg=Vg(xl),Cl=function(t){return t.replace(/^\s+|\s+$/g,"")},Rg=function(t){return"".concat(t.label," ").concat(t.value)},Zg=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=ie({ignoreCase:!0,ignoreAccents:!0,stringify:Rg,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,l=r.ignoreAccents,a=r.stringify,s=r.trim,u=r.matchFrom,c=s?Cl(i):i,d=s?Cl(a(n)):a(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),l&&(c=Wg(c),d=xl(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},jg=["innerRef"];function Jg(e){var t=e.innerRef,n=ut(e,jg),i=bf(n,"onExited","in","enter","exit","appear");return ne.jsx("input",oe({ref:t},i,{css:ne.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1x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bmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Yg=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function _g(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,l=C.useRef(!1),a=C.useRef(!1),s=C.useRef(0),u=C.useRef(null),c=C.useCallback(function(A,m){if(u.current!==null){var B=u.current,w=B.scrollTop,k=B.scrollHeight,T=B.clientHeight,I=u.current,H=m>0,G=k-T-w,V=!1;G>m&&l.current&&(i&&i(A),l.current=!1),H&&a.current&&(o&&o(A),a.current=!1),H&&m>G?(n&&!l.current&&n(A),I.scrollTop=k,V=!0,l.current=!0):!H&&-m>w&&(r&&!a.current&&r(A),I.scrollTop=0,V=!0,a.current=!0),V&&Yg(A)}},[n,i,r,o]),d=C.useCallback(function(A){c(A,A.deltaY)},[c]),f=C.useCallback(function(A){s.current=A.changedTouches[0].clientY},[]),p=C.useCallback(function(A){var m=s.current-A.changedTouches[0].clientY;c(A,m)},[c]),v=C.useCallback(function(A){if(A){var m=gf?{passive:!1}:!1;A.addEventListener("wheel",d,m),A.addEventListener("touchstart",f,m),A.addEventListener("touchmove",p,m)}},[p,f,d]),y=C.useCallback(function(A){A&&(A.removeEventListener("wheel",d,!1),A.removeEventListener("touchstart",f,!1),A.removeEventListener("touchmove",p,!1))},[p,f,d]);return C.useEffect(function(){if(t){var A=u.current;return v(A),function(){y(A)}}},[t,v,y]),function(A){u.current=A}}var Al=["boxSizing","height","overflow","paddingRight","position"],Sl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function wl(e){e.cancelable&&e.preventDefault()}function El(e){e.stopPropagation()}function kl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Pl(){return"ontouchstart"in window||navigator.maxTouchPoints}var Bl=!!(typeof window<"u"&&window.document&&window.document.createElement),Kt=0,zt={capture:!1,passive:!1};function Ug(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=C.useRef({}),o=C.useRef(null),l=C.useCallback(function(s){if(Bl){var u=document.body,c=u&&u.style;if(i&&Al.forEach(function(v){var y=c&&c[v];r.current[v]=y}),i&&Kt<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Sl).forEach(function(v){var y=Sl[v];c&&(c[v]=y)}),c&&(c.paddingRight="".concat(p,"px"))}u&&Pl()&&(u.addEventListener("touchmove",wl,zt),s&&(s.addEventListener("touchstart",kl,zt),s.addEventListener("touchmove",El,zt))),Kt+=1}},[i]),a=C.useCallback(function(s){if(Bl){var u=document.body,c=u&&u.style;Kt=Math.max(Kt-1,0),i&&Kt<1&&Al.forEach(function(d){var f=r.current[d];c&&(c[d]=f)}),u&&Pl()&&(u.removeEventListener("touchmove",wl,zt),s&&(s.removeEventListener("touchstart",kl,zt),s.removeEventListener("touchmove",El,zt)))}},[i]);return C.useEffect(function(){if(t){var s=o.current;return l(s),function(){a(s)}}},[t,l,a]),function(s){o.current=s}}function qg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Qg=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},$g=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2Z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gb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:qg};function Kg(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,l=e.onBottomLeave,a=e.onTopArrive,s=e.onTopLeave,u=_g({isEnabled:r,onBottomArrive:o,onBottomLeave:l,onTopArrive:a,onTopLeave:s}),c=Ug({isEnabled:n}),d=function(p){u(p),c(p)};return ne.jsx(C.Fragment,null,n&&ne.jsx("div",{onClick:Qg,css:$g}),t(d))}function eh(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var th=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:eh},nh=function(t){var n=t.name,i=t.onFocus;return ne.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:th,value:"",onChange:function(){}})},rh=nh;function _r(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ih(){return _r(/^iPhone/i)}function Fl(){return _r(/^Mac/i)}function oh(){return _r(/^iPad/i)||Fl()&&navigator.maxTouchPoints>1}function lh(){return ih()||oh()}function ah(){return Fl()||lh()}var sh=function(t){return t.label},Tl=function(t){return t.label},Gl=function(t){return t.value},uh=function(t){return!!t.isDisabled},ch={clearIndicator:Jf,container:Vf,control:Kf,dropdownIndicator:Zf,group:rg,groupHeading:og,indicatorsContainer:Mf,indicatorSeparator:_f,input:ug,loadingIndicator:Qf,loadingMessage:Bf,menu:Cf,menuList:Ef,menuPortal:Gf,multiValue:gg,multiValueLabel:hg,multiValueRemove:mg,noOptionsMessage:Pf,option:Cg,placeholder:wg,singleValue:Pg,valueContainer:Df};function dh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ie({},e);return Object.keys(t).forEach(function(i){var r=i;e[r]?n[r]=function(o,l){return t[r](e[r](o,l),l)}:n[r]=t[r]}),n}var ph={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},fh=4,Ol=4,gh=38,hh=Ol*2,mh={baseUnit:Ol,controlHeight:gh,menuGutter:hh},en={borderRadius:fh,colors:ph,spacing:mh},bh={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:al(),captureMenuScroll:!al(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Zg(),formatGroupLabel:sh,getOptionLabel:Tl,getOptionValue:Gl,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:uh,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!pf(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Vl(e,t,n,i){var r=zl(e,t,n),o=Hl(e,t,n),l=Ml(e,t),a=On(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:l,value:a,index:i}}function Gn(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(l,a){return Vl(e,l,t,a)}).filter(function(l){return Ll(e,l)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=Vl(e,n,t,i);return Ll(e,o)?o:void 0}).filter(hf)}function Nl(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Lt(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function Dl(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Lt(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function yh(e,t){return Nl(Gn(e,t))}function Ll(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,l=t.label,a=t.value;return(!Wl(e)||!o)&&Xl(e,{label:l,value:a,data:r},i)}function vh(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function Ih(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ur=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},Ml=function(t,n){return t.getOptionLabel(n)},On=function(t,n){return t.getOptionValue(n)};function zl(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Hl(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=On(e,t);return n.some(function(r){return On(e,r)===i})}function Xl(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Wl=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},xh=1,qr=function(e){Np(n,e);var t=Mp(n);function n(i){var r;if(Op(this,n),r=t.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(s){r.controlRef=s},r.focusedOptionRef=null,r.getFocusedOptionRef=function(s){r.focusedOptionRef=s},r.menuListRef=null,r.getMenuListRef=function(s){r.menuListRef=s},r.inputRef=null,r.getInputRef=function(s){r.inputRef=s},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(s,u){var c=r.props,d=c.onChange,f=c.name;u.name=f,r.ariaOnChange(s,u),d(s,u)},r.setValue=function(s,u,c){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,v=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:v}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(s,{action:u,option:c})},r.selectOption=function(s){var u=r.props,c=u.blurInputOnSelect,d=u.isMulti,f=u.name,p=r.state.selectValue,v=d&&r.isOptionSelected(s,p),y=r.isOptionDisabled(s,p);if(v){var A=r.getOptionValue(s);r.setValue(p.filter(function(m){return r.getOptionValue(m)!==A}),"deselect-option",s)}else if(!y)d?r.setValue([].concat(Lt(p),[s]),"select-option",s):r.setValue(s,"select-option");else{r.ariaOnChange(s,{action:"select-option",option:s,name:f});return}c&&r.blurInput()},r.removeValue=function(s){var u=r.props.isMulti,c=r.state.selectValue,d=r.getOptionValue(s),f=c.filter(function(v){return r.getOptionValue(v)!==d}),p=$t(u,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:s}),r.focusInput()},r.clearValue=function(){var s=r.state.selectValue;r.onChange($t(r.props.isMulti,[],null),{action:"clear",removedValues:s})},r.popValue=function(){var s=r.props.isMulti,u=r.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),f=$t(s,d,d[0]||null);c&&r.onChange(f,{action:"pop-value",removedValue:c})},r.getFocusedOptionId=function(s){return Ur(r.state.focusableOptionsWithIds,s)},r.getFocusableOptionsWithIds=function(){return Dl(Gn(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return af.apply(void 0,[r.props.classNamePrefix].concat(u))},r.getOptionLabel=function(s){return Ml(r.props,s)},r.getOptionValue=function(s){return On(r.props,s)},r.getStyles=function(s,u){var c=r.props.unstyled,d=ch[s](u,c);d.boxSizing="border-box";var f=r.props.styles[s];return f?f(d,u):d},r.getClassNames=function(s,u){var c,d;return(c=(d=r.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},r.getElementId=function(s){return"".concat(r.state.instancePrefix,"-").concat(s)},r.getComponents=function(){return Tg(r.props)},r.buildCategorizedOptions=function(){return Gn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Nl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(s,u){r.setState({ariaSelection:ie({value:s},u)})},r.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(s){r.blockOptionHover=!1},r.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&r.onMenuClose():u&&r.openMenu("first"):(u&&(r.openAfterFocus=!0),r.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},r.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!r.props.isDisabled){var u=r.props,c=u.isMulti,d=u.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!c}),r.onMenuClose()):r.openMenu("first"),s.preventDefault()}},r.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(r.clearValue(),s.preventDefault(),r.openAfterFocus=!1,s.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(s){typeof r.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Pn(s.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(s)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(r.initialTouchX=c.clientX,r.initialTouchY=c.clientY,r.userIsDragging=!1)},r.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-r.initialTouchX),f=Math.abs(c.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(s){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(s.target)&&r.menuListRef&&!r.menuListRef.contains(s.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(s){r.userIsDragging||r.onControlMouseDown(s)},r.onClearIndicatorTouchEnd=function(s){r.userIsDragging||r.onClearIndicatorMouseDown(s)},r.onDropdownIndicatorTouchEnd=function(s){r.userIsDragging||r.onDropdownIndicatorMouseDown(s)},r.handleInputChange=function(s){var u=r.props.inputValue,c=s.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(c,{action:"input-change",prevInputValue:u}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(s){r.props.onFocus&&r.props.onFocus(s),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(s){var u=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(s),r.onInputChange("",{action:"input-blur",prevInputValue:u}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(s){if(!(r.blockOptionHover||r.state.focusedOption===s)){var u=r.getFocusableOptions(),c=u.indexOf(s);r.setState({focusedOption:s,focusedOptionId:c>-1?r.getFocusedOptionId(s):null})}},r.shouldHideSelectedOptions=function(){return Wl(r.props)},r.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),r.focus()},r.onKeyDown=function(s){var u=r.props,c=u.isMulti,d=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,v=u.isClearable,y=u.isDisabled,A=u.menuIsOpen,m=u.onKeyDown,B=u.tabSelectsValue,w=u.openMenuOnFocus,k=r.state,T=k.focusedOption,I=k.focusedValue,H=k.selectValue;if(!y&&!(typeof m=="function"&&(m(s),s.defaultPrevented))){switch(r.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||p)return;r.focusValue("previous");break;case"ArrowRight":if(!c||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(I)r.removeValue(I);else{if(!d)return;c?r.popValue():v&&r.clearValue()}break;case"Tab":if(r.isComposing||s.shiftKey||!A||!B||!T||w&&r.isOptionSelected(T,H))return;r.selectOption(T);break;case"Enter":if(s.keyCode===229)break;if(A){if(!T||r.isComposing)return;r.selectOption(T);break}return;case"Escape":A?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):v&&f&&r.clearValue();break;case" ":if(p)return;if(!A){r.openMenu("first");break}if(!T)return;r.selectOption(T);break;case"ArrowUp":A?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":A?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!A)return;r.focusOption("pageup");break;case"PageDown":if(!A)return;r.focusOption("pagedown");break;case"Home":if(!A)return;r.focusOption("first");break;case"End":if(!A)return;r.focusOption("last");break;default:return}s.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++xh),r.state.selectValue=kn(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),l=r.buildFocusableOptions(),a=l.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=l[a],r.state.focusedOptionId=Ur(o,l[a])}return r}return Vp(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ll(this.menuListRef,this.focusedOptionRef),ah()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.isDisabled,a=o.menuIsOpen,s=this.state.isFocused;(s&&!l&&r.isDisabled||s&&a&&!r.menuIsOpen)&&this.focusInput(),s&&l&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!l&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ll(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,l=this.state,a=l.selectValue,s=l.isFocused,u=this.buildFocusableOptions(),c=r==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(a[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,l=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=l.indexOf(a);a||(s=-1);var u=l.length-1,c=-1;if(l.length){switch(r){case"previous":s===0?c=0:s===-1?c=u:c=s-1;break;case"next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:l[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,l=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var s=0,u=a.indexOf(l);l||(u=-1),r==="up"?s=u>0?u-1:a.length-1:r==="down"?s=(u+1)%a.length:r==="pageup"?(s=u-o,s<0&&(s=0)):r==="pagedown"?(s=u+o,s>a.length-1&&(s=a.length-1)):r==="last"&&(s=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(en):ie(ie({},en),this.props.theme):en}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,l=this.getStyles,a=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,v=d.options,y=this.hasValue();return{clearValue:r,cx:o,getStyles:l,getClassNames:a,getValue:s,hasValue:y,isMulti:f,isRtl:p,options:v,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,l=r.isMulti;return o===void 0?l:o}},{key:"isOptionDisabled",value:function(r,o){return zl(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return Hl(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Xl(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:l,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,l=r.isSearchable,a=r.inputId,s=r.inputValue,u=r.tabIndex,c=r.form,d=r.menuIsOpen,f=r.required,p=this.getComponents(),v=p.Input,y=this.state,A=y.inputIsHidden,m=y.ariaSelection,B=this.commonProps,w=a||this.getElementId("input"),k=ie(ie(ie({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?ye.createElement(v,oe({},B,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:o,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},k)):ye.createElement(Jg,oe({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:En,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},k))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),l=o.MultiValue,a=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,v=p.controlShouldRenderValue,y=p.isDisabled,A=p.isMulti,m=p.inputValue,B=p.placeholder,w=this.state,k=w.selectValue,T=w.focusedValue,I=w.isFocused;if(!this.hasValue()||!v)return m?null:ye.createElement(d,oe({},f,{key:"placeholder",isDisabled:y,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),B);if(A)return k.map(function(G,V){var E=G===T,L="".concat(r.getOptionLabel(G),"-").concat(r.getOptionValue(G));return ye.createElement(l,oe({},f,{components:{Container:a,Label:s,Remove:u},isFocused:E,isDisabled:y,key:L,index:V,removeProps:{onClick:function(){return r.removeValue(G)},onTouchEnd:function(){return r.removeValue(G)},onMouseDown:function(R){R.preventDefault()}},data:G}),r.formatOptionLabel(G,"value"))});if(m)return null;var H=k[0];return ye.createElement(c,oe({},f,{data:H,isDisabled:y}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,l=this.commonProps,a=this.props,s=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return ye.createElement(o,oe({},l,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,l=this.commonProps,a=this.props,s=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return ye.createElement(o,oe({},l,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,l=r.IndicatorSeparator;if(!o||!l)return null;var a=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return ye.createElement(l,oe({},a,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var l=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return ye.createElement(o,oe({},l,{innerProps:u,isDisabled:a,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),l=o.Group,a=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,v=this.commonProps,y=this.state.focusedOption,A=this.props,m=A.captureMenuScroll,B=A.inputValue,w=A.isLoading,k=A.loadingMessage,T=A.minMenuHeight,I=A.maxMenuHeight,H=A.menuIsOpen,G=A.menuPlacement,V=A.menuPosition,E=A.menuPortalTarget,L=A.menuShouldBlockScroll,D=A.menuShouldScrollIntoView,R=A.noOptionsMessage,_=A.onMenuScrollToTop,j=A.onMenuScrollToBottom;if(!H)return null;var Z=function(b,he){var te=b.type,Q=b.data,Ae=b.isDisabled,me=b.isSelected,Ve=b.label,ce=b.value,Ee=y===Q,be=Ae?void 0:function(){return r.onOptionHover(Q)},Te=Ae?void 0:function(){return r.selectOption(Q)},Pe="".concat(r.getElementId("option"),"-").concat(he),De={id:Pe,onClick:Te,onMouseMove:be,onMouseOver:be,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:me};return ye.createElement(p,oe({},v,{innerProps:De,data:Q,isDisabled:Ae,isSelected:me,key:Pe,label:Ve,type:te,value:ce,isFocused:Ee,innerRef:Ee?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(b.data,"menu"))},ue;if(this.hasOptions())ue=this.getCategorizedOptions().map(function(q){if(q.type==="group"){var b=q.data,he=q.options,te=q.index,Q="".concat(r.getElementId("group"),"-").concat(te),Ae="".concat(Q,"-heading");return ye.createElement(l,oe({},v,{key:Q,data:b,options:he,Heading:a,headingProps:{id:Ae,data:q.data},label:r.formatGroupLabel(q.data)}),q.options.map(function(me){return Z(me,"".concat(te,"-").concat(me.index))}))}else if(q.type==="option")return Z(q,"".concat(q.index))});else if(w){var pe=k({inputValue:B});if(pe===null)return null;ue=ye.createElement(d,v,pe)}else{var N=R({inputValue:B});if(N===null)return null;ue=ye.createElement(f,v,N)}var g={minMenuHeight:T,maxMenuHeight:I,menuPlacement:G,menuPosition:V,menuShouldScrollIntoView:D},se=ye.createElement(Af,oe({},v,g),function(q){var b=q.ref,he=q.placerProps,te=he.placement,Q=he.maxHeight;return ye.createElement(s,oe({},v,g,{innerRef:b,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:w,placement:te}),ye.createElement(Kg,{captureEnabled:m,onTopArrive:_,onBottomArrive:j,lockEnabled:L},function(Ae){return ye.createElement(u,oe({},v,{innerRef:function(Ve){r.getMenuListRef(Ve),Ae(Ve)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:r.getElementId("listbox")},isLoading:w,maxHeight:Q,focusedOption:y}),ue)}))});return E||V==="fixed"?ye.createElement(c,oe({},v,{appendTo:E,controlElement:this.controlRef,menuPlacement:G,menuPosition:V}),se):se}},{key:"renderFormField",value:function(){var r=this,o=this.props,l=o.delimiter,a=o.isDisabled,s=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!a)return ye.createElement(rh,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(s)if(l){var f=d.map(function(y){return r.getOptionValue(y)}).join(l);return ye.createElement("input",{name:u,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(y,A){return ye.createElement("input",{key:"i-".concat(A),name:u,type:"hidden",value:r.getOptionValue(y)})}):ye.createElement("input",{name:u,type:"hidden",value:""});return ye.createElement("div",null,p)}else{var v=d[0]?this.getOptionValue(d[0]):"";return ye.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,l=o.ariaSelection,a=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return ye.createElement(Hg,oe({},r,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:a,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,l=r.IndicatorsContainer,a=r.SelectContainer,s=r.ValueContainer,u=this.props,c=u.className,d=u.id,f=u.isDisabled,p=u.menuIsOpen,v=this.state.isFocused,y=this.commonProps=this.getCommonProps();return ye.createElement(a,oe({},y,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:v}),this.renderLiveRegion(),ye.createElement(o,oe({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:v,menuIsOpen:p}),ye.createElement(s,oe({},y,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),ye.createElement(l,oe({},y,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,a=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=r.options,v=r.value,y=r.menuIsOpen,A=r.inputValue,m=r.isMulti,B=kn(v),w={};if(l&&(v!==l.value||p!==l.options||y!==l.menuIsOpen||A!==l.inputValue)){var k=y?yh(r,B):[],T=y?Dl(Gn(r,B),"".concat(f,"-option")):[],I=a?vh(o,B):null,H=Ih(o,k),G=Ur(T,H);w={selectValue:B,focusedOption:H,focusedOptionId:G,focusableOptionsWithIds:T,focusedValue:I,clearFocusValueOnUpdate:!1}}var V=s!=null&&r!==l?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=u,L=c&&d;return c&&!L&&(E={value:$t(m,B,B[0]||null),options:B,action:"initial-input-focus"},L=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(E=null),ie(ie(ie({},w),V),{},{prevProps:r,ariaSelection:E,prevWasFocused:L})}}]),n}(C.Component);qr.defaultProps=bh;var Ch=C.forwardRef(function(e,t){var n=Jo(e);return ye.createElement(qr,oe({ref:t},n))}),Vn=Ch;const Ah=en,Nn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},Rl={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Zl(e){if(!e)return en;const t=typeof e=="function"?e(Nn):e,{colors:n,spacing:i,borderRadius:r}=Dn(Ah,t);return{borderRadius:r,colors:n,spacing:i}}function Dn(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const i of t)i&&(n.borderRadius=i.borderRadius??n.borderRadius,Object.assign(n.boxShadow,i.boxShadow),Object.assign(n.colors,i.colors),Object.assign(n.spacing,i.spacing));return n}const Sh=({...e})=>{const[t,n]=C.useState(!1),i={textDecoration:"underline",textUnderlineOffset:"3px",color:"inherit",transition:"opacity 0.2s ease",opacity:t?.7:1};return x.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"2px"},children:[x.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",style:i,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}),x.jsx("span",{style:{fontSize:"0.7em",opacity:.7},children:"↗"})]})};function jl(e){const{field:t,markdown:n}=e,{prop:i}=t,{getClassNames:r,getStyles:o,theme:l}=Oe(),a=C.useMemo(()=>({color:l.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"}),[l.colors.neutral50]),s=C.useMemo(()=>({a:Sh}),[]),u=e;return i.type==="app"?x.jsx("p",{className:r("description",u),style:o("description",a,u),children:"Credentials are encrypted."}):i.description?x.jsxs("div",{className:r("description",u),style:o("description",a,u),children:[" ",x.jsx(Lo,{components:s,children:n})]}):null}function Jl(e){const{field:t}=e,{enableDebugging:n,errors:i={},prop:r={}}=t;if(!n||!i[r.name])return null;const o=i[r.name].map(s=>({type:"alert",alertType:"error",content:s,name:r.name})),l={display:"grid",gridTemplateColumns:"max-content"},a=()=>x.jsx(x.Fragment,{children:o.map((s,u)=>x.jsx(yn,{prop:s},u))});return x.jsx("div",{className:"pd-errors",style:l,children:x.jsx(a,{})})}function Yl(e){const{text:t,field:n}=e,{id:i}=n,{getProps:r,theme:o}=Oe(),l={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return x.jsx("label",{htmlFor:i,...r("label",l,e),children:t})}const _l=e=>{const{onChange:t}=e,{getProps:n,theme:i}=Oe(),r={backgroundColor:i.colors.primary,borderRadius:i.borderRadius,border:"solid 1px",borderColor:i.colors.primary25,color:i.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return x.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",r,e),children:"Load More"})},Ul=e=>{const{prop:t,enabled:n,onClick:i}=e,{getProps:r,theme:o}=Oe(),l={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return x.jsxs("button",{onClick:i,type:"button",...r("optionalFieldButton",l,e),children:[x.jsx("span",{children:n?"-":"+"}),x.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},ql={Description:jl,Errors:Jl,Label:Yl,OptionalFieldButton:Ul,Button:_l},Ln=C.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:Nn,unstyled:!1});function wh(){const e=C.useContext(Ln)??{},t=Zl(e.theme??{});function n(){return e.classNamePrefix??""}function i(a){var c;const s=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a}`,u={...((c=e.classNames)==null?void 0:c[a])??{}};return typeof(u==null?void 0:u.container)=="function"&&(u.container=typeof(u==null?void 0:u.container)=="function"?(...d)=>{var f;return[(f=u==null?void 0:u.container)==null?void 0:f.call(u,...d),s].join(" ")}:()=>s),u}function r(a,s){var u;return{...Mt,...s??{},...((u=e==null?void 0:e.components)==null?void 0:u[a])??{}}}function o(a,s){var c;const u=(c=e.styles)==null?void 0:c[a];return dh(u??{},s??{})}function l(a,s){return{classNamePrefix:n(),classNames:i(a),components:r(a,s==null?void 0:s.components),styles:o(a,s==null?void 0:s.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:i,getComponents:r,getProps:l,getStyles:o,theme:t}}function Oe(){const e=C.useContext(Ln)??{},t=e.theme,n=e.unstyled?Rl:Nn,i=typeof t=="function"?Dn(n,t(n)):Dn(n,t);function r(s,u){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${s.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[s];if(typeof d=="function"){const p=d,v={...u??{},theme:i};return[c,p(v)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...ql,...(e==null?void 0:e.components)??{}}}function l(s,u,c){var f;const d=(f=e.styles)==null?void 0:f[s];if(typeof d=="function"){const p=d,v={...c??{},theme:i};return p(u,v)}return d?{...u,...d}:u}function a(s,u,c){return{className:r(s,c),style:l(s,u,c)}}return{getClassNames:r,getComponents:o,getProps:a,getStyles:l,select:wh(),theme:i}}const Eh=({children:e,...t})=>x.jsx(Ln.Provider,{value:t,children:e}),Qr=C.createContext(void 0),Ke=()=>{const e=C.useContext(Qr);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Ql=(e,t)=>{const n=at(),i={externalUserId:e.external_user_id,app:e.app,oauthAppId:e.oauth_app_id},r=rt.useQuery({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:async()=>(await n.accounts.list(i)).data});return{...r,accounts:r.data||[]}};function Mn(e){const t=e.neutral0??"#ffffff",n=e.neutral20??"hsl(0, 0%, 80%)",i=e.neutral60??"hsl(0, 0%, 40%)",r=e.neutral80??"hsl(0, 0%, 20%)",o=e.optionHover??e.neutral20??"hsl(0, 0%, 80%)",l=e.optionSelected??e.neutral30??"hsl(0, 0%, 70%)",a=e.optionSelectedHover??e.neutral40??"hsl(0, 0%, 60%)",s=e.appIconBackground??e.neutral0??"#ffffff";return{surface:t,border:n,text:i,textStrong:r,hoverBg:o,selectedBg:l,selectedHoverBg:a,appIconBg:s}}function zn(e){const{colors:{surface:t,border:n,text:i,textStrong:r,hoverBg:o,selectedBg:l,selectedHoverBg:a},boxShadow:s}=e;return{control:u=>({...u,backgroundColor:t,borderColor:n,color:i,boxShadow:s.input}),menu:u=>({...u,backgroundColor:t,boxShadow:s.dropdown}),menuList:u=>({...u,backgroundColor:t}),singleValue:u=>({...u,color:i,fontSize:"0.875rem"}),input:u=>({...u,color:i,fontSize:"0.875rem"}),option:(u,c)=>{let d=t;return c.isSelected&&c.isFocused?d=a:c.isSelected?d=l:c.isFocused&&(d=o),{...u,backgroundColor:d,color:r,fontSize:"0.875rem",":active":{...u[":active"],backgroundColor:c.isDisabled?void 0:a}}}}}const kh=e=>x.jsx(Mt.Option,{...e,children:e.data.name});function $l({app:e}){const t=at(),{externalUserId:n,oauthAppConfig:i}=qt(),r=Ke(),{id:o,prop:l,value:a,onChange:s}=r,{getProps:u,select:c,theme:d}=Oe(),f=C.useMemo(()=>Mn(d.colors),[d.colors]),p=C.useMemo(()=>zn({colors:{surface:f.surface,border:f.border,text:f.text,textStrong:f.textStrong,hoverBg:f.hoverBg,selectedBg:f.selectedBg,selectedHoverBg:f.selectedHoverBg},boxShadow:d.boxShadow}),[f,d.boxShadow]),v={color:d.colors.neutral60,gridArea:"control"},y={backgroundColor:d.colors.primary,borderRadius:d.borderRadius,border:"solid 1px",borderColor:d.colors.primary25,color:d.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},A={components:{Option:kh},styles:{...p,control:(E,L)=>{var D;return{...((D=p.control)==null?void 0:D.call(p,E,L))??E,gridArea:"control"}}}},m=c.getProps("controlAppSelect",A),B=i==null?void 0:i[e.nameSlug],{isLoading:w,accounts:k,refetch:T}=Ql({external_user_id:n,app:e.nameSlug,oauth_app_id:B},{useQueryOpts:{enabled:!!e,suspense:!!e}}),I=async()=>{t.connectAccount({app:l.app,oauthAppId:B,onSuccess:async E=>{await T(),s({authProvisionId:E.id})},onError:()=>{}})},H={id:"_new",name:`Connect new ${e.name} account...`},G=C.useMemo(()=>[...k,H],[k]),V=C.useMemo(()=>{if(a!=null&&a.authProvisionId){for(const E of k)if(a.authProvisionId===E.id)return E}return H},[k,a]);return x.jsx("div",{...u("controlApp",v,{app:e,...r}),children:w?`Loading ${e.name} accounts...`:k.length?x.jsx(Vn,{instanceId:o,value:V,options:G,...m,classNamePrefix:"react-select",required:!0,placeholder:`Select ${e.name} account...`,isLoading:w,isClearable:!0,isSearchable:!0,getOptionLabel:E=>E.name??"",getOptionValue:E=>E.id,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...m.styles,menuPortal:E=>({...E,zIndex:99999})},onChange:E=>{E?E.id==="_new"?I():s({authProvisionId:E.id}):s(void 0)}}):x.jsxs("button",{type:"button",...u("connectButton",y,{app:e,...r}),onClick:()=>I(),children:["Connect ",e.name]})})}const $r=e=>({color:e.colors.neutral80,backgroundColor:e.colors.neutral0,borderWidth:1,borderStyle:"solid",borderColor:e.colors.neutral20,padding:6,borderRadius:e.borderRadius,boxShadow:e.boxShadow.input,flex:1}),Hn=e=>({color:e.colors.neutral80,backgroundColor:"transparent",display:"inline-flex",alignItems:"center",padding:`${e.spacing.baseUnit}px ${e.spacing.baseUnit*1.5}px ${e.spacing.baseUnit}px ${e.spacing.baseUnit*2.5}px`,borderWidth:1,borderStyle:"solid",borderColor:e.colors.neutral30,borderRadius:e.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:e.spacing.baseUnit*2,textWrap:"nowrap"}),Kr=e=>({...Hn(e),flex:"0 0 auto",padding:"6px 8px"}),ei=()=>({gridArea:"control",display:"flex",flexDirection:"column",gap:"0.5rem"}),ti=()=>({display:"flex",gap:"0.5rem",alignItems:"center"});function Ph(){var H;const e=Ke(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Oe(),l=()=>{if(!i||!Array.isArray(i))return[""];const G=i.map(V=>typeof V=="string"?V:JSON.stringify(V));return G.length>0?G:[""]},[a,s]=C.useState(l),u=C.useRef(a);C.useEffect(()=>{u.current=a},[a]);const c=()=>Array.isArray(i)?i.map(G=>typeof G=="string"?G:JSON.stringify(G)).filter(G=>G.trim()!==""):[],d=G=>G.filter(V=>V.trim()!==""),f=(G,V)=>{if(G.length!==V.length)return!1;for(let E=0;E<G.length;E+=1)if(G[E]!==V[E])return!1;return!0};C.useEffect(()=>{const G=c(),V=d(u.current);f(V,G)||s(l())},[i]),C.useEffect(()=>{s(l())},[n.name]);const p=G=>{const V=G.filter(E=>E.trim()!=="");if(V.length===0){t(void 0);return}t(V)},v=(G,V)=>{const E=[...a];E[G]=V,s(E),p(E)},y=()=>{const G=[...a,""];s(G)},A=G=>{const V=a.filter((E,L)=>L!==G);s(V.length>0?V:[""]),p(V)},m=ei(),B=ti(),w=$r(o),k=Hn(o),T=Kr(o),I=((H=a[a.length-1])==null?void 0:H.trim())||a.length>1;return x.jsxs("div",{...r("controlArray",m,e),children:[a.map((G,V)=>x.jsxs("div",{style:B,children:[x.jsx("input",{type:"text",value:G,onChange:E=>v(V,E.target.value),placeholder:"",style:w,required:!n.optional&&V===0}),a.length>1&&x.jsx("button",{type:"button",onClick:()=>A(V),style:T,"aria-label":"Remove value",children:"×"})]},V)),I&&x.jsxs("button",{type:"button",onClick:y,style:{...k,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[x.jsx("span",{children:"+"}),x.jsx("span",{children:"Add more"})]})]})}function Kl(){const e=Ke(),{id:t,value:n,onChange:i}=e,{getProps:r}=Oe(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return x.jsx("input",{id:t,type:"checkbox",...r("controlBoolean",o,e),checked:n??!1,onChange:l=>i(l.target.checked)})}function ea(){const e=Ke(),{id:t,onChange:n,prop:i,value:r}=e,{getProps:o,theme:l}=Oe(),a={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input};let s="off",u="text",c=p=>p;switch(i.type){case"string":break;case"integer":u="number",c=p=>p?parseInt(p):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+i.type)}"secret"in i&&i.secret&&(u="password",s="new-password");const d=st(i,"integer")?i.min:void 0,f=st(i,"integer")?i.max:void 0;return x.jsx("input",{id:t,type:u,name:i.name,value:String(r??""),onChange:p=>n(c(p.target.value)),...o("controlInput",a,e),min:d,max:f,autoComplete:s,"data-lpignore":"true","data-1p-ignore":"true",required:!i.optional})}const Bh=["GET","POST","PUT","PATCH","DELETE"],Xn=e=>{const t=(e??[]).map(n=>({key:n.name??"",value:n.value??"",disabled:n.disabled}));return t.length>0?t:[{key:"",value:""}]},ta=e=>e.filter(t=>t.key.trim()!=="").map(t=>{const n={name:t.key,value:t.value};return t.disabled!==void 0&&(n.disabled=t.disabled),n}),Fh=[{value:"application/json",label:"JSON"},{value:"application/x-www-form-urlencoded",label:"Form URL Encoded"},{value:"text/plain",label:"Text"},{value:"none",label:"None"}];function na(){const e=Ke(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Oe(),l=()=>{if("default"in n&&n.default&&typeof n.default=="object")return n.default},a=()=>{const N=i,g=l();return Xn((N==null?void 0:N.headers)??(g==null?void 0:g.headers))},s=()=>{const N=i,g=l();return Xn((N==null?void 0:N.params)??(g==null?void 0:g.params))},u=()=>{var se,q;const N=i,g=l();return((se=N==null?void 0:N.body)==null?void 0:se.raw)??((q=g==null?void 0:g.body)==null?void 0:q.raw)??""},c=()=>{var se,q;const N=i,g=l();return((se=N==null?void 0:N.body)==null?void 0:se.contentType)??((q=g==null?void 0:g.body)==null?void 0:q.contentType)??"application/json"},d=()=>{const N=i,g=l();return{url:(N==null?void 0:N.url)??(g==null?void 0:g.url)??"",method:(N==null?void 0:N.method)??(g==null?void 0:g.method)??"GET",headers:a(),params:s(),body:u(),bodyContentType:c()}},[f,p]=C.useState(d);C.useEffect(()=>{var b,he,te,Q;const N=i,g=l(),se=Xn((N==null?void 0:N.headers)??(g==null?void 0:g.headers)),q=Xn((N==null?void 0:N.params)??(g==null?void 0:g.params));p({url:(N==null?void 0:N.url)??(g==null?void 0:g.url)??"",method:(N==null?void 0:N.method)??(g==null?void 0:g.method)??"GET",headers:se,params:q,body:((b=N==null?void 0:N.body)==null?void 0:b.raw)??((he=g==null?void 0:g.body)==null?void 0:he.raw)??"",bodyContentType:((te=N==null?void 0:N.body)==null?void 0:te.contentType)??((Q=g==null?void 0:g.body)==null?void 0:Q.contentType)??"application/json"})},[i]);const v=N=>{const g=ta(N.headers),se=ta(N.params),q={contentType:N.bodyContentType,type:"raw",mode:"raw"};return N.bodyContentType!=="none"&&N.body.trim()&&(q.raw=N.body),{url:N.url,method:N.method,headers:g,params:se,body:q}},y=N=>{const g={...f,url:N};p(g),t(v(g))},A=N=>{const g={...f,method:N};p(g),t(v(g))},m=(N,g,se)=>{const q=[...f.headers];q[N]={...q[N],[g]:se};const b={...f,headers:q};p(b),t(v(b))},B=()=>{const N=[...f.headers,{key:"",value:""}];p({...f,headers:N})},w=N=>{const g=f.headers.filter((b,he)=>he!==N),se=g.length>0?g:[{key:"",value:""}],q={...f,headers:se};p(q),t(v(q))},k=N=>{const g={...f,bodyContentType:N};p(g),t(v(g))},T=N=>{const g={...f,body:N};p(g),t(v(g))},I=ei(),H=ti(),G=$r(o),V=Hn(o),E=Kr(o),L={display:"flex",flexDirection:"column",gap:`${o.spacing.baseUnit}px`},D={fontSize:"0.75rem",fontWeight:500,color:o.colors.neutral70},R={...G,cursor:"pointer"},_={...G,cursor:"pointer",flex:"none",width:"85px",borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:0},j={...G,borderTopLeftRadius:0,borderBottomLeftRadius:0,flex:1},Z={...G,resize:"vertical",minHeight:"80px",fontFamily:"monospace"},ue={display:"flex",alignItems:"stretch"},pe=`http-request-${n.name}`;return x.jsxs("div",{...r("controlHttpRequest",I,e),children:[x.jsxs("div",{style:L,children:[x.jsx("span",{style:D,children:"URL"}),x.jsxs("div",{style:ue,children:[x.jsx("select",{value:f.method,onChange:N=>A(N.target.value),style:_,"aria-label":"HTTP method",children:Bh.map(N=>x.jsx("option",{value:N,children:N},N))}),x.jsx("input",{type:"text",value:f.url,onChange:N=>y(N.target.value),placeholder:"https://api.example.com/endpoint",style:j,required:!n.optional,"aria-label":"URL"})]})]}),x.jsxs("div",{style:L,children:[x.jsx("span",{style:D,children:"Headers"}),f.headers.map((N,g)=>x.jsxs("div",{style:H,children:[x.jsx("input",{type:"text",value:N.key,onChange:se=>m(g,"key",se.target.value),placeholder:"Header name",style:G,"aria-label":`Header ${g+1} name`}),x.jsx("input",{type:"text",value:N.value,onChange:se=>m(g,"value",se.target.value),placeholder:"Header value",style:G,"aria-label":`Header ${g+1} value`}),f.headers.length>1&&x.jsx("button",{type:"button",onClick:()=>w(g),style:E,"aria-label":`Remove header ${g+1}`,children:"x"})]},g)),x.jsxs("button",{type:"button",onClick:B,style:{...V,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[x.jsx("span",{children:"+"}),x.jsx("span",{children:"Add header"})]})]}),x.jsxs("div",{style:L,children:[x.jsx("label",{htmlFor:`${pe}-body-type`,style:D,children:"Body"}),x.jsx("select",{id:`${pe}-body-type`,value:f.bodyContentType,onChange:N=>k(N.target.value),style:R,children:Fh.map(N=>x.jsx("option",{value:N.value,children:N.label},N.value))}),f.bodyContentType!=="none"&&x.jsx("textarea",{value:f.body,onChange:N=>T(N.target.value),placeholder:f.bodyContentType==="application/json"?'{"key": "value"}':"Request body",style:Z,rows:4,"aria-label":"Request body"})]})]})}function Th(){const e=Ke(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Oe(),l=w=>{if(w===null||typeof w!="object"||w instanceof Date||w instanceof Function||w instanceof RegExp)return!1;const k=Object.getPrototypeOf(w);return k===Object.prototype||k===null},a=()=>{if(!i||typeof i!="object"||Array.isArray(i))return[{key:"",value:""}];if(!l(i))return[{key:"",value:""}];const w=Object.entries(i).map(([k,T])=>({key:k,value:typeof T=="string"?T:(()=>{try{return JSON.stringify(T)}catch{return String(T)}})()}));return w.length>0?w:[{key:"",value:""}]},[s,u]=C.useState(a);C.useEffect(()=>{if(!i||typeof i!="object"||Array.isArray(i)){u([{key:"",value:""}]);return}if(!l(i)){u([{key:"",value:""}]);return}const w=Object.entries(i).map(([k,T])=>({key:k,value:typeof T=="string"?T:(()=>{try{return JSON.stringify(T)}catch{return String(T)}})()}));u(w.length>0?w:[{key:"",value:""}])},[i]);const c=w=>{const k=w.filter(I=>I.key.trim()!=="");if(k.length===0){t(void 0);return}const T={};k.forEach(I=>{if(I.key.trim())try{T[I.key]=JSON.parse(I.value)}catch{T[I.key]=I.value}}),t(T)},d=(w,k,T)=>{const I=[...s];I[w]={...I[w],[k]:T},u(I),c(I)},f=()=>{const w=[...s,{key:"",value:""}];u(w)},p=w=>{const k=s.filter((T,I)=>I!==w);u(k.length>0?k:[{key:"",value:""}]),c(k)},v=ei(),y=ti(),A=$r(o),m=Hn(o),B=Kr(o);return x.jsxs("div",{...r("controlObject",v,e),children:[s.map((w,k)=>x.jsxs("div",{style:y,children:[x.jsx("input",{type:"text",value:w.key,onChange:T=>d(k,"key",T.target.value),placeholder:"Key",style:A,required:!n.optional&&k===0}),x.jsx("input",{type:"text",value:w.value,onChange:T=>d(k,"value",T.target.value),placeholder:"Value",style:A}),s.length>1&&x.jsx("button",{type:"button",onClick:()=>p(k),style:B,"aria-label":"Remove pair",children:"×"})]},k)),x.jsxs("button",{type:"button",onClick:f,style:{...m,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[x.jsx("span",{children:"+"}),x.jsx("span",{children:"Add more"})]})]})}var Gh=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ra=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=String(t).toLowerCase(),o=String(i.getOptionValue(n)).toLowerCase(),l=String(i.getOptionLabel(n)).toLowerCase();return o===r||l===r},ni={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,i,r){return!(!t||n.some(function(o){return ra(t,o,r)})||i.some(function(o){return ra(t,o,r)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Oh(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,i=e.createOptionPosition,r=i===void 0?"last":i,o=e.formatCreateLabel,l=o===void 0?ni.formatCreateLabel:o,a=e.isValidNewOption,s=a===void 0?ni.isValidNewOption:a,u=e.getNewOptionData,c=u===void 0?ni.getNewOptionData:u,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,v=e.onChange,y=ut(e,Gh),A=y.getOptionValue,m=A===void 0?Gl:A,B=y.getOptionLabel,w=B===void 0?Tl:B,k=y.inputValue,T=y.isLoading,I=y.isMulti,H=y.value,G=y.name,V=C.useMemo(function(){return s(k,kn(H),p,{getOptionValue:m,getOptionLabel:w})?c(k,l(k)):void 0},[l,c,w,m,k,s,p,H]),E=C.useMemo(function(){return(n||!T)&&V?r==="first"?[V].concat(Lt(p)):[].concat(Lt(p),[V]):p},[n,r,T,V,p]),L=C.useCallback(function(D,R){if(R.action!=="select-option")return v(D,R);var _=Array.isArray(D)?D:[D];if(_[_.length-1]===V){if(d)d(k);else{var j=c(k,k),Z={action:"create-option",name:G,option:j};v($t(I,[].concat(Lt(kn(H)),[j]),j),Z)}return}v(D,R)},[c,k,I,G,V,d,v,H]);return ie(ie({},y),{},{options:E,onChange:L})}var Vh=C.forwardRef(function(e,t){var n=Jo(e),i=Oh(n);return ye.createElement(qr,oe({ref:t},i))}),Nh=Vh;function Wn({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:i,onLoadMore:r,components:o}){const l=Ke(),{id:a,prop:s,value:u,onChange:c}=l,{select:d,theme:f}=Oe(),p=C.useMemo(()=>Mn(f.colors),[f.colors]),v=C.useMemo(()=>zn({colors:{surface:p.surface,border:p.border,text:p.text,textStrong:p.textStrong,hoverBg:p.hoverBg,selectedBg:p.selectedBg,selectedHoverBg:p.selectedHoverBg},boxShadow:f.boxShadow}),[p,f.boxShadow]),[y,A]=C.useState(t),[m,B]=C.useState(u);C.useEffect(()=>{const R=t.map(Le);A(R)},[t]),C.useEffect(()=>{B(u)},[u]);const w=C.useMemo(()=>{if(m==null)return null;if(Or(m)){const R=m.__lv;return Array.isArray(R)?R.map(_=>Le(_)):Le(R)}if(Xo(m))return m.map(R=>Le(R));if(Array.isArray(m)){if(!Gr(m[0]))return m.map(R=>y.find(_=>_.value===R)||Le(R))}else if(!Gr(m))if((y==null?void 0:y[0])&&Gr(y[0])){for(const _ of y)if(_.value===m)return _}else return Le(m);return null},[m,y]),k=d.getProps("controlSelect",{styles:v}),T=C.useRef(r);C.useEffect(()=>{T.current=r},[r]);const I=C.useRef(i);I.current=i;const H=C.useMemo(()=>{const R={...k.components??{},...o??{}},_=R.MenuList??Mt.MenuList,j=({children:Z,...ue})=>x.jsxs(_,{...ue,children:[Z,I.current&&x.jsx("div",{className:"pt-4",children:x.jsx(_l,{onChange:()=>{var pe;return(pe=T.current)==null?void 0:pe.call(T)}})})]});return j.displayName="CustomMenuList",{...R,MenuList:j}},[o,k.components]),G=R=>{const _=Le(R);let j=_;const Z=y.map(Le),ue=[_,...Z];A(ue),s.type.endsWith("[]")&&(Array.isArray(m)?j=[...m.map(Le),_]:j=[_]),B(j),V(j)},V=R=>{if(R)if(Array.isArray(R))typeof R[0]=="object"&&R[0]&&"value"in R[0]?c({__lv:R}):c(R);else if(typeof R=="object"&&R&&"value"in R)c({__lv:R});else throw new Error("unhandled option type");else c(void 0)},E={onCreateOption:s.remoteOptions?G:void 0},L=e?Nh:Vn,D=y.map(Le);return x.jsx(L,{inputId:a,instanceId:a,options:D,value:w,isMulti:s.type.endsWith("[]"),isClearable:!0,required:!s.optional,getOptionLabel:R=>Le(R).label,getOptionValue:R=>String(Le(R).value),onChange:V,classNamePrefix:k.classNamePrefix||"react-select",classNames:k.classNames,theme:k.theme,...n,...E,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...k.styles,...(n==null?void 0:n.styles)??{},container:R=>({...R,gridArea:"control"}),menuPortal:R=>({...R,zIndex:99999})},components:H})}const Dh=e=>typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string";function ia(){var d;const e=Ke(),{id:t,onChange:n,prop:i,value:r}=e;if(!st(i,"sql"))throw new Error("ControlSql used with non-sql prop");const{getProps:o,theme:l}=Oe(),a=((d=i.auth)==null?void 0:d.app)||"postgresql";let s="";Dh(r)?s=r.query:typeof r=="string"&&(s=r);const u=f=>{n({app:a,query:f,params:[]})},c={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input,fontSize:"0.875rem",fontFamily:"monospace",minHeight:"120px",resize:"vertical"};return x.jsx("textarea",{id:t,name:i.name,value:s,onChange:f=>u(f.target.value),placeholder:"SELECT * FROM table_name",required:!i.optional,...o("controlSql",c,e)})}const ri=e=>Le(e).value??null;function oa({queryEnabled:e}){const t=at(),{externalUserId:n,component:i,configurableProps:r,configuredProps:o,dynamicProps:l,props:{disableQueryDisabling:a}}=qt(),{idx:s,prop:u,onChange:c}=Ke(),[d,f]=C.useState(""),[p,v]=C.useState(0),[y,A]=C.useState(void 0),[m,B]=C.useState(void 0),[w,k]=C.useState(!0),[T,I]=C.useState([]),[H,G]=C.useState(new Set),V=C.useMemo(()=>{const ce={};for(let Ee=0;Ee<s;Ee++){const be=r[Ee];ce[be.name]=o[be.name]}return ce},[s,r,o]),E=C.useMemo(()=>{const ce=r.find(Ee=>Ee.type==="app");return ce?o[ce.name]:void 0},[r,o]),L=C.useMemo(()=>{const ce={externalUserId:n,page:p,prevContext:y,id:i.key,propName:u.name,configuredProps:V,dynamicPropsId:l==null?void 0:l.id};return u.useQuery&&(ce.query=d||""),ce},[n,p,y,i.key,u.name,u.useQuery,V,l==null?void 0:l.id,d]),D=C.useMemo(()=>L,[L]),[R,_]=C.useState(),j=()=>{v(ce=>ce+1),A(m)},Z=JSON.stringify(D),ue=JSON.stringify(E),pe=C.useRef(),N=C.useRef(),g=C.useMemo(()=>{const{page:ce,prevContext:Ee,...be}=L;return JSON.stringify(be)},[L]),se=C.useMemo(()=>r.some(ce=>ce.type==="app"),[r]),q=C.useMemo(()=>!(!e||se&&!E),[e,se,E]),{data:b,isFetching:he,refetch:te,dataUpdatedAt:Q}=rt.useQuery({queryKey:["componentConfigure",D],queryFn:async()=>{const ce=await t.components.configureProp(L),{options:Ee,stringOptions:be,errors:Te}=ce;if(Te!=null&&Te.length){let de;try{de=JSON.parse(Te[0])}catch{de={name:"Error",message:Te[0]}}return{error:de,options:[],context:ce.context}}const Pe=(be==null?void 0:be.map(de=>({label:de,value:de})))??[];return{error:void 0,options:[...Ee??[],...Pe],context:ce.context}},enabled:q});C.useEffect(()=>{if(!b)return;if(b.error){_(b.error);return}_(void 0),B(b.context);const ce=p===0;let Ee=!1;G(be=>{const Te=ce?new Set:be,Pe=new Set(Te);for(const De of b.options){const de=ri(De);if(de===null){console.warn("Skipping invalid option:",De);continue}Pe.has(de)||(Pe.add(de),Ee=!0)}return Pe}),I(be=>{const Te=ce?[]:be,Pe=[],De=new Set;if(!ce)for(const de of Te){const Re=ri(de);Re!==null&&De.add(Re)}for(const de of b.options){const Re=ri(de);Re!==null&&(De.has(Re)||(De.add(Re),Pe.push(de)))}return Pe.length?[...Te,...Pe]:be}),Ee||k(!1)},[b,p,Q,Z]),C.useEffect(()=>{if(!pe.current){pe.current=g;return}pe.current!==g&&(v(0),A(void 0),B(void 0),k(!0),I([]),G(new Set)),pe.current=g},[g]),C.useEffect(()=>{N.current&&N.current!==ue&&(c(void 0),E!=null&&q&&te()),N.current=ue},[ue,c,q,E,te]);const Ae=C.useMemo(()=>!he&&!R&&w,[he,R,w]),me=R?R.message:a?"Click to configure":q?void 0:"Configure props above first",Ve=a?!1:!q;return x.jsx(Wn,{isCreatable:!0,showLoadMoreButton:Ae,onLoadMore:j,options:T.map(Le),selectProps:{isLoading:he,placeholder:me,isDisabled:Ve,inputValue:u.useQuery?d:void 0,onInputChange(ce){u.useQuery&&(f(ce),te())},onMenuOpen(){a&&!q&&te()}}})}function la(e){const{field:t,form:n}=e,{queryDisabledIdx:i}=n,{prop:r,idx:o}=t,l="app"in t.extra?t.extra.app:void 0;if(r.remoteOptions||r.type==="$.discord.channel"||r.type==="$.discord.channel[]")return x.jsx(oa,{queryEnabled:i==null||i>=o});if("options"in r&&Array.isArray(r.options)&&r.options.length>0){const a=r.options.map(Le);return x.jsx(Wn,{options:a,components:{IndicatorSeparator:()=>null}})}if(r.type.endsWith("[][]"))throw new Error("Unsupported property type: "+r.type);if(r.type.endsWith("[]"))return!("options"in r)||!r.options?x.jsx(Ph,{}):x.jsx(Wn,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(r.type){case"app":return x.jsx($l,{app:l});case"boolean":return x.jsx(Kl,{});case"string":case"integer":return x.jsx(ea,{});case"object":return x.jsx(Th,{});case"sql":return x.jsx(ia,{});case"http_request":return x.jsx(na,{});default:throw new Error("Unsupported property type: "+r.type)}}function aa(e){const{form:t,field:n}=e,{prop:i}=n,{getProps:r,getComponents:o}=Oe(),l={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:a,Description:s,Errors:u}=o(),c="app"in n.extra?n.extra.app:void 0;if(c&&!c.authType)return null;let d=i.label||i.name;c&&(d=`Connect ${c.name} account`);const f=e;return x.jsxs("div",{...r("field",l,f),children:[x.jsx(a,{text:d,field:n,form:t}),x.jsx(la,{field:n,form:t}),x.jsx(s,{markdown:i.description,field:n,form:t}),x.jsx(u,{field:n,form:t})]})}const sa=(e,t)=>{var r;const n=at(),i=rt.useQuery({queryKey:["app",e],queryFn:()=>n.apps.retrieve(e),...t==null?void 0:t.useQueryOpts});return{...i,app:(r=i.data)==null?void 0:r.data}};function ua({prop:e,idx:t}){const n=qt(),{id:i,configuredProps:r,registerField:o,setConfiguredProp:l,errors:a,enableDebugging:s}=n;let u;st(e,"app")&&(u=e.app);const{app:c}=sa(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),d=`pd${i}${e.name}`,f=C.useCallback(v=>{l(t,v)},[t,e.name,l]),p={id:d,prop:e,idx:t,value:r[e.name],onChange:f,extra:{app:c},errors:a,enableDebugging:s};return C.useEffect(()=>{o(p)},[e.name,o]),x.jsx(Qr.Provider,{value:p,children:x.jsx(aa,{field:p,form:n})})}class ca extends C.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function da(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:i}=t,{getProps:r,theme:o}=Oe(),l=a=>{var s;return{width:"fit-content",textTransform:"capitalize",backgroundColor:a?o.colors.neutral10:o.colors.primary,color:a?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(s=o.boxShadow)==null?void 0:s.button,cursor:"pointer",fontSize:"0.875rem",opacity:i?.5:void 0,margin:"0.5rem 0 0 0"}};return x.jsx("input",{type:"submit",value:i?"Submitting...":"Submit",...r("controlSubmit",l(!!n.length||i),e),disabled:!!n.length||i})}const Lh=["ConfigurationError"];function pa(){const e=qt(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:i,optionalPropIsEnabled:r,optionalPropSetEnabled:o,props:l,setSubmitting:a,sdkErrors:s,submitting:u,enableDebugging:c}=e,d=c||s.filter(E=>Lh.includes(E.name)).length>0,{hideOptionalProps:f,onSubmit:p}=l,[v,y]=C.useState([]);C.useEffect(()=>{u?y([]):s&&s.length&&y(s.map(E=>({type:"alert",alertType:"error",content:`# ${E.name}
|
|
21
|
-
${E.message}`,name:E.name})))},[s,u]);const{getComponents:A,getProps:m,theme:B}=Oe(),{OptionalFieldButton:w}=A(),k={display:"flex",flexDirection:"column",gap:"1.5rem"},T={display:"flex",flexWrap:"wrap",gap:"0.375rem"},I={fontWeight:600,textTransform:"capitalize",color:B.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},H=async E=>{if(p&&(E.preventDefault(),i)){a(!0);try{await p(e)}finally{a(!1)}}},G=[],V=[];for(let E=0;E<t.length;E++){const L=t[E];if(!L.hidden&&!Ut.includes(L.type)){if(L.optional){const D=r(L);if(V.push([L,D]),!D)continue}G.push([L,E])}}return x.jsx(ca,{fallback:E=>x.jsxs("p",{style:{color:"red"},children:["Error: ",E&&typeof E=="object"&&"message"in E&&typeof E.message=="string"?E.message:"Unknown"]}),children:x.jsx(C.Suspense,{fallback:x.jsx("p",{children:"Loading form..."}),children:x.jsxs("form",{...m("componentForm",k,l),onSubmit:H,children:[G.map(([E,L])=>st(E,"alert")?x.jsx(yn,{prop:E},E.name):x.jsx(ua,{prop:E,idx:L},E.name)),n&&x.jsx("p",{children:"Loading dynamic props..."}),!f&&V.length?x.jsxs("div",{children:[x.jsx("div",{...m("heading",I,l),children:"Optional Props"}),x.jsx("div",{...m("optionalFields",T,l),children:V.map(([E,L])=>x.jsx(w,{prop:E,enabled:L,onClick:()=>o(E,!L)},E.name))})]}):null,d&&(v==null?void 0:v.map((E,L)=>x.jsx(yn,{prop:E},L))),p&&x.jsx(da,{form:e})]})})})}function fa(e){return x.jsx(Wo,{props:e,children:x.jsx(pa,{})})}const ga=({key:e},t)=>{var r;const n=at(),i=rt.useQuery({queryKey:["component",e],queryFn:()=>n.components.retrieve(e),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...i,component:(r=i.data)==null?void 0:r.data}};function Mh(e){const{isLoading:t,error:n,component:i}=ga({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?x.jsx("p",{children:"Loading..."}):n?x.jsxs("p",{children:["Error: ",n.message]}):i?x.jsx(fa,{component:i,...e}):x.jsx("p",{children:"Component not found"})}function zh(){const e=Ke(),{id:t,onChange:n,value:i}=e,{getProps:r,theme:o}=Oe(),l={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let a=i;return typeof a=="object"&&(a=JSON.stringify(a)),x.jsx("textarea",{id:t,value:a,onChange:s=>n(s.target.value),...r("controlAny",l,e)})}const ha=e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.hasNextPage=="function"&&typeof t.getNextPage=="function"},ma=e=>{const t=Object.getPrototypeOf(e);return Object.assign(Object.create(t??Object.prototype),e)};function Hh(){const e=C.useRef(!1);return C.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ba(){const[e,t]=C.useState([]),[n,i]=C.useState(!1),[r,o]=C.useState(!1),[l,a]=C.useState(),s=C.useRef(null),u=C.useRef(),c=Hh(),d=C.useCallback((p,v)=>{var B;const y=ma(p),A=(((B=u.current)==null?void 0:B.version)??0)+1;u.current={version:A},s.current=y;const m=y.data?y.data.slice():[];t(m),i(y.hasNextPage()),o(!1),a(void 0)},[]),f=C.useCallback(async()=>{var A,m,B;const p=u.current,v=s.current;if(!p||!v||!n||r)return;const y=p.version;o(!0);try{const w=await v.getNextPage();if(!c.current||y!==(((A=u.current)==null?void 0:A.version)??0))return;const k=ma(w);s.current=k,t(T=>!k.data||k.data.length===0?T:T.concat(k.data)),i(k.hasNextPage()),a(void 0)}catch(w){if(!c.current||y!==(((m=u.current)==null?void 0:m.version)??0))return;a(w instanceof Error?w:new Error(String(w)))}finally{c.current&&y===(((B=u.current)==null?void 0:B.version)??0)&&o(!1)}},[n,r,c]);return{items:e,hasMore:n,isLoadingMore:r,loadMoreError:l,loadMore:f,resetWithPage:d}}const ya=e=>{const t=at(),{items:n,hasMore:i,isLoadingMore:r,loadMore:o,loadMoreError:l,resetWithPage:a}=ba(),s=C.useRef(),u=rt.useQuery({queryKey:["apps",e],queryFn:()=>t.apps.list({limit:50,...e})});return C.useEffect(()=>{const c=JSON.stringify(e??null),d=s.current!==u.data;!u.data||!ha(u.data)||!d||(s.current=u.data,a(u.data,c))},[u.data,e,a]),{...u,apps:n,isLoadingMore:r,hasMore:i,loadMore:o,loadMoreError:l}};function Xh({value:e,onChange:t,appsOptions:n}){const[i,r]=C.useState(""),[o,l]=C.useState(""),a=C.useId();C.useEffect(()=>{const E=setTimeout(()=>{l(i)},300);return()=>clearTimeout(E)},[i]);const{isLoading:s,isLoadingMore:u,hasMore:c,loadMore:d,apps:f}=ya({...n??{},q:o}),{Option:p,SingleValue:v,MenuList:y}=Mt,{select:A,theme:m}=Oe(),B=C.useRef(u);B.current=u;const w=C.useMemo(()=>(f==null?void 0:f.find(E=>E.nameSlug===(e==null?void 0:e.nameSlug)))||(e!=null&&e.nameSlug?e:null),[f,e==null?void 0:e.nameSlug]),k=C.useCallback(()=>{c&&!u&&d()},[c,u,d]),T=C.useMemo(()=>Mn(m.colors),[m.colors]),H={styles:C.useMemo(()=>zn({colors:{surface:T.surface,border:T.border,text:T.text,textStrong:T.textStrong,hoverBg:T.hoverBg,selectedBg:T.selectedBg,selectedHoverBg:T.selectedHoverBg},boxShadow:m.boxShadow}),[T,m.boxShadow])},G=A.getProps("selectApp",H),V=C.useMemo(()=>({Option:E=>x.jsx(p,{...E,children:x.jsxs("div",{style:{display:"flex",gap:10},children:[x.jsx("img",{src:`https://pipedream.com/s.v0/${E.data.id}/logo/48`,style:{height:24,width:24,backgroundColor:T.appIconBg,borderRadius:6,padding:2},alt:E.data.name}),x.jsx("span",{style:{whiteSpace:"nowrap"},children:E.data.name})]})}),SingleValue:E=>x.jsx(v,{...E,children:x.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[x.jsx("img",{src:`https://pipedream.com/s.v0/${E.data.id}/logo/48`,style:{height:24,width:24,backgroundColor:T.appIconBg,borderRadius:6,padding:2},alt:E.data.name}),x.jsx("span",{style:{whiteSpace:"nowrap"},children:E.data.name})]})}),MenuList:E=>x.jsxs(y,{...E,children:[E.children,B.current&&x.jsx("div",{style:{padding:"8px 12px",textAlign:"center",color:"#666",fontSize:"14px"},children:"Loading more apps..."})]}),IndicatorSeparator:()=>null}),[p,v,y,T.appIconBg]);return x.jsx(Vn,{instanceId:a,className:"react-select-container text-sm",...G,classNamePrefix:"react-select",components:{...G.components,...V},options:f||[],getOptionLabel:E=>E.name||E.nameSlug,getOptionValue:E=>E.nameSlug,value:w,onChange:E=>t==null?void 0:t(E||void 0),onInputChange:(E,{action:L})=>{L==="input-change"&&r(E)},onMenuScrollToBottom:k,isLoading:s,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...G.styles??{},menuPortal:E=>({...E,zIndex:99999})}})}const va=e=>{const t=at(),{items:n,hasMore:i,isLoadingMore:r,loadMore:o,loadMoreError:l,resetWithPage:a}=ba(),s=C.useRef(),u=rt.useQuery({queryKey:["components",e],queryFn:()=>t.components.list({limit:50,...e})});return C.useEffect(()=>{const c=JSON.stringify(e??null),d=s.current!==u.data;!u.data||!ha(u.data)||!d||(s.current=u.data,a(u.data,c))},[u.data,e,a]),{...u,components:n,isLoadingMore:r,hasMore:i,loadMore:o,loadMoreError:l}};function Wh({app:e,componentType:t,value:n,onChange:i,componentsOptions:r}){const o=C.useId(),{isLoading:l,isLoadingMore:a,hasMore:s,loadMore:u,components:c}=va({...r??{},app:e==null?void 0:e.nameSlug,componentType:t}),{MenuList:d}=Mt,{select:f,theme:p}=Oe(),v=C.useMemo(()=>Mn(p.colors),[p.colors]),y=C.useMemo(()=>zn({colors:{surface:v.surface,border:v.border,text:v.text,textStrong:v.textStrong,hoverBg:v.hoverBg,selectedBg:v.selectedBg,selectedHoverBg:v.selectedHoverBg},boxShadow:p.boxShadow}),[v,p.boxShadow]),A=C.useRef(a);A.current=a;const m=C.useMemo(()=>(c==null?void 0:c.find(I=>I.key===(n==null?void 0:n.key)))||null,[c,n==null?void 0:n.key]),B=C.useCallback(()=>{s&&!a&&u()},[s,a,u]),w={styles:y},k=f.getProps("selectComponent",w),T=C.useMemo(()=>({MenuList:I=>x.jsxs(d,{...I,children:[I.children,A.current&&x.jsxs("div",{style:{padding:"8px 12px",textAlign:"center",color:"#666",fontSize:"14px"},children:["Loading more ",t==="action"?"actions":"triggers","..."]})]}),IndicatorSeparator:()=>null}),[t,d]);return x.jsx(Vn,{instanceId:o,className:"react-select-container text-sm",...k,classNamePrefix:"react-select",options:c,getOptionLabel:I=>I.name||I.key,getOptionValue:I=>I.key,value:m,onChange:I=>i==null?void 0:i(I||void 0),onMenuScrollToBottom:B,isLoading:l,components:{...k.components,...T},menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...k.styles??{},menuPortal:I=>({...I,zIndex:99999})}})}const Rh=()=>x.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[x.jsx("title",{children:"Folder"}),x.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z",fill:"#93c5fd",stroke:"#3b82f6"})]}),Zh=()=>x.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[x.jsx("title",{children:"File"}),x.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",fill:"#f3f4f6",stroke:"#9ca3af"}),x.jsx("polyline",{points:"14 2 14 8 20 8",fill:"#e5e7eb",stroke:"#9ca3af"})]}),jh=e=>{if(e==null)return"";if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB","PB"],i=Math.min(Math.floor(Math.log(e)/Math.log(t)),n.length-1);return`${parseFloat((e/Math.pow(t,i)).toFixed(1))} ${n[i]}`},Jh=e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):"",Yh={folder:x.jsx(Rh,{}),file:x.jsx(Zh,{})},_h=(e,t)=>({container:{display:"flex",flexDirection:"column",backgroundColor:e.colors.neutral0,borderRadius:"8px",overflow:"hidden",border:`1px solid ${e.colors.neutral20}`,height:"100%",minHeight:"300px"},header:{padding:"12px 16px",borderBottom:`1px solid ${e.colors.neutral10}`,display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},breadcrumb:{display:"flex",alignItems:"center",gap:"4px",fontSize:"13px"},breadcrumbItem:{color:e.colors.primary,cursor:"pointer",padding:"2px 4px",borderRadius:"4px"},breadcrumbSeparator:{color:e.colors.neutral40},list:{flex:1,overflowY:"auto",listStyle:"none",margin:0,padding:0},item:{display:"flex",alignItems:"center",padding:"10px 16px",cursor:"pointer",borderBottom:`1px solid ${e.colors.neutral10}`,transition:"background-color 0.1s"},itemIcon:{marginRight:"10px",fontSize:"16px",display:"flex",alignItems:"center"},itemName:{flex:1,fontSize:"14px",color:e.colors.neutral80},checkbox:{marginRight:"10px",width:"16px",height:"16px",cursor:"pointer",accentColor:e.colors.primary},chevron:{color:e.colors.neutral30,marginLeft:"8px"},footer:{padding:"12px 16px",borderTop:`1px solid ${e.colors.neutral10}`,display:"flex",justifyContent:"space-between",alignItems:"center"},selectionCount:{fontSize:"13px",color:e.colors.neutral60},buttonGroup:{display:"flex",gap:"8px"},buttonBase:{padding:"8px 16px",fontSize:"14px",borderRadius:"6px",cursor:"pointer",border:"none",transition:"background-color 0.15s, opacity 0.15s"},cancelButton:{padding:"8px 16px",fontSize:"14px",borderRadius:"6px",cursor:"pointer",border:"none",transition:"background-color 0.15s, opacity 0.15s",backgroundColor:e.colors.neutral10,color:e.colors.neutral80},confirmButton:{padding:"8px 16px",fontSize:"14px",borderRadius:"6px",cursor:"pointer",border:"none",transition:"background-color 0.15s, opacity 0.15s",backgroundColor:e.colors.primary,color:"#fff",opacity:t===0?.5:1},loading:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.neutral40,fontSize:"14px"},error:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.danger||"#dc2626",fontSize:"14px",padding:"20px",textAlign:"center"},empty:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.neutral40,fontSize:"14px"}}),Uh=150,Ia={sharepoint:{app:"sharepoint",appPropName:"sharepoint",propHierarchy:["siteId","driveId","fileOrFolderIds"],propLabels:{siteId:"Sites",driveId:"Drives",fileOrFolderIds:"Files & Folders"},fileOrFolderProp:"fileOrFolderIds",folderProp:"folderId"},sharepoint_admin:{app:"sharepoint_admin",appPropName:"sharepointAdmin",propHierarchy:["siteId","driveId","fileOrFolderIds"],propLabels:{siteId:"Sites",driveId:"Drives",fileOrFolderIds:"Files & Folders"},fileOrFolderProp:"fileOrFolderIds",folderProp:"folderId"}},xa=({componentKey:e,app:t,accountId:n,externalUserId:i,onSelect:r,onCancel:o,initialConfiguredProps:l,confirmText:a="Select",cancelText:s="Cancel",selectFolders:u=!0,selectFiles:c=!0,multiSelect:d=!1,appConfig:f,debug:p=!1,showIcons:v=!0,icons:y})=>{const A=at(),{theme:m}=Oe(),B={...Yh,...y},w=f||Ia[t],k=!!w,{propHierarchy:T=[],fileOrFolderProp:I="",folderProp:H="",appPropName:G=t}=w||{},V=C.useCallback((...z)=>{},[]),[E,L]=C.useState(()=>{const z={[G]:{authProvisionId:n}};return l?{...z,...l}:z}),[D,R]=C.useState([]),[_,j]=C.useState(()=>{if(!l||!I)return[];const z=l[I];if(!Array.isArray(z))return[];const le=[];for(const F of z)try{const O=typeof F=="string"?JSON.parse(F):F;if(O&&typeof O=="object"){const{id:$,name:K,isFolder:Ce,size:Ie,childCount:P,lastModifiedDateTime:X}=O;le.push({id:String($??""),label:String(K??""),value:O,isFolder:!!Ce,size:typeof Ie=="number"?Ie:void 0,childCount:typeof P=="number"?P:void 0,lastModifiedDateTime:typeof X=="string"?X:void 0})}}catch{}return le}),[Z,ue]=C.useState(T[0]||""),[pe,N]=C.useState(!1),g=C.useRef(null),[se,q]=C.useState("");C.useEffect(()=>{for(const z of T)if(!E[z]){ue(z);return}ue(I)},[E,T,I]);const{data:b,isLoading:he,error:te}=rt.useQuery({queryKey:["configureFilePicker",e,Z,E,i],queryFn:async()=>{var le;V("Fetching options for prop:",Z),V("configuredProps:",JSON.stringify(E,null,2));const z=await A.components.configureProp({externalUserId:i,id:e,propName:Z,configuredProps:E});return V("Response for",Z,":",{optionsCount:((le=z.options)==null?void 0:le.length)||0,errors:z.errors}),z},enabled:!!n&&!!Z});C.useEffect(()=>(he?g.current=setTimeout(()=>{N(!0)},Uh):(g.current&&(clearTimeout(g.current),g.current=null),N(!1)),()=>{g.current&&clearTimeout(g.current)}),[he]);const Q=((b==null?void 0:b.options)||[]).map(z=>{const le=Le(z),F=le.label,O=typeof le.value=="string"?le.value:JSON.stringify(le.value);let $=!1,K=O,Ce=F.replace(/^📁\s*/,"").replace(/^📄\s*/,""),Ie,P,X,J=O;try{const Y=JSON.parse(O);J=Y,Y&&typeof Y=="object"&&(K=Y.id||O,Ce=Y.name||Ce,$=!!Y.isFolder,Ie=Y.size,P=Y.childCount,X=Y.lastModifiedDateTime)}catch{$=F.startsWith("📁")}return{id:K,label:Ce,value:J,isFolder:$,size:Ie,childCount:P,lastModifiedDateTime:X,raw:z}}),Ae=se?Q.filter(z=>z.label.toLowerCase().includes(se.toLowerCase())):Q;V("Parsed items:",Q.length,"filtered:",Ae.length,"for prop:",Z),p&&Q.length>0&&(V("First item raw:",Q[0].raw),V("First item parsed:",{size:Q[0].size,childCount:Q[0].childCount,lastModifiedDateTime:Q[0].lastModifiedDateTime}));const me=C.useCallback(z=>{if(V("Item clicked:",z,"currentProp:",Z),Z===I&&z.isFolder){q("");const le={propName:"folder",label:z.label,value:z.id};R(F=>[...F,le]),L(F=>{const O={...F};return H&&(O[H]=z.id),delete O[I],V("Navigating into folder:",O),O});return}if(Z!==I){const le={propName:Z,label:z.label,value:z.value};R(F=>[...F,le]),L(F=>{const O={...F,[Z]:z.value};return V("Updated configuredProps:",O),O});return}!z.isFolder&&!c||z.isFolder&&!u||j(d?le=>le.some(O=>O.id===z.id)?le.filter(O=>O.id!==z.id):[...le,z]:[z])},[Z,d,I,H,c,u,V]),Ve=C.useCallback((z,le)=>{j(F=>le?d?F.some(O=>O.id===z.id)?F:[...F,z]:[z]:F.filter(O=>O.id!==z.id))},[d]),ce=C.useCallback(z=>{if(q(""),z<0){R([]),L({[G]:{authProvisionId:n}});return}const le=D.slice(0,z+1);R(le);const F={[G]:{authProvisionId:n}};for(const O of le){const $=O.propName==="folder"?H||"folderId":O.propName;F[$]=O.value}L(F)},[D,n,G,H]),Ee=C.useCallback(()=>{r(_,E)},[_,E,r]),be=Z===I?Ae.filter(z=>z.isFolder&&u||!z.isFolder&&c):[],Te=be.length>0&&be.every(z=>_.some(le=>le.id===z.id)),Pe=be.some(z=>_.some(le=>le.id===z.id))&&!Te,De=C.useCallback(z=>{if(z)j(le=>{const F=new Set(le.map($=>$.id)),O=be.filter($=>!F.has($.id));return[...le,...O]});else{const le=new Set(be.map(F=>F.id));j(F=>F.filter(O=>!le.has(O.id)))}},[be]),de=_h(m,_.length),Re=z=>_.some(le=>le.id===z.id);return k?x.jsxs("div",{style:de.container,children:[x.jsx("div",{style:de.header,children:x.jsxs("div",{style:de.breadcrumb,children:[x.jsx("span",{role:"button",tabIndex:0,style:de.breadcrumbItem,onClick:()=>ce(-1),onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),ce(-1))},onMouseEnter:z=>{z.target.style.backgroundColor=m.colors.neutral10||""},onMouseLeave:z=>{z.target.style.backgroundColor=""},children:"Home"}),D.map((z,le)=>x.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[x.jsx("span",{style:de.breadcrumbSeparator,children:"/"}),x.jsx("span",{role:"button",tabIndex:0,style:de.breadcrumbItem,onClick:()=>ce(le),onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),ce(le))},onMouseEnter:F=>{F.target.style.backgroundColor=m.colors.neutral10||""},onMouseLeave:F=>{F.target.style.backgroundColor=""},children:z.label})]},`${z.propName}-${le}`))]})}),Z===I&&!pe&&!te&&Q.length>0&&x.jsx("div",{style:{padding:"10px 16px",borderBottom:`1px solid ${m.colors.neutral10}`},children:x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[se&&x.jsx("button",{type:"button",onClick:()=>q(""),style:{background:"none",border:"none",cursor:"pointer",color:m.colors.neutral40,fontSize:"16px",padding:"2px",lineHeight:1,display:"flex",alignItems:"center"},"aria-label":"Clear search",children:"×"}),x.jsx("input",{type:"text",placeholder:"Search files...",value:se,onChange:z=>q(z.target.value),style:{flex:1,padding:"6px 10px",fontSize:"13px",border:`1px solid ${m.colors.neutral20}`,borderRadius:"4px",backgroundColor:m.colors.neutral0,color:m.colors.neutral80,outline:"none"}})]})}),pe?x.jsx("div",{style:de.loading,children:"Loading..."}):te?x.jsxs("div",{style:de.error,children:["Failed to load items: ",te instanceof Error?te.message:"Unknown error"]}):Ae.length===0?x.jsx("div",{style:de.empty,children:"No items found"}):x.jsxs(x.Fragment,{children:[Z===I&&x.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"10px 16px",borderBottom:`1px solid ${m.colors.neutral10}`,fontSize:"13px",fontWeight:500,color:m.colors.neutral50},children:[d&&(c||u)&&be.length>0&&x.jsx("input",{type:"checkbox",checked:Te,ref:z=>{z&&(z.indeterminate=Pe)},onChange:z=>De(z.target.checked),style:{width:"16px",height:"16px",marginRight:"10px",cursor:"pointer",accentColor:m.colors.primary}}),!d&&(c||u)&&x.jsx("div",{style:{width:"16px",height:"16px",marginRight:"10px",flexShrink:0}}),v&&x.jsx("div",{style:{width:"20px",height:"20px",marginRight:"8px",flexShrink:0}}),x.jsx("span",{style:{flex:1},children:"Name"}),x.jsx("span",{style:{width:"150px",textAlign:"left"},children:"Last Modified"})]}),x.jsx("ul",{style:de.list,children:Ae.map(z=>{const le=Re(z),F=Z===I&&(z.isFolder&&u||!z.isFolder&&c);return x.jsx("li",{children:x.jsxs("button",{type:"button",style:{...de.item,backgroundColor:le?m.colors.primary25:void 0,width:"100%",textAlign:"left",border:"none",cursor:"pointer"},onClick:()=>me(z),onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),me(z))},onMouseEnter:O=>{le||(O.currentTarget.style.backgroundColor=m.colors.neutral5||"")},onMouseLeave:O=>{O.currentTarget.style.backgroundColor=le&&m.colors.primary25||""},children:[Z===I&&(c||u)&&(F?x.jsx("input",{type:"checkbox",style:de.checkbox,checked:le,onChange:O=>{O.stopPropagation(),Ve(z,O.target.checked)},onClick:O=>O.stopPropagation()}):x.jsx("div",{style:{width:"16px",height:"16px",marginRight:"10px",flexShrink:0}})),v&&x.jsx("span",{style:de.itemIcon,children:z.isFolder?B.folder:B.file}),x.jsxs("div",{style:{flex:1,minWidth:0},children:[x.jsx("span",{style:de.itemName,children:z.label}),Z===I&&x.jsxs("div",{style:{fontSize:"11px",color:m.colors.neutral40,marginTop:"2px",display:"flex",gap:"8px"},children:[z.isFolder&&z.childCount!==void 0&&x.jsxs("span",{children:[z.childCount," item",z.childCount!==1?"s":""]}),!z.isFolder&&z.size!==void 0&&x.jsx("span",{children:jh(z.size)})]})]}),Z===I&&x.jsxs("div",{style:{width:"150px",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0},children:[x.jsx("span",{style:{fontSize:"12px",color:m.colors.neutral40,whiteSpace:"nowrap"},children:z.lastModifiedDateTime?Jh(z.lastModifiedDateTime):""}),z.isFolder&&x.jsx("span",{style:de.chevron,children:"›"})]}),Z!==I&&x.jsx("span",{style:de.chevron,children:"›"})]})},z.id)})})]}),x.jsxs("div",{style:de.footer,children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[x.jsx("span",{style:de.selectionCount,children:_.length>0?`${_.length} item${_.length>1?"s":""} selected`:"No items selected"}),_.length>0&&x.jsx("button",{type:"button",onClick:()=>j([]),style:{background:"none",border:"none",cursor:"pointer",color:m.colors.primary,fontSize:"13px",padding:"2px 4px",textDecoration:"underline"},children:"Clear"})]}),x.jsxs("div",{style:de.buttonGroup,children:[o&&x.jsx("button",{type:"button",style:de.cancelButton,onClick:o,children:s}),x.jsx("button",{type:"button",style:de.confirmButton,onClick:Ee,disabled:_.length===0,children:a})]})]})]}):x.jsxs("div",{style:{padding:"16px",color:"#dc2626",backgroundColor:"#fef2f2",borderRadius:"8px",fontSize:"14px"},children:['Configuration error: No configuration found for app "',t,'". Please provide an appConfig prop or use a supported app.']})},qh=({isOpen:e,title:t="Select Files",onCancel:n,...i})=>{const{theme:r}=Oe(),o=C.useRef(null),l=C.useRef(null),a=C.useRef(null);C.useEffect(()=>{var A;if(!e)return;a.current=document.activeElement,(A=l.current)==null||A.focus();const y=m=>{if(m.key==="Escape"){n==null||n();return}if(m.key==="Tab"&&o.current){const B=o.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),w=B[0],k=B[B.length-1];m.shiftKey&&document.activeElement===w?(m.preventDefault(),k==null||k.focus()):!m.shiftKey&&document.activeElement===k&&(m.preventDefault(),w==null||w.focus())}};return document.addEventListener("keydown",y),()=>{var m,B;document.removeEventListener("keydown",y),(B=(m=a.current)==null?void 0:m.focus)==null||B.call(m)}},[e,n]);const s=C.useCallback(y=>{y.target===y.currentTarget&&(n==null||n())},[n]);if(!e)return null;const u={position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.4)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3,padding:"20px"},c={backgroundColor:r.colors.neutral0||"#fff",borderRadius:"12px",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.15)",width:"100%",maxWidth:"720px",height:"min(600px, calc(100vh - 40px))",display:"flex",flexDirection:"column",overflow:"hidden"},d={padding:"16px 20px",borderBottom:`1px solid ${r.colors.neutral10}`,display:"flex",alignItems:"center",justifyContent:"space-between"},f={margin:0,fontSize:"16px",fontWeight:600,color:r.colors.neutral80},p={background:"none",border:"none",fontSize:"20px",cursor:"pointer",color:r.colors.neutral40,padding:"4px",lineHeight:1,borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",transition:"background-color 0.15s"},v={padding:"16px",overflow:"hidden",flex:1,display:"flex",flexDirection:"column",minHeight:0};return x.jsx("div",{style:u,onClick:s,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:x.jsxs("div",{ref:o,style:c,onClick:y=>y.stopPropagation(),role:"document",children:[x.jsxs("div",{style:d,children:[x.jsx("h2",{id:"modal-title",style:f,children:t}),x.jsx("button",{ref:l,type:"button",style:p,onClick:n,"aria-label":"Close",onMouseEnter:y=>{y.target.style.backgroundColor=r.colors.neutral10||""},onMouseLeave:y=>{y.target.style.backgroundColor=""},children:"×"})]}),x.jsx("div",{style:v,children:x.jsx(xa,{...i,onCancel:n})})]})})},Qh={buildTime:new Date().toISOString(),source:"local-development"};ee.Alert=yn,ee.ComponentForm=fa,ee.ComponentFormContainer=Mh,ee.ConfigureFilePicker=xa,ee.ConfigureFilePickerModal=qh,ee.Control=la,ee.ControlAny=zh,ee.ControlApp=$l,ee.ControlBoolean=Kl,ee.ControlHttpRequest=na,ee.ControlInput=ea,ee.ControlSelect=Wn,ee.ControlSql=ia,ee.ControlSubmit=da,ee.CustomizationContext=Ln,ee.CustomizeProvider=Eh,ee.DEBUG_INFO=Qh,ee.Description=jl,ee.ErrorBoundary=ca,ee.Errors=Jl,ee.FILE_PICKER_APPS=Ia,ee.Field=aa,ee.FormContext=Vr,ee.FormContextProvider=Wo,ee.FormFieldContext=Qr,ee.FrontendClientProvider=bp,ee.InternalComponentForm=pa,ee.InternalField=ua,ee.Label=Yl,ee.OptionalFieldButton=Ul,ee.RemoteOptionsContainer=oa,ee.SelectApp=Xh,ee.SelectComponent=Wh,ee.defaultComponents=ql,ee.defaultTheme=Nn,ee.getReactSelectTheme=Zl,ee.mergeTheme=Dn,ee.skippablePropTypes=Ut,ee.unstyledTheme=Rl,ee.useAccounts=Ql,ee.useApp=sa,ee.useApps=ya,ee.useComponent=ga,ee.useComponents=va,ee.useCustomize=Oe,ee.useFormContext=qt,ee.useFormFieldContext=Ke,ee.useFrontendClient=at,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});
|
|
20
|
+
`]))),$f=function(t,n){var i=t.isFocused,r=t.size,o=t.theme,l=o.colors,a=o.spacing.baseUnit;return ne({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:i?l.neutral60:l.neutral20,padding:a*2})},Rr=function(t){var n=t.delay,i=t.offset;return te.jsx("span",{css:te.css({animation:"".concat(Qf," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb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vZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Kf=function(t){var n=t.innerProps,i=t.isRtl,r=t.size,o=r===void 0?4:r,l=st(t,Wf);return te.jsx("div",ie({},Fe(ne(ne({},l),{},{innerProps:n,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),te.jsx(Rr,{delay:0,offset:i}),te.jsx(Rr,{delay:160,offset:!0}),te.jsx(Rr,{delay:320,offset:!i}))},eg=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.theme,l=o.colors,a=o.borderRadius,s=o.spacing;return ne({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:i?l.neutral5:l.neutral0,borderColor:i?l.neutral10:r?l.primary:l.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:r?l.primary:l.neutral30}})},tg=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.innerRef,l=t.innerProps,a=t.menuIsOpen;return te.jsx("div",ie({ref:o},Fe(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":a}),l,{"aria-disabled":i||void 0}),n)},ng=tg,rg=["data"],ig=function(t,n){var i=t.theme.spacing;return n?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},og=function(t){var n=t.children,i=t.cx,r=t.getStyles,o=t.getClassNames,l=t.Heading,a=t.headingProps,s=t.innerProps,u=t.label,c=t.theme,d=t.selectProps;return te.jsx("div",ie({},Fe(t,"group",{group:!0}),s),te.jsx(l,ie({},a,{selectProps:d,theme:c,getStyles:r,getClassNames:o,cx:i}),u),te.jsx("div",null,n))},lg=function(t,n){var i=t.theme,r=i.colors,o=i.spacing;return ne({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},ag=function(t){var n=il(t);n.data;var i=st(n,rg);return te.jsx("div",ie({},Fe(t,"groupHeading",{"group-heading":!0}),i))},sg=og,ug=["innerRef","isDisabled","isHidden","inputClassName"],cg=function(t,n){var i=t.isDisabled,r=t.value,o=t.theme,l=o.spacing,a=o.colors;return ne(ne({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},dg),n?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:a.neutral80})},ml={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},dg={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ne({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ml)},pg=function(t){return ne({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ml)},fg=function(t){var n=t.cx,i=t.value,r=il(t),o=r.innerRef,l=r.isDisabled,a=r.isHidden,s=r.inputClassName,u=st(r,ug);return te.jsx("div",ie({},Fe(t,"input",{"input-container":!0}),{"data-value":i||""}),te.jsx("input",ie({className:n({input:!0},s),ref:o,style:pg(a),disabled:l},u)))},gg=fg,hg=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors;return ne({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:l.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},mg=function(t,n){var i=t.theme,r=i.borderRadius,o=i.colors,l=t.cropWithEllipsis;return ne({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},bg=function(t,n){var i=t.theme,r=i.spacing,o=i.borderRadius,l=i.colors,a=t.isFocused;return ne({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:a?l.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},bl=function(t){var n=t.children,i=t.innerProps;return te.jsx("div",i,n)},yg=bl,vg=bl;function Ig(e){var t=e.children,n=e.innerProps;return te.jsx("div",ie({role:"button"},n),t||te.jsx(Wr,{size:14}))}var xg=function(t){var n=t.children,i=t.components,r=t.data,o=t.innerProps,l=t.isDisabled,a=t.removeProps,s=t.selectProps,u=i.Container,c=i.Label,d=i.Remove;return te.jsx(u,{data:r,innerProps:ne(ne({},Fe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),o),selectProps:s},te.jsx(c,{data:r,innerProps:ne({},Fe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),te.jsx(d,{data:r,innerProps:ne(ne({},Fe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:s}))},Cg=xg,Ag=function(t,n){var i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.theme,a=l.spacing,s=l.colors;return ne({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},Sg=function(t){var n=t.children,i=t.isDisabled,r=t.isFocused,o=t.isSelected,l=t.innerRef,a=t.innerProps;return te.jsx("div",ie({},Fe(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:l,"aria-disabled":i},a),n)},wg=Sg,Eg=function(t,n){var i=t.theme,r=i.spacing,o=i.colors;return ne({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},kg=function(t){var n=t.children,i=t.innerProps;return te.jsx("div",ie({},Fe(t,"placeholder",{placeholder:!0}),i),n)},Pg=kg,Bg=function(t,n){var i=t.isDisabled,r=t.theme,o=r.spacing,l=r.colors;return ne({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:i?l.neutral40:l.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Fg=function(t){var n=t.children,i=t.isDisabled,r=t.innerProps;return te.jsx("div",ie({},Fe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),n)},Tg=Fg,Mt={ClearIndicator:_f,Control:ng,DropdownIndicator:Jf,DownChevron:gl,CrossIcon:Wr,Group:sg,GroupHeading:ag,IndicatorsContainer:Hf,IndicatorSeparator:qf,Input:gg,LoadingIndicator:Kf,Menu:Ef,MenuList:Pf,MenuPortal:Vf,LoadingMessage:Gf,NoOptionsMessage:Tf,MultiValue:Cg,MultiValueContainer:yg,MultiValueLabel:vg,MultiValueRemove:Ig,Option:wg,Placeholder:Pg,SelectContainer:Df,SingleValue:Tg,ValueContainer:Mf},Gg=function(t){return ne(ne({},Mt),t.components)},yl=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Og(e,t){return!!(e===t||yl(e)&&yl(t))}function Vg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Og(e[n],t[n]))return!1;return!0}function Ng(e,t){t===void 0&&(t=Vg);var n=null;function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var l=e.apply(this,r);return n={lastResult:l,lastArgs:r,lastThis:this},l}return i.clear=function(){n=null},i}function Dg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var Lg=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Dg},Mg=function(t){return te.jsx("span",ie({css:Lg},t))},vl=Mg,zg={guidance:function(t){var n=t.isSearchable,i=t.isMulti,r=t.tabSelectsValue,o=t.context,l=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return l?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,i=t.label,r=i===void 0?"":i,o=t.labels,l=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return l?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,i=t.focused,r=t.options,o=t.label,l=o===void 0?"":o,a=t.selectValue,s=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,d=function(y,A){return y&&y.length?"".concat(y.indexOf(A)+1," of ").concat(y.length):""};if(n==="value"&&a)return"value ".concat(l," focused, ").concat(d(a,i),".");if(n==="menu"&&c){var f=s?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(l).concat(p,", ").concat(d(r,i),".")}return""},onFilter:function(t){var n=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(n?" for search term "+n:"",".")}},Hg=function(t){var n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,l=t.isFocused,a=t.selectValue,s=t.selectProps,u=t.id,c=t.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,v=s.isMulti,y=s.isOptionDisabled,A=s.isSearchable,m=s.menuIsOpen,F=s.options,E=s.screenReaderStatus,P=s.tabSelectsValue,T=s.isLoading,x=s["aria-label"],H=s["aria-live"],G=C.useMemo(function(){return ne(ne({},zg),d||{})},[d]),O=C.useMemo(function(){var Y="";if(n&&G.onChange){var j=n.option,ae=n.options,se=n.removedValue,V=n.removedValues,g=n.value,le=function(ue){return Array.isArray(ue)?null:ue},Q=se||j||le(g),b=Q?f(Q):"",ge=ae||V||void 0,ee=ge?ge.map(f):[],re=ne({isDisabled:Q&&y(Q,a),label:b,labels:ee},n);Y=G.onChange(re)}return Y},[n,G,y,a,f]),k=C.useMemo(function(){var Y="",j=i||r,ae=!!(i&&a&&a.includes(i));if(j&&G.onFocus){var se={focused:j,label:f(j),isDisabled:y(j,a),isSelected:ae,options:o,context:j===i?"menu":"value",selectValue:a,isAppleDevice:c};Y=G.onFocus(se)}return Y},[i,r,f,y,G,o,a,c]),L=C.useMemo(function(){var Y="";if(m&&F.length&&!T&&G.onFilter){var j=E({count:o.length});Y=G.onFilter({inputValue:p,resultsMessage:j})}return Y},[o,p,m,G,F,E,T]),D=(n==null?void 0:n.action)==="initial-input-focus",R=C.useMemo(function(){var Y="";if(G.guidance){var j=r?"value":m?"menu":"input";Y=G.guidance({"aria-label":x,context:j,isDisabled:i&&y(i,a),isMulti:v,isSearchable:A,tabSelectsValue:P,isInitialFocus:D})}return Y},[x,i,r,v,y,A,m,G,a,P,D]),U=te.jsx(C.Fragment,null,te.jsx("span",{id:"aria-selection"},O),te.jsx("span",{id:"aria-focused"},k),te.jsx("span",{id:"aria-results"},L),te.jsx("span",{id:"aria-guidance"},R));return te.jsx(C.Fragment,null,te.jsx(vl,{id:u},D&&U),te.jsx(vl,{"aria-live":H,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!D&&U))},Xg=Hg,Zr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Wg=new RegExp("["+Zr.map(function(e){return e.letters}).join("")+"]","g"),Il={},jr=0;jr<Zr.length;jr++)for(var Jr=Zr[jr],Yr=0;Yr<Jr.letters.length;Yr++)Il[Jr.letters[Yr]]=Jr.base;var xl=function(t){return t.replace(Wg,function(n){return Il[n]})},Rg=Ng(xl),Cl=function(t){return t.replace(/^\s+|\s+$/g,"")},Zg=function(t){return"".concat(t.label," ").concat(t.value)},jg=function(t){return function(n,i){if(n.data.__isNew__)return!0;var r=ne({ignoreCase:!0,ignoreAccents:!0,stringify:Zg,trim:!0,matchFrom:"any"},t),o=r.ignoreCase,l=r.ignoreAccents,a=r.stringify,s=r.trim,u=r.matchFrom,c=s?Cl(i):i,d=s?Cl(a(n)):a(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),l&&(c=Rg(c),d=xl(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},Jg=["innerRef"];function Yg(e){var t=e.innerRef,n=st(e,Jg),i=yf(n,"onExited","in","enter","exit","appear");return te.jsx("input",ie({ref:t},i,{css:te.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB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aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var _g=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Ug(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,l=C.useRef(!1),a=C.useRef(!1),s=C.useRef(0),u=C.useRef(null),c=C.useCallback(function(A,m){if(u.current!==null){var F=u.current,E=F.scrollTop,P=F.scrollHeight,T=F.clientHeight,x=u.current,H=m>0,G=P-T-E,O=!1;G>m&&l.current&&(i&&i(A),l.current=!1),H&&a.current&&(o&&o(A),a.current=!1),H&&m>G?(n&&!l.current&&n(A),x.scrollTop=P,O=!0,l.current=!0):!H&&-m>E&&(r&&!a.current&&r(A),x.scrollTop=0,O=!0,a.current=!0),O&&_g(A)}},[n,i,r,o]),d=C.useCallback(function(A){c(A,A.deltaY)},[c]),f=C.useCallback(function(A){s.current=A.changedTouches[0].clientY},[]),p=C.useCallback(function(A){var m=s.current-A.changedTouches[0].clientY;c(A,m)},[c]),v=C.useCallback(function(A){if(A){var m=hf?{passive:!1}:!1;A.addEventListener("wheel",d,m),A.addEventListener("touchstart",f,m),A.addEventListener("touchmove",p,m)}},[p,f,d]),y=C.useCallback(function(A){A&&(A.removeEventListener("wheel",d,!1),A.removeEventListener("touchstart",f,!1),A.removeEventListener("touchmove",p,!1))},[p,f,d]);return C.useEffect(function(){if(t){var A=u.current;return v(A),function(){y(A)}}},[t,v,y]),function(A){u.current=A}}var Al=["boxSizing","height","overflow","paddingRight","position"],Sl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function wl(e){e.cancelable&&e.preventDefault()}function El(e){e.stopPropagation()}function kl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Pl(){return"ontouchstart"in window||navigator.maxTouchPoints}var Bl=!!(typeof window<"u"&&window.document&&window.document.createElement),Kt=0,zt={capture:!1,passive:!1};function qg(e){var t=e.isEnabled,n=e.accountForScrollbars,i=n===void 0?!0:n,r=C.useRef({}),o=C.useRef(null),l=C.useCallback(function(s){if(Bl){var u=document.body,c=u&&u.style;if(i&&Al.forEach(function(v){var y=c&&c[v];r.current[v]=y}),i&&Kt<1){var d=parseInt(r.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Sl).forEach(function(v){var y=Sl[v];c&&(c[v]=y)}),c&&(c.paddingRight="".concat(p,"px"))}u&&Pl()&&(u.addEventListener("touchmove",wl,zt),s&&(s.addEventListener("touchstart",kl,zt),s.addEventListener("touchmove",El,zt))),Kt+=1}},[i]),a=C.useCallback(function(s){if(Bl){var u=document.body,c=u&&u.style;Kt=Math.max(Kt-1,0),i&&Kt<1&&Al.forEach(function(d){var f=r.current[d];c&&(c[d]=f)}),u&&Pl()&&(u.removeEventListener("touchmove",wl,zt),s&&(s.removeEventListener("touchstart",kl,zt),s.removeEventListener("touchmove",El,zt)))}},[i]);return C.useEffect(function(){if(t){var s=o.current;return l(s),function(){a(s)}}},[t,l,a]),function(s){o.current=s}}function Qg(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var $g=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Kg=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZX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VybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Qg};function eh(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=i===void 0?!0:i,o=e.onBottomArrive,l=e.onBottomLeave,a=e.onTopArrive,s=e.onTopLeave,u=Ug({isEnabled:r,onBottomArrive:o,onBottomLeave:l,onTopArrive:a,onTopLeave:s}),c=qg({isEnabled:n}),d=function(p){u(p),c(p)};return te.jsx(C.Fragment,null,n&&te.jsx("div",{onClick:$g,css:Kg}),t(d))}function th(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var nh=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:th},rh=function(t){var n=t.name,i=t.onFocus;return te.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:nh,value:"",onChange:function(){}})},ih=rh;function _r(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function oh(){return _r(/^iPhone/i)}function Fl(){return _r(/^Mac/i)}function lh(){return _r(/^iPad/i)||Fl()&&navigator.maxTouchPoints>1}function ah(){return oh()||lh()}function sh(){return Fl()||ah()}var uh=function(t){return t.label},Tl=function(t){return t.label},Gl=function(t){return t.value},ch=function(t){return!!t.isDisabled},dh={clearIndicator:Yf,container:Nf,control:eg,dropdownIndicator:jf,group:ig,groupHeading:lg,indicatorsContainer:zf,indicatorSeparator:Uf,input:cg,loadingIndicator:$f,loadingMessage:Ff,menu:Af,menuList:kf,menuPortal:Of,multiValue:hg,multiValueLabel:mg,multiValueRemove:bg,noOptionsMessage:Bf,option:Ag,placeholder:Eg,singleValue:Bg,valueContainer:Lf};function ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ne({},e);return Object.keys(t).forEach(function(i){var r=i;e[r]?n[r]=function(o,l){return t[r](e[r](o,l),l)}:n[r]=t[r]}),n}var fh={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},gh=4,Ol=4,hh=38,mh=Ol*2,bh={baseUnit:Ol,controlHeight:hh,menuGutter:mh},en={borderRadius:gh,colors:fh,spacing:bh},yh={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:al(),captureMenuScroll:!al(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:jg(),formatGroupLabel:uh,getOptionLabel:Tl,getOptionValue:Gl,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ch,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!ff(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Vl(e,t,n,i){var r=zl(e,t,n),o=Hl(e,t,n),l=Ml(e,t),a=On(e,t);return{type:"option",data:t,isDisabled:r,isSelected:o,label:l,value:a,index:i}}function Gn(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(l,a){return Vl(e,l,t,a)}).filter(function(l){return Ll(e,l)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=Vl(e,n,t,i);return Ll(e,o)?o:void 0}).filter(mf)}function Nl(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Lt(n.options.map(function(i){return i.data}))):t.push(n.data),t},[])}function Dl(e,t){return e.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Lt(i.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(i.index,"-").concat(r.index)}}))):n.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),n},[])}function vh(e,t){return Nl(Gn(e,t))}function Ll(e,t){var n=e.inputValue,i=n===void 0?"":n,r=t.data,o=t.isSelected,l=t.label,a=t.value;return(!Wl(e)||!o)&&Xl(e,{label:l,value:a,data:r},i)}function Ih(e,t){var n=e.focusedValue,i=e.selectValue,r=i.indexOf(n);if(r>-1){var o=t.indexOf(n);if(o>-1)return n;if(r<t.length)return t[r]}return null}function xh(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var Ur=function(t,n){var i,r=(i=t.find(function(o){return o.data===n}))===null||i===void 0?void 0:i.id;return r||null},Ml=function(t,n){return t.getOptionLabel(n)},On=function(t,n){return t.getOptionValue(n)};function zl(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Hl(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var i=On(e,t);return n.some(function(r){return On(e,r)===i})}function Xl(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Wl=function(t){var n=t.hideSelectedOptions,i=t.isMulti;return n===void 0?i:n},Ch=1,qr=function(e){Dp(n,e);var t=zp(n);function n(i){var r;if(Vp(this,n),r=t.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(s){r.controlRef=s},r.focusedOptionRef=null,r.getFocusedOptionRef=function(s){r.focusedOptionRef=s},r.menuListRef=null,r.getMenuListRef=function(s){r.menuListRef=s},r.inputRef=null,r.getInputRef=function(s){r.inputRef=s},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(s,u){var c=r.props,d=c.onChange,f=c.name;u.name=f,r.ariaOnChange(s,u),d(s,u)},r.setValue=function(s,u,c){var d=r.props,f=d.closeMenuOnSelect,p=d.isMulti,v=d.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:v}),f&&(r.setState({inputIsHiddenAfterUpdate:!p}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(s,{action:u,option:c})},r.selectOption=function(s){var u=r.props,c=u.blurInputOnSelect,d=u.isMulti,f=u.name,p=r.state.selectValue,v=d&&r.isOptionSelected(s,p),y=r.isOptionDisabled(s,p);if(v){var A=r.getOptionValue(s);r.setValue(p.filter(function(m){return r.getOptionValue(m)!==A}),"deselect-option",s)}else if(!y)d?r.setValue([].concat(Lt(p),[s]),"select-option",s):r.setValue(s,"select-option");else{r.ariaOnChange(s,{action:"select-option",option:s,name:f});return}c&&r.blurInput()},r.removeValue=function(s){var u=r.props.isMulti,c=r.state.selectValue,d=r.getOptionValue(s),f=c.filter(function(v){return r.getOptionValue(v)!==d}),p=$t(u,f,f[0]||null);r.onChange(p,{action:"remove-value",removedValue:s}),r.focusInput()},r.clearValue=function(){var s=r.state.selectValue;r.onChange($t(r.props.isMulti,[],null),{action:"clear",removedValues:s})},r.popValue=function(){var s=r.props.isMulti,u=r.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),f=$t(s,d,d[0]||null);c&&r.onChange(f,{action:"pop-value",removedValue:c})},r.getFocusedOptionId=function(s){return Ur(r.state.focusableOptionsWithIds,s)},r.getFocusableOptionsWithIds=function(){return Dl(Gn(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return sf.apply(void 0,[r.props.classNamePrefix].concat(u))},r.getOptionLabel=function(s){return Ml(r.props,s)},r.getOptionValue=function(s){return On(r.props,s)},r.getStyles=function(s,u){var c=r.props.unstyled,d=dh[s](u,c);d.boxSizing="border-box";var f=r.props.styles[s];return f?f(d,u):d},r.getClassNames=function(s,u){var c,d;return(c=(d=r.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},r.getElementId=function(s){return"".concat(r.state.instancePrefix,"-").concat(s)},r.getComponents=function(){return Gg(r.props)},r.buildCategorizedOptions=function(){return Gn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Nl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(s,u){r.setState({ariaSelection:ne({value:s},u)})},r.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(s){r.blockOptionHover=!1},r.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&r.onMenuClose():u&&r.openMenu("first"):(u&&(r.openAfterFocus=!0),r.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},r.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!r.props.isDisabled){var u=r.props,c=u.isMulti,d=u.menuIsOpen;r.focusInput(),d?(r.setState({inputIsHiddenAfterUpdate:!c}),r.onMenuClose()):r.openMenu("first"),s.preventDefault()}},r.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(r.clearValue(),s.preventDefault(),r.openAfterFocus=!1,s.type==="touchend"?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(s){typeof r.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Pn(s.target)&&r.props.onMenuClose():typeof r.props.closeMenuOnScroll=="function"&&r.props.closeMenuOnScroll(s)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(r.initialTouchX=c.clientX,r.initialTouchY=c.clientY,r.userIsDragging=!1)},r.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-r.initialTouchX),f=Math.abs(c.clientY-r.initialTouchY),p=5;r.userIsDragging=d>p||f>p}},r.onTouchEnd=function(s){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(s.target)&&r.menuListRef&&!r.menuListRef.contains(s.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(s){r.userIsDragging||r.onControlMouseDown(s)},r.onClearIndicatorTouchEnd=function(s){r.userIsDragging||r.onClearIndicatorMouseDown(s)},r.onDropdownIndicatorTouchEnd=function(s){r.userIsDragging||r.onDropdownIndicatorMouseDown(s)},r.handleInputChange=function(s){var u=r.props.inputValue,c=s.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(c,{action:"input-change",prevInputValue:u}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(s){r.props.onFocus&&r.props.onFocus(s),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(s){var u=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(s),r.onInputChange("",{action:"input-blur",prevInputValue:u}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(s){if(!(r.blockOptionHover||r.state.focusedOption===s)){var u=r.getFocusableOptions(),c=u.indexOf(s);r.setState({focusedOption:s,focusedOptionId:c>-1?r.getFocusedOptionId(s):null})}},r.shouldHideSelectedOptions=function(){return Wl(r.props)},r.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),r.focus()},r.onKeyDown=function(s){var u=r.props,c=u.isMulti,d=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,v=u.isClearable,y=u.isDisabled,A=u.menuIsOpen,m=u.onKeyDown,F=u.tabSelectsValue,E=u.openMenuOnFocus,P=r.state,T=P.focusedOption,x=P.focusedValue,H=P.selectValue;if(!y&&!(typeof m=="function"&&(m(s),s.defaultPrevented))){switch(r.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||p)return;r.focusValue("previous");break;case"ArrowRight":if(!c||p)return;r.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(x)r.removeValue(x);else{if(!d)return;c?r.popValue():v&&r.clearValue()}break;case"Tab":if(r.isComposing||s.shiftKey||!A||!F||!T||E&&r.isOptionSelected(T,H))return;r.selectOption(T);break;case"Enter":if(s.keyCode===229)break;if(A){if(!T||r.isComposing)return;r.selectOption(T);break}return;case"Escape":A?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:p}),r.onMenuClose()):v&&f&&r.clearValue();break;case" ":if(p)return;if(!A){r.openMenu("first");break}if(!T)return;r.selectOption(T);break;case"ArrowUp":A?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":A?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!A)return;r.focusOption("pageup");break;case"PageDown":if(!A)return;r.focusOption("pagedown");break;case"Home":if(!A)return;r.focusOption("first");break;case"End":if(!A)return;r.focusOption("last");break;default:return}s.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Ch),r.state.selectValue=kn(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),l=r.buildFocusableOptions(),a=l.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=l[a],r.state.focusedOptionId=Ur(o,l[a])}return r}return Np(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ll(this.menuListRef,this.focusedOptionRef),sh()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(r){var o=this.props,l=o.isDisabled,a=o.menuIsOpen,s=this.state.isFocused;(s&&!l&&r.isDisabled||s&&a&&!r.menuIsOpen)&&this.focusInput(),s&&l&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!l&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ll(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,l=this.state,a=l.selectValue,s=l.isFocused,u=this.buildFocusableOptions(),c=r==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(a[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,l=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=l.indexOf(a);a||(s=-1);var u=l.length-1,c=-1;if(l.length){switch(r){case"previous":s===0?c=0:s===-1?c=u:c=s-1;break;case"next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:l[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,l=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var s=0,u=a.indexOf(l);l||(u=-1),r==="up"?s=u>0?u-1:a.length-1:r==="down"?s=(u+1)%a.length:r==="pageup"?(s=u-o,s<0&&(s=0)):r==="pagedown"?(s=u+o,s>a.length-1&&(s=a.length-1)):r==="last"&&(s=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(en):ne(ne({},en),this.props.theme):en}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,l=this.getStyles,a=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,v=d.options,y=this.hasValue();return{clearValue:r,cx:o,getStyles:l,getClassNames:a,getValue:s,hasValue:y,isMulti:f,isRtl:p,options:v,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,l=r.isMulti;return o===void 0?l:o}},{key:"isOptionDisabled",value:function(r,o){return zl(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return Hl(this.props,r,o)}},{key:"filterOption",value:function(r,o){return Xl(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:l,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,l=r.isSearchable,a=r.inputId,s=r.inputValue,u=r.tabIndex,c=r.form,d=r.menuIsOpen,f=r.required,p=this.getComponents(),v=p.Input,y=this.state,A=y.inputIsHidden,m=y.ariaSelection,F=this.commonProps,E=a||this.getElementId("input"),P=ne(ne(ne({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?me.createElement(v,ie({},F,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:E,innerRef:this.getInputRef,isDisabled:o,isHidden:A,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},P)):me.createElement(Yg,ie({id:E,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:En,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},P))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),l=o.MultiValue,a=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,v=p.controlShouldRenderValue,y=p.isDisabled,A=p.isMulti,m=p.inputValue,F=p.placeholder,E=this.state,P=E.selectValue,T=E.focusedValue,x=E.isFocused;if(!this.hasValue()||!v)return m?null:me.createElement(d,ie({},f,{key:"placeholder",isDisabled:y,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),F);if(A)return P.map(function(G,O){var k=G===T,L="".concat(r.getOptionLabel(G),"-").concat(r.getOptionValue(G));return me.createElement(l,ie({},f,{components:{Container:a,Label:s,Remove:u},isFocused:k,isDisabled:y,key:L,index:O,removeProps:{onClick:function(){return r.removeValue(G)},onTouchEnd:function(){return r.removeValue(G)},onMouseDown:function(R){R.preventDefault()}},data:G}),r.formatOptionLabel(G,"value"))});if(m)return null;var H=P[0];return me.createElement(c,ie({},f,{data:H,isDisabled:y}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,l=this.commonProps,a=this.props,s=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return me.createElement(o,ie({},l,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,l=this.commonProps,a=this.props,s=a.isDisabled,u=a.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return me.createElement(o,ie({},l,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,l=r.IndicatorSeparator;if(!o||!l)return null;var a=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return me.createElement(l,ie({},a,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var l=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return me.createElement(o,ie({},l,{innerProps:u,isDisabled:a,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),l=o.Group,a=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,v=this.commonProps,y=this.state.focusedOption,A=this.props,m=A.captureMenuScroll,F=A.inputValue,E=A.isLoading,P=A.loadingMessage,T=A.minMenuHeight,x=A.maxMenuHeight,H=A.menuIsOpen,G=A.menuPlacement,O=A.menuPosition,k=A.menuPortalTarget,L=A.menuShouldBlockScroll,D=A.menuShouldScrollIntoView,R=A.noOptionsMessage,U=A.onMenuScrollToTop,Y=A.onMenuScrollToBottom;if(!H)return null;var j=function(b,ge){var ee=b.type,re=b.data,ve=b.isDisabled,ue=b.isSelected,Pe=b.label,ce=b.value,we=y===re,Ie=ve?void 0:function(){return r.onOptionHover(re)},Oe=ve?void 0:function(){return r.selectOption(re)},ye="".concat(r.getElementId("option"),"-").concat(ge),Ne={id:ye,onClick:Oe,onMouseMove:Ie,onMouseOver:Ie,tabIndex:-1,role:"option","aria-selected":r.state.isAppleDevice?void 0:ue};return me.createElement(p,ie({},v,{innerProps:Ne,data:re,isDisabled:ve,isSelected:ue,key:ye,label:Pe,type:ee,value:ce,isFocused:we,innerRef:we?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(b.data,"menu"))},ae;if(this.hasOptions())ae=this.getCategorizedOptions().map(function(Q){if(Q.type==="group"){var b=Q.data,ge=Q.options,ee=Q.index,re="".concat(r.getElementId("group"),"-").concat(ee),ve="".concat(re,"-heading");return me.createElement(l,ie({},v,{key:re,data:b,options:ge,Heading:a,headingProps:{id:ve,data:Q.data},label:r.formatGroupLabel(Q.data)}),Q.options.map(function(ue){return j(ue,"".concat(ee,"-").concat(ue.index))}))}else if(Q.type==="option")return j(Q,"".concat(Q.index))});else if(E){var se=P({inputValue:F});if(se===null)return null;ae=me.createElement(d,v,se)}else{var V=R({inputValue:F});if(V===null)return null;ae=me.createElement(f,v,V)}var g={minMenuHeight:T,maxMenuHeight:x,menuPlacement:G,menuPosition:O,menuShouldScrollIntoView:D},le=me.createElement(Sf,ie({},v,g),function(Q){var b=Q.ref,ge=Q.placerProps,ee=ge.placement,re=ge.maxHeight;return me.createElement(s,ie({},v,g,{innerRef:b,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:E,placement:ee}),me.createElement(eh,{captureEnabled:m,onTopArrive:U,onBottomArrive:Y,lockEnabled:L},function(ve){return me.createElement(u,ie({},v,{innerRef:function(Pe){r.getMenuListRef(Pe),ve(Pe)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:r.getElementId("listbox")},isLoading:E,maxHeight:re,focusedOption:y}),ae)}))});return k||O==="fixed"?me.createElement(c,ie({},v,{appendTo:k,controlElement:this.controlRef,menuPlacement:G,menuPosition:O}),le):le}},{key:"renderFormField",value:function(){var r=this,o=this.props,l=o.delimiter,a=o.isDisabled,s=o.isMulti,u=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!a)return me.createElement(ih,{name:u,onFocus:this.onValueInputFocus});if(!(!u||a))if(s)if(l){var f=d.map(function(y){return r.getOptionValue(y)}).join(l);return me.createElement("input",{name:u,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(y,A){return me.createElement("input",{key:"i-".concat(A),name:u,type:"hidden",value:r.getOptionValue(y)})}):me.createElement("input",{name:u,type:"hidden",value:""});return me.createElement("div",null,p)}else{var v=d[0]?this.getOptionValue(d[0]):"";return me.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,l=o.ariaSelection,a=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return me.createElement(Xg,ie({},r,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:a,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,l=r.IndicatorsContainer,a=r.SelectContainer,s=r.ValueContainer,u=this.props,c=u.className,d=u.id,f=u.isDisabled,p=u.menuIsOpen,v=this.state.isFocused,y=this.commonProps=this.getCommonProps();return me.createElement(a,ie({},y,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:v}),this.renderLiveRegion(),me.createElement(o,ie({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:v,menuIsOpen:p}),me.createElement(s,ie({},y,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),me.createElement(l,ie({},y,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var l=o.prevProps,a=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=r.options,v=r.value,y=r.menuIsOpen,A=r.inputValue,m=r.isMulti,F=kn(v),E={};if(l&&(v!==l.value||p!==l.options||y!==l.menuIsOpen||A!==l.inputValue)){var P=y?vh(r,F):[],T=y?Dl(Gn(r,F),"".concat(f,"-option")):[],x=a?Ih(o,F):null,H=xh(o,P),G=Ur(T,H);E={selectValue:F,focusedOption:H,focusedOptionId:G,focusableOptionsWithIds:T,focusedValue:x,clearFocusValueOnUpdate:!1}}var O=s!=null&&r!==l?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},k=u,L=c&&d;return c&&!L&&(k={value:$t(m,F,F[0]||null),options:F,action:"initial-input-focus"},L=!d),(u==null?void 0:u.action)==="initial-input-focus"&&(k=null),ne(ne(ne({},E),O),{},{prevProps:r,ariaSelection:k,prevWasFocused:L})}}]),n}(C.Component);qr.defaultProps=yh;var Ah=C.forwardRef(function(e,t){var n=Jo(e);return me.createElement(qr,ie({ref:t},n))}),Vn=Ah;const Sh=en,Nn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},Rl={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Zl(e){if(!e)return en;const t=typeof e=="function"?e(Nn):e,{colors:n,spacing:i,borderRadius:r}=Dn(Sh,t);return{borderRadius:r,colors:n,spacing:i}}function Dn(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const i of t)i&&(n.borderRadius=i.borderRadius??n.borderRadius,Object.assign(n.boxShadow,i.boxShadow),Object.assign(n.colors,i.colors),Object.assign(n.spacing,i.spacing));return n}const wh=({...e})=>{const[t,n]=C.useState(!1),i={textDecoration:"underline",textUnderlineOffset:"3px",color:"inherit",transition:"opacity 0.2s ease",opacity:t?.7:1};return I.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"2px"},children:[I.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",style:i,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}),I.jsx("span",{style:{fontSize:"0.7em",opacity:.7},children:"↗"})]})};function jl(e){const{field:t,markdown:n}=e,{prop:i}=t,{getClassNames:r,getStyles:o,theme:l}=Ge(),a=C.useMemo(()=>({color:l.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"}),[l.colors.neutral50]),s=C.useMemo(()=>({a:wh}),[]),u=e;return i.type==="app"?I.jsx("p",{className:r("description",u),style:o("description",a,u),children:"Credentials are encrypted."}):i.description?I.jsxs("div",{className:r("description",u),style:o("description",a,u),children:[" ",I.jsx(Lo,{components:s,children:n})]}):null}function Jl(e){const{field:t}=e,{enableDebugging:n,errors:i={},prop:r={}}=t;if(!n||!i[r.name])return null;const o=i[r.name].map(s=>({type:"alert",alertType:"error",content:s,name:r.name})),l={display:"grid",gridTemplateColumns:"max-content"},a=()=>I.jsx(I.Fragment,{children:o.map((s,u)=>I.jsx(yn,{prop:s},u))});return I.jsx("div",{className:"pd-errors",style:l,children:I.jsx(a,{})})}function Yl(e){const{text:t,field:n}=e,{id:i}=n,{getProps:r,theme:o}=Ge(),l={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return I.jsx("label",{htmlFor:i,...r("label",l,e),children:t})}const _l=e=>{const{onChange:t}=e,{getProps:n,theme:i}=Ge(),r={backgroundColor:i.colors.primary,borderRadius:i.borderRadius,border:"solid 1px",borderColor:i.colors.primary25,color:i.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return I.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",r,e),children:"Load More"})},Ul=e=>{const{prop:t,enabled:n,onClick:i}=e,{getProps:r,theme:o}=Ge(),l={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return I.jsxs("button",{onClick:i,type:"button",...r("optionalFieldButton",l,e),children:[I.jsx("span",{children:n?"-":"+"}),I.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},ql={Description:jl,Errors:Jl,Label:Yl,OptionalFieldButton:Ul,Button:_l},Ln=C.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:Nn,unstyled:!1});function Eh(){const e=C.useContext(Ln)??{},t=Zl(e.theme??{});function n(){return e.classNamePrefix??""}function i(a){var c;const s=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a}`,u={...((c=e.classNames)==null?void 0:c[a])??{}};return typeof(u==null?void 0:u.container)=="function"&&(u.container=typeof(u==null?void 0:u.container)=="function"?(...d)=>{var f;return[(f=u==null?void 0:u.container)==null?void 0:f.call(u,...d),s].join(" ")}:()=>s),u}function r(a,s){var u;return{...Mt,...s??{},...((u=e==null?void 0:e.components)==null?void 0:u[a])??{}}}function o(a,s){var c;const u=(c=e.styles)==null?void 0:c[a];return ph(u??{},s??{})}function l(a,s){return{classNamePrefix:n(),classNames:i(a),components:r(a,s==null?void 0:s.components),styles:o(a,s==null?void 0:s.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:i,getComponents:r,getProps:l,getStyles:o,theme:t}}function Ge(){const e=C.useContext(Ln)??{},t=e.theme,n=e.unstyled?Rl:Nn,i=typeof t=="function"?Dn(n,t(n)):Dn(n,t);function r(s,u){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${s.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[s];if(typeof d=="function"){const p=d,v={...u??{},theme:i};return[c,p(v)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...ql,...(e==null?void 0:e.components)??{}}}function l(s,u,c){var f;const d=(f=e.styles)==null?void 0:f[s];if(typeof d=="function"){const p=d,v={...c??{},theme:i};return p(u,v)}return d?{...u,...d}:u}function a(s,u,c){return{className:r(s,c),style:l(s,u,c)}}return{getClassNames:r,getComponents:o,getProps:a,getStyles:l,select:Eh(),theme:i}}const kh=({children:e,...t})=>I.jsx(Ln.Provider,{value:t,children:e}),Qr=C.createContext(void 0),$e=()=>{const e=C.useContext(Qr);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Ql=(e,t)=>{const n=lt(),i={externalUserId:e.external_user_id,app:e.app,oauthAppId:e.oauth_app_id},r=nt.useQuery({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:async()=>(await n.accounts.list(i)).data});return{...r,accounts:r.data||[]}};function Mn(e){const t=e.neutral0??"#ffffff",n=e.neutral20??"hsl(0, 0%, 80%)",i=e.neutral60??"hsl(0, 0%, 40%)",r=e.neutral80??"hsl(0, 0%, 20%)",o=e.optionHover??e.neutral20??"hsl(0, 0%, 80%)",l=e.optionSelected??e.neutral30??"hsl(0, 0%, 70%)",a=e.optionSelectedHover??e.neutral40??"hsl(0, 0%, 60%)",s=e.appIconBackground??e.neutral0??"#ffffff";return{surface:t,border:n,text:i,textStrong:r,hoverBg:o,selectedBg:l,selectedHoverBg:a,appIconBg:s}}function zn(e){const{colors:{surface:t,border:n,text:i,textStrong:r,hoverBg:o,selectedBg:l,selectedHoverBg:a},boxShadow:s}=e;return{control:u=>({...u,backgroundColor:t,borderColor:n,color:i,boxShadow:s.input}),menu:u=>({...u,backgroundColor:t,boxShadow:s.dropdown}),menuList:u=>({...u,backgroundColor:t}),singleValue:u=>({...u,color:i,fontSize:"0.875rem"}),input:u=>({...u,color:i,fontSize:"0.875rem"}),option:(u,c)=>{let d=t;return c.isSelected&&c.isFocused?d=a:c.isSelected?d=l:c.isFocused&&(d=o),{...u,backgroundColor:d,color:r,fontSize:"0.875rem",":active":{...u[":active"],backgroundColor:c.isDisabled?void 0:a}}}}}const Ph=e=>I.jsx(Mt.Option,{...e,children:e.data.name});function $l({app:e}){const t=lt(),{externalUserId:n,oauthAppConfig:i}=qt(),r=$e(),{id:o,prop:l,value:a,onChange:s}=r,{getProps:u,select:c,theme:d}=Ge(),f=C.useMemo(()=>Mn(d.colors),[d.colors]),p=C.useMemo(()=>zn({colors:{surface:f.surface,border:f.border,text:f.text,textStrong:f.textStrong,hoverBg:f.hoverBg,selectedBg:f.selectedBg,selectedHoverBg:f.selectedHoverBg},boxShadow:d.boxShadow}),[f,d.boxShadow]),v={color:d.colors.neutral60,gridArea:"control"},y={backgroundColor:d.colors.primary,borderRadius:d.borderRadius,border:"solid 1px",borderColor:d.colors.primary25,color:d.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},A={components:{Option:Ph},styles:{...p,control:(k,L)=>{var D;return{...((D=p.control)==null?void 0:D.call(p,k,L))??k,gridArea:"control"}}}},m=c.getProps("controlAppSelect",A),F=i==null?void 0:i[e.nameSlug],{isLoading:E,accounts:P,refetch:T}=Ql({external_user_id:n,app:e.nameSlug,oauth_app_id:F},{useQueryOpts:{enabled:!!e,suspense:!!e}}),x=async()=>{t.connectAccount({app:l.app,oauthAppId:F,onSuccess:async k=>{await T(),s({authProvisionId:k.id})},onError:()=>{}})},H={id:"_new",name:`Connect new ${e.name} account...`},G=C.useMemo(()=>[...P,H],[P]),O=C.useMemo(()=>{if(a!=null&&a.authProvisionId){for(const k of P)if(a.authProvisionId===k.id)return k}return H},[P,a]);return I.jsx("div",{...u("controlApp",v,{app:e,...r}),children:E?`Loading ${e.name} accounts...`:P.length?I.jsx(Vn,{instanceId:o,value:O,options:G,...m,classNamePrefix:"react-select",required:!0,placeholder:`Select ${e.name} account...`,isLoading:E,isClearable:!0,isSearchable:!0,getOptionLabel:k=>k.name??"",getOptionValue:k=>k.id,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...m.styles,menuPortal:k=>({...k,zIndex:99999})},onChange:k=>{k?k.id==="_new"?x():s({authProvisionId:k.id}):s(void 0)}}):I.jsxs("button",{type:"button",...u("connectButton",y,{app:e,...r}),onClick:()=>x(),children:["Connect ",e.name]})})}const $r=e=>({color:e.colors.neutral80,backgroundColor:e.colors.neutral0,borderWidth:1,borderStyle:"solid",borderColor:e.colors.neutral20,padding:6,borderRadius:e.borderRadius,boxShadow:e.boxShadow.input,flex:1}),Hn=e=>({color:e.colors.neutral80,backgroundColor:"transparent",display:"inline-flex",alignItems:"center",padding:`${e.spacing.baseUnit}px ${e.spacing.baseUnit*1.5}px ${e.spacing.baseUnit}px ${e.spacing.baseUnit*2.5}px`,borderWidth:1,borderStyle:"solid",borderColor:e.colors.neutral30,borderRadius:e.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:e.spacing.baseUnit*2,textWrap:"nowrap"}),Kr=e=>({...Hn(e),flex:"0 0 auto",padding:"6px 8px"}),ei=()=>({gridArea:"control",display:"flex",flexDirection:"column",gap:"0.5rem"}),ti=()=>({display:"flex",gap:"0.5rem",alignItems:"center"});function Bh(){var H;const e=$e(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Ge(),l=()=>{if(!i||!Array.isArray(i))return[""];const G=i.map(O=>typeof O=="string"?O:JSON.stringify(O));return G.length>0?G:[""]},[a,s]=C.useState(l),u=C.useRef(a);C.useEffect(()=>{u.current=a},[a]);const c=()=>Array.isArray(i)?i.map(G=>typeof G=="string"?G:JSON.stringify(G)).filter(G=>G.trim()!==""):[],d=G=>G.filter(O=>O.trim()!==""),f=(G,O)=>{if(G.length!==O.length)return!1;for(let k=0;k<G.length;k+=1)if(G[k]!==O[k])return!1;return!0};C.useEffect(()=>{const G=c(),O=d(u.current);f(O,G)||s(l())},[i]),C.useEffect(()=>{s(l())},[n.name]);const p=G=>{const O=G.filter(k=>k.trim()!=="");if(O.length===0){t(void 0);return}t(O)},v=(G,O)=>{const k=[...a];k[G]=O,s(k),p(k)},y=()=>{const G=[...a,""];s(G)},A=G=>{const O=a.filter((k,L)=>L!==G);s(O.length>0?O:[""]),p(O)},m=ei(),F=ti(),E=$r(o),P=Hn(o),T=Kr(o),x=((H=a[a.length-1])==null?void 0:H.trim())||a.length>1;return I.jsxs("div",{...r("controlArray",m,e),children:[a.map((G,O)=>I.jsxs("div",{style:F,children:[I.jsx("input",{type:"text",value:G,onChange:k=>v(O,k.target.value),placeholder:"",style:E,required:!n.optional&&O===0}),a.length>1&&I.jsx("button",{type:"button",onClick:()=>A(O),style:T,"aria-label":"Remove value",children:"×"})]},O)),x&&I.jsxs("button",{type:"button",onClick:y,style:{...P,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[I.jsx("span",{children:"+"}),I.jsx("span",{children:"Add more"})]})]})}function Kl(){const e=$e(),{id:t,value:n,onChange:i}=e,{getProps:r}=Ge(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return I.jsx("input",{id:t,type:"checkbox",...r("controlBoolean",o,e),checked:n??!1,onChange:l=>i(l.target.checked)})}function ea(){const e=$e(),{id:t,onChange:n,prop:i,value:r}=e,{getProps:o,theme:l}=Ge(),a={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input};let s="off",u="text",c=p=>p;switch(i.type){case"string":break;case"integer":u="number",c=p=>p?parseInt(p):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+i.type)}"secret"in i&&i.secret&&(u="password",s="new-password");const d=at(i,"integer")?i.min:void 0,f=at(i,"integer")?i.max:void 0;return I.jsx("input",{id:t,type:u,name:i.name,value:String(r??""),onChange:p=>n(c(p.target.value)),...o("controlInput",a,e),min:d,max:f,autoComplete:s,"data-lpignore":"true","data-1p-ignore":"true",required:!i.optional})}const Fh=["GET","POST","PUT","PATCH","DELETE"],Xn=e=>{const t=(e??[]).map(n=>({key:n.name??"",value:n.value??"",disabled:n.disabled}));return t.length>0?t:[{key:"",value:""}]},ta=e=>e.filter(t=>t.key.trim()!=="").map(t=>{const n={name:t.key,value:t.value};return t.disabled!==void 0&&(n.disabled=t.disabled),n}),Th=[{value:"application/json",label:"JSON"},{value:"application/x-www-form-urlencoded",label:"Form URL Encoded"},{value:"text/plain",label:"Text"},{value:"none",label:"None"}];function na(){const e=$e(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Ge(),l=()=>{if("default"in n&&n.default&&typeof n.default=="object")return n.default},a=()=>{const V=i,g=l();return Xn((V==null?void 0:V.headers)??(g==null?void 0:g.headers))},s=()=>{const V=i,g=l();return Xn((V==null?void 0:V.params)??(g==null?void 0:g.params))},u=()=>{var le,Q;const V=i,g=l();return((le=V==null?void 0:V.body)==null?void 0:le.raw)??((Q=g==null?void 0:g.body)==null?void 0:Q.raw)??""},c=()=>{var le,Q;const V=i,g=l();return((le=V==null?void 0:V.body)==null?void 0:le.contentType)??((Q=g==null?void 0:g.body)==null?void 0:Q.contentType)??"application/json"},d=()=>{const V=i,g=l();return{url:(V==null?void 0:V.url)??(g==null?void 0:g.url)??"",method:(V==null?void 0:V.method)??(g==null?void 0:g.method)??"GET",headers:a(),params:s(),body:u(),bodyContentType:c()}},[f,p]=C.useState(d);C.useEffect(()=>{var b,ge,ee,re;const V=i,g=l(),le=Xn((V==null?void 0:V.headers)??(g==null?void 0:g.headers)),Q=Xn((V==null?void 0:V.params)??(g==null?void 0:g.params));p({url:(V==null?void 0:V.url)??(g==null?void 0:g.url)??"",method:(V==null?void 0:V.method)??(g==null?void 0:g.method)??"GET",headers:le,params:Q,body:((b=V==null?void 0:V.body)==null?void 0:b.raw)??((ge=g==null?void 0:g.body)==null?void 0:ge.raw)??"",bodyContentType:((ee=V==null?void 0:V.body)==null?void 0:ee.contentType)??((re=g==null?void 0:g.body)==null?void 0:re.contentType)??"application/json"})},[i]);const v=V=>{const g=ta(V.headers),le=ta(V.params),Q={contentType:V.bodyContentType,type:"raw",mode:"raw"};return V.bodyContentType!=="none"&&V.body.trim()&&(Q.raw=V.body),{url:V.url,method:V.method,headers:g,params:le,body:Q}},y=V=>{const g={...f,url:V};p(g),t(v(g))},A=V=>{const g={...f,method:V};p(g),t(v(g))},m=(V,g,le)=>{const Q=[...f.headers];Q[V]={...Q[V],[g]:le};const b={...f,headers:Q};p(b),t(v(b))},F=()=>{const V=[...f.headers,{key:"",value:""}];p({...f,headers:V})},E=V=>{const g=f.headers.filter((b,ge)=>ge!==V),le=g.length>0?g:[{key:"",value:""}],Q={...f,headers:le};p(Q),t(v(Q))},P=V=>{const g={...f,bodyContentType:V};p(g),t(v(g))},T=V=>{const g={...f,body:V};p(g),t(v(g))},x=ei(),H=ti(),G=$r(o),O=Hn(o),k=Kr(o),L={display:"flex",flexDirection:"column",gap:`${o.spacing.baseUnit}px`},D={fontSize:"0.75rem",fontWeight:500,color:o.colors.neutral70},R={...G,cursor:"pointer"},U={...G,cursor:"pointer",flex:"none",width:"85px",borderTopRightRadius:0,borderBottomRightRadius:0,borderRightWidth:0},Y={...G,borderTopLeftRadius:0,borderBottomLeftRadius:0,flex:1},j={...G,resize:"vertical",minHeight:"80px",fontFamily:"monospace"},ae={display:"flex",alignItems:"stretch"},se=`http-request-${n.name}`;return I.jsxs("div",{...r("controlHttpRequest",x,e),children:[I.jsxs("div",{style:L,children:[I.jsx("span",{style:D,children:"URL"}),I.jsxs("div",{style:ae,children:[I.jsx("select",{value:f.method,onChange:V=>A(V.target.value),style:U,"aria-label":"HTTP method",children:Fh.map(V=>I.jsx("option",{value:V,children:V},V))}),I.jsx("input",{type:"text",value:f.url,onChange:V=>y(V.target.value),placeholder:"https://api.example.com/endpoint",style:Y,required:!n.optional,"aria-label":"URL"})]})]}),I.jsxs("div",{style:L,children:[I.jsx("span",{style:D,children:"Headers"}),f.headers.map((V,g)=>I.jsxs("div",{style:H,children:[I.jsx("input",{type:"text",value:V.key,onChange:le=>m(g,"key",le.target.value),placeholder:"Header name",style:G,"aria-label":`Header ${g+1} name`}),I.jsx("input",{type:"text",value:V.value,onChange:le=>m(g,"value",le.target.value),placeholder:"Header value",style:G,"aria-label":`Header ${g+1} value`}),f.headers.length>1&&I.jsx("button",{type:"button",onClick:()=>E(g),style:k,"aria-label":`Remove header ${g+1}`,children:"x"})]},g)),I.jsxs("button",{type:"button",onClick:F,style:{...O,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[I.jsx("span",{children:"+"}),I.jsx("span",{children:"Add header"})]})]}),I.jsxs("div",{style:L,children:[I.jsx("label",{htmlFor:`${se}-body-type`,style:D,children:"Body"}),I.jsx("select",{id:`${se}-body-type`,value:f.bodyContentType,onChange:V=>P(V.target.value),style:R,children:Th.map(V=>I.jsx("option",{value:V.value,children:V.label},V.value))}),f.bodyContentType!=="none"&&I.jsx("textarea",{value:f.body,onChange:V=>T(V.target.value),placeholder:f.bodyContentType==="application/json"?'{"key": "value"}':"Request body",style:j,rows:4,"aria-label":"Request body"})]})]})}function Gh(){const e=$e(),{onChange:t,prop:n,value:i}=e,{getProps:r,theme:o}=Ge(),l=E=>{if(E===null||typeof E!="object"||E instanceof Date||E instanceof Function||E instanceof RegExp)return!1;const P=Object.getPrototypeOf(E);return P===Object.prototype||P===null},a=()=>{if(!i||typeof i!="object"||Array.isArray(i))return[{key:"",value:""}];if(!l(i))return[{key:"",value:""}];const E=Object.entries(i).map(([P,T])=>({key:P,value:typeof T=="string"?T:(()=>{try{return JSON.stringify(T)}catch{return String(T)}})()}));return E.length>0?E:[{key:"",value:""}]},[s,u]=C.useState(a);C.useEffect(()=>{if(!i||typeof i!="object"||Array.isArray(i)){u([{key:"",value:""}]);return}if(!l(i)){u([{key:"",value:""}]);return}const E=Object.entries(i).map(([P,T])=>({key:P,value:typeof T=="string"?T:(()=>{try{return JSON.stringify(T)}catch{return String(T)}})()}));u(E.length>0?E:[{key:"",value:""}])},[i]);const c=E=>{const P=E.filter(x=>x.key.trim()!=="");if(P.length===0){t(void 0);return}const T={};P.forEach(x=>{if(x.key.trim())try{T[x.key]=JSON.parse(x.value)}catch{T[x.key]=x.value}}),t(T)},d=(E,P,T)=>{const x=[...s];x[E]={...x[E],[P]:T},u(x),c(x)},f=()=>{const E=[...s,{key:"",value:""}];u(E)},p=E=>{const P=s.filter((T,x)=>x!==E);u(P.length>0?P:[{key:"",value:""}]),c(P)},v=ei(),y=ti(),A=$r(o),m=Hn(o),F=Kr(o);return I.jsxs("div",{...r("controlObject",v,e),children:[s.map((E,P)=>I.jsxs("div",{style:y,children:[I.jsx("input",{type:"text",value:E.key,onChange:T=>d(P,"key",T.target.value),placeholder:"Key",style:A,required:!n.optional&&P===0}),I.jsx("input",{type:"text",value:E.value,onChange:T=>d(P,"value",T.target.value),placeholder:"Value",style:A}),s.length>1&&I.jsx("button",{type:"button",onClick:()=>p(P),style:F,"aria-label":"Remove pair",children:"×"})]},P)),I.jsxs("button",{type:"button",onClick:f,style:{...m,alignSelf:"flex-start",paddingRight:`${o.spacing.baseUnit*2}px`},children:[I.jsx("span",{children:"+"}),I.jsx("span",{children:"Add more"})]})]})}var Oh=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ra=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=String(t).toLowerCase(),o=String(i.getOptionValue(n)).toLowerCase(),l=String(i.getOptionLabel(n)).toLowerCase();return o===r||l===r},ni={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,i,r){return!(!t||n.some(function(o){return ra(t,o,r)})||i.some(function(o){return ra(t,o,r)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Vh(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,i=e.createOptionPosition,r=i===void 0?"last":i,o=e.formatCreateLabel,l=o===void 0?ni.formatCreateLabel:o,a=e.isValidNewOption,s=a===void 0?ni.isValidNewOption:a,u=e.getNewOptionData,c=u===void 0?ni.getNewOptionData:u,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,v=e.onChange,y=st(e,Oh),A=y.getOptionValue,m=A===void 0?Gl:A,F=y.getOptionLabel,E=F===void 0?Tl:F,P=y.inputValue,T=y.isLoading,x=y.isMulti,H=y.value,G=y.name,O=C.useMemo(function(){return s(P,kn(H),p,{getOptionValue:m,getOptionLabel:E})?c(P,l(P)):void 0},[l,c,E,m,P,s,p,H]),k=C.useMemo(function(){return(n||!T)&&O?r==="first"?[O].concat(Lt(p)):[].concat(Lt(p),[O]):p},[n,r,T,O,p]),L=C.useCallback(function(D,R){if(R.action!=="select-option")return v(D,R);var U=Array.isArray(D)?D:[D];if(U[U.length-1]===O){if(d)d(P);else{var Y=c(P,P),j={action:"create-option",name:G,option:Y};v($t(x,[].concat(Lt(kn(H)),[Y]),Y),j)}return}v(D,R)},[c,P,x,G,O,d,v,H]);return ne(ne({},y),{},{options:k,onChange:L})}var Nh=C.forwardRef(function(e,t){var n=Jo(e),i=Vh(n);return me.createElement(qr,ie({ref:t},i))}),Dh=Nh;function Wn({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:i,onLoadMore:r,components:o}){const l=$e(),{id:a,prop:s,value:u,onChange:c}=l,{select:d,theme:f}=Ge(),p=C.useMemo(()=>Mn(f.colors),[f.colors]),v=C.useMemo(()=>zn({colors:{surface:p.surface,border:p.border,text:p.text,textStrong:p.textStrong,hoverBg:p.hoverBg,selectedBg:p.selectedBg,selectedHoverBg:p.selectedHoverBg},boxShadow:f.boxShadow}),[p,f.boxShadow]),[y,A]=C.useState(t),[m,F]=C.useState(u);C.useEffect(()=>{const R=t.map(De);A(R)},[t]),C.useEffect(()=>{F(u)},[u]);const E=C.useMemo(()=>{if(m==null)return null;if(Or(m)){const R=m.__lv;return Array.isArray(R)?R.map(U=>De(U)):De(R)}if(Xo(m))return m.map(R=>De(R));if(Array.isArray(m)){if(!Gr(m[0]))return m.map(R=>y.find(U=>U.value===R)||De(R))}else if(!Gr(m))if((y==null?void 0:y[0])&&Gr(y[0])){for(const U of y)if(U.value===m)return U}else return De(m);return null},[m,y]),P=d.getProps("controlSelect",{styles:v}),T=C.useRef(r);C.useEffect(()=>{T.current=r},[r]);const x=C.useRef(i);x.current=i;const H=C.useMemo(()=>{const R={...P.components??{},...o??{}},U=R.MenuList??Mt.MenuList,Y=({children:j,...ae})=>I.jsxs(U,{...ae,children:[j,x.current&&I.jsx("div",{className:"pt-4",children:I.jsx(_l,{onChange:()=>{var se;return(se=T.current)==null?void 0:se.call(T)}})})]});return Y.displayName="CustomMenuList",{...R,MenuList:Y}},[o,P.components]),G=R=>{const U=De(R);let Y=U;const j=y.map(De),ae=[U,...j];A(ae),s.type.endsWith("[]")&&(Array.isArray(m)?Y=[...m.map(De),U]:Y=[U]),F(Y),O(Y)},O=R=>{if(R)if(Array.isArray(R))typeof R[0]=="object"&&R[0]&&"value"in R[0]?c({__lv:R}):c(R);else if(typeof R=="object"&&R&&"value"in R)c({__lv:R});else throw new Error("unhandled option type");else c(void 0)},k={onCreateOption:s.remoteOptions?G:void 0},L=e?Dh:Vn,D=y.map(De);return I.jsx(L,{inputId:a,instanceId:a,options:D,value:E,isMulti:s.type.endsWith("[]"),isClearable:!0,required:!s.optional,getOptionLabel:R=>De(R).label,getOptionValue:R=>String(De(R).value),onChange:O,classNamePrefix:P.classNamePrefix||"react-select",classNames:P.classNames,theme:P.theme,...n,...k,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...P.styles,...(n==null?void 0:n.styles)??{},container:R=>({...R,gridArea:"control"}),menuPortal:R=>({...R,zIndex:99999})},components:H})}const Lh=e=>typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string";function ia(){var d;const e=$e(),{id:t,onChange:n,prop:i,value:r}=e;if(!at(i,"sql"))throw new Error("ControlSql used with non-sql prop");const{getProps:o,theme:l}=Ge(),a=((d=i.auth)==null?void 0:d.app)||"postgresql";let s="";Lh(r)?s=r.query:typeof r=="string"&&(s=r);const u=f=>{n({app:a,query:f,params:[]})},c={color:l.colors.neutral60,display:"block",border:"1px solid",borderColor:l.colors.neutral20,padding:6,width:"100%",borderRadius:l.borderRadius,gridArea:"control",boxShadow:l.boxShadow.input,fontSize:"0.875rem",fontFamily:"monospace",minHeight:"120px",resize:"vertical"};return I.jsx("textarea",{id:t,name:i.name,value:s,onChange:f=>u(f.target.value),placeholder:"SELECT * FROM table_name",required:!i.optional,...o("controlSql",c,e)})}const ri=e=>De(e).value??null;function oa({queryEnabled:e}){const t=lt(),{externalUserId:n,component:i,configurableProps:r,configuredProps:o,dynamicProps:l,props:{disableQueryDisabling:a}}=qt(),{idx:s,prop:u,onChange:c}=$e(),[d,f]=C.useState(""),[p,v]=C.useState(0),[y,A]=C.useState(void 0),[m,F]=C.useState(void 0),[E,P]=C.useState(!0),[T,x]=C.useState([]),[H,G]=C.useState(new Set),O=C.useMemo(()=>{const ce={};for(let we=0;we<s;we++){const Ie=r[we];ce[Ie.name]=o[Ie.name]}return ce},[s,r,o]),k=C.useMemo(()=>{const ce=r.find(we=>we.type==="app");return ce?o[ce.name]:void 0},[r,o]),L=C.useMemo(()=>{const ce={externalUserId:n,page:p,prevContext:y,id:i.key,propName:u.name,configuredProps:O,dynamicPropsId:l==null?void 0:l.id};return u.useQuery&&(ce.query=d||""),ce},[n,p,y,i.key,u.name,u.useQuery,O,l==null?void 0:l.id,d]),D=C.useMemo(()=>L,[L]),[R,U]=C.useState(),Y=()=>{v(ce=>ce+1),A(m)},j=JSON.stringify(D),ae=JSON.stringify(k),se=C.useRef(),V=C.useRef(),g=C.useMemo(()=>{const{page:ce,prevContext:we,...Ie}=L;return JSON.stringify(Ie)},[L]),le=C.useMemo(()=>r.some(ce=>ce.type==="app"),[r]),Q=C.useMemo(()=>!(!e||le&&!k),[e,le,k]),{data:b,isFetching:ge,refetch:ee,dataUpdatedAt:re}=nt.useQuery({queryKey:["componentConfigure",D],queryFn:async()=>{const ce=await t.components.configureProp(L),{options:we,stringOptions:Ie,errors:Oe}=ce;if(Oe!=null&&Oe.length){let Ee;try{Ee=JSON.parse(Oe[0])}catch{Ee={name:"Error",message:Oe[0]}}return{error:Ee,options:[],context:ce.context}}const ye=(Ie==null?void 0:Ie.map(Ee=>({label:Ee,value:Ee})))??[];return{error:void 0,options:[...we??[],...ye],context:ce.context}},enabled:Q});C.useEffect(()=>{if(!b)return;if(b.error){U(b.error);return}U(void 0),F(b.context);const ce=p===0;let we=!1;G(Ie=>{const Oe=ce?new Set:Ie,ye=new Set(Oe);for(const Ne of b.options){const Ee=ri(Ne);if(Ee===null){console.warn("Skipping invalid option:",Ne);continue}ye.has(Ee)||(ye.add(Ee),we=!0)}return ye}),x(Ie=>{const Oe=ce?[]:Ie,ye=[],Ne=new Set;if(!ce)for(const Ee of Oe){const We=ri(Ee);We!==null&&Ne.add(We)}for(const Ee of b.options){const We=ri(Ee);We!==null&&(Ne.has(We)||(Ne.add(We),ye.push(Ee)))}return ye.length?[...Oe,...ye]:Ie}),we||P(!1)},[b,p,re,j]),C.useEffect(()=>{if(!se.current){se.current=g;return}se.current!==g&&(v(0),A(void 0),F(void 0),P(!0),x([]),G(new Set)),se.current=g},[g]),C.useEffect(()=>{V.current&&V.current!==ae&&(c(void 0),k!=null&&Q&&ee()),V.current=ae},[ae,c,Q,k,ee]);const ve=C.useMemo(()=>!ge&&!R&&E,[ge,R,E]),ue=R?R.message:a?"Click to configure":Q?void 0:"Configure props above first",Pe=a?!1:!Q;return I.jsx(Wn,{isCreatable:!0,showLoadMoreButton:ve,onLoadMore:Y,options:T.map(De),selectProps:{isLoading:ge,placeholder:ue,isDisabled:Pe,inputValue:u.useQuery?d:void 0,onInputChange(ce){u.useQuery&&(f(ce),ee())},onMenuOpen(){a&&!Q&&ee()}}})}function la(e){const{field:t,form:n}=e,{queryDisabledIdx:i}=n,{prop:r,idx:o}=t,l="app"in t.extra?t.extra.app:void 0;if(r.remoteOptions||r.type==="$.discord.channel"||r.type==="$.discord.channel[]")return I.jsx(oa,{queryEnabled:i==null||i>=o});if("options"in r&&Array.isArray(r.options)&&r.options.length>0){const a=r.options.map(De);return I.jsx(Wn,{options:a,components:{IndicatorSeparator:()=>null}})}if(r.type.endsWith("[][]"))throw new Error("Unsupported property type: "+r.type);if(r.type.endsWith("[]"))return!("options"in r)||!r.options?I.jsx(Bh,{}):I.jsx(Wn,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(r.type){case"app":return I.jsx($l,{app:l});case"boolean":return I.jsx(Kl,{});case"string":case"integer":return I.jsx(ea,{});case"object":return I.jsx(Gh,{});case"sql":return I.jsx(ia,{});case"http_request":return I.jsx(na,{});default:throw new Error("Unsupported property type: "+r.type)}}function aa(e){const{form:t,field:n}=e,{prop:i}=n,{getProps:r,getComponents:o}=Ge(),l={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:a,Description:s,Errors:u}=o(),c="app"in n.extra?n.extra.app:void 0;if(c&&!c.authType)return null;let d=i.label||i.name;c&&(d=`Connect ${c.name} account`);const f=e;return I.jsxs("div",{...r("field",l,f),children:[I.jsx(a,{text:d,field:n,form:t}),I.jsx(la,{field:n,form:t}),I.jsx(s,{markdown:i.description,field:n,form:t}),I.jsx(u,{field:n,form:t})]})}const sa=(e,t)=>{var r;const n=lt(),i=nt.useQuery({queryKey:["app",e],queryFn:()=>n.apps.retrieve(e),...t==null?void 0:t.useQueryOpts});return{...i,app:(r=i.data)==null?void 0:r.data}};function ua({prop:e,idx:t}){const n=qt(),{id:i,configuredProps:r,registerField:o,setConfiguredProp:l,errors:a,enableDebugging:s}=n;let u;at(e,"app")&&(u=e.app);const{app:c}=sa(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),d=`pd${i}${e.name}`,f=C.useCallback(v=>{l(t,v)},[t,e.name,l]),p={id:d,prop:e,idx:t,value:r[e.name],onChange:f,extra:{app:c},errors:a,enableDebugging:s};return C.useEffect(()=>{o(p)},[e.name,o]),I.jsx(Qr.Provider,{value:p,children:I.jsx(aa,{field:p,form:n})})}class ca extends C.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function da(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:i}=t,{getProps:r,theme:o}=Ge(),l=a=>{var s;return{width:"fit-content",textTransform:"capitalize",backgroundColor:a?o.colors.neutral10:o.colors.primary,color:a?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(s=o.boxShadow)==null?void 0:s.button,cursor:"pointer",fontSize:"0.875rem",opacity:i?.5:void 0,margin:"0.5rem 0 0 0"}};return I.jsx("input",{type:"submit",value:i?"Submitting...":"Submit",...r("controlSubmit",l(!!n.length||i),e),disabled:!!n.length||i})}const Mh=["ConfigurationError"];function pa(){const e=qt(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:i,optionalPropIsEnabled:r,optionalPropSetEnabled:o,props:l,setSubmitting:a,sdkErrors:s,submitting:u,enableDebugging:c}=e,d=c||s.filter(k=>Mh.includes(k.name)).length>0,{hideOptionalProps:f,onSubmit:p}=l,[v,y]=C.useState([]);C.useEffect(()=>{u?y([]):s&&s.length&&y(s.map(k=>({type:"alert",alertType:"error",content:`# ${k.name}
|
|
21
|
+
${k.message}`,name:k.name})))},[s,u]);const{getComponents:A,getProps:m,theme:F}=Ge(),{OptionalFieldButton:E}=A(),P={display:"flex",flexDirection:"column",gap:"1.5rem"},T={display:"flex",flexWrap:"wrap",gap:"0.375rem"},x={fontWeight:600,textTransform:"capitalize",color:F.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},H=async k=>{if(p&&(k.preventDefault(),i)){a(!0);try{await p(e)}finally{a(!1)}}},G=[],O=[];for(let k=0;k<t.length;k++){const L=t[k];if(!L.hidden&&!Ut.includes(L.type)){if(L.optional){const D=r(L);if(O.push([L,D]),!D)continue}G.push([L,k])}}return I.jsx(ca,{fallback:k=>I.jsxs("p",{style:{color:"red"},children:["Error: ",k&&typeof k=="object"&&"message"in k&&typeof k.message=="string"?k.message:"Unknown"]}),children:I.jsx(C.Suspense,{fallback:I.jsx("p",{children:"Loading form..."}),children:I.jsxs("form",{...m("componentForm",P,l),onSubmit:H,children:[G.map(([k,L])=>at(k,"alert")?I.jsx(yn,{prop:k},k.name):I.jsx(ua,{prop:k,idx:L},k.name)),n&&I.jsx("p",{children:"Loading dynamic props..."}),!f&&O.length?I.jsxs("div",{children:[I.jsx("div",{...m("heading",x,l),children:"Optional Props"}),I.jsx("div",{...m("optionalFields",T,l),children:O.map(([k,L])=>I.jsx(E,{prop:k,enabled:L,onClick:()=>o(k,!L)},k.name))})]}):null,d&&(v==null?void 0:v.map((k,L)=>I.jsx(yn,{prop:k},L))),p&&I.jsx(da,{form:e})]})})})}function fa(e){return I.jsx(Wo,{props:e,children:I.jsx(pa,{})})}const ga=({key:e},t)=>{var r;const n=lt(),i=nt.useQuery({queryKey:["component",e],queryFn:()=>n.components.retrieve(e),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...i,component:(r=i.data)==null?void 0:r.data}};function zh(e){const{isLoading:t,error:n,component:i}=ga({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?I.jsx("p",{children:"Loading..."}):n?I.jsxs("p",{children:["Error: ",n.message]}):i?I.jsx(fa,{component:i,...e}):I.jsx("p",{children:"Component not found"})}function Hh(){const e=$e(),{id:t,onChange:n,value:i}=e,{getProps:r,theme:o}=Ge(),l={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let a=i;return typeof a=="object"&&(a=JSON.stringify(a)),I.jsx("textarea",{id:t,value:a,onChange:s=>n(s.target.value),...r("controlAny",l,e)})}const ha=e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.hasNextPage=="function"&&typeof t.getNextPage=="function"},ma=e=>{const t=Object.getPrototypeOf(e);return Object.assign(Object.create(t??Object.prototype),e)};function Xh(){const e=C.useRef(!1);return C.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ba(){const[e,t]=C.useState([]),[n,i]=C.useState(!1),[r,o]=C.useState(!1),[l,a]=C.useState(),s=C.useRef(null),u=C.useRef(),c=Xh(),d=C.useCallback((p,v)=>{var F;const y=ma(p),A=(((F=u.current)==null?void 0:F.version)??0)+1;u.current={version:A},s.current=y;const m=y.data?y.data.slice():[];t(m),i(y.hasNextPage()),o(!1),a(void 0)},[]),f=C.useCallback(async()=>{var A,m,F;const p=u.current,v=s.current;if(!p||!v||!n||r)return;const y=p.version;o(!0);try{const E=await v.getNextPage();if(!c.current||y!==(((A=u.current)==null?void 0:A.version)??0))return;const P=ma(E);s.current=P,t(T=>!P.data||P.data.length===0?T:T.concat(P.data)),i(P.hasNextPage()),a(void 0)}catch(E){if(!c.current||y!==(((m=u.current)==null?void 0:m.version)??0))return;a(E instanceof Error?E:new Error(String(E)))}finally{c.current&&y===(((F=u.current)==null?void 0:F.version)??0)&&o(!1)}},[n,r,c]);return{items:e,hasMore:n,isLoadingMore:r,loadMoreError:l,loadMore:f,resetWithPage:d}}const ya=e=>{const t=lt(),{items:n,hasMore:i,isLoadingMore:r,loadMore:o,loadMoreError:l,resetWithPage:a}=ba(),s=C.useRef(),u=nt.useQuery({queryKey:["apps",e],queryFn:()=>t.apps.list({limit:50,...e})});return C.useEffect(()=>{const c=JSON.stringify(e??null),d=s.current!==u.data;!u.data||!ha(u.data)||!d||(s.current=u.data,a(u.data,c))},[u.data,e,a]),{...u,apps:n,isLoadingMore:r,hasMore:i,loadMore:o,loadMoreError:l}};function Wh({value:e,onChange:t,appsOptions:n}){const[i,r]=C.useState(""),[o,l]=C.useState(""),a=C.useId();C.useEffect(()=>{const k=setTimeout(()=>{l(i)},300);return()=>clearTimeout(k)},[i]);const{isLoading:s,isLoadingMore:u,hasMore:c,loadMore:d,apps:f}=ya({...n??{},q:o}),{Option:p,SingleValue:v,MenuList:y}=Mt,{select:A,theme:m}=Ge(),F=C.useRef(u);F.current=u;const E=C.useMemo(()=>(f==null?void 0:f.find(k=>k.nameSlug===(e==null?void 0:e.nameSlug)))||(e!=null&&e.nameSlug?e:null),[f,e==null?void 0:e.nameSlug]),P=C.useCallback(()=>{c&&!u&&d()},[c,u,d]),T=C.useMemo(()=>Mn(m.colors),[m.colors]),H={styles:C.useMemo(()=>zn({colors:{surface:T.surface,border:T.border,text:T.text,textStrong:T.textStrong,hoverBg:T.hoverBg,selectedBg:T.selectedBg,selectedHoverBg:T.selectedHoverBg},boxShadow:m.boxShadow}),[T,m.boxShadow])},G=A.getProps("selectApp",H),O=C.useMemo(()=>({Option:k=>I.jsx(p,{...k,children:I.jsxs("div",{style:{display:"flex",gap:10},children:[I.jsx("img",{src:`https://pipedream.com/s.v0/${k.data.id}/logo/48`,style:{height:24,width:24,backgroundColor:T.appIconBg,borderRadius:6,padding:2},alt:k.data.name}),I.jsx("span",{style:{whiteSpace:"nowrap"},children:k.data.name})]})}),SingleValue:k=>I.jsx(v,{...k,children:I.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[I.jsx("img",{src:`https://pipedream.com/s.v0/${k.data.id}/logo/48`,style:{height:24,width:24,backgroundColor:T.appIconBg,borderRadius:6,padding:2},alt:k.data.name}),I.jsx("span",{style:{whiteSpace:"nowrap"},children:k.data.name})]})}),MenuList:k=>I.jsxs(y,{...k,children:[k.children,F.current&&I.jsx("div",{style:{padding:"8px 12px",textAlign:"center",color:"#666",fontSize:"14px"},children:"Loading more apps..."})]}),IndicatorSeparator:()=>null}),[p,v,y,T.appIconBg]);return I.jsx(Vn,{instanceId:a,className:"react-select-container text-sm",...G,classNamePrefix:"react-select",components:{...G.components,...O},options:f||[],getOptionLabel:k=>k.name||k.nameSlug,getOptionValue:k=>k.nameSlug,value:E,onChange:k=>t==null?void 0:t(k||void 0),onInputChange:(k,{action:L})=>{L==="input-change"&&r(k)},onMenuScrollToBottom:P,isLoading:s,menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...G.styles??{},menuPortal:k=>({...k,zIndex:99999})}})}const va=e=>{const t=lt(),{items:n,hasMore:i,isLoadingMore:r,loadMore:o,loadMoreError:l,resetWithPage:a}=ba(),s=C.useRef(),u=nt.useQuery({queryKey:["components",e],queryFn:()=>t.components.list({limit:50,...e})});return C.useEffect(()=>{const c=JSON.stringify(e??null),d=s.current!==u.data;!u.data||!ha(u.data)||!d||(s.current=u.data,a(u.data,c))},[u.data,e,a]),{...u,components:n,isLoadingMore:r,hasMore:i,loadMore:o,loadMoreError:l}};function Rh({app:e,componentType:t,value:n,onChange:i,componentsOptions:r}){const o=C.useId(),{isLoading:l,isLoadingMore:a,hasMore:s,loadMore:u,components:c}=va({...r??{},app:e==null?void 0:e.nameSlug,componentType:t}),{MenuList:d}=Mt,{select:f,theme:p}=Ge(),v=C.useMemo(()=>Mn(p.colors),[p.colors]),y=C.useMemo(()=>zn({colors:{surface:v.surface,border:v.border,text:v.text,textStrong:v.textStrong,hoverBg:v.hoverBg,selectedBg:v.selectedBg,selectedHoverBg:v.selectedHoverBg},boxShadow:p.boxShadow}),[v,p.boxShadow]),A=C.useRef(a);A.current=a;const m=C.useMemo(()=>(c==null?void 0:c.find(x=>x.key===(n==null?void 0:n.key)))||null,[c,n==null?void 0:n.key]),F=C.useCallback(()=>{s&&!a&&u()},[s,a,u]),E={styles:y},P=f.getProps("selectComponent",E),T=C.useMemo(()=>({MenuList:x=>I.jsxs(d,{...x,children:[x.children,A.current&&I.jsxs("div",{style:{padding:"8px 12px",textAlign:"center",color:"#666",fontSize:"14px"},children:["Loading more ",t==="action"?"actions":"triggers","..."]})]}),IndicatorSeparator:()=>null}),[t,d]);return I.jsx(Vn,{instanceId:o,className:"react-select-container text-sm",...P,classNamePrefix:"react-select",options:c,getOptionLabel:x=>x.name||x.key,getOptionValue:x=>x.key,value:m,onChange:x=>i==null?void 0:i(x||void 0),onMenuScrollToBottom:F,isLoading:l,components:{...P.components,...T},menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed",styles:{...P.styles??{},menuPortal:x=>({...x,zIndex:99999})}})}const Zh=()=>I.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[I.jsx("title",{children:"Folder"}),I.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z",fill:"#93c5fd",stroke:"#3b82f6"})]}),jh=()=>I.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[I.jsx("title",{children:"File"}),I.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",fill:"#f3f4f6",stroke:"#9ca3af"}),I.jsx("polyline",{points:"14 2 14 8 20 8",fill:"#e5e7eb",stroke:"#9ca3af"})]}),Ia=()=>I.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[I.jsx("title",{children:"Refresh"}),I.jsx("path",{d:"M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"})]}),Jh=`
|
|
22
|
+
@keyframes filePickerSpin {
|
|
23
|
+
from { transform: rotate(0deg); }
|
|
24
|
+
to { transform: rotate(360deg); }
|
|
25
|
+
}
|
|
26
|
+
`,Yh=e=>{if(e==null)return"";if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB","TB","PB"],i=Math.min(Math.floor(Math.log(e)/Math.log(t)),n.length-1);return`${parseFloat((e/Math.pow(t,i)).toFixed(1))} ${n[i]}`},_h=e=>e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}):"",Uh={folder:I.jsx(Zh,{}),file:I.jsx(jh,{})},qh=(e,t)=>({container:{display:"flex",flexDirection:"column",backgroundColor:e.colors.neutral0,borderRadius:"8px",overflow:"hidden",border:`1px solid ${e.colors.neutral20}`,height:"100%",minHeight:"300px"},header:{padding:"12px 16px",borderBottom:`1px solid ${e.colors.neutral10}`,display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},breadcrumb:{display:"flex",alignItems:"center",gap:"4px",fontSize:"13px"},breadcrumbItem:{color:e.colors.primary,cursor:"pointer",padding:"2px 4px",borderRadius:"4px"},breadcrumbSeparator:{color:e.colors.neutral40},list:{flex:1,overflowY:"auto",listStyle:"none",margin:0,padding:0},item:{display:"flex",alignItems:"center",padding:"10px 16px",cursor:"pointer",borderBottom:`1px solid ${e.colors.neutral10}`,transition:"background-color 0.1s"},itemIcon:{marginRight:"10px",fontSize:"16px",display:"flex",alignItems:"center"},itemName:{flex:1,fontSize:"14px",color:e.colors.neutral80},checkbox:{marginRight:"10px",width:"16px",height:"16px",cursor:"pointer",accentColor:e.colors.primary},chevron:{color:e.colors.neutral30,marginLeft:"8px"},footer:{padding:"12px 16px",borderTop:`1px solid ${e.colors.neutral10}`,display:"flex",justifyContent:"space-between",alignItems:"center"},selectionCount:{fontSize:"13px",color:e.colors.neutral60},buttonGroup:{display:"flex",gap:"8px"},buttonBase:{padding:"8px 16px",fontSize:"14px",borderRadius:"6px",cursor:"pointer",border:"none",transition:"background-color 0.15s, opacity 0.15s"},cancelButton:{padding:"8px 16px",fontSize:"14px",borderRadius:"6px",cursor:"pointer",border:"none",transition:"background-color 0.15s, opacity 0.15s",backgroundColor:e.colors.neutral10,color:e.colors.neutral80},confirmButton:{padding:"8px 16px",fontSize:"14px",borderRadius:"6px",cursor:"pointer",border:"none",transition:"background-color 0.15s, opacity 0.15s",backgroundColor:e.colors.primary,color:"#fff",opacity:t===0?.5:1},loading:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.neutral40,fontSize:"14px"},error:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.danger||"#dc2626",fontSize:"14px",padding:"20px",textAlign:"center"},empty:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.neutral40,fontSize:"14px"}}),Qh=150,xa={sharepoint:{app:"sharepoint",appPropName:"sharepoint",propHierarchy:["siteId","driveId","fileOrFolderIds"],propLabels:{siteId:"Sites",driveId:"Drives",fileOrFolderIds:"Files & Folders"},fileOrFolderProp:"fileOrFolderIds",folderProp:"folderId"},sharepoint_admin:{app:"sharepoint_admin",appPropName:"sharepointAdmin",propHierarchy:["siteId","driveId","fileOrFolderIds"],propLabels:{siteId:"Sites",driveId:"Drives",fileOrFolderIds:"Files & Folders"},fileOrFolderProp:"fileOrFolderIds",folderProp:"folderId"}},Ca=({componentKey:e,app:t,accountId:n,externalUserId:i,onSelect:r,onCancel:o,initialConfiguredProps:l,confirmText:a="Select",cancelText:s="Cancel",selectFolders:u=!0,selectFiles:c=!0,multiSelect:d=!1,appConfig:f,debug:p=!1,showIcons:v=!0,icons:y})=>{const A=lt(),{theme:m}=Ge(),F={...Uh,...y},E=f||xa[t],P=!!E,{propHierarchy:T=[],fileOrFolderProp:x="",folderProp:H="",appPropName:G=t}=E||{},O=C.useCallback((...S)=>{p&&console.log("[ConfigureFilePicker]",...S)},[p]),[k,L]=C.useState(()=>{const S={[G]:{authProvisionId:n}};return l?{...S,...l}:S}),[D,R]=C.useState([]),[U,Y]=C.useState(()=>{if(!l||!x)return[];const S=l[x];if(!Array.isArray(S))return[];const N=[];for(const Z of S)try{const z=typeof Z=="string"?JSON.parse(Z):Z;if(z&&typeof z=="object"){const{id:he,name:Ce,isFolder:B,size:X,childCount:J,lastModifiedDateTime:_}=z;N.push({id:String(he??""),label:String(Ce??""),value:z,isFolder:!!B,size:typeof X=="number"?X:void 0,childCount:typeof J=="number"?J:void 0,lastModifiedDateTime:typeof _=="string"?_:void 0})}}catch{}return N}),[j,ae]=C.useState(T[0]||""),[se,V]=C.useState(!1),g=C.useRef(null),[le,Q]=C.useState("");C.useEffect(()=>{for(const S of T)if(!k[S]){ae(S);return}ae(x)},[k,T,x]);const{data:b,isLoading:ge,error:ee,refetch:re,isFetching:ve}=nt.useQuery({queryKey:["configureFilePicker",e,j,k,i],queryFn:async()=>{var N;O("Fetching options for prop:",j),O("configuredProps:",JSON.stringify(k,null,2));const S=await A.components.configureProp({externalUserId:i,id:e,propName:j,configuredProps:k});return O("Response for",j,":",{optionsCount:((N=S.options)==null?void 0:N.length)||0,errors:S.errors}),S},enabled:!!n&&!!j});C.useEffect(()=>(ge?g.current=setTimeout(()=>{V(!0)},Qh):(g.current&&(clearTimeout(g.current),g.current=null),V(!1)),()=>{g.current&&clearTimeout(g.current)}),[ge]);const ue=((b==null?void 0:b.options)||[]).map(S=>{const N=De(S),Z=N.label,z=typeof N.value=="string"?N.value:JSON.stringify(N.value);let he=!1,Ce=z,B=Z.replace(/^📁\s*/,"").replace(/^📄\s*/,""),X,J,_,$=z;try{const fe=JSON.parse(z);$=fe,fe&&typeof fe=="object"&&(Ce=fe.id||z,B=fe.name||B,he=!!fe.isFolder,X=fe.size,J=fe.childCount,_=fe.lastModifiedDateTime)}catch{he=Z.startsWith("📁")}return{id:Ce,label:B,value:$,isFolder:he,size:X,childCount:J,lastModifiedDateTime:_,raw:S}}),Pe=le?ue.filter(S=>S.label.toLowerCase().includes(le.toLowerCase())):ue;O("Parsed items:",ue.length,"filtered:",Pe.length,"for prop:",j),p&&ue.length>0&&(O("First item raw:",ue[0].raw),O("First item parsed:",{size:ue[0].size,childCount:ue[0].childCount,lastModifiedDateTime:ue[0].lastModifiedDateTime}));const ce=C.useCallback(S=>{if(O("Item clicked:",S,"currentProp:",j),j===x&&S.isFolder){Q("");const N={propName:"folder",label:S.label,value:S.id};R(Z=>[...Z,N]),L(Z=>{const z={...Z};return H&&(z[H]=S.id),delete z[x],O("Navigating into folder:",z),z});return}if(j!==x){const N={propName:j,label:S.label,value:S.value};R(Z=>[...Z,N]),L(Z=>{const z={...Z,[j]:S.value};return O("Updated configuredProps:",z),z});return}!S.isFolder&&!c||S.isFolder&&!u||Y(d?N=>N.some(z=>z.id===S.id)?N.filter(z=>z.id!==S.id):[...N,S]:[S])},[j,d,x,H,c,u,O]),we=C.useCallback((S,N)=>{Y(Z=>N?d?Z.some(z=>z.id===S.id)?Z:[...Z,S]:[S]:Z.filter(z=>z.id!==S.id))},[d]),Ie=C.useCallback(S=>{if(Q(""),S<0){R([]),L({[G]:{authProvisionId:n}});return}const N=D.slice(0,S+1);R(N);const Z={[G]:{authProvisionId:n}};for(const z of N){const he=z.propName==="folder"?H||"folderId":z.propName;Z[he]=z.value}L(Z)},[D,n,G,H]),Oe=C.useCallback(()=>{r(U,k)},[U,k,r]),ye=j===x?Pe.filter(S=>S.isFolder&&u||!S.isFolder&&c):[],Ne=ye.length>0&&ye.every(S=>U.some(N=>N.id===S.id)),Ee=ye.some(S=>U.some(N=>N.id===S.id))&&!Ne,We=C.useCallback(S=>{if(S)Y(N=>{const Z=new Set(N.map(he=>he.id)),z=ye.filter(he=>!Z.has(he.id));return[...N,...z]});else{const N=new Set(ye.map(Z=>Z.id));Y(Z=>Z.filter(z=>!N.has(z.id)))}},[ye]),xe=qh(m,U.length),vt=S=>U.some(N=>N.id===S.id);return P?I.jsxs(I.Fragment,{children:[I.jsx("style",{children:Jh}),I.jsxs("div",{style:xe.container,children:[I.jsx("div",{style:xe.header,children:I.jsxs("div",{style:xe.breadcrumb,children:[I.jsx("span",{role:"button",tabIndex:0,style:xe.breadcrumbItem,onClick:()=>Ie(-1),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),Ie(-1))},onMouseEnter:S=>{S.target.style.backgroundColor=m.colors.neutral10||""},onMouseLeave:S=>{S.target.style.backgroundColor=""},children:"Home"}),D.map((S,N)=>I.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[I.jsx("span",{style:xe.breadcrumbSeparator,children:"/"}),I.jsx("span",{role:"button",tabIndex:0,style:xe.breadcrumbItem,onClick:()=>Ie(N),onKeyDown:Z=>{(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),Ie(N))},onMouseEnter:Z=>{Z.target.style.backgroundColor=m.colors.neutral10||""},onMouseLeave:Z=>{Z.target.style.backgroundColor=""},children:S.label})]},`${S.propName}-${N}`))]})}),j===x&&!se&&!ee&&ue.length>0&&I.jsx("div",{style:{padding:"10px 16px",borderBottom:`1px solid ${m.colors.neutral10}`},children:I.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[le&&I.jsx("button",{type:"button",onClick:()=>Q(""),style:{background:"none",border:"none",cursor:"pointer",color:m.colors.neutral40,fontSize:"16px",padding:"2px",lineHeight:1,display:"flex",alignItems:"center"},"aria-label":"Clear search",children:"×"}),I.jsx("input",{type:"text",placeholder:"Search files...",value:le,onChange:S=>Q(S.target.value),style:{flex:1,padding:"6px 10px",fontSize:"13px",border:`1px solid ${m.colors.neutral20}`,borderRadius:"4px",backgroundColor:m.colors.neutral0,color:m.colors.neutral80,outline:"none"}})]})}),se?I.jsx("div",{style:xe.loading,children:"Loading..."}):ee?I.jsxs("div",{style:xe.error,children:["Failed to load items: ",ee instanceof Error?ee.message:"Unknown error"]}):Pe.length===0?I.jsx("div",{style:xe.empty,children:"No items found"}):I.jsxs(I.Fragment,{children:[j===x&&I.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"10px 16px",borderBottom:`1px solid ${m.colors.neutral10}`,fontSize:"13px",fontWeight:500,color:m.colors.neutral50},children:[d&&(c||u)&&ye.length>0&&I.jsx("input",{type:"checkbox",checked:Ne,ref:S=>{S&&(S.indeterminate=Ee)},onChange:S=>We(S.target.checked),style:{width:"16px",height:"16px",marginRight:"10px",cursor:"pointer",accentColor:m.colors.primary}}),!d&&(c||u)&&I.jsx("div",{style:{width:"16px",height:"16px",marginRight:"10px",flexShrink:0}}),v&&I.jsx("div",{style:{width:"20px",height:"20px",marginRight:"8px",flexShrink:0}}),I.jsx("span",{style:{flex:1},children:"Name"}),I.jsx("span",{style:{width:"150px",textAlign:"left"},children:"Last Modified"})]}),I.jsxs("div",{style:{position:"relative",flex:1,overflowY:"auto"},children:[ve&&I.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,cursor:"wait"},children:I.jsx("div",{style:{animation:"filePickerSpin 1s linear infinite"},children:I.jsx(Ia,{})})}),I.jsx("ul",{style:{...xe.list,flex:"none"},children:Pe.map(S=>{const N=vt(S),Z=j===x&&(S.isFolder&&u||!S.isFolder&&c);return I.jsx("li",{children:I.jsxs("button",{type:"button",style:{...xe.item,backgroundColor:N?m.colors.primary25:void 0,width:"100%",textAlign:"left",border:"none",cursor:"pointer"},onClick:()=>ce(S),onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),ce(S))},onMouseEnter:z=>{N||(z.currentTarget.style.backgroundColor=m.colors.neutral5||"")},onMouseLeave:z=>{z.currentTarget.style.backgroundColor=N&&m.colors.primary25||""},children:[j===x&&(c||u)&&(Z?I.jsx("input",{type:"checkbox",style:xe.checkbox,checked:N,onChange:z=>{z.stopPropagation(),we(S,z.target.checked)},onClick:z=>z.stopPropagation()}):I.jsx("div",{style:{width:"16px",height:"16px",marginRight:"10px",flexShrink:0}})),v&&I.jsx("span",{style:xe.itemIcon,children:S.isFolder?F.folder:F.file}),I.jsxs("div",{style:{flex:1,minWidth:0},children:[I.jsx("span",{style:xe.itemName,children:S.label}),j===x&&I.jsxs("div",{style:{fontSize:"11px",color:m.colors.neutral40,marginTop:"2px",display:"flex",gap:"8px"},children:[S.isFolder&&S.childCount!==void 0&&I.jsxs("span",{children:[S.childCount," item",S.childCount!==1?"s":""]}),!S.isFolder&&S.size!==void 0&&I.jsx("span",{children:Yh(S.size)})]})]}),j===x&&I.jsxs("div",{style:{width:"150px",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0},children:[I.jsx("span",{style:{fontSize:"12px",color:m.colors.neutral40,whiteSpace:"nowrap"},children:S.lastModifiedDateTime?_h(S.lastModifiedDateTime):""}),S.isFolder&&I.jsx("span",{style:xe.chevron,children:"›"})]}),j!==x&&I.jsx("span",{style:xe.chevron,children:"›"})]})},S.id)})})]})]}),I.jsxs("div",{style:xe.footer,children:[I.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[j===x&&I.jsx("button",{type:"button",onClick:()=>re(),disabled:ve,style:{background:"none",border:"none",cursor:ve?"wait":"pointer",padding:"0",marginRight:"12px",display:"flex",alignItems:"center",fontSize:"13px",color:m.colors.neutral60,opacity:ve?.7:1,animation:ve?"spin 1s linear infinite":"none"},title:ve?"Loading...":"Refresh file list",children:I.jsx(Ia,{})}),I.jsx("span",{style:xe.selectionCount,children:U.length>0?`${U.length} item${U.length>1?"s":""} selected`:"No items selected"}),U.length>0&&I.jsx("button",{type:"button",onClick:()=>Y([]),style:{background:"none",border:"none",cursor:"pointer",color:m.colors.primary,fontSize:"13px",padding:"2px 4px",textDecoration:"underline"},children:"Clear"})]}),I.jsxs("div",{style:xe.buttonGroup,children:[o&&I.jsx("button",{type:"button",style:xe.cancelButton,onClick:o,children:s}),I.jsx("button",{type:"button",style:xe.confirmButton,onClick:Oe,disabled:U.length===0,children:a})]})]})]})]}):I.jsxs("div",{style:{padding:"16px",color:"#dc2626",backgroundColor:"#fef2f2",borderRadius:"8px",fontSize:"14px"},children:['Configuration error: No configuration found for app "',t,'". Please provide an appConfig prop or use a supported app.']})},$h=({isOpen:e,title:t="Select Files",onCancel:n,...i})=>{const{theme:r}=Ge(),o=C.useRef(null),l=C.useRef(null),a=C.useRef(null);C.useEffect(()=>{var A;if(!e)return;a.current=document.activeElement,(A=l.current)==null||A.focus();const y=m=>{if(m.key==="Escape"){n==null||n();return}if(m.key==="Tab"&&o.current){const F=o.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),E=F[0],P=F[F.length-1];m.shiftKey&&document.activeElement===E?(m.preventDefault(),P==null||P.focus()):!m.shiftKey&&document.activeElement===P&&(m.preventDefault(),E==null||E.focus())}};return document.addEventListener("keydown",y),()=>{var m,F;document.removeEventListener("keydown",y),(F=(m=a.current)==null?void 0:m.focus)==null||F.call(m)}},[e,n]);const s=C.useCallback(y=>{y.target===y.currentTarget&&(n==null||n())},[n]);if(!e)return null;const u={position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.4)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3,padding:"20px"},c={backgroundColor:r.colors.neutral0||"#fff",borderRadius:"12px",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.15)",width:"100%",maxWidth:"720px",height:"min(600px, calc(100vh - 40px))",display:"flex",flexDirection:"column",overflow:"hidden"},d={padding:"16px 20px",borderBottom:`1px solid ${r.colors.neutral10}`,display:"flex",alignItems:"center",justifyContent:"space-between"},f={margin:0,fontSize:"16px",fontWeight:600,color:r.colors.neutral80},p={background:"none",border:"none",fontSize:"20px",cursor:"pointer",color:r.colors.neutral40,padding:"4px",lineHeight:1,borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",transition:"background-color 0.15s"},v={padding:"16px",overflow:"hidden",flex:1,display:"flex",flexDirection:"column",minHeight:0};return I.jsx("div",{style:u,onClick:s,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:I.jsxs("div",{ref:o,style:c,onClick:y=>y.stopPropagation(),role:"document",children:[I.jsxs("div",{style:d,children:[I.jsx("h2",{id:"modal-title",style:f,children:t}),I.jsx("button",{ref:l,type:"button",style:p,onClick:n,"aria-label":"Close",onMouseEnter:y=>{y.target.style.backgroundColor=r.colors.neutral10||""},onMouseLeave:y=>{y.target.style.backgroundColor=""},children:"×"})]}),I.jsx("div",{style:v,children:I.jsx(Ca,{...i,onCancel:n})})]})})},Kh={buildTime:new Date().toISOString(),source:"local-development"};K.Alert=yn,K.ComponentForm=fa,K.ComponentFormContainer=zh,K.ConfigureFilePicker=Ca,K.ConfigureFilePickerModal=$h,K.Control=la,K.ControlAny=Hh,K.ControlApp=$l,K.ControlBoolean=Kl,K.ControlHttpRequest=na,K.ControlInput=ea,K.ControlSelect=Wn,K.ControlSql=ia,K.ControlSubmit=da,K.CustomizationContext=Ln,K.CustomizeProvider=kh,K.DEBUG_INFO=Kh,K.Description=jl,K.ErrorBoundary=ca,K.Errors=Jl,K.FILE_PICKER_APPS=xa,K.Field=aa,K.FormContext=Vr,K.FormContextProvider=Wo,K.FormFieldContext=Qr,K.FrontendClientProvider=yp,K.InternalComponentForm=pa,K.InternalField=ua,K.Label=Yl,K.OptionalFieldButton=Ul,K.RemoteOptionsContainer=oa,K.SelectApp=Wh,K.SelectComponent=Rh,K.defaultComponents=ql,K.defaultTheme=Nn,K.getReactSelectTheme=Zl,K.mergeTheme=Dn,K.skippablePropTypes=Ut,K.unstyledTheme=Rl,K.useAccounts=Ql,K.useApp=sa,K.useApps=ya,K.useComponent=ga,K.useComponents=va,K.useCustomize=Ge,K.useFormContext=qt,K.useFormFieldContext=$e,K.useFrontendClient=lt,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"})});
|