=48&&g<=57&&(x=w=!1),w&&x&&(w=v,x=y),w||x){if(x)for(E=S.length-1;E>=0&&(h=S[E],!(S[E].level=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},9909:(e,t,n)=>{"use strict";var r=n(5699);function o(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=r,e.exports=o},1116:e=>{"use strict";e.exports=function(e){var t,n,r,o,i,a,l=e.tokens;for(t=0,n=l.length;t{"use strict";var t=/^([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])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var o,i,a,l,s,u,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(s=e.pos,u=e.posMax;;){if(++c>=u)return!1;if(60===(l=e.src.charCodeAt(c)))return!1;if(62===l)break}return o=e.src.slice(s+1,c),n.test(o)?(i=e.md.normalizeLink(o),!!e.md.validateLink(i)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(o),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=o.length+2,!0)):!!t.test(o)&&(i=e.md.normalizeLink("mailto:"+o),!!e.md.validateLink(i)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(o),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=o.length+2,!0))}},7361:e=>{"use strict";e.exports=function(e,t){var n,r,o,i,a,l,s,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c{"use strict";function t(e,t){var n,r,o,i,a,l,s,u,c={},d=t.length;if(d){var f=0,p=-2,h=[];for(n=0;na;r-=h[r]+1)if((i=t[r]).marker===o.marker&&i.open&&i.end<0&&(s=!1,(i.close||o.open)&&(i.length+o.length)%3==0&&(i.length%3==0&&o.length%3==0||(s=!0)),!s)){u=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+u,h[r]=u,o.open=!1,i.end=n,i.close=!1,l=-1,p=-2;break}-1!==l&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=l)}}}e.exports=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n{"use strict";function t(e,t){var n,r,o,i,a,l;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(o=t[r.end],l=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,a=String.fromCharCode(r.marker),(i=e.tokens[r.token]).type=l?"strong_open":"em_open",i.tag=l?"strong":"em",i.nesting=1,i.markup=l?a+a:a,i.content="",(i=e.tokens[o.token]).type=l?"strong_close":"em_close",i.tag=l?"strong":"em",i.nesting=-1,i.markup=l?a+a:a,i.content="",l&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n{"use strict";var r=n(2949),o=n(6483).has,i=n(6483).isValidEntityCode,a=n(6483).fromCodePoint,l=/^((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,u,c,d=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(d))return!1;if(d+1>=f)return!1;if(35===e.src.charCodeAt(d+1)){if(u=e.src.slice(d).match(l))return t||(n="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),(c=e.push("text_special","",0)).content=i(n)?a(n):a(65533),c.markup=u[0],c.info="entity"),e.pos+=u[0].length,!0}else if((u=e.src.slice(d).match(s))&&o(r,u[1]))return t||((c=e.push("text_special","",0)).content=r[u[1]],c.markup=u[0],c.info="entity"),e.pos+=u[0].length,!0;return!1}},5677:(e,t,n)=>{"use strict";for(var r=n(6483).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){o[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,i,a,l,s,u=e.pos,c=e.posMax;if(92!==e.src.charCodeAt(u))return!1;if(++u>=c)return!1;if(10===(n=e.src.charCodeAt(u))){for(t||e.push("hardbreak","br",0),u++;u=55296&&n<=56319&&u+1=56320&&i<=57343&&(l+=e.src[u+1],u++),a="\\"+l,t||(s=e.push("text_special","",0),n<256&&0!==o[n]?s.content=l:s.content=a,s.markup=a,s.info="escape"),e.pos=u+1,!0}},3498:e=>{"use strict";e.exports=function(e){var t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t0&&r++,"text"===o[t].type&&t+1{"use strict";var r=n(6340).n;e.exports=function(e,t){var n,o,i,a,l,s=e.pos;return!(!e.md.options.html||(i=e.posMax,60!==e.src.charCodeAt(s)||s+2>=i||33!==(n=e.src.charCodeAt(s+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(o=e.src.slice(s).match(r))||(t||((a=e.push("html_inline","",0)).content=e.src.slice(s,s+o[0].length),l=a.content,/^\s]/i.test(l)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(a.content)&&e.linkLevel--),e.pos+=o[0].length,0)))}},2566:(e,t,n)=>{"use strict";var r=n(6483).normalizeReference,o=n(6483).isSpace;e.exports=function(e,t){var n,i,a,l,s,u,c,d,f,p,h,g,m,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(u=e.pos+2,(s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=s+1)=b)return!1;for(m=c,(f=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(f.str),e.md.validateLink(v)?c=f.pos:v=""),m=c;c=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if(void 0===e.env.references)return!1;if(c=0?l=e.src.slice(m,c++):c=s+1):c=s+1,l||(l=e.src.slice(u,s)),!(d=e.env.references[r(l)]))return e.pos=y,!1;v=d.href,p=d.title}return t||(a=e.src.slice(u,s),e.md.inline.parse(a,e.md,e.env,g=[]),(h=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],h.children=g,h.content=a,p&&n.push(["title",p])),e.pos=c,e.posMax=b,!0}},6368:(e,t,n)=>{"use strict";var r=n(6483).normalizeReference,o=n(6483).isSpace;e.exports=function(e,t){var n,i,a,l,s,u,c,d,f="",p="",h=e.pos,g=e.posMax,m=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(s=e.pos+1,(l=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((u=l+1)=g)return!1;if(m=u,(c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok){for(f=e.md.normalizeLink(c.str),e.md.validateLink(f)?u=c.pos:f="",m=u;u=g||41!==e.src.charCodeAt(u))&&(v=!0),u++}if(v){if(void 0===e.env.references)return!1;if(u=0?a=e.src.slice(m,u++):u=l+1):u=l+1,a||(a=e.src.slice(s,l)),!(d=e.env.references[r(a)]))return e.pos=h,!1;f=d.href,p=d.title}return t||(e.pos=s,e.posMax=l,e.push("link_open","a",1).attrs=n=[["href",f]],p&&n.push(["title",p]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=u,e.posMax=g,!0}},949:e=>{"use strict";var t=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;e.exports=function(e,n){var r,o,i,a,l,s,u;return!(!e.md.options.linkify||e.linkLevel>0||(r=e.pos)+3>e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2)||!(o=e.pending.match(t))||(i=o[1],!(a=e.md.linkify.matchAtStart(e.src.slice(r-i.length)))||(l=(l=a.url).replace(/\*+$/,""),s=e.md.normalizeLink(l),!e.md.validateLink(s)||(n||(e.pending=e.pending.slice(0,-i.length),(u=e.push("link_open","a",1)).attrs=[["href",s]],u.markup="linkify",u.info="auto",(u=e.push("text","",0)).content=e.md.normalizeLinkText(l),(u=e.push("link_close","a",-1)).markup="linkify",u.info="auto"),e.pos+=l.length-i.length,0))))}},3722:(e,t,n)=>{"use strict";var r=n(6483).isSpace;e.exports=function(e,t){var n,o,i,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,o=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(i=n-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a{"use strict";var r=n(5699),o=n(6483).isWhiteSpace,i=n(6483).isPunctChar,a=n(6483).isMdAsciiPunct;function l(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}l.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},l.prototype.push=function(e,t,n){this.pending&&this.pushPending();var o=new r(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o},l.prototype.scanDelims=function(e,t){var n,r,l,s,u,c,d,f,p,h=e,g=!0,m=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h{"use strict";function t(e,t){var n,r,o,i,a,l=[],s=t.length;for(n=0;n{"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r{"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},6032:()=>{},5775:()=>{},1264:()=>{},7083:(e,t)=>{"use strict";t._=t._interop_require_default=function(e){return e&&e.__esModule?e:{default:e}}},5570:(e,t)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}t._=t._interop_require_wildcard=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}},4837:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};o.r(e),o.d(e,{attentionMarkers:()=>nm,contentInitial:()=>Zg,disable:()=>rm,document:()=>Yg,flow:()=>Jg,flowInitial:()=>Kg,insideSpan:()=>tm,string:()=>Xg,text:()=>em});var t={};function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}o.r(t),o.d(t,{boolean:()=>$m,booleanish:()=>Ym,commaOrSpaceSeparated:()=>ev,commaSeparated:()=>Xm,number:()=>Km,overloadedBoolean:()=>Zm,spaceSeparated:()=>Jm});var i,a,l=o(7162),s=o.n(l),u=o(2784),c=o.t(u,2),d=o(8316),f="colors",p="sizes",h="space",g={gap:h,gridGap:h,columnGap:h,gridColumnGap:h,rowGap:h,gridRowGap:h,inset:h,insetBlock:h,insetBlockEnd:h,insetBlockStart:h,insetInline:h,insetInlineEnd:h,insetInlineStart:h,margin:h,marginTop:h,marginRight:h,marginBottom:h,marginLeft:h,marginBlock:h,marginBlockEnd:h,marginBlockStart:h,marginInline:h,marginInlineEnd:h,marginInlineStart:h,padding:h,paddingTop:h,paddingRight:h,paddingBottom:h,paddingLeft:h,paddingBlock:h,paddingBlockEnd:h,paddingBlockStart:h,paddingInline:h,paddingInlineEnd:h,paddingInlineStart:h,top:h,right:h,bottom:h,left:h,scrollMargin:h,scrollMarginTop:h,scrollMarginRight:h,scrollMarginBottom:h,scrollMarginLeft:h,scrollMarginX:h,scrollMarginY:h,scrollMarginBlock:h,scrollMarginBlockEnd:h,scrollMarginBlockStart:h,scrollMarginInline:h,scrollMarginInlineEnd:h,scrollMarginInlineStart:h,scrollPadding:h,scrollPaddingTop:h,scrollPaddingRight:h,scrollPaddingBottom:h,scrollPaddingLeft:h,scrollPaddingX:h,scrollPaddingY:h,scrollPaddingBlock:h,scrollPaddingBlockEnd:h,scrollPaddingBlockStart:h,scrollPaddingInline:h,scrollPaddingInlineEnd:h,scrollPaddingInlineStart:h,fontSize:"fontSizes",background:f,backgroundColor:f,backgroundImage:f,borderImage:f,border:f,borderBlock:f,borderBlockEnd:f,borderBlockStart:f,borderBottom:f,borderBottomColor:f,borderColor:f,borderInline:f,borderInlineEnd:f,borderInlineStart:f,borderLeft:f,borderLeftColor:f,borderRight:f,borderRightColor:f,borderTop:f,borderTopColor:f,caretColor:f,color:f,columnRuleColor:f,fill:f,outline:f,outlineColor:f,stroke:f,textDecorationColor:f,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:p,minBlockSize:p,maxBlockSize:p,inlineSize:p,minInlineSize:p,maxInlineSize:p,width:p,minWidth:p,maxWidth:p,height:p,minHeight:p,maxHeight:p,flexBasis:p,gridTemplateColumns:p,gridTemplateRows:p,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},m=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,v=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,m))(t);return o in e?e[o]:e[o]=n(t,...r)}},y=Symbol.for("sxs.internal"),b=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),A=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:w}=Object.prototype,x=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),E=/\s+(?![^()]*\))/,k=e=>t=>e(..."string"==typeof t?String(t).split(E):[t]),S={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:k(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:k(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:k(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:k(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:k(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:k(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},_=/([\d.]+)([^]*)/,C=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,T=(e,t)=>e in D&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${x(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${x(e)}:${n}fit-content`)+o)):String(t),D={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},L=e=>e?e+"-":"",O=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?L(t)+(a.includes("$")?"":L(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),R=/\s*,\s*(?![^()]*\))/,P=Object.prototype.toString,M=(e,t,n,r,o)=>{let i,a,l;const s=(e,t,n)=>{let u,c;const d=e=>{for(u in e){const h=64===u.charCodeAt(0),g=h&&Array.isArray(e[u])?e[u]:[e[u]];for(c of g){const e=/[A-Z]/.test(p=u)?p:p.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof c&&c&&c.toString===P&&(!r.utils[e]||!t.length);if(e in r.utils&&!g){const t=r.utils[e];if(t!==a){a=t,d(t(c)),a=null;continue}}else if(e in S){const t=S[e];if(t!==l){l=t,d(t(c)),l=null;continue}}if(h&&(f=u.slice(1)in r.media?"@media "+r.media[u.slice(1)]:u,u=f.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=_.test(t),l=.0625*(a?-1:1),[s,u]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+s+":"+("="!==n[0]&&1===n.length?u.replace(_,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+s+":"+(1===o.length?i.replace(_,((e,t,n)=>Number(t)+l*(">"===o?-1:1)+n)):i):"")+")"}))),g){const e=h?n.concat(u):[...n],r=h?[...t]:C(t,u.split(R));void 0!==i&&o(N(...i)),i=void 0,s(c,r,e)}else void 0===i&&(i=[[],t,n]),u=h||36!==u.charCodeAt(0)?u:`--${L(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&e in I?String(c)+"px":String(c):O(T(e,null==c?"":c),r.prefix,r.themeMap[e]),i[0].push(`${h?`${u} `:`${x(u)}:`}${c}`)}}var f,p};d(e),void 0!==i&&o(N(...i)),i=void 0};s(e,t,n)},N=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,I={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},B=e=>String.fromCharCode(e+(e>25?39:97)),j=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=B(t%52)+n;return B(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),F=["themed","global","styled","onevar","resonevar","allvar","inline"],H=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},z=e=>{let t;const n=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")},r=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(H(e)){for(let o=0,i=e.cssRules;i[o];++o){const a=Object(i[o]);if(1!==a.type)continue;const l=Object(i[o+1]);if(4!==l.type)continue;++o;const{cssText:s}=a;if(!s.startsWith("--sxs"))continue;const u=s.slice(14,-3).trim().split(/\s+/),c=F[u[0]];c&&(t||(t={sheet:e,reset:r,rules:{},toString:n}),t.rules[c]={group:l,index:o,cache:new Set(u)})}if(t)break}if(!t){const o=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,o(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:o("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:a}=t;for(let e=F.length-1;e>=0;--e){const t=F[e];if(!a[t]){const n=F[e+1],r=a[n]?a[n].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),a[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}q(a[t])}};return r(),t},q=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},U=Symbol(),V=v(),W=(e,t)=>V(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[y]){null==r.type&&(r.type=t[y].type);for(const e of t[y].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(Q(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),G(e,r,t)})),Q=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${L(o.prefix)}c-${j(r)}`,a=[],l=[],s=Object.create(null),u=[];for(const e in n)s[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){c=s,d=t,w.call(c,d)||(s[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&u.push(t);const o=n[e],i=[r,o,!A(o)];a.push(i)}}var c,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!A(t)];l.push(r)}return[i,r,a,l,s,u]},G=(e,t,n)=>{const[r,o,i,a]=$(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;nt.rules[e]={apply:n=>t[U].push([e,n])})),t})(n):null,s=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||Z;const{css:d,...f}=c,p={};for(const e in i)if(delete f[e],e in c){let t=c[e];"object"==typeof t&&t?p[e]={"@initial":i[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:i[e])}else p[e]=i[e];const h=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),M(o,[`.${r}`],[],e,(e=>{s.styled.apply(e)})));const t=Y(i,p,e.media),l=Y(a,p,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${j(i)}-${t}`;h.add(o);const l=(a?n.rules.resonevar:n.rules.onevar).cache,u=a?s.resonevar:s.onevar;l.has(o)||(l.add(o),M(i,[`.${o}`],[],e,(e=>{u.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${j(i)}-${o}`;h.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),M(i,[`.${t}`],[],e,(e=>{s.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${r}-i${j(d)}-css`;h.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),M(d,[`.${t}`],[],e,(e=>{s.inline.apply(e)})))}for(const e of String(c.className||"").trim().split(/\s+/))e&&h.add(e);const g=f.className=[...h].join(" ");return{type:t.type,className:g,selector:u,props:f,toString:()=>g,deferredInjector:l}};return b(c,{className:r,selector:u,[y]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},$=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,l]of e){""===t&&(t=i),n.push(i),o.push(...l);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||l.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},Y=(e,t,n,r)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,s=0,u=!1;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),u=!0}s+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[s]=o[s]||[]).push([r?"cv":`${e}-${i[e]}`,a,u])}return o},Z={},K=v(),J=(e,t)=>K(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=j(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}M(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return b(r,{toString:r})})),X=v(),ee=(e,t)=>X(e,(()=>n=>{const r=`${L(e.prefix)}k-${j(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];M(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return b(o,{get name(){return o()},toString:o})})),te=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+L(this.prefix)+L(this.scale)+this.token}toString(){return this.computedValue}},ne=v(),re=(e,t)=>ne(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${L(e.prefix)}t-${j(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${L(e.prefix)}${t}-${n}`,l=O(String(r[t][n]),e.prefix,t);i[t][n]=new te(n,l,t,e.prefix),a.push(`${o}:${l}`)}}const l=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return l()},selector:o,toString:l}})),oe=v(),ie=v(),ae=e=>{const t=(e=>{let t=!1;const n=oe(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...g},utils:"object"==typeof e.utils&&e.utils||{}},l=z(o),s={css:W(a,l),globalCss:J(a,l),keyframes:ee(a,l),createTheme:re(a,l),reset(){l.reset(),s.theme.toString()},theme:{},sheet:l,config:a,prefix:n,getCssText:l.toString,toString:l.toString};return String(s.theme=s.createTheme(i)),s}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>ie(e,(()=>{const n=W(e,t);return(...e)=>{const t=n(...e),r=t[y].type,o=u.forwardRef(((e,n)=>{const o=e&&e.as||r,{props:i,deferredInjector:a}=t(e);return delete i.as,i.ref=n,a?u.createElement(u.Fragment,null,u.createElement(o,i),u.createElement(a,null)):u.createElement(o,i)}));return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[y]=t[y],o}})))(t),t},le=()=>i||(i=ae()),se=(...e)=>le().createTheme(...e),ue=(...e)=>le().styled(...e);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;te.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function ke(...e){return u.useCallback(Ee(...e),e)}function Se(){return Se=Object.assign||function(e){for(var t=1;t{const{children:n,...r}=e;return u.Children.toArray(n).some(De)?u.createElement(u.Fragment,null,u.Children.map(n,(e=>De(e)?u.createElement(Ce,Se({},r,{ref:t}),e.props.children):e))):u.createElement(Ce,Se({},r,{ref:t}),n)}));_e.displayName="Slot";const Ce=u.forwardRef(((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...Le(r,n.props),ref:Ee(t,n.ref)}):u.Children.count(n)>1?u.Children.only(null):null}));Ce.displayName="SlotClone";const Te=({children:e})=>u.createElement(u.Fragment,null,e);function De(e){return u.isValidElement(e)&&e.type===Te}function Le(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Oe=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:u.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?_e:t;return u.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Re),u.createElement(i,Se({},o,{ref:n}))}))})),{}),Re="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",Pe="horizontal",Me=["horizontal","vertical"],Ne=u.forwardRef(((e,t)=>{const{decorative:n,orientation:r=Pe,...o}=e,i=Ie(r)?r:Pe,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return u.createElement(Oe.div,Se({"data-orientation":i},a,o,{ref:t}))}));function Ie(e){return Me.includes(e)}Ne.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Ie(r)?new Error(function(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${Pe}\`.`}(o,n)):null}};const Be=Ne;var je=o(2322),Fe={alignment:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"end"}},distribution:{around:{justifyContent:"space-around"},between:{justifyContent:"space-between"},evenly:{justifyContent:"space-evenly"},start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"}}},He=he("div",{}),ze=he("span",{}),qe=he("a",{}),Ue=he("blockquote",{}),Ve=he(He,{display:"flex",flexDirection:"row",variants:Fe,defaultVariants:{alignment:"start",distribution:"around"}}),We=he(He,{display:"flex",flexDirection:"column",variants:Fe,defaultVariants:{alignment:"start",distribution:"around"}});function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(Array.from(document.querySelectorAll("p[data-omnivore-anchor-idx]")).reverse());try{for(i.s();!(r=i.n()).done;){var a=r.value,l=a.getBoundingClientRect();if(l.height>0&&l.top>=50&&l.bottom<=e.clientHeight){if(o&&o.getBoundingClientRect().tope.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n`active-slide-${e}`,mt=(gt(ft),gt("playing"),gt(pt),gt(ht),"fullsize"),vt="flex_center",yt="no_scroll_padding",bt="prev",At="next",wt="swipe",xt="close",Et="onPointerDown",kt="onPointerMove",St="onPointerUp",_t="onPointerLeave",Ct="onPointerCancel",Tt="onKeyDown",Dt="onWheel",Lt="icon",Ot="contain",Rt="cover",Pt="Unknown action type",Mt={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[xt]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:Ot,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullDown:!1,closeOnBackdropClick:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function Nt(e,t){return{name:e,component:t}}function It(e,t){return{module:e,children:t}}function Bt(e,t,n){return e.module.name===t?n(e):e.children?[It(e.module,e.children.flatMap((e=>{var r;return null!==(r=Bt(e,t,n))&&void 0!==r?r:[]})))]:[e]}function jt(e,t,n){return e.flatMap((e=>{var r;return null!==(r=Bt(e,t,n))&&void 0!==r?r:[]}))}const Ft=(...e)=>[...e].filter((e=>Boolean(e))).join(" "),Ht=e=>`yarl__${e}`,zt=e=>`--yarl__${e}`,qt=(e,t)=>`${e}${t?`_${t}`:""}`,Ut=e=>t=>qt(e,t),Vt=(e,t)=>e&&e[t]?e[t]:t,Wt=(...e)=>()=>{e.forEach((e=>{e()}))},Qt=(e,t,n)=>()=>{const r=u.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r},Gt=()=>"undefined"!=typeof window;function $t(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}const Yt=e=>void 0===e.type||"image"===e.type,Zt=(e,t)=>e.imageFit===Rt||e.imageFit!==Ot&&t===Rt;function Kt(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=parseInt(e,10);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function Jt(e,t){const n=Kt(t),r=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}const Xt=(e,t)=>t>0?(e%t+t)%t:0,en=e=>e.length>0,tn=(e,t)=>en(e)?((e,t)=>e[Xt(t,e.length)])(e,t):void 0;function nn(e,t,n){if(!n)return e;const{buttons:r,...o}=e,i=r.findIndex((e=>e===t)),a=u.isValidElement(n)?u.cloneElement(n,{key:t},null):n;if(i>=0){const e=[...r];return e.splice(i,1,a),{buttons:e,...o}}return{buttons:[a,...r],...o}}function rn(){const e=e=>{e.stopPropagation()};return{onPointerDown:e,onKeyDown:e,onWheel:e}}const on=u.createContext(null),an=Qt("useEvents","EventsContext",on);function ln({children:e}){const[t]=u.useState({});u.useEffect((()=>()=>{Object.keys(t).forEach((e=>delete t[e]))}),[t]);const n=u.useMemo((()=>{const e=(e,n)=>{var r;null===(r=t[e])||void 0===r||r.splice(0,t[e].length,...t[e].filter((e=>e!==n)))};return{publish:(...[e,n])=>{var r;null===(r=t[e])||void 0===r||r.forEach((e=>e(n)))},subscribe:(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),unsubscribe:e}}),[t]);return u.createElement(on.Provider,{value:n},e)}const sn=u.createContext(null),un=Qt("useLightboxProps","LightboxPropsContext",sn);function cn({children:e,...t}){return u.createElement(sn.Provider,{value:t},e)}const dn=u.createContext(null),fn=Qt("useLightboxState","LightboxStateContext",dn),pn=u.createContext(null),hn=Qt("useLightboxDispatch","LightboxDispatchContext",pn);function gn(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,o=e.globalIndex+r,i=Xt(o,n.length);return{slides:n,currentIndex:i,globalIndex:o,currentSlide:tn(n,i),animation:r||t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":return{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:tn(t.slides,t.index)};default:throw new Error(Pt)}}function mn({slides:e,index:t,children:n}){const[r,o]=u.useReducer(gn,{slides:e,currentIndex:t,globalIndex:t,currentSlide:tn(e,t)});u.useEffect((()=>{o({type:"update",slides:e,index:t})}),[e,t]);const i=u.useMemo((()=>({...r,state:r,dispatch:o})),[r,o]);return u.createElement(pn.Provider,{value:o},u.createElement(dn.Provider,{value:i},n))}const vn=u.createContext(null),yn=Qt("useTimeouts","TimeoutsContext",vn);function bn({children:e}){const[t]=u.useState([]);u.useEffect((()=>()=>{t.forEach((e=>window.clearTimeout(e))),t.splice(0,t.length)}),[t]);const n=u.useMemo((()=>{const e=e=>{t.splice(0,t.length,...t.filter((t=>t!==e)))};return{setTimeout:(n,r)=>{const o=window.setTimeout((()=>{e(o),n()}),r);return t.push(o),o},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}}),[t]);return u.createElement(vn.Provider,{value:n},e)}const An=u.forwardRef((function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:i,...a},l){const{styles:s,labels:c}=un();return u.createElement("button",{ref:l,type:"button","aria-label":Vt(c,e),className:Ft(Ht("button"),t),onClick:o,style:{...i,...s.button},...a},r?r():u.createElement(n,{className:Ht(Lt),style:s.icon}))}));function wn(e,t){return function(e,t){const n=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return n.displayName=e,n}(e,u.createElement("g",{fill:"currentColor"},u.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const xn=wn("Close",u.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),En=wn("Previous",u.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),kn=wn("Next",u.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Sn=wn("Loading",u.createElement(u.Fragment,null,Array.from({length:8}).map(((e,t,n)=>u.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`}))))),_n=wn("Error",u.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Cn=Gt()?u.useLayoutEffect:u.useEffect;function Tn(){const[e,t]=u.useState(!1);return u.useEffect((()=>{var e,n;const r=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);const o=e=>t(e.matches);return null===(n=null==r?void 0:r.addEventListener)||void 0===n||n.call(r,"change",o),()=>{var e;return null===(e=null==r?void 0:r.removeEventListener)||void 0===e?void 0:e.call(r,"change",o)}}),[]),e}function Dn(e,t){const n=u.useRef(),r=u.useRef(),o=Tn();return Cn((()=>{var i,a,l;if(e.current&&void 0!==n.current&&!o){const{keyframes:o,duration:s,easing:u,onfinish:c}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0;const o=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(o){const e=o[1].split(",").map((e=>Number.parseInt(e,10)));6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],r=e[14])}return{x:t,y:n,z:r}}(e.current))||{};if(o&&s){null===(i=r.current)||void 0===i||i.cancel(),r.current=void 0;try{r.current=null===(l=(a=e.current).animate)||void 0===l?void 0:l.call(a,o,{duration:s,easing:u})}catch(e){console.error(e)}r.current&&(r.current.onfinish=()=>{r.current=void 0,null==c||c()})}}n.current=void 0})),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return"running"===(null===(e=r.current)||void 0===e?void 0:e.playState)}}}function Ln(){const e=u.useRef(null),t=u.useRef(),[n,r]=u.useState(),o=u.useCallback((n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);const o=()=>{if(n){const e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;r({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else r(void 0)};o(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(o),t.current.observe(n))}),[]);return{setContainerRef:o,containerRef:e,containerRect:n}}function On(){const e=u.useRef(),{setTimeout:t,clearTimeout:n}=yn();return u.useCallback(((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)}),[t,n])}function Rn(e){const t=u.useRef(e);return Cn((()=>{t.current=e})),u.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Pn(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Mn(e,t){return u.useMemo((()=>null==e&&null==t?null:n=>{Pn(e,n),Pn(t,n)}),[e,t])}function Nn(e,t=!1){const n=u.useRef();return Cn((()=>{t&&n.current&&(n.current=!1,e())}),[t,e]),{onFocus:u.useCallback((()=>{n.current=!0}),[]),onBlur:u.useCallback((()=>{n.current=!1}),[])}}function In(){const[e,t]=u.useState(!1);return Cn((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function Bn(e,t){const n=u.useRef(0),r=On(),o=Rn(((...t)=>{n.current=Date.now(),e(t)}));return u.useCallback(((...e)=>{r((()=>{o(e)}),t-(Date.now()-n.current))}),[t,o,r])}const jn=Ut("slide"),Fn=Ut("slide_image");function Hn({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:i,onClick:a,onLoad:l,style:s}){var c,d,f,p,h,g,m;const[v,y]=u.useState(ft),{publish:b}=an(),{setTimeout:A}=yn(),w=u.useRef(null);u.useEffect((()=>{0===t&&b(gt(v))}),[t,v,b]);const x=Rn((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(y(ht),A((()=>{null==l||l(e)}),0))}))})),E=u.useCallback((e=>{w.current=e,(null==e?void 0:e.complete)&&x(e)}),[x]),k=u.useCallback((e=>{x(e.currentTarget)}),[x]),S=u.useCallback((()=>{y(pt)}),[]),_=Zt(e,o),C=(e,t)=>Number.isFinite(e)?e:t,T=C(Math.max(...(null!==(d=null===(c=e.srcSet)||void 0===c?void 0:c.map((e=>e.width)))&&void 0!==d?d:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null===(f=w.current)||void 0===f?void 0:f.naturalWidth)||0),D=C(Math.max(...(null!==(h=null===(p=e.srcSet)||void 0===p?void 0:p.map((e=>e.height)))&&void 0!==h?h:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(g=w.current)||void 0===g?void 0:g.naturalHeight)||0),L=T&&D?{maxWidth:`min(${T}px, 100%)`,maxHeight:`min(${D}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},O=null===(m=e.srcSet)||void 0===m?void 0:m.sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", "),R=O&&r&&Gt()?`${Math.round(Math.min(r&&!_&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:P,className:M,...N}=i||{};return u.createElement(u.Fragment,null,u.createElement("img",{ref:E,onLoad:k,onError:S,onClick:a,draggable:!1,className:Ft(Ht(Fn()),_&&Ht(Fn("cover")),v!==ht&&Ht(Fn("loading")),M),style:{...L,...s,...P},...N,alt:e.alt,sizes:R,srcSet:O,src:e.src}),v!==ht&&u.createElement("div",{className:Ht(jn("placeholder"))},v===ft&&((null==n?void 0:n.iconLoading)?n.iconLoading():u.createElement(Sn,{className:Ft(Ht(Lt),Ht(jn(ft)))})),v===pt&&((null==n?void 0:n.iconError)?n.iconError():u.createElement(_n,{className:Ft(Ht(Lt),Ht(jn(pt)))}))))}var zn,qn;function Un(e,t,n,r,o){u.useEffect((()=>o?()=>{}:Wt(e(Et,t),e(kt,n),e(St,r),e(_t,r),e(Ct,r))),[e,t,n,r,o])}!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL_DOWN=2]="PULL_DOWN",e[e.ANIMATION=3]="ANIMATION"}(zn||(zn={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL_DOWN=2]="PULL_DOWN"}(qn||(qn={}));const Vn="wheel";function Wn(e){(Math.abs(e.deltaX)>Math.abs(e.deltaY)||e.ctrlKey)&&e.preventDefault()}const Qn=Ut("container"),Gn=u.createContext(null),$n=Qt("useController","ControllerContext",Gn),Yn=Nt(at,(function({children:e,...t}){var n;const{carousel:r,animation:o,controller:i,on:a,styles:l,render:s}=t,[c,d]=u.useState(),f=fn(),p=hn(),[h,g]=u.useState(zn.NONE),m=u.useRef(0),v=u.useRef(0),y=u.useRef(1),{registerSensors:b,subscribeSensors:A}=function(){const[e]=u.useState({}),t=u.useCallback(((t,n)=>{var r;null===(r=e[t])||void 0===r||r.forEach((e=>{n.isPropagationStopped()||e(n)}))}),[e]),n=u.useMemo((()=>({onPointerDown:e=>t(Et,e),onPointerMove:e=>t(kt,e),onPointerUp:e=>t(St,e),onPointerLeave:e=>t(_t,e),onPointerCancel:e=>t(Ct,e),onKeyDown:e=>t(Tt,e),onKeyUp:e=>t("onKeyUp",e),onWheel:e=>t(Dt,e)})),[t]),r=u.useCallback(((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{const r=e[t];r&&r.splice(0,r.length,...r.filter((e=>e!==n)))})),[e]);return{registerSensors:n,subscribeSensors:r}}(),{subscribe:w,publish:x}=an(),E=On(),k=On(),S=On(),{containerRef:_,setContainerRef:C,containerRect:T}=Ln(),D=Mn(function(){const e=u.useRef(null);return u.useCallback((t=>{var n;t?t.addEventListener(Vn,Wn,{passive:!1}):null===(n=e.current)||void 0===n||n.removeEventListener(Vn,Wn),e.current=t}),[])}(),C),L=u.useRef(null),O=Mn(L,void 0),R=In(),P=e=>(R?-1:1)*("number"==typeof e?e:1),M=Rn((()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.focus()})),N=Rn((()=>t)),I=Rn((()=>f)),B=u.useCallback((e=>x(bt,e)),[x]),j=u.useCallback((e=>x(At,e)),[x]),F=u.useCallback((()=>x(xt)),[x]),H=e=>!(r.finite&&(P(e)>0&&0===f.currentIndex||P(e)<0&&f.currentIndex===f.slides.length-1)),z=e=>{var t;m.current=e,null===(t=_.current)||void 0===t||t.style.setProperty(zt("swipe_offset"),`${Math.round(e)}px`)},{closeOnPullDown:q}=i,U=e=>{var t,n;v.current=e,y.current=Math.min(Math.max($t(1-e/60*.5,2),.5),1),null===(t=_.current)||void 0===t||t.style.setProperty(zt("pull_down_offset"),`${Math.round(e)}px`),null===(n=_.current)||void 0===n||n.style.setProperty(zt("pull_down_opacity"),`${y.current}`)},{prepareAnimation:V}=Dn(L,((e,t,n)=>{if(L.current&&T)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+n.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:o.easing.fade}})),W=(e,t)=>{if(q){U(e);let n=0;L.current&&(n=o.fade*(t?2:1),V({rect:L.current.getBoundingClientRect(),opacity:y.current,duration:n})),S((()=>{U(0),g(zn.NONE)}),n),g(zn.ANIMATION),t||F()}},{prepareAnimation:Q,isAnimationPlaying:G}=Dn(L,((e,t,n)=>{var o;if(L.current&&T&&(null===(o=f.animation)||void 0===o?void 0:o.duration)){const o=Kt(r.spacing),i=(o.percent?o.percent*T.width/100:o.pixel)||0;return{keyframes:[{transform:`translate(${P(f.globalIndex-e.index)*(T.width+i)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:f.animation.duration,easing:f.animation.easing}}})),$=Rn((e=>{var t,n;const r=e.offset||0,i=r?o.swipe:null!==(t=o.navigation)&&void 0!==t?t:o.swipe,a=r||G()?o.easing.swipe:o.easing.navigation;let{direction:l}=e;const s=null!==(n=e.count)&&void 0!==n?n:1;let u=zn.ANIMATION,c=i*s;if(!l){const t=null==T?void 0:T.width,n=e.duration||0,o=t?i/t*Math.abs(r):i;0!==s?(n0?bt:At):c=i/2}let d=0;l===bt?H(P(1))?d=-s:(u=zn.NONE,c=i):l===At&&(H(P(-1))?d=s:(u=zn.NONE,c=i)),c=Math.round(c),k((()=>{z(0),g(zn.NONE)}),c),L.current&&Q({rect:L.current.getBoundingClientRect(),index:f.globalIndex}),g(u),x(wt,{type:"swipe",increment:d,duration:c,easing:a})}));u.useEffect((()=>{var e,t;(null===(e=f.animation)||void 0===e?void 0:e.increment)&&(null===(t=f.animation)||void 0===t?void 0:t.duration)&&E((()=>p({type:"swipe",increment:0})),f.animation.duration)}),[f.animation,p,E]);const Y=[A,H,(null==T?void 0:T.width)||0,o.swipe,()=>g(zn.SWIPE),e=>z(e),(e,t)=>$({offset:e,duration:t,count:1}),e=>$({offset:e,count:0})],Z=[()=>{q&&g(zn.PULL_DOWN)},e=>U(e),e=>W(e),e=>W(e,!0)];!function(e,t,n,r,o,i,a,l,s,c,d,f,p){const h=u.useRef(0),g=u.useRef([]),m=u.useRef(),v=u.useRef(0),y=u.useRef(qn.NONE),b=u.useCallback((e=>{m.current===e.pointerId&&(m.current=void 0,y.current=qn.NONE);const t=g.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),A=u.useCallback((e=>{b(e),e.persist(),g.current.push(e)}),[b]),w=Rn((e=>{A(e)})),x=Rn((e=>{if(g.current.find((t=>t.pointerId===e.pointerId))&&m.current===e.pointerId){const e=Date.now()-v.current,t=h.current;y.current===qn.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&e60?f(t,e):p(t)),h.current=0,y.current=qn.NONE}b(e)})),E=Rn((e=>{const n=g.current.find((t=>t.pointerId===e.pointerId));if(n){const r=m.current===e.pointerId;if(0===e.buttons)return void(r&&0!==h.current?x(e):b(n));const a=e.clientX-n.clientX,l=e.clientY-n.clientY;if(void 0===m.current){const n=t=>{A(e),m.current=e.pointerId,v.current=Date.now(),y.current=t};Math.abs(a)>Math.abs(l)&&Math.abs(a)>30&&t(a)?(n(qn.SWIPE),o()):s&&Math.abs(l)>Math.abs(a)&&l>30&&(n(qn.PULL_DOWN),c())}else r&&(y.current===qn.SWIPE?(h.current=a,i(a)):y.current===qn.PULL_DOWN&&(h.current=l,d(l)))}}));Un(e,w,E,x)}(...Y,q,...Z),function(e,t,n,r,o,i,a,l,s){const c=u.useRef(0),d=u.useRef(0),f=u.useRef(),p=u.useRef(),h=u.useRef(0),g=u.useRef(0),{setTimeout:m,clearTimeout:v}=yn(),y=u.useCallback((()=>{f.current&&(v(f.current),f.current=void 0)}),[v]),b=u.useCallback((()=>{p.current&&(v(p.current),p.current=void 0)}),[v]),A=Rn((()=>{e!==zn.SWIPE&&(c.current=0,g.current=0,y(),b())}));u.useEffect(A,[e,A]);const w=Rn((e=>{p.current=void 0,c.current===e&&s(c.current)})),x=Rn((t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX)))if(e===zn.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(h.current))return void(h.current=t.deltaX);if(!n(-t.deltaX))return;if(d.current+=t.deltaX,y(),Math.abs(d.current)>30)d.current=0,h.current=0,g.current=Date.now(),i();else{const e=d.current;f.current=m((()=>{f.current=void 0,e===d.current&&(d.current=0)}),o)}}else if(e===zn.SWIPE){let e=c.current-t.deltaX;if(e=Math.min(Math.abs(e),r)*Math.sign(e),c.current=e,a(e),b(),Math.abs(e)>.2*r)return h.current=t.deltaX,void l(e,Date.now()-g.current);p.current=m((()=>w(e)),2*o)}else h.current=t.deltaX}));u.useEffect((()=>t(Dt,x)),[t,x])}(h,...Y);const K=Rn((()=>{var e;i.focus&&(null===(e=_.current)||void 0===e||e.focus())}));u.useEffect(K,[K]);const J=Rn((()=>{var e;null===(e=a.view)||void 0===e||e.call(a,{index:f.currentIndex})}));u.useEffect(J,[f.globalIndex,J]),u.useEffect((()=>Wt(w(bt,(e=>$({direction:bt,...e}))),w(At,(e=>$({direction:At,...e}))),w(wt,(e=>p(e))))),[w,$,p]);const X=u.useMemo((()=>({prev:B,next:j,close:F,focus:M,slideRect:T?Jt(T,r.padding):{width:0,height:0},containerRect:T||{width:0,height:0},subscribeSensors:A,containerRef:_,setCarouselRef:O,toolbarWidth:c,setToolbarWidth:d})),[B,j,F,M,A,T,_,O,c,d,r.padding]);return u.useImperativeHandle(i.ref,(()=>({prev:B,next:j,close:F,focus:M,getLightboxProps:N,getLightboxState:I})),[B,j,F,M,N,I]),u.createElement("div",{ref:D,className:Ft(Ht(Qn()),Ht(vt)),style:{...h===zn.SWIPE?{[zt("swipe_offset")]:`${Math.round(m.current)}px`}:null,...h===zn.PULL_DOWN?{[zt("pull_down_offset")]:`${Math.round(v.current)}px`,[zt("pull_down_opacity")]:`${y.current}`}:null,..."none"!==i.touchAction?{[zt("controller_touch_action")]:i.touchAction}:null,...l.container},...i.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...b},T&&u.createElement(Gn.Provider,{value:X},e,null===(n=s.controls)||void 0===n?void 0:n.call(s)))}));function Zn(e){return qt(it,e)}function Kn(e){return qt("slide",e)}function Jn({slide:e,offset:t}){const n=u.useRef(null),{currentIndex:r}=fn(),{slideRect:o,close:i}=$n(),{render:a,carousel:{imageFit:l,imageProps:s},on:{click:c},controller:{closeOnBackdropClick:d},styles:{slide:f}}=un();return u.createElement("div",{ref:n,className:Ft(Ht(Kn()),0===t&&Ht(Kn("current")),Ht(vt)),onClick:e=>{const t=n.current,r=e.target instanceof HTMLElement?e.target:void 0;d&&r&&t&&(r===t||Array.from(t.children).find((e=>e===r))&&r.classList.contains(Ht(mt)))&&i()},style:f},(()=>{var n,i,d,f;let p=null===(n=a.slide)||void 0===n?void 0:n.call(a,{slide:e,offset:t,rect:o});return!p&&Yt(e)&&(p=u.createElement(Hn,{slide:e,offset:t,render:a,rect:o,imageFit:l,imageProps:s,onClick:0===t?()=>null==c?void 0:c({index:r}):void 0})),p?u.createElement(u.Fragment,null,null===(i=a.slideHeader)||void 0===i?void 0:i.call(a,{slide:e}),(null!==(d=a.slideContainer)&&void 0!==d?d:({children:e})=>e)({slide:e,children:p}),null===(f=a.slideFooter)||void 0===f?void 0:f.call(a,{slide:e})):null})())}function Xn(){const e=un().styles.slide;return u.createElement("div",{className:Ht("slide"),style:e})}const er=Nt(it,(function({carousel:e}){const{slides:t,currentIndex:n,globalIndex:r}=fn(),{setCarouselRef:o}=$n(),i=Kt(e.spacing),a=Kt(e.padding),l=[],s=function(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(e,t,1);if(en(t)){for(let o=n-s;o=0?u.createElement(Jn,{key:i,slide:t[(o+s*t.length)%t.length],offset:o-n}):u.createElement(Xn,{key:i}))}l.push(u.createElement(Jn,{key:r,slide:t[n],offset:0}));for(let o=n+1;o<=n+s;o+=1){const i=r+o-n;l.push(!e.finite||o<=t.length-1?u.createElement(Jn,{key:i,slide:t[o%t.length],offset:o-n}):u.createElement(Xn,{key:i}))}}return u.createElement("div",{ref:o,className:Ft(Ht(Zn()),l.length>0&&Ht(Zn("with_slides"))),style:{[`${zt(Zn("slides_count"))}`]:l.length,[`${zt(Zn("spacing_px"))}`]:i.pixel||0,[`${zt(Zn("spacing_percent"))}`]:i.percent||0,[`${zt(Zn("padding_px"))}`]:a.pixel||0,[`${zt(Zn("padding_percent"))}`]:a.percent||0}},l)}));function tr(){const{carousel:e}=un(),{slides:t,currentIndex:n}=fn();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function nr({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:a}){return u.createElement(An,{label:e,icon:t,renderIcon:n,className:Ht(`navigation_${r}`),disabled:i,onClick:o,style:a,...Nn($n().focus,i)})}const rr=Nt("navigation",(function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:a,subscribeSensors:l}=$n(),{prevDisabled:s,nextDisabled:c}=tr();return function(e){var t;const n=In(),{publish:r}=an(),{animation:o}=un(),{prevDisabled:i,nextDisabled:a}=tr(),l=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,s=Bn((()=>r(bt)),l),c=Bn((()=>r(At)),l),d=Rn((e=>{switch(e.key){case"Escape":r(xt);break;case"ArrowLeft":(n?a:i)||(n?c:s)();break;case"ArrowRight":(n?i:a)||(n?s:c)()}}));u.useEffect((()=>e(Tt,d)),[e,d])}(l),u.createElement(u.Fragment,null,e?e():u.createElement(nr,{label:"Previous",action:bt,icon:En,renderIcon:n,style:o.navigationPrev,disabled:s,onClick:i}),t?t():u.createElement(nr,{label:"Next",action:At,icon:kn,renderIcon:r,style:o.navigationNext,disabled:c,onClick:a}))})),or=Ht("no_scroll"),ir=Ht(yt);function ar(e){return"style"in e}function lr(e,t,n){const r=window.getComputedStyle(e),o=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,a=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(parseInt(i,10)||0)+t}px`),()=>{a?e.style.setProperty(o,a):e.style.removeProperty(o)}}const sr=Nt("no-scroll",(function({noScroll:{disabled:e},children:t}){const n=In();return Cn((()=>{if(e)return()=>{};const t=[],{body:r,documentElement:o}=document,i=Math.round(window.innerWidth-o.clientWidth);if(i>0){t.push(lr(r,i,n));const e=r.getElementsByTagName("*");for(let r=0;r{r.classList.remove(or),t.forEach((e=>e()))}}),[n,e]),u.createElement(u.Fragment,null,t)}));function ur(e){return qt(lt,e)}function cr(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const dr=Nt(lt,(function({children:e,animation:t,styles:n,className:r,on:o,portal:i,close:a}){const[l,s]=u.useState(!1),[c,f]=u.useState(!1),p=u.useRef([]),{setTimeout:h}=yn(),{subscribe:g}=an(),m=Tn()?0:t.fade;u.useEffect((()=>(s(!0),()=>{s(!1),f(!1)})),[]);const v=Rn((()=>{var e;f(!1),null===(e=o.exiting)||void 0===e||e.call(o),h((()=>{var e;null===(e=o.exited)||void 0===e||e.call(o),a()}),m)}));u.useEffect((()=>g(xt,v)),[g,v]);const y=Rn((e=>{var t,n,r;e.scrollTop,f(!0),null===(t=o.entering)||void 0===t||t.call(o);const i=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let t=0;t{var e;null===(e=o.entered)||void 0===e||e.call(o)}),m)})),b=Rn((()=>{p.current.forEach((e=>e())),p.current=[]})),A=u.useCallback((e=>{e?y(e):b()}),[y,b]);return l?(0,d.createPortal)(u.createElement("div",{ref:A,className:Ft(r,Ht("root"),Ht(ur()),Ht(yt),c&&Ht(ur("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==Mt.animation.fade?{[zt("fade_animation_duration")]:`${m}ms`}:null,...t.easing.fade!==Mt.animation.easing.fade?{[zt("fade_animation_timing_function")]:t.easing.fade}:null,...n.root}},e),i.root||document.body):null})),fr=Nt("root",(function({children:e}){return u.createElement(u.Fragment,null,e)})),pr=Nt(st,(function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=$n(),{setContainerRef:a,containerRect:l}=Ln();return Cn((()=>{i(null==l?void 0:l.width)}),[i,null==l?void 0:l.width]),u.createElement("div",{ref:a,style:r.toolbar,className:Ht(qt(st,undefined)),...rn()},null==e?void 0:e.map((e=>e===xt?t?t():u.createElement(An,{key:xt,label:"Close",icon:xn,renderIcon:n,onClick:o}):e)))}));function hr(e,t){var n;return u.createElement(e.module.component,{key:e.module.name,...t},null===(n=e.children)||void 0===n?void 0:n.map((e=>hr(e,t))))}function gr(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function mr({carousel:e,animation:t,render:n,toolbar:r,controller:o,noScroll:i,on:a,plugins:l,slides:s,index:c,...d}){const{animation:f,carousel:p,render:h,toolbar:g,controller:m,noScroll:v,on:y,slides:b,index:A,plugins:w,...x}=Mt,{config:E,augmentation:k}=function(e,t=[],n=[]){let r=e;const o=e=>{const t=[...r];for(;t.length>0;){const n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},i=(e,t)=>{r=""!==e?jt(r,e,(e=>[It(t,[e])])):[It(t,r)]},a=(e,t)=>{r=jt(r,e,(e=>[It(e.module,[It(t,e.children)])]))},l=(e,t,n)=>{r=jt(r,e,(e=>{var r;return[It(e.module,[...n?[It(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[It(t)]])]}))},s=(e,t,n)=>{r=jt(r,e,(e=>[...n?[It(t)]:[],e,...n?[]:[It(t)]]))},u=e=>{a(at,e)},c=(e,t)=>{r=jt(r,e,(e=>[It(t,e.children)]))},d=e=>{r=jt(r,e,(e=>e.children))},f=e=>{n.push(e)};return t.forEach((e=>{e({contains:o,addParent:i,append:a,addChild:l,addSibling:s,addModule:u,replace:c,remove:d,augment:f})})),{config:r,augmentation:e=>n.reduce(((e,t)=>t(e)),e)}}([It(dr,[It(sr,[It(Yn,[It(er),It(pr),It(rr)])])])],l||w),S=k({animation:gr(f,t),carousel:{...p,...e},render:{...h,...n},toolbar:{...g,...r},controller:{...m,...o},noScroll:{...v,...i},on:{...y,...a},...x,...d});return S.open?u.createElement(cn,{...S},u.createElement(mn,{slides:s||b,index:c||A},u.createElement(bn,null,u.createElement(ln,null,hr(It(fr,E),S))))):null}var vr=o(3379),yr=o.n(vr),br=o(7795),Ar=o.n(br),wr=o(569),xr=o.n(wr),Er=o(3565),kr=o.n(Er),Sr=o(9216),_r=o.n(Sr),Cr=o(4589),Tr=o.n(Cr),Dr=o(6185),Lr={};Lr.styleTagTransform=Tr(),Lr.setAttributes=kr(),Lr.insert=xr().bind(null,"head"),Lr.domAPI=Ar(),Lr.insertStyleElement=_r(),yr()(Dr.Z,Lr),Dr.Z&&Dr.Z.locals&&Dr.Z.locals;const Or={download:void 0},Rr=e=>({...Or,...e});function Pr(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}function Mr(e,t){const n=document.createElement("a");n.rel="noopener",n.download=t||"",n.download||(n.target="_blank"),"string"==typeof e?(n.href=e,n.origin!==window.location.origin?function(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}(n.href)?function(e,t){const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=()=>{Mr(n.response,t)},n.onerror=()=>{console.error("Failed to download file")},n.send()}(e,t):(n.target="_blank",Pr(n)):Pr(n)):(n.href=URL.createObjectURL(e),setTimeout((()=>URL.revokeObjectURL(n.href)),3e4),setTimeout((()=>Pr(n)),0))}const Nr=wn("DownloadIcon",u.createElement("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z"}));function Ir(){const{render:e,on:t,download:n}=un(),{download:r}=Rr(n),{currentSlide:o,currentIndex:i}=fn();if(e.buttonDownload)return u.createElement(u.Fragment,null,e.buttonDownload());const a=o&&(o.downloadUrl||"string"==typeof o.download&&o.download||"object"==typeof o.download&&o.download.url||Yt(o)&&o.src)||void 0,l=r?!1!==(null==o?void 0:o.download):Boolean(a),s=()=>{if(o&&a){const e=o.downloadFilename||"object"==typeof o.download&&o.download.filename||void 0;Mr(a,e)}};return u.createElement(An,{label:"Download",icon:Nr,renderIcon:e.iconDownload,disabled:!l,onClick:()=>{var e;o&&((r||s)({slide:o,saveAs:Mr}),null===(e=t.download)||void 0===e||e.call(t,{index:i}))}})}function Br({augment:e}){e((({toolbar:e,download:t,...n})=>({toolbar:nn(e,"download",u.createElement(Ir,null)),download:Rr(t),...n})))}const jr={auto:!1,ref:null},Fr=e=>({...jr,...e}),Hr=u.createContext(null),zr=Qt("useFullscreen","FullscreenContext",Hr);function qr({fullscreen:e,children:t}){const{auto:n,ref:r}=Fr(e),o=u.useRef(null),[i,a]=u.useState(!1),[l,s]=u.useState();Cn((()=>{var e,t,n,r;s(!(null!==(r=null!==(n=null!==(t=null!==(e=document.fullscreenEnabled)&&void 0!==e?e:document.webkitFullscreenEnabled)&&void 0!==t?t:document.mozFullScreenEnabled)&&void 0!==n?n:document.msFullscreenEnabled)&&void 0!==r&&r))}),[]);const c=u.useCallback((()=>{var e,t,n;return null!==(n=null!==(t=null!==(e=document.fullscreenElement)&&void 0!==e?e:document.webkitFullscreenElement)&&void 0!==t?t:document.mozFullScreenElement)&&void 0!==n?n:document.msFullscreenElement}),[]),d=u.useCallback((()=>{const e=o.current;if(e)try{e.requestFullscreen?e.requestFullscreen().catch((()=>{})):e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}catch(e){}}),[]),f=u.useCallback((()=>{if(c())try{document.exitFullscreen?document.exitFullscreen().catch((()=>{})):document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}catch(e){}}),[c]),p=u.useCallback((()=>{c()===o.current?a(!0):a(!1)}),[c]);u.useEffect((()=>{const e=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];return e.forEach((e=>{document.addEventListener(e,p)})),()=>{e.forEach((e=>{document.removeEventListener(e,p)}))}}),[p]);const h=Rn((()=>{var e;return null===(e=n?d:null)||void 0===e?void 0:e()}));u.useEffect((()=>(h(),()=>f())),[h,f]);const g=u.useMemo((()=>({fullscreen:i,disabled:l,enter:d,exit:f})),[i,l,d,f]);return u.useImperativeHandle(r,(()=>g),[g]),u.createElement("div",{ref:o,className:Ft(Ht(ut),Ht(mt))},u.createElement(Hr.Provider,{value:g},t))}const Ur=wn("EnterFullscreen",u.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),Vr=wn("ExitFullscreen",u.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));function Wr(){var e;const{fullscreen:t,disabled:n,enter:r,exit:o}=zr(),{render:i}=un();return n?null:i.buttonFullscreen?u.createElement(u.Fragment,null,null===(e=i.buttonFullscreen)||void 0===e?void 0:e.call(i,{fullscreen:t,disabled:n,enter:r,exit:o})):u.createElement(An,{disabled:n,label:t?"Exit Fullscreen":"Enter Fullscreen",icon:t?Vr:Ur,renderIcon:t?i.iconExitFullscreen:i.iconEnterFullscreen,onClick:t?o:r})}function Qr({augment:e,contains:t,addParent:n}){e((({fullscreen:e,toolbar:t,...n})=>({toolbar:nn(t,ut,u.createElement(Wr,null)),fullscreen:Fr(e),...n}))),n(t(ct)?ct:at,Nt(ut,qr))}const Gr={maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,scrollToZoom:!1},$r=e=>({...Gr,...e});function Yr(){const{zoom:e}=un();return $r(e)}function Zr(e,t){return((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2)**.5}const Kr=u.createContext(null),Jr=Qt("useZoom","ZoomControllerContext",Kr);function Xr({children:e}){const[t,n]=u.useState(),{slideRect:r}=$n(),{imageRect:o,maxZoom:i}=function(e,t){var n,r;let o={width:0,height:0},i={width:0,height:0};const{slides:a,currentIndex:l}=fn(),{imageFit:s}=un().carousel,{maxZoomPixelRatio:u}=Yr();if(e&&le.width)))||[]).concat(c.width?[c.width]:[])),l=Math.max(...((null===(r=c.srcSet)||void 0===r?void 0:r.map((e=>e.height)))||[]).concat(c.height?[c.height]:[]));a>0&&l>0&&e.width>0&&e.height>0&&(i=t?{width:Math.round(Math.min(a,e.width/e.height*l)),height:Math.round(Math.min(l,e.height/e.width*a))}:{width:a,height:l},i={width:i.width*u,height:i.height*u},o=t?{width:Math.min(e.width,i.width,a),height:Math.min(e.height,i.height,l)}:{width:Math.round(Math.min(e.width,e.height/l*a,a)),height:Math.round(Math.min(e.height,e.width/a*l,l))})}}return{imageRect:o,maxZoom:o.width?Math.max($t(i.width/o.width,5),1):1}}(r,null==t?void 0:t.imageDimensions),{zoom:a,offsetX:l,offsetY:s,disabled:c,changeZoom:d,changeOffsets:f,zoomIn:p,zoomOut:h}=function(e,t,n){const[r,o]=u.useState(1),[i,a]=u.useState(0),[l,s]=u.useState(0),c=function(e,t,n,r){const o=u.useRef(),i=u.useRef(),{zoom:a}=un().animation,l=Tn(),s=Rn((()=>{var s,u,c;if(null===(s=o.current)||void 0===s||s.cancel(),o.current=void 0,i.current&&(null==r?void 0:r.current)){try{o.current=null===(c=(u=r.current).animate)||void 0===c?void 0:c.call(u,[{transform:i.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:l?0:null!=a?a:500,easing:o.current?"ease-out":"ease-in-out"})}catch(e){console.error(e)}i.current=void 0,o.current&&(o.current.onfinish=()=>{o.current=void 0})}}));return Cn(s,[e,t,n,s]),u.useCallback((()=>{i.current=(null==r?void 0:r.current)?window.getComputedStyle(r.current).transform:void 0}),[r])}(r,i,l,n),{slides:d,currentIndex:f,globalIndex:p}=fn(),{containerRect:h,slideRect:g}=$n(),{zoomInMultiplier:m}=Yr(),v=function(e,t){if(t{o(1),a(0),s(0)}),[p,v]);const b=u.useCallback(((t,n,o)=>{const u=o||r,c=i-(t||0),d=l-(n||0),f=(e.width*u-g.width)/2/u,p=(e.height*u-g.height)/2/u;a(Math.min(Math.abs(c),Math.max(f,0))*Math.sign(c)),s(Math.min(Math.abs(d),Math.max(p,0))*Math.sign(d))}),[r,i,l,g,e.width,e.height]),A=u.useCallback(((e,n,i,a)=>{const l=$t(Math.min(Math.max(e+.001{r>1&&(r>t&&A(t,!0),b())}));Cn(w,[h.width,h.height,w]);const x=u.useCallback((()=>A(r*m)),[r,m,A]),E=u.useCallback((()=>A(r/m)),[r,m,A]);return{zoom:r,offsetX:i,offsetY:l,disabled:y,changeOffsets:b,changeZoom:A,zoomIn:x,zoomOut:E}}(o,i,null==t?void 0:t.zoomWrapperRef);!function(e,t){const{on:n}=un(),r=Rn((()=>{var r;t||null===(r=n.zoom)||void 0===r||r.call(n,{zoom:e})}));u.useEffect(r,[e,r])}(a,c),function(e,t,n,r,o,i){const a=u.useRef([]),l=u.useRef(0),s=u.useRef(),{globalIndex:c}=fn(),{containerRef:d,subscribeSensors:f}=$n(),{keyboardMoveDistance:p,zoomInMultiplier:h,wheelZoomDistanceFactor:g,scrollToZoom:m,doubleTapDelay:v,doubleClickDelay:y,doubleClickMaxStops:b,pinchZoomDistanceFactor:A}=Yr(),w=u.useCallback((e=>{if(d.current){const{pageX:t,pageY:n}=e,{scrollX:r,scrollY:o}=window,{left:i,top:a,width:l,height:s}=d.current.getBoundingClientRect();return[t-i-r-l/2,n-a-o-s/2]}return[]}),[d]),x=Rn((t=>{const n=()=>{t.preventDefault(),t.stopPropagation()};if(e>1){const e=(e,t)=>{n(),o(e,t)};"ArrowDown"===t.key?e(0,p):"ArrowUp"===t.key?e(0,-p):"ArrowLeft"===t.key?e(-p,0):"ArrowRight"===t.key&&e(p,0)}const i=e=>{n(),r(e)},a=()=>t.getModifierState("Meta");"+"===t.key||"="===t.key&&a()?i(e*h):"-"===t.key||"_"===t.key&&a()?i(e/h):"0"===t.key&&a()&&i(1)})),E=Rn((t=>{if((t.ctrlKey||m)&&Math.abs(t.deltaY)>Math.abs(t.deltaX))return t.stopPropagation(),void r(e*(1-t.deltaY/g),!0,...w(t));e>1&&(t.stopPropagation(),m||o(t.deltaX,t.deltaY))})),k=u.useCallback((e=>{const t=a.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),S=u.useCallback((e=>{k(e),e.persist(),a.current.push(e)}),[k]),_=Rn((n=>{var o;const u=a.current;if(!(null===(o=null==i?void 0:i.current)||void 0===o?void 0:o.contains(n.target)))return;e>1&&n.stopPropagation();const{timeStamp:c}=n;0===u.length&&c-l.current<("touch"===n.pointerType?v:y)?(l.current=0,r(e!==t?e*Math.max(t**(1/b),h):1,!1,...w(n))):l.current=c,S(n),2===u.length&&(s.current=Zr(u[0],u[1]))})),C=Rn((t=>{const n=a.current,i=n.find((e=>e.pointerId===t.pointerId));if(2===n.length&&s.current){t.stopPropagation(),S(t);const o=Zr(n[0],n[1]),i=o-s.current;Math.abs(i)>0&&(r(e*(1+i/A),!0,...n.map((e=>w(e))).reduce(((e,t)=>t.map(((t,n)=>e[n]+t/2))))),s.current=o)}else e>1&&(t.stopPropagation(),i&&(1===n.length&&o((i.clientX-t.clientX)/e,(i.clientY-t.clientY)/e),S(t)))})),T=u.useCallback((e=>{const t=a.current;2===t.length&&t.find((t=>t.pointerId===e.pointerId))&&(s.current=void 0),k(e)}),[k]),D=u.useCallback((()=>{const e=a.current;e.splice(0,e.length),l.current=0,s.current=void 0}),[]);Un(f,_,C,T,n),u.useEffect(D,[c,D]),u.useEffect((()=>n?()=>{}:Wt(D,f(Tt,x),f(Dt,E))),[n,f,D,x,E])}(a,i,c,d,f,null==t?void 0:t.zoomWrapperRef);const g=u.useMemo((()=>({zoom:a,maxZoom:i,offsetX:l,offsetY:s,disabled:c,zoomIn:p,zoomOut:h,changeZoom:d})),[a,i,l,s,c,p,h,d]);u.useImperativeHandle(Yr().ref,(()=>g),[g]);const m=u.useMemo((()=>({...g,setZoomWrapper:n})),[g,n]);return u.createElement(Kr.Provider,{value:m},e)}const eo=wn("ZoomIn",u.createElement(u.Fragment,null,u.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),u.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),to=wn("ZoomOut",u.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),no=u.forwardRef((function({zoomIn:e,onLoseFocus:t},n){const r=u.useRef(!1),o=u.useRef(!1),{zoom:i,maxZoom:a,zoomIn:l,zoomOut:s,disabled:c}=Jr(),{render:d}=un(),f=c||(e?i>=a:i<=1);return u.useEffect((()=>{f&&r.current&&o.current&&t(),f||(r.current=!0)}),[f,t]),u.createElement(An,{ref:n,disabled:f,label:e?"Zoom in":"Zoom out",icon:e?eo:to,renderIcon:e?d.iconZoomIn:d.iconZoomOut,onClick:e?l:s,onFocus:()=>{o.current=!0},onBlur:()=>{o.current=!1}})}));function ro(){const e=u.useRef(null),t=u.useRef(null),{focus:n}=$n(),r=u.useCallback((e=>{var t,r;(null===(t=e.current)||void 0===t?void 0:t.disabled)?n():null===(r=e.current)||void 0===r||r.focus()}),[n]),o=u.useCallback((()=>r(e)),[r]),i=u.useCallback((()=>r(t)),[r]);return u.createElement(u.Fragment,null,u.createElement(no,{zoomIn:!0,ref:e,onLoseFocus:i}),u.createElement(no,{ref:t,onLoseFocus:o}))}function oo(){const{render:e}=un(),t=Jr();return e.buttonZoom?u.createElement(u.Fragment,null,e.buttonZoom(t)):u.createElement(ro,null)}function io({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":return e?{current:e,preload:r}:{current:r};case"done":return r===t?{current:r}:{current:e,preload:t};default:throw new Error(Pt)}}function ao(e){var t,n;const[{current:r,preload:o},i]=u.useReducer(io,{}),{slide:a,rect:l,imageFit:s,render:c}=e,d=a.srcSet.sort(((e,t)=>e.width-t.width)),f=null!==(t=a.width)&&void 0!==t?t:d[d.length-1].width,p=null!==(n=a.height)&&void 0!==n?n:d[d.length-1].height,h=Zt(a,s),g=Math.max(...d.map((e=>e.width))),m=Math.min((h?Math.max:Math.min)(l.width,f*(l.height/p)),g),v=(Gt()?null===window||void 0===window?void 0:window.devicePixelRatio:void 0)||1,y=Rn((()=>{var e;const t=null!==(e=d.find((e=>e.width>=m*v)))&&void 0!==e?e:d[d.length-1];(!r||d.findIndex((e=>e.src===r))e===t)))&&i({type:"fetch",source:t.src})}));Cn(y,[l.width,l.height,v,y]);const b=Rn((e=>i({type:"done",source:e}))),A={WebkitTransform:"translateZ(0)"};return h||Object.assign(A,l.width/l.heightb(o),render:{...c,iconLoading:()=>null,iconError:()=>null}}),r&&u.createElement(Hn,{key:"current",...e,slide:{...a,src:r,srcSet:void 0},style:A}))}function lo({render:e,slide:t,offset:n,rect:r}){var o;const[i,a]=u.useState(),l=u.useRef(null),{zoom:s,maxZoom:c,offsetX:d,offsetY:f,setZoomWrapper:p}=Jr(),{carousel:h,on:g}=un(),{currentIndex:m}=fn();Cn((()=>0===n?(p({zoomWrapperRef:l,imageDimensions:i}),()=>p(void 0)):()=>{}),[n,i,p]);let v=null===(o=e.slide)||void 0===o?void 0:o.call(e,{slide:t,offset:n,rect:r,zoom:s,maxZoom:c});if(!v&&Yt(t)){const o={slide:t,offset:n,rect:r,render:e,imageFit:h.imageFit,imageProps:h.imageProps,onClick:0===n?()=>{var e;return null===(e=g.click)||void 0===e?void 0:e.call(g,{index:m})}:void 0};v=function(e){var t;return((null===(t=e.srcSet)||void 0===t?void 0:t.length)||0)>0}(t)?u.createElement(ao,{key:t.src,...o,slide:t,rect:0===n?{width:r.width*s,height:r.height*s}:r}):u.createElement(Hn,{key:t.src,onLoad:e=>a({width:e.naturalWidth,height:e.naturalHeight}),...o})}return v?u.createElement("div",{ref:l,className:Ft(Ht(mt),Ht(vt)),style:0===n?{transform:`scale(${s}) translateX(${d}px) translateY(${f}px)`}:void 0},v):null}const so=({augment:e,addModule:t})=>{e((({toolbar:e,render:t,zoom:n,...r})=>({zoom:$r(n),toolbar:nn(e,dt,u.createElement(oo,null)),render:{...t,slide:e=>{var n;return Yt(e.slide)?u.createElement(lo,{render:t,...e}):null===(n=t.slide)||void 0===n?void 0:n.call(t,e)}},...r}))),t(Nt(dt,Xr))},uo={separator:"/",container:{}},co=e=>({...uo,...e});function fo({counter:e}){const{slides:t,currentIndex:n}=fn(),{separator:r,container:{className:o,...i},className:a,...l}=co(e);return 0===t.length?null:u.createElement("div",{className:Ft(Ht("counter"),o||a),...l,...i},n+1," ",r," ",t.length)}function po({augment:e,addChild:t}){e((({counter:e,...t})=>({counter:co(e),...t}))),t(at,Nt("counter",fo))}var ho=o(1170),go=o.n(ho);function mo(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function vo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){mo(i,r,o,a,l,"next",e)}function l(e){mo(i,r,o,a,l,"throw",e)}a(void 0)}))}}function yo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)r();n.shift(),n.forEach((function(e,t){e.setAttribute("data-omnivore-anchor-idx",(t+1).toString())}))}(s.current),!(e.highlightHref.current||e.initialReadingProgress&&e.initialReadingProgress>=98))){var t=e.highlightHref.current?document.querySelector('[omnivore-highlight-id="'.concat(e.highlightHref.current,'"]')):document.querySelector("[data-omnivore-anchor-idx='".concat(e.initialAnchorIndex.toString(),"']"));if(t){var n=function(e){var t=0;if(e.offsetParent){do{t+=e.offsetTop}while(e=e.offsetParent);return t}return 0}(t);window.document.documentElement.scroll(0,n-100)}}}),[e.initialAnchorIndex,e.initialReadingProgress,a]),(0,u.useEffect)((function(){var e,t;"function"==typeof(null===(e=window)||void 0===e||null===(t=e.MathJax)||void 0===t?void 0:t.typeset)&&window.MathJax.typeset();var n=Array.from(document.getElementsByClassName("tweet-placeholder"));n.length>0&&vo(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="twttr",e.next=5,new Promise((function(e,n){go().isDefined(t)||go()("https://platform.twitter.com/widgets.js",t),go().ready(t,{success:function(){var t;null!==(t=window.twttr)&&void 0!==t&&t.widgets?e(!0):e(!1)},error:function(){return n(new Error("Could not load remote twitter widgets js"))}})}));case 5:n.forEach((function(e){var t,n,r=e.getAttribute("data-tweet-id");r&&(null===(t=window.twttr)||void 0===t||null===(n=t.widgets)||void 0===n||n.createTweet(r,e,{theme:tt()?"dark":"light",align:"center",dnt:"true"}))}));case 6:case"end":return e.stop()}}),e)})))()}),[]),(0,u.useEffect)((function(){Array.from(document.querySelectorAll("img[data-omnivore-width]")).forEach((function(e){var t=e,n=Number(t.getAttribute("data-omnivore-width")),r=Number(t.getAttribute("data-omnivore-height"));!isNaN(n)&&!isNaN(r)&&n<100&&r<100&&(t.style.setProperty("width","".concat(n,"px")),t.style.setProperty("height","".concat(r,"px")),t.style.setProperty("max-width","unset"))})),Array.from(document.querySelectorAll("img[data-omnivore-original-src]")).forEach((function(e){var t=e,n=t.getAttribute("data-omnivore-original-src");n&&(t.onerror=function(){console.log("image falling back to original: ",n),t.onerror=null,t.src=n})}));var e=Array.from(document.querySelectorAll("img[data-omnivore-anchor-idx]")),t=e.map((function(e){return{src:e.getAttribute("src")||""}}));m(t),e.forEach((function(e,t){var n=e;n.style.cursor="zoom-in",n.onclick=function(e){b(t),p(!0),e.preventDefault(),e.stopPropagation()}}))}),[e.content]),(0,u.useEffect)((function(){var e,t,n;f&&(null===(e=window)||void 0===e||null===(t=e.webkit)||void 0===t||null===(n=t.messageHandlers.highlightAction)||void 0===n||n.postMessage({actionID:"dismissNavBars"}))}),[f]);var A=(0,u.useMemo)((function(){return e.isAppleAppEmbed?[Qr,po,so]:[Qr,Br,po,so]}),[e]);return(0,je.jsxs)(je.Fragment,{children:[!e.isAppleAppEmbed&&(0,je.jsx)("link",{rel:"stylesheet",href:"/static/highlightjs/".concat(t,".min.css")}),(0,je.jsx)(He,{ref:s,css:{maxWidth:"100%"},className:"article-inner-css","data-testid":"article-inner",dangerouslySetInnerHTML:{__html:e.content}}),(0,je.jsx)(ze,{onClick:function(e){e.stopPropagation()},children:(0,je.jsx)(mr,{open:f,index:y,close:function(){return p(!1)},slides:g,plugins:A,controller:{closeOnPullDown:!0,closeOnBackdropClick:!0},zoom:{maxZoomPixelRatio:3},render:{buttonZoom:function(){}}})})]})}var wo=he("p",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"120%",color:"$grayTextContrast",variants:{style:{body:{fontSize:"$2",lineHeight:"1.25"},logoTitle:{fontFamily:"Inter",fontWeight:700,fontSize:"18px",textTransform:"uppercase",letterSpacing:"0.15em"},bodyBold:{fontWeight:"bold",fontSize:"$2",lineHeight:"1.25"},recommendedByline:{fontWeight:"bold",fontSize:"13.5px",paddingTop:"4px",mt:"0px",mb:"16px",color:"$grayTextContrast"},userName:{fontWeight:"600",fontSize:"13.5px",paddingTop:"4px",my:"6px",color:"$grayText"},userNote:{fontSize:"16px",paddingTop:"0px",marginTop:"0px",lineHeight:"1.5",color:"$grayTextContrast"},headline:{fontSize:"$4","@md":{fontSize:"$6"}},fixedHeadline:{fontSize:"24px",fontWeight:"500"},subHeadline:{fontSize:"24px",fontWeight:"500"},articleTitle:{fontWeight:"bold",fontSize:"35px","@mdDown":{fontSize:"25px"},margin:0},boldHeadline:{fontWeight:"bold",fontSize:"$4","@md":{fontSize:"$6"},margin:0},modalHeadline:{fontWeight:"600",fontFamily:"$display",fontSize:"20px",lineHeight:"20px",color:"$grayText",margin:0},modalTitle:{fontSize:"16px",fontWeight:"600",color:"$grayText",lineHeight:"1.50",margin:0},boldText:{fontWeight:"600",fontSize:"16px",lineHeight:"1",color:"$thTextContrast"},shareHighlightModalAnnotation:{fontSize:"18px",lineHeight:"23.4px",color:"$utilityTextSubtle",m:0},footnote:{fontSize:"$1"},shareTitle:{fontSize:"$1",fontWeight:"700",color:"$grayTextContrast"},shareSubtitle:{fontSize:"$1",color:"$grayText"},listTitle:{fontSize:"16px",fontWeight:"500",color:"$grayTextContrast",lineHeight:"1.5",wordBreak:"break-word"},caption:{color:"$grayText",fontSize:"12px",lineHeight:"1.5",wordBreak:"break-word"},captionLink:{fontSize:"$2",textDecoration:"underline",lineHeight:"1.5",cursor:"pointer"},action:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5"},actionLink:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5",textDecoration:"underline",cursor:"pointer"},navLink:{m:0,fontWeight:400,color:"$graySolid",cursor:"pointer","&:hover":{opacity:.7}},controlButton:{color:"$grayText",fontWeight:"500",fontFamily:"inter",fontSize:"14px"},menuTitle:{pt:"0px",m:"0px",color:"$utilityTextDefault",fontSize:16,fontFamily:"inter",fontWeight:"500",lineHeight:"unset"},libraryHeader:{pt:"0px",m:"0px",fontSize:24,fontFamily:"inter",lineHeight:"unset",fontWeight:"bold",color:"$textSubtle"},aboutFooter:{pt:"0px",m:"0px",fontSize:24,fontFamily:"inter",lineHeight:"unset",fontWeight:"bold",color:"white"},displaySettingsLabel:{fontFamily:"$display",fontWeight:"500",fontSize:"12px",lineHeight:"20px",color:"$thTextSubtle2"},error:{color:"$error",fontSize:"$2",lineHeight:"1.25"}}},defaultVariants:{style:"footnote"}}),xo=(he("span",wo),he("li",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),he("ul",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),he("img",{}),he("a",{textDecoration:"none"}),he("mark",{}),Intl.DateTimeFormat().resolvedOptions().locale||"en-US"),Eo=Intl.DateTimeFormat().resolvedOptions().timeZone;function ko(e){return new Intl.DateTimeFormat(xo,{timeStyle:"short",timeZone:Eo}).format(new Date(e))}function So(e){var t=e.style||"footnote",n=function(e,t){var n=new URL(e).origin,r=Co(e);if(t){var o="".concat(function(e){return"by ".concat("string"==typeof(t=e)?t.replace(/(<([^>]+)>)/gi,""):"");var t}(t));return r?o:"".concat(o,", ").concat(new URL(e).hostname)}if(!r)return n}(e.href,e.author);return(0,je.jsx)(He,{children:(0,je.jsxs)(wo,{style:t,css:{wordBreak:"break-word"},children:[n," ",n&&(0,je.jsx)("span",{style:{bottom:1},children:"• "})," ",!e.hideButton&&!Co(e.href)&&(0,je.jsx)(je.Fragment,{children:(0,je.jsx)(qe,{href:e.href,target:"_blank",rel:"noreferrer",css:{textDecoration:"underline",color:"$grayTextContrast"},children:"See original"})})]})})}function _o(e){var t,n,r;return(0,je.jsx)(He,{children:(0,je.jsxs)(wo,{css:{wordBreak:"break-word",fontSize:"15",color:"$thTextSubtle2",fontFamily:"$inter"},children:[(r=e.rawDisplayDate,new Intl.DateTimeFormat(xo,{dateStyle:"long",timeZone:Eo}).format(new Date(r)))," ",null!==(t=e.wordsCount)&&void 0!==t&&t?" • ".concat(Math.max(1,Math.round((null!==(n=e.wordsCount)&&void 0!==n?n:0)/235))," min read"):null]})})}function Co(e){var t=new URL(e).origin;return-1!=["https://storage.googleapis.com","https://omnivore.app"].indexOf(t)}var To=o(1427);function Do(e,t){for(var n=0,r=e.length-1;n=e[l+1]))return l;n=l+1}}throw new Error("Unable to find text node")}var Lo="omnivore-highlight-id",Oo="omnivore-highlight-note-id";function Ro(e){return Array.from(document.querySelectorAll("[".concat(Lo,"='").concat(e,"']")))}var Po="omnivore_highlight",Mo="article-container",No=/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u|code|mark)$/i,Io=new RegExp("<".concat(Po,">([\\s\\S]*)<\\/").concat(Po,">"),"i"),Bo=2e3;function jo(e,t,n,r,o){var i,a=Uo({patch:e}),l=a.prefix,s=a.suffix,u=a.highlightTextStart,c=a.highlightTextEnd,d=a.textNodes,f=a.textNodeIndex,p="";if(Wo(t).length)return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c};for(var h=function(){var e=Vo({textNodes:d,startingTextNodeIndex:f,highlightTextStart:u,highlightTextEnd:c}),a=e.node,l=e.textPartsToHighlight,s=e.startsParagraph,h=a.parentNode,g=a.nextSibling;if(a.textContent&&!/[^\t\n\r ]/.test(a.textContent))return f++,"continue";var m=!1,v=a instanceof HTMLElement?a:a.parentElement;v&&(m=window.getComputedStyle(v).whiteSpace.startsWith("pre")),null==h||h.removeChild(a),l.forEach((function(e,a){var l=e.highlight,u=e.text,c=m?u:u.replace(/\n/g,""),d=document.createTextNode(u);if(l){c&&(s&&!a&&p&&(p+="\n"),p+=c);var f=document.createElement("span");return f.className="highlight",n&&(f.className="".concat(f.className," ").concat("highlight_with_note")),r&&(f.className="".concat(f.className," highlight__").concat(r)),f.setAttribute(Lo,t),o&&f.setAttribute("title",o),f.appendChild(d),i=f,null==h?void 0:h.insertBefore(f,g)}return null==h?void 0:h.insertBefore(d,g)})),f++};c>d[f].startIndex;)h();if(n&&i){i.classList.add("last_element");var g=function(e){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");n.setAttribute("viewBox","0 0 14 14"),n.setAttribute("width","14"),n.setAttribute("height","14"),n.setAttribute("fill","none");var r=document.createElementNS(t,"path");return r.setAttribute("d","M1 5.66602C1 3.7804 1 2.83759 1.58579 2.2518C2.17157 1.66602 3.11438 1.66602 5 1.66602H9C10.8856 1.66602 11.8284 1.66602 12.4142 2.2518C13 2.83759 13 3.7804 13 5.66602V7.66601C13 9.55163 13 10.4944 12.4142 11.0802C11.8284 11.666 10.8856 11.666 9 11.666H4.63014C4.49742 11.666 4.43106 11.666 4.36715 11.6701C3.92582 11.6984 3.50632 11.8722 3.17425 12.1642C3.12616 12.2065 3.07924 12.2534 2.98539 12.3473V12.3473C2.75446 12.5782 2.639 12.6937 2.55914 12.7475C1.96522 13.1481 1.15512 12.8125 1.01838 12.1093C1 12.0148 1 11.8515 1 11.5249V5.66602Z"),r.setAttribute("stroke","rgba(".concat(ot(e),", 0.8)")),r.setAttribute("stroke-width","1.8"),r.setAttribute("stroke-linejoin","round"),n.appendChild(r),n}(r);g.setAttribute(Oo,t);var m=document.createElement("div");m.className="highlight_note_button",m.appendChild(g),m.setAttribute(Oo,t),m.setAttribute("width","14px"),m.setAttribute("height","14px"),i.appendChild(m)}return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c}}function Fo(e){var t=document.getElementById(Mo);if(!t)throw new Error("Unable to find article content element");var n=new Range,r=new Range,o=new Range;o.selectNode(t),n.setStart(o.startContainer,o.startOffset),n.setEnd(e.startContainer,e.startOffset),r.setStart(e.endContainer,e.endOffset),r.setEnd(o.endContainer,o.endOffset);var i="".concat(n.toString(),"<").concat(Po,">").concat(e.toString(),"").concat(Po,">").concat(r.toString()),a=new To.diff_match_patch,l=a.patch_toText(a.patch_make(o.toString(),i));if(!l)throw new Error("Invalid patch");return l}function Ho(e){var t=Fo(e),n=qo(t);return[n.highlightTextStart,n.highlightTextEnd]}var zo=function(e){var t=(null==e?void 0:e.current)||document.getElementById(Mo);if(!t)throw new Error("Unable to find article content element");var n=0,r="",o=!1,i=[];return t.childNodes.forEach((function e(t){var a;t.nodeType===Node.TEXT_NODE?(i.push({startIndex:n,node:t,startsParagraph:o}),n+=(null===(a=t.nodeValue)||void 0===a?void 0:a.length)||0,r+=t.nodeValue,o=!1):(No.test(t.tagName)||(o=!0),t.childNodes.forEach(e))})),i.push({startIndex:n,node:document.createTextNode("")}),{textNodes:i,articleText:r}},qo=function(e){if(!e)throw new Error("Invalid patch");var t,n=zo().articleText,r=new To.diff_match_patch,o=r.patch_apply(r.patch_fromText(e),n);if(o[1][0])t=Io.exec(o[0]);else{r.Match_Threshold=.5,r.Match_Distance=4e3;var i=r.patch_apply(r.patch_fromText(e),n);if(!i[1][0])throw new Error("Unable to find the highlight");t=Io.exec(i[0])}if(!t)throw new Error("Unable to find the highlight from patch");var a=t.index;return{highlightTextStart:a,highlightTextEnd:a+t[1].length,matchingHighlightContent:t}};function Uo(e){var t=e.patch;if(!t)throw new Error("Invalid patch");var n=zo().textNodes,r=qo(t),o=r.highlightTextStart,i=r.highlightTextEnd,a=Do(n.map((function(e){return e.startIndex})),o),l=Do(n.map((function(e){return e.startIndex})),i);return{prefix:Qo({textNodes:n,startingTextNodeIndex:a,startingOffset:o-n[a].startIndex,side:"prefix"}),suffix:Qo({textNodes:n,startingTextNodeIndex:l,startingOffset:i-n[l].startIndex,side:"suffix"}),highlightTextStart:o,highlightTextEnd:i,textNodes:n,textNodeIndex:a}}var Vo=function(e){var t=e.textNodes,n=e.startingTextNodeIndex,r=e.highlightTextStart,o=e.highlightTextEnd,i=t[n],a=i.node,l=i.startIndex,s=i.startsParagraph,u=a.nodeValue||"",c=r-l,d=o-l,f=[];return c>0&&f.push({text:u.substring(0,c),highlight:!1}),f.push({text:u.substring(c,d),highlight:!0}),d<=u.length&&f.push({text:u.substring(d),highlight:!1}),{node:a,textPartsToHighlight:f,startsParagraph:s}},Wo=function(e){return Array.from(document.querySelectorAll("[".concat(Lo,"='").concat(e,"']")))},Qo=function(e){var t,n=e.textNodes,r=e.startingTextNodeIndex,o=e.startingOffset,i="prefix"===e.side,a=r,l=function e(){var t=n[a+=i?-1:1],r=t.node,o=t.startsParagraph,l=r.nodeValue||"";return i?o||l.length>Bo?l:e()+l:!n[a+1]||n[a+1].startsParagraph||l.length>Bo?l:l+e()},s=n[r],u=s.startsParagraph,c=s.node.nodeValue||"",d=i?c.substring(0,o):c.substring(o);return(t=i?u?d:l()+d:!n[a+1]||n[a+1].startsParagraph?d:d+l()).length<=Bo?t:i?t.slice(t.length-Bo):t.substring(0,Bo)},Go=function(e){var t=Uo({patch:e}),n=t.highlightTextStart;return t.highlightTextEnd-n<6e3};function $o(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Yo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){$o(i,r,o,a,l,"next",e)}function l(e){$o(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ko(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ko(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ko(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&l<=0,u=i.startContainer===t.focusNode&&i.endOffset===t.anchorOffset,c=t.focusNode,d=t.focusOffset,f=u?i.endContainer:i.startContainer,(null==c?void 0:c.nodeType)===Node.TEXT_NODE&&(h=u?null===(p=c.textContent)||void 0===p?void 0:p.length:0,f!==c&&d==h&&ei(i,c,u)),e.abrupt("return",s?{range:i,isReverseSelected:u,selection:t}:void 0);case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ei=function(e,t,n){for(var r=t.parentElement;null!==r&&!r.hasAttribute("data-omnivore-anchor-idx");)r=r.parentElement;if(!r)throw Error("Unable to find nearest anchor element for node: "+t);var o,i,a,l=Number(r.getAttribute("data-omnivore-anchor-idx"));if(n)o=l+1,i=document.querySelectorAll("[data-omnivore-anchor-idx='".concat(o,"']"))[0],a=0,e.setStart(i,a);else{do{o=--l,i=document.querySelectorAll("[data-omnivore-anchor-idx='".concat(o,"']"))[0]}while(i.contains(t));if(i.textContent){for(var s,u,c,d=i.lastChild;d&&d.nodeType!==Node.TEXT_NODE;)d=d.previousSibling;a=null!==(s=null===(u=i=d)||void 0===u||null===(c=u.nodeValue)||void 0===c?void 0:c.length)&&void 0!==s?s:0}else a=0;i&&e.setEnd(i,a)}},ti=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"==typeof window||!e)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var n=e.getClientRects();if(!n||!n.length)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var r=n[t?0:n.length-1];return{left:window.scrollX+r.left,top:window.scrollY+r.top-60,right:window.scrollX+r.right,bottom:window.scrollY+r.bottom+5,width:r.width,height:r.height}};function ni(){return navigator.userAgent.includes("Android")}function ri(){return ni()||["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var oi=he("button",{fontFamily:"inter",fontSize:"$2",lineHeight:"1.25",color:"$grayText",variants:{style:{ctaYellow:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $yellow3",bg:"$yellow3","&:hover":{bg:"$yellow4",border:"1px solid $grayBorderHover"}},ctaDarkYellow:{border:"1px solid transparent",fontSize:"14px",fontWeight:500,fontFamily:"Inter",borderRadius:"5px",cursor:"pointer",color:"#3D3D3D",bg:"#FFEA9F",p:"10px 15px","&:hover, &:focus":{bg:"$omnivoreCtaYellow",outline:"1px solid $omnivoreCtaYellow"}},cancelGeneric:{fontSize:"13px",fontWeight:500,fontFamily:"Inter",cursor:"pointer",color:"#6A6968",borderRadius:"5px",border:"1px solid transparent",p:"10px 15px",bg:"transparent","&:hover, &:focus":{bg:"#EBEBEB",outline:"1px solid $omnivoreCtaYellow"}},ctaOutlineYellow:{boxSizing:"border-box",borderColor:"unset",border:"1px solid $omnivoreCtaYellow",fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$utilityTextDefault",bg:"transparent",p:"9px 12px"},ctaLightGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",p:"10px 12px",color:"$thTextContrast2",bg:"rgb(125, 125, 125, 0.3)","&:hover":{bg:"rgb(47, 47, 47, 0.1)",".ctaButtonIcon":{visibility:"visible"}},".ctaButtonIcon":{visibility:"hidden"}},ctaGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",bg:"$grayBgActive",p:"10px 12px"},ctaWhite:{borderRadius:"$3",px:"$3",py:"$2",gap:"5px",cursor:"pointer",border:"1px solid $grayBgSubtle",bg:"$grayBgSubtle","&:hover":{border:"1px solid $grayBorderHover"}},outline:{display:"flex",borderRadius:"5px",alignItems:"center",px:"15px",py:"5px",gap:"10px",fontSize:"12px",fontWeight:"600",fontFamily:"$inter",cursor:"pointer",border:"1px solid $thBorderColor",bg:"transparent","&:hover":{border:"1px solid $grayBorderHover"}},cancel:{display:"flex",borderRadius:"5px",alignItems:"center",px:"15px",py:"5px",gap:"10px",fontSize:"12px",fontWeight:"600",fontFamily:"$inter",cursor:"pointer",bg:"$thBackground4",border:"1px solid $thBackground4","&:hover":{border:"1px solid $grayBorderHover"}},modalOption:{style:"ghost",height:"52px",width:"100%",textAlign:"left",verticalAlign:"middle",color:"#0A0806",backgroundColor:"unset",outlineColor:"rgba(0, 0, 0, 0)",border:"1px solid rgba(0, 0, 0, 0.06)",cursor:"pointer"},ctaModal:{height:"32px",verticalAlign:"middle",color:"$thTextContrast",backgroundColor:"$grayBase",fontWeight:"600",padding:"0px 12px",fontSize:"16px",border:"1px solid $grayBorder",cursor:"pointer",borderRadius:"8px"},ctaSecondary:{color:"$grayText",border:"none",bg:"transparent","&:hover":{opacity:.8}},ctaPill:{cursor:"pointer",borderRadius:"15px",px:"12px",py:"5px",font:"$inter",fontSize:"12px",fontWeight:"700",whiteSpace:"nowrap",color:"$thLibraryMenuPrimary",border:"1px solid $thLeftMenuBackground",backgroundColor:"$thLeftMenuBackground","&:hover":{bg:"$thBackgroundActive",border:"1px solid $thBackgroundActive"}},ctaPillUnselected:{cursor:"pointer",borderRadius:"15px",px:"12px",py:"5px",font:"$inter",fontSize:"12px",fontWeight:"medium",whiteSpace:"nowrap",border:"1px solid $thBackground4",backgroundColor:"$thBackground4","&:hover":{bg:"$thBackgroundActive",border:"1px solid $thBackgroundActive"}},link:{border:"none",bg:"transparent",fontSize:"14px",fontWeight:"regular",fontFamily:"$display",color:"$thLibraryMenuUnselected",cursor:"pointer"},squareIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",borderRight:"1px solid $grayText",opacity:.9,"&:hover":{opacity:1}},plainIcon:{bg:"transparent",border:"none",cursor:"pointer","&:hover":{opacity:.7}},highlightBarIcon:{p:"0px",lineHeight:"0px",bg:"transparent",border:"none",cursor:"pointer","&:hover":{opacity:.5}},articleActionIcon:{bg:"transparent",border:"none",cursor:"pointer",padding:"4px",borderRadius:"5px","&:hover":{opacity:.7}},hoverActionIcon:{bg:"transparent",border:"none",cursor:"pointer",padding:"4px",height:"100%",pt:"5px",minWidth:"25px","&:hover":{bg:"$grayBgHover"}},ghost:{color:"transparent",border:"none",bg:"transparent",cursor:"pointer","&:hover":{opacity:.8}},themeSwitch:{p:"0px",m:"0px",ml:"0px",width:"60px",height:"48px",fontSize:"14px",border:"unset",borderRadius:"6px","&:hover":{transform:"scale(1.1)",border:"2px solid #F9D354"},'&[data-state="selected"]':{border:"2px solid #F9D354"}}}},defaultVariants:{style:"ctaWhite"}}),ii=(he(oi,{variants:{style:{ctaWhite:{color:"red",padding:"10px",display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid $grayBorder",boxSizing:"border-box",borderRadius:6,width:40,height:40},searchButton:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",p:"0px",mr:"5px",width:"28px",height:"28px",color:"#898989",border:"unset",background:"transparent",boxSizing:"border-box",borderRadius:6}}}}),(0,u.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1})),ai=function(e,t,n){var r=n.get(e);return r?r(t):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)};function li(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var si=(0,u.forwardRef)((function(e,t){var n=e.alt,r=e.color,o=e.size,i=e.weight,a=e.mirrored,l=e.children,s=e.renderPath,c=li(e,["alt","color","size","weight","mirrored","children","renderPath"]),d=(0,u.useContext)(ii),f=d.color,p=void 0===f?"currentColor":f,h=d.size,g=d.weight,m=void 0===g?"regular":g,v=d.mirrored,y=void 0!==v&&v,b=li(d,["color","size","weight","mirrored"]);return u.createElement("svg",Object.assign({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=o?o:h,height:null!=o?o:h,fill:null!=r?r:p,viewBox:"0 0 256 256",transform:a||y?"scale(-1, 1)":void 0},b,c),!!n&&u.createElement("title",null,n),l,u.createElement("rect",{width:"256",height:"256",fill:"none"}),s(null!=i?i:m,null!=r?r:p))}));si.displayName="IconBase";const ui=si;var ci=new Map;ci.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),ci.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),ci.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"104"}))})),ci.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),ci.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),ci.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var di=function(e,t){return ai(e,t,ci)},fi=(0,u.forwardRef)((function(e,t){return u.createElement(ui,Object.assign({ref:t},e,{renderPath:di}))}));fi.displayName="Circle";const pi=fi;var hi=new Map;hi.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),hi.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),hi.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24Zm49.5,85.8-58.6,56a8.1,8.1,0,0,1-5.6,2.2,7.7,7.7,0,0,1-5.5-2.2l-29.3-28a8,8,0,1,1,11-11.6l23.8,22.7,53.2-50.7a8,8,0,0,1,11,11.6Z"}))})),hi.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),hi.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),hi.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var gi=function(e,t){return ai(e,t,hi)},mi=(0,u.forwardRef)((function(e,t){return u.createElement(ui,Object.assign({ref:t},e,{renderPath:gi}))}));mi.displayName="CheckCircle";const vi=mi;function yi(e){return yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yi(e)}function bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ai(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,n=(Ji[e[t+0]]+Ji[e[t+1]]+Ji[e[t+2]]+Ji[e[t+3]]+"-"+Ji[e[t+4]]+Ji[e[t+5]]+"-"+Ji[e[t+6]]+Ji[e[t+7]]+"-"+Ji[e[t+8]]+Ji[e[t+9]]+"-"+Ji[e[t+10]]+Ji[e[t+11]]+Ji[e[t+12]]+Ji[e[t+13]]+Ji[e[t+14]]+Ji[e[t+15]]).toLowerCase();if(!Ki(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let ta=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function na(e){var t=e.startContainer.nodeValue,n=e.endContainer.nodeValue,r=!!e.toString().match(/[\u1C88\u3131-\uD79D]/gi),o=r?e.startOffset:oa(e.startOffset,!1,t),i=r?e.endOffset:oa(e.endOffset,!0,n);try{e.setStart(e.startContainer,o),e.setEnd(e.endContainer,i)}catch(e){console.warn("Unable to snap selection to the next word")}}var ra=function(e){return!!e&&/\u2014|\u2013|,|\s/.test(e)};function oa(e,t,n){if(!n)return e;var r=n.split(""),o=e;if(t){if(ra(r[o-1]))return o-1;for(;o0;){if(ra(r[o-1]))return o;o--}}return o}function ia(e){return function(e){if(Array.isArray(e))return aa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return aa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aa(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,o=t.selection,i=o.range,a=o.selection,na(i),(l=document.createElement("div")).appendChild(i.cloneContents()),s=ea(),u=Fo(i),Go(u)){e.next=11;break}return e.abrupt("return",{errorMessage:"Highlight is too long"});case 11:if(a.isCollapsed||a.collapseToStart(),c=[],t.annotation&&c.push(t.annotation),r&&(t.selection.overlapHighlights.forEach((function(e){var n=t.existingHighlights.find((function(t){return t.id===e})),r=null==n?void 0:n.annotation;r&&c.push(r)})),Gi(t.selection.overlapHighlights,t.highlightStartEndOffsets)),d=jo(u,s,c.length>0,t.color),f={id:s,shortId:ta(8),patch:u,type:"HIGHLIGHT",color:t.color,prefix:d.prefix,suffix:d.suffix,quote:pa(l.innerHTML),html:l.innerHTML,annotation:c.length>0?c.join("\n"):void 0,articleId:t.articleId,highlightPositionPercent:t.highlightPositionPercent,highlightPositionAnchorIndex:t.highlightPositionAnchorIndex},h=t.existingHighlights,!r){e.next=25;break}return e.next=21,n.mergeHighlightMutation(sa(sa({},f),{},{overlapHighlightIdList:t.selection.overlapHighlights}));case 21:p=e.sent,h=t.existingHighlights.filter((function(e){return!t.selection.overlapHighlights.includes(e.id)})),e.next=28;break;case 25:return e.next=27,n.createHighlightMutation(f);case 27:p=e.sent;case 28:if(document.dispatchEvent(new Event("highlightsUpdated")),!p){e.next=34;break}return g=[].concat(ia(h),[p]),e.abrupt("return",{highlights:g,newHighlightIndex:g.length>0?g.length-1:void 0});case 34:return e.abrupt("return",{highlights:t.existingHighlights,errorMessage:"Could not create highlight"});case 35:case"end":return e.stop()}}),e)}))),ga.apply(this,arguments)}function ma(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function va(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function ya(...e){return(0,u.useCallback)(va(...e),e)}function ba(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,u.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const Aa=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?u.useLayoutEffect:()=>{},wa=c["useId".toString()]||(()=>{});let xa=0;function Ea(e){const[t,n]=u.useState(wa());return Aa((()=>{e||n((e=>null!=e?e:String(xa++)))}),[e]),e||(t?`radix-${t}`:"")}function ka(e){const t=(0,u.useRef)(e);return(0,u.useEffect)((()=>{t.current=e})),(0,u.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}const Sa=(0,u.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(Ta);if(i){const e=i.props.children,n=o.map((t=>t===i?u.Children.count(e)>1?u.Children.only(null):(0,u.isValidElement)(e)?e.props.children:null:t));return(0,u.createElement)(_a,Se({},r,{ref:t}),(0,u.isValidElement)(e)?(0,u.cloneElement)(e,void 0,n):null)}return(0,u.createElement)(_a,Se({},r,{ref:t}),n)}));Sa.displayName="Slot";const _a=(0,u.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,u.isValidElement)(n)?(0,u.cloneElement)(n,{...Da(r,n.props),ref:t?va(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null}));_a.displayName="SlotClone";const Ca=({children:e})=>(0,u.createElement)(u.Fragment,null,e);function Ta(e){return(0,u.isValidElement)(e)&&e.type===Ca}function Da(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const La=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,u.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?Sa:t;return(0,u.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,u.createElement)(i,Se({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{}),Oa="dismissableLayer.update";let Ra;const Pa=(0,u.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ma=(0,u.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:s,...c}=e,d=(0,u.useContext)(Pa),[f,p]=(0,u.useState)(null),h=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=(0,u.useState)({}),m=ya(t,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),A=f?v.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,x=A>=b,E=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ka(e),r=(0,u.useRef)(!1),o=(0,u.useRef)((()=>{}));return(0,u.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){Ia("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));x&&!n&&(null==i||i(e),null==l||l(e),e.defaultPrevented||null==s||s())}),h),k=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ka(e),r=(0,u.useRef)(!1);return(0,u.useEffect)((()=>{const e=e=>{e.target&&!r.current&&Ia("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==s||s())}),h);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=ka(e);(0,u.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{A===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),h),(0,u.useEffect)((()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ra=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Na(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ra)}}),[f,h,r,d]),(0,u.useEffect)((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Na())}),[f,d]),(0,u.useEffect)((()=>{const e=()=>g({});return document.addEventListener(Oa,e),()=>document.removeEventListener(Oa,e)}),[]),(0,u.createElement)(La.div,Se({},c,{ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:ma(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ma(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ma(e.onPointerDownCapture,E.onPointerDownCapture)}))}));function Na(){const e=new CustomEvent(Oa);document.dispatchEvent(e)}function Ia(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&(0,d.flushSync)((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}const Ba="focusScope.autoFocusOnMount",ja="focusScope.autoFocusOnUnmount",Fa={bubbles:!1,cancelable:!0},Ha=(0,u.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=(0,u.useState)(null),c=ka(o),d=ka(i),f=(0,u.useRef)(null),p=ya(t,(e=>s(e))),h=(0,u.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,u.useEffect)((()=>{if(r){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:Va(f.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||Va(f.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Va(l)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return l&&o.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,l,h.paused]),(0,u.useEffect)((()=>{if(l){Wa.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(Ba,Fa);l.addEventListener(Ba,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Va(r,{select:t}),document.activeElement!==n)return}(za(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&Va(l))}return()=>{l.removeEventListener(Ba,c),setTimeout((()=>{const t=new CustomEvent(ja,Fa);l.addEventListener(ja,d),l.dispatchEvent(t),t.defaultPrevented||Va(null!=e?e:document.body,{select:!0}),l.removeEventListener(ja,d),Wa.remove(h)}),0)}}}),[l,c,d,h]);const g=(0,u.useCallback)((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=za(e);return[qa(t,e),qa(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Va(i,{select:!0})):(e.preventDefault(),n&&Va(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return(0,u.createElement)(La.div,Se({tabIndex:-1},a,{ref:p,onKeyDown:g}))}));function za(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qa(e,t){for(const n of e)if(!Ua(n,{upTo:t}))return n}function Ua(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Va(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Wa=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Qa(e,t),e.unshift(t)},remove(t){var n;e=Qa(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Qa(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Ga=(0,u.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?d.createPortal((0,u.createElement)(La.div,Se({},o,{ref:t})),r):null})),$a=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,u.useState)(),r=(0,u.useRef)({}),o=(0,u.useRef)(e),i=(0,u.useRef)("none"),a=e?"mounted":"unmounted",[l,s]=function(e,t){return(0,u.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,u.useEffect)((()=>{const e=Ya(r.current);i.current="mounted"===l?e:"none"}),[l]),Aa((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Ya(t);if(e)s("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))s("UNMOUNT");else{const e=r!==a;s(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,s]),Aa((()=>{if(t){const e=e=>{const n=Ya(r.current).includes(e.animationName);e.target===t&&n&&(0,d.flushSync)((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Ya(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,u.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):u.Children.only(n),i=ya(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,u.cloneElement)(o,{ref:i}):null};function Ya(e){return(null==e?void 0:e.animationName)||"none"}$a.displayName="Presence";let Za=0;function Ka(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ja=function(){return Ja=Object.assign||function(e){for(var t,n=1,r=arguments.length;nr[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},El=function(e,t){return"v"===e?function(e){return wl(e,"overflowY")}(t):function(e){return wl(e,"overflowX")}(t)},kl=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Sl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_l=function(e){return[e.deltaX,e.deltaY]},Cl=function(e){return e&&"current"in e?e.current:e},Tl=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Dl=0,Ll=[];const Ol=cl(al,(function(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Dl++)[0],i=u.useState((function(){return fl()}))[0],a=u.useRef(e);u.useEffect((function(){a.current=e}),[e]),u.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=el([e.lockRef.current],(e.shards||[]).map(Cl),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=u.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Sl(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=xl(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=xl(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),u=!1,c=a>0,d=0,f=0;do{var p=kl(e,l),h=p[0],g=p[1]-p[2]-i*h;(h||g)&&El(e,l)&&(d+=g,f+=h),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(c&&(0===d||!1)||!c&&(0===f||!1))&&(u=!0),u}(p,t,e,"h"===p?s:u)}),[]),s=u.useCallback((function(e){var n=e;if(Ll.length&&Ll[Ll.length-1]===i){var r="deltaY"in n?_l(n):Sl(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var s=(a.current.shards||[]).map(Cl).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=u.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=u.useCallback((function(e){n.current=Sl(e),r.current=void 0}),[]),f=u.useCallback((function(t){c(t.type,_l(t),t.target,l(t,e.lockRef.current))}),[]),p=u.useCallback((function(t){c(t.type,Sl(t),t.target,l(t,e.lockRef.current))}),[]);u.useEffect((function(){return Ll.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Al),document.addEventListener("touchmove",s,Al),document.addEventListener("touchstart",d,Al),function(){Ll=Ll.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,Al),document.removeEventListener("touchmove",s,Al),document.removeEventListener("touchstart",d,Al)}}),[]);var h=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(i,{styles:Tl(o)}):null,h?u.createElement(vl,{gapMode:"margin"}):null)}));var Rl=u.forwardRef((function(e,t){return u.createElement(sl,Ja({},e,{ref:t,sideCar:Ol}))}));Rl.classNames=sl.classNames;const Pl=Rl;var Ml=new WeakMap,Nl=new WeakMap,Il={},Bl=0,jl=function(e,t,n){void 0===t&&(t=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];Il[n]||(Il[n]=new WeakMap);var o=Il[n],i=[],a=new Set,l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};r.forEach(l);var s=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))s(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,l=(Ml.get(e)||0)+1,u=(o.get(e)||0)+1;Ml.set(e,l),o.set(e,u),i.push(e),1===l&&r&&Nl.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return s(t),a.clear(),Bl++,function(){i.forEach((function(e){var t=Ml.get(e)-1,r=o.get(e)-1;Ml.set(e,t),o.set(e,r),t||(Nl.has(e)||e.removeAttribute("aria-hidden"),Nl.delete(e)),r||e.removeAttribute(n)})),--Bl||(Ml=new WeakMap,Ml=new WeakMap,Nl=new WeakMap,Il={})}};const Fl="Dialog",[Hl,zl]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,u.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,u.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,u.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,l=(null==n?void 0:n[e][i])||o,s=(0,u.useMemo)((()=>a),Object.values(a));return(0,u.createElement)(l.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const l=(null==a?void 0:a[e][i])||o,s=(0,u.useContext)(l);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},ba(r,...t)]}(Fl),[ql,Ul]=Hl(Fl),Vl="DialogPortal",[Wl,Ql]=Hl(Vl,{forceMount:void 0}),Gl="DialogOverlay",$l=(0,u.forwardRef)(((e,t)=>{const n=Ql(Gl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ul(Gl,e.__scopeDialog);return i.modal?(0,u.createElement)($a,{present:r||i.open},(0,u.createElement)(Yl,Se({},o,{ref:t}))):null})),Yl=(0,u.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ul(Gl,n);return(0,u.createElement)(Pl,{as:Sa,allowPinchZoom:!0,shards:[o.contentRef]},(0,u.createElement)(La.div,Se({"data-state":ts(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Zl="DialogContent",Kl=(0,u.forwardRef)(((e,t)=>{const n=Ql(Zl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Ul(Zl,e.__scopeDialog);return(0,u.createElement)($a,{present:r||i.open},i.modal?(0,u.createElement)(Jl,Se({},o,{ref:t})):(0,u.createElement)(Xl,Se({},o,{ref:t})))})),Jl=(0,u.forwardRef)(((e,t)=>{const n=Ul(Zl,e.__scopeDialog),r=(0,u.useRef)(null),o=ya(t,n.contentRef,r);return(0,u.useEffect)((()=>{const e=r.current;if(e)return jl(e)}),[]),(0,u.createElement)(es,Se({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ma(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:ma(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:ma(e.onFocusOutside,(e=>e.preventDefault()))}))})),Xl=(0,u.forwardRef)(((e,t)=>{const n=Ul(Zl,e.__scopeDialog),r=(0,u.useRef)(!1),o=(0,u.useRef)(!1);return(0,u.createElement)(es,Se({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const l=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),es=(0,u.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Ul(Zl,n),s=ya(t,(0,u.useRef)(null));return(0,u.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Ka()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Ka()),Za++,()=>{1===Za&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Za--}}),[]),(0,u.createElement)(u.Fragment,null,(0,u.createElement)(Ha,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},(0,u.createElement)(Ma,Se({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ts(l.open)},a,{ref:s,onDismiss:()=>l.onOpenChange(!1)}))),!1)}));function ts(e){return e?"open":"closed"}const[ns,rs]=function(e,t){const n=(0,u.createContext)(t);function r(e){const{children:t,...r}=e,o=(0,u.useMemo)((()=>r),Object.values(r));return(0,u.createElement)(n.Provider,{value:o},t)}return r.displayName="DialogTitleWarningProvider",[r,function(e){const r=(0,u.useContext)(n);if(r)return r;if(void 0!==t)return t;throw new Error(`\`${e}\` must be used within \`DialogTitleWarning\``)}]}(0,{contentName:Zl,titleName:"DialogTitle",docsSlug:"dialog"}),os=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,l=(0,u.useRef)(null),s=(0,u.useRef)(null),[c=!1,d]=function({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,u.useState)(e),[r]=n,o=(0,u.useRef)(r),i=ka(t);return(0,u.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,l=ka(n);return[a,(0,u.useCallback)((t=>{if(i){const n=t,r="function"==typeof t?n(e):t;r!==e&&l(r)}else o(t)}),[i,e,o,l])]}({prop:r,defaultProp:o,onChange:i});return(0,u.createElement)(ql,{scope:t,triggerRef:l,contentRef:s,contentId:Ea(),titleId:Ea(),descriptionId:Ea(),open:c,onOpenChange:d,onOpenToggle:(0,u.useCallback)((()=>d((e=>!e))),[d]),modal:a},n)},is=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Ul(Vl,t);return(0,u.createElement)(Wl,{scope:t,forceMount:n},u.Children.map(r,(e=>(0,u.createElement)($a,{present:n||i.open},(0,u.createElement)(Ga,{asChild:!0,container:o},e)))))},as=$l,ls=Kl;var ss=new Map;ss.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),ss.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),ss.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M139.3,128l66.4-66.3a8.1,8.1,0,0,0-11.4-11.4L128,116.7,61.7,50.3A8.1,8.1,0,0,0,50.3,61.7L116.7,128,50.3,194.3a8.1,8.1,0,0,0,0,11.4,8.2,8.2,0,0,0,11.4,0L128,139.3l66.3,66.4a8.2,8.2,0,0,0,11.4,0,8.1,8.1,0,0,0,0-11.4Z"}))})),ss.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),ss.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),ss.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var us=function(e,t){return ai(e,t,ss)},cs=(0,u.forwardRef)((function(e,t){return u.createElement(ui,Object.assign({ref:t},e,{renderPath:us}))}));cs.displayName="X";const ds=cs;function fs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2])||arguments[2];n&&qs();var r=new Ls.GraphQLClient(Ns,{credentials:"include",mode:"cors"});return r.request(e,t,Fs())}function qs(){return Us.apply(this,arguments)}function Us(){return(Us=js(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window){e.next=2;break}return e.abrupt("return");case 2:if(!window.localStorage.getItem("authVerified")){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(Is,"/auth/verify"),{credentials:"include",mode:"cors",headers:Fs()});case 7:if(200===(t=e.sent).status){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,t.json();case 12:n=e.sent,r=n.authStatus,e.t0=r,e.next="AUTHENTICATED"===e.t0?17:"PENDING_USER"===e.t0?19:"NOT_AUTHENTICATED"===e.t0?21:22;break;case 17:return window.localStorage.setItem("authVerified","true"),e.abrupt("break",22);case 19:return"/confirm-profile"!==window.location.pathname&&(window.location.href="/confirm-profile"),e.abrupt("break",22);case 21:"/login"!==window.location.pathname&&(window.location.href="/login?errorCodes=AUTH_FAILED");case 22:e.next=27;break;case 24:return e.prev=24,e.t1=e.catch(4),e.abrupt("return");case 27:case"end":return e.stop()}}),e,null,[[4,24]])})))).apply(this,arguments)}function Vs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ws(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Qs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ws(i,r,o,a,l,"next",e)}function l(e){Ws(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Gs(e){return $s.apply(this,arguments)}function $s(){return $s=Qs(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,Ls.gql)(Ps||(Ps=Vs(["\n mutation UpdateHighlight($input: UpdateHighlightInput!) {\n updateHighlight(input: $input) {\n ... on UpdateHighlightSuccess {\n highlight {\n id\n }\n }\n\n ... on UpdateHighlightError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,zs(n,{input:{highlightId:t.highlightId,annotation:t.annotation,color:t.color}});case 4:return r=e.sent,o=r,e.abrupt("return",null==o?void 0:o.updateHighlight.highlight.id);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",void 0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))),$s.apply(this,arguments)}!function(e){if(0==Os[Ms].webBaseURL.length)throw new Error("Couldn't find environment variable for web base url in ".concat(e," environment"))}(Ms);let Ys,Zs,Ks,Js={data:""},Xs=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Js,eu=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,tu=/\/\*[^]*?\*\/|\s\s+|\n/g,nu=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?nu(a,i):i+"{"+nu(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=nu(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=nu.p?nu.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ru={},ou=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ou(e[n]);return t}return e},iu=(e,t,n,r,o)=>{let i=ou(e),a=ru[i]||(ru[i]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(i));if(!ru[a]){let t=i!==e?e:(e=>{let t,n=[{}];for(;t=eu.exec(e.replace(tu,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);ru[a]=nu(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}return((e,t,n)=>{-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(ru[a],t,r),a},au=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":nu(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function lu(e){let t=this||{},n=e.call?e(t.p):e;return iu(n.unshift?n.raw?au(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Xs(t.target),t.g,t.o,t.k)}function su(){return su=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]