=48&&g<=57&&(x=w=!1),w&&x&&(w=v,x=b),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="",b=e.pos,y=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)=y)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=y||41!==e.src.charCodeAt(c))return e.pos=b,!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=b,!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=y,!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,b=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:()=>rm,contentInitial:()=>Kg,disable:()=>om,document:()=>Zg,flow:()=>Xg,flowInitial:()=>Jg,insideSpan:()=>nm,string:()=>em,text:()=>tm});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:()=>Ym,booleanish:()=>Zm,commaOrSpaceSeparated:()=>tv,commaSeparated:()=>ev,number:()=>Jm,overloadedBoolean:()=>Km,spaceSeparated:()=>Xm});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)}},b=Symbol.for("sxs.internal"),y=(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")+")":""))),P=/\s*,\s*(?![^()]*\))/,R=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===R&&(!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(P));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 B?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("}")}`,B={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},I=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=I(t%52)+n;return I(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[b]){null==r.type&&(r.type=t[b].type);for(const e of t[b].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 y(c,{className:r,selector:u,[b]: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 y(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 y(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[b].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[b]=t[b],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(){return ke=Object.assign||function(e){for(var t=1;t{const{children:n,...r}=e;return u.Children.toArray(n).some(Te)?u.createElement(u.Fragment,null,u.Children.map(n,(e=>Te(e)?u.createElement(_e,ke({},r,{ref:t}),e.props.children):e))):u.createElement(_e,ke({},r,{ref:t}),n)}));Se.displayName="Slot";const _e=u.forwardRef(((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...De(r,n.props),ref:Ee(t,n.ref)}):u.Children.count(n)>1?u.Children.only(null):null}));_e.displayName="SlotClone";const Ce=({children:e})=>u.createElement(u.Fragment,null,e);function Te(e){return u.isValidElement(e)&&e.type===Ce}function De(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 Le=["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?Se:t;return u.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Oe),u.createElement(i,ke({},o,{ref:n}))}))})),{}),Oe="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",Re=["horizontal","vertical"],Me=u.forwardRef(((e,t)=>{const{decorative:n,orientation:r=Pe,...o}=e,i=Ne(r)?r:Pe,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return u.createElement(Le.div,ke({"data-orientation":i},a,o,{ref:t}))}));function Ne(e){return Re.includes(e)}Me.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Ne(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=Me;var Ie=o(2322),je={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"}}},Fe=he("div",{}),He=he("span",{}),ze=he("a",{}),qe=he("blockquote",{}),Ue=he(Fe,{display:"flex",flexDirection:"row",variants:je,defaultVariants:{alignment:"start",distribution:"around"}}),Ve=he(Fe,{display:"flex",flexDirection:"column",variants:je,defaultVariants:{alignment:"start",distribution:"around"}});function We(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}`,gt=(ht(dt),ht("playing"),ht(ft),ht(pt),"fullsize"),mt="flex_center",vt="no_scroll_padding",bt="prev",yt="next",At="swipe",wt="close",xt="onPointerDown",Et="onPointerMove",kt="onPointerUp",St="onPointerLeave",_t="onPointerCancel",Ct="onKeyDown",Tt="onWheel",Dt="icon",Lt="contain",Ot="cover",Pt="Unknown action type",Rt={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[wt]},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:Lt,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullDown:!1,closeOnBackdropClick:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function Mt(e,t){return{name:e,component:t}}function Nt(e,t){return{module:e,children:t}}function Bt(e,t,n){return e.module.name===t?n(e):e.children?[Nt(e.module,e.children.flatMap((e=>{var r;return null!==(r=Bt(e,t,n))&&void 0!==r?r:[]})))]:[e]}function It(e,t,n){return e.flatMap((e=>{var r;return null!==(r=Bt(e,t,n))&&void 0!==r?r:[]}))}const jt=(...e)=>[...e].filter((e=>Boolean(e))).join(" "),Ft=e=>`yarl__${e}`,Ht=e=>`--yarl__${e}`,zt=(e,t)=>`${e}${t?`_${t}`:""}`,qt=e=>t=>zt(e,t),Ut=(e,t)=>e&&e[t]?e[t]:t,Vt=(...e)=>()=>{e.forEach((e=>{e()}))},Wt=(e,t,n)=>()=>{const r=u.useContext(n);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r},Qt=()=>"undefined"!=typeof window;function Gt(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}const $t=e=>void 0===e.type||"image"===e.type,Yt=(e,t)=>e.imageFit===Ot||e.imageFit!==Lt&&t===Ot;function Zt(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 Kt(e,t){const n=Zt(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 Jt=(e,t)=>t>0?(e%t+t)%t:0,Xt=e=>e.length>0,en=(e,t)=>Xt(e)?((e,t)=>e[Jt(t,e.length)])(e,t):void 0;function tn(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 nn(){const e=e=>{e.stopPropagation()};return{onPointerDown:e,onKeyDown:e,onWheel:e}}const rn=u.createContext(null),on=Wt("useEvents","EventsContext",rn);function an({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(rn.Provider,{value:n},e)}const ln=u.createContext(null),sn=Wt("useLightboxProps","LightboxPropsContext",ln);function un({children:e,...t}){return u.createElement(ln.Provider,{value:t},e)}const cn=u.createContext(null),dn=Wt("useLightboxState","LightboxStateContext",cn),fn=u.createContext(null),pn=Wt("useLightboxDispatch","LightboxDispatchContext",fn);function hn(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,o=e.globalIndex+r,i=Jt(o,n.length);return{slides:n,currentIndex:i,globalIndex:o,currentSlide:en(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:en(t.slides,t.index)};default:throw new Error(Pt)}}function gn({slides:e,index:t,children:n}){const[r,o]=u.useReducer(hn,{slides:e,currentIndex:t,globalIndex:t,currentSlide:en(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(fn.Provider,{value:o},u.createElement(cn.Provider,{value:i},n))}const mn=u.createContext(null),vn=Wt("useTimeouts","TimeoutsContext",mn);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(mn.Provider,{value:n},e)}const yn=u.forwardRef((function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:i,...a},l){const{styles:s,labels:c}=sn();return u.createElement("button",{ref:l,type:"button","aria-label":Ut(c,e),className:jt(Ft("button"),t),onClick:o,style:{...i,...s.button},...a},r?r():u.createElement(n,{className:Ft(Dt),style:s.icon}))}));function An(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 wn=An("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"})),xn=An("Previous",u.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),En=An("Next",u.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),kn=An("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)`}))))),Sn=An("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"})),_n=Qt()?u.useLayoutEffect:u.useEffect;function Cn(){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 Tn(e,t){const n=u.useRef(),r=u.useRef(),o=Cn();return _n((()=>{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 Dn(){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 Ln(){const e=u.useRef(),{setTimeout:t,clearTimeout:n}=vn();return u.useCallback(((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)}),[t,n])}function On(e){const t=u.useRef(e);return _n((()=>{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 Rn(e,t){return u.useMemo((()=>null==e&&null==t?null:n=>{Pn(e,n),Pn(t,n)}),[e,t])}function Mn(e,t=!1){const n=u.useRef();return _n((()=>{t&&n.current&&(n.current=!1,e())}),[t,e]),{onFocus:u.useCallback((()=>{n.current=!0}),[]),onBlur:u.useCallback((()=>{n.current=!1}),[])}}function Nn(){const[e,t]=u.useState(!1);return _n((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function Bn(e,t){const n=u.useRef(0),r=Ln(),o=On(((...t)=>{n.current=Date.now(),e(t)}));return u.useCallback(((...e)=>{r((()=>{o(e)}),t-(Date.now()-n.current))}),[t,o,r])}const In=qt("slide"),jn=qt("slide_image");function Fn({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,b]=u.useState(dt),{publish:y}=on(),{setTimeout:A}=vn(),w=u.useRef(null);u.useEffect((()=>{0===t&&y(ht(v))}),[t,v,y]);const x=On((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(b(pt),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((()=>{b(ft)}),[]),_=Yt(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(", "),P=O&&r&&Qt()?`${Math.round(Math.min(r&&!_&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:R,className:M,...N}=i||{};return u.createElement(u.Fragment,null,u.createElement("img",{ref:E,onLoad:k,onError:S,onClick:a,draggable:!1,className:jt(Ft(jn()),_&&Ft(jn("cover")),v!==pt&&Ft(jn("loading")),M),style:{...L,...s,...R},...N,alt:e.alt,sizes:P,srcSet:O,src:e.src}),v!==pt&&u.createElement("div",{className:Ft(In("placeholder"))},v===dt&&((null==n?void 0:n.iconLoading)?n.iconLoading():u.createElement(kn,{className:jt(Ft(Dt),Ft(In(dt)))})),v===ft&&((null==n?void 0:n.iconError)?n.iconError():u.createElement(Sn,{className:jt(Ft(Dt),Ft(In(ft)))}))))}var Hn,zn;function qn(e,t,n,r,o){u.useEffect((()=>o?()=>{}:Vt(e(xt,t),e(Et,n),e(kt,r),e(St,r),e(_t,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"}(Hn||(Hn={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL_DOWN=2]="PULL_DOWN"}(zn||(zn={}));const Un="wheel";function Vn(e){(Math.abs(e.deltaX)>Math.abs(e.deltaY)||e.ctrlKey)&&e.preventDefault()}const Wn=qt("container"),Qn=u.createContext(null),Gn=Wt("useController","ControllerContext",Qn),$n=Mt(it,(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=dn(),p=pn(),[h,g]=u.useState(Hn.NONE),m=u.useRef(0),v=u.useRef(0),b=u.useRef(1),{registerSensors:y,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(xt,e),onPointerMove:e=>t(Et,e),onPointerUp:e=>t(kt,e),onPointerLeave:e=>t(St,e),onPointerCancel:e=>t(_t,e),onKeyDown:e=>t(Ct,e),onKeyUp:e=>t("onKeyUp",e),onWheel:e=>t(Tt,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}=on(),E=Ln(),k=Ln(),S=Ln(),{containerRef:_,setContainerRef:C,containerRect:T}=Dn(),D=Rn(function(){const e=u.useRef(null);return u.useCallback((t=>{var n;t?t.addEventListener(Un,Vn,{passive:!1}):null===(n=e.current)||void 0===n||n.removeEventListener(Un,Vn),e.current=t}),[])}(),C),L=u.useRef(null),O=Rn(L,void 0),P=Nn(),R=e=>(P?-1:1)*("number"==typeof e?e:1),M=On((()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.focus()})),N=On((()=>t)),B=On((()=>f)),I=u.useCallback((e=>x(bt,e)),[x]),j=u.useCallback((e=>x(yt,e)),[x]),F=u.useCallback((()=>x(wt)),[x]),H=e=>!(r.finite&&(R(e)>0&&0===f.currentIndex||R(e)<0&&f.currentIndex===f.slides.length-1)),z=e=>{var t;m.current=e,null===(t=_.current)||void 0===t||t.style.setProperty(Ht("swipe_offset"),`${Math.round(e)}px`)},{closeOnPullDown:q}=i,U=e=>{var t,n;v.current=e,b.current=Math.min(Math.max(Gt(1-e/60*.5,2),.5),1),null===(t=_.current)||void 0===t||t.style.setProperty(Ht("pull_down_offset"),`${Math.round(e)}px`),null===(n=_.current)||void 0===n||n.style.setProperty(Ht("pull_down_opacity"),`${b.current}`)},{prepareAnimation:V}=Tn(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:b.current,duration:n})),S((()=>{U(0),g(Hn.NONE)}),n),g(Hn.ANIMATION),t||F()}},{prepareAnimation:Q,isAnimationPlaying:G}=Tn(L,((e,t,n)=>{var o;if(L.current&&T&&(null===(o=f.animation)||void 0===o?void 0:o.duration)){const o=Zt(r.spacing),i=(o.percent?o.percent*T.width/100:o.pixel)||0;return{keyframes:[{transform:`translate(${R(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}}})),$=On((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=Hn.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:yt):c=i/2}let d=0;l===bt?H(R(1))?d=-s:(u=Hn.NONE,c=i):l===yt&&(H(R(-1))?d=s:(u=Hn.NONE,c=i)),c=Math.round(c),k((()=>{z(0),g(Hn.NONE)}),c),L.current&&Q({rect:L.current.getBoundingClientRect(),index:f.globalIndex}),g(u),x(At,{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(Hn.SWIPE),e=>z(e),(e,t)=>$({offset:e,duration:t,count:1}),e=>$({offset:e,count:0})],Z=[()=>{q&&g(Hn.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),b=u.useRef(zn.NONE),y=u.useCallback((e=>{m.current===e.pointerId&&(m.current=void 0,b.current=zn.NONE);const t=g.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),A=u.useCallback((e=>{y(e),e.persist(),g.current.push(e)}),[y]),w=On((e=>{A(e)})),x=On((e=>{if(g.current.find((t=>t.pointerId===e.pointerId))&&m.current===e.pointerId){const e=Date.now()-v.current,t=h.current;b.current===zn.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&e60?f(t,e):p(t)),h.current=0,b.current=zn.NONE}y(e)})),E=On((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):y(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(),b.current=t};Math.abs(a)>Math.abs(l)&&Math.abs(a)>30&&t(a)?(n(zn.SWIPE),o()):s&&Math.abs(l)>Math.abs(a)&&l>30&&(n(zn.PULL_DOWN),c())}else r&&(b.current===zn.SWIPE?(h.current=a,i(a)):b.current===zn.PULL_DOWN&&(h.current=l,d(l)))}}));qn(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}=vn(),b=u.useCallback((()=>{f.current&&(v(f.current),f.current=void 0)}),[v]),y=u.useCallback((()=>{p.current&&(v(p.current),p.current=void 0)}),[v]),A=On((()=>{e!==Hn.SWIPE&&(c.current=0,g.current=0,b(),y())}));u.useEffect(A,[e,A]);const w=On((e=>{p.current=void 0,c.current===e&&s(c.current)})),x=On((t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX)))if(e===Hn.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,b(),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===Hn.SWIPE){let e=c.current-t.deltaX;if(e=Math.min(Math.abs(e),r)*Math.sign(e),c.current=e,a(e),y(),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(Tt,x)),[t,x])}(h,...Y);const K=On((()=>{var e;i.focus&&(null===(e=_.current)||void 0===e||e.focus())}));u.useEffect(K,[K]);const J=On((()=>{var e;null===(e=a.view)||void 0===e||e.call(a,{index:f.currentIndex})}));u.useEffect(J,[f.globalIndex,J]),u.useEffect((()=>Vt(w(bt,(e=>$({direction:bt,...e}))),w(yt,(e=>$({direction:yt,...e}))),w(At,(e=>p(e))))),[w,$,p]);const X=u.useMemo((()=>({prev:I,next:j,close:F,focus:M,slideRect:T?Kt(T,r.padding):{width:0,height:0},containerRect:T||{width:0,height:0},subscribeSensors:A,containerRef:_,setCarouselRef:O,toolbarWidth:c,setToolbarWidth:d})),[I,j,F,M,A,T,_,O,c,d,r.padding]);return u.useImperativeHandle(i.ref,(()=>({prev:I,next:j,close:F,focus:M,getLightboxProps:N,getLightboxState:B})),[I,j,F,M,N,B]),u.createElement("div",{ref:D,className:jt(Ft(Wn()),Ft(mt)),style:{...h===Hn.SWIPE?{[Ht("swipe_offset")]:`${Math.round(m.current)}px`}:null,...h===Hn.PULL_DOWN?{[Ht("pull_down_offset")]:`${Math.round(v.current)}px`,[Ht("pull_down_opacity")]:`${b.current}`}:null,..."none"!==i.touchAction?{[Ht("controller_touch_action")]:i.touchAction}:null,...l.container},...i.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...y},T&&u.createElement(Qn.Provider,{value:X},e,null===(n=s.controls)||void 0===n?void 0:n.call(s)))}));function Yn(e){return zt(ot,e)}function Zn(e){return zt("slide",e)}function Kn({slide:e,offset:t}){const n=u.useRef(null),{currentIndex:r}=dn(),{slideRect:o,close:i}=Gn(),{render:a,carousel:{imageFit:l,imageProps:s},on:{click:c},controller:{closeOnBackdropClick:d},styles:{slide:f}}=sn();return u.createElement("div",{ref:n,className:jt(Ft(Zn()),0===t&&Ft(Zn("current")),Ft(mt)),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(Ft(gt)))&&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&&$t(e)&&(p=u.createElement(Fn,{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 Jn(){const e=sn().styles.slide;return u.createElement("div",{className:Ft("slide"),style:e})}const Xn=Mt(ot,(function({carousel:e}){const{slides:t,currentIndex:n,globalIndex:r}=dn(),{setCarouselRef:o}=Gn(),i=Zt(e.spacing),a=Zt(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(Xt(t)){for(let o=n-s;o=0?u.createElement(Kn,{key:i,slide:t[(o+s*t.length)%t.length],offset:o-n}):u.createElement(Jn,{key:i}))}l.push(u.createElement(Kn,{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(Kn,{key:i,slide:t[o%t.length],offset:o-n}):u.createElement(Jn,{key:i}))}}return u.createElement("div",{ref:o,className:jt(Ft(Yn()),l.length>0&&Ft(Yn("with_slides"))),style:{[`${Ht(Yn("slides_count"))}`]:l.length,[`${Ht(Yn("spacing_px"))}`]:i.pixel||0,[`${Ht(Yn("spacing_percent"))}`]:i.percent||0,[`${Ht(Yn("padding_px"))}`]:a.pixel||0,[`${Ht(Yn("padding_percent"))}`]:a.percent||0}},l)}));function er(){const{carousel:e}=sn(),{slides:t,currentIndex:n}=dn();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function tr({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:i,style:a}){return u.createElement(yn,{label:e,icon:t,renderIcon:n,className:Ft(`navigation_${r}`),disabled:i,onClick:o,style:a,...Mn(Gn().focus,i)})}const nr=Mt("navigation",(function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:i,next:a,subscribeSensors:l}=Gn(),{prevDisabled:s,nextDisabled:c}=er();return function(e){var t;const n=Nn(),{publish:r}=on(),{animation:o}=sn(),{prevDisabled:i,nextDisabled:a}=er(),l=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,s=Bn((()=>r(bt)),l),c=Bn((()=>r(yt)),l),d=On((e=>{switch(e.key){case"Escape":r(wt);break;case"ArrowLeft":(n?a:i)||(n?c:s)();break;case"ArrowRight":(n?i:a)||(n?s:c)()}}));u.useEffect((()=>e(Ct,d)),[e,d])}(l),u.createElement(u.Fragment,null,e?e():u.createElement(tr,{label:"Previous",action:bt,icon:xn,renderIcon:n,style:o.navigationPrev,disabled:s,onClick:i}),t?t():u.createElement(tr,{label:"Next",action:yt,icon:En,renderIcon:r,style:o.navigationNext,disabled:c,onClick:a}))})),rr=Ft("no_scroll"),or=Ft(vt);function ir(e){return"style"in e}function ar(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 lr=Mt("no-scroll",(function({noScroll:{disabled:e},children:t}){const n=Nn();return _n((()=>{if(e)return()=>{};const t=[],{body:r,documentElement:o}=document,i=Math.round(window.innerWidth-o.clientWidth);if(i>0){t.push(ar(r,i,n));const e=r.getElementsByTagName("*");for(let r=0;r{r.classList.remove(rr),t.forEach((e=>e()))}}),[n,e]),u.createElement(u.Fragment,null,t)}));function sr(e){return zt(at,e)}function ur(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const cr=Mt(at,(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}=vn(),{subscribe:g}=on(),m=Cn()?0:t.fade;u.useEffect((()=>(s(!0),()=>{s(!1),f(!1)})),[]);const v=On((()=>{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(wt,v)),[g,v]);const b=On((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)})),y=On((()=>{p.current.forEach((e=>e())),p.current=[]})),A=u.useCallback((e=>{e?b(e):y()}),[b,y]);return l?(0,d.createPortal)(u.createElement("div",{ref:A,className:jt(r,Ft("root"),Ft(sr()),Ft(vt),c&&Ft(sr("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==Rt.animation.fade?{[Ht("fade_animation_duration")]:`${m}ms`}:null,...t.easing.fade!==Rt.animation.easing.fade?{[Ht("fade_animation_timing_function")]:t.easing.fade}:null,...n.root}},e),i.root||document.body):null})),dr=Mt("root",(function({children:e}){return u.createElement(u.Fragment,null,e)})),fr=Mt(lt,(function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:i}=Gn(),{setContainerRef:a,containerRect:l}=Dn();return _n((()=>{i(null==l?void 0:l.width)}),[i,null==l?void 0:l.width]),u.createElement("div",{ref:a,style:r.toolbar,className:Ft(zt(lt,undefined)),...nn()},null==e?void 0:e.map((e=>e===wt?t?t():u.createElement(yn,{key:wt,label:"Close",icon:wn,renderIcon:n,onClick:o}):e)))}));function pr(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=>pr(e,t))))}function hr(e,t={}){const{easing:n,...r}=e,{easing:o,...i}=t;return{easing:{...n,...o},...r,...i}}function gr({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:b,slides:y,index:A,plugins:w,...x}=Rt,{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?It(r,e,(e=>[Nt(t,[e])])):[Nt(t,r)]},a=(e,t)=>{r=It(r,e,(e=>[Nt(e.module,[Nt(t,e.children)])]))},l=(e,t,n)=>{r=It(r,e,(e=>{var r;return[Nt(e.module,[...n?[Nt(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[Nt(t)]])]}))},s=(e,t,n)=>{r=It(r,e,(e=>[...n?[Nt(t)]:[],e,...n?[]:[Nt(t)]]))},u=e=>{a(it,e)},c=(e,t)=>{r=It(r,e,(e=>[Nt(t,e.children)]))},d=e=>{r=It(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)}}([Nt(cr,[Nt(lr,[Nt($n,[Nt(Xn),Nt(fr),Nt(nr)])])])],l||w),S=k({animation:hr(f,t),carousel:{...p,...e},render:{...h,...n},toolbar:{...g,...r},controller:{...m,...o},noScroll:{...v,...i},on:{...b,...a},...x,...d});return S.open?u.createElement(un,{...S},u.createElement(gn,{slides:s||y,index:c||A},u.createElement(bn,null,u.createElement(an,null,pr(Nt(dr,E),S))))):null}var mr=o(3379),vr=o.n(mr),br=o(7795),yr=o.n(br),Ar=o(569),wr=o.n(Ar),xr=o(3565),Er=o.n(xr),kr=o(9216),Sr=o.n(kr),_r=o(4589),Cr=o.n(_r),Tr=o(6185),Dr={};Dr.styleTagTransform=Cr(),Dr.setAttributes=Er(),Dr.insert=wr().bind(null,"head"),Dr.domAPI=yr(),Dr.insertStyleElement=Sr(),vr()(Tr.Z,Dr),Tr.Z&&Tr.Z.locals&&Tr.Z.locals;const Lr={download:void 0},Or=e=>({...Lr,...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 Rr(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=()=>{Rr(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 Mr=An("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 Nr(){const{render:e,on:t,download:n}=sn(),{download:r}=Or(n),{currentSlide:o,currentIndex:i}=dn();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||$t(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;Rr(a,e)}};return u.createElement(yn,{label:"Download",icon:Mr,renderIcon:e.iconDownload,disabled:!l,onClick:()=>{var e;o&&((r||s)({slide:o,saveAs:Rr}),null===(e=t.download)||void 0===e||e.call(t,{index:i}))}})}function Br({augment:e}){e((({toolbar:e,download:t,...n})=>({toolbar:tn(e,"download",u.createElement(Nr,null)),download:Or(t),...n})))}const Ir={auto:!1,ref:null},jr=e=>({...Ir,...e}),Fr=u.createContext(null),Hr=Wt("useFullscreen","FullscreenContext",Fr);function zr({fullscreen:e,children:t}){const{auto:n,ref:r}=jr(e),o=u.useRef(null),[i,a]=u.useState(!1),[l,s]=u.useState();_n((()=>{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=On((()=>{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:jt(Ft(st),Ft(gt))},u.createElement(Fr.Provider,{value:g},t))}const qr=An("EnterFullscreen",u.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),Ur=An("ExitFullscreen",u.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));function Vr(){var e;const{fullscreen:t,disabled:n,enter:r,exit:o}=Hr(),{render:i}=sn();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(yn,{disabled:n,label:t?"Exit Fullscreen":"Enter Fullscreen",icon:t?Ur:qr,renderIcon:t?i.iconExitFullscreen:i.iconEnterFullscreen,onClick:t?o:r})}function Wr({augment:e,contains:t,addParent:n}){e((({fullscreen:e,toolbar:t,...n})=>({toolbar:tn(t,st,u.createElement(Vr,null)),fullscreen:jr(e),...n}))),n(t(ut)?ut:it,Mt(st,zr))}const Qr={maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,scrollToZoom:!1},Gr=e=>({...Qr,...e});function $r(){const{zoom:e}=sn();return Gr(e)}function Yr(e,t){return((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2)**.5}const Zr=u.createContext(null),Kr=Wt("useZoom","ZoomControllerContext",Zr);function Jr({children:e}){const[t,n]=u.useState(),{slideRect:r}=Gn(),{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}=dn(),{imageFit:s}=sn().carousel,{maxZoomPixelRatio:u}=$r();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(Gt(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}=sn().animation,l=Cn(),s=On((()=>{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 _n(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}=dn(),{containerRect:h,slideRect:g}=Gn(),{zoomInMultiplier:m}=$r(),v=function(e,t){if(t{o(1),a(0),s(0)}),[p,v]);const y=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=Gt(Math.min(Math.max(e+.001{r>1&&(r>t&&A(t,!0),y())}));_n(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:b,changeOffsets:y,changeZoom:A,zoomIn:x,zoomOut:E}}(o,i,null==t?void 0:t.zoomWrapperRef);!function(e,t){const{on:n}=sn(),r=On((()=>{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}=dn(),{containerRef:d,subscribeSensors:f}=Gn(),{keyboardMoveDistance:p,zoomInMultiplier:h,wheelZoomDistanceFactor:g,scrollToZoom:m,doubleTapDelay:v,doubleClickDelay:b,doubleClickMaxStops:y,pinchZoomDistanceFactor:A}=$r(),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=On((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=On((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]),_=On((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:b)?(l.current=0,r(e!==t?e*Math.max(t**(1/y),h):1,!1,...w(n))):l.current=c,S(n),2===u.length&&(s.current=Yr(u[0],u[1]))})),C=On((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=Yr(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}),[]);qn(f,_,C,T,n),u.useEffect(D,[c,D]),u.useEffect((()=>n?()=>{}:Vt(D,f(Ct,x),f(Tt,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($r().ref,(()=>g),[g]);const m=u.useMemo((()=>({...g,setZoomWrapper:n})),[g,n]);return u.createElement(Zr.Provider,{value:m},e)}const Xr=An("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"}))),eo=An("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"})),to=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}=Kr(),{render:d}=sn(),f=c||(e?i>=a:i<=1);return u.useEffect((()=>{f&&r.current&&o.current&&t(),f||(r.current=!0)}),[f,t]),u.createElement(yn,{ref:n,disabled:f,label:e?"Zoom in":"Zoom out",icon:e?Xr:eo,renderIcon:e?d.iconZoomIn:d.iconZoomOut,onClick:e?l:s,onFocus:()=>{o.current=!0},onBlur:()=>{o.current=!1}})}));function no(){const e=u.useRef(null),t=u.useRef(null),{focus:n}=Gn(),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(to,{zoomIn:!0,ref:e,onLoseFocus:i}),u.createElement(to,{ref:t,onLoseFocus:o}))}function ro(){const{render:e}=sn(),t=Kr();return e.buttonZoom?u.createElement(u.Fragment,null,e.buttonZoom(t)):u.createElement(no,null)}function oo({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 io(e){var t,n;const[{current:r,preload:o},i]=u.useReducer(oo,{}),{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=Yt(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=(Qt()?null===window||void 0===window?void 0:window.devicePixelRatio:void 0)||1,b=On((()=>{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})}));_n(b,[l.width,l.height,v,b]);const y=On((e=>i({type:"done",source:e}))),A={WebkitTransform:"translateZ(0)"};return h||Object.assign(A,l.width/l.heighty(o),render:{...c,iconLoading:()=>null,iconError:()=>null}}),r&&u.createElement(Fn,{key:"current",...e,slide:{...a,src:r,srcSet:void 0},style:A}))}function ao({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}=Kr(),{carousel:h,on:g}=sn(),{currentIndex:m}=dn();_n((()=>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&&$t(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(io,{key:t.src,...o,slide:t,rect:0===n?{width:r.width*s,height:r.height*s}:r}):u.createElement(Fn,{key:t.src,onLoad:e=>a({width:e.naturalWidth,height:e.naturalHeight}),...o})}return v?u.createElement("div",{ref:l,className:jt(Ft(gt),Ft(mt)),style:0===n?{transform:`scale(${s}) translateX(${d}px) translateY(${f}px)`}:void 0},v):null}const lo=({augment:e,addModule:t})=>{e((({toolbar:e,render:t,zoom:n,...r})=>({zoom:Gr(n),toolbar:tn(e,ct,u.createElement(ro,null)),render:{...t,slide:e=>{var n;return $t(e.slide)?u.createElement(ao,{render:t,...e}):null===(n=t.slide)||void 0===n?void 0:n.call(t,e)}},...r}))),t(Mt(ct,Jr))},so={separator:"/",container:{}},uo=e=>({...so,...e});function co({counter:e}){const{slides:t,currentIndex:n}=dn(),{separator:r,container:{className:o,...i},className:a,...l}=uo(e);return 0===t.length?null:u.createElement("div",{className:jt(Ft("counter"),o||a),...l,...i},n+1," ",r," ",t.length)}function fo({augment:e,addChild:t}){e((({counter:e,...t})=>({counter:uo(e),...t}))),t(it,Mt("counter",co))}var po=o(1170),ho=o.n(po);function go(e){return console.log("settingh link hover, ",e),(0,Ie.jsx)(Fe,{css:{position:"absolute",background:"$thBackground2",borderRadius:"5px",border:"1px solid $thHighlightBar",boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.15)",padding:"10px",left:e.anchorCoordinates.pageX,top:e.anchorCoordinates.pageY},children:(0,Ie.jsx)(Fe,{children:"Save to Omnivore"})})}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 bo(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 yo(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)?yo(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 yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n400){if(!n){var r,o=e.getBoundingClientRect(),i=document.createElement("div");i.setAttribute("id",t),i.style.width=o.width+"px",i.style.height=o.height+"px",null===(r=e.parentNode)||void 0===r||r.insertBefore(i,e)}e.classList.add("is-sticky")}else{var a;n&&(null===(a=e.parentNode)||void 0===a||a.removeChild(n)),e.classList.remove("is-sticky")}};return e&&window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}}),[e]),(0,u.useEffect)((function(){if("undefined"!=typeof window&&a&&(l(!1),function(e){if(!e||0==e.childNodes.length)return[];for(var t=[e],n=[],r=function(){var e=t.pop();if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE||Qe.some((function(t){return e.hasAttribute(t)})))return"continue";n.push(e),[].slice.call(e.childNodes).reverse().forEach((function(e){t.push(e)}))};t.length>0;)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){ho().isDefined(t)||ho()("https://platform.twitter.com/widgets.js",t),ho().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:et()?"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){y(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 x=(0,u.useMemo)((function(){return e.isAppleAppEmbed?[Wr,fo,lo]:[Wr,Br,fo,lo]}),[e]);return(0,u.useEffect)((function(){Array.from(document.querySelectorAll("a[data-omnivore-anchor-idx]")).forEach((function(e){e.setAttribute("target","_blank")}))}),[e.content]),(0,Ie.jsxs)(Ie.Fragment,{children:[!e.isAppleAppEmbed&&(0,Ie.jsx)("link",{rel:"stylesheet",href:"/static/highlightjs/".concat(t,".min.css")}),(0,Ie.jsx)(Fe,{ref:s,css:{maxWidth:"100%"},className:"article-inner-css","data-testid":"article-inner",dangerouslySetInnerHTML:{__html:e.content}}),(0,Ie.jsx)(He,{onClick:function(e){e.stopPropagation()},children:(0,Ie.jsx)(gr,{open:f,index:b,close:function(){return p(!1)},slides:g,plugins:x,controller:{closeOnPullDown:!0,closeOnBackdropClick:!0},zoom:{maxZoomPixelRatio:3},render:{buttonZoom:function(){}}})}),w&&(0,Ie.jsx)(Ie.Fragment,{children:(0,Ie.jsx)(go,{anchorCoordinates:w.pageCoordinate,handleButtonClick:function(){console.log("saved link hover: ",w)}})})]})}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"},settingsSection:{fontWeight:"600",fontSize:"17px",fontFamily:"$inter",color:"$grayText",m:"0px",my:"15px",marginBlockStart:"0px",marginBlockEnd:"0px"},settingsItem:{fontSize:"13px",fontFamily:"$display",color:"$grayText",marginBlockStart:"0px",marginBlockEnd:"0px"},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",marginBlockStart:"0",marginTop:"10px"},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,Ie.jsx)(Fe,{children:(0,Ie.jsxs)(wo,{style:t,css:{wordBreak:"break-word"},children:[n," ",n&&(0,Ie.jsx)("span",{style:{bottom:1},children:"• "})," ",!e.hideButton&&!Co(e.href)&&(0,Ie.jsx)(Ie.Fragment,{children:(0,Ie.jsx)(ze,{href:e.href,target:"_blank",rel:"noreferrer",css:{textDecoration:"underline",color:"$grayTextContrast"},children:"See original"})})]})})}function _o(e){var t,n,r;return(0,Ie.jsx)(Fe,{children:(0,Ie.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",Po="omnivore-highlight-label-id";function Ro(e){return Array.from(document.querySelectorAll("[".concat(Lo,"='").concat(e,"']")))}var Mo="omnivore_highlight",No="article-container",Bo=/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u|code|mark)$/i,Io=new RegExp("<".concat(Mo,">([\\s\\S]*)<\\/").concat(Mo,">"),"i"),jo=2e3;function Fo(e,t,n,r,o,i){var a,l=Vo({patch:e}),s=l.prefix,u=l.suffix,c=l.highlightTextStart,d=l.highlightTextEnd,f=l.textNodes,p=l.textNodeIndex,h="";if(Qo(t).length)return{prefix:s,suffix:u,quote:h,startLocation:c,endLocation:d};for(var g=function(){var e=Wo({textNodes:f,startingTextNodeIndex:p,highlightTextStart:c,highlightTextEnd:d}),r=e.node,l=e.textPartsToHighlight,s=e.startsParagraph,u=r.parentNode,g=r.nextSibling;if(r.textContent&&!/[^\t\n\r ]/.test(r.textContent))return p++,"continue";var m=!1,v=r instanceof HTMLElement?r:r.parentElement;v&&(m=window.getComputedStyle(v).whiteSpace.startsWith("pre")),null==u||u.removeChild(r),l.forEach((function(e,r){var l=e.highlight,c=e.text,d=m?c:c.replace(/\n/g,""),f=document.createTextNode(c);if(l){d&&(s&&!r&&h&&(h+="\n"),h+=d);var p=document.createElement("span");return p.className="highlight",n&&(p.className="".concat(p.className," ").concat("highlight_with_note")),o&&(p.className="".concat(p.className," highlight__").concat(o)),p.setAttribute(Lo,t),i&&p.setAttribute("title",i),p.appendChild(f),a=p,null==u?void 0:u.insertBefore(p,g)}return null==u?void 0:u.insertBefore(f,g)})),p++};d>f[p].startIndex;)g();if(n&&a){var m=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(rt(e),", 0.8)")),r.setAttribute("stroke-width","1.8"),r.setAttribute("stroke-linejoin","round"),n.appendChild(r),n}(o);m.setAttribute(Oo,t);var v=document.createElement("span");v.className="highlight_note_button",v.appendChild(m),v.setAttribute(Oo,t),v.setAttribute("width","14px"),v.setAttribute("height","14px"),a.appendChild(v)}return{prefix:s,suffix:u,quote:h,startLocation:c,endLocation:d}}function Ho(e){var t=document.getElementById(No);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(Mo,">").concat(e.toString(),"").concat(Mo,">").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 zo(e){var t=Ho(e),n=Uo(t);return[n.highlightTextStart,n.highlightTextEnd]}var qo=function(e){var t=(null==e?void 0:e.current)||document.getElementById(No);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):(Bo.test(t.tagName)||(o=!0),t.childNodes.forEach(e))})),i.push({startIndex:n,node:document.createTextNode("")}),{textNodes:i,articleText:r}},Uo=function(e){if(!e)throw new Error("Invalid patch");var t,n=qo().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 Vo(e){var t=e.patch;if(!t)throw new Error("Invalid patch");var n=qo().textNodes,r=Uo(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:Go({textNodes:n,startingTextNodeIndex:a,startingOffset:o-n[a].startIndex,side:"prefix"}),suffix:Go({textNodes:n,startingTextNodeIndex:l,startingOffset:i-n[l].startIndex,side:"suffix"}),highlightTextStart:o,highlightTextEnd:i,textNodes:n,textNodeIndex:a}}var Wo=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}},Qo=function(e){return Array.from(document.querySelectorAll("[".concat(Lo,"='").concat(e,"']")))},Go=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>jo?l:e()+l:!n[a+1]||n[a+1].startsParagraph||l.length>jo?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<=jo?t:i?t.slice(t.length-jo):t.substring(0,jo)},$o=function(e){var t=Vo({patch:e}),n=t.highlightTextStart;return t.highlightTextEnd-n<6e3};function Yo(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 Zo(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Yo(i,r,o,a,l,"next",e)}function l(e){Yo(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Ko(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 Jo(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)?Jo(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 Jo(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&&ti(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 ti=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)}},ni=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 ri(){return navigator.userAgent.includes("Android")}function oi(){return ri()||["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var ii=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"}},ctaBlue:{borderRadius:"5px",px:"20px",py:"8px",fontSize:"14px",fontWeight:"500",cursor:"pointer",border:"1px solid $yellow3",bg:"$ctaBlue",color:"white","&:hover":{opacity:"0.6",border:"0px solid $ctaBlue"}},tldr:{gap:"10px",display:"flex",alignItems:"center",borderRadius:"100px",px:"10px",py:"10px",fontFamily:"$inter",fontSize:"12px",fontWeight:"500",cursor:"pointer",color:"#EDEDED",border:"1px solid $thLibraryMultiselectHover",bg:"transparent","&:hover":{opacity:"0.6",border:"1px solid $ctaBlue"}},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:"500",whiteSpace:"nowrap",color:"$thLibraryMenuPrimary",border:"1px solid $thLeftMenuBackground",bg:"$thBackgroundActive","&:hover":{bg:"$thBackgroundActive",border:"1px solid $thBackgroundActive"}},ctaPillUnselected:{cursor:"pointer",borderRadius:"15px",px:"12px",py:"5px",bg:"transparent",font:"$inter",fontSize:"12px",fontWeight:"500",whiteSpace:"nowrap",border:"1px solid $thBackground4","&:hover":{bg:"$thBackgroundActive",border:"1px solid $thBackgroundActive"}},link:{border:"none",bg:"transparent",fontSize:"14px",fontWeight:"regular",fontFamily:"$display",color:"$thLibraryMenuUnselected",cursor:"pointer"},tab:{px:"15px",py:"6px",border:"none",bg:"transparent",fontSize:"12px",fontWeight:"500",fontFamily:"$inter",color:"$tabTextUnselected",cursor:"pointer",borderRadius:"5px","&:hover":{color:"$thTextContrast"}},tabSelected:{px:"15px",py:"6px",border:"none",bg:"#6A6968",fontSize:"12px",fontWeight:"500",fontFamily:"$inter",color:"white",cursor:"pointer",borderRadius:"5px"},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"}}),ai=(he(ii,{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})),li=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 si(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 ui=(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=si(e,["alt","color","size","weight","mirrored","children","renderPath"]),d=(0,u.useContext)(ai),f=d.color,p=void 0===f?"currentColor":f,h=d.size,g=d.weight,m=void 0===g?"regular":g,v=d.mirrored,b=void 0!==v&&v,y=si(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||b?"scale(-1, 1)":void 0},y,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))}));ui.displayName="IconBase";const ci=ui;var di=new Map;di.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"}))})),di.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"}))})),di.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"104"}))})),di.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"}))})),di.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"}))})),di.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 fi=function(e,t){return li(e,t,di)},pi=(0,u.forwardRef)((function(e,t){return u.createElement(ci,Object.assign({ref:t},e,{renderPath:fi}))}));pi.displayName="Circle";const hi=pi;var gi=new Map;gi.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"}))})),gi.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"}))})),gi.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"}))})),gi.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"}))})),gi.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"}))})),gi.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 mi=function(e,t){return li(e,t,gi)},vi=(0,u.forwardRef)((function(e,t){return u.createElement(ci,Object.assign({ref:t},e,{renderPath:mi}))}));vi.displayName="CheckCircle";const bi=vi;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 Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wi(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=(Xi[e[t+0]]+Xi[e[t+1]]+Xi[e[t+2]]+Xi[e[t+3]]+"-"+Xi[e[t+4]]+Xi[e[t+5]]+"-"+Xi[e[t+6]]+Xi[e[t+7]]+"-"+Xi[e[t+8]]+Xi[e[t+9]]+"-"+Xi[e[t+10]]+Xi[e[t+11]]+Xi[e[t+12]]+Xi[e[t+13]]+Xi[e[t+14]]+Xi[e[t+15]]).toLowerCase();if(!Ji(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let na=(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 ra(e){var t=e.startContainer.nodeValue,n=e.endContainer.nodeValue,r=!!e.toString().match(/[\u1C88\u3131-\uD79D]/gi),o=r?e.startOffset:ia(e.startOffset,!1,t),i=r?e.endOffset:ia(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 oa=function(e){return!!e&&/\u2014|\u2013|,|\s/.test(e)};function ia(e,t,n){if(!n)return e;var r=n.split(""),o=e;if(t){if(oa(r[o-1]))return o-1;for(;o0;){if(oa(r[o-1]))return o;o--}}return o}function aa(e){return function(e){if(Array.isArray(e))return la(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 la(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)?la(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 la(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,ra(i),(l=document.createElement("div")).appendChild(i.cloneContents()),s=ta(),u=Ho(i),$o(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)})),$i(t.selection.overlapHighlights,t.highlightStartEndOffsets)),d=Fo(u,s,c.length>0,0,t.color),f={id:s,shortId:na(8),patch:u,type:"HIGHLIGHT",color:t.color,prefix:d.prefix,suffix:d.suffix,quote:ha(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(ua(ua({},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(aa(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)}))),ma.apply(this,arguments)}function va(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 ba(...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)(ba(...e),e)}function Aa(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}\``)}]},wa(r,...t)]}function wa(...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 xa=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?u.useLayoutEffect:()=>{},Ea=c["useId".toString()]||(()=>{});let ka=0;function Sa(e){const[t,n]=u.useState(Ea());return xa((()=>{e||n((e=>null!=e?e:String(ka++)))}),[e]),e||(t?`radix-${t}`:"")}function _a(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)}),[])}function Ca({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=_a(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=_a(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])]}const Ta=(0,u.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=u.Children.toArray(n),i=o.find(Oa);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)(Da,ke({},r,{ref:t}),(0,u.isValidElement)(e)?(0,u.cloneElement)(e,void 0,n):null)}return(0,u.createElement)(Da,ke({},r,{ref:t}),n)}));Ta.displayName="Slot";const Da=(0,u.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,u.isValidElement)(n)?(0,u.cloneElement)(n,{...Pa(r,n.props),ref:t?ba(t,n.ref):n.ref}):u.Children.count(n)>1?u.Children.only(null):null}));Da.displayName="SlotClone";const La=({children:e})=>(0,u.createElement)(u.Fragment,null,e);function Oa(e){return(0,u.isValidElement)(e)&&e.type===La}function Pa(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 Ra=["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?Ta:t;return(0,u.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,u.createElement)(i,ke({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Ma(e,t){e&&(0,d.flushSync)((()=>e.dispatchEvent(t)))}const Na="dismissableLayer.update";let Ba;const Ia=(0,u.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ja=(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)(Ia),[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),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(b),A=f?v.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,x=A>=y,E=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=_a(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(){Ha("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=_a(e),r=(0,u.useRef)(!1);return(0,u.useEffect)((()=>{const e=e=>{e.target&&!r.current&&Ha("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=_a(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&&(Ba=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Fa(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ba)}}),[f,h,r,d]),(0,u.useEffect)((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Fa())}),[f,d]),(0,u.useEffect)((()=>{const e=()=>g({});return document.addEventListener(Na,e),()=>document.removeEventListener(Na,e)}),[]),(0,u.createElement)(Ra.div,ke({},c,{ref:m,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:va(e.onFocusCapture,k.onFocusCapture),onBlurCapture:va(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:va(e.onPointerDownCapture,E.onPointerDownCapture)}))}));function Fa(){const e=new CustomEvent(Na);document.dispatchEvent(e)}function Ha(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?Ma(o,i):o.dispatchEvent(i)}const za="focusScope.autoFocusOnMount",qa="focusScope.autoFocusOnUnmount",Ua={bubbles:!1,cancelable:!0},Va=(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=_a(o),d=_a(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:$a(f.current,{select:!0})}function t(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||$a(f.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&$a(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){Ya.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(za,Ua);l.addEventListener(za,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($a(r,{select:t}),document.activeElement!==n)return}(Wa(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&$a(l))}return()=>{l.removeEventListener(za,c),setTimeout((()=>{const t=new CustomEvent(qa,Ua);l.addEventListener(qa,d),l.dispatchEvent(t),t.defaultPrevented||$a(null!=e?e:document.body,{select:!0}),l.removeEventListener(qa,d),Ya.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=Wa(e);return[Qa(t,e),Qa(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&$a(i,{select:!0})):(e.preventDefault(),n&&$a(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return(0,u.createElement)(Ra.div,ke({tabIndex:-1},a,{ref:p,onKeyDown:g}))}));function Wa(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(!Ga(n,{upTo:t}))return n}function Ga(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 $a(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 Ya=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Za(e,t),e.unshift(t)},remove(t){var n;e=Za(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Za(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Ka=(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)(Ra.div,ke({},o,{ref:t})),r):null})),Ja=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=Xa(r.current);i.current="mounted"===l?e:"none"}),[l]),xa((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Xa(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]),xa((()=>{if(t){const e=e=>{const n=Xa(r.current).includes(e.animationName);e.target===t&&n&&(0,d.flushSync)((()=>s("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Xa(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 Xa(e){return(null==e?void 0:e.animationName)||"none"}Ja.displayName="Presence";let el=0;function tl(){(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:nl()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:nl()),el++,()=>{1===el&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),el--}}),[])}function nl(){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 rl=function(){return rl=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},kl=function(e,t){return"v"===e?function(e){return xl(e,"overflowY")}(t):function(e){return xl(e,"overflowX")}(t)},Sl=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)},_l=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cl=function(e){return[e.deltaX,e.deltaY]},Tl=function(e){return e&&"current"in e?e.current:e},Dl=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ll=0,Ol=[];const Pl=(Rl=function(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Ll++)[0],i=u.useState((function(){return pl()}))[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=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;oMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=El(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=El(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=Sl(e,l),h=p[0],g=p[1]-p[2]-i*h;(h||g)&&kl(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(Ol.length&&Ol[Ol.length-1]===i){var r="deltaY"in n?Cl(n):_l(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(Tl).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=_l(e),r.current=void 0}),[]),f=u.useCallback((function(t){c(t.type,Cl(t),t.target,l(t,e.lockRef.current))}),[]),p=u.useCallback((function(t){c(t.type,_l(t),t.target,l(t,e.lockRef.current))}),[]);u.useEffect((function(){return Ol.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,wl),document.addEventListener("touchmove",s,wl),document.addEventListener("touchstart",d,wl),function(){Ol=Ol.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,wl),document.removeEventListener("touchmove",s,wl),document.removeEventListener("touchstart",d,wl)}}),[]);var h=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(i,{styles:Dl(o)}):null,h?u.createElement(bl,{gapMode:"margin"}):null)},sl.useMedium(Rl),dl);var Rl,Ml=u.forwardRef((function(e,t){return u.createElement(cl,rl({},e,{ref:t,sideCar:Pl}))}));Ml.classNames=cl.classNames;const Nl=Ml;var Bl=new WeakMap,Il=new WeakMap,jl={},Fl=0,Hl=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];jl[n]||(jl[n]=new WeakMap);var o=jl[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=(Bl.get(e)||0)+1,u=(o.get(e)||0)+1;Bl.set(e,l),o.set(e,u),i.push(e),1===l&&r&&Il.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return s(t),a.clear(),Fl++,function(){i.forEach((function(e){var t=Bl.get(e)-1,r=o.get(e)-1;Bl.set(e,t),o.set(e,r),t||(Il.has(e)||e.removeAttribute("aria-hidden"),Il.delete(e)),r||e.removeAttribute(n)})),--Fl||(Bl=new WeakMap,Bl=new WeakMap,Il=new WeakMap,jl={})}};const zl="Dialog",[ql,Ul]=Aa(zl),[Vl,Wl]=ql(zl),Ql="DialogPortal",[Gl,$l]=ql(Ql,{forceMount:void 0}),Yl="DialogOverlay",Zl=(0,u.forwardRef)(((e,t)=>{const n=$l(Yl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Wl(Yl,e.__scopeDialog);return i.modal?(0,u.createElement)(Ja,{present:r||i.open},(0,u.createElement)(Kl,ke({},o,{ref:t}))):null})),Kl=(0,u.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wl(Yl,n);return(0,u.createElement)(Nl,{as:Ta,allowPinchZoom:!0,shards:[o.contentRef]},(0,u.createElement)(Ra.div,ke({"data-state":rs(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Jl="DialogContent",Xl=(0,u.forwardRef)(((e,t)=>{const n=$l(Jl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Wl(Jl,e.__scopeDialog);return(0,u.createElement)(Ja,{present:r||i.open},i.modal?(0,u.createElement)(es,ke({},o,{ref:t})):(0,u.createElement)(ts,ke({},o,{ref:t})))})),es=(0,u.forwardRef)(((e,t)=>{const n=Wl(Jl,e.__scopeDialog),r=(0,u.useRef)(null),o=ya(t,n.contentRef,r);return(0,u.useEffect)((()=>{const e=r.current;if(e)return Hl(e)}),[]),(0,u.createElement)(ns,ke({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:va(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:va(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:va(e.onFocusOutside,(e=>e.preventDefault()))}))})),ts=(0,u.forwardRef)(((e,t)=>{const n=Wl(Jl,e.__scopeDialog),r=(0,u.useRef)(!1),o=(0,u.useRef)(!1);return(0,u.createElement)(ns,ke({},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()}}))})),ns=(0,u.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Wl(Jl,n),s=ya(t,(0,u.useRef)(null));return tl(),(0,u.createElement)(u.Fragment,null,(0,u.createElement)(Va,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},(0,u.createElement)(ja,ke({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":rs(l.open)},a,{ref:s,onDismiss:()=>l.onOpenChange(!1)}))),!1)}));function rs(e){return e?"open":"closed"}const[os,is]=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:Jl,titleName:"DialogTitle",docsSlug:"dialog"}),as=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]=Ca({prop:r,defaultProp:o,onChange:i});return(0,u.createElement)(Vl,{scope:t,triggerRef:l,contentRef:s,contentId:Sa(),titleId:Sa(),descriptionId:Sa(),open:c,onOpenChange:d,onOpenToggle:(0,u.useCallback)((()=>d((e=>!e))),[d]),modal:a},n)},ls=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Wl(Ql,t);return(0,u.createElement)(Gl,{scope:t,forceMount:n},u.Children.map(r,(e=>(0,u.createElement)(Ja,{present:n||i.open},(0,u.createElement)(Ka,{asChild:!0,container:o},e)))))},ss=Zl,us=Xl;var cs=new Map;cs.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"}))})),cs.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"}))})),cs.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"}))})),cs.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"}))})),cs.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"}))})),cs.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 ds=function(e,t){return li(e,t,cs)},fs=(0,u.forwardRef)((function(e,t){return u.createElement(ci,Object.assign({ref:t},e,{renderPath:ds}))}));fs.displayName="X";const ps=fs;function hs(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&&Vs();var r=new Ps.GraphQLClient(Is,{credentials:"include",mode:"cors"});return r.request(e,t,zs())}function Vs(){return Ws.apply(this,arguments)}function Ws(){return(Ws=Hs(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(js,"/auth/verify"),{credentials:"include",mode:"cors",headers:zs()});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 Qs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Gs(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 $s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Gs(i,r,o,a,l,"next",e)}function l(e){Gs(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Ys(e){return Zs.apply(this,arguments)}function Zs(){return Zs=$s(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,Ps.gql)(Ns||(Ns=Qs(["\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,Us(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]])}))),Zs.apply(this,arguments)}!function(e){if(0==Rs[Bs].webBaseURL.length)throw new Error("Couldn't find environment variable for web base url in ".concat(e," environment"))}(Bs);let Ks,Js,Xs,eu={data:""},tu=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||eu,nu=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ru=/\/\*[^]*?\*\/|\s\s+|\n/g,ou=(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]?ou(a,i):i+"{"+ou(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=ou(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+=ou.p?ou.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},iu={},au=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+au(e[n]);return t}return e},lu=(e,t,n,r,o)=>{let i=au(e),a=iu[i]||(iu[i]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(i));if(!iu[a]){let t=i!==e?e:(e=>{let t,n=[{}];for(;t=nu.exec(e.replace(ru,""));)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);iu[a]=ou(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)})(iu[a],t,r),a},su=(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?"":ou(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function uu(e){let t=this||{},n=e.call?e(t.p):e;return lu(n.unshift?n.raw?su(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,tu(t.target),t.g,t.o,t.k)}function cu(){return cu=Object.assign||function(e){for(var t=1;t