(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2559],{509:(e,t,n)=>{"use strict";n.d(t,{Et:()=>f,G8:()=>R,Gv:()=>h,I6:()=>E,Kg:()=>p,Mu:()=>N,Nn:()=>H,Om:()=>u,SL:()=>x,Tn:()=>m,W2:()=>U,YE:()=>$,Z3:()=>v,_4:()=>a,b0:()=>c,cC:()=>j,cM:()=>b,cy:()=>d,cz:()=>M,ft:()=>w,hg:()=>_,iQ:()=>z,jc:()=>C,l$:()=>D,l6:()=>V,nB:()=>F,nF:()=>L,rB:()=>I,tB:()=>k,u0:()=>P,uU:()=>A,vy:()=>B,xD:()=>T,xi:()=>S,zk:()=>W});var r="undefined",i=typeof window!==r,o=typeof document!==r&&document,s=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],a=1e-7,l={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function u(e,t,n,r){return(e*r+t*n)/(n+r)}function c(e){return typeof e===r}function h(e){return e&&"object"==typeof e}function d(e){return Array.isArray(e)}function p(e){return"string"==typeof e}function f(e){return"number"==typeof e}function m(e){return"function"==typeof e}function g(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function y(e,t){var n,r=p(t)?{separator:t}:t,i=r.separator,o=void 0===i?",":i,a=r.isSeparateFirst,l=r.isSeparateOnlyOpenClose,u=r.isSeparateOpenClose,c=void 0===u?l:u,h=r.openCloseCharacters,d=void 0===h?s:h,f=RegExp("(\\s*"+o+"\\s*|"+d.map(function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n}).join("|")+"|\\s+)","g"),m=e.split(f).filter(function(e){return e&&"undefined"!==e}),v=m.length,b=[],w=[];function _(){return!!w.length&&(b.push(w.join("")),w=[],!0)}for(var k=0;k-1?e[r]:n}var S=function(){var e=k(),t=i&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return t?t.bind(window):function(t){var n=k();return setTimeout(function(){t(n-e)},1e3/60)}}(),A=function(){var e=i&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(e){clearTimeout(e)}}();function T(e){return Object.keys(e)}function C(e,t){var n=_(e),r=n.value,i=n.unit;if(h(t)){var o=t[i];if(o){if(m(o))return o(r);else if(l[i])return l[i](r,o)}}else if("%"===i)return r*t/100;return l[i]?l[i](r):r}function O(e,t,n,r){return void 0===r&&(r=e[0]/e[1]),[[L(t[0],a),L(t[0]/r,a)],[L(t[1]*r,a),L(t[1],a)]].filter(function(e){return e.every(function(e,r){var i=t[r],o=L(i,a);return n?e<=i||e<=o:e>=i||e>=o})})[0]||e}function P(e,t,n,r){if(!r)return e.map(function(e,r){return Math.max(t[r],Math.min(e,n[r]))});var i=e[0],o=e[1],s=!0===r?i/o:r,a=O(e,t,!1,s),l=a[0],u=a[1],c=O(e,n,!0,s),h=c[0],d=c[1];return ih||o>d)&&(i=h,o=d),[i,o]}function M(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return n}function R(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function N(e,t){var n=t[0]-e[0],r=Math.atan2(t[1]-e[1],n);return r>=0?r:r+2*Math.PI}function I(e){var t=[0,1].map(function(t){return R(e.map(function(e){return e[t]}))}),n=N(t,e[0]),r=N(t,e[1]);return nr&&r-n<-Math.PI?1:-1}function D(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function L(e,t){return t?Math.round(e/t)/(1/t):e}function j(e,t){return e.forEach(function(n,r){e[r]=L(e[r],t)}),e}function F(e,t){return e.classList?e.classList.contains(t):!!e.className.match(RegExp("(\\s|^)"+t+"(\\s|$)"))}function z(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function B(e,t){if(e.classList)e.classList.remove(t);else{var n=RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function U(e,t,n,r){e.addEventListener(t,n,r)}function H(e,t,n,r){e.removeEventListener(t,n,r)}function $(e){return(null==e?void 0:e.ownerDocument)||o}function W(e){var t;return(null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView)||window}function V(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}},666:(e,t,n)=>{"use strict";n.d(t,{Dr:()=>d,If:()=>h,O3:()=>c,r9:()=>p});var r=n(16503),i=n(40697),o=n(54578),s=n(87613),a=n(68827),l=n(55729),u=n(88990);function c(e){var t;let{onChange:n,defaultIndex:i,index:o,allowMultiple:s,allowToggle:c,...h}=e;(function(e){let t=e.index||e.defaultIndex,n=null!=t&&!Array.isArray(t)&&e.allowMultiple;(0,a.R)({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})})(e),t=e,(0,a.R)({condition:!!(t.allowMultiple&&t.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"});let d=(0,u.Of)(),[p,f]=(0,l.useState)(-1);(0,l.useEffect)(()=>()=>{f(-1)},[]);let[m,g]=(0,r.i)({value:o,defaultValue:()=>s?i??[]:i??-1,onChange:n});return{index:m,setIndex:g,htmlProps:h,getAccordionItemProps:e=>{let t=!1;return null!==e&&(t=Array.isArray(m)?m.includes(e):m===e),{isOpen:t,onChange:t=>{null!==e&&(s&&Array.isArray(m)?g(t?m.concat(e):m.filter(t=>t!==e)):t?g(e):c&&g(-1))}}},focusedIndex:p,setFocusedIndex:f,descendants:d}}let[h,d]=(0,o.q)({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function p(e){var t,n;let{isDisabled:r,isFocusable:o,id:c,...h}=e,{getAccordionItemProps:p,setFocusedIndex:f}=d(),m=(0,l.useRef)(null),g=(0,l.useId)(),y=c??g,v=`accordion-button-${y}`,b=`accordion-panel-${y}`;t=e,(0,a.R)({condition:!!(t.isFocusable&&!t.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. `});let{register:w,index:_,descendants:k}=(0,u.v3)({disabled:r&&!o}),{isOpen:x,onChange:E}=p(-1===_?null:_);n={isOpen:x,isDisabled:r},(0,a.R)({condition:n.isOpen&&!!n.isDisabled,message:"Cannot open a disabled accordion item"});let S=(0,l.useCallback)(()=>{E?.(!x),f(_)},[_,f,x,E]),A=(0,l.useCallback)(e=>{let t={ArrowDown:()=>{let e=k.nextEnabled(_);e?.node.focus()},ArrowUp:()=>{let e=k.prevEnabled(_);e?.node.focus()},Home:()=>{let e=k.firstEnabled();e?.node.focus()},End:()=>{let e=k.lastEnabled();e?.node.focus()}}[e.key];t&&(e.preventDefault(),t(e))},[k,_]),T=(0,l.useCallback)(()=>{f(_)},[f,_]),C=(0,l.useCallback)(function(e={},t=null){return{...e,type:"button",ref:(0,i.Px)(w,m,t),id:v,disabled:!!r,"aria-expanded":!!x,"aria-controls":b,onClick:(0,s.H)(e.onClick,S),onFocus:(0,s.H)(e.onFocus,T),onKeyDown:(0,s.H)(e.onKeyDown,A)}},[v,r,x,S,T,A,b,w]),O=(0,l.useCallback)(function(e={},t=null){return{...e,ref:t,role:"region",id:b,"aria-labelledby":v,hidden:!x}},[v,x,b]);return{isOpen:x,isDisabled:r,isFocusable:o,onOpen:()=>{E?.(!0)},onClose:()=>{E?.(!1)},getButtonProps:C,getPanelProps:O,htmlProps:h}}},785:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});let r={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"}},932:(e,t,n)=>{var r=n(22346);e.exports=function(e){return r(e,4)}},1011:(e,t,n)=>{"use strict";n.d(t,{A:()=>W});var r=n(45286),i=n(55729),o=n(66048),s=n(27473),a=n(11612),l=n(48517),u=n(50123),c=n(7653),h=n(45471);function d(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=(0,a.Cl)({timeZone:t},e[r]),n},{})}function p(e,t){return Object.keys((0,a.Cl)((0,a.Cl)({},e),t)).reduce(function(n,r){return n[r]=(0,a.Cl)((0,a.Cl)({},e[r]||{}),t[r]||{}),n},{})}function f(e,t){if(!t)return e;var n=u.S.formats;return(0,a.Cl)((0,a.Cl)((0,a.Cl)({},n),e),{date:p(d(n.date,t),d(e.date||{},t)),time:p(d(n.time,t),d(e.time||{},t))})}var m=function(e,t,n,r,i){var o=e.locale,s=e.formats,u=e.messages,d=e.defaultLocale,p=e.defaultFormats,m=e.fallbackOnEmptyString,g=e.onError,y=e.timeZone,v=e.defaultRichTextElements;void 0===n&&(n={id:""});var b=n.id,w=n.defaultMessage;(0,l.V1)(!!b,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var _=String(b),k=u&&Object.prototype.hasOwnProperty.call(u,_)&&u[_];if(Array.isArray(k)&&1===k.length&&k[0].type===h.ZE.literal)return k[0].value;if(!r&&k&&"string"==typeof k&&!v)return k.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=(0,a.Cl)((0,a.Cl)({},v),r||{}),s=f(s,y),p=f(p,y),!k){if(!1===m&&""===k)return k;if((!w||o&&o.toLowerCase()!==d.toLowerCase())&&g(new c.sb(n,o)),w)try{var x=t.getMessageFormat(w,d,p,i);return x.format(r)}catch(e){return g(new c.Ho('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),o,n,e)),"string"==typeof w?w:_}return _}try{var x=t.getMessageFormat(k,o,s,(0,a.Cl)({formatters:t},i||{}));return x.format(r)}catch(e){g(new c.Ho('Error formatting message: "'.concat(_,'", using ').concat(w?"default message":"id"," as fallback."),o,n,e))}if(w)try{var x=t.getMessageFormat(w,d,p,i);return x.format(r)}catch(e){g(new c.Ho('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),o,n,e))}return"string"==typeof k?k:"string"==typeof w?w:_},g=n(74251),y=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function v(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var s=n.format,a=s&&(0,g.F3)(i,"number",s,o)||{};return t(r,(0,g.J9)(n,y,a))}function b(e,t,n,r){void 0===r&&(r={});try{return v(e,t,r).format(n)}catch(t){e.onError(new c.Ar(c.lo.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function w(e,t,n,r){void 0===r&&(r={});try{return v(e,t,r).formatToParts(n)}catch(t){e.onError(new c.Ar(c.lo.FORMAT_ERROR,"Error formatting number.",t))}return[]}var _=n(10873),k=["numeric","style"];function x(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new _.IF('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',_.O4.MISSING_INTL_API));try{var o,s,a,l,u,h;return(o=i,s=e.locale,a=e.formats,l=e.onError,void 0===o&&(o={}),h=!!(u=o.format)&&(0,g.F3)(a,"relative",u,l)||{},t(s,(0,g.J9)(o,k,h))).format(n,r)}catch(t){e.onError(new c.pg("Error formatting relative time.",e.locale,t))}return String(n)}var E=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function S(e,t,n,r){var i=e.locale,o=e.formats,s=e.onError,l=e.timeZone;void 0===r&&(r={});var u=r.format,c=(0,a.Cl)((0,a.Cl)({},l&&{timeZone:l}),u&&(0,g.F3)(o,t,u,s)),h=(0,g.J9)(r,E,c);return"time"!==t||h.hour||h.minute||h.second||h.timeStyle||h.dateStyle||(h=(0,a.Cl)((0,a.Cl)({},h),{hour:"numeric",minute:"numeric"})),n(i,h)}function A(e,t){for(var n=[],r=2;r{"use strict";n.d(t,{F8:()=>l,FA:()=>p,FP:()=>i,HQ:()=>f,Ni:()=>c,RZ:()=>u,T9:()=>s,TW:()=>d,gn:()=>o,jk:()=>a,pi:()=>h,qR:()=>m,tn:()=>r});var r=Math.abs,i=Math.atan2,o=Math.cos,s=Math.max,a=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,h=Math.PI,d=h/2,p=2*h;function f(e){return e>1?0:e<-1?h:Math.acos(e)}function m(e){return e>=1?d:e<=-1?-d:Math.asin(e)}},2603:(e,t,n)=>{var r=n(88165);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},3009:(e,t,n)=>{"use strict";e.exports=n(8398)},3295:(e,t,n)=>{"use strict";e.exports=n(31026)},3448:(e,t,n)=>{"use strict";n.d(t,{K:()=>u});var r=n(6029),i=n(21938),o=n(49146),s=n(61400),a=n(45460),l=n(2241);let u=(0,a.R)(function(e,t){let n=(0,s.Jn)({...e,ref:t}),a=(0,o.e)();return(0,r.jsx)(l.B.div,{outline:"0",...n,className:(0,i.cx)("chakra-tabs__tab-panel",e.className),__css:a.tabpanel})});u.displayName="TabPanel"},3670:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(80545);function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var o=0;function s(e,t){let n=/\$/g,r=[e];if(null==t)return r;for(let e of Object.keys(t))if("_"!==e){let i=t[e];"string"==typeof i&&(i=n[Symbol.replace](i,"$$$$")),r=function(e,t,n){let r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,i)=>{""!==e&&r.push(e),t+(1!==e)},Array.isArray(e)?e.forEach(i(this,a)[a],this):i(this,a)[a](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(0,r.A)(this.locale.strings,e))throw Error(`missing string: ${e}`);let n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return s(n[this.locale.pluralize(t.smart_count)],t);throw Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return s(n,t)}}function u(e){if(!(null!=e&&e.strings))return;let t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}},3913:e=>{"use strict";var t=Math.PI/180;function n(e,t,r){if(!(this instanceof n))return new n(e,t,r);this.rx=e,this.ry=t,this.ax=r}n.prototype.transform=function(e){var n=Math.cos(this.ax*t),r=Math.sin(this.ax*t),i=[this.rx*(e[0]*n+e[2]*r),this.rx*(e[1]*n+e[3]*r),this.ry*(-e[0]*r+e[2]*n),this.ry*(-e[1]*r+e[3]*n)],o=i[0]*i[0]+i[2]*i[2],s=i[1]*i[1]+i[3]*i[3],a=((i[0]-i[3])*(i[0]-i[3])+(i[2]+i[1])*(i[2]+i[1]))*((i[0]+i[3])*(i[0]+i[3])+(i[2]-i[1])*(i[2]-i[1])),l=(o+s)/2;if(a<1e-10*l)return this.rx=this.ry=Math.sqrt(l),this.ax=0,this;var u=i[0]*i[1]+i[2]*i[3],c=l+(a=Math.sqrt(a))/2,h=l-a/2;return this.ax=1e-10>Math.abs(u)&&1e-10>Math.abs(c-s)?90:180*Math.atan(Math.abs(u)>Math.abs(c-s)?(c-o)/u:u/(c-s))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(c),this.ry=Math.sqrt(h)):(this.ax+=90,this.rx=Math.sqrt(h),this.ry=Math.sqrt(c)),this},n.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx},e.exports=n},4192:(e,t,n)=>{"use strict";n.d(t,{TV:()=>g,Vz:()=>f,d1:()=>p,vw:()=>d});var r=n(6029),i=n(5858),o=n(54578),s=n(42732),a=n(45460),l=n(8527),u=n(2241);let[c,h]=(0,o.q)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),d=(0,a.R)((e,t)=>{let n=(0,l.o)("Tag",e),o=(0,i.M)(e),s={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...n.container};return(0,r.jsx)(c,{value:n,children:(0,r.jsx)(u.B.span,{ref:t,...o,__css:s})})});d.displayName="Tag";let p=(0,a.R)((e,t)=>{let n=h();return(0,r.jsx)(u.B.span,{ref:t,noOfLines:1,...e,__css:n.label})});p.displayName="TagLabel";let f=(0,a.R)((e,t)=>(0,r.jsx)(s.I,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));f.displayName="TagLeftIcon",(0,a.R)((e,t)=>(0,r.jsx)(s.I,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e})).displayName="TagRightIcon";let m=e=>(0,r.jsx)(s.I,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});m.displayName="TagCloseIcon";let g=(0,a.R)((e,t)=>{let{isDisabled:n,children:i,...o}=e,s={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...h().closeButton};return(0,r.jsx)(u.B.button,{ref:t,"aria-label":"close",...o,type:"button",disabled:n,__css:s,children:i||(0,r.jsx)(m,{})})});g.displayName="TagCloseButton"},4232:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(34035),i=n(64816);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e,t)/6e4;return n>0?Math.floor(n):Math.ceil(n)}},4985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(55729),i=n(40924),o="function"==typeof IntersectionObserver,s=new Map,a=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,h]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t,n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},a.push(n),s.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>h(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{h(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5091:(e,t,n)=>{"use strict";n.d(t,{Wt:()=>f});var r=n(6029),i=n(5858),o=n(54578),s=n(21938),a=n(83638),l=n(42732),u=n(45460),c=n(8527),h=n(2241);let[d,p]=(0,o.q)({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),f=(0,u.R)((e,t)=>{let n=(0,c.o)("FormError",e),o=(0,i.M)(e),l=(0,a.Uc)();return l?.isInvalid?(0,r.jsx)(d,{value:n,children:(0,r.jsx)(h.B.div,{...l?.getErrorMessageProps(o,t),className:(0,s.cx)("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});f.displayName="FormErrorMessage",(0,u.R)((e,t)=>{let n=p(),i=(0,a.Uc)();if(!i?.isInvalid)return null;let o=(0,s.cx)("chakra-form__error-icon",e.className);return(0,r.jsx)(l.I,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}).displayName="FormErrorIcon"},5210:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e*=1))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},5777:(e,t,n)=>{"use strict";n.d(t,{JL:()=>s,n8:()=>a,rL:()=>l});var r=n(86640),i=n(16930),o=n(10095);function s(e){var t,n,i,o,s,a,l,u=void 0===e?{}:e,c=u.innerRadius,h=u.outerRadius,d=u.cornerRadius,p=u.startAngle,f=u.endAngle,m=u.padAngle,g=u.padRadius,y=(0,r.A)();return null!=c&&(t=y.innerRadius,t(c)),null!=h&&(n=y.outerRadius,n(h)),null!=d&&(i=y.cornerRadius,i(d)),null!=p&&(o=y.startAngle,o(p)),null!=f&&(s=y.endAngle,s(f)),null!=m&&(a=y.padAngle,a(m)),null!=g&&(l=y.padRadius,l(g)),y}function a(e){var t,n,r=void 0===e?{}:e,o=r.x,s=r.y,a=r.defined,l=r.curve,u=(0,i.A)();return o&&(t=u.x,t(o)),s&&(n=u.y,n(s)),a&&u.defined(a),l&&u.curve(l),u}function l(e){var t,n,r,i=void 0===e?{}:e,s=i.startAngle,a=i.endAngle,l=i.padAngle,u=i.value,c=i.sort,h=i.sortValues,d=(0,o.A)();return null===c?d.sort(c):null!=c&&d.sort(c),null===h?d.sortValues(h):null!=h&&d.sortValues(h),null!=u&&d.value(u),null!=l&&(t=d.padAngle,t(l)),null!=s&&(n=d.startAngle,n(s)),null!=a&&(r=d.endAngle,r(a)),d}},6743:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(6029),i=n(21938),o=n(88990),s=n(45460),a=n(2241);let l=(0,s.R)(function(e,t){let{getButtonProps:n}=(0,o.AV)(),s=n(e,t),l={display:"flex",alignItems:"center",width:"100%",outline:0,...(0,o.EF)().button};return(0,r.jsx)(a.B.button,{...s,className:(0,i.cx)("chakra-accordion__button",e.className),__css:l})});l.displayName="AccordionButton"},6760:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(6029),i=n(21938),o=n(78140),s=n(2241);let a=e=>{let{className:t,...n}=e,a=(0,o.$)();return(0,r.jsx)(s.B.hr,{"aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",t),...n,__css:a.divider})};a.displayName="MenuDivider"},6797:(e,t,n)=>{e.exports=n(95486)("toUpperCase")},6855:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e}n.d(t,{A:()=>o});var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1&&i.splice(o,1)}}else this._events[e]=[];else this._events={};return this},t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise(function(t){n._addEvent(e,t,{once:!0})})},t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var i=!1;return t.eventType=e,t.stop=function(){i=!0},t.currentTarget=this,(function(){for(var e=0,t=0,n=arguments.length;t{"use strict";n.d(t,{A:()=>s});var r=n(16655),i=n(94916),o=n(64816);function s(e,t){return(0,o.A)(2,arguments),function(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),s=(0,r.A)(t);return isNaN(s)?new Date(NaN):(s&&n.setDate(n.getDate()+s),n)}(e,-(0,r.A)(t))}},6915:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});var r=n(55729),i=n(45691),o=n(53488),s=n(76511);function a(e){let t=(0,r.useContext)(i.K),n=(0,s.C)(e);(0,o.k)(()=>t(n),[t,n])}},7203:(e,t,n)=>{"use strict";e.exports=n(65675)},7653:(e,t,n)=>{"use strict";n.d(t,{Ar:()=>o,Ho:()=>c,OC:()=>s,hr:()=>l,lo:()=>r,pg:()=>u,sb:()=>h,uo:()=>a});var r,i=n(11612);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var o=function(e){function t(n,r,i){var o=this,s=i?i instanceof Error?i:Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(s?"\n".concat(s.message,"\n").concat(s.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,i.C6)(t,e),t}(Error),s=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,i.C6)(t,e),t}(o),a=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,i.C6)(t,e),t}(o),u=function(e){function t(t,n,i){return e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),i)||this}return(0,i.C6)(t,e),t}(o),c=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o}return(0,i.C6)(t,e),t}(u),h=function(e){function t(t,n){var i=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!=(t=e.value)?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.C6)(t,e),t}(o)},7815:e=>{"use strict";var t=2*Math.PI;function n(e,t,n,r){var i=e*n+t*r;return i>1&&(i=1),i<-1&&(i=-1),(e*r-t*n<0?-1:1)*Math.acos(i)}e.exports=function(e,r,i,o,s,a,l,u,c){var h,d,p,f,m,g,y,v,b,w,_,k,x,E,S,A=Math.sin(c*t/360),T=Math.cos(c*t/360),C=T*(e-i)/2+A*(r-o)/2,O=-A*(e-i)/2+T*(r-o)/2;if(0===C&&0===O||0===l||0===u)return[];var P=C*C/((l=Math.abs(l))*l)+O*O/((u=Math.abs(u))*u);P>1&&(l*=Math.sqrt(P),u*=Math.sqrt(P));var M=(h=l,d=u,p=T*(e-i)/2+A*(r-o)/2,f=-A*(e-i)/2+T*(r-o)/2,m=h*h,g=d*d,y=p*p,(b=m*g-m*(v=f*f)-g*y)<0&&(b=0),b/=m*v+g*y,w=(b=Math.sqrt(b)*(s===a?-1:1))*h/d*f,_=-(b*d)/h*p,E=n(1,0,k=(p-w)/h,x=(f-_)/d),S=n(k,x,(-p-w)/h,(-f-_)/d),0===a&&S>0&&(S-=t),1===a&&S<0&&(S+=t),[T*w-A*_+(e+i)/2,A*w+T*_+(r+o)/2,E,S]),R=[],N=M[2],I=M[3],D=Math.max(Math.ceil(Math.abs(I)/(t/4)),1);I/=D;for(var L=0;L{"use strict";n.d(t,{A:()=>h});var r={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},i=n(81716),o={date:(0,i.A)({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},s={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},a=n(93730),l={ordinalNumber:function(e,t){var n=Number(e),r=String((t||{}).unit);return"date"===r?n+"日":"year"===r?n+"年":n},era:(0,a.A)({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:(0,a.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,a.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:(0,a.A)({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:(0,a.A)({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},u=n(89252),c=n(25696);let h={code:"ja",formatDistance:function(e,t,n){var i;if(n=n||{},i="string"==typeof r[e]?r[e]:1===t?n.addSuffix&&r[e].oneWithSuffix?r[e].oneWithSuffix:r[e].one:n.addSuffix&&r[e].otherWithSuffix?r[e].otherWithSuffix.replace("{{count}}",t):r[e].other.replace("{{count}}",t),n.addSuffix)if(n.comparison>0)return i+"後";else return i+"前";return i},formatLong:o,formatRelative:function(e,t,n,r){return s[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^第?\d+(日)?(年)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},8099:(e,t,n)=>{"use strict";n.d(t,{m:()=>O});var r=n(6029),i=n(5858),o=n(94835),s=n(32496),a=n(44444),l=n(77850),u=n(4014),c=n(55729),h=n(20005);let d={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};var p=n(27229),f=n(58211),m=n(40697),g=n(57108),y=n(87613),v=n(10486),b=n(86809);let w=e=>e.current?.ownerDocument||document,_=e=>e.current?.ownerDocument?.defaultView||window,k="chakra-ui:close-tooltip";var x=n(16446),E=n(12514),S=n(2241),A=n(45460),T=n(8527);let C=(0,S.B)(l.P.div),O=(0,A.R)((e,t)=>{let n,l=(0,T.V)("Tooltip",e),A=(0,i.M)(e),O=(0,x.D)(),{children:P,label:M,shouldWrapChildren:R,"aria-label":N,hasArrow:I,bg:D,portalProps:L,background:j,backgroundColor:F,bgColor:z,motionProps:B,animatePresenceProps:U,...H}=A,$=j??F??D??z;if($){l.bg=$;let e=(0,o.f)(O,"colors",$);l[b.O3.arrowBg.var]=e}let W=function(e={}){var t,n;let{openDelay:r=0,closeDelay:i=0,closeOnClick:o=!0,closeOnMouseDown:s,closeOnScroll:a,closeOnPointerDown:l=s,closeOnEsc:u=!0,onOpen:h,onClose:d,placement:x,id:E,isOpen:S,defaultIsOpen:A,arrowSize:T=10,arrowShadowColor:C,arrowPadding:O,modifiers:P,isDisabled:M,gutter:R,offset:N,direction:I,...D}=e,{isOpen:L,onOpen:j,onClose:F}=(0,p.j)({isOpen:S,defaultIsOpen:A,onOpen:h,onClose:d}),{referenceRef:z,getPopperProps:B,getArrowInnerProps:U,getArrowProps:H}=(0,v.E)({enabled:L,placement:x,arrowPadding:O,modifiers:P,gutter:R,offset:N,direction:I}),$=(0,c.useId)(),W=`tooltip-${E??$}`,V=(0,c.useRef)(null),q=(0,c.useRef)(void 0),Y=(0,c.useCallback)(()=>{q.current&&(clearTimeout(q.current),q.current=void 0)},[]),K=(0,c.useRef)(void 0),X=(0,c.useCallback)(()=>{K.current&&(clearTimeout(K.current),K.current=void 0)},[]),G=(0,c.useCallback)(()=>{X(),F()},[F,X]),Z=(t=V,n=G,(0,c.useEffect)(()=>{let e=w(t);return e.addEventListener(k,n),()=>e.removeEventListener(k,n)},[n,t]),()=>{let e=w(t),n=_(t);e.dispatchEvent(new n.CustomEvent(k))}),J=(0,c.useCallback)(()=>{M||q.current||(L&&Z(),q.current=_(V).setTimeout(j,r))},[Z,M,L,j,r]),Q=(0,c.useCallback)(()=>{Y(),K.current=_(V).setTimeout(G,i)},[i,G,Y]),ee=(0,c.useCallback)(()=>{L&&o&&Q()},[o,Q,L]),et=(0,c.useCallback)(()=>{L&&l&&Q()},[l,Q,L]),en=(0,c.useCallback)(e=>{L&&"Escape"===e.key&&Q()},[L,Q]);(0,f.M)(()=>w(V),"keydown",u?en:void 0),(0,f.M)(()=>{if(!a)return null;let e=V.current;if(!e)return null;let t=function e(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:(0,g.sb)(t)&&function(e){let{overflow:t,overflowX:n,overflowY:r}=(e.ownerDocument.defaultView||window).getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}(t)?t:e("html"===t.localName?t:t.assignedSlot||t.parentElement||t.ownerDocument.documentElement)}(e);return"body"===t.localName?_(V):t},"scroll",()=>{L&&a&&G()},{passive:!0,capture:!0}),(0,c.useEffect)(()=>{M&&(Y(),L&&F())},[M,L,F,Y]),(0,c.useEffect)(()=>()=>{Y(),X()},[Y,X]),(0,f.M)(()=>V.current,"pointerleave",Q);let er=(0,c.useCallback)((e={},t=null)=>({...e,ref:(0,m.Px)(V,t,z),onPointerEnter:(0,y.H)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&J()}),onClick:(0,y.H)(e.onClick,ee),onPointerDown:(0,y.H)(e.onPointerDown,et),onFocus:(0,y.H)(e.onFocus,J),onBlur:(0,y.H)(e.onBlur,Q),"aria-describedby":L?W:void 0}),[J,Q,et,L,W,ee,z]),ei=(0,c.useCallback)((e={},t=null)=>B({...e,style:{...e.style,[b.O3.arrowSize.var]:T?`${T}px`:void 0,[b.O3.arrowShadowColor.var]:C}},t),[B,T,C]);return{isOpen:L,show:J,hide:Q,getTriggerProps:er,getTooltipProps:(0,c.useCallback)((e={},t=null)=>{let n={...e.style,position:"relative",transformOrigin:b.O3.transformOrigin.varRef};return{ref:t,...D,...e,id:W,role:"tooltip",style:n}},[D,W]),getTooltipPositionerProps:ei,getArrowProps:H,getArrowInnerProps:U}}({...H,direction:O.direction});if(!(0,c.isValidElement)(P)||R)n=(0,r.jsx)(S.B.span,{display:"inline-block",tabIndex:0,...W.getTriggerProps(),children:P});else{let e=c.Children.only(P);n=(0,c.cloneElement)(e,W.getTriggerProps(e.props,(0,h.Q)(e)))}let V=!!N,q=W.getTooltipProps({},t),Y=V?(0,s.c)(q,["role","id"]):q,K=(0,a.U)(q,["role","id"]);return M?(0,r.jsxs)(r.Fragment,{children:[n,(0,r.jsx)(u.N,{...U,children:W.isOpen&&(0,r.jsx)(E.Z,{...L,children:(0,r.jsx)(S.B.div,{...W.getTooltipPositionerProps(),__css:{zIndex:l.zIndex,pointerEvents:"none"},children:(0,r.jsxs)(C,{variants:d,initial:"exit",animate:"enter",exit:"exit",...B,...Y,__css:l,children:[M,V&&(0,r.jsx)(S.B.span,{srOnly:!0,...K,children:N}),I&&(0,r.jsx)(S.B.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,r.jsx)(S.B.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:l.bg}})})]})})})})]}):(0,r.jsx)(r.Fragment,{children:P})});O.displayName="Tooltip"},8104:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(94289),i=n(63867);let o=new r.Sj({nodes:{doc:{content:"text*"},text:{inline:!0}}}),s=i.$t.create({schema:o})},8398:(e,t,n)=>{"use strict";var r=n(55729),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},8442:(e,t,n)=>{"use strict";n.d(t,{RK:()=>s,TT:()=>r,hN:()=>function e(t,n,a,l,u,c,h){if(1===t.length&&(0,i.eW)(t[0]))return[{type:r.literal,value:t[0].value}];for(var d=[],p=0;p{"use strict";n.d(t,{Rg:()=>a,_J:()=>E,ck:()=>l,it:()=>b});var r=n(37243),i=Object.defineProperty,o="textStyle",s=/^\s*([-+*])\s$/,a=r.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(o)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,r.tG)({find:s,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:s,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(o),editor:this.editor})),[e]}}),l=r.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{if("list_item"!==e.type)return[];let n=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))n=t.parseChildren(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(n=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let r=e.tokens.slice(1),i=t.parseChildren(r);n.push(...i)}}else n=t.parseChildren(e.tokens)}return 0===n.length&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(e,t,n)=>(0,r.kj)(e,t,e=>"bulletList"===e.parentType?"- ":"orderedList"===e.parentType?`${e.index+1}. `:"- ",n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})({},{findListItemPos:()=>u,getNextListDepth:()=>c,handleBackspace:()=>f,handleDelete:()=>y,hasListBefore:()=>h,hasListItemAfter:()=>v,hasListItemBefore:()=>d,listItemHasSubList:()=>p,nextListIsDeeper:()=>m,nextListIsHigher:()=>g});var u=(e,t)=>{let{$from:n}=t.selection,i=(0,r.Pg)(e,t.schema),o=n.depth,s=n.pos,a=null;for(;o>0&&null===a;)n.node(o).type===i?a=o:(o-=1,s-=1);return null===a?null:{$pos:t.doc.resolve(s),depth:a}},c=(e,t)=>{let n=u(e,t);if(!n)return!1;let[,i]=(0,r.fl)(t,e,n.$pos.pos+4);return i},h=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),o=e.doc.resolve(i).node();return!!o&&!!n.includes(o.type.name)},d=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-2);return 0!==i.index()&&(null==(n=i.nodeBefore)?void 0:n.type.name)===e},p=(e,t,n)=>{if(!n)return!1;let i=(0,r.Pg)(e,t.schema),o=!1;return n.descendants(e=>{e.type===i&&(o=!0)}),o},f=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,r.rU)(e.state,t)&&h(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let o=i.at(-1);if(!o)return!1;let s=e.state.doc.resolve(r.start()+o.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},s.end()).joinForward().run()}if(!(0,r.rU)(e.state,t)||!(0,r.J_)(e.state))return!1;let i=u(t,e.state);if(!i)return!1;let o=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),s=p(t,e.state,o);return d(t,e.state)&&!s?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},m=(e,t)=>{let n=c(e,t),r=u(e,t);return!!r&&!!n&&n>r.depth},g=(e,t)=>{let n=c(e,t),r=u(e,t);return!!r&&!!n&&n{if(!(0,r.rU)(e.state,t)||!(0,r.QN)(e.state,t))return!1;let{selection:n}=e.state,{$from:i,$to:o}=n;return!(!n.empty&&i.sameParent(o))&&(m(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():g(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},v=(e,t)=>{var n;let{$anchor:r}=t.selection,i=t.doc.resolve(r.pos-r.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(n=i.nodeAfter)?void 0:n.type.name)===e},b=r.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&y(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&y(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&f(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&f(e,n,r)&&(t=!0)}),t}}}}),w=/^(\s*)(\d+)\.\s+(.*)$/,_=/^\s/,k="textStyle",x=/^(\d+)\.\s$/,E=r.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",(0,r.KV)(this.options.HTMLAttributes,n),0]:["ol",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let n=e.start||1,r=e.items?function(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)n.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let r=t.parseChildren([e]);n.push({type:"paragraph",content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:"listItem",content:n}})}(e.items,t):[];return 1!==n?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),n=null==t?void 0:t.index;return void 0!==n?n:-1},tokenize:(e,t,n)=>{var r;let i=e.split("\n"),[o,s]=function(e){let t=[],n=0,r=0;for(;nn;)p.push(t[d]),d+=1;if(p.length>0){let t=Math.min(...p.map(e=>e.indent)),n=e(p,t,r);c.push({type:"list",ordered:!0,start:p[0].number,items:n,raw:p.map(e=>e.raw).join("\n")})}o.push({type:"list_item",raw:a.raw,tokens:c}),s=d}else s+=1}return o}(o,0,n);if(0!==a.length)return{type:"list",ordered:!0,start:(null==(r=o[0])?void 0:r.number)||1,items:a,raw:i.slice(0,s).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(k)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.tG)({find:x,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:x,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(k)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),S=/^\s*(\[([( |x])?\])\s$/,A=r.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,r.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;let i=(null==(n=e.attrs)?void 0:n.checked)?"x":" ",o=`- [${i}] `;return(0,r.kj)(e,t,o)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement("li"),o=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=e=>{var t,n;a.ariaLabel=(null==(n=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:n.call(t,e,a.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};return u(e),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",e=>e.preventDefault()),a.addEventListener("change",t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}let{checked:i}=t.target;r.isEditable&&"function"==typeof n&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if("number"!=typeof t)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==r?void 0:r.attrs,checked:i}),!0}).run(),r.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,i)||(a.checked=!a.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,s),i.append(o,l),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)}),{dom:i,contentDOM:l,update:e=>e.type===this.type&&(i.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,u(e),!0)}}},addInputRules(){return[(0,r.tG)({find:S,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),T=r.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let n=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==n?n:-1},tokenize(e,t,n){let i=e=>{let t=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},n);return t?[{type:"taskList",raw:t.raw,items:t.items}]:n.blockTokens(e)},o=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});r.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(a.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(l.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(b.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(E.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(A.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(T.configure(this.options.taskList)),e}})},8610:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={top:"top",left:"left",right:"right",bottom:"bottom"}},8868:(e,t,n)=>{"use strict";function r(e,t){let n=function(e){let t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e),r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function i(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function o(e,t,n){return(e-t)*100/(n-t)}function s(e,t,n){return(n-t)*e+t}function a(e,t,n){return r(Math.round((e-t)/n)*n+t,i(n))}function l(e,t,n){return null==e?e:(ni,L3:()=>l,QX:()=>r,hp:()=>a,w5:()=>o,wr:()=>s})},8995:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(56121),i=n.n(r),o=n(55729),s=n(75828),a=n.n(s),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:a()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},h),s)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},8997:(e,t,n)=>{"use strict";n.d(t,{Od:()=>l,Rb:()=>a,Tj:()=>s,bp:()=>h,wG:()=>c,xL:()=>u});var r=n(12549),i=n(21317),o=n(80794);let s=e=>(t,n,i,s)=>{let a=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},a);if(l instanceof Promise)throw new r.GT;if(l.issues.length){let t=new(s?.Err??e)(l.issues.map(e=>o.iR(e,a,r.$W())));throw o.gx(t,s?.callee),t}return l.value};i.Kd;let a=e=>async(t,n,i,s)=>{let a=i?Object.assign(i,{async:!0}):{async:!0},l=t._zod.run({value:n,issues:[]},a);if(l instanceof Promise&&(l=await l),l.issues.length){let t=new(s?.Err??e)(l.issues.map(e=>o.iR(e,a,r.$W())));throw o.gx(t,s?.callee),t}return l.value};i.Kd;let l=e=>(t,n,s)=>{let a=s?{...s,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},a);if(l instanceof Promise)throw new r.GT;return l.issues.length?{success:!1,error:new(e??i.a$)(l.issues.map(e=>o.iR(e,a,r.$W())))}:{success:!0,data:l.value}},u=l(i.Kd),c=e=>async(t,n,i)=>{let s=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},s);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>o.iR(e,s,r.$W())))}:{success:!0,data:a.value}},h=c(i.Kd)},9197:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(55729),i=n(30667),o=n(53488),s=n(76511);function a(){}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=(0,r.useContext)(i.y),l=(0,s.C)(e),u=(0,s.C)(t);return(0,o.k)(()=>n(l,u),[n,l,u])}},9819:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9849:(e,t,n)=>{"use strict";e.exports=n(10332)},10010:(e,t,n)=>{"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(72012),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10016:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,s,a,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!a;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?a=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(a=[o,s])}return a}e.exports=t,t.range=r},10095:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(11116);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var s=n(1714);function a(){var e=o,t=i,n=null,a=(0,r.A)(0),l=(0,r.A)(s.FA),u=(0,r.A)(0);function c(r){var i,o,c,h,d,p=r.length,f=0,m=Array(p),g=Array(p),y=+a.apply(this,arguments),v=Math.min(s.FA,Math.max(-s.FA,l.apply(this,arguments)-y)),b=Math.min(Math.abs(v)/p,u.apply(this,arguments)),w=b*(v<0?-1:1);for(i=0;i0&&(f+=d);for(null!=t?m.sort(function(e,n){return t(g[e],g[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=f?(v-p*w)/f:0;i0?d*c:0)+w,g[o]={data:r[o],index:i,value:d,startAngle:y,endAngle:h,padAngle:b};return g}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.A)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,r.A)(+e),c):a},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.A)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.A)(+e),c):u},c}},10140:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(30758)._(n(55729)).default.createContext(null)},10332:(e,t)=>{"use strict";function n(e){var t="https://react.dev/errors/"+e;if(1{"use strict";n.d(t,{S:()=>i});var r=n(6029);let i=(0,n(30477).w)({viewBox:"0 0 14 14",path:(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})})},10873:(e,t,n)=>{"use strict";n.d(t,{$x:()=>s,Ei:()=>l,IF:()=>o,O4:()=>r,Zo:()=>a});var r,i=n(29008);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var o=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return(0,i.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),s=function(e){function t(t,n,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),r.INVALID_VALUE,o)||this}return(0,i.C6)(t,e),t}(o),a=function(e){function t(t,n,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),r.INVALID_VALUE,i)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,i.C6)(t,e),t}(o)},11027:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,lG:()=>o,uN:()=>s});var r=n(28816);function i(e,t){return function(n){return e+n*t}}function o(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.A)(isNaN(e)?t:e)}function s(e){return 1==(e*=1)?a:function(t,n){var i,o,s;return n-t?(i=t,o=n,i=Math.pow(i,s=e),o=Math.pow(o,s)-i,s=1/s,function(e){return Math.pow(i+e*o,s)}):(0,r.A)(isNaN(t)?n:t)}}function a(e,t){var n=t-e;return n?i(e,n):(0,r.A)(isNaN(e)?t:e)}},11041:(e,t,n)=>{"use strict";n.d(t,{cP:()=>s,ou:()=>o});var r=n(63867);function i(){return Math.floor(0xffffffffffff*Math.random()).toString(16)}let o=new r.hs("@handlewithcare/react-prosemirror/reactKeys");function s(){let e=!1;return new r.k_({key:o,state:{init(e,t){let n={posToKey:new Map,keyToPos:new Map};return t.doc.descendants((e,t)=>{let r=i();return n.posToKey.set(t,r),n.keyToPos.set(r,t),!0}),n},apply(t,n,r,s){if(!t.docChanged||e)return n;let a=t.getMeta(o)?.overrides,l={posToKey:new Map,keyToPos:new Map};for(let[e,r]of Array.from(n.posToKey.entries()).sort((e,t)=>{let[n]=e,[r]=t;return n-r})){let n=a?.[e],{pos:i,deleted:o}=void 0===n?t.mapping.mapResult(e):{pos:n,deleted:!1};o||(l.posToKey.set(i,r),l.keyToPos.set(r,i))}return s.doc.descendants((e,t)=>{if(l.posToKey.has(t))return!0;let n=i();return l.posToKey.set(t,n),l.keyToPos.set(n,t),!0}),l}},props:{handleDOMEvents:{compositionstart:()=>{e=!0},compositionend:()=>{e=!1}}}})}},11116:(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.d(t,{A:()=>r})},11612:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,fX:()=>s});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{A:()=>i});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(i!==t){let e=t;t=(null!=r?r:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o},i=e=>e?r(e):r},12549:(e,t,n)=>{"use strict";function r(e,t,n){function r(n,r){var i;for(let o in Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r),s.prototype)o in n||Object.defineProperty(n,o,{value:s.prototype[o].bind(n)});n._zod.constr=s,n._zod.def=r}let i=n?.Parent??Object;class o extends i{}function s(e){var t;let i=n?.Parent?new o:this;for(let n of(r(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))n();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}n.d(t,{$W:()=>s,GT:()=>i,cr:()=>o,xI:()=>r}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let o={};function s(e){return e&&Object.assign(o,e),o}},12894:(e,t,n)=>{"use strict";t.__esModule=!0,t.STACK_OFFSET_NAMES=t.STACK_OFFSETS=void 0,t.default=function(e){return e&&i[e]||i.none};var r=n(35070),i={expand:r.stackOffsetExpand,diverging:r.stackOffsetDiverging,none:r.stackOffsetNone,silhouette:r.stackOffsetSilhouette,wiggle:r.stackOffsetWiggle};t.STACK_OFFSETS=i,t.STACK_OFFSET_NAMES=Object.keys(i)},13232:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(55729).createContext)(null)},13618:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(45286),i=n(55729),o=n(66048),s=n(27473);function a(e){var t,n=(t=i.useContext(o.ob),(0,s.HM)(t),t),r=n.formatMessage,a=n.textComponent,l=void 0===a?i.Fragment:a,u=e.id,c=e.description,h=e.defaultMessage,d=e.values,p=e.children,f=e.tagName,m=void 0===f?l:f,g=r({id:u,description:c,defaultMessage:h},d,{ignoreTag:e.ignoreTag});return"function"==typeof p?p(Array.isArray(g)?g:[g]):m?i.createElement(m,null,i.Children.toArray(g)):i.createElement(i.Fragment,null,g)}a.displayName="FormattedMessage";var l=i.memo(a,function(e,t){var n=e.values,i=(0,r.Tt)(e,["values"]),o=t.values,a=(0,r.Tt)(t,["values"]);return(0,s.bN)(o,n)&&(0,s.bN)(i,a)});l.displayName="MemoizedFormattedMessage";let u=l},13675:(e,t,n)=>{"use strict";n.d(t,{qg:()=>l,EJ:()=>u,xL:()=>c,bp:()=>h});var r=n(8997),i=n(21317),o=n(12549);let s=(e,t)=>{i.a$.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>i.Wk(e,t)},flatten:{value:t=>i.JM(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})};o.xI("ZodError",s);let a=o.xI("ZodError",s,{Parent:Error}),l=r.Tj(a),u=r.Rb(a),c=r.Od(a),h=r.wG(a)},13731:(e,t,n)=>{var r=n(53325),i=n(25725),o=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])})},13984:e=>{function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,s,a,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!a;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?a=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(a=[o,s])}return a}e.exports=t,t.range=r},14080:(e,t,n)=>{"use strict";let r,i,o;n.d(t,{Kq:()=>E,R0:()=>v,yQ:()=>I});var s={};n.r(s),n.d(s,{getItem:()=>k,removeItem:()=>x,setItem:()=>_});var a=n(31808),l=n(17553);class u extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}function c(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var h=0;function d(e){return"__private_"+h+++"_"+e}async function p(e){if(401===e.status)throw new u;let t=e.json();if(e.ok)return t;let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}catch{}throw Error(n)}let f=new Map;var m=d("companionHeaders"),g=d("getUrl"),y=d("request");r=Symbol.for("uppy test: getCompanionHeaders");class v{constructor(e,t){Object.defineProperty(this,y,{value:w}),Object.defineProperty(this,g,{value:b}),Object.defineProperty(this,m,{writable:!0,value:void 0}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),c(this,m)[m]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){c(this,m)[m]=e}[r](){return c(this,m)[m]}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}async headers(){return{...{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${v.VERSION}`},...c(this,m)[m]}}onReceiveResponse(e){let{headers:t}=e,n=this.uppy.getState().companion||{},r=this.opts.companionUrl;t.has("i-am")&&t.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:t.get("i-am")}})}async preflight(e){let t=f.get(this.hostname);if(null!=t)return t;let n=["accept","content-type","uppy-auth-token"],r=(async()=>{try{let t=(await fetch(c(this,g)[g](e),{method:"OPTIONS"})).headers.get("access-control-allow-headers");if(null==t||"*"===t)return f.set(this.hostname,n),n;this.uppy.log(`[CompanionClient] adding allowed preflight headers to companion cache: ${this.hostname} ${t}`);let r=t.split(",").map(e=>e.trim().toLowerCase());return f.set(this.hostname,r),r}catch(e){return this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),f.delete(this.hostname),n}})();return f.set(this.hostname,r),r}async preflightAndHeaders(e){let[t,n]=await Promise.all([this.preflight(e),this.headers()]);return Object.fromEntries(Object.entries(n).filter(e=>{let[n]=e;return!!t.includes(n.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${n}`),!1)}))}async get(e,t){return void 0===t&&(t=void 0),"boolean"==typeof t&&(t={skipPostResponse:t}),c(this,y)[y]({...t,path:e})}async post(e,t,n){return void 0===n&&(n=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,y)[y]({...n,path:e,method:"POST",data:t})}async delete(e,t,n){return void 0===t&&(t=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,y)[y]({...n,path:e,method:"DELETE",data:t})}}function b(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}async function w(e){let{path:t,method:n="GET",data:r,skipPostResponse:i,signal:o}=e;try{let e=await this.preflightAndHeaders(t),s=await (0,a.A)(c(this,g)[g](t),{method:n,signal:o,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null});return i||this.onReceiveResponse(s),p(s)}catch(e){if(null!=e&&e.isAuthError)throw e;throw new l.A(`Could not ${n} ${c(this,g)[g](t)}`,{cause:e})}}function _(e,t){return new Promise(n=>{localStorage.setItem(e,t),n()})}function k(e){return Promise.resolve(localStorage.getItem(e))}function x(e){return new Promise(t=>{localStorage.removeItem(e),t()})}v.VERSION="3.1.1";class E extends v{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}async headers(){let[e,t]=await Promise.all([super.headers(),this.getAuthToken()]),n={};return t&&(n["uppy-auth-token"]=t),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}}onReceiveResponse(e){super.onReceiveResponse(e);let t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});let t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{let e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){let n=t.companionAllowedHosts;if("string"!=typeof n&&!Array.isArray(n)&&!(n instanceof RegExp))throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||s}}var S=n(51598);function A(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var T=0;function C(e){return"__private_"+T+++"_"+e}var O=C("queued"),P=C("emitter"),M=C("isOpen"),R=C("socket"),N=C("handleMessage");i=Symbol.for("uppy test: getSocket"),o=Symbol.for("uppy test: getQueued");class I{constructor(e){Object.defineProperty(this,O,{writable:!0,value:[]}),Object.defineProperty(this,P,{writable:!0,value:S()}),Object.defineProperty(this,M,{writable:!0,value:!1}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,N,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return A(this,M)[M]}[i](){return A(this,R)[R]}[o](){return A(this,O)[O]}open(){A(this,R)[R]=new WebSocket(this.opts.target),A(this,R)[R].onopen=()=>{for(A(this,M)[M]=!0;A(this,O)[O].length>0&&A(this,M)[M];){let e=A(this,O)[O].shift();this.send(e.action,e.payload)}},A(this,R)[R].onclose=()=>{A(this,M)[M]=!1},A(this,R)[R].onmessage=A(this,N)[N]}close(){var e;null==(e=A(this,R)[R])||e.close()}send(e,t){if(!A(this,M)[M])return void A(this,O)[O].push({action:e,payload:t});A(this,R)[R].send(JSON.stringify({action:e,payload:t}))}on(e,t){A(this,P)[P].on(e,t)}emit(e,t){A(this,P)[P].emit(e,t)}once(e,t){A(this,P)[P].once(e,t)}}},14126:(e,t,n)=>{var r=n(86891),i=n(70917);e.exports=function(e){return r(i(e))}},14287:(e,t,n)=>{"use strict";n.d(t,{Di:()=>y,b8:()=>I,bD:()=>d,eM:()=>S,iM:()=>P,u1:()=>p,u6:()=>_});var r,i,o,s,a,l,u="vercel.ai.error",c=Symbol.for(u),h=class e extends Error{constructor({name:e,message:t,cause:n}){super(t),this[r]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,u)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}};r=c;var d=h;function p(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}Symbol.for("vercel.ai.error.AI_APICallError"),Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");var f="AI_InvalidArgumentError",m=`vercel.ai.error.${f}`,g=Symbol.for(m),y=class extends d{constructor({message:e,cause:t,argument:n}){super({name:f,message:e,cause:t}),this[i]=!0,this.argument=n}static isInstance(e){return d.hasMarker(e,m)}};i=g,Symbol.for("vercel.ai.error.AI_InvalidPromptError"),Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var v="AI_JSONParseError",b=`vercel.ai.error.${v}`,w=Symbol.for(b),_=class extends d{constructor({text:e,cause:t}){super({name:v,message:`JSON parsing failed: Text: ${e}. Error message: ${p(t)}`,cause:t}),this[o]=!0,this.text=e}static isInstance(e){return d.hasMarker(e,b)}};o=w,Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),Symbol.for("vercel.ai.error.AI_LoadSettingError"),Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");var k="AI_NoSuchModelError",x=`vercel.ai.error.${k}`,E=Symbol.for(x),S=class extends d{constructor({errorName:e=k,modelId:t,modelType:n,message:r=`No such ${n}: ${t}`}){super({name:e,message:r}),this[s]=!0,this.modelId=t,this.modelType=n}static isInstance(e){return d.hasMarker(e,x)}};s=E,Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var A="AI_TypeValidationError",T=`vercel.ai.error.${A}`,C=Symbol.for(T),O=class e extends d{constructor({value:e,cause:t}){super({name:A,message:`Type validation failed: Value: ${JSON.stringify(e)}. Error message: ${p(t)}`,cause:t}),this[a]=!0,this.value=e}static isInstance(e){return d.hasMarker(e,T)}static wrap({value:t,cause:n}){return e.isInstance(n)&&n.value===t?n:new e({value:t,cause:n})}};a=C;var P=O,M="AI_UnsupportedFunctionalityError",R=`vercel.ai.error.${M}`,N=Symbol.for(R),I=class extends d{constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:M,message:t}),this[l]=!0,this.functionality=e}static isInstance(e){return d.hasMarker(e,R)}};l=N},15071:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});let r=(0,n(30477).w)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},15565:(e,t,n)=>{var r=n(19515),i=n(24964),o=n(27288);e.exports=function(e){return o(i(e,void 0,r),e+"")}},15587:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});let r=(0,n(55729).createContext)({parentRef:{current:void 0},siblingsRef:{current:[]}})},15613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return a},noSSR:function(){return s}});let r=n(30758);n(6029),n(55729);let i=r._(n(20954));function o(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let a=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=a?a().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,s(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15695:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},15863:(e,t,n)=>{"use strict";n.d(t,{z:()=>p,R:()=>d});var r=n(6029),i=n(54578),o=n(21938),s=n(55729),a=n(40697),l=n(84535),u=n(45460),c=n(2241);let[h,d]=(0,i.q)({name:"RadioGroupContext",strict:!1}),p=(0,u.R)((e,t)=>{let{colorScheme:n,size:i,variant:u,children:d,className:p,isDisabled:f,isFocusable:m,...g}=e,{value:y,onChange:v,getRootProps:b,name:w,htmlProps:_}=function(e={}){let{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:u,isNative:c,...h}=e,[d,p]=(0,s.useState)(r||""),f=void 0!==n,m=f?n:d,g=(0,s.useRef)(null),y=(0,s.useCallback)(()=>{let e=g.current;if(!e)return;let t="input:not(:disabled):checked",n=e.querySelector(t);if(n)return void n.focus();t="input:not(:disabled)";let r=e.querySelector(t);r?.focus()},[]),v=(0,s.useId)(),b=`radio-${v}`,w=i||b,_=(0,s.useCallback)(e=>{let n=e&&(0,l.Gv)(e)&&(0,l.Gv)(e.target)?e.target.value:e;f||p(n),t?.(String(n))},[t,f]);return{getRootProps:(0,s.useCallback)((e={},t=null)=>({...e,ref:(0,a.Px)(t,g),role:"radiogroup"}),[]),getRadioProps:(0,s.useCallback)((e={},t=null)=>{let n=c?"checked":"isChecked";return{...e,ref:t,name:w,[n]:null!=m?e.value===m:void 0,onChange(e){_(e)},"data-radiogroup":!0}},[c,w,_,m]),name:w,ref:g,focus:y,setValue:p,value:m,onChange:_,isDisabled:o,isFocusable:u,htmlProps:h}}(g),k=(0,s.useMemo)(()=>({name:w,size:i,onChange:v,colorScheme:n,value:y,variant:u,isDisabled:f,isFocusable:m}),[w,i,v,n,y,u,f,m]);return(0,r.jsx)(h,{value:k,children:(0,r.jsx)(c.B.div,{...b(_,t),className:(0,o.cx)("chakra-radio-group",p),children:d})})});p.displayName="RadioGroup"},15902:(e,t,n)=>{"use strict";n.d(t,{n:()=>a,z:()=>u});var r=n(74937),i=n(63867),o=n(94289),s=n(97255);class a extends i.LN{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return a.valid(n)?new a(n):i.LN.near(n)}content(){return o.Ji.empty}eq(e){return e instanceof a&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new a(e.resolve(t.pos))}getBookmark(){return new l(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&a.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let s=e.doc.resolve(r);if(a.valid(s))return s}for(;;){let s=t>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!i.nh.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue e}break}o=s,r+=t;let l=e.doc.resolve(r);if(a.valid(l))return l}return null}}}a.prototype.visible=!1,a.findFrom=a.findGapCursorFrom,i.LN.jsonID("gapcursor",a);class l{constructor(e){this.pos=e}map(e){return new l(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return a.valid(t)?new a(t):i.LN.near(t)}}function u(){return new i.k_({props:{decorations:f,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&a.valid(n)?new a(n):null,handleClick:d,handleKeyDown:c,handleDOMEvents:{beforeinput:p}}})}let c=(0,r.K)({ArrowLeft:h("horiz",-1),ArrowRight:h("horiz",1),ArrowUp:h("vert",-1),ArrowDown:h("vert",1)});function h(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let s=e.selection,l=t>0?s.$to:s.$from,u=s.empty;if(s instanceof i.U3){if(!o.endOfTextblock(n)||0==l.depth)return!1;u=!1,l=e.doc.resolve(t>0?l.after():l.before())}let c=a.findGapCursorFrom(l,t,u);return!!c&&(r&&r(e.tr.setSelection(new a(c))),!0)}}function d(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!a.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new a(r))),!0)}function p(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof a))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let s=o.FK.empty;for(let e=r.length-1;e>=0;e--)s=o.FK.from(r[e].createAndFill(null,s));let l=e.state.tr.replace(n.pos,n.pos,new o.Ji(s,0,0));return l.setSelection(i.U3.near(l.doc.resolve(n.pos+1))),e.dispatch(l),!1}function f(e){if(!(e.selection instanceof a))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",s.zF.create(e.doc,[s.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}},15905:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(47347),i=n(11116),o=n(41777),s=n(16930),a=n(67710);function l(){var e=a.x,t=null,n=(0,i.A)(0),l=a.y,u=(0,i.A)(!0),c=null,h=o.A,d=null;function p(i){var o,s,a,p,f,m=i.length,g=!1,y=Array(m),v=Array(m);for(null==c&&(d=h(f=(0,r.A)())),o=0;o<=m;++o){if(!(o=s;--a)d.point(y[a],v[a]);d.lineEnd(),d.areaEnd()}g&&(y[o]=+e(p,o,i),v[o]=+n(p,o,i),d.point(t?+t(p,o,i):y[o],l?+l(p,o,i):v[o]))}if(f)return d=null,f+""||null}function f(){return(0,s.A)().defined(u).curve(h).context(c)}return p.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.A)(+n),t=null,p):e},p.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.A)(+t),p):e},p.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.A)(+e),p):t},p.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.A)(+e),l=null,p):n},p.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.A)(+e),p):n},p.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.A)(+e),p):l},p.lineX0=p.lineY0=function(){return f().x(e).y(n)},p.lineY1=function(){return f().x(e).y(l)},p.lineX1=function(){return f().x(t).y(n)},p.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.A)(!!e),p):u},p.curve=function(e){return arguments.length?(h=e,null!=c&&(d=h(c)),p):h},p.context=function(e){return arguments.length?(null==e?c=d=null:d=h(c=e),p):c},p}},16074:(e,t,n)=>{"use strict";function r(e,t,n,i=e=>e){return e*i(.5-t*(.5-n))}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function s(e,t){return[e[0]*t,e[1]*t]}function a(e){return[e[1],-e[0]]}function l(e,t){return e[0]*t[0]+e[1]*t[1]}function u(e,t){var n;return(n=o(e,t))[0]*n[0]+n[1]*n[1]}function c(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function h(e,t,n){let r=Math.sin(n),i=Math.cos(n),o=e[0]-t[0],s=e[1]-t[1];return[o*i-s*r+t[0],o*r+s*i+t[1]]}function d(e,t,n){return i(e,s(o(t,e),n))}n.d(t,{Ay:()=>v,Km:()=>y,U$:()=>g});var{min:p,PI:f}=Math,m=f+1e-4;function g(e,t={}){var n,f;let{size:y=16,smoothing:v=.5,thinning:b=.5,simulatePressure:w=!0,easing:_=e=>e,start:k={},end:x={},last:E=!1}=t,{cap:S=!0,easing:A=e=>e*(2-e)}=k,{cap:T=!0,easing:C=e=>--e*e*e+1}=x;if(0===e.length||y<=0)return[];let O=e[e.length-1].runningLength,P=!1===k.taper?0:!0===k.taper?Math.max(y,O):k.taper,M=!1===x.taper?0:!0===x.taper?Math.max(y,O):x.taper,R=Math.pow(y*v,2),N=[],I=[],D=e.slice(0,10).reduce((e,t)=>{let n=t.pressure;if(w){let r=p(1,t.distance/y),i=p(1,1-r);n=p(1,e+.275*r*(i-e))}return(e+n)/2},e[0].pressure),L=r(y,b,e[e.length-1].pressure,_),j,F=e[0].vector,z=e[0].point,B=z,U=z,H=B,$=!1;for(let t=0;tl(f,F)&&!$,S=null!==x&&x<0;if(E||S){let e=s(a(F),L);for(let t=1/13,n=0;n<=1;n+=t)U=h(o(c,e),c,m*n),N.push(U),H=h(i(c,e),c,-(m*n)),I.push(H);z=U,B=H,S&&($=!0);continue}if($=!1,t===e.length-1){let e=s(a(f),L);N.push(o(c,e)),I.push(i(c,e));continue}let T=s(a(d(k,f,x)),L);U=o(c,T),(t<=1||u(z,U)>R)&&(N.push(U),z=U),H=i(c,T),(t<=1||u(B,H)>R)&&(I.push(H),B=H),D=n,F=f}let W=e[0].point.slice(0,2),V=e.length>1?e[e.length-1].point.slice(0,2):i(e[0].point,[1,1]),q=[],Y=[];if(1===e.length){if(!(P||M)||E){let e=(n=c(a(o(W,V))),i(W,s(n,-(j||L)))),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(h(e,W,2*m*r));return t}}else{if(!(P||M&&1===e.length))if(S)for(let e=1/13,t=e;t<=1;t+=e){let e=h(I[0],W,m*t);q.push(e)}else{let e=o(N[0],I[0]),t=s(e,.5),n=s(e,.51);q.push(o(W,t),o(W,n),i(W,n),i(W,t))}let t=a([-(f=e[e.length-1].vector)[0],-f[1]]);if(M||P&&1===e.length)Y.push(V);else if(T){let e=i(V,s(t,L));for(let t=1/29,n=t;n<1;n+=t)Y.push(h(e,V,3*m*n))}else Y.push(i(V,s(t,L)),i(V,s(t,.99*L)),o(V,s(t,.99*L)),o(V,s(t,L)))}return N.concat(Y,I.reverse(),q)}function y(e,t={}){var n,r,s;let{streamline:a=.5,size:l=16,last:u=!1}=t;if(0===e.length)return[];let h=.15+(1-a)*.85,p=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(2===p.length){let e=p[1];p=p.slice(0,-1);for(let t=1;t<5;t++)p.push(d(p[0],e,t/4))}1===p.length&&(p=[...p,[...i(p[0],[1,1]),...p[0].slice(2)]]);let f=[{point:[p[0][0],p[0][1]],pressure:p[0][2]>=0?p[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],m=!1,g=0,v=f[0],b=p.length-1;for(let e=1;e=0?p[e][2]:.5,vector:c(o(v.point,t)),distance:n,runningLength:g},f.push(v)}return f[0].vector=(null==(n=f[1])?void 0:n.vector)||[0,0],f}var v=function(e,t={}){return g(y(e,t),t)}},16249:()=>{},16491:(e,t,n)=>{"use strict";n.d(t,{DY:()=>a,G_:()=>o,mg:()=>s});var r=n(55729);let i=(0,r.createContext)(null);function o({clientId:e,onScriptLoadSuccess:t,onScriptLoadError:n,children:o}){let s=function(e={}){let{onScriptLoadSuccess:t,onScriptLoadError:n}=e,[i,o]=(0,r.useState)(!1),s=(0,r.useRef)(t);s.current=t;let a=(0,r.useRef)(n);return a.current=n,(0,r.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.onload=()=>{var e;o(!0),null==(e=s.current)||e.call(s)},e.onerror=()=>{var e;o(!1),null==(e=a.current)||e.call(a)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]),i}({onScriptLoadSuccess:t,onScriptLoadError:n}),a=(0,r.useMemo)(()=>({clientId:e,scriptLoadedSuccessfully:s}),[e,s]);return r.createElement(i.Provider,{value:a},o)}function s({flow:e="implicit",scope:t="",onSuccess:n,onError:o,...s}){let{clientId:a,scriptLoadedSuccessfully:l}=function(){let e=(0,r.useContext)(i);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),u=(0,r.useRef)(),c=(0,r.useRef)(n);c.current=n;let h=(0,r.useRef)(o);h.current=o,(0,r.useEffect)(()=>{var n;if(!l)return;let r="implicit"===e?"initTokenClient":"initCodeClient";u.current=null==(n=window.google)?void 0:n.accounts.oauth2[r]({client_id:a,scope:`openid profile email ${t}`,callback:e=>{var t,n;if(e.error)return null==(t=h.current)?void 0:t.call(h,e);null==(n=c.current)||n.call(c,e)},...s})},[a,l,e,t]);let d=(0,r.useCallback)(e=>u.current.requestAccessToken(e),[]),p=(0,r.useCallback)(()=>u.current.requestCode(),[]);return"implicit"===e?d:p}function a(e,t,...n){return!!window.google&&window.google.accounts.oauth2.hasGrantedAllScopes(e,t,...n)}},16639:(e,t,n)=>{"use strict";e.exports=n(49524)},16842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(6029),i=n(5858),o=n(97646),s=n(12328),a=n(21938),l=n(55729),u=n(45463),c=n(45460),h=n(8527),d=n(2241);let p=(0,c.R)(function(e,t){let n=(0,h.o)("Avatar",e),{children:c,borderColor:p,max:f,spacing:m="-0.75rem",borderRadius:g="full",...y}=(0,i.M)(e),v=(0,o.a)(c),b=null!=f?v.slice(0,f):v,w=null!=f?v.length-f:0,_=b.reverse().map((t,n)=>{let r={marginEnd:0===n?0:m,size:e.size,borderColor:t.props.borderColor??p,showBorder:!0};return(0,l.cloneElement)(t,(0,s.o)(r))}),k={display:"flex",alignItems:"center",justifyContent:"flex-end",flexDirection:"row-reverse",...n.group},x={borderRadius:g,marginStart:m,...u.B,...n.excessLabel};return(0,r.jsxs)(d.B.div,{ref:t,role:"group",__css:k,...y,className:(0,a.cx)("chakra-avatar__group",e.className),children:[w>0&&(0,r.jsx)(d.B.span,{className:"chakra-avatar__excess",__css:x,children:`+${w}`}),_]})});p.displayName="AvatarGroup"},16930:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(47347),i=n(11116),o=n(41777),s=n(67710);function a(){var e=s.x,t=s.y,n=(0,i.A)(!0),a=null,l=o.A,u=null;function c(i){var o,s,c,h=i.length,d=!1;for(null==a&&(u=l(c=(0,r.A)())),o=0;o<=h;++o)!(o{"use strict";n.d(t,{Ay:()=>l,NG:()=>a});var r=n(37243),i=n(63867),o=/^```([a-z]+)?[\s\n]$/,s=/^~~~([a-z]+)?[\s\n]$/,a=r.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options;if(!n)return null;let r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n;return(null==(n=e.raw)?void 0:n.startsWith("```"))===!1&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r=(null==(n=e.attrs)?void 0:n.language)||"";return e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join("\n"):`\`\`\`${r} \`\`\``},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:i}=r,{$from:o,empty:s}=i;if(o.parent.type!==this.type)return!1;let a=" ".repeat(n);return s?e.commands.insertContent(a):e.commands.command(({tr:e})=>{let{from:t,to:n}=i,o=r.doc.textBetween(t,n,"\n","\n").split("\n").map(e=>a+e).join("\n");return e.replaceWith(t,n,r.schema.text(o)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:o}=r,{$from:s,empty:a}=o;return s.parent.type===this.type&&(a?e.commands.command(({tr:e})=>{var t;let{pos:o}=s,a=s.start(),l=s.end(),u=r.doc.textBetween(a,l,"\n","\n").split("\n"),c=0,h=0,d=o-a;for(let e=0;e=d){c=e;break}h+=u[e].length+1}let p=Math.min(((null==(t=u[c].match(/^ */))?void 0:t[0])||"").length,n);if(0===p)return!0;let f=a;for(let e=0;e{let{from:t,to:i}=o,s=r.doc.textBetween(t,i,"\n","\n").split("\n").map(e=>{var t;let r=Math.min(((null==(t=e.match(/^ */))?void 0:t[0])||"").length,n);return e.slice(r)}).join("\n");return e.replaceWith(t,i,r.schema.text(s)),!0}))},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!!o&&!!s&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:o,empty:s}=n;if(!s||o.parent.type!==this.type||o.parentOffset!==o.parent.nodeSize-2)return!1;let a=o.after();return void 0!==a&&(r.nodeAt(a)?e.commands.command(({tr:e})=>(e.setSelection(i.LN.near(r.resolve(a))),!0)):e.commands.exitCode())}}},addInputRules(){return[(0,r.JJ)({find:o,type:this.type,getAttributes:e=>({language:e[1]})}),(0,r.JJ)({find:s,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new i.k_({key:new i.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,s=null==o?void 0:o.mode;if(!n||!s)return!1;let{tr:a,schema:l}=e.state,u=l.text(n.replace(/\r\n?/g,"\n"));return a.replaceSelectionWith(this.type.create({language:s},u)),a.selection.$from.parent.type!==this.type&&a.setSelection(i.U3.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),l=a},17508:(e,t,n)=>{var r=n(6802),i=n(28469);e.exports=function(e,t,n){return n="function"==typeof n?n:void 0,r(e,t,i(t),n)}},17553:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(80545);class i extends Error{constructor(e,t){void 0===t&&(t={}),super(e),this.cause=t.cause,this.cause&&(0,r.A)(this.cause,"isNetworkError")&&(this.isNetworkError=this.cause.isNetworkError)}}let o=i},17806:e=>{var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},17997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{directoryOpen:()=>a,directoryOpenLegacy:()=>_,directoryOpenModern:()=>m,fileOpen:()=>o,fileOpenLegacy:()=>b,fileOpenModern:()=>h,fileSave:()=>u,fileSaveLegacy:()=>x,fileSaveModern:()=>y,supported:()=>r});let r=(()=>{if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top}catch(e){}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),i=r?Promise.resolve().then(function(){return d}):Promise.resolve().then(function(){return w});async function o(...e){return(await i).default(...e)}let s=r?Promise.resolve().then(function(){return g}):Promise.resolve().then(function(){return k});async function a(...e){return(await s).default(...e)}let l=r?Promise.resolve().then(function(){return v}):Promise.resolve().then(function(){return E});async function u(...e){return(await l).default(...e)}let c=async e=>{let t=await e.getFile();return t.handle=e,t};var h=async(e=[{}])=>{Array.isArray(e)||(e=[e]);let t=[];e.forEach((e,n)=>{t[n]={description:e.description||"Files",accept:{}},e.mimeTypes?e.mimeTypes.map(r=>{t[n].accept[r]=e.extensions||[]}):t[n].accept["*/*"]=e.extensions||[]});let n=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),r=await Promise.all(n.map(c));return e[0].multiple?r:r[0]},d={__proto__:null,default:h};function p(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(p=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new p(e)}let f=async(e,t,n=e.name,r)=>{let i=[],o=[];var s,a=!1,l=!1;try{for(var u,c=function(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new p(t.call(e));n="@@asyncIterator",r="@@iterator"}throw TypeError("Object is not async iterable")}(e.values());a=!(u=await c.next()).done;a=!1){let s=u.value,a=`${n}/${s.name}`;"file"===s.kind?o.push(s.getFile().then(t=>(t.directoryHandle=e,t.handle=s,Object.defineProperty(t,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>a})))):"directory"!==s.kind||!t||r&&r(s)||i.push(f(s,t,a,r))}}catch(e){l=!0,s=e}finally{try{a&&null!=c.return&&await c.return()}finally{if(l)throw s}}return[...(await Promise.all(i)).flat(),...await Promise.all(o)]};var m=async(e={})=>(e.recursive=e.recursive||!1,e.mode=e.mode||"read",f(await window.showDirectoryPicker({id:e.id,startIn:e.startIn,mode:e.mode}),e.recursive,void 0,e.skipDirectory)),g={__proto__:null,default:m},y=async(e,t=[{}],n=null,r=!1,i=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";let o=[],s=null;if(e instanceof Blob&&e.type?s=e.type:e.headers&&e.headers.get("content-type")&&(s=e.headers.get("content-type")),t.forEach((e,t)=>{o[t]={description:e.description||"Files",accept:{}},e.mimeTypes?(0===t&&s&&e.mimeTypes.push(s),e.mimeTypes.map(n=>{o[t].accept[n]=e.extensions||[]})):s?o[t].accept[s]=e.extensions||[]:o[t].accept["*/*"]=e.extensions||[]}),n)try{await n.getFile()}catch(e){if(n=null,r)throw e}let a=n||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:o,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!n&&i&&i(a);let l=await a.createWritable();if("stream"in e){let t=e.stream();return await t.pipeTo(l),a}return"body"in e?await e.body.pipeTo(l):(await l.write(await e),await l.close()),a},v={__proto__:null,default:y},b=async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise((t,n)=>{let r=document.createElement("input");r.type="file";let i=[...e.map(e=>e.mimeTypes||[]),...e.map(e=>e.extensions||[])].join();r.multiple=e[0].multiple||!1,r.accept=i||"",r.style.display="none",document.body.append(r);let o=e=>{"function"==typeof s&&s(),t(e)},s=e[0].legacySetup&&e[0].legacySetup(o,()=>s(n),r),a=()=>{window.removeEventListener("focus",a),r.remove()};r.addEventListener("click",()=>{window.addEventListener("focus",a)}),r.addEventListener("change",()=>{window.removeEventListener("focus",a),r.remove(),o(r.multiple?Array.from(r.files):r.files[0])}),r.click()})),w={__proto__:null,default:b},_=async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise((t,n)=>{let r=document.createElement("input");r.type="file",r.webkitdirectory=!0;let i=e=>{"function"==typeof o&&o(),t(e)},o=e[0].legacySetup&&e[0].legacySetup(i,()=>o(n),r);r.addEventListener("change",()=>{let t=Array.from(r.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(t=t.filter(t=>t.webkitRelativePath.split("/").every(t=>!e[0].skipDirectory({name:t,kind:"directory"})))):t=t.filter(e=>2===e.webkitRelativePath.split("/").length),i(t)}),r.click()})),k={__proto__:null,default:_},x=async(e,t={})=>{Array.isArray(t)&&(t=t[0]);let n=document.createElement("a"),r=e;"body"in e&&(r=await async function(e,t){let n=e.getReader(),r=new Response(new ReadableStream({start:e=>(async function t(){return n.read().then(({done:n,value:r})=>{if(!n)return e.enqueue(r),t();e.close()})})()})),i=await r.blob();return n.releaseLock(),new Blob([i],{type:t})}(e.body,e.headers.get("content-type"))),n.download=t.fileName||"Untitled",n.href=URL.createObjectURL(await r);let i=()=>{"function"==typeof o&&o()},o=t.legacySetup&&t.legacySetup(i,()=>o(),n);return n.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(n.href),3e4),i()}),n.click(),null},E={__proto__:null,default:x}},18053:(e,t,n)=>{var r=n(49355),i=n(9819),o=n(90199);e.exports=function(e){return i(e)?o(e):r(e)}},18074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return k},useLinkStatus:function(){return _}});let r=n(78963),i=n(6029),o=r._(n(55729)),s=n(76424),a=n(84618),l=n(13779),u=n(37069),c=n(91134),h=n(70679),d=n(4985),p=n(10010),f=n(3359),m=n(35924);n(32062);let g=new Set;function y(e,t,n,r){if((0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,n,r).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r,{href:l,as:g,children:b,prefetch:w=null,passHref:_,replace:k,shallow:x,scroll:E,locale:S,onClick:A,onNavigate:T,onMouseEnter:C,onTouchStart:O,legacyBehavior:P=!1,...M}=e;n=b,P&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let R=o.default.useContext(h.RouterContext),N=!1!==w,{href:I,as:D}=o.default.useMemo(()=>{if(!R){let e=v(l);return{href:e,as:g?v(g):e}}let[e,t]=(0,s.resolveHref)(R,l,!0);return{href:e,as:g?(0,s.resolveHref)(R,g):t||e}},[R,l,g]),L=o.default.useRef(I),j=o.default.useRef(D);P&&(r=o.default.Children.only(n));let F=P?r&&"object"==typeof r&&r.ref:t,[z,B,U]=(0,d.useIntersection)({rootMargin:"200px"}),H=o.default.useCallback(e=>{(j.current!==D||L.current!==I)&&(U(),j.current=D,L.current=I),z(e)},[D,I,U,z]),$=(0,m.useMergedRef)(H,F);o.default.useEffect(()=>{R&&B&&N&&y(R,I,D,{locale:S})},[D,I,B,S,N,null==R?void 0:R.locale,R]);let W={ref:$,onClick(e){P||"function"!=typeof A||A(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),R&&(e.defaultPrevented||function(e,t,n,r,i,o,s,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,a.isLocalURL)(n)){i&&(e.preventDefault(),location.replace(n));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:l,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})})()}}(e,R,I,D,k,x,E,S,T))},onMouseEnter(e){P||"function"!=typeof C||C(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),R&&y(R,I,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),R&&y(R,I,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(D))W.href=D;else if(!P||_||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==R?void 0:R.locale;W.href=(null==R?void 0:R.isLocaleDomain)&&(0,p.getDomainLocale)(D,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales)||(0,f.addBasePath)((0,c.addLocale)(D,e,null==R?void 0:R.defaultLocale))}return P?o.default.cloneElement(r,W):(0,i.jsx)("a",{...M,...W,children:n})}),w=(0,o.createContext)({pending:!1}),_=()=>(0,o.useContext)(w),k=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18257:(e,t,n)=>{"use strict";n.d(t,{FK:()=>y,Ob:()=>N,XX:()=>R,_3:()=>g,h:()=>f,uA:()=>v,v2:()=>function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some(function(t){e(t,n)}):n.push(t)),n}});var r,i,o,s,a,l,u={},c=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,n){var i,o,s,a={};for(s in t)"key"==s?i=t[s]:"ref"==s?o=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return m(e,a,i,o,null)}function m(e,t,n,r,s){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++o:s};return null==s&&null!=i.vnode&&i.vnode(a),a}function g(){return{current:null}}function y(e){return e.children}function v(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?m(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(v=S[f])||v&&w.key==v.key&&w.type===v.type)S[f]=void 0;else for(g=0;g2&&(a.children=arguments.length>3?r.call(arguments,2):n),m(e.type,a,i||e.key,o||e.ref,null)}r=c.slice,i={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},o=0,v.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},v.prototype.render=y,s=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0},18528:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});let r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function s(e,t,n){let a,l,u,c=(t-e)/Math.max(0,n),h=Math.floor(Math.log10(c)),d=c/Math.pow(10,h),p=d>=r?10:d>=i?5:d>=o?2:1;return(h<0?(a=Math.round(e*(u=Math.pow(10,-h)/p)),l=Math.round(t*u),a/ut&&--l,u=-u):(a=Math.round(e/(u=Math.pow(10,h)*p)),l=Math.round(t/u),a*ut&&--l),lt?1:e>=t?0:NaN}function u(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function c(e){let t,n,r;function i(e,r,o=0,s=e.length){if(o>>1;0>n(e[t],r)?o=t+1:s=t}while(ol(e(t),n),r=(t,n)=>e(t)-n):(t=e===l||e===u?e:h,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){let s=i(e,t,n,o-1);return s>n&&r(e[s-1],t)>-r(e[s],t)?s-1:s},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(i=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function N(e){var t;if(!(t=R.exec(e)))throw Error("invalid format: "+e);return new I({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function I(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function D(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function L(e){return(e=D(Math.abs(e)))?e[1]:NaN}function j(e,t){var n=D(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}N.prototype=I.prototype,I.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let F={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>j(100*e,t),r:j,s:function(e,t){var n=D(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(f=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+D(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function z(e){return e}var B=Array.prototype.map,U=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];g=(m=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?z:(t=B.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(e.substring(i-=a,i+a)),!((l+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?z:(r=B.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=N(e)).fill,n=e.align,r=e.sign,d=e.symbol,p=e.zero,m=e.width,g=e.comma,y=e.precision,v=e.trim,b=e.type;"n"===b?(g=!0,b="g"):F[b]||(void 0===y&&(y=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var w="$"===d?o:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===d?s:/[%p]/.test(b)?u:"",k=F[b],x=/[defgprs%]/.test(b);function E(e){var o,s,u,d=w,E=_;if("c"===b)E=k(e)+E,e="";else{var S=(e*=1)<0||1/e<0;if(e=isNaN(e)?h:k(Math.abs(e),y),v&&(e=function(e){n:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==r&&(S=!1),d=(S?"("===r?r:c:"-"===r||"("===r?"":r)+d,E=("s"===b?U[8+f/3]:"")+E+(S&&"("===r?")":""),x){for(o=-1,s=e.length;++o(u=e.charCodeAt(o))||u>57){E=(46===u?a+e.slice(o+1):e.slice(o))+E,e=e.slice(0,o);break}}}g&&!p&&(e=i(e,1/0));var A=d.length+e.length+E.length,T=A>1)+d+e+E+T.slice(A);break;default:e=T+d+e+E}return l(e)}return y=void 0===y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),E.toString=function(){return e+""},E}return{format:d,formatPrefix:function(e,t){var n=d(((e=N(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(L(t)/3))),i=Math.pow(10,-r),o=U[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,y=m.formatPrefix;var H=(0,n(48047).A)("domain","range","reverse","clamp","interpolate","nice","round","zero");function $(e){return H(function e(){var t,n=(function(){var e,t,n,r,i,o,s=A,a=A,l=function e(t,n){var r,i,o=typeof n;return null==n||"boolean"===o?(0,x.A)(n):("number"===o?w:"string"===o?(i=(0,v.Ay)(n))?(n=i,b.Ay):function(e,t){var n,r,i,o,s,a=_.lastIndex=k.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=_.exec(e))&&(o=k.exec(t));)(s=o.index)>a&&(s=t.slice(a,s),u[l]?u[l]+=s:u[++l]=s),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:w(i,o)})),a=k.lastIndex;return at&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?P:O,i=o=null,h}function h(t){return null==t||isNaN(t*=1)?n:(i||(i=r(s.map(e),a,l)))(e(u(t)))}return h.invert=function(n){return u(t((o||(o=r(a,s.map(e),w)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,S),c()):s.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),c()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=E.A,c()},h.clamp=function(e){return arguments.length?(u=!!e||T,c()):u!==T},h.interpolate=function(e){return arguments.length?(l=e,c()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,c()}})()(T,T);return n.copy=function(){return e().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())},M.C.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){if(t*=1,e*=1,!((n*=1)>0))return[];if(e===t)return[e];let r=t=i))return[];let l=o-i+1,u=Array(l);if(r)if(a<0)for(let e=0;e0;){if((i=a(u,c,e))===r)return o[s]=u,o[l]=c,t(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else if(i<0)u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i;else break;r=i}return n},n}(),e)}},19034:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(55729),i=n(75828),o=n.n(i),s=n(85375),a=n(8610),l=["axisClassName","labelOffset","tickLength","tickLabelProps"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),p="function"==typeof h?h:u({},c,h);return r.createElement(s.A,u({axisClassName:o()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.A.bottom,tickLabelProps:p,tickLength:void 0===i?8:i},d))}},19375:e=>{"use strict";let{entries:t,setPrototypeOf:n,isFrozen:r,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object,{freeze:s,seal:a,create:l}=Object,{apply:u,construct:c}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});let h=S(Array.prototype.forEach),d=S(Array.prototype.lastIndexOf),p=S(Array.prototype.pop),f=S(Array.prototype.push),m=S(Array.prototype.splice),g=S(String.prototype.toLowerCase),y=S(String.prototype.toString),v=S(String.prototype.match),b=S(String.prototype.replace),w=S(String.prototype.indexOf),_=S(String.prototype.trim),k=S(Object.prototype.hasOwnProperty),x=S(RegExp.prototype.test),E=(X=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:g;n&&n(e,null);let o=t.length;for(;o--;){let n=t[o];if("string"==typeof n){let e=i(n);e!==n&&(r(t)||(t[o]=e),n=e)}e[n]=!0}return e}function T(e){let n=l(null);for(let[r,i]of t(e))k(e,r)&&(Array.isArray(i)?n[r]=function(e){for(let t=0;t/gm),H=a(/\$\{[\w\W]*/gm),$=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),W=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i);var X,G=Object.freeze({__proto__:null,ARIA_ATTR:W,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:a(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:$,DOCTYPE_NAME:K,ERB_EXPR:U,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:B,TMPLIT_EXPR:H});let Z={element:1,text:3,progressingInstruction:7,comment:8,document:9},J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Q=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};e.exports=function e(){let n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.2.6",i.removed=[],!r||!r.document||r.document.nodeType!==Z.document||!r.Element)return i.isSupported=!1,i;let{document:o}=r,a=o,u=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:S,Node:B,Element:U,NodeFilter:H,NamedNodeMap:$=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:W,DOMParser:q,trustedTypes:Y}=r,X=U.prototype,ee=C(X,"cloneNode"),et=C(X,"remove"),en=C(X,"nextSibling"),er=C(X,"childNodes"),ei=C(X,"parentNode");if("function"==typeof S){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let eo="",{implementation:es,createNodeIterator:ea,createDocumentFragment:el,getElementsByTagName:eu}=o,{importNode:ec}=a,eh=Q();i.isSupported="function"==typeof t&&"function"==typeof ei&&es&&void 0!==es.createHTMLDocument;let{MUSTACHE_EXPR:ed,ERB_EXPR:ep,TMPLIT_EXPR:ef,DATA_ATTR:em,ARIA_ATTR:eg,IS_SCRIPT_OR_DATA:ey,ATTR_WHITESPACE:ev,CUSTOM_ELEMENT:eb}=G,{IS_ALLOWED_URI:ew}=G,e_=null,ek=A({},[...O,...P,...M,...N,...D]),ex=null,eE=A({},[...L,...j,...F,...z]),eS=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eA=null,eT=null,eC=!0,eO=!0,eP=!1,eM=!0,eR=!1,eN=!0,eI=!1,eD=!1,eL=!1,ej=!1,eF=!1,ez=!1,eB=!0,eU=!1,eH=!0,e$=!1,eW={},eV=null,eq=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eY=null,eK=A({},["audio","video","img","source","image","track"]),eX=null,eG=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eZ="http://www.w3.org/1998/Math/MathML",eJ="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e5=A({},[eZ,eJ,eQ],y),e3=A({},["mi","mo","mn","ms","mtext"]),e4=A({},["annotation-xml"]),e6=A({},["title","style","font","a","script"]),e8=null,e9=["application/xhtml+xml","text/html"],e7=null,te=null,tt=o.createElement("form"),tn=function(e){return e instanceof RegExp||e instanceof Function},tr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=T(e),e7="application/xhtml+xml"===(e8=-1===e9.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?y:g,e_=k(e,"ALLOWED_TAGS")?A({},e.ALLOWED_TAGS,e7):ek,ex=k(e,"ALLOWED_ATTR")?A({},e.ALLOWED_ATTR,e7):eE,e2=k(e,"ALLOWED_NAMESPACES")?A({},e.ALLOWED_NAMESPACES,y):e5,eX=k(e,"ADD_URI_SAFE_ATTR")?A(T(eG),e.ADD_URI_SAFE_ATTR,e7):eG,eY=k(e,"ADD_DATA_URI_TAGS")?A(T(eK),e.ADD_DATA_URI_TAGS,e7):eK,eV=k(e,"FORBID_CONTENTS")?A({},e.FORBID_CONTENTS,e7):eq,eA=k(e,"FORBID_TAGS")?A({},e.FORBID_TAGS,e7):T({}),eT=k(e,"FORBID_ATTR")?A({},e.FORBID_ATTR,e7):T({}),eW=!!k(e,"USE_PROFILES")&&e.USE_PROFILES,eC=!1!==e.ALLOW_ARIA_ATTR,eO=!1!==e.ALLOW_DATA_ATTR,eP=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eM=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eR=e.SAFE_FOR_TEMPLATES||!1,eN=!1!==e.SAFE_FOR_XML,eI=e.WHOLE_DOCUMENT||!1,ej=e.RETURN_DOM||!1,eF=e.RETURN_DOM_FRAGMENT||!1,ez=e.RETURN_TRUSTED_TYPE||!1,eL=e.FORCE_BODY||!1,eB=!1!==e.SANITIZE_DOM,eU=e.SANITIZE_NAMED_PROPS||!1,eH=!1!==e.KEEP_CONTENT,e$=e.IN_PLACE||!1,ew=e.ALLOWED_URI_REGEXP||V,e0=e.NAMESPACE||eQ,e3=e.MATHML_TEXT_INTEGRATION_POINTS||e3,e4=e.HTML_INTEGRATION_POINTS||e4,eS=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eS.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eS.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eS.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eR&&(eO=!1),eF&&(ej=!0),eW&&(e_=A({},D),ex=[],!0===eW.html&&(A(e_,O),A(ex,L)),!0===eW.svg&&(A(e_,P),A(ex,j),A(ex,z)),!0===eW.svgFilters&&(A(e_,M),A(ex,j),A(ex,z)),!0===eW.mathMl&&(A(e_,N),A(ex,F),A(ex,z))),e.ADD_TAGS&&(e_===ek&&(e_=T(e_)),A(e_,e.ADD_TAGS,e7)),e.ADD_ATTR&&(ex===eE&&(ex=T(ex)),A(ex,e.ADD_ATTR,e7)),e.ADD_URI_SAFE_ATTR&&A(eX,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(eV===eq&&(eV=T(eV)),A(eV,e.FORBID_CONTENTS,e7)),eH&&(e_["#text"]=!0),eI&&A(e_,["html","head","body"]),e_.table&&(A(e_,["tbody"]),delete eA.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');eo=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=J(Y,u)),null!==n&&"string"==typeof eo&&(eo=n.createHTML(""));s&&s(e),te=e}},ti=A({},[...P,...M,...R]),to=A({},[...N,...I]),ts=function(e){let t=ei(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let n=g(e.tagName),r=g(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eJ?t.namespaceURI===eQ?"svg"===n:t.namespaceURI===eZ?"svg"===n&&("annotation-xml"===r||e3[r]):!!ti[n]:e.namespaceURI===eZ?t.namespaceURI===eQ?"math"===n:t.namespaceURI===eJ?"math"===n&&e4[r]:!!to[n]:e.namespaceURI===eQ?(t.namespaceURI!==eJ||!!e4[r])&&(t.namespaceURI!==eZ||!!e3[r])&&!to[n]&&(e6[n]||!ti[n]):"application/xhtml+xml"===e8&&!!e2[e.namespaceURI])},ta=function(e){f(i.removed,{element:e});try{ei(e).removeChild(e)}catch(t){et(e)}},tl=function(e,t){try{f(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ej||eF)try{ta(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tu=function(e){let t=null,r=null;if(eL)e=""+e;else{let t=v(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===e8&&e0===eQ&&(e=''+e+"");let i=n?n.createHTML(e):e;if(e0===eQ)try{t=new q().parseFromString(i,e8)}catch(e){}if(!t||!t.documentElement){t=es.createDocument(e0,"template",null);try{t.documentElement.innerHTML=e1?eo:i}catch(e){}}let s=t.body||t.documentElement;return(e&&r&&s.insertBefore(o.createTextNode(r),s.childNodes[0]||null),e0===eQ)?eu.call(t,eI?"html":"body")[0]:eI?t.documentElement:s},tc=function(e){return ea.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},th=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof $)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},td=function(e){return"function"==typeof B&&e instanceof B};function tp(e,t,n){h(e,e=>{e.call(i,t,n,te)})}let tf=function(e){let t=null;if(tp(eh.beforeSanitizeElements,e,null),th(e))return ta(e),!0;let n=e7(e.nodeName);if(tp(eh.uponSanitizeElement,e,{tagName:n,allowedTags:e_}),eN&&e.hasChildNodes()&&!td(e.firstElementChild)&&x(/<[/\w!]/g,e.innerHTML)&&x(/<[/\w!]/g,e.textContent)||e.nodeType===Z.progressingInstruction||eN&&e.nodeType===Z.comment&&x(/<[/\w]/g,e.data))return ta(e),!0;if(!e_[n]||eA[n]){if(!eA[n]&&tg(n)&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,n)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(n)))return!1;if(eH&&!eV[n]){let t=ei(e)||e.parentNode,n=er(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=ee(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,en(e))}}}return ta(e),!0}return e instanceof U&&!ts(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&x(/<\/no(script|embed|frames)/i,e.innerHTML)?(ta(e),!0):(eR&&e.nodeType===Z.text&&(t=e.textContent,h([ed,ep,ef],e=>{t=b(t,e," ")}),e.textContent!==t&&(f(i.removed,{element:e.cloneNode()}),e.textContent=t)),tp(eh.afterSanitizeElements,e,null),!1)},tm=function(e,t,n){if(eB&&("id"===t||"name"===t)&&(n in o||n in tt))return!1;if(eO&&!eT[t]&&x(em,t));else if(eC&&x(eg,t));else if(!ex[t]||eT[t]){if(!(tg(e)&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,e)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(e))&&(eS.attributeNameCheck instanceof RegExp&&x(eS.attributeNameCheck,t)||eS.attributeNameCheck instanceof Function&&eS.attributeNameCheck(t))||"is"===t&&eS.allowCustomizedBuiltInElements&&(eS.tagNameCheck instanceof RegExp&&x(eS.tagNameCheck,n)||eS.tagNameCheck instanceof Function&&eS.tagNameCheck(n))))return!1}else if(eX[t]);else if(x(ew,b(n,ev,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===w(n,"data:")&&eY[e]);else if(eP&&!x(ey,b(n,ev,"")));else if(n)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&v(e,eb)},ty=function(e){tp(eh.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||th(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ex,forceKeepAttr:void 0},o=t.length;for(;o--;){let{name:s,namespaceURI:a,value:l}=t[o],u=e7(s),c="value"===s?l:_(l);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,tp(eh.uponSanitizeAttribute,e,r),c=r.attrValue,eU&&("id"===u||"name"===u)&&(tl(s,e),c="user-content-"+c),eN&&x(/((--!?|])>)|<\/(style|title)/i,c)){tl(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr||!eM&&x(/\/>/i,c)){tl(s,e);continue}eR&&h([ed,ep,ef],e=>{c=b(c,e," ")});let d=e7(e.nodeName);if(!tm(d,u,c)){tl(s,e);continue}if(n&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(a);else switch(Y.getAttributeType(d,u)){case"TrustedHTML":c=n.createHTML(c);break;case"TrustedScriptURL":c=n.createScriptURL(c)}if(c!==l)try{a?e.setAttributeNS(a,s,c):e.setAttribute(s,c),th(e)?ta(e):p(i.removed)}catch(t){tl(s,e)}}tp(eh.afterSanitizeAttributes,e,null)},tv=function e(t){let n=null,r=tc(t);for(tp(eh.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)tp(eh.uponSanitizeShadowNode,n,null),tf(n),ty(n),n.content instanceof c&&e(n.content);tp(eh.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,l=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!td(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}else throw E("toString is not a function");if(!i.isSupported)return e;if(eD||tr(t),i.removed=[],"string"==typeof e&&(e$=!1),e$){if(e.nodeName){let t=e7(e.nodeName);if(!e_[t]||eA[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof B)(o=(r=tu("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===Z.element&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!ej&&!eR&&!eI&&-1===e.indexOf("<"))return n&&ez?n.createHTML(e):e;if(!(r=tu(e)))return ej?null:ez?eo:""}r&&eL&&ta(r.firstChild);let u=tc(e$?e:r);for(;s=u.nextNode();)tf(s),ty(s),s.content instanceof c&&tv(s.content);if(e$)return e;if(ej){if(eF)for(l=el.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(ex.shadowroot||ex.shadowrootmode)&&(l=ec.call(a,l,!0)),l}let d=eI?r.outerHTML:r.innerHTML;return eI&&e_["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&x(K,r.ownerDocument.doctype.name)&&(d="\n"+d),eR&&h([ed,ep,ef],e=>{d=b(d,e," ")}),n&&ez?n.createHTML(d):d},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tr(e),eD=!0},i.clearConfig=function(){te=null,eD=!1},i.isValidAttribute=function(e,t,n){return te||tr({}),tm(e7(e),e7(t),n)},i.addHook=function(e,t){"function"==typeof t&&f(eh[e],t)},i.removeHook=function(e,t){if(void 0!==t){let n=d(eh[e],t);return -1===n?void 0:m(eh[e],n,1)[0]}return p(eh[e])},i.removeHooks=function(e){eh[e]=[]},i.removeAllHooks=function(){eh=Q()},i}()},19962:(e,t,n)=>{var r=n(50515);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i{"use strict";n.d(t,{T:()=>u});var r=n(6029),i=n(21938),o=n(49146),s=n(61400),a=n(45460),l=n(2241);let u=(0,a.R)(function(e,t){let n=(0,s.uo)(e),a=(0,o.e)();return(0,r.jsx)(l.B.div,{...n,width:"100%",ref:t,className:(0,i.cx)("chakra-tabs__tab-panels",e.className),__css:a.tabpanels})});u.displayName="TabPanels"},20954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=n(30758)._(n(55729)),i=n(10140),o=[],s=[],a=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),o=null;function l(){if(!o){let t=new u(e,n);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()}if(!a){let e=n.webpack&&1?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){l();let s=r.default.useContext(i.LoadableContext);s&&Array.isArray(n.modules)&&n.modules.forEach(e=>{s(e)});let a=r.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),r.default.useMemo(()=>{var t;return a.loading||a.error?r.default.createElement(n.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:o.retry}):a.loaded?r.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return c.preload=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,e)}function h(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return h(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{h(o).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(a=!0,t());h(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let d=c},21033:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(56121),i=n.n(r),o=n(55729),s=n(12364),a=n.n(s);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var m={width:"100%",height:"100%"};function g(e){var t,n,r,i,s,g,y,v,b,w,_,k,x,E,S,A,T=e.className,C=e.children,O=e.debounceTime,P=e.ignoreDimensions,M=e.initialSize,R=e.parentSizeStyles,N=e.enableDebounceLeadingCall,I=e.resizeObserverPolyfill,D=f(e,h),L=(r=void 0===(n=(t={initialSize:M,debounceTime:O,ignoreDimensions:P,enableDebounceLeadingCall:void 0===N||N,resizeObserverPolyfill:I}).initialSize)?c:n,s=void 0===(i=t.debounceTime)?300:i,y=void 0===(g=t.ignoreDimensions)?u:g,b=void 0===(v=t.enableDebounceLeadingCall)||v,w=t.resizeObserverPolyfill,_=(0,o.useRef)(null),k=(0,o.useRef)(0),E=(x=(0,o.useState)(l({},c,r)))[0],S=x[1],A=(0,o.useMemo)(function(){var e=Array.isArray(y)?y:[y];return a()(function(t){S(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},s,{leading:b})},[s,b,y]),(0,o.useEffect)(function(){var e=new(w||window.ResizeObserver)(function(e){e.forEach(function(e){var t,n=null!=(t=null==e?void 0:e.contentRect)?t:{},r=n.left,i=n.top,o=n.width,s=n.height;k.current=window.requestAnimationFrame(function(){A({width:o,height:s,top:i,left:r})})})});return _.current&&e.observe(_.current),function(){window.cancelAnimationFrame(k.current),e.disconnect(),A.cancel()}},[A,w]),l({parentRef:_,resize:A},E)),j=L.parentRef,F=L.resize,z=f(L,d);return o.createElement("div",p({style:void 0===R?m:R,ref:j,className:T},D),C(p({},z,{ref:j.current,resize:F})))}g.propTypes={className:i().string,children:i().func.isRequired}},21157:(e,t,n)=>{var r=n(60567),i=n(6797);e.exports=function(e){return i(r(e).toLowerCase())}},21315:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(39099);function i(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}var o=n(11027);let s=function e(t){var n=(0,o.uN)(t);function i(e,t){var i=n((e=(0,r.Qh)(e)).r,(t=(0,r.Qh)(t)).r),s=n(e.g,t.g),a=n(e.b,t.b),l=(0,o.Ay)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=s(t),e.b=a(t),e.opacity=l(t),e+""}}return i.gamma=e,i}(1);function a(e){return function(t){var n,i,o=t.length,s=Array(o),a=Array(o),l=Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],s=e[r+1],a=r>0?e[r-1]:2*o-s,l=r{"use strict";n.d(t,{JM:()=>l,Kd:()=>a,Wk:()=>u,a$:()=>s});var r=n(12549),i=n(80794);let o=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,i.k8,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},s=(0,r.xI)("$ZodError",o),a=(0,r.xI)("$ZodError",o,{Parent:Error});function l(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function u(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)r._errors.push(n(t));else{let e=r,i=0;for(;i{var r=n(95814);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,i,o,s=[],a=[{value:"(",type:4,pre:0}],l=this.value,u=1;un)a.push(e);else{for(;n>=i&&!c||c&&i{var r=n(17806),i=n(48877),o=n(11061),s=parseFloat,a=Math.min,l=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&i(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var u=e;e=t,t=u}if(n||e%1||t%1){var c=l();return a(e+c*(t-e+s("1e-"+((c+"").length-1))),t)}return r(e,t)}},22832:(e,t,n)=>{"use strict";n.d(t,{C:()=>u});var r=n(6029),i=n(5858),o=n(21938),s=n(45460),a=n(8527),l=n(2241);let u=(0,s.R)(function(e,t){let n=(0,a.V)("Code",e),{className:s,...u}=(0,i.M)(e);return(0,r.jsx)(l.B.code,{ref:t,className:(0,o.cx)("chakra-code",e.className),...u,__css:{display:"inline-block",...n}})});u.displayName="Code"},22853:(e,t,n)=>{"use strict";var r=n(5210),i=n(74373),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function h(e){return(e||"").toString().replace(o,"")}var d=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function f(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},i={},o=typeof(e=e||r);if("blob:"===e.protocol)i=new y(unescape(e.pathname),{});else if("string"===o)for(t in i=new y(e,{}),p)delete i[t];else if("object"===o){for(t in e)t in p||(i[t]=e[t]);void 0===i.slashes&&(i.slashes=a.test(e.href))}return i}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=h(e)).replace(s,""),t=t||{};var n,r=u.exec(e),i=r[1]?r[1].toLowerCase():"",o=!!r[2],a=!!r[3],l=0;return o?a?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):a?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===i?l>=2&&(n=n.slice(2)):m(i)?n=r[4]:i?o&&(n=n.slice(2)):l>=2&&m(t.protocol)&&(n=r[4]),{protocol:i,slashes:o||m(i),slashesCount:l,rest:n}}function y(e,t,n){if(e=(e=h(e)).replace(s,""),!(this instanceof y))return new y(e,t,n);var o,a,l,u,p,v,b=d.slice(),w=typeof t,_=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=i.parse),o=!(a=g(e||"",t=f(t))).protocol&&!a.slashes,this.slashes=a.slashes||o&&t.slashes,this.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||c.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!m(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);_{"use strict";n.d(t,{A:()=>h});var r={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},i=n(81716),o={date:(0,i.A)({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},a=n(93730),l={ordinalNumber:function(e){return String(e)},era:(0,a.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},defaultWidth:"wide"}),quarter:(0,a.A)({values:{narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,a.A)({values:{narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},defaultWidth:"wide"}),day:(0,a.A)({values:{narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},defaultWidth:"wide"}),dayPeriod:(0,a.A)({values:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultFormattingWidth:"wide"})},u=n(89252),c=n(25696);let h={code:"fa-IR",formatDistance:function(e,t,n){var i;if(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)if(n.comparison>0)return"در "+i;else return i+" قبل";return i},formatLong:o,formatRelative:function(e,t,n,r){return s[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:6,firstWeekContainsDate:1}}},23275:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(55729),i=n(75828),o=n.n(i),s=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),z=(n=(t={x:E,y:S,width:A,height:T,radius:C,all:void 0!==O&&O,top:void 0!==P&&P,bottom:void 0!==M&&M,left:void 0!==R&&R,right:void 0!==N&&N,topLeft:void 0!==I&&I,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==j&&j}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,h=t.left,d=t.radius,p=t.right,f=t.top,m=t.topLeft,g=t.topRight,y=t.width,v=t.x,b=t.y,g=n||f||p||g,u=n||i||p||u,l=n||i||h||l,m=n||f||h||m,w=2*(d=Math.max(1,Math.min(d,Math.min(y,c)/2))),("M"+(v+d)+","+b+" h"+(y-w)+"\n "+(g?"a"+d+","+d+" 0 0 1 "+d+","+d:"h"+d+"v"+d)+"\n v"+(c-w)+"\n "+(u?"a"+d+","+d+" 0 0 1 "+-d+","+d:"v"+d+"h"+-d)+"\n h"+(w-y)+"\n "+(l?"a"+d+","+d+" 0 0 1 "+-d+","+-d:"h"+-d+"v"+-d)+"\n v"+(w-c)+"\n "+(m?"a"+d+","+d+" 0 0 1 "+d+","+-d:"v"+-d+"h"+d)+"\nz").split("\n").join(""));return _?r.createElement(r.Fragment,null,_({path:z})):r.createElement("path",a({ref:x,className:o()("visx-bar-rounded",k),d:z},F))}},23908:(e,t,n)=>{"use strict";n.d(t,{w:()=>c});var r=n(6029),i=n(19889),o=n(21938),s=n(49146),a=n(61400),l=n(45460),u=n(2241);let c=(0,l.R)(function(e,t){let n=(0,a.$c)({...e,ref:t}),l=(0,s.e)(),c=(0,i.H2)({display:"flex",...l.tablist});return(0,r.jsx)(u.B.div,{...n,className:(0,o.cx)("chakra-tabs__tablist",e.className),__css:c})});c.displayName="TabList"},23995:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(99772),i=n(51645),o=n(94916),s=n(61036),a=n(115),l=n(64816);function u(e,t){return(0,l.A)(1,arguments),function(e,t){var n,u,c,h,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,l.A)(2,arguments);var p=d.locale||a.A;if(!p.formatDistance)throw RangeError("locale must contain localize.formatDistance property");var f=(0,i.A)(e,t);if(isNaN(f))throw RangeError("Invalid time value");var m=(0,s.A)(d);m.addSuffix=!!d.addSuffix,m.comparison=f,f>0?(n=(0,o.A)(t),u=(0,o.A)(e)):(n=(0,o.A)(e),u=(0,o.A)(t));var g=null==d.roundingMethod?"round":String(d.roundingMethod);if("floor"===g)c=Math.floor;else if("ceil"===g)c=Math.ceil;else if("round"===g)c=Math.round;else throw RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var y=u.getTime()-n.getTime(),v=y/6e4,b=(y-((0,r.A)(u)-(0,r.A)(n)))/6e4;if("second"===(h=null==d.unit?v<1?"second":v<60?"minute":v<1440?"hour":b<43200?"day":b<525600?"month":"year":String(d.unit))){var w=c(y/1e3);return p.formatDistance("xSeconds",w,m)}if("minute"===h){var _=c(v);return p.formatDistance("xMinutes",_,m)}if("hour"===h){var k=c(v/60);return p.formatDistance("xHours",k,m)}if("day"===h){var x=c(b/1440);return p.formatDistance("xDays",x,m)}if("month"===h){var E=c(b/43200);return 12===E&&"month"!==d.unit?p.formatDistance("xYears",1,m):p.formatDistance("xMonths",E,m)}else if("year"===h){var S=c(b/525600);return p.formatDistance("xYears",S,m)}throw RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(e,Date.now(),t)}},24170:(e,t,n)=>{e.exports=n(83367)},25211:(e,t,n)=>{"use strict";t.__esModule=!0,t.STACK_ORDER_NAMES=t.STACK_ORDERS=void 0,t.default=function(e){return e&&i[e]||i.none};var r=n(35070),i={ascending:r.stackOrderAscending,descending:r.stackOrderDescending,insideout:r.stackOrderInsideOut,none:r.stackOrderNone,reverse:r.stackOrderReverse};t.STACK_ORDERS=i,t.STACK_ORDER_NAMES=Object.keys(i)},25256:(e,t,n)=>{var r=n(66678),i=n(98888),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var a=null==n?0:i(n);return a<0&&(a=o(s+a,0)),r(e,t,a)}},25650:(e,t,n)=>{var r=n(97722),i=n(86891);e.exports=function(e){return i(r(e))}},25725:(e,t,n)=>{var r=n(81648),i=n(78492),o=n(68988),s=n(91544);e.exports=function(e,t){return function(n,a){var l=s(n)?r:i,u=t?t():{};return l(n,e,o(a,2),u)}}},25927:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(55729),i=["tooltipOpen"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,i);return o({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[s]),l=(0,r.useCallback)(function(){return s({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[s]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:s,showTooltip:a,hideTooltip:l}}},26387:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{"use strict";n.d(t,{u:()=>u});var r=n(6029),i=n(5858),o=n(21938),s=n(45460),a=n(8527),l=n(2241);let u=(0,s.R)(function(e,t){let n=(0,a.V)("Kbd",e),{className:s,...u}=(0,i.M)(e);return(0,r.jsx)(l.B.kbd,{ref:t,className:(0,o.cx)("chakra-kbd",s),...u,__css:{fontFamily:"mono",...n}})});u.displayName="Kbd"},26658:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(55729),i=n(75828),o=n.n(i),s=["className","innerRef"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.createElement("rect",a({ref:n,className:o()("visx-bar",t)},i))}},26744:(e,t,n)=>{"use strict";n.d(t,{cP:()=>r.cP,er:()=>s}),n(67368),n(36152);var r=n(11041);n(53488),n(76511);var i=n(55729);n(65668);var o=n(89985);function s(){return(0,i.useContext)(o.W)}n(6915),n(9197),n(52032),n(27696),n(58622)},26919:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,a:()=>o});var r=n(87720);let i=!1;function o(e,t){return{...e,...t,className:r(e.className,t.className),STYLE:function(e,t){if(!("STYLE"in e)||"string"!=typeof e.STYLE){if(!("STYLE"in t)||"string"!=typeof t.STYLE)return;return t.STYLE}return"STYLE"in t&&"string"==typeof t.STYLE?`${e.STYLE.match(/;\s*$/)?e.STYLE:`${e.STYLE};`} ${t.STYLE}`:e.STYLE}(e,t),style:{...e.style,...t.style}}}function s(e){!function(){if(i)return;let e=console.error;console.error=function(){for(var t=arguments.length,n=Array(t),r=0;r0&&(t.step=r);break}case"disabled":t.disabled=null!=r;break;case"rows":Number.isNaN(parseInt(r,10))||(t.rows=r);break;default:t[n]=r}return t}},27133:(e,t,n)=>{"use strict";e.exports=n(85596)},27473:(e,t,n)=>{"use strict";n.d(t,{HM:()=>a,JF:()=>l,bN:()=>c,yU:()=>u});var r=n(45286),i=n(55729),o=n(48517),s=n(74251);function a(e){(0,o.V1)(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var l=(0,r.Cl)((0,r.Cl)({},s.JF),{textComponent:i.Fragment});function u(e){return function(t){return e(i.Children.toArray(t))}}function c(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o{"use strict";n.d(t,{z:()=>o});var r=n(55729),i=n(9197);function o(){let[e,t]=(0,r.useState)(!1);return(0,i.A)(()=>{t(!0)},()=>{t(!1)}),e}},28816:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=e=>()=>e},29008:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,fX:()=>s});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var r=n(84536);e.exports=n(15565)(function(e,t){return null==e?{}:r(e,t)})},29768:(e,t,n)=>{"use strict";n.d(t,{Tr:()=>a});var r=n(6029),i=n(41960),o=n(45460),s=n(2241);let a=(0,o.R)((e,t)=>{let n=(0,i.k)();return(0,r.jsx)(s.B.tr,{...e,ref:t,__css:n.tr})})},30227:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6855),i=n(509),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;nr-o?(l[1]>a.top||rl[1])&&(u[1]=1),a.left>n-o?(l[0]>a.left||nl[0])&&(u[0]=1),(!!u[0]||!!u[1])&&this._continueDrag(s(s({},t),{direction:u,inputEvent:e,isDrag:!0}))}},r.checkScroll=function(e){var t=this;if(this._isWait)return!1;var n=e.prevScrollPos,r=void 0===n?this._prevScrollPos:n,i=e.direction,o=e.throttleTime,s=void 0===o?0:o,a=e.inputEvent,l=e.isDrag,u=this._getScrollPosition(i||[0,0],e),c=u[0]-r[0],h=u[1]-r[1],d=i||[c?Math.abs(c)/c:0,h?Math.abs(h)/h:0];return this._prevScrollPos=u,this._lock=!1,(!!c||!!h)&&(this.emit("move",{offsetX:d[0]?c:0,offsetY:d[1]?h:0,inputEvent:a}),s&&l&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){t._continueDrag(e)},s)),!0)},r.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},r._getScrollPosition=function(e,t){var n=t.container,r=t.getScrollPosition;return(void 0===r?function(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}:r)({container:l(n),direction:e})},r._continueDrag=function(e){var t,n=this,r=e.container,o=e.direction,a=e.throttleTime,u=e.useScroll,c=e.isDrag,h=e.inputEvent;if(this._flag&&(!c||!this._isWait)){var d=(0,i.tB)(),p=Math.max(a+this._prevTime-d,0);if(p>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){n._continueDrag(e)},p),!1;this._prevTime=d;var f=this._getScrollPosition(o,e);this._prevScrollPos=f,c&&(this._isWait=!0),u||(this._lock=!0);var m={container:l(r),direction:o,inputEvent:h};return null==(t=e.requestScroll)||t.call(e,m),this.emit("scroll",m),this._isWait=!1,u||this.checkScroll(s(s({},e),{prevScrollPos:f,direction:o,inputEvent:h}))}},r._registerScrollEvent=function(e){this._unregisterScrollEvent();var t=e.checkScrollEvent;if(t){var n=l(e.container);!0===t&&(n===document.body||n===document.documentElement)?this._unregister=a(window,this._onScroll):this._unregister=(!0===t?a:t)(n,this._onScroll)}},r._unregisterScrollEvent=function(){var e;null==(e=this._unregister)||e.call(this),this._unregister=null},n}(r.A)},30361:(e,t,n)=>{var r=n(96863),i=n(83139),o=n(91544);e.exports=function(e){return(o(e)?r:i)(e)}},30667:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});let r=(0,n(55729).createContext)(null)},30709:(e,t,n)=>{"use strict";n.d(t,{l:()=>u});var r=n(6029),i=n(21938),o=n(46980),s=n(785),a=n(45460),l=n(2241);let u=(0,a.R)(function(e,t){let{getPreviewProps:n}=(0,o.nE)(),a=(0,o.Gn)(),u=n(e,t),c=(0,i.cx)("chakra-editable__preview",e.className);return(0,r.jsx)(l.B.span,{...u,__css:{cursor:"text",display:"inline-block",...s.s,...a.preview},className:c})});u.displayName="EditablePreview"},30928:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var r=n(6029),i=n(21938),o=n(88990),s=n(666),a=n(42732);function l(e){let{isOpen:t,isDisabled:n}=(0,o.AV)(),{reduceMotion:l}=(0,s.Dr)(),u=(0,i.cx)("chakra-accordion__icon",e.className),c={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:l?void 0:"transform 0.2s",transformOrigin:"center",...(0,o.EF)().icon};return(0,r.jsx)(a.I,{viewBox:"0 0 24 24","aria-hidden":!0,className:u,__css:c,...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}l.displayName="AccordionIcon"},31026:(e,t,n)=>{"use strict";var r=n(32938),i=n(68659),o=n(64600),s=n(7815),a=n(3913);function l(e){if(!(this instanceof l))return new l(e);var t=r(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}l.from=function(e){if("string"==typeof e)return new l(e);if(e instanceof l){var t=new l("");return t.err=e.err,t.segments=e.segments.map(function(e){return e.slice()}),t.__stack=e.__stack.map(function(e){return o().matrix(e.toArray())}),t}throw Error("SvgPath.from: invalid param type "+e)},l.prototype.__matrix=function(e){var t,n=this;e.queue.length&&this.iterate(function(r,i,o,s){var l,u,c,h;switch(r[0]){case"v":u=0===(l=e.calc(0,r[1],!0))[0]?["v",l[1]]:["l",l[0],l[1]];break;case"V":u=(l=e.calc(o,r[1],!1))[0]===e.calc(o,s,!1)[0]?["V",l[1]]:["L",l[0],l[1]];break;case"h":u=0===(l=e.calc(r[1],0,!0))[1]?["h",l[0]]:["l",l[0],l[1]];break;case"H":u=(l=e.calc(r[1],s,!1))[1]===e.calc(o,s,!1)[1]?["H",l[0]]:["L",l[0],l[1]];break;case"a":case"A":var d=e.toArray(),p=a(r[1],r[2],r[3]).transform(d);if(d[0]*d[3]-d[1]*d[2]<0&&(r[5]=r[5]?"0":"1"),l=e.calc(r[6],r[7],"a"===r[0]),"A"===r[0]&&r[6]===o&&r[7]===s||"a"===r[0]&&0===r[6]&&0===r[7]){u=["a"===r[0]?"l":"L",l[0],l[1]];break}u=p.isDegenerate()?["a"===r[0]?"l":"L",l[0],l[1]]:[r[0],p.rx,p.ry,p.ax,r[4],r[5],l[0],l[1]];break;case"m":h=i>0,u=["m",(l=e.calc(r[1],r[2],h))[0],l[1]];break;default:for(t=1,u=[c=r[0]],h=c.toLowerCase()===c;t=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},l.prototype.toString=function(){var e="",t="",n=!1;this.__evaluateStack();for(var r=0,i=this.segments.length;r=0&&(e+=" "):l>=0&&(e+=" "),e+=l}t=s}return e},l.prototype.translate=function(e,t){return this.__stack.push(o().translate(e,t||0)),this},l.prototype.scale=function(e,t){return this.__stack.push(o().scale(e,t||0===t?t:e)),this},l.prototype.rotate=function(e,t,n){return this.__stack.push(o().rotate(e,t||0,n||0)),this},l.prototype.skewX=function(e){return this.__stack.push(o().skewX(e)),this},l.prototype.skewY=function(e){return this.__stack.push(o().skewY(e)),this},l.prototype.matrix=function(e){return this.__stack.push(o().matrix(e)),this},l.prototype.transform=function(e){return e.trim()&&this.__stack.push(i(e)),this},l.prototype.round=function(e){var t,n=0,r=0,i=0,o=0;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(s){var a=s[0].toLowerCase()===s[0];switch(s[0]){case"H":case"h":a&&(s[1]+=i),i=s[1]-s[1].toFixed(e),s[1]=+s[1].toFixed(e);return;case"V":case"v":a&&(s[1]+=o),o=s[1]-s[1].toFixed(e),s[1]=+s[1].toFixed(e);return;case"Z":case"z":i=n,o=r;return;case"M":case"m":a&&(s[1]+=i,s[2]+=o),i=s[1]-s[1].toFixed(e),o=s[2]-s[2].toFixed(e),n=i,r=o,s[1]=+s[1].toFixed(e),s[2]=+s[2].toFixed(e);return;case"A":case"a":a&&(s[6]+=i,s[7]+=o),i=s[6]-s[6].toFixed(e),o=s[7]-s[7].toFixed(e),s[1]=+s[1].toFixed(e),s[2]=+s[2].toFixed(e),s[3]=+s[3].toFixed(e+2),s[6]=+s[6].toFixed(e),s[7]=+s[7].toFixed(e);return;default:t=s.length,a&&(s[t-2]+=i,s[t-1]+=o),i=s[t-2]-s[t-2].toFixed(e),o=s[t-1]-s[t-1].toFixed(e),s.forEach(function(t,n){n&&(s[n]=+s[n].toFixed(e))});return}}),this},l.prototype.iterate=function(e,t){var n,r,i,o=this.segments,s={},a=!1,l=0,u=0,c=0,h=0;if(t||this.__evaluateStack(),o.forEach(function(t,n){var r=e(t,n,l,u);Array.isArray(r)&&(s[n]=r,a=!0);var i=t[0]===t[0].toLowerCase();switch(t[0]){case"m":case"M":l=t[1]+(i?l:0),u=t[2]+(i?u:0),c=l,h=u;return;case"h":case"H":l=t[1]+(i?l:0);return;case"v":case"V":u=t[1]+(i?u:0);return;case"z":case"Z":l=c,u=h;return;default:l=t[t.length-2]+(i?l:0),u=t[t.length-1]+(i?u:0)}}),!a)return this;for(n=0,i=[];n{"use strict";n.d(t,{B8:()=>p,Xy:()=>f,ck:()=>m});var r=n(6029),i=n(5858),o=n(54578),s=n(97646),a=n(42732),l=n(45460),u=n(8527),c=n(2241);let[h,d]=(0,o.q)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=(0,l.R)(function(e,t){let n=(0,u.o)("List",e),{children:o,styleType:a="none",stylePosition:l,spacing:d,...p}=(0,i.M)(e),f=(0,s.a)(o);return(0,r.jsx)(h,{value:n,children:(0,r.jsx)(c.B.ul,{ref:t,listStyleType:a,listStylePosition:l,role:"list",__css:{...n.container,...d?{"& > *:not(style) ~ *:not(style)":{mt:d}}:{}},...p,children:f})})});p.displayName="List",(0,l.R)((e,t)=>{let{as:n,...i}=e;return(0,r.jsx)(p,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i})}).displayName="OrderedList";let f=(0,l.R)(function(e,t){let{as:n,...i}=e;return(0,r.jsx)(p,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...i})});f.displayName="UnorderedList";let m=(0,l.R)(function(e,t){let n=d();return(0,r.jsx)(c.B.li,{ref:t,...e,__css:n.item})});m.displayName="ListItem",(0,l.R)(function(e,t){let n=d();return(0,r.jsx)(a.I,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"},31269:(e,t,n)=>{"use strict";function r(e){for(var t=[],n=1;ns,KR:()=>o,RI:()=>a,SS:()=>i,T6:()=>r})},31617:(e,t,n)=>{"use strict";n.d(t,{A:()=>p,U:()=>d});var r=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,t){var n=this.keys,r=this.values,i=n.indexOf(e),o=-1===i?n.length:i;n[o]=e,r[o]=t},e}(),i=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,t){this.object[e]=t},e}(),o="function"==typeof Map,s=function(){function e(){}var t=e.prototype;return t.connect=function(e,t){this.prev=e,this.next=t,e&&(e.next=this),t&&(t.prev=this)},t.disconnect=function(){var e=this.prev,t=this.next;e&&(e.next=t),t&&(t.prev=e)},t.getIndex=function(){for(var e=this,t=-1;e;)e=e.prev,++t;return t},e}(),a=function(){function e(e,t,n,r,i,o,s,a){this.prevList=e,this.list=t,this.added=n,this.removed=r,this.changed=i,this.maintained=o,this.changedBeforeAdded=s,this.fixed=a}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var e,t,n,r,i=(e=this.changedBeforeAdded,t=this.fixed,n=[],r=[],e.forEach(function(e){var t=e[0],i=e[1],o=new s;n[t]=o,r[i]=o}),n.forEach(function(e,t){e.connect(n[t-1])}),e.filter(function(e,n){return!t[n]}).map(function(e,t){var i=e[0],o=e[1];if(i===o)return[0,0];var s=n[i],a=r[o-1],l=s.getIndex();return s.disconnect(),a?s.connect(a,a.next):s.connect(void 0,n[0]),[l,s.getIndex()]})),o=this.changed,a=[];this.cacheOrdered=i.filter(function(e,t){var n=e[0],r=e[1],i=o[t],s=i[0],l=i[1];if(n!==r)return a.push([s,l]),!0}),this.cachePureChanged=a},e}();function l(e,t,n){var s=o?Map:n?i:r,l=n||function(e){return e},u=[],c=[],h=[],d=e.map(l),p=t.map(l),f=new s,m=new s,g=[],y=[],v={},b=[],w=0,_=0;return d.forEach(function(e,t){f.set(e,t)}),p.forEach(function(e,t){m.set(e,t)}),d.forEach(function(e,t){var n=m.get(e);void 0===n?(++_,c.push(t)):v[n]=_}),p.forEach(function(e,t){var n=f.get(e);void 0===n?(u.push(t),++w):(h.push([n,t]),_=v[t]||0,g.push([n-_,t-w]),y.push(t===n),n!==t&&b.push([n,t]))}),c.reverse(),new a(e,t,u,c,b,h,g,y)}var u=function(){function e(e,t){void 0===e&&(e=[]),this.findKeyCallback=t,this.list=[].slice.call(e)}return e.prototype.update=function(e){var t=[].slice.call(e),n=l(this.list,t,this.findKeyCallback);return this.list=t,n},e}(),c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},h="function"==typeof Map?void 0:function(){var e=0;return function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++e)}}();function d(e,t){return l(e,t,h)}let p=function(e){function t(){this.constructor=n}function n(t){return void 0===t&&(t=[]),e.call(this,t,h)||this}return c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),n}(u)},31808:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(93344);function i(){return fetch(...arguments).catch(e=>{if("AbortError"===e.name)throw e;throw new r.A(e)})}},31831:(e,t,n)=>{"use strict";let r;function i(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function o(){return r||(r=function(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=i(n);return(e,n)=>r.then(r=>n(r.transaction(t,e).objectStore(t)))}("keyval-store","keyval")),r}function s(e,t=o()){return t("readonly",t=>i(t.get(e)))}function a(e,t,n=o()){return n("readwrite",n=>(n.put(t,e),i(n.transaction)))}n.d(t,{Jt:()=>s,hZ:()=>a})},32062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},32267:(e,t,n)=>{"use strict";let r,i;n.d(t,{P2:()=>p});let o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,u=new WeakMap,c={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("objectStoreNames"===t)return e.objectStoreNames||a.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return h(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function h(e){if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(h(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&o.set(t,e)}).catch(()=>{}),u.set(t,e),t}if(l.has(e))return l.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(d(this),t),h(o.get(this))}:function(...t){return h(e.apply(d(this),t))}:function(t,...n){let r=e.call(d(this),t,...n);return a.set(r,t.sort?t.sort():[t]),h(r)};return e instanceof IDBTransaction&&function(e){if(s.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});s.set(e,t)}(e),(r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,c):e}(e);return t!==e&&(l.set(e,t),u.set(t,e)),t}let d=e=>u.get(e);function p(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=h(s);return r&&s.addEventListener("upgradeneeded",e=>{r(h(s.result),e.oldVersion,e.newVersion,h(s.transaction))}),n&&s.addEventListener("blocked",()=>n()),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",()=>i())}).catch(()=>{}),a}let f=["get","getKey","getAll","getAllKeys","count"],m=["put","add","delete","clear"],g=new Map;function y(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(g.get(t))return g.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=m.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||f.includes(n)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&o.done]))[0]};return g.set(t,o),o}c=(e=>({...e,get:(t,n,r)=>y(t,n)||e.get(t,n,r),has:(t,n)=>!!y(t,n)||e.has(t,n)}))(c)},32380:(e,t,n)=>{"use strict";n.d(t,{tN:()=>i});var r=n(60122);let i=e=>{let t=r.Mj.getState(e).undoManager;if(null!=t)return t.undo(),!0}},32705:(e,t,n)=>{"use strict";n.d(t,{k:()=>m});var r=n(6029),i=n(5858),o=n(54578),s=n(83004);(0,s.i7)({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),(0,s.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});let a=(0,s.i7)({"0%":{left:"-40%"},"100%":{left:"100%"}}),l=(0,s.i7)({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});var u=n(45460),c=n(2241),h=n(8527);let[d,p]=(0,o.q)({name:"ProgressStylesContext",errorMessage:"useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),f=(0,u.R)((e,t)=>{let{min:n,max:i,value:o,isIndeterminate:s,role:a,...l}=e,u=function(e){let{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:s,role:a="progressbar"}=e,l=(t-n)*100/(r-n);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof o?o(t,l):i})(),role:a},percent:l,value:t}}({value:o,min:n,max:i,isIndeterminate:s,role:a}),h={height:"100%",...p().filledTrack};return(0,r.jsx)(c.B.div,{ref:t,style:{width:`${u.percent}%`,...l.style},...u.bind,...l,__css:h})}),m=(0,u.R)((e,t)=>{let{value:n,min:o=0,max:s=100,hasStripe:u,isAnimated:p,children:m,borderRadius:g,isIndeterminate:y,"aria-label":v,"aria-labelledby":b,"aria-valuetext":w,title:_,role:k,...x}=(0,i.M)(e),E=(0,h.o)("Progress",e),S=g??E.track?.borderRadius,A={animation:`${l} 1s linear infinite`},T={...!y&&u&&p&&A,...y&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${a} 1s ease infinite normal none running`}},C={overflow:"hidden",position:"relative",...E.track};return(0,r.jsx)(c.B.div,{ref:t,borderRadius:S,__css:C,...x,children:(0,r.jsxs)(d,{value:E,children:[(0,r.jsx)(f,{"aria-label":v,"aria-labelledby":b,"aria-valuetext":w,min:o,max:s,value:n,isIndeterminate:y,css:T,borderRadius:S,title:_,role:k}),m]})})});m.displayName="Progress"},32844:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(6029),i=n(5858),o=n(21938),s=n(55729),a=n(88990),l=n(666),u=n(45460),c=n(8527),h=n(2241);let d=(0,u.R)(function({children:e,reduceMotion:t,...n},u){let d=(0,c.o)("Accordion",n),p=(0,i.M)(n),{htmlProps:f,descendants:m,...g}=(0,l.O3)(p),y=(0,s.useMemo)(()=>({...g,reduceMotion:!!t}),[g,t]);return(0,r.jsx)(a.C3,{value:m,children:(0,r.jsx)(l.If,{value:y,children:(0,r.jsx)(a.gm,{value:d,children:(0,r.jsx)(h.B.div,{ref:u,...f,className:(0,o.cx)("chakra-accordion",n.className),__css:d.root,children:e})})})})});d.displayName="Accordion"},32938:e=>{"use strict";var t={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},n=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function r(e){return e>=48&&e<=57}function i(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function o(e){for(var t;e.index=5760&&n.indexOf(t)>=0);)e.index++}function s(e){var n,r=(n=e.path[e.segmentStart]).toLowerCase(),i=e.data;if("m"===r&&i.length>2&&(e.result.push([n,i[0],i[1]]),i=i.slice(2),r="l",n="m"===n?"l":"L"),"r"===r)e.result.push([n].concat(i));else for(;i.length>=t[r]&&(e.result.push([n].concat(i.splice(0,t[r]))),t[r]););}e.exports=function(e){var n=new i(e),a=n.max;for(o(n);n.index0;c--){if(a&&(3===c||4===c)?!function(e){var t=e.path.charCodeAt(e.index);if(48===t){e.param=0,e.index++;return}if(49===t){e.param=1,e.index++;return}e.err="SvgPath: arc flag can be 0 or 1 only (at pos "+e.index+")"}(e):!function(e){var t,n=e.index,i=n,o=e.max,s=!1,a=!1,l=!1,u=!1;if(i>=o){e.err="SvgPath: missed param (at pos "+i+")";return}if((43===(t=e.path.charCodeAt(i))||45===t)&&(t=++i=e.max||!((n=e.path.charCodeAt(e.index))>=48&&n<=57||43===n||45===n||46===n)))break}s(e)}(n);return n.result.length&&(0>"mM".indexOf(n.result[0][0])?(n.err="SvgPath: string should start with `M` or `m`",n.result=[]):n.result[0][0]="M"),{err:n.err,segments:n.result}}},33547:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xf1o",other:"alrededor de {{count}} a\xf1os"},xYears:{one:"1 a\xf1o",other:"{{count}} a\xf1os"},overXYears:{one:"m\xe1s de 1 a\xf1o",other:"m\xe1s de {{count}} a\xf1os"},almostXYears:{one:"casi 1 a\xf1o",other:"casi {{count}} a\xf1os"}},i=n(81716),o={date:(0,i.A)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'el' eeee 'pasado a la' LT",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xf1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},a={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xf1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},l=n(93730),u={ordinalNumber:function(e){return Number(e)+"\xba"},era:(0,l.A)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xe9s de cristo"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sa"],abbreviated:["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],wide:["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},c=n(89252),h=n(25696);let d={code:"es",formatDistance:function(e,t,n){var i;if(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)if(n.comparison>0)return"en "+i;else return"hace "+i;return i},formatLong:o,formatRelative:function(e,t,n,r){return 1!==t.getUTCHours()?a[e]:s[e]},localize:u,match:{ordinalNumber:(0,c.A)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,h.A)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:(0,h.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,h.A)({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:(0,h.A)({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|sa)/i,abbreviated:/^(dom|lun|mar|mie|jue|vie|sab)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,h.A)({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},34035:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(94916),i=n(64816);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return n.getTime()-o.getTime()}},34787:(e,t,n)=>{"use strict";function r(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}n.d(t,{xI:()=>B});let i=r(),o=/[&<>"']/,s=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},c=e=>u[e];function h(e,t){if(t){if(o.test(e))return e.replace(s,c)}else if(a.test(e))return e.replace(l,c);return e}let d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function p(e){return e.replace(d,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}let f=/(^|[^\[])\^/g;function m(e,t){e="string"==typeof e?e:e.source,t=t||"";let n={replace:(t,r)=>(r=(r=r.source||r).replace(f,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}let g=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,n){if(e){let e;try{e=decodeURIComponent(p(n)).replace(g,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!y.test(n)&&(n=function(e,t){b[" "+e]||(w.test(e)?b[" "+e]=e+"/":b[" "+e]=A(e,"/",!0));let n=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(_,"$1")+t:"/"!==t.charAt(0)?e+t:n?t:e.replace(k,"$1")+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}let b={},w=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/,x={exec:function(){}};function E(e){let t=1,n,r;for(;t{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function O(e,t,n,r){let i=t.href,o=t.title?h(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;let e={type:"link",raw:n,href:i,title:o,text:s,tokens:r.inlineTokens(s,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:h(s)}}class P{constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:A(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t){let n=e.match(/^(\s+)(?:```)/);if(null===n)return t;let r=n[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=A(e,"#");this.options.pedantic?e=t.trim():(!t||/ $/.test(t))&&(e=t.trim())}let n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,o,s,a,l,u,c,h,d,p,f=t[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=m?f:"[*+-]");let y=RegExp(`^( {0,3}${f})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,!(!(t=y.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),u=t[2].split("\n",1)[0],c=e.split("\n",1)[0],this.options.pedantic?(o=2,d=u.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,d=u.slice(o),o+=t[1].length),a=!1,!u&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),p=!0),!p){let t=RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),s=RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(u=h=e.split("\n",1)[0],this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(i.test(u)||s.test(u)||t.test(u)||r.test(e)));){if(u.search(/[^ ]/)>=o||!u.trim())d+="\n"+u.slice(o);else if(a)break;else d+="\n"+u;a||u.trim()||(a=!0),n+=h+"\n",e=e.substring(h.length+1)}}!g.loose&&(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d))&&(i="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:d}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=d.trimRight(),g.raw=g.raw.trimRight();let v=g.items.length;for(s=0;s"space"===e.type),t=e.every(e=>{let t=e.raw.split(""),n=0;for(let e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1});!g.loose&&e.length&&t&&(g.loose=!0,g.items[s].loose=!0)}return g}}html(e){let t=this.rules.block.html.exec(e);if(t){let e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):h(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){let t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){let t=this.rules.block.table.exec(e);if(t){let e={type:"table",header:S(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){let n,r,i,o;e.raw=t[0];let s=e.align.length;for(n=0;n({text:e}));for(r=0,s=e.header.length;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):h(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;let t=A(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=e.length,r=0,i=0;for(;i-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),O(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(!(e=t[e.toLowerCase()])||!e.href){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return O(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r||r[3]&&n.match(/[\p{L}\p{N}]/u))return;let i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){let n=r[0].length-1,i,o,s=n,a=0,l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(o=i.length,r[3]||r[4]){s+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){a+=o;continue}if((s-=o)>0)continue;if(Math.min(n,o=Math.min(o,o+s+a))%2){let t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}let t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," "),n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=h(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){let n=this.rules.inline.autolink.exec(e);if(n){let e,r;return r="@"===n[2]?"mailto:"+(e=h(this.options.mangle?t(n[1]):n[1])):e=h(n[1]),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])r="mailto:"+(e=h(this.options.mangle?t(n[0]):n[0]));else{let t;do t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(t!==n[0]);e=h(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){let n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):h(n[0]):n[0]:h(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}let M={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:x,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};M._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,M._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,M.def=m(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.listItemStart=m(/^( *)(bull) */).replace("bull",M.bullet).getRegex(),M.list=m(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",M._comment=/|$)/,M.html=m(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=m(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.blockquote=m(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=E({},M),M.gfm=E({},M.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.table=m(M.gfm.table).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.gfm.paragraph=m(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",M.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.pedantic=E({},M.normal,{html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:x,paragraph:m(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});let R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:x,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:x,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),t+="&#"+r+";";return t}R._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",R.punctuation=m(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,R.escapedEmSt=/\\\*|\\_/g,R._comment=m(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),R.emStrong.lDelim=m(R.emStrong.lDelim).replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimAst=m(R.emStrong.rDelimAst,"g").replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimUnd=m(R.emStrong.rDelimUnd,"g").replace(/punct/g,R._punctuation).getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,R.autolink=m(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=m(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=m(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=m(R.reflink).replace("label",R._label).replace("ref",M._label).getRegex(),R.nolink=m(R.nolink).replace("ref",M._label).getRegex(),R.reflinkSearch=m(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=E({},R),R.pedantic=E({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=E({},R.normal,{escape:m(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\t+" ".repeat(n.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if((n=this.tokenizer.fences(e))||(n=this.tokenizer.heading(e))||(n=this.tokenizer.hr(e))||(n=this.tokenizer.blockquote(e))||(n=this.tokenizer.list(e))||(n=this.tokenizer.html(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if((n=this.tokenizer.table(e))||(n=this.tokenizer.lheading(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(function(e){"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,o,s,a,l=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+C("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+C("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,l,a))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e,I))||!this.state.inLink&&(n=this.tokenizer.url(e,I))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(function(e){"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i,N)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}}class L{constructor(e){this.options=e||i}code(e,t,n){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return(e=e.replace(/\n$/,"")+"\n",r)?'
'+(n?e:h(e,!0))+"
\n":"
"+(n?e:h(e,!0))+"
\n"}blockquote(e){return`
${e}
`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){let i=this.options.headerPrefix+r.slug(n);return`${e} `}return`${e} `}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){let r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • `}checkbox(e){return" "}paragraph(e){return`

    ${e}

    `}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return` ${e} `}tablecell(e,t){let n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+` `}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return n;let r='"}image(e,t,n){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">"}text(e){return e}}class j{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class F{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do n=e+"-"+ ++r;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){let n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class z{constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new L,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j,this.slugger=new F}static parse(e,t){return new z(t).parse(e)}static parseInline(e,t){return new z(t).parseInline(e)}parse(e,t=!0){let n="",r,i,o,s,a,l,u,c,h,d,f,m,g,y,v,b,w,_,k,x=e.length;for(r=0;r0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=_+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=_+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:_}):y+=_),y+=this.parse(v.tokens,g),h+=this.renderer.listitem(y,w,b);n+=this.renderer.list(h,f,m);continue;case"html":n+=this.renderer.html(d.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(h=d.tokens?this.parseInline(d.tokens):d.text;r+1{i(e.text,e.lang,function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--s&&o()})},0))}),void(0===s&&o())}try{let n=D.lex(e,t);return t.walkTokens&&B.walkTokens(n,t.walkTokens),z.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+h(e.message+"",!0)+"
    ";throw e}}B.options=B.setOptions=function(e){return E(B.defaults,e),i=B.defaults,B},B.getDefaults=r,B.defaults=i,B.use=function(...e){let t,n=E({},...e),r=B.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(e=>{if(e.extensions&&(t=!0,e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if(e.renderer){let t=r.renderers?r.renderers[e.name]:null;t?r.renderers[e.name]=function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:r.renderers[e.name]=e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");r[e.level]?r[e.level].unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}e.childTokens&&(r.childTokens[e.name]=e.childTokens)})),e.renderer){let t=B.defaults.renderer||new L;for(let n in e.renderer){let r=t[n];t[n]=(...i)=>{let o=e.renderer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.renderer=t}if(e.tokenizer){let t=B.defaults.tokenizer||new P;for(let n in e.tokenizer){let r=t[n];t[n]=(...i)=>{let o=e.tokenizer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.tokenizer=t}if(e.walkTokens){let t=B.defaults.walkTokens;n.walkTokens=function(n){e.walkTokens.call(this,n),t&&t.call(this,n)}}t&&(n.extensions=r),B.setOptions(n)})},B.walkTokens=function(e,t){for(let n of e)switch(t.call(B,n),n.type){case"table":for(let e of n.header)B.walkTokens(e.tokens,t);for(let e of n.rows)for(let n of e)B.walkTokens(n.tokens,t);break;case"list":B.walkTokens(n.items,t);break;default:B.defaults.extensions&&B.defaults.extensions.childTokens&&B.defaults.extensions.childTokens[n.type]?B.defaults.extensions.childTokens[n.type].forEach(function(e){B.walkTokens(n[e],t)}):n.tokens&&B.walkTokens(n.tokens,t)}},B.parseInline=function(e,t){if(null==e)throw Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");T(t=E({},B.defaults,t||{}));try{let n=D.lexInline(e,t);return t.walkTokens&&B.walkTokens(n,t.walkTokens),z.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+h(e.message+"",!0)+"
    ";throw e}},B.Parser=z,B.parser=z.parse,B.Renderer=L,B.TextRenderer=j,B.Lexer=D,B.lexer=D.lex,B.Tokenizer=P,B.Slugger=F,B.parse=B,B.options,B.setOptions,B.use,B.walkTokens,B.parseInline,z.parse,D.lex},35070:(e,t,n)=>{"use strict";n.r(t),n.d(t,{arc:()=>r.A,area:()=>i.A,areaRadial:()=>p,curveBasis:()=>G,curveBasisClosed:()=>J,curveBasisOpen:()=>ee,curveBundle:()=>en,curveCardinal:()=>er.Ay,curveCardinalClosed:()=>eo,curveCardinalOpen:()=>ea,curveCatmullRom:()=>el.A,curveCatmullRomClosed:()=>ec,curveCatmullRomOpen:()=>ed,curveLinear:()=>a.A,curveLinearClosed:()=>ef,curveMonotoneX:()=>e_,curveMonotoneY:()=>ek,curveNatural:()=>eS,curveStep:()=>eT,curveStepAfter:()=>eO,curveStepBefore:()=>eC,line:()=>o.A,lineRadial:()=>d,linkHorizontal:()=>S,linkRadial:()=>T,linkVertical:()=>A,pie:()=>s.A,pointRadial:()=>f,radialArea:()=>p,radialLine:()=>d,stack:()=>eP.A,stackOffsetDiverging:()=>eR.A,stackOffsetExpand:()=>eM.A,stackOffsetNone:()=>eN.A,stackOffsetSilhouette:()=>eI,stackOffsetWiggle:()=>eD,stackOrderAppearance:()=>ej,stackOrderAscending:()=>ez,stackOrderDescending:()=>eU,stackOrderInsideOut:()=>eH,stackOrderNone:()=>eL.A,stackOrderReverse:()=>e$,symbol:()=>q,symbolCircle:()=>O,symbolCross:()=>P,symbolDiamond:()=>N,symbolSquare:()=>F,symbolStar:()=>j,symbolTriangle:()=>B,symbolWye:()=>W,symbols:()=>V});var r=n(86640),i=n(15905),o=n(16930),s=n(10095),a=n(41777),l=c(a.A);function u(e){this._curve=e}function c(e){function t(t){return new u(e(t))}return t._curve=e,t}function h(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(c(e)):t()._curve},e}function d(){return h((0,o.A)().curve(l))}function p(){var e=(0,i.A)().curve(l),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,s=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return h(n())},delete e.lineX0,e.lineEndAngle=function(){return h(r())},delete e.lineX1,e.lineInnerRadius=function(){return h(o())},delete e.lineY0,e.lineOuterRadius=function(){return h(s())},delete e.lineY1,e.curve=function(e){return arguments.length?t(c(e)):t()._curve},e}function f(e,t){return[(t*=1)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}u.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}};var m=n(47347),g=n(94893),y=n(11116),v=n(67710);function b(e){return e.source}function w(e){return e.target}function _(e){var t=b,n=w,r=v.x,i=v.y,o=null;function s(){var s,a=g.d.call(arguments),l=t.apply(this,a),u=n.apply(this,a);if(o||(o=s=(0,m.A)()),e(o,+r.apply(this,(a[0]=l,a)),+i.apply(this,a),+r.apply(this,(a[0]=u,a)),+i.apply(this,a)),s)return o=null,s+""||null}return s.source=function(e){return arguments.length?(t=e,s):t},s.target=function(e){return arguments.length?(n=e,s):n},s.x=function(e){return arguments.length?(r="function"==typeof e?e:(0,y.A)(+e),s):r},s.y=function(e){return arguments.length?(i="function"==typeof e?e:(0,y.A)(+e),s):i},s.context=function(e){return arguments.length?(o=null==e?null:e,s):o},s}function k(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function x(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function E(e,t,n,r,i){var o=f(t,n),s=f(t,n=(n+i)/2),a=f(r,n),l=f(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(s[0],s[1],a[0],a[1],l[0],l[1])}function S(){return _(k)}function A(){return _(x)}function T(){var e=_(E);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var C=n(1714);let O={draw:function(e,t){var n=Math.sqrt(t/C.pi);e.moveTo(n,0),e.arc(0,0,n,0,C.FA)}},P={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var M=Math.sqrt(1/3),R=2*M;let N={draw:function(e,t){var n=Math.sqrt(t/R),r=n*M;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var I=Math.sin(C.pi/10)/Math.sin(7*C.pi/10),D=Math.sin(C.FA/10)*I,L=-Math.cos(C.FA/10)*I;let j={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=D*n,i=L*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var s=C.FA*o/5,a=Math.cos(s),l=Math.sin(s);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*i,l*r+a*i)}e.closePath()}},F={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var z=Math.sqrt(3);let B={draw:function(e,t){var n=-Math.sqrt(t/(3*z));e.moveTo(0,2*n),e.lineTo(-z*n,-n),e.lineTo(z*n,-n),e.closePath()}};var U=Math.sqrt(3)/2,H=1/Math.sqrt(12),$=(H/2+1)*3;let W={draw:function(e,t){var n=Math.sqrt(t/$),r=n/2,i=n*H,o=n*H+n,s=-r;e.moveTo(r,i),e.lineTo(r,o),e.lineTo(s,o),e.lineTo(-.5*r-U*i,U*r+-.5*i),e.lineTo(-.5*r-U*o,U*r+-.5*o),e.lineTo(-.5*s-U*o,U*s+-.5*o),e.lineTo(-.5*r+U*i,-.5*i-U*r),e.lineTo(-.5*r+U*o,-.5*o-U*r),e.lineTo(-.5*s+U*o,-.5*o-U*s),e.closePath()}};var V=[O,P,N,F,j,B,W];function q(){var e=(0,y.A)(O),t=(0,y.A)(64),n=null;function r(){var r;if(n||(n=r=(0,m.A)()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,y.A)(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,y.A)(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function Y(){}function K(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function X(e){this._context=e}function G(e){return new X(e)}function Z(e){this._context=e}function J(e){return new Z(e)}function Q(e){this._context=e}function ee(e){return new Q(e)}function et(e,t){this._basis=new X(e),this._beta=t}X.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:K(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Z.prototype={areaStart:Y,areaEnd:Y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Q.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},et.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],s=e[n]-i,a=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*s),this._beta*t[l]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let en=function e(t){function n(e){return 1===t?new X(e):new et(e,t)}return n.beta=function(t){return e(+t)},n}(.85);var er=n(98664);function ei(e,t){this._context=e,this._k=(1-t)/6}ei.prototype={areaStart:Y,areaEnd:Y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,er.zx)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let eo=function e(t){function n(e){return new ei(e,t)}return n.tension=function(t){return e(+t)},n}(0);function es(e,t){this._context=e,this._k=(1-t)/6}es.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,er.zx)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ea=function e(t){function n(e){return new es(e,t)}return n.tension=function(t){return e(+t)},n}(0);var el=n(43740);function eu(e,t){this._context=e,this._alpha=t}eu.prototype={areaStart:Y,areaEnd:Y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,el.z)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ec=function e(t){function n(e){return t?new eu(e,t):new ei(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function eh(e,t){this._context=e,this._alpha=t}eh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,el.z)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ed=function e(t){function n(e){return t?new eh(e,t):new es(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ep(e){this._context=e}function ef(e){return new ep(e)}function em(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(s<0?-1:1))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs((o*i+s*r)/(r+i)))||0}function eg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ey(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function ev(e){this._context=e}function eb(e){this._context=new ew(e)}function ew(e){this._context=e}function e_(e){return new ev(e)}function ek(e){return new eb(e)}function ex(e){this._context=e}function eE(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),s=Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var eP=n(69604),eM=n(45644),eR=n(93291),eN=n(96473);function eI(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,s=1;so&&(o=t,r=n);return r}function ez(e){var t=e.map(eB);return(0,eL.A)(e).sort(function(e,n){return t[e]-t[n]})}function eB(e){for(var t,n=0,r=-1,i=e.length;++r{var r=n(83965),i=n(93803);e.exports=function(e,t){return r(i(e,t),1)}},35561:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(51645),i=n(94916),o=n(64816),s=n(34035),a=n(115),l=n(61036),u=n(99772);function c(e,t){var n,c,h,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.A)(2,arguments);var p=d.locale||a.A;if(!p.formatDistance)throw RangeError("locale must contain formatDistance property");var f=(0,r.A)(e,t);if(isNaN(f))throw RangeError("Invalid time value");var m=(0,l.A)(d);m.addSuffix=!!d.addSuffix,m.comparison=f,f>0?(n=(0,i.A)(t),c=(0,i.A)(e)):(n=(0,i.A)(e),c=(0,i.A)(t));var g=function(e,t){(0,o.A)(2,arguments);var n=(0,s.A)(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}(c,n),y=Math.round((g-((0,u.A)(c)-(0,u.A)(n))/1e3)/60);if(y<2)if(d.includeSeconds)if(g<5)return p.formatDistance("lessThanXSeconds",5,m);else if(g<10)return p.formatDistance("lessThanXSeconds",10,m);else if(g<20)return p.formatDistance("lessThanXSeconds",20,m);else if(g<40)return p.formatDistance("halfAMinute",null,m);else if(g<60)return p.formatDistance("lessThanXMinutes",1,m);else return p.formatDistance("xMinutes",1,m);else if(0===y)return p.formatDistance("lessThanXMinutes",1,m);else return p.formatDistance("xMinutes",y,m);if(y<45)return p.formatDistance("xMinutes",y,m);if(y<90)return p.formatDistance("aboutXHours",1,m);if(y<1440){var v=Math.round(y/60);return p.formatDistance("aboutXHours",v,m)}if(y<2520)return p.formatDistance("xDays",1,m);else if(y<43200){var b=Math.round(y/1440);return p.formatDistance("xDays",b,m)}else if(y<86400)return h=Math.round(y/43200),p.formatDistance("aboutXMonths",h,m);if((h=function(e,t){(0,o.A)(2,arguments);var n,s=(0,i.A)(e),a=(0,i.A)(t),l=(0,r.A)(s,a),u=Math.abs(function(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(e),r=(0,i.A)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(s,a));if(u<1)n=0;else{1===s.getMonth()&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-l*u);var c=(0,r.A)(s,a)===-l;(function(e){(0,o.A)(1,arguments);var t=(0,i.A)(e);return(function(e){(0,o.A)(1,arguments);var t=(0,i.A)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,o.A)(1,arguments);var t=(0,i.A)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,i.A)(e))&&1===u&&1===(0,r.A)(e,a)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(c,n))<12){var w=Math.round(y/43200);return p.formatDistance("xMonths",w,m)}var _=h%12,k=Math.floor(h/12);return _<3?p.formatDistance("aboutXYears",k,m):_<9?p.formatDistance("overXYears",k,m):p.formatDistance("almostXYears",k+1,m)}},35658:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,n:()=>s});var r=n(37243),i=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,o=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,s=r.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,r.OX)({find:i,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:o,type:this.type})]}}),a=s},35744:e=>{e.exports=function(e){if("number"!=typeof e||isNaN(e))throw TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i}},35924:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(55729);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36062:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l,r:()=>a});var r=n(6029),i=n(21938),o=n(45460),s=n(2241);let a=(0,o.R)(function(e,t){let{isExternal:n,target:o,rel:a,className:l,...u}=e;return(0,r.jsx)(s.B.a,{...u,ref:t,className:(0,i.cx)("chakra-linkbox__overlay",l),rel:n?"noopener noreferrer":a,target:n?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),l=(0,o.R)(function(e,t){let{className:n,...o}=e;return(0,r.jsx)(s.B.div,{ref:t,position:"relative",...o,className:(0,i.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})})},36152:(e,t,n)=>{"use strict";n.d(t,{N:()=>ep,p:()=>ef});var r=n(55729),i=n(15587),o=n(93174),s=n(65668),a=n(94289);let l="undefined"!=typeof navigator?navigator:null,u="undefined"!=typeof document?document:null,c=l&&l.userAgent||"",h=/Edge\/(\d+)/.exec(c),d=/MSIE \d/.exec(c),p=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(c),f=!!(d||p||h),m=(d?document.documentMode:p?p[1]:h&&h[1],!f&&/gecko\/(\d+)/i.test(c)),g=(m&&(/Firefox\/(\d+)/.exec(c)||[0,0])[1],!f&&/Chrome\/(\d+)/.exec(c)),y=!!g,v=(g&&g[1],!f&&!!l&&/Apple Computer/.test(l.vendor)),b=(v&&(/Mobile\/\w+/.test(c)||l&&l.maxTouchPoints>2)||l&&/Mac/.test(l.platform),l&&/Win/.test(l.platform),/Android \d/.test(c),u&&"webkitFontSmoothing"in u.documentElement.style&&(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1],{gecko:m,chrome:y,safari:v});var w=n(70737);function _(e,t){return e instanceof C?1:t instanceof C?-1:e.getPos()-t.getPos()}class k{parent;children;getPos;dom;contentDOM;dirty;node;constructor(e,t,n,r,i){this.parent=e,this.children=t,this.getPos=n,this.dom=r,this.contentDOM=i,this.dirty=0,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t(0,w.b7)(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let n=!0,r=e;r;r=r.parentNode){let i,o=this.getDesc(r);if(o&&(!t||o.node))if(!n||!(i=o.nodeDOM)||(1==i.nodeType?i.contains(1==e.nodeType?e:e.parentNode):i==e))return o;else n=!1}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return -1}descAt(e){for(let t=0,n=0;te||i instanceof C){r=e-t;break}t=o}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof x&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;(e=n?this.children[n-1]:null)&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?(0,w.b7)(e.dom)+1:0}}{let e,r=!0;for(;(e=n2&&void 0!==arguments[2]?arguments[2]:0;if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let o=n,s=0;;s++){let n=this.children[s],a=o+n.size;if(-1==r&&e<=a){let i=o+n.border;if(e>=i&&t<=a-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=(0,w.b7)(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(a>t||s==this.children.length-1)){t=a;for(let e=s+1;e3&&void 0!==arguments[3]&&arguments[3],i=Math.min(e,t),o=Math.max(e,t);for(let s=0,a=0;sa&&ot){let e=s;s=a,a=e}let n=document.createRange();n.setEnd(a.node,a.offset),n.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r=n:en){let r=n+i.border,s=o-i.border;if(e>=r&&t<=s){this.dirty=e==n||t==o?2:1,e==r&&t==s&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=3:i.markDirty(e-r,t-r);return}i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=o}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>a.FK.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&function(e,t){if(e.length!=t.length)return!1;for(let n=0;n{if(!(a instanceof o.w))return;let r=e.current;if(!r)return;let{node:i,getPos:s,decorations:u,innerDecorations:c}=n,d=t(i,a,s,u,c);if(!d)return;let f=l.current,g=y.current,v=N(d,g),b=d.dom,w=new P(f,g,s,i,u,c,r,v,b,d);return h(r),m(v),p(b),w}),b=(0,R.J)(()=>{if(!(a instanceof o.w))return!1;let t=g.current;if(!t)return!1;let r=e.current;if(!r||r!==t.dom||N(t,t.children)!==t.contentDOM||!r.contains(t.nodeDOM))return!1;let{node:i,decorations:s,innerDecorations:l}=n;return t.matchesNode(i,s,l)||t.update(i,s,l,a)}),w=(0,R.J)(()=>{let e=g.current;if(!e)return;e.destroy();let t=u.current;if(t.includes(e)){let n=t.indexOf(e);t.splice(n,1)}h(null),m(null),p(null)});return(0,M.g)(()=>(g.current=v(),()=>{w()}),[v,w]),(0,M.g)(()=>{b()||(w(),g.current=v());let e=g.current;if(!e)return;a.dom===e.dom&&a instanceof o.w&&(a.docView=e);let t=l.current,n=u.current,r=y.current;for(let i of(e.parent=t,n.includes(e)||n.push(e),n.sort(_),r))if(i.parent=e,i instanceof E){let t=e?.contentDOM?.firstChild;if(!t)throw Error("Started a composition but couldn't find the text node it belongs to.");let n=t;for(;n.firstChild;)n=n.firstChild;if(!n||!(n instanceof Text))throw Error("Started a composition but couldn't find the text node it belongs to.");i.dom=t,i.textDOM=n,i.text=n.data,i.textDOM.pmViewDesc=i,a.input.compositionNodes.push(i)}}),{childContextValue:(0,r.useMemo)(()=>({parentRef:g,siblingsRef:y}),[y,g]),dom:c,contentDOM:f,nodeDOM:d,ref:e}}var D=n(58622);function L(e,t){return e.type.side-t.type.side}var j=n(11041),F=n(26919);let z=(0,r.memo)((0,r.forwardRef)(function(e,t){let{outputSpec:n,isMark:i,children:o,...s}=e;if("string"==typeof n)return r.createElement(r.Fragment,null,n);if(!Array.isArray(n))throw Error("@handlewithcare/react-prosemirror only supports strings and arrays in toDOM");let a=n[0].replace(" ",":"),l=n[1],u={ref:t,...s},c=1;l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)&&(c=2,u=(0,F.a)((0,F.A)(l),u));let h=[];for(let e=c;ec)throw RangeError("Content hole must be the only child of its parent node");return(0,r.createElement)(a,u,o)}h.push(r.createElement(z,{outputSpec:t},o))}return i&&!function e(t){if(!Array.isArray(t))throw Error("@handlewithcare/react-prosemirror only supports strings and arrays in toDOM");let n=t[1],r=1;n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)&&(r=2);for(let n=r;nh.current,[]);let d=(0,r.useMemo)(()=>n.type.spec.toDOM?.(n,!0),[n]);if(!d)throw Error(`Mark spec for ${n.type.name} is missing toDOM`);(0,M.g)(()=>{let e=a.current;return()=>{if(u.current&&e.includes(u.current)){let t=e.indexOf(u.current);e.splice(t,1)}}},[a]),(0,M.g)(()=>{if(!h.current)return;let e=c.current[0];for(let t of(u.current?(u.current.parent=l.current,u.current.spec.dom=u.current.dom=h.current,u.current.children=c.current,u.current.spec.contentDOM=u.current.contentDOM=e?.dom.parentElement??h.current,u.current.mark=n):u.current=new S(l.current,c.current,o,n,h.current,e?.dom.parentElement??h.current,{dom:h.current,contentDOM:e?.dom.parentElement??h.current}),a.current.includes(u.current)||a.current.push(u.current),a.current.sort(_),c.current))t.parent=u.current});let p=(0,r.useMemo)(()=>({parentRef:u,siblingsRef:c}),[c,u]);return r.createElement(z,{ref:h,outputSpec:d,isMark:!0},r.createElement(i.w.Provider,{value:p},s))}));var U=n(53488);function H(e){let{widget:t,getPos:n}=e,{siblingsRef:o,parentRef:s}=(0,r.useContext)(i.w),a=(0,r.useRef)(null),l=(0,r.useRef)(null);return(0,M.g)(()=>{let e=o.current;return()=>{if(a.current&&e.includes(a.current)){let t=e.indexOf(a.current);e.splice(t,1)}}},[o]),(0,U.k)(e=>{if(!l.current)return;let r=t.type.toDOM,i="function"==typeof r?r(e,n):r;if(!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}l.current.firstElementChild!==i&&l.current.replaceChildren(i)}),(0,M.g)(()=>{l.current&&(a.current?(a.current.parent=s.current,a.current.widget=t,a.current.dom=l.current):a.current=new x(s.current,n,t,l.current),o.current.includes(a.current)||o.current.push(a.current),o.current.sort(_))}),r.createElement("span",{ref:l})}var $=n(95115),W=n(56760);let V=(0,r.memo)(function(e){let{constructor:t,node:n,getPos:o,innerDeco:s,outerDeco:l}=e,u=(0,r.useRef)(null),c=(0,r.useRef)(null),h=(0,r.useMemo)(()=>({node:n,getPos:o,decorations:l,innerDecorations:s}),[n,o,l,s]),d=function(){for(var e=arguments.length,r=Array(e),i=0;in.type.spec.toDOM?.(n),[n]);if(!s)throw Error(`Node spec for ${n.type.name} is missing toDOM`);return r.createElement(z,{...o,outputSpec:s,ref:t},i)});var Y=n(95100),K=n(30667),X=n(45691);let G=(0,r.memo)(function(e){let{component:t,outerDeco:n,getPos:o,node:s,innerDeco:a}=e,[l,u]=(0,r.useState)(!1),[c,h]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useRef)(null),f=(0,r.useRef)(null),m=(0,r.useRef)(null),g=(0,r.useRef)(null),y=(0,r.useRef)(null),v=(0,r.useCallback)((e,t)=>(f.current=e,m.current=t,u(!0),()=>{f.current=null,m.current=null,u(!1)}),[]),b=(0,r.useCallback)(e=>(g.current=e,()=>{g.current=null}),[]),w=(0,r.useCallback)(e=>(y.current=e,()=>(y.current=null,()=>{y.current=null})),[]),_=(0,r.useMemo)(()=>({node:s,getPos:o,decorations:n,innerDecorations:a}),[o,a,s,n]),{childContextValue:k,contentDOM:x,nodeDOM:E}=I(d,()=>(h(!1),{dom:p.current??d.current,update:()=>!0,multiType:!0,selectNode(){let e=f.current;e&&e(),h(!0)},deselectNode(){let e=m.current;e&&e(),h(!1)},stopEvent(e){let t=g.current;return!!t&&t(e)},ignoreMutation(e){let t=y.current;return!!t&&t(e)}}),_),S={nodeProps:_,...!x&&!_.node.isText&&E?.nodeName!=="BR"?{contentEditable:!1,suppressContentEditableWarning:!0}:null,...!l&&c?{className:"ProseMirror-selectednode"}:null,...!l&&c||s.type.spec.draggable?{draggable:!0}:null,ref:p},A=s.isLeaf?null:r.createElement(eh,{getPos:o,node:s,innerDecorations:a}),T=(0,r.cloneElement)(n.reduce(ei,r.createElement(t,S,A)),{ref:d});return r.createElement(K.y.Provider,{value:v},r.createElement(X.K.Provider,{value:b},r.createElement(Y.T.Provider,{value:w},r.createElement(i.w.Provider,{value:k},T))))}),Z=(0,r.memo)(function(e){let{components:t,constructors:n}=(0,r.useContext)($.Z),i=t[e.node.type.name]??q,o=n[e.node.type.name],s=(0,r.useMemo)(()=>o?function(e){return r.createElement(V,{constructor:o,...e})}:function(e){return r.createElement(G,{component:i,...e})},[o,i]);return r.createElement(s,e)});function J(e){let{getPos:t}=e,{siblingsRef:n,parentRef:o}=(0,r.useContext)(i.w),s=(0,r.useRef)(null),a=(0,r.useRef)(null),[l,u]=(0,r.useState)(!1);return(0,M.g)(()=>{let e=n.current;return()=>{if(s.current&&e.includes(s.current)){let t=e.indexOf(s.current);e.splice(t,1)}}},[n]),(0,M.g)(()=>{let e=n.current[n.current.length-1];if((b.safari||b.chrome)&&e?.dom?.contentEditable=="false")return void u(!0);a.current&&(s.current?(s.current.parent=o.current,s.current.dom=a.current):s.current=new C(o.current,[],t,a.current,null),n.current.includes(s.current)||n.current.push(s.current),n.current.sort(_))}),l?r.createElement("img",{ref:a,className:"ProseMirror-separator"}):null}var Q=n(97255),ee=n(9849);class et extends r.Component{viewDescRef=null;renderRef=null;updateEffect(){let{view:e,decorations:t,siblingsRef:n,parentRef:r,getPos:i,node:o}=this.props,s=function(e){let t=e._reactInternals;if(void 0===t)if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");else{let t=Object.keys(e).join(",");throw Error(`Argument appears to not be a ReactComponent. Keys: ${t}`)}let n=(0,ee.findCurrentHostFiber)(t);return null===n?null:n.stateNode}(this);if(!s){if(!e.composing)return;this.viewDescRef=new E(r.current,i,document.createElement("div"),document.createTextNode(o.text??""),o.text??"");return}let a=s;for(;a.firstChild;)a=a.firstChild;!this.viewDescRef||this.viewDescRef instanceof E?this.viewDescRef=new T(void 0,[],i,o,t,Q.zF.empty,s,a):(this.viewDescRef.parent=r.current,this.viewDescRef.children=[],this.viewDescRef.node=o,this.viewDescRef.outerDeco=t,this.viewDescRef.innerDeco=Q.zF.empty,this.viewDescRef.dom=s,this.viewDescRef.dom.pmViewDesc=this.viewDescRef,this.viewDescRef.nodeDOM=a),n.current.includes(this.viewDescRef)||n.current.push(this.viewDescRef),n.current.sort(_)}shouldComponentUpdate(e){return!function(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let r=0;r=t()&&e.state.selection.from<=t()+n.nodeSize||(this.renderRef=r.reduce(ei,n.text)),this.renderRef}}function en(e){let{getPos:t}=e,{siblingsRef:n,parentRef:o}=(0,r.useContext)(i.w),s=(0,r.useRef)(null),a=(0,r.useRef)(null);return(0,M.g)(()=>{let e=n.current;return()=>{if(s.current&&e.includes(s.current)){let t=e.indexOf(s.current);e.splice(t,1)}}},[n]),(0,M.g)(()=>{a.current&&(s.current?(s.current.parent=o.current,s.current.dom=a.current):s.current=new C(o.current,[],t,a.current,null),n.current.includes(s.current)||n.current.push(s.current),n.current.sort(_))}),r.createElement("br",{ref:a,className:"ProseMirror-trailingBreak"})}function er(e){let{widget:t,getPos:n}=e,{siblingsRef:o,parentRef:s}=(0,r.useContext)(i.w),a=(0,r.useRef)(null),l=(0,r.useRef)(null);(0,M.g)(()=>{let e=o.current;return()=>{if(a.current&&e.includes(a.current)){let t=e.indexOf(a.current);e.splice(t,1)}}},[o]),(0,M.g)(()=>{l.current&&(a.current?(a.current.parent=s.current,a.current.widget=t,a.current.dom=l.current):a.current=new x(s.current,n,t,l.current),o.current.includes(a.current)||o.current.push(a.current),o.current.sort(_))});let{Component:u}=t.type;return u&&r.createElement(u,{ref:l,widget:t,getPos:n,contentEditable:!1})}function ei(e,t){let{nodeName:n,...i}=t.type.attrs,o=(0,F.A)(i);return n||"string"==typeof e?(0,r.createElement)(n??"span",o,e):(0,r.cloneElement)(e,(0,F.a)(e.props,o))}function eo(e,t){return e.type===t.type&&e.marks.every(e=>e.isInSet(t.marks))&&t.marks.every(t=>t.isInSet(e.marks))&&e.key===t.key&&("node"!==e.type||e.outerDeco?.length===t.outerDeco?.length&&e.outerDeco?.every(e=>t.outerDeco?.some(t=>e.from===t.from&&e.to&&t.to&&e.type.eq(t.type)))&&e.innerDeco.eq(t.innerDeco))&&e.node===t.node&&e.widget===t.widget}let es=(0,r.memo)(function(e){let{child:t,getInnerPos:n}=e,{view:o}=(0,r.useContext)(s.p),a=(0,r.useRef)(t);a.current=t;let l=(0,r.useCallback)(()=>n()+a.current.offset,[n]);return"widget"===t.type?r.createElement(er,{key:t.key,widget:t.widget,getPos:l}):"native-widget"===t.type?r.createElement(H,{key:t.key,widget:t.widget,getPos:l}):"hack"===t.type?r.createElement(t.component,{key:t.key,getPos:l}):t.node.isText?r.createElement(i.w.Consumer,{key:t.key},e=>{let{siblingsRef:n,parentRef:i}=e;return r.createElement(et,{view:o,node:t.node,getPos:l,siblingsRef:n,parentRef:i,decorations:t.outerDeco})}):r.createElement(Z,{key:t.key,node:t.node,getPos:l,outerDeco:t.outerDeco,innerDeco:t.innerDeco})}),ea=(0,r.memo)(function(e){let{childViews:t,getInnerPos:n}=e,i=t[0],o=(0,r.useRef)(i);o.current=i;let s=(0,r.useCallback)(()=>n()+o.current.offset,[n]),a=i.marks[0];return a?r.createElement(B,{key:i.key,mark:a,getPos:s},r.createElement(el,{key:i.key,getInnerPos:n,childViews:t.map(e=>({...e,marks:e.marks.slice(1)}))})):r.createElement(r.Fragment,null,t.map(e=>r.createElement(es,{key:e.key,child:e,getInnerPos:n})))}),el=(0,r.memo)(function(e){let{getInnerPos:t,childViews:n}=e,i=n.reduce((e,t)=>{let n=e[e.length-1];if(!n)return[[t]];let r=n[n.length-1];return r?!t.marks.length&&!r.marks.length||t.marks.length&&r.marks.length&&t.marks[0]?.eq(r.marks[0])?[...e.slice(0,e.length-1),[...n.slice(0,n.length),t]]:[...e,[t]]:[...e.slice(0,e.length),[t]]},[]);return r.createElement(r.Fragment,null,i.map(e=>{let n=e[0];return n?r.createElement(ea,{key:n.key,childViews:e,getInnerPos:t}):null}))});function eu(e,t,n,r,i,o){let s=e+t,a=i?.get(s);if("widget"===r||"native-widget"===r)return o.type.spec.key?o.type.spec.key:("widget"===r&&console.warn(`Widget at position ${s} doesn't have a key specified. React ProseMirror will generate a key partially based on this widget’s index into its parent’s children. This can cause issues if there are multiple adjacent widgets.`),`${a}-${n}`);if(a)return a;let l=i?.get(e-1);return l?`${l}-${t}`:s}let ec=(0,r.memo)(function(e){let{child:t,getInnerPos:n}=e,i=(0,r.useRef)(t);i.current=t;let o=(0,r.useCallback)(()=>n()+i.current.offset,[n]);return"node"===t.type?t.marks.reduce((e,t)=>r.createElement(B,{mark:t,getPos:o},e),r.createElement(Z,{key:t.key,outerDeco:t.outerDeco,node:t.node,innerDeco:t.innerDeco,getPos:o})):r.createElement(el,{key:t.key,childViews:[t],getInnerPos:n})}),eh=(0,r.memo)(function(e){let{getPos:t,node:n,innerDecorations:i}=e,o=function(){let{view:e}=(0,r.useContext)(s.p);return j.ou.getState(e.state)}(),a=(0,r.useCallback)(()=>t()+1,[t]),l=(0,r.useRef)(new Map).current;if(!n)return null;let u=new Map,c=[],h=null;for(let e of(!function(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;no;)a.push(i[s++]);let d=o+c.nodeSize;if(c.isText){let e=d;s!e.inline):a.slice();r(c,p,t.forChild(o,c),o,h),o=d}}(n,i,(e,t,n,r)=>{let i,s=e.type.spec.marks??[];if(t){i=eu(a(),n,r,"native-widget",o?.posToKey,e);let t={type:"native-widget",widget:e,marks:s,offset:n,index:r,key:i},c=l.get(i);c&&eo(c,t)?c.offset=n:l.set(i,t),u.set(i,u.size)}else{i=eu(a(),n,r,"widget",o?.posToKey,e);let t={type:"widget",widget:e,marks:s,offset:n,index:r,key:i},c=l.get(i);c&&eo(c,t)?c.offset=n:l.set(i,t),u.set(i,u.size)}let d=l.get(i);c.push(d),function(e,t){if(!t||t.widget.type.side>=0||!e||!e.node.isInline)return;let n=e.marks;t.marks=t.marks.reduce((e,t)=>t.addToSet(e),n)}(h,l.get(i))},(e,t,n,r,i)=>{let s=eu(a(),r,i,"node",o?.posToKey),d={type:"node",node:e,marks:e.marks,innerDeco:n,outerDeco:t,offset:r,index:i,key:s},p=l.get(s);p&&eo(p,d)?(p.offset=r,h=p):(l.set(s,d),h=d),u.set(s,u.size),function(e,t){if(!t.node.isInline)return;let n=t.marks;for(let t=e.length-1;t>=0;t--){let r=e[t];r.widget.type.side<0||(r.marks=r.marks.reduce((e,t)=>t.addToSet(e),n))}}(c,h),c=[]}),l.keys()))u.has(e)||l.delete(e);let d=Array.from(l.values()).sort((e,t)=>u.get(e.key)-u.get(t.key));if(n.isTextblock){let e=d[d.length-1];(!e||"node"!==e.type||e.node.isInline&&!e.node.isText||/\n$/.test(e.node.text))&&d.push({type:"hack",component:J,marks:[],offset:e?.offset??0,index:(e?.index??0)+2,key:"trailing-hack-img"},{type:"hack",component:en,marks:[],offset:e?.offset??0,index:(e?.index??0)+1,key:"trailing-hack-br"})}let p=d.length?d.every(e=>"node"!==e.type||e.node.isInline)?[r.createElement(el,{key:d[0].key,childViews:d,getInnerPos:a})]:d.map(e=>r.createElement(ec,{key:e.key,child:e,getInnerPos:a})):[];return r.createElement(r.Fragment,null,p)}),ed=(0,r.memo)((0,r.forwardRef)(function(e,t){let{as:n,node:o,getPos:s,decorations:a,innerDecorations:l,setMount:u,...c}=e,h=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,()=>h.current),(0,r.useImperativeHandle)(u,()=>h.current);let d=(0,r.useMemo)(()=>({node:o,getPos:s,decorations:a,innerDecorations:l}),[o,s,a,l]),{childContextValue:p}=I(h,()=>{let e=h.current;return{dom:e,contentDOM:e,update:()=>!0}},d),f=r.createElement(i.w.Provider,{value:p},r.createElement(eh,{getPos:s,node:o,innerDecorations:l})),m={...c,suppressContentEditableWarning:!0,ref:h},g=n?(0,r.cloneElement)(n,m,f):(0,r.createElement)("div",m,f);return d.decorations.reduce(ei,g)})),ep=(0,r.createContext)(null),ef=(0,r.forwardRef)(function(e,t){let{as:n,...i}=e,o=(0,r.useContext)(ep);return r.createElement(ed,{ref:t,...i,...o,as:n})})},36215:(e,t,n)=>{"use strict";n.d(t,{vC:()=>O});var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function i(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function o(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var a={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},l={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},c={16:!1,18:!1,17:!1,91:!1},h={},d=1;d<20;d++)a["f".concat(d)]=111+d;var p=[],f=!1,m="all",g=[],y=function(e){return a[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function v(e){m=e||"all"}function b(){return m||"all"}var w=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,a=void 0===i?"+":i;s(t).forEach(function(e){var t=e.split(a),i=t.length,s=t[i-1],u="*"===s?"*":y(s);if(h[u]){n||(n=b());var c=i>1?o(l,t):[];h[u]=h[u].filter(function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,o=0;o0,c)Object.prototype.hasOwnProperty.call(c,o)&&(!c[o]&&t.mods.indexOf(+o)>-1||c[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||c[16]||c[18]||c[17]||c[91])&&!i&&"*"!==t.shortcut||!1!==t.method(e,t)||(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function k(e,t){var n=h["*"],r=e.keyCode||e.which||e.charCode;if(x.filter.call(this,e)){if((93===r||224===r)&&(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=u[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&!(e.ctrlKey||e.shiftKey||e.altKey)&&(p=p.slice(p.indexOf(n)))}),r in c){for(var i in c[r]=!0,l)l[i]===r&&(x[i]=!0);if(!n)return}for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(c[o]=e[u[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),c[17]=!0,c[18]=!0);var s=b();if(n)for(var a=0;a1&&(u=o(l,e)),(e="*"===(e=e[e.length-1])?"*":y(e))in h||(h[e]=[]),h[e].push({keyup:b,keydown:w,scope:d,mods:u,shortcut:a[v],method:n,key:a[v],splitKey:_,element:m});void 0!==m&&(r=m,!(g.indexOf(r)>-1))&&window&&(g.push(m),i(m,"keydown",function(e){k(e,m)},E),f||(f=!0,i(window,"focus",function(){p=[]},E)),i(m,"keyup",function(e){k(e,m);var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),(93===t||224===t)&&(t=91),t in c)for(var r in c[t]=!1,l)l[r]===t&&(x[r]=!1)},E))}var E={setScope:v,getScope:b,deleteScope:function(e,t){var n,r;for(var i in e||(e=b()),h)if(Object.prototype.hasOwnProperty.call(h,i))for(r=0,n=h[i];r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(h).forEach(function(n){var r=h[n].find(function(n){return n.scope===t&&n.shortcut===e});r&&r.method&&r.method()})},unbind:function(e){if(void 0===e)Object.keys(h).forEach(function(e){return delete h[e]});else if(Array.isArray(e))e.forEach(function(e){e.key&&w(e)});else if("object"==typeof e)e.key&&w(e);else if("string"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{"use strict";n.d(t,{T:()=>d});var r=n(6029),i=n(5858),o=n(32496),s=n(21938),a=n(79056),l=n(45460),u=n(8527),c=n(2241);let h=["h","minH","height","minHeight"],d=(0,l.R)((e,t)=>{let n=(0,u.V)("Textarea",e),{className:l,rows:d,...p}=(0,i.M)(e),f=(0,a.t)(p),m=d?(0,o.c)(n,h):n;return(0,r.jsx)(c.B.textarea,{ref:t,rows:d,...f,className:(0,s.cx)("chakra-textarea",l),__css:m})});d.displayName="Textarea"},36693:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var r=n(6029),i=n(19889),o=n(21938),s=n(49146),a=n(61400),l=n(45460),u=n(2241);let c=(0,l.R)(function(e,t){let n=(0,s.e)(),l=(0,a.Vh)({...e,ref:t}),c=(0,i.H2)({outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab});return(0,r.jsx)(u.B.button,{...l,className:(0,o.cx)("chakra-tabs__tab",e.className),__css:c})});c.displayName="Tab"},37041:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(90580),i=n(64816);function o(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),o=(0,r.A)(t);return n.getTime()===o.getTime()}},37393:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){var t=r(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=r(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function s(e){if("undefined"==typeof ShadowRoot)return!1;var t=r(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}n.d(t,{Ay:()=>eH});var a=Math.max,l=Math.min,u=Math.round;function c(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(o(e)&&t){var s=e.offsetHeight,a=e.offsetWidth;a>0&&(r=u(n.width)/a||1),s>0&&(i=u(n.height)/s||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function h(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function f(e){return c(p(e)).left+h(e).scrollLeft}function m(e){return r(e).getComputedStyle(e)}function g(e){var t=m(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function y(e){var t=c(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function v(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||p(e)}function b(e,t){void 0===t&&(t=[]);var n,i=function e(t){return["html","body","#document"].indexOf(d(t))>=0?t.ownerDocument.body:o(t)&&g(t)?t:e(v(t))}(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),a=r(i),l=s?[a].concat(a.visualViewport||[],g(i)?i:[]):i,u=t.concat(l);return s?u:u.concat(b(v(l)))}function w(e){return o(e)&&"fixed"!==m(e).position?e.offsetParent:null}function _(e){for(var t=r(e),n=w(e);n&&["table","td","th"].indexOf(d(n))>=0&&"static"===m(n).position;)n=w(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===m(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===m(e).position)return null;for(var n=v(e);o(n)&&0>["html","body"].indexOf(d(n));){var r=m(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var k="bottom",x="right",E="left",S="auto",A=["top",k,x,E],T="start",C="viewport",O="popper",P=A.reduce(function(e,t){return e.concat([t+"-"+T,t+"-end"])},[]),M=[].concat(A,[S]).reduce(function(e,t){return e.concat([t,t+"-"+T,t+"-end"])},[]),R=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],N={placement:"bottom",modifiers:[],strategy:"absolute"};function I(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function z(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?L(i):null,s=i?j(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:a,y:n.y-r.height};break;case k:t={x:a,y:n.y+n.height};break;case x:t={x:n.x+n.width,y:l};break;case E:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?F(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case T:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var B={top:"auto",right:"auto",bottom:"auto",left:"auto"};function U(e){var t,n,i,o,s,a=e.popper,l=e.popperRect,c=e.placement,h=e.variation,d=e.offsets,f=e.position,g=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=e.isFixed,w=!0===v?(t=d.x,n=d.y,{x:u(t*(i=window.devicePixelRatio||1))/i||0,y:u(n*i)/i||0}):"function"==typeof v?v(d):d,S=w.x,A=void 0===S?0:S,T=w.y,C=void 0===T?0:T,O=d.hasOwnProperty("x"),P=d.hasOwnProperty("y"),M=E,R="top",N=window;if(y){var I=_(a),D="clientHeight",L="clientWidth";I===r(a)&&"static"!==m(I=p(a)).position&&"absolute"===f&&(D="scrollHeight",L="scrollWidth"),("top"===c||(c===E||c===x)&&"end"===h)&&(R=k,C-=(b&&N.visualViewport?N.visualViewport.height:I[D])-l.height,C*=g?1:-1),(c===E||("top"===c||c===k)&&"end"===h)&&(M=x,A-=(b&&N.visualViewport?N.visualViewport.width:I[L])-l.width,A*=g?1:-1)}var j=Object.assign({position:f},y&&B);return g?Object.assign({},j,((s={})[R]=P?"0":"",s[M]=O?"0":"",s.transform=1>=(N.devicePixelRatio||1)?"translate("+A+"px, "+C+"px)":"translate3d("+A+"px, "+C+"px, 0)",s)):Object.assign({},j,((o={})[R]=P?C+"px":"",o[M]=O?A+"px":"",o.transform="",o))}let H={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&d(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});o(r)&&d(r)&&(Object.assign(r.style,s),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};var $={left:"right",right:"left",bottom:"top",top:"bottom"};function W(e){return e.replace(/left|right|bottom|top/g,function(e){return $[e]})}var V={start:"end",end:"start"};function q(e){return e.replace(/start|end/g,function(e){return V[e]})}function Y(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function K(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function X(e,t){var n,o,s,l,u,d,g,y,v,b,w,_,k,x,E,S,A;return t===C?K((n=r(e),o=p(e),s=n.visualViewport,l=o.clientWidth,u=o.clientHeight,d=0,g=0,s&&(l=s.width,u=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(d=s.offsetLeft,g=s.offsetTop)),{width:l,height:u,x:d+f(e),y:g})):i(t)?((y=c(t)).top=y.top+t.clientTop,y.left=y.left+t.clientLeft,y.bottom=y.top+t.clientHeight,y.right=y.left+t.clientWidth,y.width=t.clientWidth,y.height=t.clientHeight,y.x=y.left,y.y=y.top,y):K((v=p(e),w=p(v),_=h(v),k=null==(b=v.ownerDocument)?void 0:b.body,x=a(w.scrollWidth,w.clientWidth,k?k.scrollWidth:0,k?k.clientWidth:0),E=a(w.scrollHeight,w.clientHeight,k?k.scrollHeight:0,k?k.clientHeight:0),S=-_.scrollLeft+f(v),A=-_.scrollTop,"rtl"===m(k||w).direction&&(S+=a(w.clientWidth,k?k.clientWidth:0)-x),{width:x,height:E,x:S,y:A}))}function G(){return{top:0,right:0,bottom:0,left:0}}function Z(e){return Object.assign({},G(),e)}function J(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Q(e,t){void 0===t&&(t={});var n,r,s,u,h,f,g,y,w,E=t,S=E.placement,T=void 0===S?e.placement:S,P=E.boundary,M=E.rootBoundary,R=E.elementContext,N=void 0===R?O:R,I=E.altBoundary,D=E.padding,L=void 0===D?0:D,j=Z("number"!=typeof L?L:J(L,A)),F=e.rects.popper,B=e.elements[void 0!==I&&I?N===O?"reference":O:N],U=(n=i(B)?B:B.contextElement||p(e.elements.popper),r=void 0===P?"clippingParents":P,s=void 0===M?C:M,y=(g=[].concat("clippingParents"===r?(u=b(v(n)),!i(f=(h=["absolute","fixed"].indexOf(m(n).position)>=0)&&o(n)?_(n):n)?[]:u.filter(function(e){return i(e)&&Y(e,f)&&"body"!==d(e)&&(!h||"static"!==m(e).position)})):[].concat(r),[s]))[0],(w=g.reduce(function(e,t){var r=X(n,t);return e.top=a(r.top,e.top),e.right=l(r.right,e.right),e.bottom=l(r.bottom,e.bottom),e.left=a(r.left,e.left),e},X(n,y))).width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w),H=c(e.elements.reference),$=z({reference:H,element:F,strategy:"absolute",placement:T}),W=K(Object.assign({},F,$)),V=N===O?W:H,q={top:U.top-V.top+j.top,bottom:V.bottom-U.bottom+j.bottom,left:U.left-V.left+j.left,right:V.right-U.right+j.right},G=e.modifiersData.offset;if(N===O&&G){var Q=G[T];Object.keys(q).forEach(function(e){var t=[x,k].indexOf(e)>=0?1:-1,n=["top",k].indexOf(e)>=0?"y":"x";q[e]+=Q[n]*t})}return q}function ee(e,t,n){return a(e,l(t,n))}function et(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function en(e){return["top",x,k,E].some(function(t){return e[t]>=0})}var er=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,s=void 0===n?[]:n,a=t.defaultOptions,l=void 0===a?N:a;return function(e,t,n){void 0===n&&(n=l);var a,m,v={placement:"bottom",orderedModifiers:[],options:Object.assign({},N,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},w=[],k=!1,x={state:v,setOptions:function(n){var r,o,a,u,c,h,d="function"==typeof n?n(v.options):n;E(),v.options=Object.assign({},l,v.options,d),v.scrollParents={reference:i(e)?b(e):e.contextElement?b(e.contextElement):[],popper:b(t)};var p=(o=Object.keys(r=[].concat(s,v.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),a=new Map,u=new Set,c=[],o.forEach(function(e){a.set(e.name,e)}),o.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var n=a.get(t);n&&e(n)}}),c.push(t)}(e)}),h=c,R.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return v.orderedModifiers=p.filter(function(e){return e.enabled}),v.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:v,name:t,instance:x,options:void 0===n?{}:n});w.push(i||function(){})}}),x.update()},forceUpdate:function(){if(!k){var e,t,n,i,s,a,l,m,b,w,E,S=v.elements,A=S.reference,T=S.popper;if(I(A,T)){v.rects={reference:(e=_(T),t="fixed"===v.options.strategy,n=o(e),l=o(e)&&(s=u((i=e.getBoundingClientRect()).width)/e.offsetWidth||1,a=u(i.height)/e.offsetHeight||1,1!==s||1!==a),m=p(e),b=c(A,l),w={scrollLeft:0,scrollTop:0},E={x:0,y:0},(n||!n&&!t)&&(("body"!==d(e)||g(m))&&(w=function(e){return e!==r(e)&&o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:h(e)}(e)),o(e)?(E=c(e,!0),E.x+=e.clientLeft,E.y+=e.clientTop):m&&(E.x=f(m))),{x:b.left+w.scrollLeft-E.x,y:b.top+w.scrollTop-E.y,width:b.width,height:b.height}),popper:y(T)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(e){return v.modifiersData[e.name]=Object.assign({},e.data)});for(var C=0;C=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[E,x].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,y=L(g)===g,v=l||(y||!f?[W(g)]:function(e){if(L(e)===S)return[];var t=W(e);return[q(e),t,q(t)]}(g)),b=[g].concat(v).reduce(function(e,n){var r,i,o,s,a,l,d,p,g,y,v,b;return e.concat(L(n)===S?(i=(r={placement:n,boundary:c,rootBoundary:h,padding:u,flipVariations:f,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,p=void 0===(d=r.allowedAutoPlacements)?M:d,0===(v=(y=(g=j(i))?l?P:P.filter(function(e){return j(e)===g}):A).filter(function(e){return p.indexOf(e)>=0})).length&&(v=y),Object.keys(b=v.reduce(function(e,n){return e[n]=Q(t,{placement:n,boundary:o,rootBoundary:s,padding:a})[L(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,_=t.rects.popper,C=new Map,O=!0,R=b[0],N=0;N=0,B=z?"width":"height",U=Q(t,{placement:I,boundary:c,rootBoundary:h,altBoundary:d,padding:u}),H=z?F?x:E:F?k:"top";w[B]>_[B]&&(H=W(H));var $=W(H),V=[];if(o&&V.push(U[D]<=0),a&&V.push(U[H]<=0,U[$]<=0),V.every(function(e){return e})){R=I,O=!1;break}C.set(I,V)}if(O)for(var Y=f?3:1,K=function(e){var t=b.find(function(t){var n=C.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return R=t,"break"},X=Y;X>0&&"break"!==K(X);X--);t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,f=n.tetherOffset,m=void 0===f?0:f,g=Q(t,{boundary:s,rootBoundary:u,padding:h,altBoundary:c}),v=L(t.placement),b=j(t.placement),w=!b,S=F(v),A="x"===S?"y":"x",C=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,M="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(C){if(void 0===i||i){var D,z="y"===S?"top":E,B="y"===S?k:x,U="y"===S?"height":"width",H=C[S],$=H+g[z],W=H-g[B],V=p?-P[U]/2:0,q=b===T?O[U]:P[U],Y=b===T?-P[U]:-O[U],K=t.elements.arrow,X=p&&K?y(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:G(),J=Z[z],et=Z[B],en=ee(0,O[U],X[U]),er=w?O[U]/2-V-en-J-R.mainAxis:q-en-J-R.mainAxis,ei=w?-O[U]/2+V+en+et+R.mainAxis:Y+en+et+R.mainAxis,eo=t.elements.arrow&&_(t.elements.arrow),es=eo?"y"===S?eo.clientTop||0:eo.clientLeft||0:0,ea=null!=(D=null==N?void 0:N[S])?D:0,el=ee(p?l($,H+er-ea-es):$,H,p?a(W,H+ei-ea):W);C[S]=el,I[S]=el-H}if(void 0!==o&&o){var eu,ec,eh="x"===S?"top":E,ed="x"===S?k:x,ep=C[A],ef="y"===A?"height":"width",em=ep+g[eh],eg=ep-g[ed],ey=-1!==["top",E].indexOf(v),ev=null!=(ec=null==N?void 0:N[A])?ec:0,eb=ey?em:ep-O[ef]-P[ef]-ev+R.altAxis,ew=ey?ep+O[ef]+P[ef]-ev-R.altAxis:eg,e_=p&&ey?(eu=ee(eb,ep,ew))>ew?ew:eu:ee(p?eb:em,ep,p?ew:eg);C[A]=e_,I[A]=e_-ep}t.modifiersData[r]=I}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=L(n.placement),l=F(a),u=[E,x].indexOf(a)>=0?"height":"width";if(o&&s){var c,h=(c=i.padding,Z("number"!=typeof(c="function"==typeof c?c(Object.assign({},n.rects,{placement:n.placement})):c)?c:J(c,A))),d=y(o),p="y"===l?"top":E,f="y"===l?k:x,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],v=_(o),b=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,w=h[p],S=b-d[u]-h[f],T=b/2-d[u]/2+(m/2-g/2),C=ee(w,T,S);n.modifiersData[r]=((t={})[l]=C,t.centerOffset=C-T,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;if(null!=r){if("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!Y(t.elements.popper,r))return;t.elements.arrow=r}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Q(t,{elementContext:"reference"}),a=Q(t,{altBoundary:!0}),l=et(s,r),u=et(a,i,o),c=en(l),h=en(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}}]}),ei="tippy-content",eo="tippy-arrow",es="tippy-svg-arrow",ea={passive:!0,capture:!0},el=function(){return document.body};function eu(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ec(e,t){var n=({}).toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function eh(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ed(e,t){var n;return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function ep(e){return[].concat(e)}function ef(e,t){-1===e.indexOf(t)&&e.push(t)}function em(e){return[].slice.call(e)}function eg(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function ey(){return document.createElement("div")}function ev(e){return["Element","Fragment"].some(function(t){return ec(e,t)})}function eb(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function ew(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function e_(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function ek(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var ex={isTouch:!1},eE=0;function eS(){!ex.isTouch&&(ex.isTouch=!0,window.performance&&document.addEventListener("mousemove",eA))}function eA(){var e=performance.now();e-eE<20&&(ex.isTouch=!1,document.removeEventListener("mousemove",eA)),eE=e}function eT(){var e=document.activeElement;if(e&&e._tippy&&e._tippy.reference===e){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var eC="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.msCrypto,eO=Object.assign({appendTo:el,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),eP=Object.keys(eO);function eM(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=eO[i])?r:o),t},{});return Object.assign({},e,t)}function eR(e,t){var n,r=Object.assign({},t,{content:eh(t.content,[e])},t.ignoreAttributes?{}:((n=t.plugins)?Object.keys(eM(Object.assign({},eO,{plugins:n}))):eP).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{}));return r.aria=Object.assign({},eO.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function eN(e,t){e.innerHTML=t}function eI(e){var t=ey();return!0===e?t.className=eo:(t.className=es,ev(e)?t.appendChild(e):eN(t,e)),t}function eD(e,t){ev(t.content)?(eN(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?eN(e,t.content):e.textContent=t.content)}function eL(e){var t=e.firstElementChild,n=em(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(ei)}),arrow:n.find(function(e){return e.classList.contains(eo)||e.classList.contains(es)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function ej(e){var t=ey(),n=ey();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ey();function i(n,r){var i=eL(t),o=i.box,s=i.content,a=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&eD(s,e.props),r.arrow?a?n.arrow!==r.arrow&&(o.removeChild(a),o.appendChild(eI(r.arrow))):o.appendChild(eI(r.arrow)):a&&o.removeChild(a)}return r.className=ei,r.setAttribute("data-state","hidden"),eD(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}ej.$$tippy=!0;var eF=1,ez=[],eB=[];function eU(e,t){void 0===t&&(t={});var n,r=eO.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",eS,ea),window.addEventListener("blur",eT);var i=Object.assign({},t,{plugins:r}),o=(ev(n=e)?[n]:ec(n,"NodeList")?em(n):Array.isArray(n)?n:em(document.querySelectorAll(n))).reduce(function(e,t){var n=t&&function(e,t){var n,r,i,o,s,a,l,u,c=eR(e,Object.assign({},eO,eM(eg(t)))),h=!1,d=!1,p=!1,f=!1,m=[],g=ed(V,c.interactiveDebounce),y=eF++,v=(n=c.plugins).filter(function(e,t){return n.indexOf(e)===t}),b={id:y,reference:e,popper:ey(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(t){if(!b.state.isDestroyed){M("onBeforeUpdate",[b,t]),$();var n=b.props,r=eR(e,Object.assign({},n,eg(t),{ignoreAttributes:!0}));b.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(I(),g=ed(V,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?ep(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),N(),P(),k&&k(n,r),b.popperInstance&&(X(),Z().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var t=b.state.isVisible,n=b.state.isDestroyed,r=!b.state.isEnabled,i=ex.isTouch&&!b.props.touch,o=eu(b.props.duration,0,eO.duration);if(!(t||n||r||i||(u||e).hasAttribute("disabled"))&&(M("onShow",[b],!1),!1!==b.props.onShow(b))){if(b.state.isVisible=!0,T()&&(_.style.visibility="visible"),P(),F(),b.state.isMounted||(_.style.transition="none"),T()){var s,a,c,h=eL(_);eb([h.box,h.content],0)}l=function(){var e;if(b.state.isVisible&&!f){if(f=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,T()&&b.props.animation){var t=eL(_),n=t.box,r=t.content;eb([n,r],o),ew([n,r],"visible")}R(),N(),ef(eB,b),null==(e=b.popperInstance)||e.forceUpdate(),M("onMount",[b]),b.props.animation&&T()&&B(o,function(){b.state.isShown=!0,M("onShown",[b])})}},a=b.props.appendTo,c=u||e,(s=b.props.interactive&&a===el||"parent"===a?c.parentNode:eh(a,[c])).contains(_)||s.appendChild(_),b.state.isMounted=!0,X()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=eu(b.props.duration,1,eO.duration);if(!e&&!t&&!n&&(M("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,f=!1,h=!1,T()&&(_.style.visibility="hidden"),I(),z(),P(!0),T()){var i,o=eL(_),s=o.box,a=o.content;b.props.animation&&(eb([s,a],r),ew([s,a],"hidden"))}(R(),N(),b.props.animation)?T()&&(i=b.unmount,B(r,function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&i()})):b.unmount()}},hideWithInteractivity:function(e){C().addEventListener("mousemove",g),ef(ez,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(G(),Z().forEach(function(e){e._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),eB=eB.filter(function(e){return e!==b}),b.state.isMounted=!1,M("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),$(),delete e._tippy,b.state.isDestroyed=!0,M("onDestroy",[b]))}};if(!c.render)return b;var w=c.render(b),_=w.popper,k=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,e._tippy=b,_._tippy=b;var x=v.map(function(e){return e.fn(b)}),E=e.hasAttribute("aria-expanded");return H(),N(),P(),M("onCreate",[b]),c.showOnCreate&&J(),_.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",g)}),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===S()[0]}function T(){var e;return!!(null!=(e=b.props.render)&&e.$$tippy)}function C(){var t,n,r=(u||e).parentNode;return r&&null!=(n=ep(r)[0])&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function O(e){return b.state.isMounted&&!b.state.isVisible||ex.isTouch||s&&"focus"===s.type?0:eu(b.props.delay,+!e,eO.delay)}function P(e){void 0===e&&(e=!1),_.style.pointerEvents=b.props.interactive&&!e?"":"none",_.style.zIndex=""+b.props.zIndex}function M(e,t,n){if(void 0===n&&(n=!0),x.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=b.props)[e].apply(r,t)}}function R(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=_.id;ep(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function N(){!E&&b.props.aria.expanded&&ep(b.props.triggerTarget||e).forEach(function(t){b.props.interactive?t.setAttribute("aria-expanded",b.state.isVisible&&t===(u||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function I(){C().removeEventListener("mousemove",g),ez=ez.filter(function(e){return e!==g})}function D(t){if(!ex.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(b.props.interactive&&ek(_,n))){if(ep(b.props.triggerTarget||e).some(function(e){return ek(e,n)})){if(ex.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout(function(){d=!1}),b.state.isMounted||z())}}}function L(){p=!0}function j(){p=!1}function F(){var e=C();e.addEventListener("mousedown",D,!0),e.addEventListener("touchend",D,ea),e.addEventListener("touchstart",j,ea),e.addEventListener("touchmove",L,ea)}function z(){var e=C();e.removeEventListener("mousedown",D,!0),e.removeEventListener("touchend",D,ea),e.removeEventListener("touchstart",j,ea),e.removeEventListener("touchmove",L,ea)}function B(e,t){var n=eL(_).box;function r(e){e.target===n&&(e_(n,"remove",r),t())}if(0===e)return t();e_(n,"remove",a),e_(n,"add",r),a=r}function U(t,n,r){void 0===r&&(r=!1),ep(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})})}function H(){A()&&(U("touchstart",W,{passive:!0}),U("touchend",q,{passive:!0})),b.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(U(e,W),e){case"mouseenter":U("mouseleave",q);break;case"focus":U(eC?"focusout":"blur",Y);break;case"focusin":U("focusout",Y)}})}function $(){m.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),m=[]}function W(e){var t,n=!1;if(!(!b.state.isEnabled||K(e))&&!d){var r=(null==(t=s)?void 0:t.type)==="focus";s=e,u=e.currentTarget,N(),!b.state.isVisible&&ec(e,"MouseEvent")&&ez.forEach(function(t){return t(e)}),"click"===e.type&&(0>b.props.trigger.indexOf("mouseenter")||h)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:J(e),"click"===e.type&&(h=!n),n&&!r&&Q(e)}}function V(t){var n,r,i,o=t.target,s=(u||e).contains(o)||_.contains(o);("mousemove"!==t.type||!s)&&(n=Z().concat(_).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null}).filter(Boolean),r=t.clientX,i=t.clientY,n.every(function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,s=n.placement.split("-")[0],a=n.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,c="right"===s?a.left.x:0,h="left"===s?a.right.x:0,d=t.top-i+l>o,p=i-t.bottom-u>o,f=t.left-r+c>o,m=r-t.right-h>o;return d||p||f||m})&&(I(),Q(t)))}function q(e){if(!(K(e)||b.props.trigger.indexOf("click")>=0&&h)){if(b.props.interactive)return void b.hideWithInteractivity(e);Q(e)}}function Y(t){(!(0>b.props.trigger.indexOf("focusin"))||t.target===(u||e))&&(b.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||Q(t))}function K(e){return!!ex.isTouch&&A()!==e.type.indexOf("touch")>=0}function X(){G();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,a=T()?eL(_).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||u||e}:e,h=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=eL(_).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];T()&&a&&h.push({name:"arrow",options:{element:a,padding:3}}),h.push.apply(h,(null==n?void 0:n.modifiers)||[]),b.popperInstance=er(c,_,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:h}))}function G(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return em(_.querySelectorAll("[data-tippy-root]"))}function J(e){b.clearDelayTimeouts(),e&&M("onTrigger",[b,e]),F();var t=O(!0),n=S(),i=n[0],o=n[1];ex.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout(function(){b.show()},t):b.show()}function Q(e){if(b.clearDelayTimeouts(),M("onUntrigger",[b,e]),!b.state.isVisible)return void z();if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!h){var t=O(!1);t?i=setTimeout(function(){b.state.isVisible&&b.hide()},t):o=requestAnimationFrame(function(){b.hide()})}}}(t,i);return n&&e.push(n),e},[]);return ev(e)?o[0]:o}eU.defaultProps=eO,eU.setDefaultProps=function(e){Object.keys(e).forEach(function(t){eO[t]=e[t]})},eU.currentInput=ex,Object.assign({},H,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),eU.setDefaultProps({render:ej});let eH=eU},37930:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(6029),i=n(21938),o=n(83550),s=n(53297);let a=e=>{let{className:t,title:n,...a}=e,l=(0,s.vX)(a);return(0,r.jsx)(o.r,{title:n,className:(0,i.cx)("chakra-menu__option-group",t),...l})};a.displayName="MenuOptionGroup"},38225:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});var r=n(55729);function i(){let[,e]=(0,r.useReducer)(e=>e+1,0);return e}},38394:(e,t,n)=>{"use strict";function r(e,t){return Array(t+1).join(e)}n.d(t,{A:()=>M});var i,o=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function s(e){return c(e,o)}var a=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function l(e){return c(e,a)}var u=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function c(e,t){return t.indexOf(e.nodeName)>=0}function h(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var d={};function p(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function f(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function m(e,t,n){for(var r=0;r-1)return!0}else if("function"==typeof r){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}(i,t,n))return i}}function g(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function y(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}d.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},d.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},d.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var i=Number(t.nodeName.charAt(1));if("setext"!==n.headingStyle||!(i<3))return"\n\n"+r("#",i)+" "+e+"\n\n";var o=r(1===i?"=":"-",e.length);return"\n\n"+e+"\n"+o+"\n\n"}},d.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},d.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},d.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",i=t.parentNode;if("OL"===i.nodeName){var o=i.getAttribute("start"),s=Array.prototype.indexOf.call(i.children,t);r=(o?Number(o)+s:s+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},d.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},d.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var i,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],s=t.firstChild.textContent,a=n.fence.charAt(0),l=3,u=RegExp("^"+a+"{3,}","gm");i=u.exec(s);)i[0].length>=l&&(l=i[0].length+1);var c=r(a,l);return"\n\n"+c+o+"\n"+s.replace(/\n$/,"")+"\n"+c+"\n\n"}},d.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},d.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href"),r=p(t.getAttribute("title"));return r&&(r=' "'+r+'"'),"["+e+"]("+n+r+")"}},d.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,i,o=t.getAttribute("href"),s=p(t.getAttribute("title"));switch(s&&(s=' "'+s+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",i="["+e+"]: "+o+s;break;case"shortcut":r="["+e+"]",i="["+e+"]: "+o+s;break;default:var a=this.references.length+1;r="["+e+"]["+a+"]",i="["+a+"]: "+o+s}return this.references.push(i),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},d.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},d.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},d.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},d.image={filter:"img",replacement:function(e,t){var n=p(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=p(t.getAttribute("title"));return r?"!["+n+"]("+r+(i?' "'+i+'"':"")+")":""}},f.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){var t;return e.isBlank?this.blankRule:(t=m(this.array,e,this.options))||(t=m(this._keep,e,this.options))||(t=m(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t'+e+"","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:s,isVoid:l,isPre:t.preformattedCode?_:null}),n}function _(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function k(e,t){var n;return e.isBlock=s(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=!l(n=e)&&!c(n,u)&&/^\s*$/i.test(n.textContent)&&!h(n,a)&&!h(n,u),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n,r={leading:(n=e.textContent.match(/^(([ \t\r\n]*)(\s*))[\s\S]*?((\s*?)([ \t\r\n]*))$/))[1],leadingAscii:n[2],leadingNonAscii:n[3],trailing:n[4],trailingNonAscii:n[5],trailingAscii:n[6]};return r.leadingAscii&&x("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&x("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}(e,t),e}function x(e,t,n){var r,i,o;return"left"===e?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(3===r.nodeType?o=i.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?o=!1:1!==r.nodeType||s(r)||(o=i.test(r.textContent))),o}var E=Array.prototype.reduce,S=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function A(e){if(!(this instanceof A))return new A(e);this.options=function(e){for(var t=1;t0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=t.replace(/^\n*/,""),i=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,i)+r}A.prototype={turndown:function(e){var t;if(!(null!=(t=e)&&("string"==typeof t||t.nodeType&&(1===t.nodeType||9===t.nodeType||11===t.nodeType))))throw TypeError(e+" is not a string, or an element/document/fragment node.");return""===e?"":C.call(this,T.call(this,new w(e,this.options)))},use:function(e){if(Array.isArray(e))for(var t=0;t{"use strict";n.d(t,{A:()=>a});var r=n(55729);function i(){return(i=Object.assign||function(e){for(var t=1;t{"use strict";n.d(t,{D:()=>l});var r=n(6029),i=n(21938),o=n(25062),s=n(45460),a=n(2241);let l=(0,s.R)(function(e,t){let{getHeaderProps:n}=(0,o.C_)(),s=(0,o.jm)();return(0,r.jsx)(a.B.header,{...n(e,t),className:(0,i.cx)("chakra-popover__header",e.className),__css:s.header})});l.displayName="PopoverHeader"},38822:e=>{e.exports=function(e){return null==e}},38867:(e,t,n)=>{var r=n(19962),i=n(70930),o=n(5549);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},39099:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>w,Gw:()=>S,KI:()=>N,Q1:()=>i,Qh:()=>E,Uw:()=>s,b:()=>x,ef:()=>o});var r=n(66195);function i(){}var o=.7,s=1.4285714285714286,a="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=RegExp(`^rgb\\(${a},${a},${a}\\)$`),d=RegExp(`^rgb\\(${u},${u},${u}\\)$`),p=RegExp(`^rgba\\(${a},${a},${a},${l}\\)$`),f=RegExp(`^rgba\\(${u},${u},${u},${l}\\)$`),m=RegExp(`^hsl\\(${l},${u},${u}\\)$`),g=RegExp(`^hsla\\(${l},${u},${u},${l}\\)$`),y={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function w(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=h.exec(e))?new S(t[1],t[2],t[3],1):(t=d.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?k(t[1],t[2],t[3],t[4]):(t=f.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?_(y[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function _(e){return new S(e>>16&255,e>>8&255,255&e,1)}function k(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function x(e){return(e instanceof i||(e=w(e)),e)?new S((e=e.rgb()).r,e.g,e.b,e.opacity):new S}function E(e,t,n,r){return 1==arguments.length?x(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function A(){return`#${P(this.r)}${P(this.g)}${P(this.b)}`}function T(){let e=C(this.opacity);return`${1===e?"rgb(":"rgba("}${O(this.r)}, ${O(this.g)}, ${O(this.b)}${1===e?")":`, ${e})`}`}function C(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function O(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function P(e){return((e=O(e))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new I(e,t,n,r)}function R(e){if(e instanceof I)return new I(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=w(e)),!e)return new I;if(e instanceof I)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,l=s-o,u=(s+o)/2;return l?(a=t===s?(n-r)/l+(n0&&u<1?0:a,new I(a,l,u,e.opacity)}function N(e,t,n,r){return 1==arguments.length?R(e):new I(e,t,n,null==r?1:r)}function I(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function D(e){return(e=(e||0)%360)<0?e+360:e}function L(e){return Math.max(0,Math.min(1,e||0))}function j(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.A)(i,w,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:b,toString:b}),(0,r.A)(S,E,(0,r.X)(i,{brighter(e){return e=null==e?s:Math.pow(s,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new S(O(this.r),O(this.g),O(this.b),C(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatHex8:function(){return`#${P(this.r)}${P(this.g)}${P(this.b)}${P((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:T,toString:T})),(0,r.A)(I,N,(0,r.X)(i,{brighter(e){return e=null==e?s:Math.pow(s,e),new I(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new I(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(j(e>=240?e-240:e+120,i,r),j(e,i,r),j(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new I(D(this.h),L(this.s),L(this.l),C(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=C(this.opacity);return`${1===e?"hsl(":"hsla("}${D(this.h)}, ${100*L(this.s)}%, ${100*L(this.l)}%${1===e?")":`, ${e})`}`}}))},39446:(e,t,n)=>{"use strict";n.d(t,{mS:()=>u,$G:()=>l,kv:()=>c});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},i="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,s=function(e){var t=new Set([e]),n=new Set,r=e.match(o);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=i.prerelease)return function(t){return t===e};function s(e){return n.add(e),!1}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(o);if(!r)return s(e);var a={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=a.prerelease||i.major!==a.major)return s(e);if(0===i.major)return i.minor===a.minor&&i.patch<=a.patch?(t.add(e),!0):s(e);return i.minor<=a.minor?(t.add(e),!0):s(e)}}(i),a=Symbol.for("opentelemetry.js.api."+i.split(".")[0]);function l(e,t,n,o){void 0===o&&(o=!1);var s,l=r[a]=null!=(s=r[a])?s:{version:i};if(!o&&l[e]){var u=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(u.stack||u.message),!1}if(l.version!==i){var u=Error("@opentelemetry/api: Registration of version v"+l.version+" for "+e+" does not match previously registered API v"+i);return n.error(u.stack||u.message),!1}return l[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+i+"."),!0}function u(e){var t,n,i=null==(t=r[a])?void 0:t.version;if(i&&s(i))return null==(n=r[a])?void 0:n[e]}function c(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+i+".");var n=r[a];n&&delete n[e]}},39730:(e,t,n)=>{var r=n(61308),i=n(3540),o=n(73696),s=o&&o.isRegExp;e.exports=s?i(s):r},39829:(e,t,n)=>{"use strict";var r=n(55729),i=n(3009),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var h=a(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var p=s(e,(h=u(function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(s=e,a=n)}var s,a,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],h[1]);return l(function(){d.hasValue=!0,d.value=p},[p]),c(p),p}},40162:(e,t,n)=>{"use strict";n.d(t,{B:()=>l,Q:()=>u});var r=n(6029),i=n(21938),o=n(55729),s=n(45460),a=n(2241);let l=(0,s.R)(function(e,t){let{spacing:n="0.5rem",spacingX:s,spacingY:l,children:c,justify:h,direction:d,align:p,className:f,shouldWrapChildren:m,...g}=e,y=(0,o.useMemo)(()=>m?o.Children.map(c,(e,t)=>(0,r.jsx)(u,{children:e},t)):c,[c,m]);return(0,r.jsx)(a.B.div,{ref:t,className:(0,i.cx)("chakra-wrap",f),...g,children:(0,r.jsx)(a.B.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:h,alignItems:p,flexDirection:d,listStyleType:"none",gap:n,columnGap:s,rowGap:l,padding:"0"},children:y})})});l.displayName="Wrap";let u=(0,s.R)(function(e,t){let{className:n,...o}=e;return(0,r.jsx)(a.B.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,i.cx)("chakra-wrap__listitem",n),...o})});u.displayName="WrapItem"},40913:(e,t,n)=>{"use strict";var r=n(6029),i=n(55729),o=n(27229),s=n(16503),a=n(88507),l=n(45460),u=n(94740),c=n(2241),h=n(40697),d=n(40452),p=n(26420),f=n(96500),m=n(72470),g=n(38036),y=n(77979),v=n(3276),b=n(8527),w=n(40162),_=n(59272),k=n(18078),x=n(53996),E=n(4192);let[S,A]=function(){let e=i.createContext(void 0);return e.displayName="AutoCompleteContext",[e.Provider,function t(){var n;let r=i.useContext(e);if(!r){let e=Error("useAutoCompleteContext: `context` is undefined. Seems you forgot to wrap all autoomplete components within ``");throw e.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,e,t),e}return r},e]}();function T(e){return null!=e&&e.length?e[e.length-1]:void 0}function C(e,t,n=1,r=!0){if(0===t)return -1;let i=e+n;return -1===e&&(i=n>0?0:t-1),i=r?(i%t+t)%t:Math.max(0,Math.min(i,t-1))}function O(e){return Array.isArray(e)}function P(e){return null!==e&&"object"==typeof e&&!O(e)}function M(e){return O(e)?O(e)&&0===e.length:P(e)?P(e)&&0===Object.keys(e).length:null==e||""===e}function R(e){return typeof e>"u"}function N(e){return"u">typeof e}function I(e,t){let n={...e};return t.forEach(e=>{delete n[e]}),n}function D(e,...t){return"function"==typeof e?e(...t):e}var L=function(e,t){for(var n,r=i.Children.toArray(e),o=0;o{var t;return null==(t="string"==typeof e||"number"==typeof e?e:e[Object.keys(e)[0]])?void 0:t.toString()},U=(e,t,n)=>(null==t?void 0:t.toLowerCase().indexOf(null==e?void 0:e.toLowerCase()))>=0||(null==n?void 0:n.toLowerCase().indexOf(null==e?void 0:e.toLowerCase()))>=0||z(e,t)>=.5||z(e,n)>=.5;(0,l.R)((e,t)=>{let n=function(e){var t;let{prefocusFirstItem:n=!0,closeOnBlur:r=!0,creatable:l,emphasize:u,emptyState:c=!0,defaultEmptyStateProps:h={},freeSolo:d,isReadOnly:p,listAllValuesOnFocus:f,maxSuggestions:m,multiple:g,closeOnSelect:y=!g,defaultValue:v,defaultValues:b=v?[v]:[],onReady:w,defaultIsOpen:_,disableFilter:k,isLoading:x=!1,placement:E="bottom",restoreOnBlurIfEmpty:S=!d,shouldRenderSuggestions:A=()=>!0,submitKeys:O=[],suggestWhenEmpty:j,value:z,values:H=z?"string"==typeof z?[z]:[...z]:void 0}=e;d=d||!!g||e.freeSolo;let{isOpen:$,onClose:W,onOpen:V}=(0,o.j)({defaultIsOpen:_}),q=(0,i.useMemo)(()=>D(e.children,{isOpen:$,onClose:W,onOpen:V}),[e.children,$]),Y=(0,i.useMemo)(()=>F(q,e=>{var t;return(null==(t=null==e?void 0:e.type)?void 0:t.displayName)==="AutoCompleteItem"}).map(e=>{let t=function(e,t){let n={};return t.forEach(t=>{t in e&&(n[t]=e[t])}),n}(e.props,["value","label","fixed","disabled"]),{getValue:n=B}=e.props,r=n(t.value);return{...N(t.label)?t:{...t,label:r},value:r,originalValue:t.value}}),[q]),K=(0,i.useRef)(null),X=(0,i.useRef)(null),G=(0,i.useRef)(null),Z=(0,i.useRef)(null),[J,Q]=(0,i.useState)(!1),ee="";g?ee="":R(b)?R(H)||(ee=H[0]):ee=b[0];let[et,en]=(0,i.useState)(ee??""),er=(0,i.useMemo)(()=>k?Y:Y.filter(t=>t.fixed||D(e.filter||U,et,t.value,t.label)||J).filter((e,t)=>!m||e.fixed||t[...er,...ei],[er,ei]),[es,ea]=(0,s.i)({defaultValue:b.map(e=>null==e?void 0:e.toString()),value:H,onChange:t=>{let n=eo.find(e=>e.value===t[0]);if(!n)return;let r=t.map(e=>eo.find(t=>t.value===e));D(e.onChange,g?t:t[0],g?r:n)}});(0,i.useEffect)(()=>{0===eo.length&&!c&&$&&W()},[eo.length,c,$]);let[el,eu]=(0,i.useState)(n?null==(t=Y[0])?void 0:t.value:null),ec=e.maxSelections||es.length+1,eh=eo.findIndex(e=>e.value===el),ed=function(e,t,n=!0){let r=C(e,t.length,1,n);return t[r]}(eh,eo,!!e.rollNavigation),ep=function(e,t,n=!0){let r=function(e,t,n=!0){return C(e,t,-1,n)}(e,t.length,n);return t[r]}(eh,eo,!!e.rollNavigation),ef=null==eo?void 0:eo[0],em=T(eo),eg=!eo.some(e=>e.value===el);(0,i.useEffect)(()=>{var e;eg&&eu(n?null==(e=Y[0])?void 0:e.value:null)},[eg]),(0,a.w)(()=>{n&&eu(null==ef?void 0:ef.value)},[et,null==ef?void 0:ef.value]),(0,i.useEffect)(()=>{var e;!$&&n&&eu(null==(e=Y[0])?void 0:e.value)},[$]),(0,i.useEffect)(()=>{$&&f&&Q(!0)},[$,f,Q]),(0,i.useEffect)(()=>{let t=Y.find(e=>e.value===el);D(e.onOptionFocus,{item:t,focusMethod:Z.current,isNewInput:null==t?void 0:t.creatable})},[el,e.onOptionFocus]);let ey=t=>{var n,r;let i=eo.find(e=>e.value===t),o=(null==i?void 0:i.label)||(null==i?void 0:i.value);en(()=>g?"":o??""),!es.includes(t)&&es.lengthg?[...e,t]:[t]),g&&(null==(n=K.current)||n.focus()),e.focusInputOnSelect&&(null==(r=K.current)||r.focus()),D(e.onSelectOption,{item:i,selectMethod:Z.current,isNewInput:null==i?void 0:i.creatable}),null!=i&&i.creatable&&D(e.onCreateOption,{item:I(i,["noFilter"]),selectMethod:Z.current}),y&&W()},ev=(t,n)=>{var r;ea(n=>{let r=Y.find(e=>e.value===t);return r||!0!==l||(r={label:t,value:t}),r?(D(e.onTagRemoved,t,r,n),n.filter(e=>e!==t)):n});let i=Y.find(e=>e.value===t);et===((null==i?void 0:i.label)||(null==i?void 0:i.value))&&en(""),n&&(null==(r=K.current)||r.focus())},eb=g?es.map(e=>{var t;return{label:(null==(t=Y.find(t=>t.value===(null==e?void 0:e.toString())))?void 0:t.label)||e,onRemove:()=>ev(e)}}):[];return(0,i.useEffect)(()=>{D(w,{tags:eb})},[es]),{autoCompleteProps:e,children:q,filteredList:eo,filteredResults:er,focusedValue:el,defaultEmptyStateProps:h,getEmptyStateProps:e=>{if(eo.every(e=>e.noFilter)&&c&&!l)return"boolean"==typeof c?e:D(c,{query:et})},getGroupProps:e=>{let t,n,r,i,o=(t=e.children,N(L(t,e=>{var t,n;let r=D((null==(t=e.props)?void 0:t.getValue)||B,(null==(n=e.props)?void 0:n.value)||{});return eo.some(e=>e.value===r)})));return{divider:{hasFirstChild:(n=e.children,L(n,e=>{var t;return(null==(t=null==e?void 0:e.type)?void 0:t.displayName)==="AutoCompleteItem"&&e.props.value===(null==ef?void 0:ef.value)})),hasLastChild:(r=e.children,i=T(eo.filter(e=>R(null==e?void 0:e.noFilter))),L(r,e=>{var t;return(null==(t=null==e?void 0:e.type)?void 0:t.displayName)==="AutoCompleteItem"&&e.props.value===(null==i?void 0:i.value)}))},group:{display:o?"initial":"none"}}},getInputProps:(t,n)=>{let{onBlur:i,onChange:o,onFocus:s,onKeyDown:a,variant:l,...u}=t;return{wrapper:{ref:X,onClick:()=>{var e;null==(e=null==K?void 0:K.current)||e.focus()},...((e,t)=>{let n={},r={},{field:i}=e;return i&&Object.keys(i).forEach(e=>{if(!1===e.startsWith("--input"))n[e]=i[e];else{let t=i[e],n=e.replace("--input-","").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()});-1!==t.indexOf(".")&&(t=t.substring(t.indexOf(".")+1)),r[n]=t}}),{...t&&{...n,...r,_focusWithin:e.field._focus,pos:"relative",minH:9,py:1.5,spacing:3},cursor:"text",h:"fit-content"}})(n,g),...u},input:{isReadOnly:p,onFocus:t=>{D(s,t),e.openOnFocus&&!p&&V(),e.selectOnFocus&&t.target.select(),f&&Q(!0)},onBlur:e=>{var t,n;D(i,e);let o=e.relatedTarget===(null==G?void 0:G.current)||(null==(t=G.current)?void 0:t.contains(e.relatedTarget)),s=null==(n=X.current)?void 0:n.contains(e.relatedTarget);if(!o&&!s&&(r&&W(),!es.includes(e.target.value)&&S)){let e=T(es),t=Y.find(t=>t.value===e);en((null==t?void 0:t.label)||(null==t?void 0:t.value)||"")}},onChange:e=>{let t=e.target.value;D(o,e),en(t);let n=M(t);D(A,t)&&(!n||j)?V():W(),Q(!1)},onKeyDown:e=>{var t;D(a,e),Z.current="keyboard";let{key:n}=e,r=eo[eh];if(["Enter",...O].includes(n)){r&&!(null!=r&&r.disabled)&&$?ey(null==r?void 0:r.value):null==(t=K.current)||t.focus(),e.preventDefault();return}if("ArrowDown"===n){$?eu(null==ed?void 0:ed.value):V(),e.preventDefault();return}if("ArrowUp"===n){$?eu(null==ep?void 0:ep.value):V(),e.preventDefault();return}if("Tab"===n)return void($&&r&&!(null!=r&&r.disabled)?ey(null==r?void 0:r.value):W());if("Home"===n){eu(null==ef?void 0:ef.value),e.preventDefault();return}if("End"===n){eu(null==em?void 0:em.value),e.preventDefault();return}"Escape"===n&&(W(),e.preventDefault())},value:et,variant:g?"unstyled":l,...u}}},getItemProps:(e,t)=>{var n;let{_fixed:r,_focus:i,children:o,disabled:s,label:a,value:l,fixed:c,getValue:h=B,onClick:d,onMouseOver:p,sx:f,...m}=e,g=t?l:null==(n=h(l))?void 0:n.toString(),y=g===el,v=eo.findIndex(e=>e.value===g)>=0,b=o||a||g;return{item:{..."string"!=typeof b||!u?{children:b}:{dangerouslySetInnerHTML:{__html:"string"!=typeof b||M(et)?b:b.toString().replace(RegExp(et.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"gi"),e=>`${e}`)}},"aria-selected":es.includes(g),"aria-disabled":s,_disabled:{opacity:.4,cursor:"not-allowed",userSelect:"none"},onClick:e=>{var t;D(d,e),s?null==(t=K.current)||t.focus():ey(g)},onMouseOver:e=>{D(p,e),eu(g),Z.current="mouse"},sx:{...f,mark:{color:"inherit",bg:"transparent",...P(u)?u:{fontWeight:u?"extrabold":"inherit"}}},...y&&(i||{bg:"whiteAlpha.100",_light:{bg:"gray.200"}}),...c&&r,...m},root:{isValidSuggestion:v,value:g}}},inputRef:K,interactionRef:Z,isLoading:x,isOpen:$,itemList:Y,listRef:G,onClose:W,onOpen:V,placement:E,query:et,removeItem:ev,resetItems:e=>{var t;ea([]),e&&(null==(t=K.current)||t.focus())},setQuery:en,tags:eb,value:z,values:es}}(e),{children:l,isOpen:h,onClose:d,onOpen:p,placement:f,resetItems:m,removeItem:g}=n;(0,i.useImperativeHandle)(t,()=>({resetItems:m,removeItem:g}));let{matchWidth:y=!0}=n.autoCompleteProps;return(0,r.jsx)(S,{value:n,children:(0,r.jsx)(u.A,{isLazy:!0,isOpen:h,autoFocus:!1,placement:f,closeOnBlur:!0,matchWidth:y,children:(0,r.jsx)(c.B.div,{w:"full",ref:t,children:l})})})}).displayName="AutoComplete",(0,l.R)((e,t)=>{let{focusedValue:n,getItemProps:o,interactionRef:s}=A(),a=(0,i.useRef)(),l=(0,h.SV)(t,a),u=o(e),{isValidSuggestion:c,value:p}=u.root,f=n===p;(0,i.useEffect)(()=>{var e;f&&"keyboard"===s.current&&(null==(e=null==a?void 0:a.current)||e.scrollIntoView({behavior:"smooth",block:"nearest"}))},[f,s]),(0,i.useEffect)(()=>{"string"!=typeof p&&console.warn("wow"),"string"!=typeof p&&R(e.getValue)&&console.error("You must define the `getValue` prop, when an Item's value is not a string")},[]);let{children:m,dangerouslySetInnerHTML:g,...y}=u.item,v=I(y,["groupId"]);return c?(0,r.jsx)(d.s,{ref:l,...H,...v,children:m||(0,r.jsx)("span",{dangerouslySetInnerHTML:g})}):null}).displayName="AutoCompleteItem";let H={mx:"2",px:"2",py:"2",rounded:"md",cursor:"pointer"},$=(0,l.R)((e,t)=>{let{children:n,showDivider:i,...o}=e,s=I(o,["groupSibling"]),{getGroupProps:a}=A(),{group:l}=a(e),u=q(e);return(0,r.jsxs)(p.a,{ref:t,...l,...s,children:[(0,r.jsx)(f.c,{...u.top}),n,(0,r.jsx)(f.c,{...u.bottom})]})}),W=(0,l.R)((e,t)=>(0,r.jsx)(d.s,{...V,...e,ref:t}));$.displayName="AutoCompleteGroup",W.displayName="AutoCompleteGroupTitle";let V={ml:5,my:1,fontSize:"xs",letterSpacing:"wider",fontWeight:"extrabold",textTransform:"uppercase"},q=e=>{let{getGroupProps:t}=A(),n=e.groupSibling,{divider:{hasFirstChild:r,hasLastChild:i}}=t(e),o={my:2,borderColor:e.dividerColor};return{top:{...o,mb:4,display:!e.showDivider||r?"none":""},bottom:{...o,display:!e.showDivider||i||n?"none":""}}},Y=(0,l.R)((e,t)=>{let{isLoading:n}=A(),{loadingIcon:i,...o}=e;return(0,r.jsxs)(m.M,{children:[(0,r.jsx)(g.p,{...o,ref:t}),n&&(0,r.jsx)(y.t,{children:i||(0,r.jsx)(v.y,{})})]})}),K=(0,l.R)((e,t)=>{let{autoCompleteProps:n,inputRef:o,getInputProps:s,tags:a,setQuery:l,value:u,itemList:c}=A(),{children:d,isInvalid:p,hidePlaceholder:f,...m}=e,{value:g}=m;(0,i.useEffect)(()=>{if(void 0!==u&&("string"==typeof u||u instanceof String)){let e=c.find(e=>e.value===u);l(void 0===e?u:e.label)}},[u]),(0,i.useEffect)(()=>{void 0!==g&&("string"==typeof g||g instanceof String)&&l(g)},[g]);let{wrapper:y,input:v}=s(m,(0,b.o)("Input",e)),{ref:k,...x}=y,E=(0,h.SV)(t,o),S=D(d,{tags:a});f&&(v={...v,placeholder:Array.isArray(S)&&S.length?void 0:v.placeholder});let T=(0,r.jsx)(Y,{isInvalid:p,...v,ref:E}),C=(0,r.jsxs)(w.B,{"aria-invalid":p,...x,ref:k,children:[S,(0,r.jsx)(w.Q,{as:Y,...v,ref:E})]});return(0,r.jsx)(_.d,{children:n.multiple?C:T})});K.displayName="Input",K.id="Input";let X=e=>{let{getEmptyStateProps:t,defaultEmptyStateProps:n}=A(),i=t((0,r.jsx)(d.s,{...G,...n,children:"No options found!"}));return(0,r.jsx)(p.a,{...e,children:i})},G={fontSize:"sm",align:"center",justify:"center",fontWeight:"bold",fontStyle:"italic"},Z=["AutoCompleteGroup","AutoCompleteItem","AutoCompleteCreatable"];(0,l.R)((e,t)=>{let{children:n,loadingState:o,...s}=e,{listRef:a,isLoading:l}=A(),u=(0,h.SV)(t,a),[c,d]=(e=>{let t=i.Children.map(e,(t,n)=>{var r;if((null==(r=null==t?void 0:t.type)?void 0:r.displayName)==="AutoCompleteGroup"){let r=i.Children.toArray(e)[n+1];return i.cloneElement(t,{groupSibling:!!r&&"AutoCompleteGroup"===r.type.displayName})}return t}),n=i.Children.toArray(t).filter(e=>{var t;return!Z.includes(null==(t=null==e?void 0:e.type)?void 0:t.displayName)});return[i.Children.toArray(t).filter(e=>{var t;return Z.includes(null==(t=null==e?void 0:e.type)?void 0:t.displayName)}),n]})(n);return(0,r.jsxs)(k.h,{ref:u,w:"inherit",...J,...s,children:[l&&(0,r.jsx)(x.o,{children:o||(0,r.jsx)(v.y,{size:"md"})}),!l&&(0,r.jsxs)(r.Fragment,{children:[c,(0,r.jsx)(X,{}),d]})]})}).displayName="AutoCompleteList";let J={py:"4",opacity:"0",bg:"#232934",rounded:"md",maxH:"350px",border:"none",shadow:"base",zIndex:"popover",overflowY:"auto",_light:{bg:"#ffffff"},_focus:{boxShadow:"none"}},Q=((0,i.memo)(e=>{let{label:t,onRemove:n,disabled:i,...o}=e;return(0,r.jsx)(w.Q,{children:(0,r.jsxs)(E.vw,{borderRadius:"md",fontWeight:"normal",...i&&Q,...o,children:[(0,r.jsx)(E.d1,{children:t}),(0,r.jsx)(E.TV,{onClick:()=>!i&&D(n),cursor:"pointer",...i&&Q})]})})}),{cursor:"text",userSelect:"none",opacity:.4,_focus:{boxShadow:"none"}})},40995:(e,t,n)=>{"use strict";function r(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}n.d(t,{A:()=>r})},41136:(e,t,n)=>{"use strict";n.d(t,{Bq:()=>R,MV:()=>y,M_:()=>m,NC:()=>x,NO:()=>A,Op:()=>T,Oy:()=>k,Rr:()=>v,SF:()=>O,VH:()=>M,_o:()=>b,jy:()=>S,ts:()=>C,v8:()=>P,vL:()=>_,zd:()=>g});var r=n(48331),i=Object.defineProperty,o=Object.defineProperties,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))u.call(t,n)&&c(e,n,t[n]);return e},d=(e,t)=>o(e,s(t));function p(e,...t){return{didIntersect:t.length>0,message:e,points:t}}function f(e,t,n=0){let i=[e[0]+t[0]/2,e[1]+t[1]/2],o=r.l.rotWith(e,i,n),s=r.l.rotWith(r.l.add(e,[t[0],0]),i,n),a=r.l.rotWith(r.l.add(e,t),i,n),l=r.l.rotWith(r.l.add(e,[0,t[1]]),i,n);return[["top",[o,s]],["right",[s,a]],["bottom",[a,l]],["left",[l,o]]]}function m(e,t){let n=r.l.slope(e[0],e[1]),i=r.l.slope(t[0],t[1]);if(n===i)return;if(Number.isNaN(n)&&!Number.isNaN(i))return[e[0][0],(e[0][0]-t[0][0])*i+t[0][1]];if(Number.isNaN(i)&&!Number.isNaN(n))return[t[0][0],(t[0][0]-e[0][0])*n+e[0][1]];let o=(n*e[0][0]-i*t[0][0]+t[0][1]-e[0][1])/(n-i),s=i*(o-t[0][0])+t[0][1];return[o,s]}function g(e,t,n,r){let[i,o]=e,[s,a]=t,[l,u]=n,[c,h]=r;if(a/s!=(h-u)/(c-l)){let e=s*(h-u)-a*(c-l);if(0!==e){let t=((o-u)*(c-l)-(i-l)*(h-u))/e,n=((o-u)*s-(i-l)*a)/e;if(t>=0&&n>=0&&n<=1)return p("intersection",[i+t*s,o+t*a])}}return p("no intersection")}function y(e,t,n,i,o,s){return _(e,r.l.mul(t,0x3b9ac9ff),n,i,o,s)}function v(e,t,n,r=0){let{minX:i,minY:o,width:s,height:a}=n;return function(e,t,n,r,i=0){var o,s,a,l,u;return o=n,s=r,a=i,l=e,u=t,f(o,s,a).reduce((e,[t,[n,r]])=>{let i=g(l,u,n,r);return i&&e.push(p(t,...i.points)),e},[]).filter(e=>e.didIntersect)}(e,t,[i,o],[s,a],r)}function b(e,t,n,i){let o=r.l.sub(e,n),s=r.l.sub(i,n),a=r.l.sub(t,e),l=s[0]*o[1]-s[1]*o[0],u=a[0]*o[1]-a[1]*o[0],c=s[1]*a[0]-s[0]*a[1];if(0===l||0===u)return p("coincident");if(0===c)return p("parallel");if(0!==c){let t=l/c,n=u/c;if(0<=t&&t<=1&&0<=n&&n<=1)return p("intersection",r.l.add(e,r.l.mul(a,t)))}return p("no intersection")}function w(e,t,n,i){let o=(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]),s=2*((t[0]-e[0])*(e[0]-n[0])+(t[1]-e[1])*(e[1]-n[1])),a=s*s-4*o*(n[0]*n[0]+n[1]*n[1]+e[0]*e[0]+e[1]*e[1]-2*(n[0]*e[0]+n[1]*e[1])-i*i);if(a<0)return p("outside");if(0===a)return p("tangent");let l=Math.sqrt(a),u=(-s+l)/(2*o),c=(-s-l)/(2*o);if((u<0||u>1)&&(c<0||c>1))if(u<0&&c<0||u>1&&c>1)return p("outside");else return p("inside");let h=[];return 0<=u&&u<=1&&h.push(r.l.lrp(e,t,u)),0<=c&&c<=1&&h.push(r.l.lrp(e,t,c)),p("intersection",...h)}function _(e,t,n,i,o,s=0){if(0===i||0===o||r.l.isEqual(e,t))return p("no intersection");i=i<0?i:-i,o=o<0?o:-o,e=r.l.sub(r.l.rotWith(e,n,-s),n),t=r.l.sub(r.l.rotWith(t,n,-s),n);let a=r.l.sub(t,e),l=a[0]*a[0]/i/i+a[1]*a[1]/o/o,u=2*e[0]*a[0]/i/i+2*e[1]*a[1]/o/o,c=e[0]*e[0]/i/i+e[1]*e[1]/o/o-1,h=[],d=u*u-4*l*c;if(0===d)h.push(-u/2/l);else if(d>0){let e=Math.sqrt(d);h.push((-u+e)/2/l),h.push((-u-e)/2/l)}return p("intersection",...h.filter(e=>e>=0&&e<=1).map(i=>r.l.add(n,r.l.add(e,r.l.mul(r.l.sub(t,e),i)))).map(e=>r.l.rotWith(e,n,s)))}function k(e,t,n){var r=n,i=e,o=t;let{minX:s,minY:a,width:l,height:u}=r;return E([s,a],[l,u],i,o)}function x(e,t,n){let r=[];for(let i=1;i{let s=b(n,r,i,o);return s&&e.push(p(t,...s.points)),e},[]).filter(e=>e.didIntersect)}function S(e,t,n,i,o){let{minX:s,minY:a,width:l,height:u}=o;return f([s,a],[l,u]).reduce((o,[s,[a,l]])=>{let u=function(e,t,n,i,o,s){let a=r.l.angle(e,n),l=r.l.angle(e,i),u=function(e,t,n,r=0,i,o){return t===n?w(i,o,e,t):_(i,o,e,t,n,r)}(e,t,t,0,o,s);if(!u.didIntersect)return p("no intersection");let c=u.points.filter(t=>(function(e,t,n){if(n===e||n===t)return!0;let r=2*Math.PI,i=(t-e+r)%r;return i<=Math.PI!=(n-e+r)%r>i})(a,l,r.l.angle(e,t)));return 0===c.length?p("no intersection"):p("intersection",...c)}(e,t,n,i,a,l);return u&&o.push(d(h({},u),{message:s})),o},[]).filter(e=>e.didIntersect)}function A(e,t,n,r){return w(n,r,e,t)}function T(e,t,n,r){let i=n[0]-e[0],o=n[1]-e[1],s=Math.sqrt(i*i+o*o),a=(s*s-r*r+t*t)/(2*s),l=Math.sqrt(t*t-a*a);return i/=s,o/=s,p("intersection",[e[0]+i*a-o*l,e[1]+o*a+i*l],[e[0]+i*a+o*l,e[1]+o*a-i*l])}function C(e,t,n,r,i){let{minX:o,minY:s,width:a,height:l}=i;return function(e,t,n,r=0,i,o){if(t===n)return f(i,o).reduce((n,[r,[i,o]])=>{let s=w(i,o,e,t);return s&&n.push(d(h({},s),{message:r})),n},[]).filter(e=>e.didIntersect);return function(e,t,n,r,i,o=0){return f(e,t).reduce((e,[t,[s,a]])=>{let l=_(s,a,n,r,i,o);return l&&e.push(d(h({},l),{message:t})),e},[]).filter(e=>e.didIntersect)}(i,o,e,t,n,r)}(e,t,n,r,[o,s],[a,l])}function O(e,t){var n,r,i,o;return n=[e.minX,e.minY],r=[e.width,e.height],i=[t.minX,t.minY],o=[t.width,t.height],f(n,r).reduce((e,[t,[n,r]])=>{let s=E(i,o,n,r);return e.push(...s.map(e=>p(`${t} ${e.message}`,...e.points))),e},[]).filter(e=>e.didIntersect)}function P(e,t){return function(e,t){var n,r;return n=[t.minX,t.minY],r=[t.width,t.height],f(n,r).reduce((t,[n,[r,i]])=>{let o=x(r,i,e);return o.didIntersect&&t.push(p(n,...o.points)),t},[]).filter(e=>e.didIntersect)}(t,e)}function M(e,t){return R(t,e)}function R(e,t){var n,r;return n=[t.minX,t.minY],r=[t.width,t.height],f(n,r).reduce((t,[n,[r,i]])=>{let o=function(e,t,n){let r=[];for(let i=1;ie.didIntersect)}},41352:(e,t,n)=>{"use strict";let r,i;n.d(t,{qO:()=>ey,To:()=>el,Ay:()=>el});var o=n(3670),s=n(51598),a=n(78619);function l(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var u=0;function c(e){return"__private_"+u+++"_"+e}var h=c("callbacks"),d=c("publish");class p{constructor(){Object.defineProperty(this,d,{value:f}),Object.defineProperty(this,h,{writable:!0,value:new Set}),this.state={}}getState(){return this.state}setState(e){let t={...this.state},n={...this.state,...e};this.state=n,l(this,d)[d](t,n,e)}subscribe(e){return l(this,h)[h].add(e),()=>{l(this,h)[h].delete(e)}}}function f(){for(var e=arguments.length,t=Array(e),n=0;n{e(...t)})}function m(e){let t=e.lastIndexOf(".");return -1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}p.VERSION="3.0.2";var g=n(89557);function y(e){let t="";return e.replace(/[^A-Z0-9]/ig,e=>(t+=`-${e.charCodeAt(0).toString(32)}`,"/"))+t}function v(e){return e<10?`0${e}`:e.toString()}function b(){let e=new Date,t=v(e.getHours()),n=v(e.getMinutes()),r=v(e.getSeconds());return`${t}:${n}:${r}`}let w={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){let{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:s}=this.getOpts().restrictions;if(o&&t.filter(e=>!e.isGhost).length+1>o)throw new S(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(s&&!s.some(t=>t.includes("/")?!!e.type&&x(e.type.replace(/;.*?$/,""),t):"."===t[0]&&!!e.extension&&e.extension.toLowerCase()===t.slice(1).toLowerCase())){let e=s.join(", ");throw new S(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(i&&null!=e.size&&t.reduce((e,t)=>e+t.size,e.size)>i)throw new S(this.i18n("exceedsSize",{size:k(i),file:e.name}));if(n&&null!=e.size&&e.size>n)throw new S(this.i18n("exceedsSize",{size:k(n),file:e.name}));if(r&&null!=e.size&&e.sizee,onBeforeUpload:e=>e,store:new p,logger:w,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=_),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=a(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let[n,r]=t[1].split(".");return n=parseInt(n,10),r=parseInt(r,10),!!(n<15)||15===n&&!!(r<15063)||!!(n>18)||18===n&&!!(r>=18218)}(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),C(this,R)[R]=new A(()=>this.opts,this.i18n),C(this,N)[N]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),C(this,W)[W]()}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new o.A([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{let i={...t[r]};i.progress={...i.progress,...e},n[r]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){C(this,D)[D].add(e)}removePreProcessor(e){return C(this,D)[D].delete(e)}addPostProcessor(e){C(this,j)[j].add(e)}removePostProcessor(e){return C(this,j)[j].delete(e)}addUploader(e){C(this,L)[L].add(e)}removeUploader(e){return C(this,L)[L].delete(e)}setMeta(e){let t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){let n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);let r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),o=r.filter(e=>!e.progress.uploadStarted),s=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),a=r.filter(e=>e.progress.uploadStarted),l=r.filter(e=>e.isPaused),u=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),h=i.filter(e=>!e.isPaused),d=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:o,startedFiles:s,uploadStartedFiles:a,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:h,processingFiles:d,isUploadStarted:a.length>0,isAllComplete:100===t&&u.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==i.length&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{C(this,R)[R].validate(e,t)}catch(e){return e}return null}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!!t[e]&&!t[e].isGhost}addFile(e){C(this,U)[U](e);let{files:t}=this.getState(),n=C(this,H)[H](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),C(this,$)[$](),n.id}addFiles(e){C(this,U)[U]();let t={...this.getState().files},n=[],r=[];for(let i=0;i{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name} id: ${n[e].id} type: ${n[e].type}`)}),n.length>0&&C(this,$)[$](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+=` * ${t.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}}removeFiles(e,t){let{files:n,currentUploads:r}=this.getState(),i={...n},o={...r},s=Object.create(null);function a(e){return void 0===s[e]}e.forEach(e=>{n[e]&&(s[e]=n[e],delete i[e])}),Object.keys(o).forEach(e=>{let t=r[e].fileIDs.filter(a);if(0===t.length)return void delete o[e];let{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw Error("individualCancellation is disabled");o[e]={...r[e],fileIDs:t}});let l={currentUploads:o,files:i};0===Object.keys(i).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();let u=Object.keys(s);u.forEach(e=>{this.emit("file-removed",s[e],t)}),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{let n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});let n=C(this,q)[q](t,{forceAllowNewUpload:!0});return C(this,X)[X](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){let{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);let t=C(this,q)[q]([e],{forceAllowNewUpload:!0});return C(this,X)[X](t)}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){let e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length){this.emit("progress",0),this.setState({totalProgress:0});return}let t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){let t=100*e.length,r=Math.round(n.reduce((e,t)=>e+t.progress.percentage,0)/t*100);this.setState({totalProgress:r});return}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0),i=r/t.length;r+=i*n.length;let o=0;t.forEach(e=>{o+=e.progress.bytesUploaded}),n.forEach(e=>{o+=i*(e.progress.percentage||0)/100});let s=0===r?0:Math.round(o/r*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);let n=new e(this,t),r=n.id;if(!r)throw Error("Your plugin must have an id");if(!n.type)throw Error("Your plugin must have a type");let i=this.getPlugin(r);if(i)throw Error(`Already found a plugin named '${i.id}'. Tried to use: '${r}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`);return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in C(this,M)[M]?C(this,M)[M][n.type].push(n):C(this,M)[M][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(C(this,M)[M])){let n=t.find(t=>t.id===e);if(null!=n)return n}}[r](e){return C(this,M)[M][e]}iteratePlugins(e){Object.values(C(this,M)[M]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();let t=C(this,M)[M][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);let r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),C(this,N)[N](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",C(this,V)[V]),window.removeEventListener("offline",C(this,V)[V]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);let r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){let{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return(this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e])?C(this,X)[X](e):(C(this,K)[K](e),Promise.reject(Error("Nonexistent upload")))}[i](){return C(this,q)[q](...arguments)}addResultData(e,t){if(!C(this,Y)[Y](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);let{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=C(this,M)[M].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState(),n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>C(this,R)[R].validateMinNumberOfFiles(t)).catch(e=>{throw C(this,F)[F](e),e}).then(()=>{if(!C(this,B)[B](t))throw new S(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{let{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{let t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});let i=C(this,q)[q](r);return C(this,X)[X](i)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function Z(e,t){let{message:n,details:r=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(e,"warning")}function J(e){let{missingFields:t,error:n}=C(this,R)[R].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function Q(e){let t=!0;for(let n of Object.values(e))C(this,z)[z](n)||(t=!1);return t}function ee(e){let{allowNewUpload:t}=this.getState();if(!1===t){let t=new S(this.i18n("noMoreFilesAllowed"));throw C(this,F)[F](t,e),t}}function et(e,t){var n,r;let i;t instanceof File&&(t={name:t.name,type:t.type,size:t.size,data:t});let o=function(e){var t;if(e.type)return e.type;let n=e.name?null==(t=m(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in g.A?g.A[n]:"application/octet-stream"}(t),s=(n=t).name?n.name:"image"===o.split("/")[0]?`${o.split("/")[0]}.${o.split("/")[1]}`:"noname",a=m(s).extension,l=!!t.isRemote,u=(r={...t,type:o},i="uppy","string"==typeof r.name&&(i+=`-${y(r.name.toLowerCase())}`),void 0!==r.type&&(i+=`-${r.type}`),r.meta&&"string"==typeof r.meta.relativePath&&(i+=`-${y(r.meta.relativePath.toLowerCase())}`),void 0!==r.data.size&&(i+=`-${r.data.size}`),void 0!==r.data.lastModified&&(i+=`-${r.data.lastModified}`),i);if(this.checkIfFileAlreadyExists(u)){let e=new S(this.i18n("noDuplicates",{fileName:s}));throw C(this,F)[F](e,t),e}let c=t.meta||{};c.name=s,c.type=o;let h=Number.isFinite(t.data.size)?t.data.size:null,d={source:t.source||"",id:u,name:s,extension:a||"",meta:{...this.getState().meta,...c},type:o,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:h,uploadComplete:!1,uploadStarted:null},size:h,isRemote:l,remote:t.remote||"",preview:t.preview},p=this.opts.onBeforeFileAdded(d,e);if(!1===p){let e=new S("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof p&&null!==p&&(d=p);try{let t=Object.keys(e).map(t=>e[t]);C(this,R)[R].validate(d,t)}catch(e){throw C(this,F)[F](e,d),e}return d}function en(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function er(){let e,t=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),"object"==typeof n&&n.message){let t=Error(n.message);t.details=n.message,n.details&&(t.details+=` ${n.details}`),t.message=this.i18n("failedToUpload",{file:null==e?void 0:e.name}),C(this,F)[F](t)}else C(this,F)[F](n)}),this.on("upload-stalled",(t,n)=>{let{message:r}=t,i=n.map(e=>e.meta.name).join(", ");e||(this.info({message:r,details:i},"warning",this.opts.infoTimeout),e=setTimeout(()=>{e=null},this.opts.infoTimeout)),this.log(`${r} ${i}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:C(this,j)[j].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}})}),this.on("preprocess-complete",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}})}),this.on("postprocess-complete",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&C(this,z)[z](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",C(this,V)[V]),window.addEventListener("offline",C(this,V)[V]),setTimeout(C(this,V)[V],3e3))}function ei(e,t){void 0===t&&(t={});let{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw Error("Cannot create a new upload: already uploading.");let o=((e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function eo(e){let{currentUploads:t}=this.getState();return t[e]}function es(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function ea(e){let t,{currentUploads:n}=this.getState(),r=n[e],i=r.step||0,o=[...C(this,D)[D],...C(this,L)[L],...C(this,j)[j]];try{for(let t=i;t{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});let t=r.fileIDs.map(e=>this.getFile(e)),i=t.filter(e=>!e.error),o=t.filter(e=>e.error);await this.addResultData(e,{successful:i,failed:o,uploadID:e}),r=(n=this.getState().currentUploads)[e]}return r&&(t=r.result,this.emit("complete",t),C(this,K)[K](e)),null==t&&this.log(`Not setting result for an upload that has been removed: ${e}`),t}G.VERSION="3.0.6";let el=G;var eu=n(18257),ec=n(74044),eh=n(99596),ed=n(94352);function ep(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var ef=0,em="__private_"+ef+++"_updateUI";class eg extends ed.A{constructor(){super(...arguments),Object.defineProperty(this,em,{writable:!0,value:void 0})}getTargetPlugin(e){let t;return"object"==typeof e&&e instanceof eg?t=e:"function"==typeof e&&this.uppy.iteratePlugins(n=>{n instanceof e&&(t=n)}),t}mount(e,t){var n,r;let i=t.id,o=(void 0===n&&(n=document),"string"==typeof e)?n.querySelector(e):(0,ec.A)(e)?e:null;if(o){let t,n;this.isTargetDOMEl=!0;let s=document.createElement("div");return s.classList.add("uppy-Root"),ep(this,em)[em]=(r=e=>{this.uppy.getPlugin(this.id)&&((0,eu.XX)(this.render(e),s),this.afterUpdate())},t=null,n=null,function(){for(var e=arguments.length,i=Array(e),o=0;o(t=null,r(...n)))),t}),this.uppy.log(`Installing ${i} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),(0,eu.XX)(this.render(this.uppy.getState()),s),this.el=s,o.appendChild(s),s.dir=this.opts.direction||(0,eh.A)(s)||"ltr",this.onMount(),this.el}let s=this.getTargetPlugin(e);if(s)return this.uppy.log(`Installing ${i} to ${s.id}`),this.parent=s,this.el=s.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let a=`Invalid target option given to ${i}.`;throw"function"==typeof e?a+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":a+="If you meant to target an HTML element, please make sure that the element exists. Check that the