1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5879],{94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(t=arguments[f],null!=t)for(n in t)r=s(d,n),d!==(i=s(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&l(d,{name:n,newValue:i}));return d}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,d=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:c,column:d};return function(t){return t.position=new p(e),y(r),t}}function p(e){this.start=e,this.end={line:c,column:d},this.source=s.source}p.prototype.content=e;var g=[];function m(t){var n=Error(s.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=d,n.source=e,s.silent)g.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(v(n);e=function(){var e=h(),n=y(i);if(n){if(b(),!y(o))return m("property missing ':'");var r=y(a),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(l),s}}();)!1!==e&&(n.push(e),v(n));return n}()}},56771:function(e,t,n){"use strict";n.d(t,{w_:function(){return s}});var r=n(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function s(e){return function(t){return r.createElement(u,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function u(e){var t=function(t){var n,i=e.attr,o=e.size,s=e.title,u=l(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),s&&r.createElement("title",null,s),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},41476:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}})(n(5174)),i=n(26678);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},26678:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(o,s)).replace(r,l))}},5174:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(18139))},70655:function(e,t,n){"use strict";n.d(t,{_T:function(){return i},ev:function(){return a},gn:function(){return o},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function a(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}},73932:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});var r=(e,t,n)=>{let r=null==t?void 0:t.current;if(!r||!r.contains(e)){let e=document.querySelectorAll("body > span[data-focus-scope-start]"),t=[];if(e.forEach(e=>{t.push(e.nextElementSibling)}),1===t.length)return n.close(),!1}return!r||!r.contains(e)}},10902:function(e,t,n){"use strict";n.d(t,{VS:function(){return r},Yv:function(){return o},Yx:function(){return i},sK:function(){return a}});var r=e=>{let t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(null==t?void 0:t[e])||{}},i=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],o=(e,t)=>{if(t.includes("-")){let[n]=t.split("-");if(n.includes(e))return!1}return!0},a=(e,t)=>{if(t.includes("-")){let[,n]=t.split("-");return`${e}-${n}`}return e}},79479:function(e,t,n){"use strict";n.d(t,{h:function(){return b}});var r=n(85893),i=()=>(0,r.jsxs)("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[(0,r.jsx)("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),o=n(88299),a=n(53280),l=n(76733),s=n(37127),u=n(33295),c=n(27963),d=n(54720),f=n(49869),h=n(50262),p=n(2459),g=n(67294),m=n(93387),y=n(18419),v=(0,n(15607).Gp)((e,t)=>{let{Component:n,ImgComponent:v,src:b,icon:x=(0,r.jsx)(i,{}),alt:w,classNames:k,slots:S,name:P,showFallback:E,fallback:C,getInitials:T,getAvatarProps:D,getImageProps:A}=function(e={}){var t,n,r,i,v,b,x;let w=(0,l.w)(),k=(0,o.C)(),S=!!k,{as:P,ref:E,src:C,name:T,icon:D,classNames:A,fallback:M,alt:I=T||"avatar",imgRef:L,color:O=null!=(t=null==k?void 0:k.color)?t:"default",radiu
1s:R=null!=(n=null==k?void 0:k.radius)?n:"full",size:B=null!=(r=null==k?void 0:k.size)?r:"md",isBordered:N=null!=(i=null==k?void 0:k.isBordered)&&i,isDisabled:j=null!=(v=null==k?void 0:k.isDisabled)&&v,isFocusable:F=!1,getInitials:K=d.e,ignoreFallback:z=!1,showFallback:_=!1,ImgComponent:V="img",imgProps:U,className:H,onError:W,...$}=e,J=P||"span",q=(0,u.gy)(E),Y=(0,u.gy)(L),{isFocusVisible:X,isFocused:G,focusProps:Z}=(0,p.F)(),{isHovered:Q,hoverProps:ee}=(0,y.X)({isDisabled:j}),et=null!=(x=null!=(b=e.disableAnimation)?b:null==w?void 0:w.disableAnimation)&&x,en="loaded"===function(e={}){let{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:a,sizes:l,ignoreFallback:s}=e,[u,c]=(0,g.useState)("pending");(0,g.useEffect)(()=>{c(n?"loading":"pending")},[n]);let d=(0,g.useRef)(),f=(0,g.useCallback)(()=>{if(!n)return;h();let e=new Image;e.src=n,a&&(e.crossOrigin=a),r&&(e.srcset=r),l&&(e.sizes=l),t&&(e.loading=t),e.onload=e=>{h(),c("loaded"),null==i||i(e)},e.onerror=e=>{h(),c("failed"),null==o||o(e)},d.current=e},[n,a,r,l,i,o,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return(0,m.G)(()=>
1{if(!s)return"loading"===u&&f(),()=>{h()}},[u,f,s]),s?"loaded":u}({src:C,onError:W,ignoreFallback:z}),er="string"==typeof V,ei=(!C||!en)&&_,eo=(0,g.useMemo)(()=>{var e;return(0,a.r)({color:O,radius:R,size:B,isBordered:N,isDisabled:j,isInGroup:S,disableAnimation:et,isInGridGroup:null!=(e=null==k?void 0:k.isGrid)&&e})},[O,R,B,N,j,et,S,null==k?void 0:k.isGrid]),ea=(0,f.W)(null==A?void 0:A.base,H),el=(0,g.useMemo)(()=>F||"button"===P,[F,P]),es=(0,g.useCallback)((e={})=>({ref:q,tabIndex:el?0:-1,"data-hover":(0,h.PB)(Q),"data-focus":(0,h.PB)(G),"data-focus-visible":(0,h.PB)(X),className:eo.base({class:(0,f.W)(ea,null==e?void 0:e.className)}),...(0,s.d)($,ee,el?Z:{})}),[el,eo,ea,Z,$]),eu=(0,g.useCallback)((e={})=>({ref:Y,src:C,disableAnimation:et,"data-loaded":(0,h.PB)(en),className:eo.img({class:null==A?void 0:A.img}),...(0,s.d)(U,e,(0,c.z)({disableAnimation:et},{enabled:er}))}),[eo,en,U,et,C,Y,er]);return{Component:J,ImgComponent:V,src:C,alt:I,icon:D,name:T,imgRef:Y,slots:eo,classNames:A,fallback:M,isImgLoaded:en,showFallback:ei,ignoreFallback:z,getInitials:K,getAvatarProps:es,getImageProps:eu}}({...e,ref:t}),M=(0,g.useMemo)(()=>!E&&b?null:C?(0,r.jsx)("div",{"aria-label":w,className:S.fallback({class:null==k?void 0:k.fallback}),role:"img",children:C}):P?(0,r.jsx)("span",{"aria-label":w,className:S.name({class:null==k?void 0:k.name}),role:"img",children:T(P)}):(0,r.jsx)("span",{"aria-label":w,className:S.icon({class:null==k?void 0:k.icon}),role:"img",children:x}),[E,b,C,P,k]);return(0,r.jsxs)(n,{...D(),children:[b&&(0,r.jsx)(v,{...A(),alt:w}),M]})});v.displayName="NextUI.Avatar";var b=v},88299:function(e,t,n){"use strict";n.d(t,{C:function(){return i},k:function(){return r}});var[r,i]=(0,n(46347).k)({name:"AvatarGroupContext",strict:!1})},16804:function(e,t,n){"use strict";n.d(t,{z:function(){return v}});var r=n(15607),i=n(37127),o=n(8016),a=n(2459),l=n(43649),s=n(55344),u=n(65512),c=(0,s.tv)({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"flex-shrink-0",closeButton:["z-10","appearance-none","outline-none","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","ta
1p-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...u.jR,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:l.J.solid.default}},{variant:"solid",color:"primary",class:{base:l.J.solid.primary}},{variant:"solid",color:"secondary",class:{base:l.J.solid.secondary}},{variant:"solid",color:"success",class:{base:l.J.solid.success}},{variant:"solid",color:"warning",class:{base:l.J.solid.warning}},{variant:"solid",color:"danger",class:{base:l.J.solid.danger}},{variant:"shadow",color:"default",class:{base:l.J.shadow.default}},{variant:"shadow",color:"primary",class:{base:l.J.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:l.J.shadow.secondary}},{variant:"shadow",color:"success",class:{base:l.J.shadow.success}},{variant:"shadow",color:"warning",class:{base:l.J.shadow.warning}},{variant:"shadow",color:"danger",class:{base:l.J.shadow.danger}},{variant:"bordered",color:"default",class:{base:l.J.bordered.default}},{variant:"bordered",color:"primary",class:{base:l.J.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:l.J.bordered.secondary}},{variant:"bordered",color:"success",class:{base:l.J.bordered.success}},{variant:"bordered",color:"warning",class:{base:l.J.bordered.warning}},{variant:"bordered",color:"danger",class:{base:l.J.bordered.danger}},{variant:"flat",color:"default",class:{base:l.J.flat.default}},{variant:"flat",color:"primary",class:{base:l.J.flat.primary}},{variant:"flat",color:"secondary",class:{base:l.J.flat.secondary}},{variant:"flat",color:"success",class:{base:l.J.flat.success}},{variant:"flat",color:"warning",class:{base:l.J.flat.warning}},{variant:"flat",color:"danger",class:{base:l.J.flat.danger}},{variant:"faded",color:"default",class:{base:l.J.faded.default}},{variant:"faded",color:"primary",class:{base:l.J.faded.primary}},{variant:"faded",color:"secondary",class:{base:l.J.faded.secondary}},{variant:"faded",color:"success",class:{base:l.J.faded.success}},{variant:"faded",color:"warning",class:{base:l.J.faded.warning}},{variant:"faded",color:"danger",class:{base:l.J.faded.danger}},{variant:"light",color:"default",class:{base:l.J.light.default}},{variant:"light",color:"primary",class:{base:l.J.light.primary}},{variant:"light",color:"secondary",class:{base:l.J.light.secondary}},{variant:"light",color:"success",class:{base:l.J.light.success}},{variant:"light",color:"warning",class:{base:l.J.light.warning}},{variant:"light",color:"danger",class:{base:l.J.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),d=n(33295),f=n(49869),h=n(49037),p=n(67294),g=n(57897),m=n(85893),y=(0,r.Gp)((e,t)=>{let{Component:n,children:l,slots:s,classNames:u,isDot:y,isCloseable:v,startContent:b,endContent:x,getCloseButtonProps:w,getChipProps:k}=function(e){let[t,n]=(0,r.oe)(e,c.variantKeys),{ref:l,as:s,children:u,avatar:g,startContent:m,endContent:y,onClose:v,classNames:b,className:x,...w}=t,k=(0,d.gy)(l),S=(0,f.W)(null==b?void 0:b.base,x),P=!!v,E="dot"===e.variant,{focusProps:C,isFocusVisible:T}=(0,a.F)(),D=(0,p.useMemo)(()=>"string"==typeof u&&(null==u?void 0:u.length)===1,[u]),A=(0,p.useMemo)(()=>!!g||!!m,[g,m]),M=(0,p.useMemo)(()=>!!y||P,[y,P]),I=(0,p.useMemo)(()=>c({...n,hasStartContent:A,hasEndContent:M,isOneChar:D,isCloseable:P,isCloseButtonF
1ocusVisible:T}),[(0,h.Xx)(n),T,A,M,D,P]),{pressProps:L}=(0,o.r)({isDisabled:!!(null==e?void 0:e.isDisabled),onPress:v}),O=e=>(0,p.isValidElement)(e)?(0,p.cloneElement)(e,{className:(0,f.W)("max-h-[80%]",e.props.className)}):null;return{Component:s||"div",children:u,slots:I,classNames:b,isDot:E,isCloseable:P,startContent:((0,p.isValidElement)(g)?(0,p.cloneElement)(g,{className:I.avatar({class:null==b?void 0:b.avatar})}):null)||O(m),endContent:O(y),getCloseButtonProps:()=>({role:"button",tabIndex:0,className:I.closeButton({class:null==b?void 0:b.closeButton}),...(0,i.d)(L,C)}),getChipProps:()=>({ref:k,className:I.base({class:S}),...w})}}({...e,ref:t}),S=(0,p.useMemo)(()=>y&&!b?(0,m.jsx)("span",{className:s.dot({class:null==u?void 0:u.dot})}):b,[s,b,y]),P=(0,p.useMemo)(()=>v?(0,m.jsx)("span",{...w(),children:x||(0,m.jsx)(g.f,{})}):x,[x,v,w]);return(0,m.jsxs)(n,{...k(),children:[S,(0,m.jsx)("span",{className:s.content({class:null==u?void 0:u.content}),children:l}),P]})});y.displayName="NextUI.Chip";var v=y},84367:function(e,t,n){"use strict";n.d(t,{j:function(){return u}});var r=n(27963),i=(0,n(55344).tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),o=n(67294),a=n(15607),l=n(85893),s=(0,a.Gp)((e,t)=>{let{Component:n,getDividerProps:a}=function(e){var t;let n,a;let{as:l,className:s,orientation:u,...c}=e,d=l||"hr";"hr"===d&&"vertical"===u&&(d="div");let{separatorProps:f}=(t={elementType:"string"==typeof d?d:"hr",orientation:u},a=(0,r.z)(t,{enabled:"string"==typeof t.elementType}),("vertical"===t.orientation&&(n="vertical"),"hr"!==t.elementType)?{separatorProps:{...a,role:"separator","aria-orientation":n}}:{separatorProps:a}),h=(0,o.useMemo)(()=>i({orientation:u,className:s}),[u,s]);return{Component:d,getDividerProps:(0,o.useCallback)((e={})=>({className:h,role:"separator","data-orientation":u,...f,...c,...e}),[h,u,f,c])}}({...e});return(0,l.jsx)(n,{ref:t,...a()})});s.displayName="NextUI.Divider";var u=s},26887:function(e,t,n){"use strict";n.d(t,{F:function(){return v}});var r=n(79148),i=n(76733),o=n(65367),a=n(40945),l=n(55344),s=n(65512),u=(0,l.tv)({base:["w-full","p-1","min-w-[200px]"]});(0,l.tv)({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","outline-none","cursor-pointer","tap-highlight-transparent","data-[pressed=true]:opacity-70",...s.Dh,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100"},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{}}},defaultVariants:{variant:"solid",color:"default"},compoundVariants:[{variant:"solid",color:"default",class:{base:"data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"shadow",color:"default",class:{base:"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"data-[hover=true]:border-default"}},{variant:"bordered",color:"primary",class:{base:"data-[hover=true]:border-primary data-[hover=true]:text-primary"}},{variant:"bordered",color:"secondary",class:{base:"data-[hover=true]:border-secondary data-[hover=true]:text-secondary"}},{variant:"bordered",color:"success",class:{base:"data-[hover=true]:border-success data-[hover=true]:text-success"}},{variant:"bordered",color:"warning",class:{base:"data-[hover=true]:border-warning data-[hover=true]:text-warning"}},{variant:"bordered",color:"danger",class:{base:"data-[hover=true]:border-danger data-[hover=true]:text-danger"}},{variant:"flat",color:"default",class:{base:"data-[hover=true]:bg-default/40 data-[hover=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{base:"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary"}},{variant:"flat",color:"secondary",class:{base:"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary"}},{variant:"flat",color:"success",class:{base:"data-[hover=true]:bg-success/20 data-[hover=true]:text-success "}},{variant:"flat",color:"warning",class:{base:"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning"}},{variant:"flat",color:"danger",class:{base:"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger"}},{variant:"faded",color:"default",class:{base:"data-[hover=true]:text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"faded",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"faded",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"faded",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"faded",color:"danger",class:{base:"data-[hover=true]:text-danger"}},{variant:"light",color:"default",class:{base:"data-[hover=true]:text-default-500"}},{variant:"light",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"light",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"light",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"light",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"light",color:"danger",class:{base:"data-[hover=true]:text-danger"}}]}),(0,l.tv)({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),(0,l.tv)({base:"w-full flex flex-col gap-0.5 p-1"});var c=n(49869),d=n(48255),f=n(73932),h=n(67294),p=n(37127),g=n(89779),m=n(85893),y=e=>{let{children:t,...n}=e,l=function(e){var t;let n=(0,i.w)(),{as:r,triggerRef:l,isOpen:s,defaultOpen:g,onOpenChange:m,isDisabled:y,type:v="menu",trigger:b="press",placement:x="bottom",closeOnSelect:w=!0,shouldBlockScroll:k=!0,classNames:S,disableAnimation:P=null!=(t=null==n?void 0:n.disableAnimation)&&t,onClose:E,className:C,...T}=e,D=(0,h.useRef)(null),A=l||D,M=(0,h.useRef)(null),I=(0,h.useRef)(null),L=(0,o.W)({trigger:b,isOpen:s,defaultOpen:g,onOpenChange:e=>{null==m||m(e),e||null==E||E()}}),{menuTriggerProps:O,menuProps:R}=(0,a.u)({type:v,trigger:b,isDisabled:y},L,A),B=(0,h.useMemo)(()=>u({className:C}),[C]),N=e=>{(void 0===e||e)&&w&&L.close()};return{Component:r||"div",menuRef:M,menuProps:R,classNames:B,closeOnSelect:w,onClose:L.close,autoFocus:L.focusStrategy||!0,disableAnimation:P,getPopoverProps:(e={})=>{let t=(0,p.d)(T,e);return{state:L,placement:x,ref:I,disableAnimation:P,shouldBlockScroll:k,scrollRef:M,triggerRef:A,...t,classNames:{...S,...e.classNames,content:(0,c.W)(B,null==S?void 0:S.content,e.className)},shouldCloseOnInteractOutside:(null==t?void 0:t.shouldCloseOnInteractOutside)?t.shouldCloseOnInteractOutside:e=>(0,f.J)(e,D,L)}},getMenuProps:(e,t=null)=>({ref:(0,d.l)(t,M),menuProps:R,closeOnSelect:w,...(0,p.d)(e,{onAction:()=>N(null==e?void 0:e.closeOnSelect),onClose:L.close})}),getMenuTriggerProps:(e={},t=null)=>{let{onPress:n,onPressStart:r,...i}=O;return{...(0,p.d)(i,{isDisabled:y},e),ref:(0,d.l)(t,D)}}}}(n),[s,y]=h.Children.toArray(t);return(0,m.jsx)(r.K,{value:l,children:(0,m.jsxs)(g.j,{...l.getPopoverProps(),children:[s,y]})})};y.displayName="NextUI.Dropdown";var v=y},72825:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(79148),i=n(15607),o=n(62697),a=n(85893),l=(0,i.Gp)((e,t)=>{let{getMenuTriggerProps:n}=(0,r.t)(),{children:i,...l}=e;return(0,a.jsx)(o.b,{...n(l),children:i})});l.displayName="NextUI.DropdownTrigger";var s=l},87263:function(e,t,n){"use strict";n.d(t,{a:function(){return z}});var r=n(79148),i=n(69332),o=n(37873),a=n(15607),l=n(85893);function s(e){let{isSelected:t,disableAnimation:n,...r}=e;return(0,l.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:(0,l.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:n?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var u=n(67294),c=n(25083),d=n(76733),f=n(2459),h=n(49037),p=n(49869),g=n(50262),m=n(3136),y=n(37127),v=n(45351),b=new WeakMap,x=n(32433),w=n(9188),k=n(11086),S=n(92411),P=n(8016),E=n(18419),C=n(9975),T=n(91243),D=n(47234),A=n(36400),M=n(96344),I=n(27963),L=(0,a.Gp)((e,t)=>{let{Component:n,slots:r,classNames:i,rendered:o,shortcut:v,description:L,isSelectable:O,isSelected:R,isDisabled:B,selectedIcon:N,startContent:j,endContent:F,disableAnimation:K,hideSelectedIcon:z,getItemProps:_,getLabelProps:V,getDescriptionProps:U,getKeyboardShortcutProps:H,getSelectedIconProps:W}=function(e){var t,n;let r=(0,d.w)(),[i,o]=(0,a.oe)(e,c.D9.variantKeys),{as:l,item:s,state:v,shortcut:L,description:O,startContent:R,endContent:B,isVirtualized:N,selectedIcon:j,className:F,classNames:K,onAction:z,autoFocus:_,onClick:V,onPress:U,onPressStart:H,onPressUp:W,onPressEnd:$,onPressChange:J,hide
1SelectedIcon:q=!1,isReadOnly:Y=!1,closeOnSelect:X,onClose:G,...Z}=i,Q=null!=(n=null!=(t=e.disableAnimation)?t:null==r?void 0:r.disableAnimation)&&n,ee=(0,u.useRef)(null),et=l||((null==Z?void 0:Z.href)?"a":"li"),en="string"==typeof et,{rendered:er,key:ei}=s,eo=v.disabledKeys.has(ei)||e.isDisabled,ea="none"!==v.selectionManager.selectionMode,el=(0,M.d)(),{isFocusVisible:es,focusProps:eu}=(0,f.F)({autoFocus:_}),{isHovered:ec,isPressed:ed,isFocused:ef,isSelected:eh,menuItemProps:ep,labelProps:eg,descriptionProps:em,keyboardShortcutProps:ey}=function(e,t,n){var r,i;let{key:o,closeOnSelect:a,isVirtualized:l,"aria-haspopup":s,onPressStart:u,onPressUp:c,onPress:d,onPressChange:f,onPressEnd:h,onHoverStart:p,onHoverChange:g,onHoverEnd:v,onKeyDown:M,onKeyUp:I,onFocus:L,onFocusChange:O,onBlur:R,onClick:B}=e,N=!!s,j=null!=(r=e.isDisabled)?r:t.selectionManager.isDisabled(o),F=null!=(i=e.isSelected)?i:t.selectionManager.isSelected(o),K=b.get(t),z=t.collection.getItem(o),_=e.onClose||K.onClose,V=(0,x.tv)(),U=t=>{var n;!N&&((null==(n=null==z?void 0:z.props)?void 0:n.onAction)&&z.props.onAction(),e.onAction?e.onAction(o):K.onAction&&K.onAction(o),t.target instanceof HTMLAnchorElement&&V.open(t.target,t,z.props.href,z.props.routerOptions))},H="menuitem";N||("single"===t.selectionManager.selectionMode?H="menuitemradio":"multiple"!==t.selectionManager.selectionMode||(H="menuitemcheckbox"));let W=(0,w.mp)(),$=(0,w.mp)(),J=(0,w.mp)(),q={"aria-disabled":j||void 0,role:H,"aria-label":e["aria-label"],"aria-labelledby":W,"aria-describedby":[$,J].filter(
1Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":s,"aria-expanded":e["aria-expanded"]};"none"===t.selectionManager.selectionMode||N||(q["aria-checked"]=F),l&&(q["aria-posinset"]=null==z?void 0:z.index,q["aria-setsize"]=(0,S.i)(t.collection));let{itemProps:Y,isFocused:X}=(0,A.C)({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:G,isPressed:Z}=(0,P.r)({onPressStart:e=>{"keyboard"===e.pointerType&&U(e),null==u||u(e)},onPress:d,onPressUp:e=>{"keyboard"!==e.pointerType&&(setTimeout(()=>{U(e)}),!N&&_&&(null!=a?a:"multiple"!==t.selectionManager.selectionMode||t.selectionManager.isLink(o))&&setTimeout(()=>{null==_||_()})),null==c||c(e)},onPressChange:f,onPressEnd:h,isDisabled:j}),{isHovered:Q,hoverProps:ee}=(0,E.X)({isDisabled:j,onHoverStart(e){(0,C.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),null==p||p(e)},onHoverChange:g,onHoverEnd:v}),{keyboardProps:et}=(0,T.v)({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case" ":j||"none"!==t.selectionManager.selectionMode||N||!1===a||!_||_();break;case"Enter":j||!1===a||N||!_||_();break;default:N||e.continuePropagation(),null==M||M(e)}},onKeyUp:I}),{focusProps:en}=(0,D.K)({onBlur:R,onFocus:L,onFocusChange:O}),er=(0,m.z)(z.props);delete er.id;let ei=(0,x.eY)(z.props);return{menuItemProps:{...q,...(0,y.d)(er,ei,N?{onFocus:Y.onFocus}:Y,G,ee,et,en,{onClick:(0,k.t)(B,G.onClick)}),tabIndex:null!=Y.tabIndex?-1:void 0},labelProps:{id:W},descriptionProps:{id:$},keyboardShortcutProps:{id:J},isHovered:Q,isFocused:X,isSelected:F,isPressed:Z,isDisabled:j}}({key:ei,onClose:G,isDisabled:eo,onPress:U,onClick:V,onPressStart:H,onPressUp:W,onPressEnd:$,onPressChange:J,"aria-label":i["aria-label"],closeOnSelect:X,isVirtualized:N,onAction:z},v,ee),ev=ep,eb=(0,u.useMemo)(()=>(0,c.D9)({...o,isDisabled:eo,disableAnimation:Q}),[(0,h.Xx)(o),eo,Q]),ex=(0,p.W)(null==K?void 0:K.base,F);Y&&(ev=(0,h.Os)(ev));let ew=(0,u.useCallback)((e={})=>({"aria-hidden":(0,g.PB)(!0),"data-disabled":(0,g.PB)(eo),className:eb.selectedIcon({class:null==K?void 0:K.selectedIcon}),...e}),[eo,eb,K]);return{Component:et,domRef:ee,slots:eb,classNames:K,isSelectable:ea,isSelected:eh,isDisabled:eo,rendered:er,shortcut:L,description:O,startContent:R,endContent:B,selectedIcon:j,disableAnimation:Q,getItemProps:(e={})=>({ref:ee,...(0,y.d)(Y?{}:eu,(0,I.z)(Z,{enabled:en}),ev,e),"data-focus":(0,g.PB)(ef),"data-selectable":(0,g.PB)(ea),"data-hover":(0,g.PB)(el?ec||ed:ec),"data-disabled":(0,g.PB)(eo),"data-selected":(0,g.PB)(eh),"data-pressed":(0,g.PB)(ed),"data-focus-visible":(0,g.PB)(es),className:eb.base({class:(0,p.W)(ex,e.className)})}),getLabelProps:(e={})=>({...(0,y.d)(eg,e),className:eb.title({class:null==K?void 0:K.title})}),hideSelectedIcon:q,getDescriptionProps:(e={})=>({...(0,y.d)(em,e),className:eb.description({class:null==K?void 0:K.description})}),getKeyboardShortcutProps:(e={})=>({...(0,y.d)(ey,e),className:eb.shortcut({class:null==K?void 0:K.shortcut})}),getSelectedIconProps:ew}}(e),$=(0,u.useMemo)(()=>{let e=(0,l.jsx)(s,{disableAnimation:K,isSelected:R});return"function"==typeof N?N({icon:e,isSelected:R,isDisabled:B}):N||e},[N,R,B,K]);return(0,l.jsxs)(n,{..._(),children:[j,L?(0,l.jsxs)("div",{className:r.wrapper({class:null==i?void 0:i.wrapper}),children:[(0,l.jsx)("span",{...V(),children:o}),(0,l.jsx)("span",{...U(),children:L})]}):(0,l.jsx)("span",{...V(),children:o}),v&&(0,l.jsx)("kbd",{...H(),children:v}),O&&!z&&(0,l.jsx)("span",{...W(),children:$}),F]})});L.displayName="NextUI.MenuItem";var O=n(84367),R=(0,a.Gp)(({item:e,state:t,as:n,variant:r,color:i,disableAnimation:o,onAction:a,closeOnSelect:s,className:d,classNames:f,showDivider:h=!1,hideSelectedIcon:g,dividerProps:m={},itemClasses:v,title:b,...x},k)=>{let S=(0,u.useMemo)(()=>(0,c.Dk)(),[]),P=(0,p.W)(null==f?void 0:f.base,d),E=(0,p.W)(null==f?void 0:f.divider,null==m?void 0:m.className),{itemProps:C,headingProps:T,groupProps:D}=function(e){let{heading:t,"aria-label":n}=e,r=(0,w.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:e.rendered,"aria-label":e["aria-label"]});return(0,l.jsxs)(n||"li",{"data-slot":"base",...(0,y.d)(C,x),className:S.base({class:P}),children:[e.rendered&&(0,l.jsx)("span",{...T,className:S.heading({class:null==f?void 0:f.heading}),"data-slot":"heading",children:e.rendered}),(0,l.jsxs)("ul",{...D,className:S.group({class:null==f?void 0:f.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(e=>{let{key:n,props:u}=e,c=(0,l.jsx)(L,{classNames:v,closeOnSelect:s,color:i,disableAnimation:o,hideSelectedIcon:g,item:e,state:t,variant:r,onAction:a,...u},n);return e.wrapper&&(c=e.wrapper(c)),c}),h&&(0,l.jsx)(O.j,{as:"li",className:S.divider({class:E}),...m})]})]})});R.displayName="NextUI.MenuSection";var B=n(90502),N=n(33295);function j(e,t){let{Component:n,state:r,closeOnSelect:i,color:o,disableAnimation:a,hideSelectedIcon:s,hideEmptyContent:f,variant:h,onClose:g,onAction:x,topContent:w,bottomContent:k,itemClasses:S,getBaseProps:P,getListProps:E,getEmptyContentProps:C}=function(e){var t;let n=(0,d.w)(),{as:r,ref:i,variant:o,color:a,children:l,disableAnimation:s=null!=(t=null==n?void 0:n.disableAnimation)&&t,onAction:f,closeOnSelect:h,itemClasses:g,className:x,state:w,topContent:k,bottomContent:S,hideEmptyContent:P=!1,hideSelectedIcon:E=!1,emptyContent:C="No items.",menuProps:T,onClose:D,classNames:A,...M}=e,L=r||"ul",O=(0,N.gy)(i),R="string"==typeof L,j=(0,B.D)({...M,...T,children:l}),F=w||j,{menuProps:K}=function(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...a}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=(0,m.z)(e,{labelable:!0}),{listProps:s}=(0,v._)({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return b.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:(0,y.d)(l,{onKeyDown:i,onKeyUp:o},{role:"menu",...s,onKeyDown:e=>{"Escape"!==e.key&&s.onKeyDown&&s.onKeyDown(e)}})}}({...M,...T},F,O),z=(0,u.useMemo)(()=>(0,c.GI)({className:x}),[x]),_=(0,p.W)(null==A?void 0:A.base,x);return{Component:L,state:F,variant:o,color:a,disableAnimation:s,onAction:f,onClose:D,topContent:k,bottomContent:S,closeOnSelect:h,className:x,itemClasses:g,getBaseProps:(e={})=>({ref:O,"data-slot":"base",className:z.base({class:_}),...(0,I.z)(M,{enabled:R}),...e}),getListProps:(e={})=>({"data-slot":"list",className:z.list({class:null==A?void 0:A.list}),...K,...e}),hideEmptyContent:P,hideSelectedIcon:E,getEmptyContentProps:(e={})=>({children:C,className:z.emptyContent({class:null==A?void 0:A.emptyContent}),...e})}}({...e,ref:t}),T=(0,l.jsxs)(n,{...E(),children:[!r.collection.size&&!f&&(0,l.jsx)("li",{children:(0,l.jsx)("div",{...C()})}),[...r.collection].map(e=>{let t={closeOnSelect:i,color:o,disableAnimation:a,item:e,state:r,variant:h,onClose:g,onAction:x,hideSelectedIcon:s,...e.props};if("section"===e.type)return(0,l.jsx)(R,{...t,itemClasses:S},e.key);let n=(0,l.jsx)(L,{...t,classNames:S},e.key);return e.wrapper&&(n=e.wrapper(n)),n})]});return(0,l.jsxs)("div",{...P(),children:[w,T,k]})}var F=(0,a.Gp)(j);function K(e,t){let{getMenuProps:n}=(0,r.t)();return(0,l.jsx)(i.g,{children:(0,l.jsx)(o.MT,{contain:!0,restoreFocus:!0,children:(0,l.jsx)(F,{...n(e,t)})})})}j.displayName="NextUI.Menu";var z=(0,a.Gp)(K);K.displayName="NextUI.DropdownMenu"},79148:function(e,t,n){"use strict";n.d(t,{K:function(){return r},t:function(){return i}});var[r,i]=(0,n(46347).k)({name:"DropdownContext",errorMessage:"useDropdownContext: `
1context` is undefined. Seems you forgot to wrap all popover components within `<Dropdown />`"})},32616:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=n(11594).c},25178:function(e,t,n){"use strict";n.d(t,{S:function(){return P}});var r=n(67294),i=n(74238),o=n(42959),a=n(73932),l=n(10902),s=new WeakMap,u=[],c=n(37127),d=n(93387),f=n(33295),h=n(16551),p=n(2459),g=n(11860),m=n(6270),y=n(76733),v=n(15607),b=n(33805),x=n(36303),w=n(49037),k=n(49869),S=n(50262);function P(e){var t,n,P;let E=(0,y.w)(),[C,T]=(0,v.oe)(e,b.v.variantKeys),{as:D,ref:A,children:M,state:I,triggerRef:L,scrollRef:O,defaultOpen:R,onOpenChange:B,isOpen:N,isNonModal:j=!0,shouldFlip:F=!0,containerPadding:K=12,shouldBlockScroll:z=!1,isDismissable:_=!0,shouldCloseOnBlur:V,portalContainer:U,updatePositionDeps:H,dialogProps:W,placement:$="top",triggerType:J="dialog",showArrow:q=!1,offset:Y=7,crossOffset:X=0,boundaryElement:G,isKeyboardDismissDisabled:Z,shouldCloseOnInteractOutside:Q,motionProps:ee,className:et,classNames:en,onClose:er,...ei}=C,eo=(0,f.gy)(A),ea=(0,r.useRef)(null),el=(0,r.useRef)(!1),es=L||ea,eu=null!=(n=null!=(t=e.disableAnimation)?t:null==E?void 0:E.disableAnimation)&&n,ec=(0,h.d)({isOpen:N,defaultOpen:R,onOpenChange:e=>{null==B||B(e),e||null==er||er()}}),ed=I||ec,{popoverProps:ef,underlayProps:eh,placement:ep}=function(e,t){let{triggerRef:n,popoverRef:f,showArrow:h,offset:p=7,crossOffset:g=0,scrollRef:m,shouldFlip:y,boundaryElement:v,isDismissable:b=!0,shouldCloseOnBlur:x=!0,placement:w="top",containerPadding:k,shouldCloseOnInteractOutside:S,isNonModal:P,isKeyboardDismissDisabled:E,updatePositionDeps:C=[],...T}=e,D=null==P||P,{overlayProps:A,underlayProps:M}
1=(0,i.I)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:x,isDismissable:b,isKeyboardDismissDisabled:E,shouldCloseOnInteractOutside:S||(e=>(0,a.J)(e,n,t))},f),{overlayProps:I,arrowProps:L,placement:O,updatePosition:R}=(0,o.t)({...T,shouldFlip:y,crossOffset:g,targetRef:n,overlayRef:f,isOpen:t.isOpen,scrollRef:m,boundaryElement:v,containerPadding:k,placement:(0,l.Yx)(w),offset:h?p+3:p,onClose:()=>{}});return(0,d.G)(()=>{C.length&&R()},C),(0,r.useEffect)(()=>{if(t.isOpen&&!D&&f.current)return function(e,t=document.body){let n=new Set(e),r=new Set,i=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{let t=e.parentElement;if(n.has(e)||r.has(t)&&"row"!==t.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&o(e),a!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;null!=e;)o(e),e=i.nextNode()}},o=e=>{var t;let n=null!=(t=s.get(e))?t:0;("true"!==e.getAttribute("aria-hidden")||0!==n)&&(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),s.set(e,n+1))};u.length&&u[u.length-1].disconnect(),i(t);let a=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?n.add(e):e instanceof Element&&i(e)}});a.observe(t,{childList:!0,subtree:!0});let l={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return u.push(l),()=>{for(let e of(a.disconnect(),r)){let t=s.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),s.delete(e)):s.set(e,t-1))}l===u[u.length-1]?(u.pop(),u.length&&u[u.length-1].observe()):u.splice(u.indexOf(l),1)}}([f.current])},[D,t.isOpen,f]),{popoverProps:(0,c.d)(A,I),arrowProps:L,underlayProps:M,placement:O}}({triggerRef:es,isNonModal:j,popoverRef:eo,placement:$,offset:Y,scrollRef:O,isDismissable:_,shouldCloseOnBlur:V,boundaryElement:G,crossOffset:X,shouldFlip:F,containerPadding:K,updatePositionDeps:H,isKeyboardDismissDisabled:Z,shouldCloseOnInteractOutside:Q},ed),{triggerProps:eg}=(0,g.I)({type:J},ed,es),{isFocusVisible:em,isFocused:ey,focusProps:ev}=(0,p.F)(),eb=(0,r.useMemo)(()=>(0,b.v)({...T}),[(0,w.Xx)(T)]),ex=(0,k.W)(null==en?void 0:en.base,et),ew=(0,r.useCallback)((e={})=>({"data-slot":"content","data-open":(0,S.PB)(ed.isOpen),"data-arrow":(0,S.PB)(q),"data-placement":(0,l.sK)(ep,$),className:eb.content({class:(0,k.W)(null==en?void 0:en.content,e.className)})}),[eb,ed.isOpen,q,ep,$,en]),ek=(0,r.useMemo)(()=>(0,l.Yv)(ep,$)&&ep||$,[ep,$]),eS=(0,r.useCallback)(t=>{var n;let r;return"touch"===t.pointerType&&((null==e?void 0:e.backdrop)==="blur"||(null==e?void 0:e.backdrop)==="opaque")?r=setTimeout(()=>{el.current=!0},100):el.current=!0,null==(n=eg.onPress)||n.call(eg,t),()=>{clearTimeout(r)}},[null==eg?void 0:eg.onPress]),eP=(0,r.useCallback)((e={},t=null)=>{let{isDisabled:n,...r}=e;return{"data-slot":"trigger","aria-haspopup":"dialog",...(0,c.d)(eg,r),onPress:eS,isDisabled:n,className:eb.trigger({class:(0,k.W)(null==en?void 0:en.trigger,e.className),isTriggerDisabled:n}),ref:(0,x.l)(t,es)}},[ed,eg,eS,es]),eE=(0,r.useCallback)((e={})=>({"data-slot":"backdrop",className:eb.backdrop({class:null==en?void 0:en.backdrop}),onClick:e=>{if(!el.current){e.preventDefault();return}ed.close(),el.current=!1},...eh,...e}),[eb,ed.isOpen,en,eh]);return(0,r.useEffect)(()=>{if(ed.isOpen&&(null==eo?void 0:eo.current))return(0,m.R)([null==eo?void 0:eo.current])},[ed.isOpen,eo]),{state:ed,Component:D||"div",children:M,classNames:en,showArrow:q,triggerRef:es,placement:ek,isNonModal:j,popoverRef:eo,portalContainer:U,isOpen:ed.isOpen,onClose:ed.close,disableAnimation:eu,shouldBlockScroll:z,backdrop:null!=(P=e.backdrop)?P:"transparent",motionProps:ee,getBackdropProps:eE,getPopoverProps:(e={})=>({ref:eo,...(0,c.d)(ef,ei,e),style:(0,c.d)(ef.style,ei.style,e.style)}),getTriggerProps:eP,getDialogProps:(e={})=>({"data-slot":"base","data-open":(0,S.PB)(ed.isOpen),"data-focus":(0,S.PB)(ey
1),"data-arrow":(0,S.PB)(q),"data-focus-visible":(0,S.PB)(em),"data-placement":(0,l.sK)(ep,$),...(0,c.d)(ev,W,e),className:eb.base({class:(0,k.W)(ex)}),style:{outline:"none"}}),getContentProps:ew}}},62697:function(e,t,n){"use strict";n.d(t,{b:function(){return f}});var r=n(30796),i=n(67294),o=n(15607),a=n(76418),l=n(27316),s=n(80839),u=n(37127),c=n(85893),d=(0,o.Gp)((e,t)=>{let{triggerRef:n,getTriggerProps:o}=(0,r.l)(),{children:d,...f}=e,h=(0,i.useMemo)(()=>"string"==typeof d?(0,c.jsx)("p",{children:d}):i.Children.only(d),[d]),{onPress:p,isDisabled:g,...m}=(0,i.useMemo)(()=>o((0,u.d)(f,h.props),h.ref),[o,h.props,f,h.ref]),[,y]=(0,a.N)(d,s.A),{buttonProps:v}=(0,l.j)({onPress:p,isDisabled:g},n),b=(0,i.useMemo)(()=>(null==y?void 0:y[0])!==void 0,[y]);return(0,i.cloneElement)(h,(0,u.d)(m,b?{onPress:p,isDisabled:g}:v))});d.displayName="NextUI.PopoverTrigger";var f=d},30796:function(e,t,n){"use strict";n.d(t,{H:function(){return r},l:function(){return i}});var[r,i]=(0,n(46347).k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"})},89779:function(e,t,n){"use strict";n.d(t,{j:function(){return d}});var r=n(30796),i=n(25178),o=n(67294),a=n(15607),l=n(25299),s=n(13114),u=n(85893),c=(0,a.Gp)((e,t)=>{let{children:n,...a}=e,c=(0,i.S)({...a,ref:t}),[d,f]=o.Children.toArray(n),h=(0,u.jsx)(l.aV,{portalContainer:c.portalContainer,children:f});return(0,u.jsxs)(r.H,{value:c,children:[d,c.disableAnimation&&c.isOpen?h:(0,u.jsx)(s.M,{children:c.isOpen?h:null})]})});c.displayName="NextUI.Popover";var d=c},69332:function(e,t,n){"use strict";n.d(t,{g:function(){return ea}});var r,i,o,a,l,s,u,c=n(30796),d=n(67294),f=n(15607),h=n(65081),p=n(90029),g=n(18522),m=n(1673),y=n(3632),v=n(70655),b="right-scroll-bar-position",x="width-before-scroll-bar";function w(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var k="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,S=new WeakMap,P=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,l={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,v.pi)({async:!0,ssr:!1},r),l),E=function(){},C=d.forwardRef(function(e,t){var n,r,i,o,a=d.useRef(null),l=d.useState({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:E}),s=l[0],u=l[1],c=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,g=e.enabled,m=e.shards,y=e.sideCar,b=e.noIsolation,x=e.inert,C=e.allowPinchZoom,T=e.as,D=e.gapMode,A=(0,v._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[a,t],r=function(e){return n.forEach(function(t){return w(t,e)})},(i=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,k(function(){var e=S.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||w(e,null)}),r.forEach(function(e){t.has(e)||w(e,i)})}S.set(o,n)},[n]),o),I=(0,v.pi)((0,v.pi)({},A),s);return d.createElement(d.Fragment,null,g&&d.createElement(y,{sideCar:P,removeScrollBar:p,shards:m,noIsolation:b,inert:x,setCallbacks:u,allowPinchZoom:!!C,lockRef:a,gapMode:D}),c?d.cloneElement(d.Children.only(f),(0,v.pi)((0,v.pi)({},I),{ref:M})):d.createElement(void 0===T?"div":T,(0,v.pi)({},I,{className:h,ref:M}),f))});C.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1}
1,C.classNames={fullWidth:x,zeroRight:b};var T=function(e){var t=e.sideCar,n=(0,v._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,(0,v.pi)({},n))};T.isSideCarExport=!0;var D=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A=function(){var e=D();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},M=function(){var e=A();return function(t){return e(t.styles,t.dynamic),null}},I={left:0,top:0,right:0,gap:0},L=function(e){return parseInt(e||"",10)||0},O=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[L(n),L(r),L(i)]},R=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return I;var t=O(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},B=M(),N="data-scroll-locked",j=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(N,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(b," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(x," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(b," .").concat(b," {\n right: 0 ").concat(r,";\n }\n \n .").concat(x," .").concat(x," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(N,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},F=function(){var e=parseInt(document.body.getAttribute(N)||"0",10);return isFinite(e)?e:0},K=function(){d.useEffect(function(){return document.body.setAttribute(N,(F()+1).toString()),function(){var e=F()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},z=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;K();var o=d.useMemo(function(){return R(i)},[i]);return d.createElement(B,{styles:j(o,!t,i,n?"":"!important")})},_=!1;if("undefined"!=typeof window)try{var V=Object.defineProperty({},"passive",{get:function(){return _=!0,!0}});window.addEventListener("test",V,V),window.removeEventListener("test",V,V)}catch(e){_=!1}var U=!!_&&{passive:!1},H=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),$(e,r)){var i=J(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$=function(e,t){return"v"===e?H(t,"overflowY"):H(t,"overflowX")},J=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},q=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),l=a*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,h=0;do{var p=J(e,s),g=p[0],m=p[1]-p[2]-a*g;(g||m)&&$(e,s)&&(f+=m,h+=g),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(i&&1>Math.abs(f)||!i&&l>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-l>h)&&(c=!0),c},Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},X=function(e){return[e.deltaX,e.deltaY]},G=function(e){return e&&"current"in e?e.current:e},Z=0,Q=[],ee=(s=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.use
1State(Z++)[0],o=d.useState(M)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,v.ev)([e.lockRef.current],(e.shards||[]).map(G),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=Y(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-o[0],u="deltaY"in e?e.deltaY:l[1]-o[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=W(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=W(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=i),!i)return!0;var h=r.current||i;return q(h,t,e,"h"===h?s:u,!0)},[]),s=d.useCallback(function(e){if(Q.length&&Q[Q.length-1]===o){var n="deltaY"in e?X(e):Y(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(G).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=d.useCallback(function(e){n.current=Y(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,X(t),t.target,l(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,Y(t),t.target,l(t,e.lockRef.current))},[]);d.useEffect(function(){return Q.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",s,U),document.addEventListener("touchmove",s,U),document.addEventListener("touchstart",c,U),function(){Q=Q.filter(function(e){return e!==o}),document.removeEventListener("wheel",s,U),document.removeEventListener("touchmove",s,U),document.removeEventListener("touchstart",c,U)}},[]);var p=e.removeScrollBar,g=e.inert;return d.createElement(d.Fragment,null,g?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?d.createElement(z,{gapMode:e.gapMode}):null)},P.useMedium(s),T),et=d.forwardRef(function(e,t){return d.createElement(C,(0,v.pi)({},e,{ref:t,sideCar:ee}))});et.classNames=C.classNames;var en=n(10902),er=n(34446),ei=n(85893),eo=(0,f.Gp)((e,t)=>{let{as:n,children:r,className:i,...o}=e,{Component:a,isOpen:l,placement:s,backdrop:u,motionProps:f,disableAnimation:v,shouldBlockScroll:b,getPopoverProps:x,getDialogProps:w,getBackdropProps:k,getContentProps:S,isNonModal:P,onClose:E}=(0,c.l)(),C=(0,d.useRef)(null),{dialogProps:T,titleProps:D}=(0,er.R)({},C),A=w({ref:C,...T,...o}),M=(0,ei.jsxs)(ei.Fragment,{children:[!P&&(0,ei.jsx)(h.U,{onDismiss:E}),(0,ei.jsx)(n||a||"div",{...A,children:(0,ei.jsx)("div",{...S({className:i}),children:"function"==typeof r?r(D):r})}),(0,ei.jsx)(h.U,{onDismiss:E})]}),I=(0,d.useMemo)(()=>"transparent"===u?null:v?(0,ei.jsx)("div",{...k()}):(0,ei.jsx)(g.X,{features:m.H,children:(0,ei.jsx)(y.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:p.y7.fade,...k()})}),[u,v,k]),L=(0,ei.jsx)(et,{enabled:b&&l,removeScrollBar:!1,children:v?M:(0,ei.jsx)(g.X,{features:m.H,children:(0,ei.jsx)(y.m.div,{animate:"enter",exit:"exit",initial:"initial",style:{...(0,en.VS)("center"===s?"top":s)},variants:p.y7.scaleSpringOpacity,...f,children:M})})});return(0,ei.jsxs)("div",{...x(),children:[I,L]})});eo.displayName="NextUI.PopoverContent";var ea=eo},86309:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(8680),i=(0,r.E)({"../../../node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var b=v.prototype=new y;b.constructor=v,p(b,m.prototype),b.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function P(e,n,r){var i,o={},a=null,l=null;if(null!=n)for(i in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,i)&&!S.hasOwnProperty(i)&&(o[i]=n[i]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in s=e.defaultProps)void 0===o[i]&&(o[i]=s[i]);return{$$typeof:t,type:e,key:a,ref:l,props:o,_owner:k.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var C=/\/+/g;function T(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function D(e,r,i){if(null==e)return e;var o=[],a=0;return!function e(r,i,o,a,l){var s,u,c,d=typeof r;("undefined"===d||"boolean"===d)&&(r=null);var h=!1;if(null===r)h=!0;else switch(d){case"string":case"number":h=!0;break;case"object":switch(r.$$typeof){case t:case n:h=!0}}if(h)return l=l(h=r),r=""===a?"."+T(h,0):a,x(l)?(o="",null!=r&&(o=r.replace(C,"$&/")+"/"),e(l,i,o,"",function(e){return e}
1)):null!=l&&(E(l)&&(s=l,u=o+(!l.key||h&&h.key===l.key?"":(""+l.key).replace(C,"$&/")+"/")+r,l={$$typeof:t,type:s.type,key:u,ref:s.ref,props:s.props,_owner:s._owner}),i.push(l)),1;if(h=0,a=""===a?".":a+":",x(r))for(var p=0;p<r.length;p++){var g=a+T(d=r[p],p);h+=e(d,i,o,g,l)}else if("function"==typeof(g=null===(c=r)||"object"!=typeof c?null:"function"==typeof(c=f&&c[f]||c["@@iterator"])?c:null))for(r=g.call(r),p=0;!(d=r.next()).done;)g=a+T(d=d.value,p++),h+=e(d,i,o,g,l);else if("object"===d)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(i=String(r))?"object with keys {"+Object.keys(r).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return h}(e,o,"","",function(e){return r.call(i,e,a++)}),o}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},I={transition:null};e.Children={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},e.Component=m,e.Fragment=r,e.Profiler=o,e.PureComponent=v,e.StrictMode=i,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:I,ReactCurrentOwner:k},e.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=p({},e.props),o=e.key,a=e.ref,l=e._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,l=k.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in n)w.call(n,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}return{$$typeof:t,type:e.type,key:o,ref:a,props:i,_owner:l}},e.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},e.createElement=P,e.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:s,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:A}},e.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},e.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(e,t){return M.current.useCallback(e,t)},e.useContext=function(e){return M.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return M.current.useDeferredValue(e)},e.useEffect=function(e,t){return M.current.useEffect(e,t)},e.useId=function(){return M.current.useId()},e.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return M.current.useMemo(e,t)},e.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},e.useRef=function(e){return M.current.useRef(e)},e.useState=function(e){return M.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return M.current.useTransition()},e.version="18.2.0"}});(0,r.E)({"../../../node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js"(e,t){}});var o=(0,r.E)({"../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"(e,t){t.exports=i()}})},8680:function(e,t,n){"use strict";n.d(t,{E:function(){return u},v:function(){return d}});var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=(e,t)=>
1function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},c=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))s.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(r=o(t,l))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?r(l(e)):{},c(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e))},76418:function(e,t,n){"use strict";n.d(t,{N:function(){return a},W:function(){return o}});var r=n(86309),i=(0,n(8680).v)((0,r.N)());function o(e){return i.Children.toArray(e).filter(e=>(0,i.isValidElement)(e))}var a=(e,t)=>{var n;let r=[];return[null==(n=i.Children.map(e,e=>(0,i.isValidElement)(e)&&e.type===t?(r.push(e),null):e))?void 0:n.filter(Boolean),r.length>=0?r:void 0]}},48255:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(50262);function i(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if((0,r.mf)(e)){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}},57897:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(85893),i=e=>(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:(0,r.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})})},54720:function(e,t,n){"use strict";n.d(t,{e:function(){return r},x:function(){return i}});var r=e=>(null==e?void 0:e.length)<=4?e:null==e?void 0:e.slice(0,3),i=(...e)=>{let t=" ";for(let n of e)if("string"==typeof n&&n.length>0){t=n;break}return t}},25083:function(e,t,n){"use strict";n.d(t,{D9:function(){return a},Dk:function(){return l},GI:function(){return o}});var r=n(55344),i=n(65512),o=(0,r.tv)({slots:{base:"w-full relative flex flex-col gap-1 p-1",list:"w-full flex flex-col gap-0.5 outline-none",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),a=(0,r.tv)({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-none","cursor-pointer","tap-highlight-transparent",...i.Dh,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),l=(0,r.tv)({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}})},53280:function(e,t,n){"use strict";n.d(t,{r:function(){return a},z:function(){return l}});var r=n(43649),i=n(55344),o=n(65512),a=(0,i.tv)({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...o.Dh],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...o.z6,"flex","items-center","justify-center"],name:[...o.z6,"font-normal","text-center","text-inherit"],icon:[...o.z6,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:r.J.solid.default},primary:{base:r.J.solid.primary},secondary:{base:r.J.solid.secondary},success:{base:r.J.solid.success},warning:{base:r.J.solid.warning},danger:{base:r.J.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}},disableAnimation:{true:{base:"transition-none",img:"transition-none"},false:{}}}
1,defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]}),l=(0,i.tv)({slots:{base:"flex items-center justify-center h-auto w-max",count:"hover:-translate-x-0"},variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}})},33805:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var r=n(43649),i=n(55344),o=n(65512),a=(0,i.tv)({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...o.Dh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:r.J.solid.foreground},primary:{base:"before:bg-primary",content:r.J.solid.primary},secondary:{base:"before:bg-secondary",content:r.J.solid.secondary},success:{base:"before:bg-success",content:r.J.solid.success},warning:{base:"before:bg-warning",content:r.J.solid.warning},danger:{base:"before:bg-danger",content:r.J.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]})},96344:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(37385);function i(){return!(0,r.Av)()&&"undefined"!=typeof window&&window.screen.width<=700}},93387:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(67294),i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:r.useEffect},43394:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(54792);let i=new Map;function o(e){let{locale:t}=(0,r.j)(),n=t+(e?Object.entries(e).sort((e,t)=>
1e[0]<t[0]?-1:1).join():"");if(i.has(n))return i.get(n);let o=new Intl.Collator(t,e);return i.set(n,o),o}},51889:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(8016),i=n(36116),o=n(1325),a=n(37127),l=n(67294);function s(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:s,onLongPress:u,threshold:c=500,accessibilityDescription:d}=e,f=(0,l.useRef)(),{addGlobalListener:h,removeGlobalListener:p}=(0,i.x)(),{pressProps:g}=(0,r.r)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),f.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),u&&u({...e,type:"longpress"}),f.current=void 0},c),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};h(e.target,"contextmenu",t,{once:!0}),h(window,"pointerup",()=>{setTimeout(()=>{p(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){f.current&&clearTimeout(f.current),s&&("mouse"===e.pointerType||"touch"===e.pointerType)&&s({...e,type:"longpressend"})}}),m=(0,o.P)(u&&!t?d:void 0);return{longPressProps:(0,a.d)(g,m)}}},40945:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r={};r={"ar-AE":{longPressMessage:`\u{627}\u{636}\u{63A}\u{637} \u{645}\u{637}\u{648}\u{644}\u{627}\u{64B} \u{623}\u{648} \u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Alt + \u{627}\u{644}\u{633}\u{647}\u{645} \u{644}\u{623}\u{633}\u{641}\u{644} \u{644}\u{641}\u{62A}\u{62D} \u{627}\u{644}\u{642}\u{627}\u{626}\u{645}\u{629}`},"bg-BG":{longPressMessage:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt+ \u{441}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{43D}\u{430}\u{434}\u{43E}\u{43B}\u{443}, \u{437}\u{430} \u{434}\u{430} \u{43E}\u{442}\u{432}\u{43E}\u{440}\u{438}\u{442}\u{435} \u{43C}\u{435}\u{43D}\u{44E}\u{442}\u{43E}`},"cs-CZ":{longPressMessage:`Dlouh\xfdm stiskem nebo stisknut\xedm kl\xe1ves Alt + \u{161}ipka dol\u{16F} otev\u{159}ete nab\xeddku`},"da-DK":{longPressMessage:`Langt tryk eller tryk p\xe5 Alt + pil ned for at \xe5bne menuen`},"de-DE":{longPressMessage:`Dr\xfccken Sie lange oder dr\xfccken Sie Alt + Nach-unten, um das Men\xfc zu \xf6ffnen`},"el-GR":{longPressMessage:`\u{3A0}\u{3B9}\u{3AD}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3AE} \u{3C0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + \u{3BA}\u{3AC}\u{3C4}\u{3C9} \u{3B2}\u{3AD}\u{3BB}\u{3BF}\u{3C2} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3BF}\u{3AF}\u{3BE}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3BF} \u{3BC}\u{3B5}\u{3BD}\u{3BF}\u{3CD}`},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xfa`},"et-EE":{longPressMessage:`Men\xfc\xfc avamiseks vajutage pikalt v\xf5i vajutage klahve Alt + allanool`},"fi-FI":{longPressMessage:`Avaa valikko painamalla pohjassa tai n\xe4pp\xe4inyhdistelm\xe4ll\xe4 Alt + Alanuoli`},"fr-FR":{longPressMessage:`Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.`},"he-IL":{longPressMessage:`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5D0}\u{5D5} \u{5D4}\u{5E7}\u{5E9} Alt + ArrowDown \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E4}\u{5EA}\u{5D5}\u{5D7} \u{5D0}\u{5EA} \u{5D4}\u{5EA}\u{5E4}\u{5E8}\u{5D9}\u{5D8}`},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xedl gombot a men\xfc megnyit\xe1s\xe1hoz`},"it-IT":{longPressMessage:`Premere a lungo o premere Alt + Freccia gi\xf9 per aprire il menu`},"ja-JP":{longPressMessage:`\u{9577}\u{62BC}\u{3057}\u{307E}\u{305F}\u{306F} Alt+\u{4E0B}\u{77E2}\u{5370}\u{30AD}\u{30FC}\u{3067}\u{30E1}\u{30CB}\u{30E5}\u{30FC}\u{3092}\u{958B}\u{304F}`},"ko-KR":{longPressMessage:`\u{AE38}\u{AC8C} \u{B204}\u{B974}\u{AC70}\u{B098} Alt + \u{C544}\u{B798}\u{CABD} \u{D654}\u{C0B4}\u{D45C}\u{B97C} \u{B20C}\u{B7EC} \u{BA54}\u{B274} \u{C5F4}\u{AE30}`},"lt-LT":{longPressMessage:`Nor\u{117}dami atidaryti meniu, nuspaud\u{119} palaikykite arba paspauskite \u{201E}Alt + ArrowDown\u{201C}.`},"lv-LV":{longPressMessage:`Lai atv\u{113}rtu izv\u{113}lni, turiet nospiestu vai nospiediet tausti\u{146}u kombin\u{101}ciju Alt + lejupv\u{113}rst\u{101} bulti\u{146}a`},"nb-NO":{longPressMessage:`Langt trykk eller trykk Alt + PilNed for \xe5 \xe5pne menyen`},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:`Naci\u{15B}nij i przytrzymaj lub naci\u{15B}nij klawisze Alt + Strza\u{142}ka w d\xf3\u{142}, aby otworzy\u{107} menu`},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:`Ap\u{103}sa\u{21B}i lung sau ap\u{103}sa\u{21B}i pe Alt + s\u{103}geat\u{103} \xeen jos pentru a deschide meniul`},"ru-RU":{longPressMessage:`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + \u{421}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43E}\u{442}\u{43A}\u{440}\u{44B}\u{442}\u{44C} \u{43C}\u{435}\u{43D}\u{44E}`},"sk-SK":{longPressMessage:`Ponuku otvor\xedte dlh\xfdm stla\u{10D}en\xedm alebo stla\u{10D}en\xedm kl\xe1vesu Alt + kl\xe1vesu so \u{161}\xedpkou nadol`},"sl-SI":{longPressMessage:`Za odprtje menija pritisnite in dr\u{17E}ite gumb ali pritisnite Alt+pu\u{161}\u{10D}ica navzdol`},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`}
1,"tr-TR":{longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun bas\u{131}n veya Alt + A\u{15F}a\u{11F}\u{131} Ok tu\u{15F}una bas\u{131}n`},"uk-UA":{longPressMessage:`\u{414}\u{43E}\u{432}\u{433}\u{43E} \u{430}\u{431}\u{43E} \u{437}\u{432}\u{438}\u{447}\u{430}\u{439}\u{43D}\u{43E} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} \u{43A}\u{43E}\u{43C}\u{431}\u{456}\u{43D}\u{430}\u{446}\u{456}\u{44E} \u{43A}\u{43B}\u{430}\u{432}\u{456}\u{448} Alt \u{456} \u{441}\u{442}\u{440}\u{456}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{449}\u{43E}\u{431} \u{432}\u{456}\u{434}\u{43A}\u{440}\u{438}\u{442}\u{438} \u{43C}\u{435}\u{43D}\u{44E}`},"zh-CN":{longPressMessage:`\u{957F}\u{6309}\u{6216}\u{6309} Alt + \u{5411}\u{4E0B}\u{65B9}\u{5411}\u{952E}\u{4EE5}\u{6253}\u{5F00}\u{83DC}\u{5355}`},"zh-TW":{longPressMessage:`\u{9577}\u{6309}\u{6216}\u{6309} Alt+\u{5411}\u{4E0B}\u{9375}\u{4EE5}\u{958B}\u{555F}\u{529F}\u{80FD}\u{8868}`}};var i=n(9188),o=n(94392),a=n(51889),l=n(11860);function s(e,t,n){var s;let{type:u="menu",isDisabled:c,trigger:d="press"}=e,f=(0,i.Me)(),{triggerProps:h,overlayProps:p}=(0,l.I)({type:u},t,n),g=(0,o.q)((s=r)&&s.__esModule?s.default:s,"@react-aria/menu"),{longPressProps:m}=(0,a.T)({isDisabled:c||"longPress"!==d,accessibilityDescription:g.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete h.onPress,{menuTriggerProps:{...h,..."press"===d?{onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||c||t.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||c||t.toggle()}}:m,id:f,onKeyDown:e=>{if(!c&&("longPress"!==d||e.altKey)&&n&&n.current)switch(e.key){case"Enter":case" ":if("longPress"===d)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...p,"aria-labelledby":f,autoFocus:t.focusStrategy||!0,onClose:t.close}}}},57703:function(e,t,n){"use strict";n.d(t,{O:function(){return o},v:function(){return i}});var r=n(67294);let i=new WeakMap;function o(e){let{triggerRef:t,isOpen:n,onClose:o}=e;(0,r.useEffect)(()=>{if(!n||null===o)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current))return;let r=o||i.get(t.current);r&&r()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,o,t])}},42959:function(e,t,n){"use strict";n.d(t,{t:function(){return E}});var r=n(68806),i=n(18399);let o={top:"top",bottom:"top",left:"left",right:"left"},a={top:"bottom",bottom:"top",left:"right",right:"left"},l={top:"left",left:"top"},s={top:"height",left:"width"},u={width:"totalWidth",height:"totalHeight"},c={},d="undefined"!=typeof document&&window.visualViewport;function f(e){let t=0,n=0,i=0,o=0,a=0,l=0,s={},u=(null==d?void 0:d.scale)>1;if("BODY"===e.tagName){var c,f;let r=document.documentElement;i=r.clientWidth,o=r.clientHeight,t=null!==(c=null==d?void 0:d.width)&&void 0!==c?c:i,n=null!==(f=null==d?void 0:d.height)&&void 0!==f?f:
1o,s.top=r.scrollTop||e.scrollTop,s.left=r.scrollLeft||e.scrollLeft,d&&(a=d.offsetTop,l=d.offsetLeft)}else({width:t,height:n,top:a,left:l}=y(e)),s.top=e.scrollTop,s.left=e.scrollLeft,i=t,o=n;return(0,r.Pf)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&u&&(s.top=0,s.left=0,a=d.pageTop,l=d.pageLeft),{width:t,height:n,totalWidth:i,totalHeight:o,scroll:s,top:a,left:l}}function h(e,t,n,r,i,a,l){let u=i.scroll[e],c=r[s[e]],d=r.scroll[o[e]]+a,f=c+r.scroll[o[e]]-a,h=t-u+l[e]-r[o[e]],p=t-u+n+l[e]-r[o[e]];return h<d?d-h:p>f?Math.max(f-p,d-h):0}function p(e){if(c[e])return c[e];let[t,n]=e.split(" "),r=o[t]||"right",i=l[r];o[n]||(n="center");let a=s[r],u=s[i];return c[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:u},c[e]}function g(e,t,n,r,o,l,s,c,d,f){let{placement:h,crossPlacement:p,axis:g,crossAxis:m,size:y,crossSize:v}=r,b={};b[m]=e[m],"center"===p?b[m]+=(e[v]-n[v])/2:p!==m&&(b[m]+=e[v]-n[v]),b[m]+=l;let x=e[m]-n[v]+d+f,w=e[m]+e[v]-d-f;if(b[m]=(0,i.uZ)(b[m],x,w),h===g){let n=c?s[y]:t[u[y]];b[a[g]]=Math.floor(n-e[g]+o)}else b[g]=Math.floor(e[g]+e[y]+o);return b}function m(e,t,n,r,i,o){let{placement:l,axis:s,size:u}=o;return l===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[a[s]]-i):Math.max(0,e[u]+e[s]+e.scroll[s]-t[s]-n[s]-n[u]-r[s]-r[a[s]]-i)}function y(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:l,clientLeft:s}=document.documentElement;return{top:t+o-l,left:n+a-s,width:r,height:i}}function v(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:i,height:o}=e.getBoundingClientRect();n={top:t,left:r,width:i,height:o}}else{n=y(e);let r=y(t),i=window.getComputedStyle(t);r.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function b(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var x=n(57703),w=n(67294),k=n(69786),S=n(54792);let P="undefined"!=typeof document&&window.visualViewport;function E(e){let{direction:t}=(0,S.j)(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:l=o,placement:s="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:E="undefined"!=typeof document?document.body:null,offset:C=0,crossOffset:T=0,shouldUpdatePosition:D=!0,isOpen:A=!0,onClose:M,maxHeight:I,arrowBoundaryOffset:L=0}=e,[O,R]=(0,w.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),B=[D,s,o.current,r.current,l.current,c,d,E,C,T,A,t,I,L,n],N=(0,w.useRef)(null==P?void 0:P.scale);(0,w.useEffect)(()=>{A&&(N.current=null==P?void 0:P.scale)},[A]);let j=(0,w.useCallback)(()=>{var e,x;if(!1===D||!A||!o.current||!r.current||!l.current||!E||(null==P?void 0:P.scale)!==N.current)return;let w=o.current;!I&&o.current&&(w.style.top="0px",w.style.bottom="",w.style.maxHeight=(null!==(x=null===(e=window.visualViewport)||void 0===e?void 0:e.height)&&void 0!==x?x:window.innerHeight)+"px");let k=function(e){let t,{placement:n,targetNode:r,overlayNode:o,scrollNode:l,padding:s,shouldFlip:c,boundaryElement:d,offset:x,crossOffset:w,maxHeight:k,arrowSize:S=0,arrowBoundaryOffset:P=0}=e,E=o instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!b(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!b(t);)t=t.parentElement;return t||document.documentElement}(o):document.documentElement,C=E===document.documentElement,T=window.getComputedStyle(E).position,D=C?y(r):v(r,E);if(!C){let{marginTop:e,marginLeft:t}=window.getComputedStyle(r);D.top+=parseInt(e,10)||0,D.left+=parseInt(t,10)||0}let A=y(o),M={top:parseInt((t=window.getComputedStyle(o)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};A.width+=M.left+M.right,A.height+=M.top+M.bottom;let I={top:l.scrollTop,left:l.scrollLeft,width:l.scrollWidth,height:l.scrollHeight},L=f(d),O=f(E),R="BODY"===d.tagName?y(E):v(E,d);return"HTML"===E.tagName&&"BODY"===d.tagName&&(O.scroll.top=0,O.scroll.left=0),function(e,t,n,r,o,l,s,c,d,f,y,v,b,x,w,k){let S=p(e),{size:P,crossAxis:E,crossSize:C,placement:T,crossPlacement:D}=S,A=g(t,c,n,S,y,v,f,b,w,k),M=y,I=m(c,f,t,o,l+y,S);if(s&&r[P]>I){let e=p(`${a[T]} ${D}`),r=g(t,c,n,e,y,v,f,b,w,k);m(c,f,t,o,l+y,e)>I&&(S=e,A=r,M=y)}let L="bottom";"top"===S.axis?"top"===S.placement?L="top":"bottom"===S.placement&&(L="bottom"):"top"===S.crossAxis&&("top"===S.crossPlacement?L="bottom":"bottom"===S.crossPlacement&&(L="top"));let O=h(E,A[E],n[C],c,d,l,f);A[E]+=O;let R=function(e,t,n,r,i,o,a,l){let s=r?n.height:t[u.height],c=null!=e.top?n.top+e.top:n.top+(s-e.bottom-a),d="top"!==l?Math.max(0,t.height+t.top+t.scroll.top-c-(i.top+i.bottom+o)):Math.max(0,c+a-(t.top+t.scroll.top)-(i.top+i.bottom+o));return Math.min(t.height-2*o,d)}(A,c,f,b,o,l,n.height,L);x&&x<R&&(R=x),n.height=Math.min(n.height,R),O=h(E,(A=g(t,c,n,S,M,v,f,b,w,k))[E],n[C],c,d,l,f),A[E]+=O;let B={},N=t[E]+.5*t[C]-A[E],j=w/2+k,F=n[C]-w/2-k,K=t[E]-A[E]+w/2,z=t[E]+t[C]-A[E]-w/2,_=(0,i.uZ)(N,K,z);return B[E]=(0,i.uZ)(_,j,F),{position:A,maxHeight:R,arrowOffsetLeft:B.left,arrowOffsetTop:B.top,placement:S.placement}}(n,D,A,I,M,s,c,L,O,R,x,w,!!T&&"static"!==T,k,S,P)}({placement:"rtl"===t?s.replace("start","right").replace("end","left"):s.replace("start","left").replace("end","right"),overlayNode:o.current,targetNode:r.current,scrollNode:l.current,padding:c,shouldFlip:d,boundaryElement:E,offset:C,crossOffset:T,maxHeight:I,arrowSize:n,arrowBoundaryOffset:L});
1w.style.top="",w.style.bottom="",Object.keys(k.position).forEach(e=>w.style[e]=k.position[e]+"px"),w.style.maxHeight=null!=k.maxHeight?k.maxHeight+"px":void 0,R(k)},B);(0,k.b)(j,B),(0,k.b)(()=>(window.addEventListener("resize",j,!1),()=>{window.removeEventListener("resize",j,!1)}),[j]),function(e){let{ref:t,onResize:n}=e;(0,w.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{let t=new window.ResizeObserver(e=>{e.length&&n()});return t.observe(e),()=>{e&&t.unobserve(e)}}}},[n,t])}({ref:o,onResize:j});let F=(0,w.useRef)(!1);(0,k.b)(()=>{let e;let t=()=>{F.current=!0,clearTimeout(e),e=setTimeout(()=>{F.current=!1},500),j()},n=()=>{F.current&&t()};return null==P||P.addEventListener("resize",t),null==P||P.addEventListener("scroll",n),()=>{null==P||P.removeEventListener("resize",t),null==P||P.removeEventListener("scroll",n)}},[j]);let K=(0,w.useCallback)(()=>{F.current||M()},[M,F]);return(0,x.O)({triggerRef:r,isOpen:A,onClose:M&&K}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...O.position,maxHeight:O.maxHeight}},placement:O.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:O.arrowOffsetLeft,top:O.arrowOffsetTop}},updatePosition:j}}},11860:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(57703),i=n(67294),o=n(9188);function a(e,t,n){let a,{type:l}=e,{isOpen:s}=t;(0,i.useEffect)(()=>{n&&n.current&&(0,r.v).set(n.current,t.close)}),"menu"===l?a=!0:"listbox"===l&&(a="listbox");let u=(0,o.Me)();return{triggerProps:{"aria-haspopup":a,"aria-expanded":s,"aria-controls":s?u:null,onPress:t.toggle},overlayProps:{id:u}}}},54429:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(96791);class i{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}getNextKey(e){for(e=this.collection.getKeyAfter(e);null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,t,n){let r=this.getItem(e);if(!r)return null;let i=r.getBoundingClientRect();do e=t(e),r=this.getItem(e);while(r&&n(i,r.getBoundingClientRect()));return e}isSameRow(e,t){return e.top===t.top||e.left!==t.left}isSameColumn(e,t){return e.left===t.left||e.top!==t.top}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){let t=this.collection.getItem(e);if((null==t?void 0:t.type)==="item"&&!this.isDisabled(t))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return null!==e?this.ref.current.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null}getKeyPageAbove(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;if(!(0,r.a)(t))return this.getFirstKey();let i=t.getBoundingClientRect(),o=n.getBoundingClientRect();if("horizontal"===this.orientation){let r=i.x-t.scrollLeft,a=Math.max(0,o.x-r+o.width-i.width);for(;n&&o.x-r>a;
1)o=null==(n=null==(e=this.getKeyAbove(e))?null:this.getItem(e))?void 0:n.getBoundingClientRect()}else{let r=i.y-t.scrollTop,a=Math.max(0,o.y-r+o.height-i.height);for(;n&&o.y-r>a;)o=null==(n=null==(e=this.getKeyAbove(e))?null:this.getItem(e))?void 0:n.getBoundingClientRect()}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;if(!(0,r.a)(t))return this.getLastKey();let i=t.getBoundingClientRect(),o=n.getBoundingClientRect();if("horizontal"===this.orientation){let r=i.x-t.scrollLeft,a=Math.min(t.scrollWidth,o.x-r-o.width+i.width);for(;n&&o.x-r<a;)o=null==(n=null==(e=this.getKeyBelow(e))?null:this.getItem(e))?void 0:n.getBoundingClientRect()}else{let r=i.y-t.scrollTop,a=Math.min(t.scrollHeight,o.y-r-o.height+i.height);for(;n&&o.y-r<a;)o=null==(n=null==(e=this.getKeyBelow(e))?null:this.getItem(e))?void 0:n.getBoundingClientRect()}return null!=e?e:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return r;r=this.getKeyBelow(r)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation,this.direction=t.direction,this.layout=t.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all";"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}},84409:function(e,t,n){"use strict";n.d(t,{g:function(){return m}});var r=n(40608),i=n(13553),o=n(73935),a=n(67294),l=n(37873),s=n(26590),u=n(32433),c=n(77604),d=n(68278),f=n(44369),h=n(37127),p=n(9975),g=n(54792);function m(e){let t,{selectionManager:n,keyboardDelegate:m,ref:y,autoFocus:v=!1,shouldFocusWrap:b=!1,disallowEmptySelection:x=!1,disallowSelectAll:w=!1,selectOnFocus:k="replace"===n.selectionBehavior,disallowTypeAhead:S=!1,shouldUseVirtualFocus:P,allowsTabNavigation:E=!1,isVirtualized:C,scrollRef:T=y,linkBehavior:D="action"}=e,{direction:A}=(0,g.j)(),M=(0,u.tv)(),I=(0,a.useRef)({top:0,left:0});(0,d.z)(T,"scroll",C?null:()=>{I.current={top:T.current.scrollTop,left:T.current.scrollLeft}});let L=(0,a.useRef)(v);(0,a.useEffect)(()=>{if(L.current){let e=null;"first"===v&&(e=m.getFirstKey()),"last"===v&&(e=m.getLastKey());let t=n.selectedKeys;if(t.size){for(let r of t)if(n.canSelectItem(r)){e=r;break}}n.setFocused(!0),n.setFocusedKey(e),null!=e||P||(0,s.e)(y.current)}},[]);let O=(0,a.useRef)(n.focusedKey);(0,a.useEffect)(()=>{let e=(0,p.Jz)();if(n.isFocused&&null!=n.focusedKey&&(null==T?void 0:T.current)){let t=T.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);t&&("keyboard"===e||L.current)&&(C||(0,f.z)(T.current,t),"virtual"!==e&&(0,f.G)(t,{containingElement:y.current}))}n.isFocused&&null==n.focusedKey&&null!=O.current&&(0,s.e)(y.current),O.current=n.focusedKey,L.current=!1},[C,T,n.focusedKey,n.isFocused,y]);let R={onKeyDown:e=>{var t,i,a,s,u,d,f,h;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!y.current.contains(e.target))return;let p=(t,i)=>{if(null!=t){if(n.isLink(t)&&"selection"===D&&k&&!(0,r.F)(e)){(0,o.flushSync)(()=>{n.setFocusedKey(t,i)});let r=T.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),a=n.getItemProps(t);M.open(r,e,a.href,a.routerOptions);return}n.setFocusedKey(t,i),n.isLink(t)&&"override"===D||(e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):k&&!(0,r.F)(e)&&n.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(m.getKeyBelow){e.preventDefault();let r=null!=n.focusedKey?m.getKeyBelow(n.focusedKey):null===(t=m.getFirstKey)||void 0===t?void 0:t.call(m);null==r&&b&&(r=null===(i=m.getFirstKey)||void 0===i?void 0:i.call(m,n.focusedKey)),p(r)}break;case"ArrowUp":if(m.getKeyAbove){e.preventDefault();
1let t=null!=n.focusedKey?m.getKeyAbove(n.focusedKey):null===(a=m.getLastKey)||void 0===a?void 0:a.call(m);null==t&&b&&(t=null===(s=m.getLastKey)||void 0===s?void 0:s.call(m,n.focusedKey)),p(t)}break;case"ArrowLeft":if(m.getKeyLeftOf){e.preventDefault();let t=m.getKeyLeftOf(n.focusedKey);null==t&&b&&(t="rtl"===A?null===(u=m.getFirstKey)||void 0===u?void 0:u.call(m,n.focusedKey):null===(d=m.getLastKey)||void 0===d?void 0:d.call(m,n.focusedKey)),p(t,"rtl"===A?"first":"last")}break;case"ArrowRight":if(m.getKeyRightOf){e.preventDefault();let t=m.getKeyRightOf(n.focusedKey);null==t&&b&&(t="rtl"===A?null===(f=m.getLastKey)||void 0===f?void 0:f.call(m,n.focusedKey):null===(h=m.getFirstKey)||void 0===h?void 0:h.call(m,n.focusedKey)),p(t,"rtl"===A?"last":"first")}break;case"Home":if(m.getFirstKey){e.preventDefault();let t=m.getFirstKey(n.focusedKey,(0,r.y)(e));n.setFocusedKey(t),(0,r.y)(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):k&&n.replaceSelection(t)}break;case"End":if(m.getLastKey){e.preventDefault();let t=m.getLastKey(n.focusedKey,(0,r.y)(e));n.setFocusedKey(t),(0,r.y)(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):k&&n.replaceSelection(t)}break;case"PageDown":m.getKeyPageBelow&&(e.preventDefault(),p(m.getKeyPageBelow(n.focusedKey)));break;case"PageUp":m.getKeyPageAbove&&(e.preventDefault(),p(m.getKeyPageAbove(n.focusedKey)));break;case"a":(0,r.y)(e)&&"multiple"===n.selectionMode&&!0!==w&&(e.preventDefault(),n.selectAll());break;case"Escape":x||0===n.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),n.clearSelection());break;case"Tab":if(!E){if(e.shiftKey)y.current.focus();else{let e,t,n=(0,l.QL)(y.current,{tabbable:!0});do(t=n.lastChild())&&(e=t);while(t);e&&!e.contains(document.activeElement)&&(0,c.A)(e)}}}},onFocus:e=>{if(n.isFocused){e.currentTarget.contains(e.target)||n.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(n.setFocused(!0),null==n.focusedKey){var t,r;let i=e=>{null!=e&&(n.setFocusedKey(e),k&&n.replaceSelection(e))},o=e.relatedTarget;o&&e.currentTarget.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(t=n.lastSelectedKey)&&void 0!==t?t:m.getLastKey()):i(null!==(r=n.firstSelectedKey)&&void 0!==r?r:m.getFirstKey())}else C||(T.current.scrollTop=I.current.top,T.current.scrollLeft=I.current.left);if(!C&&null!=n.focusedKey){let e=T.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,c.A)(e),"keyboard"===(0,p.Jz)()&&(0,f.G)(e,{containingElement:y.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||n.setFocused(!1)},onMouseDown(e){T.current===e.target&&e.preventDefault()}},{typeSelectProps:B}=(0,i.i)({keyboardDelegate:m,selectionManager:n});return S||(R=(0,h.d)(B,R)),P||(t=null==n.focusedKey?0:-1),{collectionProps:{...R,tabIndex:t}}}},36400:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var r=n(40608),i=n(26590),o=n(32433),a=n(37127),l=n(8016),s=n(51889),u=n(67294);function c(e){let{selectionManager:t,key:n,ref:c,shouldSelectOnPressUp:h,shouldUseVirtualFocus:p,focus:g,isDisabled:m,onAction:y,allowsDifferentPressOrigin:v,linkBehavior:b="action"}=e,x=(0,o.tv)(),w=e=>{if("keyboard"===e.pointerType&&(0,r.F)(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;if(t.isLink(n)){if("selection"===b){let r=t.getItemProps(n);x.open(c.current,e,r.href,r.routerOptions),t.setSelectedKeys(t.selectedKeys);return}if("override"===b||"none"===b)return}"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&((0,r.y)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}};(0,u.useEffect)(()=>{n===t.focusedKey&&t.isFocused&&!p&&(g?g():document.activeElement!==c.current&&(0,i.e)(c.current))},[c,n,t.focusedKey,t.childFocusStrategy,t.isFocused,p]),m=m||t.isDisabled(n);let k={};p||m?m&&(k.onMouseDown=e=>{e.preventDefault()}):k={tabIndex:n===t.focusedKey?0:-1,onFocus(e){e.target===c.current&&t.setFocusedKey(n)}};let S=t.isLink(n)&&"override"===b,P=t.isLink(n)&&"selection"!==b&&"none"!==b,E=!m&&t.canSelectItem(n)&&!S,C=(y||P)&&!m,T=C&&("replace"===t.selectionBehavior?!E:!E||t.isEmpty),D=C&&E&&"replace"===t.selectionBehavior,A=T||D,M=(0,u.useRef)(null),I=A&&E,L=(0,u.useRef)(!1),O=(0,u.useRef)(!1),R=e=>{if(y&&y(),P){let r=t.getItemProps(n);x.open(c.current,e,r.href,r.routerOptions)}},B={};h?(B.onPressStart=e=>{M.current=e.pointerType,L.current=I,"keyboard"===e.pointerType&&(!A||f())&&w(e)},v?(B.onPressUp=T?null:e=>{"keyboard"!==e.pointerType&&E&&w(e)},B.onPress=T?R:null):B.onPress=e=>{T||D&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||d())&&R(e):"keyboard"!==e.pointerType&&E&&w(e)}):(B.onPressStart=e=>{M.current=e.pointerType,L.current=I,O.current=T,E&&("mouse"===e.pointerType&&!T||"ke
1yboard"===e.pointerType&&(!C||f()))&&w(e)},B.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&A&&d()||"mouse"===e.pointerType&&O.current)&&(A?R(e):E&&w(e))}),k["data-key"]=n,B.preventFocusOnPress=p;let{pressProps:N,isPressed:j}=(0,l.r)(B),F=D?e=>{"mouse"===M.current&&(e.stopPropagation(),e.preventDefault(),R(e))}:void 0,{longPressProps:K}=(0,s.T)({isDisabled:!I,onLongPress(e){"touch"===e.pointerType&&(w(e),t.setSelectionBehavior("toggle"))}}),z=t.isLink(n)?e=>{o.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,a.d)(k,E||T?N:{},I?K:{},{onDoubleClick:F,onDragStartCapture:e=>{"touch"===M.current&&L.current&&e.preventDefault()},onClick:z}),isPressed:j,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:m,allowsSelection:E,hasAction:A}}function d(){let e=window.event;return(null==e?void 0:e.key)==="Enter"}function f(){let e=window.event;return(null==e?void 0:e.key)===" "||(null==e?void 0:e.code)==="Space"}},45351:function(e,t,n){"use strict";n.d(t,{_:function(){return l}});var r=n(84409),i=n(54429),o=n(43394),a=n(67294);function l(e){let{selectionManager:t,collection:n,disabledKeys:l,ref:s,keyboardDelegate:u}=e,c=(0,o.X)({usage:"search",sensitivity:"base"}),d=t.disabledBehavior,f=(0,a.useMemo)(()=>u||new i.d({collection:n,disabledKeys:l,disabledBehavior:d,ref:s,collator:c}),[u,n,l,s,c,d]),{collectionProps:h}=(0,r.g)({...e,ref:s,selectionManager:t,keyboardDelegate:f});return{listProps:h}}},13553:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(67294);function i(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:i}=e,o=(0,r.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var r;let a=1!==(r=e.key).length&&/^[A-Z]/i.test(r)?"":r;if(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "!==a||!(o.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),o.search+=a;let l=t.getKeyForSearch(o.search,n.focusedKey);null==l&&(l=t.getKeyForSearch(o.search)),null!=l&&(n.setFocusedKey(l),i&&i(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},1e3)}:null}}}},40608:function(e,t,n){"use strict";n.d(t,{F:function(){return i},y:function(){return o}});var r=n(68806);function i(e){return(0,r.ad)()?e.altKey:e.ctrlKey}function o(e){return(0,r.V5)()?e.metaKey:e.ctrlKey}},44369:function(e,t,n){"use strict";n.d(t,{z:function(){return i},G:function(){return a}});var r=n(96791);function i(e,t){let n=o(e,t,"left"),r=o(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),f=e.scrollTop+parseInt(u,10),h=d+e.clientWidth,p=f+e.clientHeight;n<=l?l=n-parseInt(c,10):n+i>h&&(l+=n+i-h),r<=f?s=r-parseInt(u,10):r+a>p&&(s+=r+a-p),e.scrollLeft=l,e.scrollTop=s}function o(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function a(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(s).overflow)for(let t of function(e,t){let n=[];for(;e&&e!==document.documentElement;)(0,r.a)(e,void 0)&&n.push(e),e=e.parentElement;return n}(e))i(t,e);else{var n,o,a,l;let{left:r,top:i}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:s,top:u}=e.getBoundingClientRect();(Math.abs(r-s)>1||Math.abs(i-u)>1)&&(null==t||null===(a=t.containingElement)||void 0===a||null===(o=a.scrollIntoView)||void 0===o||o.call(a,{block:"center",inline:"center"}),null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"nearest"}))}}}},1325:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var r=n(69786),i=n(67294);let o=0,a=new Map;function l(e){let[t,n]=(0,i.useState)();return(0,r.b)(()=>
1{if(!e)return;let t=a.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${o++}`;n(r);let i=document.createElement("div");i.id=r,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},a.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),a.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}},68278:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(61718),i=n(67294);function o(e,t,n,o){let a=(0,r.i)(n),l=null==n;(0,i.useEffect)(()=>{if(l||!e.current)return;let n=e.current;return n.addEventListener(t,a,o),()=>{n.removeEventListener(t,a,o)}},[e,t,o,l,a])}},11594:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(67294);function i(e){return null}i.getCollectionNode=function*(e,t){let{childItems:n,title:i,children:o}=e,a=e.title||e.children,l=e.textValue||("string"==typeof a?a:"")||e["aria-label"]||"";l||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:a,textValue:l,"aria-label":e["aria-label"],hasChildNodes:null!=e.hasChildItems?e.hasChildItems:!!(e.childItems||e.title&&r.Children.count(e.children)>0),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(i){let e=[];r.Children.forEach(o,t=>{e.push({type:"item",element:t})}),yield*e}}}};let o=i},66685:function(e,t,n){"use strict";function r(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function i(e){return o(e,0)}function o(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function a(e){let t;for(let n of e)t=n;return t}function l(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...s(e,t),t],i=[...s(e,n),n],o=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==o?(t=r[o],n=i[o],t.index-n.index):r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1)}function s(e,t){let n=[];for(;(null==t?void 0:t.parentKey)!=null;)n.unshift(t=e.getItem(t.parentKey));return n}n.d(t,{Em:function(){return o},_P:function(){return r},eg:function(){return l},l8:function(){return i},s:function(){return a}})},92411:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(66685);let i=new WeakMap;function o(e){let t=i.get(e);if(null!=t)return t;t=0;let n=i=>{for(let o of i)"section"===o.type?n((0,r._P)(o,e)):t++};return n(e),i.set(e,t),t}},19825:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var r=n(67294);class i{build(e,t){return this.context=t,o(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if("function"==typeof t){if(!n)throw Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];r.Children.forEach(t,t=>{e.push(t)});let n=0;for(let t of e)for(let e of this.getFullNode({element:t,index:n},{}))n++,yield e}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let i=t.value;if(null!=i){var o;let e=null!==(o=i.key)&&void 0!==o?o:i.id;if(null==e)throw Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,i){let l=e.element;if(!l&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=i?i.key:null,yield n;return}l=t.renderer(e.value)}if(r.isValidElement(l)){let r=l.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e="function"==typeof l.type?l.type.name:l.type;throw Error(`Unknown element <${e}> in collection.`)}let o=r.getCollectionNode(l.props,this.context),s=e.index,u=o.next();for(;!u.done&&u.value;){let r=u.value;e.index=s;let c=r.key;c||(c=r.element?null:this.getKey(l,e,t,n));let d=[...this.getFullNode({...r,key:c,index:s,wrapper:function(e,t){return e&&t?n=>e(t(n)):e||t||void 0}(e.wrapper,r.wrapper)},this.getChildState(t,r),n?`${n}${l.key}`:l.key,i)];for(let t of d){if(t.value=r.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${a(t.type)}> in <${a(i.type)}>. Only <${a(e.type)}> is supported.`);s++,yield t}
1u=o.next(d)}return}if(null==e.key)return;let s=this,u={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:o(function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes())for(let e of(null!=r.key&&(r.key=`${u.key}${r.key}`),r.index=n,s.getFullNode(r,s.getChildState(t,r),u.key,u)))n++,yield e})};yield u}constructor(){this.cache=new WeakMap}}function o(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let r of(n||(n=e()),n))t.push(r),yield r}}}function a(e){return e[0].toUpperCase()+e.slice(1)}function l(e,t,n){let o=(0,r.useMemo)(()=>new i,[]),{children:a,items:l,collection:s}=e;return(0,r.useMemo)(()=>s||t(o.build({children:a,items:l},n)),[o,a,l,s,n,t])}},65367:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(16551),i=n(67294);function o(e){let t=(0,r.d)(e),[n,o]=(0,i.useState)(null),[a,l]=(0,i.useState)([]),s=()=>{l([]),t.close()};return{focusStrategy:n,...t,open(e=null){o(e),t.open()},toggle(e=null){o(e),t.toggle()},close(){s()},expandedKeysStack:a,openSubmenu:(e,t)=>{l(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{l(n=>n[t]===e?n.slice(0,t):n)}}}},71823:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});class r extends Set{constructor(e,t,n){super(e),e instanceof r?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}},44212:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71823),i=n(66685);class o{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&0>(0,i.eg)(this.collection,n,e))&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&(0,i.eg)(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"!==this.selectionMode){if("single"===this.selectionMode){this.replaceSelection(e);return}if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new r.Y([e],e,e);else{let n=this.state.selectedKeys,i=n.anchorKey||e;for(let o of(t=new r.Y(n,i,e),this.getKeyRange(i,n.currentKey||e)))t.delete(o);for(let n of this.getKeyRange(e,i))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?0>=(0,i.eg)(this.collection,n,r)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){this.replaceSelection(e);return}if(null==(e=this.getKey(e)))return;
1let t=new r.Y("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode||null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new r.Y([e],e,e):new r.Y;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new r.Y;for(let n of e)if(null!=(n=this.getKey(n))&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t((0,i.l8)((0,i._P)(r,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new r.Y)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!!n&&(null==n||null===(t=n.props)||void 0===t||!t.isDisabled)&&("cell"!==n.type||!!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n?void 0:null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n?void 0:null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}},54155:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(71823),i=n(99373),o=n(67294);function a(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:a,selectionBehavior:s="toggle",disabledBehavior:u="all"}=e,c=(0,o.useRef)(!1),[,d]=(0,o.useState)(!1),f=(0,o.useRef)(null),h=(0,o.useRef)(null),[,p]=(0,o.useState)(null),g=(0,o.useMemo)(()=>l(e.selectedKeys),[e.selectedKeys]),m=(0,o.useMemo)(()=>l(e.defaultSelectedKeys,new r.Y),[e.defaultSelectedKeys]),[y,v]=(0,i.z)(g,m,e.onSelectionChange),b=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[x,w]=(0,o.useState)(s);"replace"===s&&"toggle"===x&&"object"==typeof y&&0===y.size&&w("replace");let k=(0,o.useRef)(s);return(0,o.useEffect)(()=>{s!==k.current&&(w(s),k.current=s)},[s]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:x,setSelectionBehavior:w,get isFocused(){return c.current},setFocused(e){c.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return h.current},setFocusedKey(e,t="first"){f.current=e,h.current=t,p(e)},selectedKeys:y,setSelectedKeys(e){(a||!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,y))&&v(e)},disabledKeys:b,disabledBehavior:u}}function l(e,t){return e?"all"===e?"all":new r.Y(e):t}},90502:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});class r{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){let n;this.keyMap=new Map,this.iterable=e,t=t||new Set;let r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(n=t).nextKey=void 0;this.lastKey=null==n?void 0:n.key}}var i=n(54155),o=n(44212),a=n(67294),l=n(19825),s=n(99373);function u(e){let{onExpandedChange:t}=e,[n,u]=(0,s.z)(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),c=(0,i.q)(e),d=(0,a.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),f=(0,l.K)(e,(0,a.useCallback)(e=>new r(e,{expandedKeys:n}),[n]),null);return(0,a.useEffect)(()=>{null==c.focusedKey||f.getItem(c.focusedKey)||c.setFocusedKey(null)},[f,c.focusedKey]),{collection:f,expandedKeys:n,disabledKeys:d,toggleKey:e=>{let t;u(((t=new Set(n)).has(e)?t.delete(e):t.add(e),t))},setExpandedKeys:u,selectionManager:new o.Z(f,c)}}},18399:function(e,t,n){"use strict";function r(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function i(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let e=Math.pow(10,o);n=Math.round(n*e)/e}return n}function o(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,a=i(2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(i(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(i((n-t)/r,r))*r),a=i(a,r)}n.d(t,{N4:function(){return o},uZ:function(){return r}})},59403:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(32161),i=n(52924),o=n(9499);class a extends i.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,o.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,o.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}
1){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,r,i,a,l,s;let{state:u}=e,c=super.createResult(e,t),{isFetching:d,isRefetching:f}=c,h=d&&(null==(n=u.fetchMeta)?void 0:null==(r=n.fetchMore)?void 0:r.direction)==="forward",p=d&&(null==(i=u.fetchMeta)?void 0:null==(a=i.fetchMore)?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.Qy)(t,null==(l=u.data)?void 0:l.pages),hasPreviousPage:(0,o.ZF)(t,null==(s=u.data)?void 0:s.pages),isFetchingNextPage:h,isFetchingPreviousPage:p,isRefetching:f&&!h&&!p}}}var l=n(7687);function s(e,t,n){let i=(0,r._v)(e,t,n);return(0,l.r)(i,a)}},40479:function(e,t,n){"use strict";n.d(t,{o:function(){return U}});var r=n(50806),i=n(27726),o=n(25386),a=n(62777),l=n(14400),s=n(18456),u=n(28148);function c(e,t,n,r){return(0,s.E)(e,t,(0,u.s)(n),r)}let d=(e,t)=>Math.abs(e-t);var f=n(83624),h=n(26166);class p{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=y(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(d(e.x,t.x)**2+d(e.y,t.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=h.frameData;this.history.push({...o,timestamp:a});let{onStart:l,onMove:s}=this.handlers;r||(l&&l(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=g(t,this.transformPagePoint),h.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=y("pointercancel"===e.type?this.lastMoveEventInfo:g(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!(0,a.DJ)(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=g((0,u.Q)(e),this.transformPagePoint),{point:l}=o,{timestamp:s}=h.frameData;this.history=[{...l,timestamp:s}];let{onSessionStart:p}=t;p&&p(e,y(o,this.history)),this.removeListeners=(0,f.z)(c(this.contextWindow,"pointermove",this.handlePointerMove),c(this.contextWindow,"pointerup",this.handlePointerUp),c(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,h.Pn)(this.updatePoint)}}function g(e,t){return t?{point:t(e.point)}:e}function m(e,t){return{x:e.x-t.x,y:e.y-t.y}}function y({point:e},t){return{point:e,delta:m(e,v(t)),offset:m(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=v(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>(0,l.w)(.1)));)n--;if(!r)return{x:0,y:0};let o=(0,l.X)(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function v(e){return e[e.length-1]}var b=n(51804),x=n(58946),w=n(16645),k=n(24169),S=n(40179);function P(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function E(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function C(e,t,n){return{min:T(e,t),max:T(e,n)}}function T(e,t){return"number"==typeof e?e:e[t]||0}var D=n(61512),A=n(91730),M=n(56460),I=n(76117),L=n(96190),O=n(5196);let R=({current:e})=>e?e.ownerDocument.defaultView:null;var B=n(30607);let N=new WeakMap;class j{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,D.dO)(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new p(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor((0,u.Q)(e).point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,a.KV)(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,A.U)(e
1=>{let t=this.getAxisMotionValue(e).get()||0;if(L.aQ.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=(0,w.JO)(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&h.Wi.postRender(()=>i(e,t)),(0,B.K)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>(0,A.U)(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:R(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&h.Wi.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!F(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?(0,S.t)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,S.t)(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&(0,b.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:P(e.x,n,i),y:P(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:C(e,"left","right"),y:C(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&(0,A.U)(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!(0,b.I)(t))return!1;let r=t.current;(0,o.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let a=(0,M.z)(r,i.root,this.visualElement.getTransformPagePoint()),l={x:E((e=i.layout.layoutBox).x,a.x),y:E(e.y,a.y)};if(n){let e=n((0,I.z2)(l));this.hasMutatedConstraints=!!e,e&&(l=(0,I.i8)(e))}return l}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all((0,A.U)(a=>{if(!F(a,t,this.currentDirection))return;let s=l&&l[a]||{};o&&(s={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...s};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return(0,B.K)(this.visualElement,e),n.start((0,O.v)(e,n,0,t,this.visualElement,!1))}stopAnimation(){(0,A.U)(e=>this.getAxisMotionValue(e).stop())}
1pauseAnimation(){(0,A.U)(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){(0,A.U)(t=>{let{drag:n}=this.getProps();if(!F(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-(0,S.t)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!(0,b.I)(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};(0,A.U)(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=(0,w.JO)(e),i=(0,w.JO)(t);return i>r?n=(0,x.Y)(t.min,t.max-r,e.min):r>i&&(n=(0,x.Y)(e.min,e.max-i,t.min)),(0,k.u)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),(0,A.U)(t=>{if(!F(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,S.t)(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;N.set(this.visualElement,this);let e=c(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();(0,b.I)(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),h.Wi.read(t);let i=(0,s.E)(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&((0,A.U)(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function F(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class K extends r.L{constructor(e){super(e),this.removeGroupControls=i.Z,this.removeListeners=i.Z,this.controls=new j(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||i.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let z=e=>(t,n)=>{e&&h.Wi.postRender(()=>e(t,n))};class _ extends r.L{constructor(){super(...arguments),this.removePointerDownListener=i.Z}onPointerDown(e){this.session=new p(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:R(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:z(e),onStart:z(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&h.Wi.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=c(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var V=n(43424);let U={pan:{Feature:_},drag:{Feature:K,ProjectionNode:n(52766).u,MeasureLayout:V.q}}},30237:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(52766),i=n(43424);let o={layout:{ProjectionNode:r.u,MeasureLayout:i.q}}},43424:function(e,t,n){"use strict";n.d(t,{q:function(){return v}});var r=n(85893),i=n(67294),o=n(15947),a=n(25364),l=n(41705),s=n(93083),u=n(96190);function c(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let d={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e){if(!u.px.test(e))return e;e=parseFloat(e)}let n=c(e,t.target.x),r=c(e,t.target.y);return`${n}% ${r}%`}};var f=n(40179),h=n(56737),p=n(64561),g=n(83582),m=n(26166);class y extends i.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;(0,p.B)(b),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),s.V.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||m.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),g.g.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function v(e){let[t,n]=(0,o.oO)(),s=(0,i.useContext)(a.p);return(0,r.jsx)(y,{...e,layoutGroup:s,switchLayoutGroup:(0,i.useContext)(l.g),isPresent:t,safeToRemove:n})}let b={borderRadius:{...d,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:d,borderTopRightRadius:d,borderBottomLeftRadius:d,borderBottomRightRadius:d,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=h.P.parse(e);if(r.length>5)return e;let i=h.P.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=l;let s=(0,f.t)(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=s),"number"==typeof r[3+o]&&(r[3+o]/=s),i(r)}}}},16645:function(e,t,n){"use strict";n.d(t,{JO:function(){return i},b3:function(){return d},tf:function(){return u},wS:function(){return o},y$:function(){return l}});var r=n(40179);function i(e){return e.max-e.min}function o(e,t,n){return Math.abs(e-t)<=n}function a(e,t,n,o=.5){e.origin=o,e.originPoint=(0,r.t)(t.min,t.max,e.origin),e.scale=i(n)/i(t),e.translate=(0,r.t)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function l(e,t,n,r){a(e.x,t.x,n.x,r?r.originX:void 0),a(e.y,t.y,n.y,r?r.originY:void 0)}function s(e,t,n){e.min=n.min+t.min,e.max=e.min+i(t)}function u(e,t,n){s(e.x,t.x,n.x),s(e.y,t.y,n.y)}function c(e,t,n){e.min=t.min-n.min,e.max=e.min+i(t)}function d(e,t,n){c(e.x,t.x,n.x),c(e.y,t.y,n.y)}},52766:function(e,t,n){"use strict";n.d(t,{u:function(){return eI}});var r=n(62777),i=n(27726),o=n(33234),a=n(40406),l=n(5196),s=n(93785),u=n(26166),c=n(83582),d=n(1117),f=n(10010);let h=(e,t)=>e.depth-t.depth;class p{constructor(){this.children=[],this.isDirty=!1}add(e){(0,f.y4)(this.children,e),this.isDirty=!0}remove(e){(0,f.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(h),this.isDirty=!1,this.children.forEach(e)}}var g=n(24169),m=n(40179),y=n(21560),v=n(16399),b=n(58946),x=n(27255),w=n(96190);let k=["TopLeft","TopRight","BottomLeft","BottomRight"],S=k.length,P=e=>"string"==typeof e?parseFloat(e):e,E=e=>"number"==typeof e||w.px.test(e);function C(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let T=A(0,.5,x.Bn),D=A(.5,.95,i.Z);function A(e,t,n){return r=>r<e?0:r>t?1:n((0,b.Y)(e,t,r))}function M(e,t){e.min=t.min,e.max=t.max}function I(e,t){M(e.x,t.x),M(e.y,t.y)}function L(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var O=n(16e3),R=n(16645);function B(e,t,n,r,i){return e-=t,e=(0,O.q2)(e,1/n,r),void 0!==i&&(e=(0,O.q2)(e,1/i,r)),e}function N(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(w.aQ.test(t)&&(t=parseFloat(t),t=(0,m.t)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let l=(0,m.t)(o.min,o.max,r);e===o&&(l-=t),e.min=B(e.min,t,n,l,i),e.max=B(e.max,t,n,l,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let j=["x","scaleX","originX"],F=["y","scaleY","originY"];function K(e,t,n,r){N(e.x,t,j,n?n.x:void 0,r?r.x:void 0),N(e.y,t,F,n?n.y:void 0,r?r.y:void 0)}var z=n(61512);function _(e){return 0===e.translate&&1===e.scale}function V(e){return _(e.x)&&_(e.y)}function U(e,t){return e.min===t.min&&e.max===t.max}function H(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function W(e,t){return H(e.x,t.x)&&H(e.y,t.y)}function $(e){return(0,R.JO)(e.x)/(0,R.JO)(e.y)}function J(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class q{constructor(){this.members=[]}add(e){(0,f.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,f.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var Y=n(64561),X=n(91730),G=n(99527),Z=n(93083);let Q={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ee="undefined"!=typeof window&&void 0!==window.MotionDebug,et=["","X","Y","Z"],en={visibility:"hidden"},er=0;function ei(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eo({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:f}){return class{constructor(e={},n=null==t?void 0:t()){this.id=er++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ee&&(Q.totalNodes=Q.resolvedTargetDeltas=Q.recalculatedProjection=0),this.nodes.forEach(es),this.nodes.forEach(eg),this.nodes.forEach(em),this.nodes.forEach(eu),ee&&window.MotionDebug.record(Q)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new p)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new y.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:i,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=d.X.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&((0,u.Pn)(r),e(i-250))};return u.Wi.read(r,!0),()=>(0,u.Pn)(r)}(r,0),Z.V.hasAnimatedSinceResize&&(Z.V.hasAnimatedSinceResize=!1,this.nodes.forEach(ep))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||a.getDefaultTransition()||ek,{onLayoutAnimationStart:l,onLayoutAnimationComplete:s}=a.getProps(),u=!this.targetLayout||!W(this.targetLayout,i)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...(0,r.ev)(o,"layout"),onPlay:l,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ep(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,u.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(ey),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=(0,s.s)(n);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",u.Wi,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ed);return}this.isUpdating||this.nodes.forEach(ef),this.isUpdating=!1,this.nodes.forEach(eh),this.nodes.forEach(ea),this.nodes.forEach(el),this.clearAllSnapshots();let e=d.X.now();u.frameData.delta=(0,g.u)(0,1e3/60,e-u.frameData.timestamp),u.frameData.timestamp=e,u.frameData.isProcessing=!0,u.yL.update.process(u.frameData),u.yL.preRender.process(u.frameData),u.yL.render.process(u.frameData),u.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,c.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ec),this.sharedNodes.forEach(ev)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,u.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){u.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,z.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!f)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!V(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||(0,G.ud)(this.latestValues)||i)&&(f(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),eE((t=r).x),eE(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return(0,z.dO)();let n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(eT))){let{scroll:e}=this.root;e&&((0,O.am)(n.x,e.offset.x),(0,O.am)(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=(0,z.dO)();if(I(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&I(n,e),(0,O.am)(n.x,i.offset.x),(0,O.am)(n.y,i.offset.y))}return n}applyTransform(e,t=!1){let n=(0,z.dO)();I(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(0,O.D2)(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),(0,G.ud)(r.latestValues)&&(0,O.D2)(n,r.latestValues)}return(0,G.ud)(this.latestValues)&&(0,O.D2)(n,this.latestValues),n}removeTransform(e){let t=(0,z.dO)();I(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!(0,G.ud)(n.latestValues))continue;(0,G.Lj)(n.latestValues)&&n.updateSnapshot();let r=(0,z.dO)();I(r,n.measurePageBox()),K(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return(0,G.ud)(this.latestValues)&&K(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==u.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let r=!!this.resumingFrom||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=u.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,z.dO)(),this.relativeTargetOrigin=(0,z.dO)(),(0,R.b3)(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),I(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,z.dO)(),this.targetWithTransforms=(0,z.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,R.tf)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):I(this.target,this.layout.layoutBox),(0,O.o2)(this.target,this.targetDelta)):I(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,z.dO)(),this.relativeTargetOrigin=(0,z.dO)(),(0,R.b3)(this.relativeTargetOrigin,this.target,e.target),I(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ee&&Q.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,G.Lj)(this.parent.latestValues)||(0,G.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===u.frameData.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;I(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,l=this.treeScale.y;(0,O.YY)(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,z.dO)());let{target:s}=t;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(L(this.prevProjectionDelta.x,this.projectionDelta.x),L(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,R.y$)(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===l&&J(this.projectionDelta.x,this.prevProjectionDelta.x)&&J(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),ee&&Q.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,z.wc)(),this.projectionDelta=(0,z.wc)(),this.projectionDeltaWithTransform=(0,z.wc)()}setAnimationOrigin(e,t=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=(0,z.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=(0,z.dO)(),s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(s&&!c&&!0===this.options.crossfade&&!this.path.some(ew));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(eb(a.x,e.x,r),eb(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,h,p;(0,R.b3)(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,ex(h.x,p.x,l.x,r),ex(h.y,p.y,l.y,r),n&&(u=this.relativeTarget,f=n,U(u.x,f.x)&&U(u.y,f.y))&&(this.isProjectionDirty=!1),n||(n=(0,z.dO)()),I(n,this.relativeTarget)}s&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=(0,m.t)(0,void 0!==n.opacity?n.opacity:1,T(r)),e.o
1pacityExit=(0,m.t)(void 0!==t.opacity?t.opacity:1,0,D(r))):o&&(e.opacity=(0,m.t)(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<S;i++){let o=`border${k[i]}Radius`,a=C(t,o),l=C(n,o);(void 0!==a||void 0!==l)&&(a||(a=0),l||(l=0),0===a||0===l||E(a)===E(l)?(e[o]=Math.max((0,m.t)(P(a),P(l),r),0),(w.aQ.test(l)||w.aQ.test(a))&&(e[o]+="%")):e[o]=l)}(t.rotate||n.rotate)&&(e.rotate=(0,m.t)(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,u.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=u.Wi.update(()=>{Z.V.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let r=(0,a.i)(0)?0:(0,o.BX)(0);return r.start((0,l.v)("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&eC(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||(0,z.dO)();let t=(0,R.JO)(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=(0,R.JO)(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}I(t,n),(0,O.D2)(t,i),(0,R.y$)(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new q),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ei("z",e,r,this.animationValues);for(let t=0;t<et.length;t++)ei(`rotate${et[t]}`,e,r,this.animationValues),ei(`skew${et[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return en;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=(0,v.b)(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,v.b)(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!(0,G.ud)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.
1y.translate/t.y,a=(null==n?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}let l=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==l||1!==s)&&(r+=`scale(${l}, ${s})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));let{x:l,y:s}=this.projectionDelta;for(let e in r.transformOrigin=`${100*l.origin}% ${100*s.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,Y.P){if(void 0===a[e])continue;let{correct:t,applyTo:n}=Y.P[e],i="none"===r.transform?a[e]:t(a[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=i}else r[e]=i}return this.options.layoutId&&(r.pointerEvents=o===this?(0,v.b)(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(ed),this.root.sharedNodes.clear()}}}function ea(e){e.updateLayout()}function el(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?(0,X.U)(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],i=(0,R.JO)(r);r.min=t[e].min,r.max=r.min+i}):eC(i,n.layoutBox,t)&&(0,X.U)(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],a=(0,R.JO)(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=(0,z.wc)();(0,R.y$)(a,t,n.layoutBox);let l=(0,z.wc)();o?(0,R.y$)(l,e.applyTransform(r,!0),n.measuredBox):(0,R.y$)(l,t,n.layoutBox);let s=!V(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=(0,z.dO)();(0,R.b3)(a,n.layoutBox,i.layoutBox);let l=(0,z.dO)();(0,R.b3)(l,t,o.layoutBox),W(a,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:s,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function es(e){ee&&Q.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function eu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ec(e){e.clearSnapshot()}function ed(e){e.clearMeasurements()}function ef(e){e.isLayoutDirty=!1}function eh(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ep(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eg(e){e.resolveTargetDelta()}function em(e){e.calcProjection()}function ey(e){e.resetSkewAndRotation()}function ev(e){e.removeLeadSnapshot()}function eb(e,t,n){e.translate=(0,m.t)(t.translate,0,n),e.scale=(0,m.t)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ex(e,t,n,r){e.min=(0,m.t)(t.min,n.min,r),e.max=(0,m.t)(t.max,n.max,r)}function ew(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ek={duration:.45,ease:[.4,0,.1,1]},eS=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),eP=eS("applewebkit/")&&!eS("chrome/")?Math.round:i.Z;function eE(e){e.min=eP(e.min),e.max=eP(e.max)}function eC(e,t,n){return"position"===e||"preserve-aspect"===e&&!(0,R.wS)($(t),$(n),.2)}function eT(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}var eD=n(18456);let eA=eo({attachResizeListener:(e,t)=>(0,eD.E)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eM={current:void 0},eI=eo({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!eM.current){let e=new eA({});e.mount(window),e.setOptions({layoutScroll:!0}),eM.current=e}return eM.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position})},93083:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});let r={hasAnimatedSinceResize:!0,hasEverUpdated:!1}},91730:function(e,t,n){"use strict";function r(e){return[e("x"),e("y")]}n.d(t,{U:function(){return r}})},54011:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(82099),i=n(96149),o=n(40479),a=n(30602),l=n(30237),s=n(79775),u=n(3319);let c=(0,s.x)({...i.s,...a.E,...o.o,...l.b},u.b),d=(0,r.c)(c)},48885:function(e,t,n){"use strict";n.d(t,{UG:function(){return nM}});var r={};n.r(r),n.d(r,{boolean:function(){return m},booleanish:function(){return y},commaOrSpaceSeparated:function(){return k},commaSeparated:function(){return w},number:function(){return b},overloadedBoolean:function(){return v},spaceSeparated:function(){return x}});var i={};n.r(i),n.d(i,{attentionMarkers:function(){return tT},contentInitial:function(){return tw},disable:function(){return tD},document:function(){return tx},flow:function(){return tS},flowInitial:function(){return tk},insideSpan:function(){return tC},string:function(){return tP},text:function(){return tE}});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function s(e,t){return((t||l).jsx?a:o).test(e)}let u=/[ \t\n\f\r]/g;function c(e){return""===e.replace(u,"")}class d{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function f(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new d(n,r,t)}function h(e){return e.toLowerCase()}d.prototype.normal={},d.prototype.property={},d.prototype.space=void 0;class p{constructor(e,t){this.attribute=t,this.property=e}}p.prototype.attribute="",p.prototype.booleanish=!1,p.prototype.boolean=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.commaSeparated=!1,p.prototype.defined=!1,p.prototype.mustUseProperty=!1,p.prototype.number=!1,p.prototype.overloadedBoolean=!1,p.prototype.property="",p.prototype.spaceSeparated=!1,p.prototype.space=void 0;let g=0,m=S(),y=S(),v=S(),b=S(),x=S(),w=S(),k=S();function S(){return 2**++g}let P=Object.keys(r);class E extends p{constructor(e,t,n,i){var o,a;let l=-1;if(super(e,t),i&&(this.space=i),"number"==typeof n)for(;++l<P.length;){let e=P[l];o=P[l],(a=(n&r[e])===r[e])&&(this[o]=a)}}}function C(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new E(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[h(r)]=r,n[h(o.attribute)]=r}return new d(t,n,e.space)}E.prototype.defined=!0;let T=C({properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:x,ariaCurrent:null,ariaDescribedBy:x,ariaDetails:null,ariaDisabled:y,ariaDropEffect:x,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:x,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:x,ariaLevel:b,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:x,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:x,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:y,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function D(e,t){return t in e?e[t]:t}function A(e,t){return D(e,t.toLowerCase())}let M=C({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:x,accessKey:x,action:null,allow:null,allowFullScreen:m,allowPaymentRequest:m,allowUserMedia:m,alt:null,as:null,async:m,autoCapitalize:null,autoComplete:x,autoFocus:m,autoPlay:m,blocking:x,capture:null,charSet:null,checked:m,cite:null,className:x,cols:b,colSpan:null,content:null,contentEditable:y,controls:m,controlsList:x,coords:b|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m,defer:m,dir:null,dirName:null,disabled:m,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m,formTarget:null,headers:x,height:b,hidden:m,high:b,href:null,hrefLang:null,htmlFor:x,httpEquiv:x,id:null,imageSizes:null,imageSrcSet:null,inert:m,inputMode:null,integrity:null,is:null,isMap:m,itemId:null,itemProp:x,itemRef:x,itemScope:m,itemType:x,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:m,muted:m,name:null,nonce:null,noModule:m,noValidate:m,onAbort:null,onAfterPrint:null,onAuxCl
1ick: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:m,optimum:b,pattern:null,ping:x,placeholder:null,playsInline:m,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m,referrerPolicy:null,rel:x,required:m,reversed:m,rows:b,rowSpan:b,sandbox:x,scope:null,scoped:m,seamless:m,selected:m,shadowRootClonable:m,shadowRootDelegatesFocus:m,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:m,useMap:null,value:y,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:x,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m,declare:m,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:m,noHref:m,noShade:m,noWrap:m,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m,disableRemotePlayback:m,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:A}),I=C({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
1-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:k,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:x,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:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:m,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,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:b,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,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:x,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:k,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:k,rev:k,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:k,requiredFeatures:k,requiredFonts:k,requiredFormats:k,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:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:k,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:D}),L=C({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),O=C({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:A}),R=C({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),B=f([T,M,L,O,R],"html"),N=f([T,I,L,O,R],"svg"),j=/[A-Z]/g,F=/-[a-z]/g,K=/^data[-\w.:]+$/i;function z(e){return"-"+e.toLowerCase()}function _(e){return e.charAt(1).toUpperCase()}let V={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var U=n(41476);let H=$("end"),W=$("start");function $(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function J(e){return e&&"object"==typeof e?"position"in e||"type"in e?Y(e.position):"start"in e||"end"in e?Y(e):"line"in e||"column"in e?q(e):"":""}function q(e){return X(e&&e.line)+":"+X(e&&e.column)}function Y(e){return q(e&&e.start)+"-"+q(e&&e.end)}function X(e){return e&&"number"==typeof e?e:1}class G extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.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=J(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}G.prototype.file="",G.prototype.name="",G.prototype.reason="",G.prototype.message="",G.prototype.stack="",G.prototype.column=void 0,G.prototype.line=void 0,G.prototype.ancestors=void 0,G.prototype.cause=void 0,G.prototype.fatal=void 0,G.prototype.place=void 0,G.prototype.ruleId=void 0,G.prototype.source=void 0;let Z={}.hasOwnProperty,Q=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1function ei(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=N,e.schema=i),e.ancestors.push(t);let o=es(e,t.tagName,!1),a=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&Z.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=h(t),r=t,i=p;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&K.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(F,_);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!F.test(e)){let n=e.replace(j,z);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=E}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return U(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new G("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)Z.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?V[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,a]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof a&&en.has(t.tagName)?n=a:i[r]=a}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),l=el(e,t);return et.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),eo(e,a,o,t),ea(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eu(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=N,e.schema=i),e.ancestors.push(t);let o=null===t.name?e.Fragment:es(e,t.name,!0),a=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else eu(e,t.position)}else{let i;let o=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else eu(e,t.position)}else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=el(e,t);return eo(e,a,o,t),ea(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eu(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return ea(r,el(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ea(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function el(e,t){let n=[],r=-1,i=e.passKeys?new Map:Q;for(;++r<t.children.length;){let o;let a=t.children[r];if(e.passKeys){let e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let l=ei(e,a,o);void 0!==l&&n.push(l)}return n}
1function es(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=s(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=s(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return Z.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eu(e)}function eu(e,t){let n=new G("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=er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ec(e){return"-"+e.toLowerCase()}let ed={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"]};var ef=n(85893);n(67294);let eh={};function ep(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eg(e.children,t,n)}return Array.isArray(e)?eg(e,t,n):""}function eg(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ep(e[i],t,n);return r.join("")}function em(e,t,n,r){let i;let o=e.length,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function ey(e,t){return e.length>0?(em(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&eb(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),eb(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eb(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);eb(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);eb(this.left,t.reverse())}}}}function eb(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 ex(e){let t,n,r,i,o,a,l;let s={},u=-1,c=new ev(e);for(;++u<c.length;){for(;(u in s);)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r;let i=e.get(t)[1],o=e.get(t)[2],a=t-1,l=[],s=i._tokenizer;!s&&(s=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._c
1ontentTypeTextTrailing=!0));let u=s.events,c=[],d={},f=-1,h=i,p=0,g=0,m=[0];for(;h;){for(;e.get(++a)[1]!==h;);l.push(a),!h._tokenizer&&(n=o.sliceStream(h),h.next||n.push(null),r&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(g=f+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),f=m.length;f--;){let t=u.slice(m[f],m[f+1]),n=l.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[p+c[f][0]]=p+c[f][1],p+=c[f][1]-c[f][0]-1;return d}(c,u)),u=s[u],l=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return em(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}let ew={}.hasOwnProperty,ek=eR(/[A-Za-z]/),eS=eR(/[\dA-Za-z]/),eP=eR(/[#-'*+\--9=?A-Z^-~]/);function eE(e){return null!==e&&(e<32||127===e)}let eC=eR(/\d/),eT=eR(/[\dA-Fa-f]/),eD=eR(/[!-/:-@[-`{-~]/);function eA(e){return null!==e&&e<-2}function eM(e){return null!==e&&(e<0||32===e)}function eI(e){return -2===e||-1===e||32===e}let eL=eR(/\p{P}|\p{S}/u),eO=eR(/\s/);function eR(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eB(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return function(r){return eI(r)?(e.enter(n),function r(a){return eI(a)&&o++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let eN={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eB(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eA(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},ej={tokenize:function(e){let t,n,r;let i=this,o=[],a=0;return l;function l(t){if(a<o.length){let n=o[a];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}m(a);let l=r;
1for(;l<i.events.length;)i.events[l][1].end={...n},l++;return em(i.events,o+1,0,i.events.slice(r)),i.events.length=l,u(e)}return l(e)}function u(n){if(a===o.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return p(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eF,c,d)(n)}function c(e){return t&&y(),m(a),f(e)}function d(e){return i.parser.lazy[i.now().line]=a!==o.length,r=i.now().offset,p(e)}function f(t){return i.containerState={},e.attempt(eF,h,p)(t)}function h(e){return a++,o.push([i.currentConstruct,i.containerState]),f(e)}function p(r){if(null===r){t&&y(),m(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){g(e.exit("chunkFlow"),!0),m(0),e.consume(n);return}return eA(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,i.interrupt=void 0,l):(e.consume(n),t)}(r)}function g(e,o){let l=i.sliceStream(e);if(o&&l.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(l),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let l=i.events.length,s=l;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(m(a),o=l;o<i.events.length;)i.events[o][1].end={...n},o++;em(i.events,s+1,0,i.events.slice(l)),i.events.length=o}}function m(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eF={tokenize:function(e,t,n){return eB(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eK={partial:!0,tokenize:function(e,t,n){return function(t){return eI(t)?eB(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eA(e)?t(e):n(e)}}},ez={resolve:function(e){return ex(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eA(t)?e.check(e_,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},e_={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eB(e,i,"linePrefix")};function i(i){if(null===i||eA(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eV={tokenize:function(e){let t=this,n=e.attempt(eK,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,eB(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ez,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eU={resolveAll:eJ()},eH=e$("string"),eW=e$("text");function e$(e){return{resolveAll:eJ("text"===e?eq:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return s(e)?i(e):a(e)}function a(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eJ(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function eq(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],o=t.sliceStream(i),a=o.length,l=-1,s=0;for(;a--;){let e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let o={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:i.start._bufferIndex+l,_index:i.start._index+a,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}let eY={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){return e.enter("thematicBreak"),r=o,function o(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eI(n)?eB(e,o,"whitespace")(n):o(n))}
1(a)):i>=3&&(null===a||eA(a))?(e.exit("thematicBreak"),t(a)):n(a)}(o)}}},eX={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eK,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eB(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eI(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eZ,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eB(e,e.attempt(eX,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eC(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eY,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eC(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),l(i)):n(i)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eK,r.interrupt?n:s,e.attempt(eG,c,u))}
1function s(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eI(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eG={partial:!0,tokenize:function(e,t,n){let r=this;return eB(e,function(e){let i=r.events[r.events.length-1];return!eI(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eZ={partial:!0,tokenize:function(e,t,n){let r=this;return eB(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eQ={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eI(t)?eB(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eQ,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eI(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e0(e,t,n,r,i,o,a,l,s){let u=s||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||eE(t)?n(t):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),p(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||eA(t)?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return!c&&(null===i||41===i||eM(i))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,p):41===i?(e.consume(i),c--,p):null===i||32===i||40===i||eE(i)?n(i):(e.consume(i),92===i?g:p)}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function e1(e,t,n,r,i,o){let a;let l=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(d){return s>999||null===d||91===d||93===d&&!a||94===d&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):eA(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||eA(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!eI(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function e4(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,l):n(t)};function l(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===a?(e.exit(o),l(a)):null===t?n(t):eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eB(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||eA(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function e3(e,t){let n;return function r(i){return eA(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eI(i)?eB(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e2(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e5={partial:!0,tokenize:function(e,t,n){return function(t){return eM(t)?e3(e,r)(t):n(t)};function r(t){return e4(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eI(t)?eB(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eA(e)?t(e):n(e)}}},e6={name:"codeIndented",tokenize:function(e,t,n){let r=this;
1return function(t){return e.enter("codeIndented"),eB(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eA(n)?e.attempt(e9,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eA(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e9={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eB(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eA(e)?i(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let a,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){a="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eI(n)?eB(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||eA(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e8=["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"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eK,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),eI(t)?eB(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=l?(e.exit("codeFencedFenceSequence"),eI(i)?eB(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eA(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,l=0;return function(t){return function(t){let o=i.events[i.events.length-1];return a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l<3?n(i):(e.exit("codeFencedFenceSequence"),eI(i)?eB(e,s,"whitespace")(i):s(i))}(t)}(t)};function s(o){return null===o||eA(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tr,c,p)(o)):(e.enter("co
1deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eA(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eB(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||eA(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eA(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return a>0&&eI(t)?eB(e,h,"linePrefix",a+1)(t):h(t)}function h(t){return null===t||eA(t)?e.check(tr,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eA(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}}},to=document.createElement("i");function ta(e){let t="&"+e+";";to.innerHTML=t;let n=to.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let tl={name:"characterReference",tokenize:function(e,t,n){let r,i;let o=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eS,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eT,u):(e.enter("characterReferenceValue"),r=7,i=eC,u(t))}function u(l){if(59===l&&a){let r=e.exit("characterReferenceValue");return i!==eS||ta(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<r?(e.consume(l),u):n(l)}}},ts={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eD(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tu={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eB(e,t,"linePrefix")}}};function tc(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let td={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&em(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(i=a);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[i-2][1].start}};return o=ey(o=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+l+3)),o=ey(o,[["enter",c,t]]),o=ey(o,tc(t.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),t)),o=ey(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=ey(o,e.slice(i+1)),o=ey(o,[["exit",s,t]]),em(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i;let o=this,a=o.events.length;for(;a--;)if(("labelImage"===o.events[a][1].type||"labelLink"===o.events[a][1].type)&&!o.events[a][1]._balanced){r=o.events[a][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(e2(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(tf,u,i?u:c)(t):91===t?e.attempt(th,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(tp,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},tf={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eM(t)?e3(e,i)(t):i(t)}function i(t){return 41===t?u(t):e0(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eM(t)?e3(e,l)(t):u(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?e4(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return eM(t)?e3(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},th={tokenize:function(e,t,n){let r=this;return function(t){return e1.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(e2(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tp={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tg={name:"labelStartImage",resolveAll:td.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tm(e){return null===e||eM(e)||eO(e)?1:eL(e)?2:void 0}let ty={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,l,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
1n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};tv(d,-l),tv(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:l>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[c][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=ey(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=ey(s,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),s=ey(s,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=ey(s,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=ey(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,em(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=tm(i);return function(a){return n=a,e.enter("attentionSequence"),function a(l){if(l===n)return e.consume(l),a;let s=e.exit("attentionSequence"),u=tm(l),c=!u||2===u&&o||r.includes(l),d=!o||2===o&&u||r.includes(i);return s._open=!!(42===n?c:c&&(o||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(l)}(a)}}};function tv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tb={name:"labelStartLink",resolveAll:td.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tx={42:eX,43:eX,45:eX,48:eX,49:eX,50:eX,51:eX,52:eX,53:eX,54:eX,55:eX,56:eX,57:eX,62:eQ},tw={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),e1.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return(r=e2(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return eM(t)?e3(e,l)(t):l(t)}function l(t){return e0(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(e5,u,u)(t)}function u(t){return eI(t)?eB(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eA(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},tk={[-2]:e6,[-1]:e6,32:e6},tS={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},em(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eM(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eA(r)?(e.exit("atxHeading"),t(r)):eI(r)?eB(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eM(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(i)}}},42:eY,45:[e7,eY],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,o,a,l;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,h):63===a?(e.consume(a),r=3,s.interrupt?t:L):ek(a)?(e.consume(a),o=String.fromCharCode(a),p):n(a)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,f):ek(i)?(e.consume(i),r=4,s.interrupt?t:L):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:L):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?s.interrupt?t:P:f:n(r)}function h(t){return ek(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}
1function p(a){if(null===a||47===a||62===a||eM(a)){let l=47===a,u=o.toLowerCase();return!l&&!i&&te.includes(u)?(r=1,s.interrupt?t(a):P(a)):e8.includes(o.toLowerCase())?(r=6,l)?(e.consume(a),g):s.interrupt?t(a):P(a):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):i?function t(n){return eI(n)?(e.consume(n),t):k(n)}(a):m(a))}return 45===a||eS(a)?(e.consume(a),o+=String.fromCharCode(a),p):n(a)}function g(r){return 62===r?(e.consume(r),s.interrupt?t:P):n(r)}function m(t){return 47===t?(e.consume(t),k):58===t||95===t||ek(t)?(e.consume(t),y):eI(t)?(e.consume(t),m):k(t)}function y(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):eI(t)?(e.consume(t),v):m(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):eI(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eM(n)?v(n):(e.consume(n),t)}(t)}function x(t){return t===l?(e.consume(t),l=null,w):null===t||eA(t)?n(t):(e.consume(t),x)}function w(e){return 47===e||62===e||eI(e)?m(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eA(t)?P(t):eI(t)?(e.consume(t),S):n(t)}function P(t){return 45===t&&2===r?(e.consume(t),D):60===t&&1===r?(e.consume(t),A):62===t&&4===r?(e.consume(t),O):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),I):eA(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,R,E)(t)):null===t||eA(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),P)}function E(t){return e.check(tn,C,R)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||eA(t)?E(t):(e.enter("htmlFlowData"),P(t))}function D(t){return 45===t?(e.consume(t),L):P(t)}function A(t){return 47===t?(e.consume(t),o="",M):P(t)}function M(t){if(62===t){let n=o.toLowerCase();return te.includes(n)?(e.consume(t),O):P(t)}return ek(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),M):P(t)}function I(t){return 93===t?(e.consume(t),L):P(t)}function L(t){return 62===t?(e.consume(t),O):45===t&&2===r?(e.consume(t),L):P(t)}function O(t){return null===t||eA(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),O)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:eY,96:ti,126:ti},tP={38:tl,92:ts},tE={[-5]:tu,[-4]:tu,[-3]:tu,33:tg,38:tl,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ek(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(t){return 43===t||45===t||46===t||eS(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||eS(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eE(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),s):eP(t)?(e.consume(t),l):n(t)}function s(i){return eS(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eS(o)
1)&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):ek(t)?(e.consume(t),k):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):ek(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):eA(t)?(o=c,M(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?A(e):45===e?d(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):eA(t)?(o=p,M(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?A(t):93===t?(e.consume(t),m):p(t)}function y(t){return null===t||62===t?A(t):eA(t)?(o=y,M(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):eA(t)?(o=v,M(t)):(e.consume(t),v)}function b(e){return 62===e?A(e):v(e)}function x(t){return ek(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):function t(n){return eA(n)?(o=t,M(n)):eI(n)?(e.consume(n),t):A(n)}(t)}function k(t){return 45===t||eS(t)?(e.consume(t),k):47===t||62===t||eM(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),A):58===t||95===t||ek(t)?(e.consume(t),P):eA(t)?(o=S,M(t)):eI(t)?(e.consume(t),S):A(t)}function P(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),P):function t(n){return 61===n?(e.consume(n),E):eA(n)?(o=t,M(n)):eI(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):eA(t)?(o=E,M(t)):eI(t)?(e.consume(t),E):(e.consume(t),T)}function C(t){return t===r?(e.consume(t),r=void 0,D):null===t?n(t):eA(t)?(o=C,M(t)):(e.consume(t),C)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eM(t)?S(t):(e.consume(t),T)}function D(e){return 47===e||62===e||eM(e)?S(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return eI(t)?eB(e,L,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),o(t)}}}],91:tb,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eA(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ts],93:td,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),a):96===s?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",l(a))}(s)):eA(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(s))}function l(t){return null===t||32===t||96===t||eA(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}}}},tC={null:[ty,eU]},tT={null:[42,95]},tD={null:[]},tA=/[\0\t\n\r]/g;function tM(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tL(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;
1return tM(n.slice(t?2:1),t?16:10)}return ta(n)||e}let tO={}.hasOwnProperty;function tR(e){return{line:e.line,column:e.column,offset:e.offset}}function tB(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is still open")}function tN(e){let t=this;t.parser=function(n){var r,o;let a,l,s,u;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(p),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(m,i),htmlFlowData:u,htmlText:r(m,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(p),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:a(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tM(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=ta(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tR(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e2(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tI,tL),n.identifier=e2(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tR(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
1ype)&&(u.call(this,e),c.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e2(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tO.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:o,exit:l,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,o,a,l=t-1,s=-1,u=!1;for(;++l<=n;){let t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||o||(o=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(l,0,["enter",i,t[2]]),l++,n++,o=void 0,a=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tO.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||tB).call(a,void 0,e[0])}for(r.position={start:tR(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tR(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tR(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tB).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): itâs not open");n.position.end=tR(e.end)}function s(){return ep(this.stack.pop(),"boolean"!=typeof eh.includeImageAlt||eh.includeImageAlt,"boolean"!=typeof eh.includeHtml||eh.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tR(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tR(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function p(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function m(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!ex(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=(ew.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ew.call(i,r)||(i[r]=[]);let e=o[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);em(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}([i,...(e||{}).extensions||[]]),content:n(eN),defined:[],document:n(ej),flow:n(eV),lazy:{},string:n(eH),text:n(eW)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
1olumn:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],a=[],l=[],s={attempt:p(function(e,t){g(e,t.from)}),check:p(h),consume:function(e){eA(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,m()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){let t=l.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:p(h,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,m()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o;let a=e[r];if("string"==typeof a)o=a;else switch(a){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(a)}n=-2===a,i.push(o)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(a=ey(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==a[a.length-1])?[]:(g(t,0),u.events=tc(o,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,a)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function h(e,t){t.restore()}function p(e,t){return function(n,i,o){let a,c,d,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return p([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function p(e){return(a=e,c=0,0===e.length)?o:g(e[c])}function g(e){return function(n){return(h=function(){let e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(l);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,l=o,m()}}}(),d=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,y,v)(n)}}function y(t){return e(d,h),i}function v(e){return(h.restore(),++c<a.length)?g(a[c]):o}}}function g(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&em(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function m(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(o).document().write((l=1,s="",u=!0,function(e,t,n){let r,i,o,c,d;let f=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,s="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tA.lastIndex=o,c=(r=tA.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){s=e.slice(o);break}if(10===d&&o===c&&a)f.push(-3),a=void 0;else switch(a&&(f.push(-5),a=void 0),o<c&&(f.push(e.slice(o,c)),l+=c-o),d){case 0:f.push(65533),l++;break;case 9:for(i=4*Math.ceil(l/4),f.push(-2);l++<i;)f.push(-1);break;case 10:f.push(-4),l=1;break;default:a=!0,l=1}o=c+1}return n&&(a&&f.push(-5),s&&f.push(s),f.push(null)),f})(n,r,!0))))}}let tj="object"==typeof self?self:globalThis,tF=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,a]=t[i];switch(o){case 0:case -1:return n(a,i);case 1:{let e=n([],i);for(let t of a)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of a)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of a)e.add(r(t));return e}case 7:{let{name:e,message:t}=a;return n(new tj[e](t),i)}case 8:return n(BigInt(a),i);
1case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new tj[o](a),i)};return r},tK=e=>tF(new Map,e)(0),{toString:tz}={},{keys:t_}=Object,tV=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tz.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tU=([e,t])=>0===e&&("function"===t||"symbol"===t),tH=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,l]=tV(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+l);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),i([l,[...e]],r)}let e=[],t=i([a,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(l)switch(l){case"BigInt":return i([l,r.toString()],r);case"Boolean":case"Number":case"String":return i([l,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],s=i([a,n],r);for(let t of t_(r))(e||!tU(tV(r[t])))&&n.push([o(t),o(r[t])]);return s}case 3:return i([a,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{let t=[],n=i([a,t],r);for(let[n,i]of r)(e||!(tU(tV(n))||tU(tV(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([a,t],r);for(let n of r)(e||!tU(tV(n)))&&t.push(o(n));return n}}let{message:s}=r;return i([a,{name:l,message:s}],r)};return o},tW=(e,{json:t,lossy:n}={})=>{let r=[];return tH(!(t||n),!!t,new Map,r)(e),r};var t$="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tK(tW(e,t)):structuredClone(e):(e,t)=>tK(tW(e,t));function tJ(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),a="";if(37===o&&eS(e.charCodeAt(n+1))&&eS(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tq(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tY(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tX=function(e){if(null==e)return tZ;if("function"==typeof e)return tG(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tX(e[n]);return tG(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):tG(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return tG(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function tG(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function tZ(){return!0}let tQ=[];function t0(e,t,n,r){let i,o,a;"function"==typeof t&&"function"!=typeof n?(o=void 0,a=t,i=n):(o=t,a=n,i=r),function(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let o=tX(i),a=r?-1:1;(function e(i,l,s){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,f,h=tQ;if((!t||o(i,l,s[s.length-1]||void 0))&&!1===(h=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?tQ:[u])[0])return h;if("children"in i&&i.children&&i.children&&"skip"!==h[0])for(d=(r?i.children.length:-1)+a,f=s.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,f)())[0])return c;d="number"==typeof c[1]?c[1]:d+a}return h}})(e,void 0,[])()}(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}function t1(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function t4(e){let t=e.spread;return null==t?e.children.length>1:t}function t3(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t2={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;
1let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tJ(i.toLowerCase()),a=e.footnoteOrder.indexOf(i),l=e.footnoteCounts.get(i);void 0===l?(l=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=a+1,l+=1,e.footnoteCounts.set(i,l);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t1(e,t);let i={src:tJ(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tJ(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t1(e,t);let i={href:tJ(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tJ(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t4(n[r])}return t}(n):t4(t),o={},a=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){let e=r[l];(i||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=W(t.children[1]),a=H(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
1,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,l=-1,s=[];for(;++l<a;){let n=t.children[l],r={},a=o?o[l]:void 0;a&&(r.align=a);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(t3(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t3(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t5,yaml:t5,definition:t5,footnoteDefinition:t5};function t5(){}let t6={}.hasOwnProperty,t9={};function t7(e,t){e.position&&(t.position=function(e){let t=W(e),n=H(e);if(t&&n)return{start:t,end:n}}(e))}function t8(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,t$(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function ne(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nt(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nn(e,t){let n=function(e,t){let n=t||t9,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nt(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nt(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:t8,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...t2,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(t6.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=t$(n);return r.children=o.all(e),r}return t$(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t6.call(n,"hProperties")||t6.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:n,patch:t7,wrap:ne};return t0(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tq,r=e.options.footnoteBackLabel||tY,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let o=e.all(i),a=String(i.identifier).toUpperCase(),u=tJ(a.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else o.push(...d);let p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),l.push(p)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...t$(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function nr(e,t){return e&&"run"in e?async function(n,r){let i=nn(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nn(n,{file:r,...e||t})}}function ni(e){if(e)throw e}var no=n(94470);function na(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nl={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ns(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,l=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(i=o):(l=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(ns(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;ns(e);let n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){let l=e.codePointAt(n);if(47===l){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===l?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1)}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)ns(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ns(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=s,l=0;continue}}else if(i.length>0){i="",o=0,a=s,l=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,s):i=e.slice(a+1,s),o=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}
1return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function ns(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let nu={cwd:function(){return"/"}};function nc(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nd=["history","path","basename","stem","extname","dirname"];class nf{constructor(e){let t,n;t=e?nc(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":nu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nd.length;){let e=nd[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nd.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?nl.basename(this.path):void 0}set basename(e){np(e,"basename"),nh(e,"basename"),this.path=nl.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nl.dirname(this.path):void 0}set dirname(e){ng(this.basename,"dirname"),this.path=nl.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?nl.extname(this.path):void 0}set extname(e){if(nh(e,"extname"),ng(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nl.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nc(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nc(e)){let t=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("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),np(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?nl.basename(this.path,this.extname):void 0}set stem(e){np(e,"stem"),nh(e,"stem"),this.path=nl.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new G(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nh(e,t){if(e&&e.includes(nl.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+nl.sep+"`")}function np(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function ng(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nm=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ny={}.hasOwnProperty;class nv extends nm{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=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(o,...a){let l=e[++n],s=-1;if(o){r(o);return}for(;++s<t.length;)(null===a[s]||void 0===a[s])&&(a[s]=t[s]);t=a,l?(function(e,t){let n;return function(...t){let o;let a=e.length>t.length;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(l,i)(...a):r(null,...a)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nv,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(no(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nk("data",this.frozen),this.namespace[e]=t,this):ny.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nk("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=nE(e),n=this.parser||this.Parser;return nx("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nx("process",this.parser||this.Parser),nw("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=nE(e),a=n.parse(o);function l(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,o,function(e,t,r){if(e||!t||!r)return l(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nx("processSync",this.parser||this.Parser),nw("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ni(e),t=r}),nP("processSync","process",n),t}
1run(e,t,n){nS(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){let a=nE(t);r.run(e,a,function(t,r,a){let l=r||e;t?o(t):i?i(l):n(void 0,l,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ni(e),n=t,r=!0}),nP("runSync","run",r),n}stringify(e,t){this.freeze();let n=nE(t),r=this.compiler||this.Compiler;return nw("stringify",r),nS(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nk("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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");o(e.plugins),e.settings&&(r.settings=no(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)a(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;a(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,a=n[i][1];na(a)&&na(r)&&(r=no(!0,a,r)),n[i]=[e,r,...o]}}}}let nb=new nv().freeze();function nx(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nw(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nk(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nS(e){if(!na(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nP(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nE(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new nf(e)}let nC=[],nT={allowDangerousHtml:!0},nD=/^(https?|ircs?|mailto|xmpp)$/i,nA=[{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:"className",id:"remove-classname"},{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 nM(e){let t=function(e){let t=e.rehypePlugins||nC,n=e.remarkPlugins||nC,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nT}:nT;return nb().use(tN).use(n).use(nr,r).use(t)}(e),n=function(e){let t=e.children||"",n=new nf;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||nI;for(let e of nA)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return t0(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ed)if(Object.hasOwn(ed,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ed[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=s(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,i)),a&&i&&"number"==typeof t)return l&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,o=function(e,t,r,i){let o=Array.isArray(r.children),l=W(e);return n(t,r,i,o,{columnNumber:l?l.column-1:void 0,fileName:a,lineNumber:l?l.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
1if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,o=function(e,t,n,o){let a=Array.isArray(n.children)?i:r;return o?a(t,n,o):a(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?N:B,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ei(l,e,void 0);return s&&"string"!=typeof s?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}(e,{Fragment:ef.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ef.jsx,jsxs:ef.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nI(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nD.test(e.slice(0,t))?e:""}}}]); 2//#
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.